(function(Fu){typeof define=="function"&&define.amd?define(Fu):Fu()})((function(){"use strict";var Afe=Object.defineProperty;var Cfe=(Fu,pl,Wc)=>pl in Fu?Afe(Fu,pl,{enumerable:!0,configurable:!0,writable:!0,value:Wc}):Fu[pl]=Wc;var j=(Fu,pl,Wc)=>Cfe(Fu,typeof pl!="symbol"?pl+"":pl,Wc);function Fu(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 Wc={exports:{}},ov={},z5={exports:{}},O7={};/**
 * @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 aC;function lB(){return aC||(aC=1,(function(e){function t(K,ae){var pe=K.length;K.push(ae);e:for(;0<pe;){var Te=pe-1>>>1,ee=K[Te];if(0<o(ee,ae))K[Te]=ae,K[pe]=ee,pe=Te;else break e}}function n(K){return K.length===0?null:K[0]}function i(K){if(K.length===0)return null;var ae=K[0],pe=K.pop();if(pe!==ae){K[0]=pe;e:for(var Te=0,ee=K.length,q=ee>>>1;Te<q;){var J=2*(Te+1)-1,F=K[J],Re=J+1,be=K[Re];if(0>o(F,pe))Re<ee&&0>o(be,F)?(K[Te]=be,K[Re]=pe,Te=Re):(K[Te]=F,K[J]=pe,Te=J);else if(Re<ee&&0>o(be,pe))K[Te]=be,K[Re]=pe,Te=Re;else break e}}return ae}function o(K,ae){var pe=K.sortIndex-ae.sortIndex;return pe!==0?pe:K.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 f=Date,d=f.now();e.unstable_now=function(){return f.now()-d}}var h=[],y=[],b=1,x=null,T=3,w=!1,C=!1,R=!1,_=!1,N=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;function V(K){for(var ae=n(y);ae!==null;){if(ae.callback===null)i(y);else if(ae.startTime<=K)i(y),ae.sortIndex=ae.expirationTime,t(h,ae);else break;ae=n(y)}}function I(K){if(R=!1,V(K),!C)if(n(h)!==null)C=!0,P||(P=!0,$());else{var ae=n(y);ae!==null&&ie(I,ae.startTime-K)}}var P=!1,Y=-1,se=5,ue=-1;function re(){return _?!0:!(e.unstable_now()-ue<se)}function le(){if(_=!1,P){var K=e.unstable_now();ue=K;var ae=!0;try{e:{C=!1,R&&(R=!1,z(Y),Y=-1),w=!0;var pe=T;try{t:{for(V(K),x=n(h);x!==null&&!(x.expirationTime>K&&re());){var Te=x.callback;if(typeof Te=="function"){x.callback=null,T=x.priorityLevel;var ee=Te(x.expirationTime<=K);if(K=e.unstable_now(),typeof ee=="function"){x.callback=ee,V(K),ae=!0;break t}x===n(h)&&i(h),V(K)}else i(h);x=n(h)}if(x!==null)ae=!0;else{var q=n(y);q!==null&&ie(I,q.startTime-K),ae=!1}}break e}finally{x=null,T=pe,w=!1}ae=void 0}}finally{ae?$():P=!1}}}var $;if(typeof B=="function")$=function(){B(le)};else if(typeof MessageChannel<"u"){var oe=new MessageChannel,W=oe.port2;oe.port1.onmessage=le,$=function(){W.postMessage(null)}}else $=function(){N(le,0)};function ie(K,ae){Y=N(function(){K(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(K){K.callback=null},e.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):se=0<K?Math.floor(1e3/K):5},e.unstable_getCurrentPriorityLevel=function(){return T},e.unstable_next=function(K){switch(T){case 1:case 2:case 3:var ae=3;break;default:ae=T}var pe=T;T=ae;try{return K()}finally{T=pe}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(K,ae){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var pe=T;T=K;try{return ae()}finally{T=pe}},e.unstable_scheduleCallback=function(K,ae,pe){var Te=e.unstable_now();switch(typeof pe=="object"&&pe!==null?(pe=pe.delay,pe=typeof pe=="number"&&0<pe?Te+pe:Te):pe=Te,K){case 1:var ee=-1;break;case 2:ee=250;break;case 5:ee=1073741823;break;case 4:ee=1e4;break;default:ee=5e3}return ee=pe+ee,K={id:b++,callback:ae,priorityLevel:K,startTime:pe,expirationTime:ee,sortIndex:-1},pe>Te?(K.sortIndex=pe,t(y,K),n(h)===null&&K===n(y)&&(R?(z(Y),Y=-1):R=!0,ie(I,pe-Te))):(K.sortIndex=ee,t(h,K),C||w||(C=!0,P||(P=!0,$()))),K},e.unstable_shouldYield=re,e.unstable_wrapCallback=function(K){var ae=T;return function(){var pe=T;T=ae;try{return K.apply(this,arguments)}finally{T=pe}}}})(O7)),O7}var M7={},oC;function sB(){return oC||(oC=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(P=!1,re){var ae=e.unstable_now();oe=ae;var pe=!0;try{e:{V=!1,I&&(I=!1,se(le),le=-1),B=!0;var Te=z;try{t:{for(d(ae),N=o(C);N!==null&&!(N.expirationTime>ae&&y());){var ee=N.callback;if(typeof ee=="function"){N.callback=null,z=N.priorityLevel;var q=ee(N.expirationTime<=ae);if(ae=e.unstable_now(),typeof q=="function"){N.callback=q,d(ae),pe=!0;break t}N===o(C)&&s(C),d(ae)}else s(C);N=o(C)}if(N!==null)pe=!0;else{var J=o(R);J!==null&&b(h,J.startTime-ae),pe=!1}}break e}finally{N=null,z=Te,B=!1}pe=void 0}}finally{pe?W():re=!1}}}function i(ae,pe){var Te=ae.length;ae.push(pe);e:for(;0<Te;){var ee=Te-1>>>1,q=ae[ee];if(0<f(q,pe))ae[ee]=pe,ae[Te]=q,Te=ee;else break e}}function o(ae){return ae.length===0?null:ae[0]}function s(ae){if(ae.length===0)return null;var pe=ae[0],Te=ae.pop();if(Te!==pe){ae[0]=Te;e:for(var ee=0,q=ae.length,J=q>>>1;ee<J;){var F=2*(ee+1)-1,Re=ae[F],be=F+1,De=ae[be];if(0>f(Re,Te))be<q&&0>f(De,Re)?(ae[ee]=De,ae[be]=Te,ee=be):(ae[ee]=Re,ae[F]=Te,ee=F);else if(be<q&&0>f(De,Te))ae[ee]=De,ae[be]=Te,ee=be;else break e}}return pe}function f(ae,pe){var Te=ae.sortIndex-pe.sortIndex;return Te!==0?Te:ae.id-pe.id}function d(ae){for(var pe=o(R);pe!==null;){if(pe.callback===null)s(R);else if(pe.startTime<=ae)s(R),pe.sortIndex=pe.expirationTime,i(C,pe);else break;pe=o(R)}}function h(ae){if(I=!1,d(ae),!V)if(o(C)!==null)V=!0,re||(re=!0,W());else{var pe=o(R);pe!==null&&b(h,pe.startTime-ae)}}function y(){return P?!0:!(e.unstable_now()-oe<$)}function b(ae,pe){le=Y(function(){ae(e.unstable_now())},pe)}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 x=performance;e.unstable_now=function(){return x.now()}}else{var T=Date,w=T.now();e.unstable_now=function(){return T.now()-w}}var C=[],R=[],_=1,N=null,z=3,B=!1,V=!1,I=!1,P=!1,Y=typeof setTimeout=="function"?setTimeout:null,se=typeof clearTimeout=="function"?clearTimeout:null,ue=typeof setImmediate<"u"?setImmediate:null,re=!1,le=-1,$=5,oe=-1;if(typeof ue=="function")var W=function(){ue(n)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,K=ie.port2;ie.port1.onmessage=n,W=function(){K.postMessage(null)}}else W=function(){Y(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 pe=3;break;default:pe=z}var Te=z;z=pe;try{return ae()}finally{z=Te}},e.unstable_requestPaint=function(){P=!0},e.unstable_runWithPriority=function(ae,pe){switch(ae){case 1:case 2:case 3:case 4:case 5:break;default:ae=3}var Te=z;z=ae;try{return pe()}finally{z=Te}},e.unstable_scheduleCallback=function(ae,pe,Te){var ee=e.unstable_now();switch(typeof Te=="object"&&Te!==null?(Te=Te.delay,Te=typeof Te=="number"&&0<Te?ee+Te:ee):Te=ee,ae){case 1:var q=-1;break;case 2:q=250;break;case 5:q=1073741823;break;case 4:q=1e4;break;default:q=5e3}return q=Te+q,ae={id:_++,callback:pe,priorityLevel:ae,startTime:Te,expirationTime:q,sortIndex:-1},Te>ee?(ae.sortIndex=Te,i(R,ae),o(C)===null&&ae===o(R)&&(I?(se(le),le=-1):I=!0,b(h,Te-ee))):(ae.sortIndex=q,i(C,ae),V||B||(V=!0,re||(re=!0,W()))),ae},e.unstable_shouldYield=y,e.unstable_wrapCallback=function(ae){var pe=z;return function(){var Te=z;z=pe;try{return ae.apply(this,arguments)}finally{z=Te}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(M7)),M7}var lC;function sC(){if(lC)return z5.exports;lC=1;var e={};return e.NODE_ENV==="production"?z5.exports=lB():z5.exports=sB(),z5.exports}var I5={exports:{}},dn={};/**
 * @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 uC;function uB(){if(uC)return dn;uC=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"),f=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"),x=Symbol.for("react.activity"),T=Symbol.iterator;function w(q){return q===null||typeof q!="object"?null:(q=T&&q[T]||q["@@iterator"],typeof q=="function"?q:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,_={};function N(q,J,F){this.props=q,this.context=J,this.refs=_,this.updater=F||C}N.prototype.isReactComponent={},N.prototype.setState=function(q,J){if(typeof q!="object"&&typeof q!="function"&&q!=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,q,J,"setState")},N.prototype.forceUpdate=function(q){this.updater.enqueueForceUpdate(this,q,"forceUpdate")};function z(){}z.prototype=N.prototype;function B(q,J,F){this.props=q,this.context=J,this.refs=_,this.updater=F||C}var V=B.prototype=new z;V.constructor=B,R(V,N.prototype),V.isPureReactComponent=!0;var I=Array.isArray;function P(){}var Y={H:null,A:null,T:null,S:null},se=Object.prototype.hasOwnProperty;function ue(q,J,F){var Re=F.ref;return{$$typeof:e,type:q,key:J,ref:Re!==void 0?Re:null,props:F}}function re(q,J){return ue(q.type,J,q.props)}function le(q){return typeof q=="object"&&q!==null&&q.$$typeof===e}function $(q){var J={"=":"=0",":":"=2"};return"$"+q.replace(/[=:]/g,function(F){return J[F]})}var oe=/\/+/g;function W(q,J){return typeof q=="object"&&q!==null&&q.key!=null?$(""+q.key):J.toString(36)}function ie(q){switch(q.status){case"fulfilled":return q.value;case"rejected":throw q.reason;default:switch(typeof q.status=="string"?q.then(P,P):(q.status="pending",q.then(function(J){q.status==="pending"&&(q.status="fulfilled",q.value=J)},function(J){q.status==="pending"&&(q.status="rejected",q.reason=J)})),q.status){case"fulfilled":return q.value;case"rejected":throw q.reason}}throw q}function K(q,J,F,Re,be){var De=typeof q;(De==="undefined"||De==="boolean")&&(q=null);var Pe=!1;if(q===null)Pe=!0;else switch(De){case"bigint":case"string":case"number":Pe=!0;break;case"object":switch(q.$$typeof){case e:case t:Pe=!0;break;case b:return Pe=q._init,K(Pe(q._payload),J,F,Re,be)}}if(Pe)return be=be(q),Pe=Re===""?"."+W(q,0):Re,I(be)?(F="",Pe!=null&&(F=Pe.replace(oe,"$&/")+"/"),K(be,J,F,"",function(Qe){return Qe})):be!=null&&(le(be)&&(be=re(be,F+(be.key==null||q&&q.key===be.key?"":(""+be.key).replace(oe,"$&/")+"/")+Pe)),J.push(be)),1;Pe=0;var Fe=Re===""?".":Re+":";if(I(q))for(var Ze=0;Ze<q.length;Ze++)Re=q[Ze],De=Fe+W(Re,Ze),Pe+=K(Re,J,F,De,be);else if(Ze=w(q),typeof Ze=="function")for(q=Ze.call(q),Ze=0;!(Re=q.next()).done;)Re=Re.value,De=Fe+W(Re,Ze++),Pe+=K(Re,J,F,De,be);else if(De==="object"){if(typeof q.then=="function")return K(ie(q),J,F,Re,be);throw J=String(q),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(q).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return Pe}function ae(q,J,F){if(q==null)return q;var Re=[],be=0;return K(q,Re,"","",function(De){return J.call(F,De,be++)}),Re}function pe(q){if(q._status===-1){var J=q._result;J=J(),J.then(function(F){(q._status===0||q._status===-1)&&(q._status=1,q._result=F)},function(F){(q._status===0||q._status===-1)&&(q._status=2,q._result=F)}),q._status===-1&&(q._status=0,q._result=J)}if(q._status===1)return q._result.default;throw q._result}var Te=typeof reportError=="function"?reportError:function(q){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof q=="object"&&q!==null&&typeof q.message=="string"?String(q.message):String(q),error:q});if(!window.dispatchEvent(J))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",q);return}console.error(q)},ee={map:ae,forEach:function(q,J,F){ae(q,function(){J.apply(this,arguments)},F)},count:function(q){var J=0;return ae(q,function(){J++}),J},toArray:function(q){return ae(q,function(J){return J})||[]},only:function(q){if(!le(q))throw Error("React.Children.only expected to receive a single React element child.");return q}};return dn.Activity=x,dn.Children=ee,dn.Component=N,dn.Fragment=n,dn.Profiler=o,dn.PureComponent=B,dn.StrictMode=i,dn.Suspense=h,dn.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,dn.__COMPILER_RUNTIME={__proto__:null,c:function(q){return Y.H.useMemoCache(q)}},dn.cache=function(q){return function(){return q.apply(null,arguments)}},dn.cacheSignal=function(){return null},dn.cloneElement=function(q,J,F){if(q==null)throw Error("The argument must be a React element, but you passed "+q+".");var Re=R({},q.props),be=q.key;if(J!=null)for(De in J.key!==void 0&&(be=""+J.key),J)!se.call(J,De)||De==="key"||De==="__self"||De==="__source"||De==="ref"&&J.ref===void 0||(Re[De]=J[De]);var De=arguments.length-2;if(De===1)Re.children=F;else if(1<De){for(var Pe=Array(De),Fe=0;Fe<De;Fe++)Pe[Fe]=arguments[Fe+2];Re.children=Pe}return ue(q.type,be,Re)},dn.createContext=function(q){return q={$$typeof:f,_currentValue:q,_currentValue2:q,_threadCount:0,Provider:null,Consumer:null},q.Provider=q,q.Consumer={$$typeof:s,_context:q},q},dn.createElement=function(q,J,F){var Re,be={},De=null;if(J!=null)for(Re in J.key!==void 0&&(De=""+J.key),J)se.call(J,Re)&&Re!=="key"&&Re!=="__self"&&Re!=="__source"&&(be[Re]=J[Re]);var Pe=arguments.length-2;if(Pe===1)be.children=F;else if(1<Pe){for(var Fe=Array(Pe),Ze=0;Ze<Pe;Ze++)Fe[Ze]=arguments[Ze+2];be.children=Fe}if(q&&q.defaultProps)for(Re in Pe=q.defaultProps,Pe)be[Re]===void 0&&(be[Re]=Pe[Re]);return ue(q,De,be)},dn.createRef=function(){return{current:null}},dn.forwardRef=function(q){return{$$typeof:d,render:q}},dn.isValidElement=le,dn.lazy=function(q){return{$$typeof:b,_payload:{_status:-1,_result:q},_init:pe}},dn.memo=function(q,J){return{$$typeof:y,type:q,compare:J===void 0?null:J}},dn.startTransition=function(q){var J=Y.T,F={};Y.T=F;try{var Re=q(),be=Y.S;be!==null&&be(F,Re),typeof Re=="object"&&Re!==null&&typeof Re.then=="function"&&Re.then(P,Te)}catch(De){Te(De)}finally{J!==null&&F.types!==null&&(J.types=F.types),Y.T=J}},dn.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},dn.use=function(q){return Y.H.use(q)},dn.useActionState=function(q,J,F){return Y.H.useActionState(q,J,F)},dn.useCallback=function(q,J){return Y.H.useCallback(q,J)},dn.useContext=function(q){return Y.H.useContext(q)},dn.useDebugValue=function(){},dn.useDeferredValue=function(q,J){return Y.H.useDeferredValue(q,J)},dn.useEffect=function(q,J){return Y.H.useEffect(q,J)},dn.useEffectEvent=function(q){return Y.H.useEffectEvent(q)},dn.useId=function(){return Y.H.useId()},dn.useImperativeHandle=function(q,J,F){return Y.H.useImperativeHandle(q,J,F)},dn.useInsertionEffect=function(q,J){return Y.H.useInsertionEffect(q,J)},dn.useLayoutEffect=function(q,J){return Y.H.useLayoutEffect(q,J)},dn.useMemo=function(q,J){return Y.H.useMemo(q,J)},dn.useOptimistic=function(q,J){return Y.H.useOptimistic(q,J)},dn.useReducer=function(q,J,F){return Y.H.useReducer(q,J,F)},dn.useRef=function(q){return Y.H.useRef(q)},dn.useState=function(q){return Y.H.useState(q)},dn.useSyncExternalStore=function(q,J,F){return Y.H.useSyncExternalStore(q,J,F)},dn.useTransition=function(){return Y.H.useTransition()},dn.version="19.2.4",dn}var lv={exports:{}};lv.exports;var cC;function cB(){return cC||(cC=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(Z,Me){Object.defineProperty(f.prototype,Z,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",Me[0],Me[1])}})}function o(Z){return Z===null||typeof Z!="object"?null:(Z=_e&&Z[_e]||Z["@@iterator"],typeof Z=="function"?Z:null)}function s(Z,Me){Z=(Z=Z.constructor)&&(Z.displayName||Z.name)||"ReactClass";var rt=Z+"."+Me;ut[rt]||(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.",Me,Z),ut[rt]=!0)}function f(Z,Me,rt){this.props=Z,this.context=Me,this.refs=vt,this.updater=rt||Ot}function d(){}function h(Z,Me,rt){this.props=Z,this.context=Me,this.refs=vt,this.updater=rt||Ot}function y(){}function b(Z){return""+Z}function x(Z){try{b(Z);var Me=!1}catch{Me=!0}if(Me){Me=console;var rt=Me.error,Ne=typeof Symbol=="function"&&Symbol.toStringTag&&Z[Symbol.toStringTag]||Z.constructor.name||"Object";return rt.call(Me,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Ne),b(Z)}}function T(Z){if(Z==null)return null;if(typeof Z=="function")return Z.$$typeof===Dn?null:Z.displayName||Z.name||null;if(typeof Z=="string")return Z;switch(Z){case J:return"Fragment";case Re:return"Profiler";case F:return"StrictMode";case Fe:return"Suspense";case Ze:return"SuspenseList";case $e:return"Activity"}if(typeof Z=="object")switch(typeof Z.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),Z.$$typeof){case q:return"Portal";case De:return Z.displayName||"Context";case be:return(Z._context.displayName||"Context")+".Consumer";case Pe:var Me=Z.render;return Z=Z.displayName,Z||(Z=Me.displayName||Me.name||"",Z=Z!==""?"ForwardRef("+Z+")":"ForwardRef"),Z;case Qe:return Me=Z.displayName||null,Me!==null?Me:T(Z.type)||"Memo";case tt:Me=Z._payload,Z=Z._init;try{return T(Z(Me))}catch{}}return null}function w(Z){if(Z===J)return"<>";if(typeof Z=="object"&&Z!==null&&Z.$$typeof===tt)return"<...>";try{var Me=T(Z);return Me?"<"+Me+">":"<...>"}catch{return"<...>"}}function C(){var Z=lt.A;return Z===null?null:Z.getOwner()}function R(){return Error("react-stack-top-frame")}function _(Z){if(Mt.call(Z,"key")){var Me=Object.getOwnPropertyDescriptor(Z,"key").get;if(Me&&Me.isReactWarning)return!1}return Z.key!==void 0}function N(Z,Me){function rt(){$t||($t=!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)",Me))}rt.isReactWarning=!0,Object.defineProperty(Z,"key",{get:rt,configurable:!0})}function z(){var Z=T(this.type);return Ee[Z]||(Ee[Z]=!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.")),Z=this.props.ref,Z!==void 0?Z:null}function B(Z,Me,rt,Ne,Ke,At){var St=rt.ref;return Z={$$typeof:ee,type:Z,key:Me,props:rt,_owner:Ne},(St!==void 0?St:null)!==null?Object.defineProperty(Z,"ref",{enumerable:!1,get:z}):Object.defineProperty(Z,"ref",{enumerable:!1,value:null}),Z._store={},Object.defineProperty(Z._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(Z,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(Z,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:Ke}),Object.defineProperty(Z,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:At}),Object.freeze&&(Object.freeze(Z.props),Object.freeze(Z)),Z}function V(Z,Me){return Me=B(Z.type,Me,Z.props,Z._owner,Z._debugStack,Z._debugTask),Z._store&&(Me._store.validated=Z._store.validated),Me}function I(Z){P(Z)?Z._store&&(Z._store.validated=1):typeof Z=="object"&&Z!==null&&Z.$$typeof===tt&&(Z._payload.status==="fulfilled"?P(Z._payload.value)&&Z._payload.value._store&&(Z._payload.value._store.validated=1):Z._store&&(Z._store.validated=1))}function P(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===ee}function Y(Z){var Me={"=":"=0",":":"=2"};return"$"+Z.replace(/[=:]/g,function(rt){return Me[rt]})}function se(Z,Me){return typeof Z=="object"&&Z!==null&&Z.key!=null?(x(Z.key),Y(""+Z.key)):Me.toString(36)}function ue(Z){switch(Z.status){case"fulfilled":return Z.value;case"rejected":throw Z.reason;default:switch(typeof Z.status=="string"?Z.then(y,y):(Z.status="pending",Z.then(function(Me){Z.status==="pending"&&(Z.status="fulfilled",Z.value=Me)},function(Me){Z.status==="pending"&&(Z.status="rejected",Z.reason=Me)})),Z.status){case"fulfilled":return Z.value;case"rejected":throw Z.reason}}throw Z}function re(Z,Me,rt,Ne,Ke){var At=typeof Z;(At==="undefined"||At==="boolean")&&(Z=null);var St=!1;if(Z===null)St=!0;else switch(At){case"bigint":case"string":case"number":St=!0;break;case"object":switch(Z.$$typeof){case ee:case q:St=!0;break;case tt:return St=Z._init,re(St(Z._payload),Me,rt,Ne,Ke)}}if(St){St=Z,Ke=Ke(St);var Xt=Ne===""?"."+se(St,0):Ne;return un(Ke)?(rt="",Xt!=null&&(rt=Xt.replace(dt,"$&/")+"/"),re(Ke,Me,rt,"",function(tr){return tr})):Ke!=null&&(P(Ke)&&(Ke.key!=null&&(St&&St.key===Ke.key||x(Ke.key)),rt=V(Ke,rt+(Ke.key==null||St&&St.key===Ke.key?"":(""+Ke.key).replace(dt,"$&/")+"/")+Xt),Ne!==""&&St!=null&&P(St)&&St.key==null&&St._store&&!St._store.validated&&(rt._store.validated=2),Ke=rt),Me.push(Ke)),1}if(St=0,Xt=Ne===""?".":Ne+":",un(Z))for(var pt=0;pt<Z.length;pt++)Ne=Z[pt],At=Xt+se(Ne,pt),St+=re(Ne,Me,rt,At,Ke);else if(pt=o(Z),typeof pt=="function")for(pt===Z.entries&&(mt||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),mt=!0),Z=pt.call(Z),pt=0;!(Ne=Z.next()).done;)Ne=Ne.value,At=Xt+se(Ne,pt++),St+=re(Ne,Me,rt,At,Ke);else if(At==="object"){if(typeof Z.then=="function")return re(ue(Z),Me,rt,Ne,Ke);throw Me=String(Z),Error("Objects are not valid as a React child (found: "+(Me==="[object Object]"?"object with keys {"+Object.keys(Z).join(", ")+"}":Me)+"). If you meant to render a collection of children, use an array instead.")}return St}function le(Z,Me,rt){if(Z==null)return Z;var Ne=[],Ke=0;return re(Z,Ne,"","",function(At){return Me.call(rt,At,Ke++)}),Ne}function $(Z){if(Z._status===-1){var Me=Z._ioInfo;Me!=null&&(Me.start=Me.end=performance.now()),Me=Z._result;var rt=Me();if(rt.then(function(Ke){if(Z._status===0||Z._status===-1){Z._status=1,Z._result=Ke;var At=Z._ioInfo;At!=null&&(At.end=performance.now()),rt.status===void 0&&(rt.status="fulfilled",rt.value=Ke)}},function(Ke){if(Z._status===0||Z._status===-1){Z._status=2,Z._result=Ke;var At=Z._ioInfo;At!=null&&(At.end=performance.now()),rt.status===void 0&&(rt.status="rejected",rt.reason=Ke)}}),Me=Z._ioInfo,Me!=null){Me.value=rt;var Ne=rt.displayName;typeof Ne=="string"&&(Me.name=Ne)}Z._status===-1&&(Z._status=0,Z._result=rt)}if(Z._status===1)return Me=Z._result,Me===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?`,Me),"default"in Me||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s

Your code should look like: 
  const MyComponent = lazy(() => import('./MyComponent'))`,Me),Me.default;throw Z._result}function oe(){var Z=lt.H;return Z===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.`),Z}function W(){lt.asyncTransitions--}function ie(Z){if(kt===null)try{var Me=("require"+Math.random()).slice(0,7);kt=(e&&e[Me]).call(e,"timers").setImmediate}catch{kt=function(Ne){pn===!1&&(pn=!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 Ke=new MessageChannel;Ke.port1.onmessage=Ne,Ke.port2.postMessage(void 0)}}return kt(Z)}function K(Z){return 1<Z.length&&typeof AggregateError=="function"?new AggregateError(Z):Z[0]}function ae(Z,Me){Me!==Vt-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. "),Vt=Me}function pe(Z,Me,rt){var Ne=lt.actQueue;if(Ne!==null)if(Ne.length!==0)try{Te(Ne),ie(function(){return pe(Z,Me,rt)});return}catch(Ke){lt.thrownErrors.push(Ke)}else lt.actQueue=null;0<lt.thrownErrors.length?(Ne=K(lt.thrownErrors),lt.thrownErrors.length=0,rt(Ne)):Me(Z)}function Te(Z){if(!yn){yn=!0;var Me=0;try{for(;Me<Z.length;Me++){var rt=Z[Me];do{lt.didUsePromise=!1;var Ne=rt(!1);if(Ne!==null){if(lt.didUsePromise){Z[Me]=rt,Z.splice(0,Me);return}rt=Ne}else break}while(!0)}Z.length=0}catch(Ke){Z.splice(0,Me+1),lt.thrownErrors.push(Ke)}finally{yn=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ee=Symbol.for("react.transitional.element"),q=Symbol.for("react.portal"),J=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),Re=Symbol.for("react.profiler"),be=Symbol.for("react.consumer"),De=Symbol.for("react.context"),Pe=Symbol.for("react.forward_ref"),Fe=Symbol.for("react.suspense"),Ze=Symbol.for("react.suspense_list"),Qe=Symbol.for("react.memo"),tt=Symbol.for("react.lazy"),$e=Symbol.for("react.activity"),_e=Symbol.iterator,ut={},Ot={isMounted:function(){return!1},enqueueForceUpdate:function(Z){s(Z,"forceUpdate")},enqueueReplaceState:function(Z){s(Z,"replaceState")},enqueueSetState:function(Z){s(Z,"setState")}},Qt=Object.assign,vt={};Object.freeze(vt),f.prototype.isReactComponent={},f.prototype.setState=function(Z,Me){if(typeof Z!="object"&&typeof Z!="function"&&Z!=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,Z,Me,"setState")},f.prototype.forceUpdate=function(Z){this.updater.enqueueForceUpdate(this,Z,"forceUpdate")};var Lt={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(fr in Lt)Lt.hasOwnProperty(fr)&&i(fr,Lt[fr]);d.prototype=f.prototype,Lt=h.prototype=new d,Lt.constructor=h,Qt(Lt,f.prototype),Lt.isPureReactComponent=!0;var un=Array.isArray,Dn=Symbol.for("react.client.reference"),lt={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},Mt=Object.prototype.hasOwnProperty,$n=console.createTask?console.createTask:function(){return null};Lt={react_stack_bottom_frame:function(Z){return Z()}};var $t,nt,Ee={},Ue=Lt.react_stack_bottom_frame.bind(Lt,R)(),st=$n(w(R)),mt=!1,dt=/\/+/g,bt=typeof reportError=="function"?reportError:function(Z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Me=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof Z=="object"&&Z!==null&&typeof Z.message=="string"?String(Z.message):String(Z),error:Z});if(!window.dispatchEvent(Me))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",Z);return}console.error(Z)},pn=!1,kt=null,Vt=0,Fn=!1,yn=!1,Yr=typeof queueMicrotask=="function"?function(Z){queueMicrotask(function(){return queueMicrotask(Z)})}:ie;Lt=Object.freeze({__proto__:null,c:function(Z){return oe().useMemoCache(Z)}});var fr={map:le,forEach:function(Z,Me,rt){le(Z,function(){Me.apply(this,arguments)},rt)},count:function(Z){var Me=0;return le(Z,function(){Me++}),Me},toArray:function(Z){return le(Z,function(Me){return Me})||[]},only:function(Z){if(!P(Z))throw Error("React.Children.only expected to receive a single React element child.");return Z}};t.Activity=$e,t.Children=fr,t.Component=f,t.Fragment=J,t.Profiler=Re,t.PureComponent=h,t.StrictMode=F,t.Suspense=Fe,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=lt,t.__COMPILER_RUNTIME=Lt,t.act=function(Z){var Me=lt.actQueue,rt=Vt;Vt++;var Ne=lt.actQueue=Me!==null?Me:[],Ke=!1;try{var At=Z()}catch(pt){lt.thrownErrors.push(pt)}if(0<lt.thrownErrors.length)throw ae(Me,rt),Z=K(lt.thrownErrors),lt.thrownErrors.length=0,Z;if(At!==null&&typeof At=="object"&&typeof At.then=="function"){var St=At;return Yr(function(){Ke||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(pt,tr){Ke=!0,St.then(function(Hi){if(ae(Me,rt),rt===0){try{Te(Ne),ie(function(){return pe(Hi,pt,tr)})}catch(yf){lt.thrownErrors.push(yf)}if(0<lt.thrownErrors.length){var Ug=K(lt.thrownErrors);lt.thrownErrors.length=0,tr(Ug)}}else pt(Hi)},function(Hi){ae(Me,rt),0<lt.thrownErrors.length&&(Hi=K(lt.thrownErrors),lt.thrownErrors.length=0),tr(Hi)})}}}var Xt=At;if(ae(Me,rt),rt===0&&(Te(Ne),Ne.length!==0&&Yr(function(){Ke||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(() => ...)"))}),lt.actQueue=null),0<lt.thrownErrors.length)throw Z=K(lt.thrownErrors),lt.thrownErrors.length=0,Z;return{then:function(pt,tr){Ke=!0,rt===0?(lt.actQueue=Ne,ie(function(){return pe(Xt,pt,tr)})):pt(Xt)}}},t.cache=function(Z){return function(){return Z.apply(null,arguments)}},t.cacheSignal=function(){return null},t.captureOwnerStack=function(){var Z=lt.getCurrentStack;return Z===null?null:Z()},t.cloneElement=function(Z,Me,rt){if(Z==null)throw Error("The argument must be a React element, but you passed "+Z+".");var Ne=Qt({},Z.props),Ke=Z.key,At=Z._owner;if(Me!=null){var St;e:{if(Mt.call(Me,"ref")&&(St=Object.getOwnPropertyDescriptor(Me,"ref").get)&&St.isReactWarning){St=!1;break e}St=Me.ref!==void 0}St&&(At=C()),_(Me)&&(x(Me.key),Ke=""+Me.key);for(Xt in Me)!Mt.call(Me,Xt)||Xt==="key"||Xt==="__self"||Xt==="__source"||Xt==="ref"&&Me.ref===void 0||(Ne[Xt]=Me[Xt])}var Xt=arguments.length-2;if(Xt===1)Ne.children=rt;else if(1<Xt){St=Array(Xt);for(var pt=0;pt<Xt;pt++)St[pt]=arguments[pt+2];Ne.children=St}for(Ne=B(Z.type,Ke,Ne,At,Z._debugStack,Z._debugTask),Ke=2;Ke<arguments.length;Ke++)I(arguments[Ke]);return Ne},t.createContext=function(Z){return Z={$$typeof:De,_currentValue:Z,_currentValue2:Z,_threadCount:0,Provider:null,Consumer:null},Z.Provider=Z,Z.Consumer={$$typeof:be,_context:Z},Z._currentRenderer=null,Z._currentRenderer2=null,Z},t.createElement=function(Z,Me,rt){for(var Ne=2;Ne<arguments.length;Ne++)I(arguments[Ne]);Ne={};var Ke=null;if(Me!=null)for(pt in nt||!("__self"in Me)||"key"in Me||(nt=!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")),_(Me)&&(x(Me.key),Ke=""+Me.key),Me)Mt.call(Me,pt)&&pt!=="key"&&pt!=="__self"&&pt!=="__source"&&(Ne[pt]=Me[pt]);var At=arguments.length-2;if(At===1)Ne.children=rt;else if(1<At){for(var St=Array(At),Xt=0;Xt<At;Xt++)St[Xt]=arguments[Xt+2];Object.freeze&&Object.freeze(St),Ne.children=St}if(Z&&Z.defaultProps)for(pt in At=Z.defaultProps,At)Ne[pt]===void 0&&(Ne[pt]=At[pt]);Ke&&N(Ne,typeof Z=="function"?Z.displayName||Z.name||"Unknown":Z);var pt=1e4>lt.recentlyCreatedOwnerStacks++;return B(Z,Ke,Ne,C(),pt?Error("react-stack-top-frame"):Ue,pt?$n(w(Z)):st)},t.createRef=function(){var Z={current:null};return Object.seal(Z),Z},t.forwardRef=function(Z){Z!=null&&Z.$$typeof===Qe?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof Z!="function"?console.error("forwardRef requires a render function but was given %s.",Z===null?"null":typeof Z):Z.length!==0&&Z.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",Z.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),Z!=null&&Z.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var Me={$$typeof:Pe,render:Z},rt;return Object.defineProperty(Me,"displayName",{enumerable:!1,configurable:!0,get:function(){return rt},set:function(Ne){rt=Ne,Z.name||Z.displayName||(Object.defineProperty(Z,"name",{value:Ne}),Z.displayName=Ne)}}),Me},t.isValidElement=P,t.lazy=function(Z){Z={_status:-1,_result:Z};var Me={$$typeof:tt,_payload:Z,_init:$},rt={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return Z._ioInfo=rt,Me._debugInfo=[{awaited:rt}],Me},t.memo=function(Z,Me){Z==null&&console.error("memo: The first argument must be a component. Instead received: %s",Z===null?"null":typeof Z),Me={$$typeof:Qe,type:Z,compare:Me===void 0?null:Me};var rt;return Object.defineProperty(Me,"displayName",{enumerable:!1,configurable:!0,get:function(){return rt},set:function(Ne){rt=Ne,Z.name||Z.displayName||(Object.defineProperty(Z,"name",{value:Ne}),Z.displayName=Ne)}}),Me},t.startTransition=function(Z){var Me=lt.T,rt={};rt._updatedFibers=new Set,lt.T=rt;try{var Ne=Z(),Ke=lt.S;Ke!==null&&Ke(rt,Ne),typeof Ne=="object"&&Ne!==null&&typeof Ne.then=="function"&&(lt.asyncTransitions++,Ne.then(W,W),Ne.then(y,bt))}catch(At){bt(At)}finally{Me===null&&rt._updatedFibers&&(Z=rt._updatedFibers.size,rt._updatedFibers.clear(),10<Z&&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.")),Me!==null&&rt.types!==null&&(Me.types!==null&&Me.types!==rt.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."),Me.types=rt.types),lt.T=Me}},t.unstable_useCacheRefresh=function(){return oe().useCacheRefresh()},t.use=function(Z){return oe().use(Z)},t.useActionState=function(Z,Me,rt){return oe().useActionState(Z,Me,rt)},t.useCallback=function(Z,Me){return oe().useCallback(Z,Me)},t.useContext=function(Z){var Me=oe();return Z.$$typeof===be&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),Me.useContext(Z)},t.useDebugValue=function(Z,Me){return oe().useDebugValue(Z,Me)},t.useDeferredValue=function(Z,Me){return oe().useDeferredValue(Z,Me)},t.useEffect=function(Z,Me){return Z==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),oe().useEffect(Z,Me)},t.useEffectEvent=function(Z){return oe().useEffectEvent(Z)},t.useId=function(){return oe().useId()},t.useImperativeHandle=function(Z,Me,rt){return oe().useImperativeHandle(Z,Me,rt)},t.useInsertionEffect=function(Z,Me){return Z==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),oe().useInsertionEffect(Z,Me)},t.useLayoutEffect=function(Z,Me){return Z==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),oe().useLayoutEffect(Z,Me)},t.useMemo=function(Z,Me){return oe().useMemo(Z,Me)},t.useOptimistic=function(Z,Me){return oe().useOptimistic(Z,Me)},t.useReducer=function(Z,Me,rt){return oe().useReducer(Z,Me,rt)},t.useRef=function(Z){return oe().useRef(Z)},t.useState=function(Z){return oe().useState(Z)},t.useSyncExternalStore=function(Z,Me,rt){return oe().useSyncExternalStore(Z,Me,rt)},t.useTransition=function(){return oe().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 fC;function Od(){if(fC)return I5.exports;fC=1;var e={};return e.NODE_ENV==="production"?I5.exports=uB():I5.exports=cB(),I5.exports}var L5={exports:{}},za={};/**
 * @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 dC;function fB(){if(dC)return za;dC=1;var e=Od();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 x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:x==null?null:""+x,children:h,containerInfo:y,implementation:b}}var f=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 za.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,za.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)},za.flushSync=function(h){var y=f.T,b=i.p;try{if(f.T=null,i.p=2,h)return h()}finally{f.T=y,i.p=b,i.d.f()}},za.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))},za.prefetchDNS=function(h){typeof h=="string"&&i.d.D(h)},za.preinit=function(h,y){if(typeof h=="string"&&y&&typeof y.as=="string"){var b=y.as,x=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:x,integrity:T,fetchPriority:w}):b==="script"&&i.d.X(h,{crossOrigin:x,integrity:T,fetchPriority:w,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},za.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)},za.preload=function(h,y){if(typeof h=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var b=y.as,x=d(b,y.crossOrigin);i.d.L(h,b,{crossOrigin:x,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})}},za.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)},za.requestFormReset=function(h){i.d.r(h)},za.unstable_batchedUpdates=function(h,y){return h(y)},za.useFormState=function(h,y,b){return f.H.useFormState(h,y,b)},za.useFormStatus=function(){return f.H.useHostTransitionStatus()},za.version="19.2.4",za}var Ia={},hC;function dB(){if(hC)return Ia;hC=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 R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{n(R);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&&R[Symbol.toStringTag]||R.constructor.name||"Object"),n(R)),{$$typeof:b,key:R==null?null:""+R,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 f(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=x.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=Od(),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"),x=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"),Ia.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=y,Ia.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)},Ia.flushSync=function(T){var w=x.T,C=y.p;try{if(x.T=null,y.p=2,T)return T()}finally{x.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.")}},Ia.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.",f(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))},Ia.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`.",f(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`.",f(w))}typeof T=="string"&&y.d.D(T)},Ia.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.",f(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".',f(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,R=o(C,w.crossOrigin),_=typeof w.integrity=="string"?w.integrity:void 0,N=typeof w.fetchPriority=="string"?w.fetchPriority:void 0;C==="style"?y.d.S(T,typeof w.precedence=="string"?w.precedence:void 0,{crossOrigin:R,integrity:_,fetchPriority:N}):C==="script"&&y.d.X(T,{crossOrigin:R,integrity:_,fetchPriority:N,nonce:typeof w.nonce=="string"?w.nonce:void 0})}},Ia.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 "+f(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=f(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))},Ia.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 R=o(C,w.crossOrigin);y.d.L(T,C,{crossOrigin:R,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})}},Ia.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))},Ia.requestFormReset=function(T){y.d.r(T)},Ia.unstable_batchedUpdates=function(T,w){return T(w)},Ia.useFormState=function(T,w,C){return d().useFormState(T,w,C)},Ia.useFormStatus=function(){return d().useHostTransitionStatus()},Ia.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Ia}var pC;function R7(){if(pC)return L5.exports;pC=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(),L5.exports=fB()):L5.exports=dB(),L5.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 mC;function hB(){if(mC)return ov;mC=1;var e=sC(),t=Od(),n=R7();function i(l){var c="https://react.dev/errors/"+l;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)c+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+l+"; visit "+c+" 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 c=l,m=l;if(l.alternate)for(;c.return;)c=c.return;else{l=c;do c=l,(c.flags&4098)!==0&&(m=c.return),l=c.return;while(l)}return c.tag===3?m:null}function f(l){if(l.tag===13){var c=l.memoizedState;if(c===null&&(l=l.alternate,l!==null&&(c=l.memoizedState)),c!==null)return c.dehydrated}return null}function d(l){if(l.tag===31){var c=l.memoizedState;if(c===null&&(l=l.alternate,l!==null&&(c=l.memoizedState)),c!==null)return c.dehydrated}return null}function h(l){if(s(l)!==l)throw Error(i(188))}function y(l){var c=l.alternate;if(!c){if(c=s(l),c===null)throw Error(i(188));return c!==l?null:l}for(var m=l,v=c;;){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),c;O=O.sibling}throw Error(i(188))}if(m.return!==v.return)m=A,v=O;else{for(var U=!1,te=A.child;te;){if(te===m){U=!0,m=A,v=O;break}if(te===v){U=!0,v=A,m=O;break}te=te.sibling}if(!U){for(te=O.child;te;){if(te===m){U=!0,m=O,v=A;break}if(te===v){U=!0,v=O,m=A;break}te=te.sibling}if(!U)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:c}function b(l){var c=l.tag;if(c===5||c===26||c===27||c===6)return l;for(l=l.child;l!==null;){if(c=b(l),c!==null)return c;l=l.sibling}return null}var x=Object.assign,T=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),B=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),se=Symbol.for("react.lazy"),ue=Symbol.for("react.activity"),re=Symbol.for("react.memo_cache_sentinel"),le=Symbol.iterator;function $(l){return l===null||typeof l!="object"?null:(l=le&&l[le]||l["@@iterator"],typeof l=="function"?l:null)}var oe=Symbol.for("react.client.reference");function W(l){if(l==null)return null;if(typeof l=="function")return l.$$typeof===oe?null:l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case R:return"Fragment";case N:return"Profiler";case _:return"StrictMode";case I:return"Suspense";case P:return"SuspenseList";case ue:return"Activity"}if(typeof l=="object")switch(l.$$typeof){case C:return"Portal";case B:return l.displayName||"Context";case z:return(l._context.displayName||"Context")+".Consumer";case V:var c=l.render;return l=l.displayName,l||(l=c.displayName||c.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case Y:return c=l.displayName||null,c!==null?c:W(l.type)||"Memo";case se:c=l._payload,l=l._init;try{return W(l(c))}catch{}}return null}var ie=Array.isArray,K=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,pe={pending:!1,data:null,method:null,action:null},Te=[],ee=-1;function q(l){return{current:l}}function J(l){0>ee||(l.current=Te[ee],Te[ee]=null,ee--)}function F(l,c){ee++,Te[ee]=l.current,l.current=c}var Re=q(null),be=q(null),De=q(null),Pe=q(null);function Fe(l,c){switch(F(De,c),F(be,l),F(Re,null),c.nodeType){case 9:case 11:l=(l=c.documentElement)&&(l=l.namespaceURI)?D0(l):0;break;default:if(l=c.tagName,c=c.namespaceURI)c=D0(c),l=bE(c,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}J(Re),F(Re,l)}function Ze(){J(Re),J(be),J(De)}function Qe(l){l.memoizedState!==null&&F(Pe,l);var c=Re.current,m=bE(c,l.type);c!==m&&(F(be,l),F(Re,m))}function tt(l){be.current===l&&(J(Re),J(be)),Pe.current===l&&(J(Pe),ei._currentValue=pe)}var $e,_e;function ut(l){if($e===void 0)try{throw Error()}catch(m){var c=m.stack.trim().match(/\n( *(at )?)/);$e=c&&c[1]||"",_e=-1<m.stack.indexOf(`
    at`)?" (<anonymous>)":-1<m.stack.indexOf("@")?"@unknown:0:0":""}return`
`+$e+l+_e}var Ot=!1;function Qt(l,c){if(!l||Ot)return"";Ot=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var v={DetermineComponentFrameRoot:function(){try{if(c){var Je=function(){throw Error()};if(Object.defineProperty(Je.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Je,[])}catch(He){var Be=He}Reflect.construct(l,[],Je)}else{try{Je.call()}catch(He){Be=He}l.call(Je.prototype)}}else{try{throw Error()}catch(He){Be=He}(Je=l())&&typeof Je.catch=="function"&&Je.catch(function(){})}}catch(He){if(He&&Be&&typeof He.stack=="string")return[He.stack,Be.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(),U=O[0],te=O[1];if(U&&te){var ve=U.split(`
`),Ie=te.split(`
`);for(A=v=0;v<ve.length&&!ve[v].includes("DetermineComponentFrameRoot");)v++;for(;A<Ie.length&&!Ie[A].includes("DetermineComponentFrameRoot");)A++;if(v===ve.length||A===Ie.length)for(v=ve.length-1,A=Ie.length-1;1<=v&&0<=A&&ve[v]!==Ie[A];)A--;for(;1<=v&&0<=A;v--,A--)if(ve[v]!==Ie[A]){if(v!==1||A!==1)do if(v--,A--,0>A||ve[v]!==Ie[A]){var Ge=`
`+ve[v].replace(" at new "," at ");return l.displayName&&Ge.includes("<anonymous>")&&(Ge=Ge.replace("<anonymous>",l.displayName)),Ge}while(1<=v&&0<=A);break}}}finally{Ot=!1,Error.prepareStackTrace=m}return(m=l?l.displayName||l.name:"")?ut(m):""}function vt(l,c){switch(l.tag){case 26:case 27:case 5:return ut(l.type);case 16:return ut("Lazy");case 13:return l.child!==c&&c!==null?ut("Suspense Fallback"):ut("Suspense");case 19:return ut("SuspenseList");case 0:case 15:return Qt(l.type,!1);case 11:return Qt(l.type.render,!1);case 1:return Qt(l.type,!0);case 31:return ut("Activity");default:return""}}function Lt(l){try{var c="",m=null;do c+=vt(l,m),m=l,l=l.return;while(l);return c}catch(v){return`
Error generating stack: `+v.message+`
`+v.stack}}var un=Object.prototype.hasOwnProperty,Dn=e.unstable_scheduleCallback,lt=e.unstable_cancelCallback,Mt=e.unstable_shouldYield,$n=e.unstable_requestPaint,$t=e.unstable_now,nt=e.unstable_getCurrentPriorityLevel,Ee=e.unstable_ImmediatePriority,Ue=e.unstable_UserBlockingPriority,st=e.unstable_NormalPriority,mt=e.unstable_LowPriority,dt=e.unstable_IdlePriority,bt=e.log,pn=e.unstable_setDisableYieldValue,kt=null,Vt=null;function Fn(l){if(typeof bt=="function"&&pn(l),Vt&&typeof Vt.setStrictMode=="function")try{Vt.setStrictMode(kt,l)}catch{}}var yn=Math.clz32?Math.clz32:Z,Yr=Math.log,fr=Math.LN2;function Z(l){return l>>>=0,l===0?32:31-(Yr(l)/fr|0)|0}var Me=256,rt=262144,Ne=4194304;function Ke(l){var c=l&42;if(c!==0)return c;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 At(l,c,m){var v=l.pendingLanes;if(v===0)return 0;var A=0,O=l.suspendedLanes,U=l.pingedLanes;l=l.warmLanes;var te=v&134217727;return te!==0?(v=te&~O,v!==0?A=Ke(v):(U&=te,U!==0?A=Ke(U):m||(m=te&~l,m!==0&&(A=Ke(m))))):(te=v&~O,te!==0?A=Ke(te):U!==0?A=Ke(U):m||(m=v&~l,m!==0&&(A=Ke(m)))),A===0?0:c!==0&&c!==A&&(c&O)===0&&(O=A&-A,m=c&-c,O>=m||O===32&&(m&4194048)!==0)?c:A}function St(l,c){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&c)===0}function Xt(l,c){switch(l){case 1:case 2:case 4:case 8:case 64:return c+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 c+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 pt(){var l=Ne;return Ne<<=1,(Ne&62914560)===0&&(Ne=4194304),l}function tr(l){for(var c=[],m=0;31>m;m++)c.push(l);return c}function Hi(l,c){l.pendingLanes|=c,c!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function Ug(l,c,m,v,A,O){var U=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 te=l.entanglements,ve=l.expirationTimes,Ie=l.hiddenUpdates;for(m=U&~m;0<m;){var Ge=31-yn(m),Je=1<<Ge;te[Ge]=0,ve[Ge]=-1;var Be=Ie[Ge];if(Be!==null)for(Ie[Ge]=null,Ge=0;Ge<Be.length;Ge++){var He=Be[Ge];He!==null&&(He.lane&=-536870913)}m&=~Je}v!==0&&yf(l,v,0),O!==0&&A===0&&l.tag!==0&&(l.suspendedLanes|=O&~(U&~c))}function yf(l,c,m){l.pendingLanes|=c,l.suspendedLanes&=~c;var v=31-yn(c);l.entangledLanes|=c,l.entanglements[v]=l.entanglements[v]|1073741824|m&261930}function Bh(l,c){var m=l.entangledLanes|=c;for(l=l.entanglements;m;){var v=31-yn(m),A=1<<v;A&c|l[v]&c&&(l[v]|=c),m&=~A}}function as(l,c){var m=c&-c;return m=(m&42)!==0?1:Ha(m),(m&(l.suspendedLanes|c))!==0?0:m}function Ha(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 Pg(l){return l&=-l,2<l?8<l?(l&134217727)!==0?32:268435456:8:2}function y6(){var l=ae.p;return l!==0?l:(l=window.event,l===void 0?32:hm(l.type))}function $g(l,c){var m=ae.p;try{return ae.p=l,c()}finally{ae.p=m}}var pu=Math.random().toString(36).slice(2),pi="__reactFiber$"+pu,Mr="__reactProps$"+pu,vf="__reactContainer$"+pu,Vh="__reactEvents$"+pu,v6="__reactListeners$"+pu,Pb="__reactHandles$"+pu,$b="__reactResources$"+pu,Yd="__reactMarker$"+pu;function mc(l){delete l[pi],delete l[Mr],delete l[Vh],delete l[v6],delete l[Pb]}function bf(l){var c=l[pi];if(c)return c;for(var m=l.parentNode;m;){if(c=m[vf]||m[pi]){if(m=c.alternate,c.child!==null||m!==null&&m.child!==null)for(l=py(l);l!==null;){if(m=l[pi])return m;l=py(l)}return c}l=m,m=l.parentNode}return null}function Sf(l){if(l=l[pi]||l[vf]){var c=l.tag;if(c===5||c===6||c===13||c===31||c===26||c===27||c===3)return l}return null}function Xd(l){var c=l.tag;if(c===5||c===26||c===27||c===6)return l.stateNode;throw Error(i(33))}function xf(l){var c=l[$b];return c||(c=l[$b]={hoistableStyles:new Map,hoistableScripts:new Map}),c}function Ei(l){l[Yd]=!0}var qa=new Set,Ef={};function vo(l,c){wf(l,c),wf(l+"Capture",c)}function wf(l,c){for(Ef[l]=c,l=0;l<c.length;l++)qa.add(c[l])}var Uh=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]*$"),Ph={},jg={};function $h(l){return un.call(jg,l)?!0:un.call(Ph,l)?!1:Uh.test(l)?jg[l]=!0:(Ph[l]=!0,!1)}function mu(l,c,m){if($h(c))if(m===null)l.removeAttribute(c);else{switch(typeof m){case"undefined":case"function":case"symbol":l.removeAttribute(c);return;case"boolean":var v=c.toLowerCase().slice(0,5);if(v!=="data-"&&v!=="aria-"){l.removeAttribute(c);return}}l.setAttribute(c,""+m)}}function Wd(l,c,m){if(m===null)l.removeAttribute(c);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":l.removeAttribute(c);return}l.setAttribute(c,""+m)}}function gu(l,c,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(c,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 jb(l){var c=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function Hb(l,c,m){var v=Object.getOwnPropertyDescriptor(l.constructor.prototype,c);if(!l.hasOwnProperty(c)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var A=v.get,O=v.set;return Object.defineProperty(l,c,{configurable:!0,get:function(){return A.call(this)},set:function(U){m=""+U,O.call(this,U)}}),Object.defineProperty(l,c,{enumerable:v.enumerable}),{getValue:function(){return m},setValue:function(U){m=""+U},stopTracking:function(){l._valueTracker=null,delete l[c]}}}}function jh(l){if(!l._valueTracker){var c=jb(l)?"checked":"value";l._valueTracker=Hb(l,c,""+l[c])}}function qb(l){if(!l)return!1;var c=l._valueTracker;if(!c)return!0;var m=c.getValue(),v="";return l&&(v=jb(l)?l.checked?"true":"false":l.value),l=v,l!==m?(c.setValue(l),!0):!1}function Hh(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 b6=/[\n"\\]/g;function Xo(l){return l.replace(b6,function(c){return"\\"+c.charCodeAt(0).toString(16)+" "})}function Hg(l,c,m,v,A,O,U,te){l.name="",U!=null&&typeof U!="function"&&typeof U!="symbol"&&typeof U!="boolean"?l.type=U:l.removeAttribute("type"),c!=null?U==="number"?(c===0&&l.value===""||l.value!=c)&&(l.value=""+Yo(c)):l.value!==""+Yo(c)&&(l.value=""+Yo(c)):U!=="submit"&&U!=="reset"||l.removeAttribute("value"),c!=null?Qd(l,U,Yo(c)):m!=null?Qd(l,U,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"),te!=null&&typeof te!="function"&&typeof te!="symbol"&&typeof te!="boolean"?l.name=""+Yo(te):l.removeAttribute("name")}function qg(l,c,m,v,A,O,U,te){if(O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(l.type=O),c!=null||m!=null){if(!(O!=="submit"&&O!=="reset"||c!=null)){jh(l);return}m=m!=null?""+Yo(m):"",c=c!=null?""+Yo(c):m,te||c===l.value||(l.value=c),l.defaultValue=c}v=v??A,v=typeof v!="function"&&typeof v!="symbol"&&!!v,l.checked=te?l.checked:!!v,l.defaultChecked=!!v,U!=null&&typeof U!="function"&&typeof U!="symbol"&&typeof U!="boolean"&&(l.name=U),jh(l)}function Qd(l,c,m){c==="number"&&Hh(l.ownerDocument)===l||l.defaultValue===""+m||(l.defaultValue=""+m)}function os(l,c,m,v){if(l=l.options,c){c={};for(var A=0;A<m.length;A++)c["$"+m[A]]=!0;for(m=0;m<l.length;m++)A=c.hasOwnProperty("$"+l[m].value),l[m].selected!==A&&(l[m].selected=A),A&&v&&(l[m].defaultSelected=!0)}else{for(m=""+Yo(m),c=null,A=0;A<l.length;A++){if(l[A].value===m){l[A].selected=!0,v&&(l[A].defaultSelected=!0);return}c!==null||l[A].disabled||(c=l[A])}c!==null&&(c.selected=!0)}}function S6(l,c,m){if(c!=null&&(c=""+Yo(c),c!==l.value&&(l.value=c),m==null)){l.defaultValue!==c&&(l.defaultValue=c);return}l.defaultValue=m!=null?""+Yo(m):""}function Fb(l,c,m,v){if(c==null){if(v!=null){if(m!=null)throw Error(i(92));if(ie(v)){if(1<v.length)throw Error(i(93));v=v[0]}m=v}m==null&&(m=""),c=m}m=Yo(c),l.defaultValue=m,v=l.textContent,v===m&&v!==""&&v!==null&&(l.value=v),jh(l)}function Tf(l,c){if(c){var m=l.firstChild;if(m&&m===l.lastChild&&m.nodeType===3){m.nodeValue=c;return}}l.textContent=c}var qh=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 Gb(l,c,m){var v=c.indexOf("--")===0;m==null||typeof m=="boolean"||m===""?v?l.setProperty(c,""):c==="float"?l.cssFloat="":l[c]="":v?l.setProperty(c,m):typeof m!="number"||m===0||qh.has(c)?c==="float"?l.cssFloat=m:l[c]=(""+m).trim():l[c]=m+"px"}function x6(l,c,m){if(c!=null&&typeof c!="object")throw Error(i(62));if(l=l.style,m!=null){for(var v in m)!m.hasOwnProperty(v)||c!=null&&c.hasOwnProperty(v)||(v.indexOf("--")===0?l.setProperty(v,""):v==="float"?l.cssFloat="":l[v]="");for(var A in c)v=c[A],c.hasOwnProperty(A)&&m[A]!==v&&Gb(l,A,v)}else for(var O in c)c.hasOwnProperty(O)&&Gb(l,O,c[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 k8=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"]]),N8=/^[\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 gc(l){return N8.test(""+l)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":l}function qi(){}var Fh=null;function Fg(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var Af=null,ls=null;function Xb(l){var c=Sf(l);if(c&&(l=c.stateNode)){var m=l[Mr]||null;e:switch(l=c.stateNode,c.type){case"input":if(Hg(l,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name),c=m.name,m.type==="radio"&&c!=null){for(m=l;m.parentNode;)m=m.parentNode;for(m=m.querySelectorAll('input[name="'+Xo(""+c)+'"][type="radio"]'),c=0;c<m.length;c++){var v=m[c];if(v!==l&&v.form===l.form){var A=v[Mr]||null;if(!A)throw Error(i(90));Hg(v,A.value,A.defaultValue,A.defaultValue,A.checked,A.defaultChecked,A.type,A.name)}}for(c=0;c<m.length;c++)v=m[c],v.form===l.form&&qb(v)}break e;case"textarea":S6(l,m.value,m.defaultValue);break e;case"select":c=m.value,c!=null&&os(l,!!m.multiple,c,!1)}}}var Kd=!1;function Gh(l,c,m){if(Kd)return l(c,m);Kd=!0;try{var v=l(c);return v}finally{if(Kd=!1,(Af!==null||ls!==null)&&(Wp(),Af&&(c=Af,l=ls,ls=Af=null,Xb(c),l)))for(c=0;c<l.length;c++)Xb(l[c])}}function Zd(l,c){var m=l.stateNode;if(m===null)return null;var v=m[Mr]||null;if(v===null)return null;m=v[c];e:switch(c){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,c,typeof m));return m}var Xr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Wb=!1;if(Xr)try{var Cf={};Object.defineProperty(Cf,"passive",{get:function(){Wb=!0}}),window.addEventListener("test",Cf,Cf),window.removeEventListener("test",Cf,Cf)}catch{Wb=!1}var yu=null,Gg=null,Yg=null;function E6(){if(Yg)return Yg;var l,c=Gg,m=c.length,v,A="value"in yu?yu.value:yu.textContent,O=A.length;for(l=0;l<m&&c[l]===A[l];l++);var U=m-l;for(v=1;v<=U&&c[m-v]===A[O-v];v++);return Yg=A.slice(l,1<v?1-v:void 0)}function Yh(l){var c=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&c===13&&(l=13)):l=c,l===10&&(l=13),32<=l||l===13?l:0}function Xg(){return!0}function Qb(){return!1}function Fa(l){function c(m,v,A,O,U){this._reactName=m,this._targetInst=A,this.type=v,this.nativeEvent=O,this.target=U,this.currentTarget=null;for(var te in l)l.hasOwnProperty(te)&&(m=l[te],this[te]=m?m(O):O[te]);return this.isDefaultPrevented=(O.defaultPrevented!=null?O.defaultPrevented:O.returnValue===!1)?Xg:Qb,this.isPropagationStopped=Qb,this}return x(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=Xg)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=Xg)},persist:function(){},isPersistent:Xg}),c}var ss={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xh=Fa(ss),Jd=x({},ss,{view:0,detail:0}),w6=Fa(Jd),Kb,Zb,Wh,Wg=x({},Jd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bo,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!==Wh&&(Wh&&l.type==="mousemove"?(Kb=l.screenX-Wh.screenX,Zb=l.screenY-Wh.screenY):Zb=Kb=0,Wh=l),Kb)},movementY:function(l){return"movementY"in l?l.movementY:Zb}}),T6=Fa(Wg),Qh=x({},Wg,{dataTransfer:0}),A6=Fa(Qh),C6=x({},Jd,{relatedTarget:0}),Qg=Fa(C6),O6=x({},ss,{animationName:0,elapsedTime:0,pseudoElement:0}),Jb=Fa(O6),M6=x({},ss,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),Of=Fa(M6),Mf=x({},ss,{data:0}),Wo=Fa(Mf),z8={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"},us={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function R6(l){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(l):(l=us[l])?!!c[l]:!1}function bo(){return R6}var cs=x({},Jd,{key:function(l){if(l.key){var c=z8[l.key]||l.key;if(c!=="Unidentified")return c}return l.type==="keypress"?(l=Yh(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:bo,charCode:function(l){return l.type==="keypress"?Yh(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?Yh(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),Kg=Fa(cs),Zg=x({},Wg,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Jg=Fa(Zg),fs=x({},Jd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bo}),I8=Fa(fs),_6=x({},ss,{propertyName:0,elapsedTime:0,pseudoElement:0}),D6=Fa(_6),L8=x({},Wg,{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=Fa(L8),B8=x({},ss,{newState:0,oldState:0}),k6=Fa(B8),n4=[9,13,27,32],e0=Xr&&"CompositionEvent"in window,yc=null;Xr&&"documentMode"in document&&(yc=document.documentMode);var r4=Xr&&"TextEvent"in window&&!yc,Fi=Xr&&(!e0||yc&&8<yc&&11>=yc),i4=" ",Kh=!1;function vc(l,c){switch(l){case"keyup":return n4.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function e1(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var Rf=!1;function N6(l,c){switch(l){case"compositionend":return e1(c);case"keypress":return c.which!==32?null:(Kh=!0,i4);case"textInput":return l=c.data,l===i4&&Kh?null:l;default:return null}}function z6(l,c){if(Rf)return l==="compositionend"||!e0&&vc(l,c)?(l=E6(),Yg=Gg=yu=null,Rf=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return Fi&&c.locale!=="ko"?null:c.data;default:return null}}var V8={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 t1(l){var c=l&&l.nodeName&&l.nodeName.toLowerCase();return c==="input"?!!V8[l.type]:c==="textarea"}function ds(l,c,m,v){Af?ls?ls.push(v):ls=[v]:Af=v,c=ly(c,"onChange"),0<c.length&&(m=new Xh("onChange","change",null,m,v),l.push({event:m,listeners:c}))}var t0=null,_f=null;function n1(l){ES(l,0)}function hs(l){var c=Xd(l);if(qb(c))return l}function r1(l,c){if(l==="change")return c}var a4=!1;if(Xr){var Zh;if(Xr){var Ea="oninput"in document;if(!Ea){var ps=document.createElement("div");ps.setAttribute("oninput","return;"),Ea=typeof ps.oninput=="function"}Zh=Ea}else Zh=!1;a4=Zh&&(!document.documentMode||9<document.documentMode)}function o4(){t0&&(t0.detachEvent("onpropertychange",i1),_f=t0=null)}function i1(l){if(l.propertyName==="value"&&hs(_f)){var c=[];ds(c,_f,l,Fg(l)),Gh(n1,c)}}function l4(l,c,m){l==="focusin"?(o4(),t0=c,_f=m,t0.attachEvent("onpropertychange",i1)):l==="focusout"&&o4()}function I6(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return hs(_f)}function L6(l,c){if(l==="click")return hs(c)}function bc(l,c){if(l==="input"||l==="change")return hs(c)}function Df(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}var Ga=typeof Object.is=="function"?Object.is:Df;function Sc(l,c){if(Ga(l,c))return!0;if(typeof l!="object"||l===null||typeof c!="object"||c===null)return!1;var m=Object.keys(l),v=Object.keys(c);if(m.length!==v.length)return!1;for(v=0;v<m.length;v++){var A=m[v];if(!un.call(c,A)||!Ga(l[A],c[A]))return!1}return!0}function vu(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function s4(l,c){var m=vu(l);l=0;for(var v;m;){if(m.nodeType===3){if(v=l+m.textContent.length,l<=c&&v>=c)return{node:m,offset:c-l};l=v}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=vu(m)}}function u4(l,c){return l&&c?l===c?!0:l&&l.nodeType===3?!1:c&&c.nodeType===3?u4(l,c.parentNode):"contains"in l?l.contains(c):l.compareDocumentPosition?!!(l.compareDocumentPosition(c)&16):!1:!1}function kf(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var c=Hh(l.document);c instanceof l.HTMLIFrameElement;){try{var m=typeof c.contentWindow.location.href=="string"}catch{m=!1}if(m)l=c.contentWindow;else break;c=Hh(l.document)}return c}function bu(l){var c=l&&l.nodeName&&l.nodeName.toLowerCase();return c&&(c==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||c==="textarea"||l.contentEditable==="true")}var c4=Xr&&"documentMode"in document&&11>=document.documentMode,ms=null,Jh=null,xc=null,gs=!1;function ys(l,c,m){var v=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;gs||ms==null||ms!==Hh(v)||(v=ms,"selectionStart"in v&&bu(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}),xc&&Sc(xc,v)||(xc=v,v=ly(Jh,"onSelect"),0<v.length&&(c=new Xh("onSelect","select",null,c,m),l.push({event:c,listeners:v}),c.target=ms)))}function Su(l,c){var m={};return m[l.toLowerCase()]=c.toLowerCase(),m["Webkit"+l]="webkit"+c,m["Moz"+l]="moz"+c,m}var Ec={animationend:Su("Animation","AnimationEnd"),animationiteration:Su("Animation","AnimationIteration"),animationstart:Su("Animation","AnimationStart"),transitionrun:Su("Transition","TransitionRun"),transitionstart:Su("Transition","TransitionStart"),transitioncancel:Su("Transition","TransitionCancel"),transitionend:Su("Transition","TransitionEnd")},wc={},ep={};Xr&&(ep=document.createElement("div").style,"AnimationEvent"in window||(delete Ec.animationend.animation,delete Ec.animationiteration.animation,delete Ec.animationstart.animation),"TransitionEvent"in window||delete Ec.transitionend.transition);function So(l){if(wc[l])return wc[l];if(!Ec[l])return l;var c=Ec[l],m;for(m in c)if(c.hasOwnProperty(m)&&m in ep)return wc[l]=c[m];return l}var Sr=So("animationend"),tp=So("animationiteration"),f4=So("animationstart"),d4=So("transitionrun"),Nf=So("transitionstart"),np=So("transitioncancel"),Cl=So("transitionend"),B6=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 Ya(l,c){B6.set(l,c),vo(c,[l])}var Tc=typeof reportError=="function"?reportError:function(l){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var c=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(c))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",l);return}console.error(l)},wa=[],ki=0,Ta=0;function xo(){for(var l=ki,c=Ta=ki=0;c<l;){var m=wa[c];wa[c++]=null;var v=wa[c];wa[c++]=null;var A=wa[c];wa[c++]=null;var O=wa[c];if(wa[c++]=null,v!==null&&A!==null){var U=v.pending;U===null?A.next=A:(A.next=U.next,U.next=A),v.pending=A}O!==0&&a1(m,A,O)}}function Eo(l,c,m,v){wa[ki++]=l,wa[ki++]=c,wa[ki++]=m,wa[ki++]=v,Ta|=v,l.lanes|=v,l=l.alternate,l!==null&&(l.lanes|=v)}function Qo(l,c,m,v){return Eo(l,c,m,v),n0(l)}function ia(l,c){return Eo(l,null,null,c),n0(l)}function a1(l,c,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&&c!==null&&(A=31-yn(m),l=O.hiddenUpdates,v=l[A],v===null?l[A]=[c]:v.push(c),c.lane=m|536870912),O):null}function n0(l){if(50<rd)throw rd=0,X1=null,Error(i(185));for(var c=l.return;c!==null;)l=c,c=l.return;return l.tag===3?l.stateNode:null}var zf={};function vs(l,c,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=c,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 Xa(l,c,m,v){return new vs(l,c,m,v)}function Ko(l){return l=l.prototype,!(!l||!l.isReactComponent)}function wo(l,c){var m=l.alternate;return m===null?(m=Xa(l.tag,c,l.key,l.mode),m.elementType=l.elementType,m.type=l.type,m.stateNode=l.stateNode,m.alternate=l,l.alternate=m):(m.pendingProps=c,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,c=l.dependencies,m.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},m.sibling=l.sibling,m.index=l.index,m.ref=l.ref,m.refCleanup=l.refCleanup,m}function V6(l,c){l.flags&=65011714;var m=l.alternate;return m===null?(l.childLanes=0,l.lanes=c,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,c=m.dependencies,l.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext}),l}function rp(l,c,m,v,A,O){var U=0;if(v=l,typeof l=="function")Ko(l)&&(U=1);else if(typeof l=="string")U=VS(l,m,Re.current)?26:l==="html"||l==="head"||l==="body"?27:5;else e:switch(l){case ue:return l=Xa(31,m,c,A),l.elementType=ue,l.lanes=O,l;case R:return If(m.children,A,O,c);case _:U=8,A|=24;break;case N:return l=Xa(12,m,c,A|2),l.elementType=N,l.lanes=O,l;case I:return l=Xa(13,m,c,A),l.elementType=I,l.lanes=O,l;case P:return l=Xa(19,m,c,A),l.elementType=P,l.lanes=O,l;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case B:U=10;break e;case z:U=9;break e;case V:U=11;break e;case Y:U=14;break e;case se:U=16,v=null;break e}U=29,m=Error(i(130,l===null?"null":typeof l,"")),v=null}return c=Xa(U,m,c,A),c.elementType=l,c.type=v,c.lanes=O,c}function If(l,c,m,v){return l=Xa(7,l,v,c),l.lanes=m,l}function ip(l,c,m){return l=Xa(6,l,null,c),l.lanes=m,l}function ap(l){var c=Xa(18,null,null,0);return c.stateNode=l,c}function o1(l,c,m){return c=Xa(4,l.children!==null?l.children:[],l.key,c),c.lanes=m,c.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},c}var h4=new WeakMap;function To(l,c){if(typeof l=="object"&&l!==null){var m=h4.get(l);return m!==void 0?m:(c={value:l,source:c,stack:Lt(c)},h4.set(l,c),c)}return{value:l,source:c,stack:Lt(c)}}var Lf=[],Ao=0,op=null,r0=0,dr=[],Wa=0,Ml=null,Co=1,Qa="";function bs(l,c){Lf[Ao++]=r0,Lf[Ao++]=op,op=l,r0=c}function lp(l,c,m){dr[Wa++]=Co,dr[Wa++]=Qa,dr[Wa++]=Ml,Ml=l;var v=Co;l=Qa;var A=32-yn(v)-1;v&=~(1<<A),m+=1;var O=32-yn(c)+A;if(30<O){var U=A-A%5;O=(v&(1<<U)-1).toString(32),v>>=U,A-=U,Co=1<<32-yn(c)+A|m<<A|v,Qa=O+l}else Co=1<<O|m<<A|v,Qa=l}function l1(l){l.return!==null&&(bs(l,1),lp(l,1,0))}function i0(l){for(;l===op;)op=Lf[--Ao],Lf[Ao]=null,r0=Lf[--Ao],Lf[Ao]=null;for(;l===Ml;)Ml=dr[--Wa],dr[Wa]=null,Qa=dr[--Wa],dr[Wa]=null,Co=dr[--Wa],dr[Wa]=null}function p4(l,c){dr[Wa++]=Co,dr[Wa++]=Qa,dr[Wa++]=Ml,Co=c.id,Qa=c.overflow,Ml=l}var mi=null,xr=null,kn=!1,Ss=null,Ka=!1,xs=Error(i(519));function Aa(l){var c=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw up(To(c,l)),xs}function a0(l){var c=l.stateNode,m=l.type,v=l.memoizedProps;switch(c[pi]=l,c[Mr]=v,m){case"dialog":On("cancel",c),On("close",c);break;case"iframe":case"object":case"embed":On("load",c);break;case"video":case"audio":for(m=0;m<od.length;m++)On(od[m],c);break;case"source":On("error",c);break;case"img":case"image":case"link":On("error",c),On("load",c);break;case"details":On("toggle",c);break;case"input":On("invalid",c),qg(c,v.value,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name,!0);break;case"select":On("invalid",c);break;case"textarea":On("invalid",c),Fb(c,v.value,v.defaultValue,v.children)}m=v.children,typeof m!="string"&&typeof m!="number"&&typeof m!="bigint"||c.textContent===""+m||v.suppressHydrationWarning===!0||CS(c.textContent,m)?(v.popover!=null&&(On("beforetoggle",c),On("toggle",c)),v.onScroll!=null&&On("scroll",c),v.onScrollEnd!=null&&On("scrollend",c),v.onClick!=null&&(c.onclick=qi),c=!0):c=!1,c||Aa(l,!0)}function sp(l){for(mi=l.return;mi;)switch(mi.tag){case 5:case 31:case 13:Ka=!1;return;case 27:case 3:Ka=!0;return;default:mi=mi.return}}function Es(l){if(l!==mi)return!1;if(!kn)return sp(l),kn=!0,!1;var c=l.tag,m;if((m=c!==3&&c!==27)&&((m=c===5)&&(m=l.type,m=!(m!=="form"&&m!=="button")||fy(l.type,l.memoizedProps)),m=!m),m&&xr&&Aa(l),sp(l),c===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(i(317));xr=hy(l)}else if(c===31){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(i(317));xr=hy(l)}else c===27?(c=xr,$s(l.type)?(l=I0,I0=null,xr=l):xr=c):xr=mi?Zi(l.stateNode.nextSibling):null;return!0}function Rl(){xr=mi=null,kn=!1}function s1(){var l=Ss;return l!==null&&(io===null?io=l:io.push.apply(io,l),Ss=null),l}function up(l){Ss===null?Ss=[l]:Ss.push(l)}var u1=q(null),Ac=null,_l=null;function ws(l,c,m){F(u1,c._currentValue),c._currentValue=m}function aa(l){l._currentValue=u1.current,J(u1)}function cp(l,c,m){for(;l!==null;){var v=l.alternate;if((l.childLanes&c)!==c?(l.childLanes|=c,v!==null&&(v.childLanes|=c)):v!==null&&(v.childLanes&c)!==c&&(v.childLanes|=c),l===m)break;l=l.return}}function c1(l,c,m,v){var A=l.child;for(A!==null&&(A.return=l);A!==null;){var O=A.dependencies;if(O!==null){var U=A.child;O=O.firstContext;e:for(;O!==null;){var te=O;O=A;for(var ve=0;ve<c.length;ve++)if(te.context===c[ve]){O.lanes|=m,te=O.alternate,te!==null&&(te.lanes|=m),cp(O.return,m,l),v||(U=null);break e}O=te.next}}else if(A.tag===18){if(U=A.return,U===null)throw Error(i(341));U.lanes|=m,O=U.alternate,O!==null&&(O.lanes|=m),cp(U,m,l),U=null}else U=A.child;if(U!==null)U.return=A;else for(U=A;U!==null;){if(U===l){U=null;break}if(A=U.sibling,A!==null){A.return=U.return,U=A;break}U=U.return}A=U}}function Oo(l,c,m,v){l=null;for(var A=c,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 U=A.alternate;if(U===null)throw Error(i(387));if(U=U.memoizedProps,U!==null){var te=A.type;Ga(A.pendingProps.value,U.value)||(l!==null?l.push(te):l=[te])}}else if(A===Pe.current){if(U=A.alternate,U===null)throw Error(i(387));U.memoizedState.memoizedState!==A.memoizedState.memoizedState&&(l!==null?l.push(ei):l=[ei])}A=A.return}l!==null&&c1(c,l,m,v),c.flags|=262144}function oa(l){for(l=l.firstContext;l!==null;){if(!Ga(l.context._currentValue,l.memoizedValue))return!0;l=l.next}return!1}function Ts(l){Ac=l,_l=null,l=l.dependencies,l!==null&&(l.firstContext=null)}function Bt(l){return Bf(Ac,l)}function it(l,c){return Ac===null&&Ts(l),Bf(l,c)}function Bf(l,c){var m=c._currentValue;if(c={context:c,memoizedValue:m,next:null},_l===null){if(l===null)throw Error(i(308));_l=c,l.dependencies={lanes:0,firstContext:c},l.flags|=524288}else _l=_l.next=c;return m}var f1=typeof AbortController<"u"?AbortController:function(){var l=[],c=this.signal={aborted:!1,addEventListener:function(m,v){l.push(v)}};this.abort=function(){c.aborted=!0,l.forEach(function(m){return m()})}},Wr=e.unstable_scheduleCallback,m4=e.unstable_NormalPriority,Qr={$$typeof:B,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function d1(){return{controller:new f1,data:new Map,refCount:0}}function Vf(l){l.refCount--,l.refCount===0&&Wr(m4,function(){l.controller.abort()})}var fp=null,dp=0,Cc=0,Oc=null;function Ca(l,c){if(fp===null){var m=fp=[];dp=0,Cc=id(),Oc={status:"pending",value:void 0,then:function(v){m.push(v)}}}return dp++,c.then(Wn,Wn),c}function Wn(){if(--dp===0&&fp!==null){Oc!==null&&(Oc.status="fulfilled");var l=fp;fp=null,Cc=0,Oc=null;for(var c=0;c<l.length;c++)(0,l[c])()}}function h1(l,c){var m=[],v={status:"pending",value:null,reason:null,then:function(A){m.push(A)}};return l.then(function(){v.status="fulfilled",v.value=c;for(var A=0;A<m.length;A++)(0,m[A])(c)},function(A){for(v.status="rejected",v.reason=A,A=0;A<m.length;A++)(0,m[A])(void 0)}),v}var o0=K.S;K.S=function(l,c){ku=$t(),typeof c=="object"&&c!==null&&typeof c.then=="function"&&Ca(l,c),o0!==null&&o0(l,c)};var Za=q(null);function xu(){var l=Za.current;return l!==null?l:hr.pooledCache}function Ja(l,c){c===null?F(Za,Za.current):F(Za,c.pool)}function p1(){var l=xu();return l===null?null:{parent:Qr._currentValue,pool:l}}var Dl=Error(i(460)),hp=Error(i(474)),Mc=Error(i(542)),l0={then:function(){}};function pp(l){return l=l.status,l==="fulfilled"||l==="rejected"}function g4(l,c,m){switch(m=l[m],m===void 0?l.push(c):m!==c&&(c.then(qi,qi),c=m),c.status){case"fulfilled":return c.value;case"rejected":throw l=c.reason,v4(l),l;default:if(typeof c.status=="string")c.then(qi,qi);else{if(l=hr,l!==null&&100<l.shellSuspendCounter)throw Error(i(482));l=c,l.status="pending",l.then(function(v){if(c.status==="pending"){var A=c;A.status="fulfilled",A.value=v}},function(v){if(c.status==="pending"){var A=c;A.status="rejected",A.reason=v}})}switch(c.status){case"fulfilled":return c.value;case"rejected":throw l=c.reason,v4(l),l}throw _c=c,Dl}}function Rc(l){try{var c=l._init;return c(l._payload)}catch(m){throw m!==null&&typeof m=="object"&&typeof m.then=="function"?(_c=m,Dl):m}}var _c=null;function y4(){if(_c===null)throw Error(i(459));var l=_c;return _c=null,l}function v4(l){if(l===Dl||l===Mc)throw Error(i(483))}var Dc=null,Uf=0;function s0(l){var c=Uf;return Uf+=1,Dc===null&&(Dc=[]),g4(Dc,l,c)}function u0(l,c){c=c.props.ref,l.ref=c!==void 0?c:null}function mp(l,c){throw c.$$typeof===T?Error(i(525)):(l=Object.prototype.toString.call(c),Error(i(31,l==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":l)))}function b4(l){function c(ke,Ae){if(l){var ze=ke.deletions;ze===null?(ke.deletions=[Ae],ke.flags|=16):ze.push(Ae)}}function m(ke,Ae){if(!l)return null;for(;Ae!==null;)c(ke,Ae),Ae=Ae.sibling;return null}function v(ke){for(var Ae=new Map;ke!==null;)ke.key!==null?Ae.set(ke.key,ke):Ae.set(ke.index,ke),ke=ke.sibling;return Ae}function A(ke,Ae){return ke=wo(ke,Ae),ke.index=0,ke.sibling=null,ke}function O(ke,Ae,ze){return ke.index=ze,l?(ze=ke.alternate,ze!==null?(ze=ze.index,ze<Ae?(ke.flags|=67108866,Ae):ze):(ke.flags|=67108866,Ae)):(ke.flags|=1048576,Ae)}function U(ke){return l&&ke.alternate===null&&(ke.flags|=67108866),ke}function te(ke,Ae,ze,We){return Ae===null||Ae.tag!==6?(Ae=ip(ze,ke.mode,We),Ae.return=ke,Ae):(Ae=A(Ae,ze),Ae.return=ke,Ae)}function ve(ke,Ae,ze,We){var It=ze.type;return It===R?Ge(ke,Ae,ze.props.children,We,ze.key):Ae!==null&&(Ae.elementType===It||typeof It=="object"&&It!==null&&It.$$typeof===se&&Rc(It)===Ae.type)?(Ae=A(Ae,ze.props),u0(Ae,ze),Ae.return=ke,Ae):(Ae=rp(ze.type,ze.key,ze.props,null,ke.mode,We),u0(Ae,ze),Ae.return=ke,Ae)}function Ie(ke,Ae,ze,We){return Ae===null||Ae.tag!==4||Ae.stateNode.containerInfo!==ze.containerInfo||Ae.stateNode.implementation!==ze.implementation?(Ae=o1(ze,ke.mode,We),Ae.return=ke,Ae):(Ae=A(Ae,ze.children||[]),Ae.return=ke,Ae)}function Ge(ke,Ae,ze,We,It){return Ae===null||Ae.tag!==7?(Ae=If(ze,ke.mode,We,It),Ae.return=ke,Ae):(Ae=A(Ae,ze),Ae.return=ke,Ae)}function Je(ke,Ae,ze){if(typeof Ae=="string"&&Ae!==""||typeof Ae=="number"||typeof Ae=="bigint")return Ae=ip(""+Ae,ke.mode,ze),Ae.return=ke,Ae;if(typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case w:return ze=rp(Ae.type,Ae.key,Ae.props,null,ke.mode,ze),u0(ze,Ae),ze.return=ke,ze;case C:return Ae=o1(Ae,ke.mode,ze),Ae.return=ke,Ae;case se:return Ae=Rc(Ae),Je(ke,Ae,ze)}if(ie(Ae)||$(Ae))return Ae=If(Ae,ke.mode,ze,null),Ae.return=ke,Ae;if(typeof Ae.then=="function")return Je(ke,s0(Ae),ze);if(Ae.$$typeof===B)return Je(ke,it(ke,Ae),ze);mp(ke,Ae)}return null}function Be(ke,Ae,ze,We){var It=Ae!==null?Ae.key:null;if(typeof ze=="string"&&ze!==""||typeof ze=="number"||typeof ze=="bigint")return It!==null?null:te(ke,Ae,""+ze,We);if(typeof ze=="object"&&ze!==null){switch(ze.$$typeof){case w:return ze.key===It?ve(ke,Ae,ze,We):null;case C:return ze.key===It?Ie(ke,Ae,ze,We):null;case se:return ze=Rc(ze),Be(ke,Ae,ze,We)}if(ie(ze)||$(ze))return It!==null?null:Ge(ke,Ae,ze,We,null);if(typeof ze.then=="function")return Be(ke,Ae,s0(ze),We);if(ze.$$typeof===B)return Be(ke,Ae,it(ke,ze),We);mp(ke,ze)}return null}function He(ke,Ae,ze,We,It){if(typeof We=="string"&&We!==""||typeof We=="number"||typeof We=="bigint")return ke=ke.get(ze)||null,te(Ae,ke,""+We,It);if(typeof We=="object"&&We!==null){switch(We.$$typeof){case w:return ke=ke.get(We.key===null?ze:We.key)||null,ve(Ae,ke,We,It);case C:return ke=ke.get(We.key===null?ze:We.key)||null,Ie(Ae,ke,We,It);case se:return We=Rc(We),He(ke,Ae,ze,We,It)}if(ie(We)||$(We))return ke=ke.get(ze)||null,Ge(Ae,ke,We,It,null);if(typeof We.then=="function")return He(ke,Ae,ze,s0(We),It);if(We.$$typeof===B)return He(ke,Ae,ze,it(Ae,We),It);mp(Ae,We)}return null}function Rt(ke,Ae,ze,We){for(var It=null,Hn=null,_t=Ae,hn=Ae=0,Tn=null;_t!==null&&hn<ze.length;hn++){_t.index>hn?(Tn=_t,_t=null):Tn=_t.sibling;var Mn=Be(ke,_t,ze[hn],We);if(Mn===null){_t===null&&(_t=Tn);break}l&&_t&&Mn.alternate===null&&c(ke,_t),Ae=O(Mn,Ae,hn),Hn===null?It=Mn:Hn.sibling=Mn,Hn=Mn,_t=Tn}if(hn===ze.length)return m(ke,_t),kn&&bs(ke,hn),It;if(_t===null){for(;hn<ze.length;hn++)_t=Je(ke,ze[hn],We),_t!==null&&(Ae=O(_t,Ae,hn),Hn===null?It=_t:Hn.sibling=_t,Hn=_t);return kn&&bs(ke,hn),It}for(_t=v(_t);hn<ze.length;hn++)Tn=He(_t,ke,hn,ze[hn],We),Tn!==null&&(l&&Tn.alternate!==null&&_t.delete(Tn.key===null?hn:Tn.key),Ae=O(Tn,Ae,hn),Hn===null?It=Tn:Hn.sibling=Tn,Hn=Tn);return l&&_t.forEach(function(Hc){return c(ke,Hc)}),kn&&bs(ke,hn),It}function jt(ke,Ae,ze,We){if(ze==null)throw Error(i(151));for(var It=null,Hn=null,_t=Ae,hn=Ae=0,Tn=null,Mn=ze.next();_t!==null&&!Mn.done;hn++,Mn=ze.next()){_t.index>hn?(Tn=_t,_t=null):Tn=_t.sibling;var Hc=Be(ke,_t,Mn.value,We);if(Hc===null){_t===null&&(_t=Tn);break}l&&_t&&Hc.alternate===null&&c(ke,_t),Ae=O(Hc,Ae,hn),Hn===null?It=Hc:Hn.sibling=Hc,Hn=Hc,_t=Tn}if(Mn.done)return m(ke,_t),kn&&bs(ke,hn),It;if(_t===null){for(;!Mn.done;hn++,Mn=ze.next())Mn=Je(ke,Mn.value,We),Mn!==null&&(Ae=O(Mn,Ae,hn),Hn===null?It=Mn:Hn.sibling=Mn,Hn=Mn);return kn&&bs(ke,hn),It}for(_t=v(_t);!Mn.done;hn++,Mn=ze.next())Mn=He(_t,ke,hn,Mn.value,We),Mn!==null&&(l&&Mn.alternate!==null&&_t.delete(Mn.key===null?hn:Mn.key),Ae=O(Mn,Ae,hn),Hn===null?It=Mn:Hn.sibling=Mn,Hn=Mn);return l&&_t.forEach(function(My){return c(ke,My)}),kn&&bs(ke,hn),It}function pr(ke,Ae,ze,We){if(typeof ze=="object"&&ze!==null&&ze.type===R&&ze.key===null&&(ze=ze.props.children),typeof ze=="object"&&ze!==null){switch(ze.$$typeof){case w:e:{for(var It=ze.key;Ae!==null;){if(Ae.key===It){if(It=ze.type,It===R){if(Ae.tag===7){m(ke,Ae.sibling),We=A(Ae,ze.props.children),We.return=ke,ke=We;break e}}else if(Ae.elementType===It||typeof It=="object"&&It!==null&&It.$$typeof===se&&Rc(It)===Ae.type){m(ke,Ae.sibling),We=A(Ae,ze.props),u0(We,ze),We.return=ke,ke=We;break e}m(ke,Ae);break}else c(ke,Ae);Ae=Ae.sibling}ze.type===R?(We=If(ze.props.children,ke.mode,We,ze.key),We.return=ke,ke=We):(We=rp(ze.type,ze.key,ze.props,null,ke.mode,We),u0(We,ze),We.return=ke,ke=We)}return U(ke);case C:e:{for(It=ze.key;Ae!==null;){if(Ae.key===It)if(Ae.tag===4&&Ae.stateNode.containerInfo===ze.containerInfo&&Ae.stateNode.implementation===ze.implementation){m(ke,Ae.sibling),We=A(Ae,ze.children||[]),We.return=ke,ke=We;break e}else{m(ke,Ae);break}else c(ke,Ae);Ae=Ae.sibling}We=o1(ze,ke.mode,We),We.return=ke,ke=We}return U(ke);case se:return ze=Rc(ze),pr(ke,Ae,ze,We)}if(ie(ze))return Rt(ke,Ae,ze,We);if($(ze)){if(It=$(ze),typeof It!="function")throw Error(i(150));return ze=It.call(ze),jt(ke,Ae,ze,We)}if(typeof ze.then=="function")return pr(ke,Ae,s0(ze),We);if(ze.$$typeof===B)return pr(ke,Ae,it(ke,ze),We);mp(ke,ze)}return typeof ze=="string"&&ze!==""||typeof ze=="number"||typeof ze=="bigint"?(ze=""+ze,Ae!==null&&Ae.tag===6?(m(ke,Ae.sibling),We=A(Ae,ze),We.return=ke,ke=We):(m(ke,Ae),We=ip(ze,ke.mode,We),We.return=ke,ke=We),U(ke)):m(ke,Ae)}return function(ke,Ae,ze,We){try{Uf=0;var It=pr(ke,Ae,ze,We);return Dc=null,It}catch(_t){if(_t===Dl||_t===Mc)throw _t;var Hn=Xa(29,_t,null,ke.mode);return Hn.lanes=We,Hn.return=ke,Hn}finally{}}}var Pf=b4(!0),S4=b4(!1),Eu=!1;function m1(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function gp(l,c){l=l.updateQueue,c.updateQueue===l&&(c.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function wu(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function Tu(l,c,m){var v=l.updateQueue;if(v===null)return null;if(v=v.shared,(jn&2)!==0){var A=v.pending;return A===null?c.next=c:(c.next=A.next,A.next=c),v.pending=c,c=n0(l),a1(l,null,m),c}return Eo(l,v,c,m),n0(l)}function As(l,c,m){if(c=c.updateQueue,c!==null&&(c=c.shared,(m&4194048)!==0)){var v=c.lanes;v&=l.pendingLanes,m|=v,c.lanes=m,Bh(l,m)}}function c0(l,c){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 U={lane:m.lane,tag:m.tag,payload:m.payload,callback:null,next:null};O===null?A=O=U:O=O.next=U,m=m.next}while(m!==null);O===null?A=O=c:O=O.next=c}else A=O=c;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=c:l.next=c,m.lastBaseUpdate=c}var g1=!1;function yp(){if(g1){var l=Oc;if(l!==null)throw l}}function kc(l,c,m,v){g1=!1;var A=l.updateQueue;Eu=!1;var O=A.firstBaseUpdate,U=A.lastBaseUpdate,te=A.shared.pending;if(te!==null){A.shared.pending=null;var ve=te,Ie=ve.next;ve.next=null,U===null?O=Ie:U.next=Ie,U=ve;var Ge=l.alternate;Ge!==null&&(Ge=Ge.updateQueue,te=Ge.lastBaseUpdate,te!==U&&(te===null?Ge.firstBaseUpdate=Ie:te.next=Ie,Ge.lastBaseUpdate=ve))}if(O!==null){var Je=A.baseState;U=0,Ge=Ie=ve=null,te=O;do{var Be=te.lane&-536870913,He=Be!==te.lane;if(He?(Nn&Be)===Be:(v&Be)===Be){Be!==0&&Be===Cc&&(g1=!0),Ge!==null&&(Ge=Ge.next={lane:0,tag:te.tag,payload:te.payload,callback:null,next:null});e:{var Rt=l,jt=te;Be=c;var pr=m;switch(jt.tag){case 1:if(Rt=jt.payload,typeof Rt=="function"){Je=Rt.call(pr,Je,Be);break e}Je=Rt;break e;case 3:Rt.flags=Rt.flags&-65537|128;case 0:if(Rt=jt.payload,Be=typeof Rt=="function"?Rt.call(pr,Je,Be):Rt,Be==null)break e;Je=x({},Je,Be);break e;case 2:Eu=!0}}Be=te.callback,Be!==null&&(l.flags|=64,He&&(l.flags|=8192),He=A.callbacks,He===null?A.callbacks=[Be]:He.push(Be))}else He={lane:Be,tag:te.tag,payload:te.payload,callback:te.callback,next:null},Ge===null?(Ie=Ge=He,ve=Je):Ge=Ge.next=He,U|=Be;if(te=te.next,te===null){if(te=A.shared.pending,te===null)break;He=te,te=He.next,He.next=null,A.lastBaseUpdate=He,A.shared.pending=null}}while(!0);Ge===null&&(ve=Je),A.baseState=ve,A.firstBaseUpdate=Ie,A.lastBaseUpdate=Ge,O===null&&(A.shared.lanes=0),il|=U,l.lanes=U,l.memoizedState=Je}}function $f(l,c){if(typeof l!="function")throw Error(i(191,l));l.call(c)}function y1(l,c){var m=l.callbacks;if(m!==null)for(l.callbacks=null,l=0;l<m.length;l++)$f(m[l],c)}var Zo=q(null),Gi=q(0);function vp(l,c){l=Vs,F(Gi,l),F(Zo,c),Vs=l|c.baseLanes}function x4(){F(Gi,Vs),F(Zo,Zo.current)}function bp(){Vs=Gi.current,J(Zo),J(Gi)}var la=q(null),eo=null;function Au(l){var c=l.alternate;F(Vr,Vr.current&1),F(la,l),eo===null&&(c===null||Zo.current!==null||c.memoizedState!==null)&&(eo=l)}function Sp(l){F(Vr,Vr.current),F(la,l),eo===null&&(eo=l)}function xp(l){l.tag===22?(F(Vr,Vr.current),F(la,l),eo===null&&(eo=l)):Cs()}function Cs(){F(Vr,Vr.current),F(la,la.current)}function sa(l){J(la),eo===l&&(eo=null),J(Vr)}var Vr=q(0);function jf(l){for(var c=l;c!==null;){if(c.tag===13){var m=c.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||kS(m)||ol(m)))return c}else if(c.tag===19&&(c.memoizedProps.revealOrder==="forwards"||c.memoizedProps.revealOrder==="backwards"||c.memoizedProps.revealOrder==="unstable_legacy-backwards"||c.memoizedProps.revealOrder==="together")){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===l)break;for(;c.sibling===null;){if(c.return===null||c.return===l)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}var kl=0,fn=null,nr=null,Kr=null,Ep=!1,Cu=!1,Nc=!1,f0=0,d0=0,Hf=null,E4=0;function Ur(){throw Error(i(321))}function v1(l,c){if(c===null)return!1;for(var m=0;m<c.length&&m<l.length;m++)if(!Ga(l[m],c[m]))return!1;return!0}function Ou(l,c,m,v,A,O){return kl=O,fn=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,K.H=l===null||l.memoizedState===null?F6:V4,Nc=!1,O=m(v,A),Nc=!1,Cu&&(O=S1(c,m,v,A)),b1(l),O}function b1(l){K.H=v0;var c=nr!==null&&nr.next!==null;if(kl=0,Kr=nr=fn=null,Ep=!1,d0=0,Hf=null,c)throw Error(i(300));l===null||li||(l=l.dependencies,l!==null&&oa(l)&&(li=!0))}function S1(l,c,m,v){fn=l;var A=0;do{if(Cu&&(Hf=null),d0=0,Cu=!1,25<=A)throw Error(i(301));if(A+=1,Kr=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)}K.H=U4,O=c(m,v)}while(Cu);return O}function U8(){var l=K.H,c=l.useState()[0];return c=typeof c.then=="function"?h0(c):c,l=l.useState()[0],(nr!==null?nr.memoizedState:null)!==l&&(fn.flags|=1024),c}function w4(){var l=f0!==0;return f0=0,l}function x1(l,c,m){c.updateQueue=l.updateQueue,c.flags&=-2053,l.lanes&=~m}function qf(l){if(Ep){for(l=l.memoizedState;l!==null;){var c=l.queue;c!==null&&(c.pending=null),l=l.next}Ep=!1}kl=0,Kr=nr=fn=null,Cu=!1,d0=f0=0,Hf=null}function Yi(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Kr===null?fn.memoizedState=Kr=l:Kr=Kr.next=l,Kr}function Nr(){if(nr===null){var l=fn.alternate;l=l!==null?l.memoizedState:null}else l=nr.next;var c=Kr===null?fn.memoizedState:Kr.next;if(c!==null)Kr=c,nr=l;else{if(l===null)throw fn.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},Kr===null?fn.memoizedState=Kr=l:Kr=Kr.next=l}return Kr}function wp(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function h0(l){var c=d0;return d0+=1,Hf===null&&(Hf=[]),l=g4(Hf,l,c),c=fn,(Kr===null?c.memoizedState:Kr.next)===null&&(c=c.alternate,K.H=c===null||c.memoizedState===null?F6:V4),l}function p0(l){if(l!==null&&typeof l=="object"){if(typeof l.then=="function")return h0(l);if(l.$$typeof===B)return Bt(l)}throw Error(i(438,String(l)))}function Tp(l){var c=null,m=fn.updateQueue;if(m!==null&&(c=m.memoCache),c==null){var v=fn.alternate;v!==null&&(v=v.updateQueue,v!==null&&(v=v.memoCache,v!=null&&(c={data:v.data.map(function(A){return A.slice()}),index:0})))}if(c==null&&(c={data:[],index:0}),m===null&&(m=wp(),fn.updateQueue=m),m.memoCache=c,m=c.data[c.index],m===void 0)for(m=c.data[c.index]=Array(l),v=0;v<l;v++)m[v]=re;return c.index++,m}function Os(l,c){return typeof c=="function"?c(l):c}function Ap(l){var c=Nr();return Mu(c,nr,l)}function Mu(l,c,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 U=A.next;A.next=O.next,O.next=U}c.baseQueue=A=O,v.pending=null}if(O=l.baseState,A===null)l.memoizedState=O;else{c=A.next;var te=U=null,ve=null,Ie=c,Ge=!1;do{var Je=Ie.lane&-536870913;if(Je!==Ie.lane?(Nn&Je)===Je:(kl&Je)===Je){var Be=Ie.revertLane;if(Be===0)ve!==null&&(ve=ve.next={lane:0,revertLane:0,gesture:null,action:Ie.action,hasEagerState:Ie.hasEagerState,eagerState:Ie.eagerState,next:null}),Je===Cc&&(Ge=!0);else if((kl&Be)===Be){Ie=Ie.next,Be===Cc&&(Ge=!0);continue}else Je={lane:0,revertLane:Ie.revertLane,gesture:null,action:Ie.action,hasEagerState:Ie.hasEagerState,eagerState:Ie.eagerState,next:null},ve===null?(te=ve=Je,U=O):ve=ve.next=Je,fn.lanes|=Be,il|=Be;Je=Ie.action,Nc&&m(O,Je),O=Ie.hasEagerState?Ie.eagerState:m(O,Je)}else Be={lane:Je,revertLane:Ie.revertLane,gesture:Ie.gesture,action:Ie.action,hasEagerState:Ie.hasEagerState,eagerState:Ie.eagerState,next:null},ve===null?(te=ve=Be,U=O):ve=ve.next=Be,fn.lanes|=Je,il|=Je;Ie=Ie.next}while(Ie!==null&&Ie!==c);if(ve===null?U=O:ve.next=te,!Ga(O,l.memoizedState)&&(li=!0,Ge&&(m=Oc,m!==null)))throw m;l.memoizedState=O,l.baseState=U,l.baseQueue=ve,v.lastRenderedState=O}return A===null&&(v.lanes=0),[l.memoizedState,v.dispatch]}function E1(l){var c=Nr(),m=c.queue;if(m===null)throw Error(i(311));m.lastRenderedReducer=l;var v=m.dispatch,A=m.pending,O=c.memoizedState;if(A!==null){m.pending=null;var U=A=A.next;do O=l(O,U.action),U=U.next;while(U!==A);Ga(O,c.memoizedState)||(li=!0),c.memoizedState=O,c.baseQueue===null&&(c.baseState=O),m.lastRenderedState=O}return[O,v]}function T4(l,c,m){var v=fn,A=Nr(),O=kn;if(O){if(m===void 0)throw Error(i(407));m=m()}else m=c();var U=!Ga((nr||A).memoizedState,m);if(U&&(A.memoizedState=m,li=!0),A=A.queue,_p(C4.bind(null,v,A,l),[l]),A.getSnapshot!==c||U||Kr!==null&&Kr.memoizedState.tag&1){if(v.flags|=2048,Ff(9,{destroy:void 0},Cp.bind(null,v,A,m,c),null),hr===null)throw Error(i(349));O||(kl&127)!==0||A4(v,c,m)}return m}function A4(l,c,m){l.flags|=16384,l={getSnapshot:c,value:m},c=fn.updateQueue,c===null?(c=wp(),fn.updateQueue=c,c.stores=[l]):(m=c.stores,m===null?c.stores=[l]:m.push(l))}function Cp(l,c,m,v){c.value=m,c.getSnapshot=v,w1(c)&&T1(l)}function C4(l,c,m){return m(function(){w1(c)&&T1(l)})}function w1(l){var c=l.getSnapshot;l=l.value;try{var m=c();return!Ga(l,m)}catch{return!0}}function T1(l){var c=ia(l,2);c!==null&&oo(c,l,2)}function Op(l){var c=Yi();if(typeof l=="function"){var m=l;if(l=m(),Nc){Fn(!0);try{m()}finally{Fn(!1)}}}return c.memoizedState=c.baseState=l,c.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Os,lastRenderedState:l},c}function U6(l,c,m,v){return l.baseState=m,Mu(l,nr,typeof v=="function"?v:Os)}function Xi(l,c,m,v,A){if(Ru(l))throw Error(i(485));if(l=c.action,l!==null){var O={payload:A,action:l,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(U){O.listeners.push(U)}};K.T!==null?m(!0):O.isTransition=!1,v(O),m=c.pending,m===null?(O.next=c.pending=O,O4(c,O)):(O.next=m.next,c.pending=m.next=O)}}function O4(l,c){var m=c.action,v=c.payload,A=l.state;if(c.isTransition){var O=K.T,U={};K.T=U;try{var te=m(A,v),ve=K.S;ve!==null&&ve(U,te),M4(l,c,te)}catch(Ie){A1(l,c,Ie)}finally{O!==null&&U.types!==null&&(O.types=U.types),K.T=O}}else try{O=m(A,v),M4(l,c,O)}catch(Ie){A1(l,c,Ie)}}function M4(l,c,m){m!==null&&typeof m=="object"&&typeof m.then=="function"?m.then(function(v){R4(l,c,v)},function(v){return A1(l,c,v)}):R4(l,c,m)}function R4(l,c,m){c.status="fulfilled",c.value=m,m0(c),l.state=m,c=l.pending,c!==null&&(m=c.next,m===c?l.pending=null:(m=m.next,c.next=m,O4(l,m)))}function A1(l,c,m){var v=l.pending;if(l.pending=null,v!==null){v=v.next;do c.status="rejected",c.reason=m,m0(c),c=c.next;while(c!==v)}l.action=null}function m0(l){l=l.listeners;for(var c=0;c<l.length;c++)(0,l[c])()}function _4(l,c){return c}function Mp(l,c){if(kn){var m=hr.formState;if(m!==null){e:{var v=fn;if(kn){if(xr){t:{for(var A=xr,O=Ka;A.nodeType!==8;){if(!O){A=null;break t}if(A=Zi(A.nextSibling),A===null){A=null;break t}}O=A.data,A=O==="F!"||O==="F"?A:null}if(A){xr=Zi(A.nextSibling),v=A.data==="F!";break e}}Aa(v)}v=!1}v&&(c=m[0])}}return m=Yi(),m.memoizedState=m.baseState=c,v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_4,lastRenderedState:c},m.queue=v,m=L4.bind(null,fn,v),v.dispatch=m,v=Op(!1),O=Yf.bind(null,fn,!1,v.queue),v=Yi(),A={state:c,dispatch:null,action:l,pending:null},v.queue=A,m=Xi.bind(null,fn,A,O,m),A.dispatch=m,v.memoizedState=l,[c,m,!1]}function D4(l){var c=Nr();return P6(c,nr,l)}function P6(l,c,m){if(c=Mu(l,c,_4)[0],l=Ap(Os)[0],typeof c=="object"&&c!==null&&typeof c.then=="function")try{var v=h0(c)}catch(U){throw U===Dl?Mc:U}else v=c;c=Nr();var A=c.queue,O=A.dispatch;return m!==c.memoizedState&&(fn.flags|=2048,Ff(9,{destroy:void 0},C1.bind(null,A,m),null)),[v,O,l]}function C1(l,c){l.action=c}function O1(l){var c=Nr(),m=nr;if(m!==null)return P6(c,m,l);Nr(),c=c.memoizedState,m=Nr();var v=m.queue.dispatch;return m.memoizedState=l,[c,v,!1]}function Ff(l,c,m,v){return l={tag:l,create:m,deps:v,inst:c,next:null},c=fn.updateQueue,c===null&&(c=wp(),fn.updateQueue=c),m=c.lastEffect,m===null?c.lastEffect=l.next=l:(v=m.next,m.next=l,l.next=v,c.lastEffect=l),l}function k4(){return Nr().memoizedState}function Rp(l,c,m,v){var A=Yi();fn.flags|=l,A.memoizedState=Ff(1|c,{destroy:void 0},m,v===void 0?null:v)}function g0(l,c,m,v){var A=Nr();v=v===void 0?null:v;var O=A.memoizedState.inst;nr!==null&&v!==null&&v1(v,nr.memoizedState.deps)?A.memoizedState=Ff(c,O,m,v):(fn.flags|=l,A.memoizedState=Ff(1|c,O,m,v))}function M1(l,c){Rp(8390656,8,l,c)}function _p(l,c){g0(2048,8,l,c)}function $6(l){fn.flags|=4;var c=fn.updateQueue;if(c===null)c=wp(),fn.updateQueue=c,c.events=[l];else{var m=c.events;m===null?c.events=[l]:m.push(l)}}function R1(l){var c=Nr().memoizedState;return $6({ref:c,nextImpl:l}),function(){if((jn&2)!==0)throw Error(i(440));return c.impl.apply(void 0,arguments)}}function Dp(l,c){return g0(4,2,l,c)}function _1(l,c){return g0(4,4,l,c)}function N4(l,c){if(typeof c=="function"){l=l();var m=c(l);return function(){typeof m=="function"?m():c(null)}}if(c!=null)return l=l(),c.current=l,function(){c.current=null}}function D1(l,c,m){m=m!=null?m.concat([l]):null,g0(4,4,N4.bind(null,c,l),m)}function k1(){}function Ms(l,c){var m=Nr();c=c===void 0?null:c;var v=m.memoizedState;return c!==null&&v1(c,v[1])?v[0]:(m.memoizedState=[l,c],l)}function N1(l,c){var m=Nr();c=c===void 0?null:c;var v=m.memoizedState;if(c!==null&&v1(c,v[1]))return v[0];if(v=l(),Nc){Fn(!0);try{l()}finally{Fn(!1)}}return m.memoizedState=[v,c],v}function z4(l,c,m){return m===void 0||(kl&1073741824)!==0&&(Nn&261930)===0?l.memoizedState=c:(l.memoizedState=m,l=dS(),fn.lanes|=l,il|=l,m)}function z1(l,c,m,v){return Ga(m,c)?m:Zo.current!==null?(l=z4(l,m,v),Ga(l,c)||(li=!0),l):(kl&42)===0||(kl&1073741824)!==0&&(Nn&261930)===0?(li=!0,l.memoizedState=m):(l=dS(),fn.lanes|=l,il|=l,c)}function Rs(l,c,m,v,A){var O=ae.p;ae.p=O!==0&&8>O?O:8;var U=K.T,te={};K.T=te,Yf(l,!1,c,m);try{var ve=A(),Ie=K.S;if(Ie!==null&&Ie(te,ve),ve!==null&&typeof ve=="object"&&typeof ve.then=="function"){var Ge=h1(ve,v);Gf(l,c,Ge,Da(l))}else Gf(l,c,v,Da(l))}catch(Je){Gf(l,c,{then:function(){},status:"rejected",reason:Je},Da())}finally{ae.p=O,U!==null&&te.types!==null&&(U.types=te.types),K.T=U}}function I4(){}function I1(l,c,m,v){if(l.tag!==5)throw Error(i(476));var A=kp(l).queue;Rs(l,A,c,pe,m===null?I4:function(){return y0(l),m(v)})}function kp(l){var c=l.memoizedState;if(c!==null)return c;c={memoizedState:pe,baseState:pe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Os,lastRenderedState:pe},next:null};var m={};return c.next={memoizedState:m,baseState:m,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Os,lastRenderedState:m},next:null},l.memoizedState=c,l=l.alternate,l!==null&&(l.memoizedState=c),c}function y0(l){var c=kp(l);c.next===null&&(c=l.alternate.memoizedState),Gf(l,c.next.queue,{},Da())}function rr(){return Bt(ei)}function j6(){return Nr().memoizedState}function H6(){return Nr().memoizedState}function q6(l){for(var c=l.return;c!==null;){switch(c.tag){case 24:case 3:var m=Da();l=wu(m);var v=Tu(c,l,m);v!==null&&(oo(v,c,m),As(v,c,m)),c={cache:d1()},l.payload=c;return}c=c.return}}function _s(l,c,m){var v=Da();m={lane:v,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},Ru(l)?B4(c,m):(m=Qo(l,c,m,v),m!==null&&(oo(m,l,v),L1(m,c,v)))}function L4(l,c,m){var v=Da();Gf(l,c,m,v)}function Gf(l,c,m,v){var A={lane:v,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null};if(Ru(l))B4(c,A);else{var O=l.alternate;if(l.lanes===0&&(O===null||O.lanes===0)&&(O=c.lastRenderedReducer,O!==null))try{var U=c.lastRenderedState,te=O(U,m);if(A.hasEagerState=!0,A.eagerState=te,Ga(te,U))return Eo(l,c,A,0),hr===null&&xo(),!1}catch{}finally{}if(m=Qo(l,c,A,v),m!==null)return oo(m,l,v),L1(m,c,v),!0}return!1}function Yf(l,c,m,v){if(v={lane:2,revertLane:id(),gesture:null,action:v,hasEagerState:!1,eagerState:null,next:null},Ru(l)){if(c)throw Error(i(479))}else c=Qo(l,m,v,2),c!==null&&oo(c,l,2)}function Ru(l){var c=l.alternate;return l===fn||c!==null&&c===fn}function B4(l,c){Cu=Ep=!0;var m=l.pending;m===null?c.next=c:(c.next=m.next,m.next=c),l.pending=c}function L1(l,c,m){if((m&4194048)!==0){var v=c.lanes;v&=l.pendingLanes,m|=v,c.lanes=m,Bh(l,m)}}var v0={readContext:Bt,use:p0,useCallback:Ur,useContext:Ur,useEffect:Ur,useImperativeHandle:Ur,useLayoutEffect:Ur,useInsertionEffect:Ur,useMemo:Ur,useReducer:Ur,useRef:Ur,useState:Ur,useDebugValue:Ur,useDeferredValue:Ur,useTransition:Ur,useSyncExternalStore:Ur,useId:Ur,useHostTransitionStatus:Ur,useFormState:Ur,useActionState:Ur,useOptimistic:Ur,useMemoCache:Ur,useCacheRefresh:Ur};v0.useEffectEvent=Ur;var F6={readContext:Bt,use:p0,useCallback:function(l,c){return Yi().memoizedState=[l,c===void 0?null:c],l},useContext:Bt,useEffect:M1,useImperativeHandle:function(l,c,m){m=m!=null?m.concat([l]):null,Rp(4194308,4,N4.bind(null,c,l),m)},useLayoutEffect:function(l,c){return Rp(4194308,4,l,c)},useInsertionEffect:function(l,c){Rp(4,2,l,c)},useMemo:function(l,c){var m=Yi();c=c===void 0?null:c;var v=l();if(Nc){Fn(!0);try{l()}finally{Fn(!1)}}return m.memoizedState=[v,c],v},useReducer:function(l,c,m){var v=Yi();if(m!==void 0){var A=m(c);if(Nc){Fn(!0);try{m(c)}finally{Fn(!1)}}}else A=c;return v.memoizedState=v.baseState=A,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:A},v.queue=l,l=l.dispatch=_s.bind(null,fn,l),[v.memoizedState,l]},useRef:function(l){var c=Yi();return l={current:l},c.memoizedState=l},useState:function(l){l=Op(l);var c=l.queue,m=L4.bind(null,fn,c);return c.dispatch=m,[l.memoizedState,m]},useDebugValue:k1,useDeferredValue:function(l,c){var m=Yi();return z4(m,l,c)},useTransition:function(){var l=Op(!1);return l=Rs.bind(null,fn,l.queue,!0,!1),Yi().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,c,m){var v=fn,A=Yi();if(kn){if(m===void 0)throw Error(i(407));m=m()}else{if(m=c(),hr===null)throw Error(i(349));(Nn&127)!==0||A4(v,c,m)}A.memoizedState=m;var O={value:m,getSnapshot:c};return A.queue=O,M1(C4.bind(null,v,O,l),[l]),v.flags|=2048,Ff(9,{destroy:void 0},Cp.bind(null,v,O,m,c),null),m},useId:function(){var l=Yi(),c=hr.identifierPrefix;if(kn){var m=Qa,v=Co;m=(v&~(1<<32-yn(v)-1)).toString(32)+m,c="_"+c+"R_"+m,m=f0++,0<m&&(c+="H"+m.toString(32)),c+="_"}else m=E4++,c="_"+c+"r_"+m.toString(32)+"_";return l.memoizedState=c},useHostTransitionStatus:rr,useFormState:Mp,useActionState:Mp,useOptimistic:function(l){var c=Yi();c.memoizedState=c.baseState=l;var m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return c.queue=m,c=Yf.bind(null,fn,!0,m),m.dispatch=c,[l,c]},useMemoCache:Tp,useCacheRefresh:function(){return Yi().memoizedState=q6.bind(null,fn)},useEffectEvent:function(l){var c=Yi(),m={impl:l};return c.memoizedState=m,function(){if((jn&2)!==0)throw Error(i(440));return m.impl.apply(void 0,arguments)}}},V4={readContext:Bt,use:p0,useCallback:Ms,useContext:Bt,useEffect:_p,useImperativeHandle:D1,useInsertionEffect:Dp,useLayoutEffect:_1,useMemo:N1,useReducer:Ap,useRef:k4,useState:function(){return Ap(Os)},useDebugValue:k1,useDeferredValue:function(l,c){var m=Nr();return z1(m,nr.memoizedState,l,c)},useTransition:function(){var l=Ap(Os)[0],c=Nr().memoizedState;return[typeof l=="boolean"?l:h0(l),c]},useSyncExternalStore:T4,useId:j6,useHostTransitionStatus:rr,useFormState:D4,useActionState:D4,useOptimistic:function(l,c){var m=Nr();return U6(m,nr,l,c)},useMemoCache:Tp,useCacheRefresh:H6};V4.useEffectEvent=R1;var U4={readContext:Bt,use:p0,useCallback:Ms,useContext:Bt,useEffect:_p,useImperativeHandle:D1,useInsertionEffect:Dp,useLayoutEffect:_1,useMemo:N1,useReducer:E1,useRef:k4,useState:function(){return E1(Os)},useDebugValue:k1,useDeferredValue:function(l,c){var m=Nr();return nr===null?z4(m,l,c):z1(m,nr.memoizedState,l,c)},useTransition:function(){var l=E1(Os)[0],c=Nr().memoizedState;return[typeof l=="boolean"?l:h0(l),c]},useSyncExternalStore:T4,useId:j6,useHostTransitionStatus:rr,useFormState:O1,useActionState:O1,useOptimistic:function(l,c){var m=Nr();return nr!==null?U6(m,nr,l,c):(m.baseState=l,[l,m.queue.dispatch])},useMemoCache:Tp,useCacheRefresh:H6};U4.useEffectEvent=R1;function P4(l,c,m,v){c=l.memoizedState,m=m(v,c),m=m==null?c:x({},c,m),l.memoizedState=m,l.lanes===0&&(l.updateQueue.baseState=m)}var Xf={enqueueSetState:function(l,c,m){l=l._reactInternals;var v=Da(),A=wu(v);A.payload=c,m!=null&&(A.callback=m),c=Tu(l,A,v),c!==null&&(oo(c,l,v),As(c,l,v))},enqueueReplaceState:function(l,c,m){l=l._reactInternals;var v=Da(),A=wu(v);A.tag=1,A.payload=c,m!=null&&(A.callback=m),c=Tu(l,A,v),c!==null&&(oo(c,l,v),As(c,l,v))},enqueueForceUpdate:function(l,c){l=l._reactInternals;var m=Da(),v=wu(m);v.tag=2,c!=null&&(v.callback=c),c=Tu(l,v,m),c!==null&&(oo(c,l,m),As(c,l,m))}};function Nl(l,c,m,v,A,O,U){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(v,O,U):c.prototype&&c.prototype.isPureReactComponent?!Sc(m,v)||!Sc(A,O):!0}function $4(l,c,m,v){l=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(m,v),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(m,v),c.state!==l&&Xf.enqueueReplaceState(c,c.state,null)}function Wf(l,c){var m=c;if("ref"in c){m={};for(var v in c)v!=="ref"&&(m[v]=c[v])}if(l=l.defaultProps){m===c&&(m=x({},m));for(var A in l)m[A]===void 0&&(m[A]=l[A])}return m}function j4(l){Tc(l)}function B1(l){console.error(l)}function H4(l){Tc(l)}function b0(l,c){try{var m=l.onUncaughtError;m(c.value,{componentStack:c.stack})}catch(v){setTimeout(function(){throw v})}}function V1(l,c,m){try{var v=l.onCaughtError;v(m.value,{componentStack:m.stack,errorBoundary:c.tag===1?c.stateNode:null})}catch(A){setTimeout(function(){throw A})}}function S0(l,c,m){return m=wu(m),m.tag=3,m.payload={element:null},m.callback=function(){b0(l,c)},m}function G6(l){return l=wu(l),l.tag=3,l}function q4(l,c,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(c,m,v)}}var U=m.stateNode;U!==null&&typeof U.componentDidCatch=="function"&&(l.callback=function(){V1(c,m,v),typeof A!="function"&&(Ps===null?Ps=new Set([this]):Ps.add(this));var te=v.stack;this.componentDidCatch(v.value,{componentStack:te!==null?te:""})})}function Y6(l,c,m,v,A){if(m.flags|=32768,v!==null&&typeof v=="object"&&typeof v.then=="function"){if(c=m.alternate,c!==null&&Oo(c,m,A,!0),m=la.current,m!==null){switch(m.tag){case 31:case 13:return eo===null?Q1():m.alternate===null&&zr===0&&(zr=3),m.flags&=-257,m.flags|=65536,m.lanes=A,v===l0?m.flags|=16384:(c=m.updateQueue,c===null?m.updateQueue=new Set([v]):c.add(v),J1(l,v,A)),!1;case 22:return m.flags|=65536,v===l0?m.flags|=16384:(c=m.updateQueue,c===null?(c={transitions:null,markerInstances:null,retryQueue:new Set([v])},m.updateQueue=c):(m=c.retryQueue,m===null?c.retryQueue=new Set([v]):m.add(v)),J1(l,v,A)),!1}throw Error(i(435,m.tag))}return J1(l,v,A),Q1(),!1}if(kn)return c=la.current,c!==null?((c.flags&65536)===0&&(c.flags|=256),c.flags|=65536,c.lanes=A,v!==xs&&(l=Error(i(422),{cause:v}),up(To(l,m)))):(v!==xs&&(c=Error(i(423),{cause:v}),up(To(c,m))),l=l.current.alternate,l.flags|=65536,A&=-A,l.lanes|=A,v=To(v,m),A=S0(l.stateNode,v,A),c0(l,A),zr!==4&&(zr=2)),!1;var O=Error(i(520),{cause:v});if(O=To(O,m),Zr===null?Zr=[O]:Zr.push(O),zr!==4&&(zr=2),c===null)return!0;v=To(v,m),m=c;do{switch(m.tag){case 3:return m.flags|=65536,l=A&-A,m.lanes|=l,l=S0(m.stateNode,v,l),c0(m,l),!1;case 1:if(c=m.type,O=m.stateNode,(m.flags&128)===0&&(typeof c.getDerivedStateFromError=="function"||O!==null&&typeof O.componentDidCatch=="function"&&(Ps===null||!Ps.has(O))))return m.flags|=65536,A&=-A,m.lanes|=A,A=G6(A),q4(A,l,m,v),c0(m,A),!1}m=m.return}while(m!==null);return!1}var F4=Error(i(461)),li=!1;function Ni(l,c,m,v){c.child=l===null?S4(c,null,m,v):Pf(c,l.child,m,v)}function Ds(l,c,m,v,A){m=m.render;var O=c.ref;if("ref"in v){var U={};for(var te in v)te!=="ref"&&(U[te]=v[te])}else U=v;return Ts(c),v=Ou(l,c,m,U,O,A),te=w4(),l!==null&&!li?(x1(l,c,A),ks(l,c,A)):(kn&&te&&l1(c),c.flags|=1,Ni(l,c,v,A),c.child)}function G4(l,c,m,v,A){if(l===null){var O=m.type;return typeof O=="function"&&!Ko(O)&&O.defaultProps===void 0&&m.compare===null?(c.tag=15,c.type=O,Y4(l,c,O,v,A)):(l=rp(m.type,null,v,c,c.mode,A),l.ref=c.ref,l.return=c,c.child=l)}if(O=l.child,!Qf(l,A)){var U=O.memoizedProps;if(m=m.compare,m=m!==null?m:Sc,m(U,v)&&l.ref===c.ref)return ks(l,c,A)}return c.flags|=1,l=wo(O,v),l.ref=c.ref,l.return=c,c.child=l}function Y4(l,c,m,v,A){if(l!==null){var O=l.memoizedProps;if(Sc(O,v)&&l.ref===c.ref)if(li=!1,c.pendingProps=v=O,Qf(l,A))(l.flags&131072)!==0&&(li=!0);else return c.lanes=l.lanes,ks(l,c,A)}return Jo(l,c,m,v,A)}function X4(l,c,m,v){var A=v.children,O=l!==null?l.memoizedState:null;if(l===null&&c.stateNode===null&&(c.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),v.mode==="hidden"){if((c.flags&128)!==0){if(O=O!==null?O.baseLanes|m:m,l!==null){for(v=c.child=l.child,A=0;v!==null;)A=A|v.lanes|v.childLanes,v=v.sibling;v=A&~O}else v=0,c.child=null;return zp(l,c,O,m,v)}if((m&536870912)!==0)c.memoizedState={baseLanes:0,cachePool:null},l!==null&&Ja(c,O!==null?O.cachePool:null),O!==null?vp(c,O):x4(),xp(c);else return v=c.lanes=536870912,zp(l,c,O!==null?O.baseLanes|m:m,m,v)}else O!==null?(Ja(c,O.cachePool),vp(c,O),Cs(),c.memoizedState=null):(l!==null&&Ja(c,null),x4(),Cs());return Ni(l,c,A,m),c.child}function Np(l,c){return l!==null&&l.tag===22||c.stateNode!==null||(c.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.sibling}function zp(l,c,m,v,A){var O=xu();return O=O===null?null:{parent:Qr._currentValue,pool:O},c.memoizedState={baseLanes:m,cachePool:O},l!==null&&Ja(c,null),x4(),xp(c),l!==null&&Oo(l,c,v,!0),c.childLanes=A,null}function Wi(l,c){return c=_u({mode:c.mode,children:c.children},l.mode),c.ref=l.ref,l.child=c,c.return=l,c}function W4(l,c,m){return Pf(c,l.child,null,m),l=Wi(c,c.pendingProps),l.flags|=2,sa(c),c.memoizedState=null,l}function to(l,c,m){var v=c.pendingProps,A=(c.flags&128)!==0;if(c.flags&=-129,l===null){if(kn){if(v.mode==="hidden")return l=Wi(c,v),c.lanes=536870912,Np(null,l);if(Sp(c),(l=xr)?(l=mn(l,Ka),l=l!==null&&l.data==="&"?l:null,l!==null&&(c.memoizedState={dehydrated:l,treeContext:Ml!==null?{id:Co,overflow:Qa}:null,retryLane:536870912,hydrationErrors:null},m=ap(l),m.return=c,c.child=m,mi=c,xr=null)):l=null,l===null)throw Aa(c);return c.lanes=536870912,null}return Wi(c,v)}var O=l.memoizedState;if(O!==null){var U=O.dehydrated;if(Sp(c),A)if(c.flags&256)c.flags&=-257,c=W4(l,c,m);else if(c.memoizedState!==null)c.child=l.child,c.flags|=128,c=null;else throw Error(i(558));else if(li||Oo(l,c,m,!1),A=(m&l.childLanes)!==0,li||A){if(v=hr,v!==null&&(U=as(v,m),U!==0&&U!==O.retryLane))throw O.retryLane=U,ia(l,U),oo(v,l,U),F4;Q1(),c=W4(l,c,m)}else l=O.treeContext,xr=Zi(U.nextSibling),mi=c,kn=!0,Ss=null,Ka=!1,l!==null&&p4(c,l),c=Wi(c,v),c.flags|=4096;return c}return l=wo(l.child,{mode:v.mode,children:v.children}),l.ref=c.ref,c.child=l,l.return=c,l}function Ip(l,c){var m=c.ref;if(m===null)l!==null&&l.ref!==null&&(c.flags|=4194816);else{if(typeof m!="function"&&typeof m!="object")throw Error(i(284));(l===null||l.ref!==m)&&(c.flags|=4194816)}}function Jo(l,c,m,v,A){return Ts(c),m=Ou(l,c,m,v,void 0,A),v=w4(),l!==null&&!li?(x1(l,c,A),ks(l,c,A)):(kn&&v&&l1(c),c.flags|=1,Ni(l,c,m,A),c.child)}function Q4(l,c,m,v,A,O){return Ts(c),c.updateQueue=null,m=S1(c,v,m,A),b1(l),v=w4(),l!==null&&!li?(x1(l,c,O),ks(l,c,O)):(kn&&v&&l1(c),c.flags|=1,Ni(l,c,m,O),c.child)}function zc(l,c,m,v,A){if(Ts(c),c.stateNode===null){var O=zf,U=m.contextType;typeof U=="object"&&U!==null&&(O=Bt(U)),O=new m(v,O),c.memoizedState=O.state!==null&&O.state!==void 0?O.state:null,O.updater=Xf,c.stateNode=O,O._reactInternals=c,O=c.stateNode,O.props=v,O.state=c.memoizedState,O.refs={},m1(c),U=m.contextType,O.context=typeof U=="object"&&U!==null?Bt(U):zf,O.state=c.memoizedState,U=m.getDerivedStateFromProps,typeof U=="function"&&(P4(c,m,U,v),O.state=c.memoizedState),typeof m.getDerivedStateFromProps=="function"||typeof O.getSnapshotBeforeUpdate=="function"||typeof O.UNSAFE_componentWillMount!="function"&&typeof O.componentWillMount!="function"||(U=O.state,typeof O.componentWillMount=="function"&&O.componentWillMount(),typeof O.UNSAFE_componentWillMount=="function"&&O.UNSAFE_componentWillMount(),U!==O.state&&Xf.enqueueReplaceState(O,O.state,null),kc(c,v,O,A),yp(),O.state=c.memoizedState),typeof O.componentDidMount=="function"&&(c.flags|=4194308),v=!0}else if(l===null){O=c.stateNode;var te=c.memoizedProps,ve=Wf(m,te);O.props=ve;var Ie=O.context,Ge=m.contextType;U=zf,typeof Ge=="object"&&Ge!==null&&(U=Bt(Ge));var Je=m.getDerivedStateFromProps;Ge=typeof Je=="function"||typeof O.getSnapshotBeforeUpdate=="function",te=c.pendingProps!==te,Ge||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(te||Ie!==U)&&$4(c,O,v,U),Eu=!1;var Be=c.memoizedState;O.state=Be,kc(c,v,O,A),yp(),Ie=c.memoizedState,te||Be!==Ie||Eu?(typeof Je=="function"&&(P4(c,m,Je,v),Ie=c.memoizedState),(ve=Eu||Nl(c,m,ve,v,Be,Ie,U))?(Ge||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"&&(c.flags|=4194308)):(typeof O.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=v,c.memoizedState=Ie),O.props=v,O.state=Ie,O.context=U,v=ve):(typeof O.componentDidMount=="function"&&(c.flags|=4194308),v=!1)}else{O=c.stateNode,gp(l,c),U=c.memoizedProps,Ge=Wf(m,U),O.props=Ge,Je=c.pendingProps,Be=O.context,Ie=m.contextType,ve=zf,typeof Ie=="object"&&Ie!==null&&(ve=Bt(Ie)),te=m.getDerivedStateFromProps,(Ie=typeof te=="function"||typeof O.getSnapshotBeforeUpdate=="function")||typeof O.UNSAFE_componentWillReceiveProps!="function"&&typeof O.componentWillReceiveProps!="function"||(U!==Je||Be!==ve)&&$4(c,O,v,ve),Eu=!1,Be=c.memoizedState,O.state=Be,kc(c,v,O,A),yp();var He=c.memoizedState;U!==Je||Be!==He||Eu||l!==null&&l.dependencies!==null&&oa(l.dependencies)?(typeof te=="function"&&(P4(c,m,te,v),He=c.memoizedState),(Ge=Eu||Nl(c,m,Ge,v,Be,He,ve)||l!==null&&l.dependencies!==null&&oa(l.dependencies))?(Ie||typeof O.UNSAFE_componentWillUpdate!="function"&&typeof O.componentWillUpdate!="function"||(typeof O.componentWillUpdate=="function"&&O.componentWillUpdate(v,He,ve),typeof O.UNSAFE_componentWillUpdate=="function"&&O.UNSAFE_componentWillUpdate(v,He,ve)),typeof O.componentDidUpdate=="function"&&(c.flags|=4),typeof O.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof O.componentDidUpdate!="function"||U===l.memoizedProps&&Be===l.memoizedState||(c.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||U===l.memoizedProps&&Be===l.memoizedState||(c.flags|=1024),c.memoizedProps=v,c.memoizedState=He),O.props=v,O.state=He,O.context=ve,v=Ge):(typeof O.componentDidUpdate!="function"||U===l.memoizedProps&&Be===l.memoizedState||(c.flags|=4),typeof O.getSnapshotBeforeUpdate!="function"||U===l.memoizedProps&&Be===l.memoizedState||(c.flags|=1024),v=!1)}return O=v,Ip(l,c),v=(c.flags&128)!==0,O||v?(O=c.stateNode,m=v&&typeof m.getDerivedStateFromError!="function"?null:O.render(),c.flags|=1,l!==null&&v?(c.child=Pf(c,l.child,null,A),c.child=Pf(c,null,m,A)):Ni(l,c,m,A),c.memoizedState=O.state,l=c.child):l=ks(l,c,A),l}function K4(l,c,m,v){return Rl(),c.flags|=256,Ni(l,c,m,v),c.child}var el={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Lp(l){return{baseLanes:l,cachePool:p1()}}function Bp(l,c,m){return l=l!==null?l.childLanes&~m:0,c&&(l|=ro),l}function tl(l,c,m){var v=c.pendingProps,A=!1,O=(c.flags&128)!==0,U;if((U=O)||(U=l!==null&&l.memoizedState===null?!1:(Vr.current&2)!==0),U&&(A=!0,c.flags&=-129),U=(c.flags&32)!==0,c.flags&=-33,l===null){if(kn){if(A?Au(c):Cs(),(l=xr)?(l=mn(l,Ka),l=l!==null&&l.data!=="&"?l:null,l!==null&&(c.memoizedState={dehydrated:l,treeContext:Ml!==null?{id:Co,overflow:Qa}:null,retryLane:536870912,hydrationErrors:null},m=ap(l),m.return=c,c.child=m,mi=c,xr=null)):l=null,l===null)throw Aa(c);return ol(l)?c.lanes=32:c.lanes=536870912,null}var te=v.children;return v=v.fallback,A?(Cs(),A=c.mode,te=_u({mode:"hidden",children:te},A),v=If(v,A,m,null),te.return=c,v.return=c,te.sibling=v,c.child=te,v=c.child,v.memoizedState=Lp(m),v.childLanes=Bp(l,U,m),c.memoizedState=el,Np(null,v)):(Au(c),U1(c,te))}var ve=l.memoizedState;if(ve!==null&&(te=ve.dehydrated,te!==null)){if(O)c.flags&256?(Au(c),c.flags&=-257,c=P1(l,c,m)):c.memoizedState!==null?(Cs(),c.child=l.child,c.flags|=128,c=null):(Cs(),te=v.fallback,A=c.mode,v=_u({mode:"visible",children:v.children},A),te=If(te,A,m,null),te.flags|=2,v.return=c,te.return=c,v.sibling=te,c.child=v,Pf(c,l.child,null,m),v=c.child,v.memoizedState=Lp(m),v.childLanes=Bp(l,U,m),c.memoizedState=el,c=Np(null,v));else if(Au(c),ol(te)){if(U=te.nextSibling&&te.nextSibling.dataset,U)var Ie=U.dgst;U=Ie,v=Error(i(419)),v.stack="",v.digest=U,up({value:v,source:null,stack:null}),c=P1(l,c,m)}else if(li||Oo(l,c,m,!1),U=(m&l.childLanes)!==0,li||U){if(U=hr,U!==null&&(v=as(U,m),v!==0&&v!==ve.retryLane))throw ve.retryLane=v,ia(l,v),oo(U,l,v),F4;kS(te)||Q1(),c=P1(l,c,m)}else kS(te)?(c.flags|=192,c.child=l.child,c=null):(l=ve.treeContext,xr=Zi(te.nextSibling),mi=c,kn=!0,Ss=null,Ka=!1,l!==null&&p4(c,l),c=U1(c,v.children),c.flags|=4096);return c}return A?(Cs(),te=v.fallback,A=c.mode,ve=l.child,Ie=ve.sibling,v=wo(ve,{mode:"hidden",children:v.children}),v.subtreeFlags=ve.subtreeFlags&65011712,Ie!==null?te=wo(Ie,te):(te=If(te,A,m,null),te.flags|=2),te.return=c,v.return=c,v.sibling=te,c.child=v,Np(null,v),v=c.child,te=l.child.memoizedState,te===null?te=Lp(m):(A=te.cachePool,A!==null?(ve=Qr._currentValue,A=A.parent!==ve?{parent:ve,pool:ve}:A):A=p1(),te={baseLanes:te.baseLanes|m,cachePool:A}),v.memoizedState=te,v.childLanes=Bp(l,U,m),c.memoizedState=el,Np(l.child,v)):(Au(c),m=l.child,l=m.sibling,m=wo(m,{mode:"visible",children:v.children}),m.return=c,m.sibling=null,l!==null&&(U=c.deletions,U===null?(c.deletions=[l],c.flags|=16):U.push(l)),c.child=m,c.memoizedState=null,m)}function U1(l,c){return c=_u({mode:"visible",children:c},l.mode),c.return=l,l.child=c}function _u(l,c){return l=Xa(22,l,null,c),l.lanes=0,l}function P1(l,c,m){return Pf(c,l.child,null,m),l=U1(c,c.pendingProps.children),l.flags|=2,c.memoizedState=null,l}function x0(l,c,m){l.lanes|=c;var v=l.alternate;v!==null&&(v.lanes|=c),cp(l.return,c,m)}function Ic(l,c,m,v,A,O){var U=l.memoizedState;U===null?l.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:v,tail:m,tailMode:A,treeForkCount:O}:(U.isBackwards=c,U.rendering=null,U.renderingStartTime=0,U.last=v,U.tail=m,U.tailMode=A,U.treeForkCount=O)}function Z4(l,c,m){var v=c.pendingProps,A=v.revealOrder,O=v.tail;v=v.children;var U=Vr.current,te=(U&2)!==0;if(te?(U=U&1|2,c.flags|=128):U&=1,F(Vr,U),Ni(l,c,v,m),v=kn?r0:0,!te&&l!==null&&(l.flags&128)!==0)e:for(l=c.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&x0(l,m,c);else if(l.tag===19)x0(l,m,c);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===c)break e;for(;l.sibling===null;){if(l.return===null||l.return===c)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}switch(A){case"forwards":for(m=c.child,A=null;m!==null;)l=m.alternate,l!==null&&jf(l)===null&&(A=m),m=m.sibling;m=A,m===null?(A=c.child,c.child=null):(A=m.sibling,m.sibling=null),Ic(c,!1,A,m,O,v);break;case"backwards":case"unstable_legacy-backwards":for(m=null,A=c.child,c.child=null;A!==null;){if(l=A.alternate,l!==null&&jf(l)===null){c.child=A;break}l=A.sibling,A.sibling=m,m=A,A=l}Ic(c,!0,m,null,O,v);break;case"together":Ic(c,!1,null,null,void 0,v);break;default:c.memoizedState=null}return c.child}function ks(l,c,m){if(l!==null&&(c.dependencies=l.dependencies),il|=c.lanes,(m&c.childLanes)===0)if(l!==null){if(Oo(l,c,m,!1),(m&c.childLanes)===0)return null}else return null;if(l!==null&&c.child!==l.child)throw Error(i(153));if(c.child!==null){for(l=c.child,m=wo(l,l.pendingProps),c.child=m,m.return=c;l.sibling!==null;)l=l.sibling,m=m.sibling=wo(l,l.pendingProps),m.return=c;m.sibling=null}return c.child}function Qf(l,c){return(l.lanes&c)!==0?!0:(l=l.dependencies,!!(l!==null&&oa(l)))}function X6(l,c,m){switch(c.tag){case 3:Fe(c,c.stateNode.containerInfo),ws(c,Qr,l.memoizedState.cache),Rl();break;case 27:case 5:Qe(c);break;case 4:Fe(c,c.stateNode.containerInfo);break;case 10:ws(c,c.type,c.memoizedProps.value);break;case 31:if(c.memoizedState!==null)return c.flags|=128,Sp(c),null;break;case 13:var v=c.memoizedState;if(v!==null)return v.dehydrated!==null?(Au(c),c.flags|=128,null):(m&c.child.childLanes)!==0?tl(l,c,m):(Au(c),l=ks(l,c,m),l!==null?l.sibling:null);Au(c);break;case 19:var A=(l.flags&128)!==0;if(v=(m&c.childLanes)!==0,v||(Oo(l,c,m,!1),v=(m&c.childLanes)!==0),A){if(v)return Z4(l,c,m);c.flags|=128}if(A=c.memoizedState,A!==null&&(A.rendering=null,A.tail=null,A.lastEffect=null),F(Vr,Vr.current),v)break;return null;case 22:return c.lanes=0,X4(l,c,m,c.pendingProps);case 24:ws(c,Qr,l.memoizedState.cache)}return ks(l,c,m)}function Vp(l,c,m){if(l!==null)if(l.memoizedProps!==c.pendingProps)li=!0;else{if(!Qf(l,m)&&(c.flags&128)===0)return li=!1,X6(l,c,m);li=(l.flags&131072)!==0}else li=!1,kn&&(c.flags&1048576)!==0&&lp(c,r0,c.index);switch(c.lanes=0,c.tag){case 16:e:{var v=c.pendingProps;if(l=Rc(c.elementType),c.type=l,typeof l=="function")Ko(l)?(v=Wf(l,v),c.tag=1,c=zc(null,c,l,v,m)):(c.tag=0,c=Jo(null,c,l,v,m));else{if(l!=null){var A=l.$$typeof;if(A===V){c.tag=11,c=Ds(null,c,l,v,m);break e}else if(A===Y){c.tag=14,c=G4(null,c,l,v,m);break e}}throw c=W(l)||l,Error(i(306,c,""))}}return c;case 0:return Jo(l,c,c.type,c.pendingProps,m);case 1:return v=c.type,A=Wf(v,c.pendingProps),zc(l,c,v,A,m);case 3:e:{if(Fe(c,c.stateNode.containerInfo),l===null)throw Error(i(387));v=c.pendingProps;var O=c.memoizedState;A=O.element,gp(l,c),kc(c,v,null,m);var U=c.memoizedState;if(v=U.cache,ws(c,Qr,v),v!==O.cache&&c1(c,[Qr],m,!0),yp(),v=U.element,O.isDehydrated)if(O={element:v,isDehydrated:!1,cache:U.cache},c.updateQueue.baseState=O,c.memoizedState=O,c.flags&256){c=K4(l,c,v,m);break e}else if(v!==A){A=To(Error(i(424)),c),up(A),c=K4(l,c,v,m);break e}else{switch(l=c.stateNode.containerInfo,l.nodeType){case 9:l=l.body;break;default:l=l.nodeName==="HTML"?l.ownerDocument.body:l}for(xr=Zi(l.firstChild),mi=c,kn=!0,Ss=null,Ka=!0,m=S4(c,null,v,m),c.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling}else{if(Rl(),v===A){c=ks(l,c,m);break e}Ni(l,c,v,m)}c=c.child}return c;case 26:return Ip(l,c),l===null?(m=Bu(c.type,null,c.pendingProps,null))?c.memoizedState=m:kn||(m=c.type,l=c.pendingProps,v=om(De.current).createElement(m),v[pi]=c,v[Mr]=l,Ki(v,m,l),Ei(v),c.stateNode=v):c.memoizedState=Bu(c.type,l.memoizedProps,c.pendingProps,l.memoizedState),null;case 27:return Qe(c),l===null&&kn&&(v=c.stateNode=Bl(c.type,c.pendingProps,De.current),mi=c,Ka=!0,A=xr,$s(c.type)?(I0=A,xr=Zi(v.firstChild)):xr=A),Ni(l,c,c.pendingProps.children,m),Ip(l,c),l===null&&(c.flags|=4194304),c.child;case 5:return l===null&&kn&&((A=v=xr)&&(v=DS(v,c.type,c.pendingProps,Ka),v!==null?(c.stateNode=v,mi=c,xr=Zi(v.firstChild),Ka=!1,A=!0):A=!1),A||Aa(c)),Qe(c),A=c.type,O=c.pendingProps,U=l!==null?l.memoizedProps:null,v=O.children,fy(A,O)?v=null:U!==null&&fy(A,U)&&(c.flags|=32),c.memoizedState!==null&&(A=Ou(l,c,U8,null,null,m),ei._currentValue=A),Ip(l,c),Ni(l,c,v,m),c.child;case 6:return l===null&&kn&&((l=m=xr)&&(m=q8(m,c.pendingProps,Ka),m!==null?(c.stateNode=m,mi=c,xr=null,l=!0):l=!1),l||Aa(c)),null;case 13:return tl(l,c,m);case 4:return Fe(c,c.stateNode.containerInfo),v=c.pendingProps,l===null?c.child=Pf(c,null,v,m):Ni(l,c,v,m),c.child;case 11:return Ds(l,c,c.type,c.pendingProps,m);case 7:return Ni(l,c,c.pendingProps,m),c.child;case 8:return Ni(l,c,c.pendingProps.children,m),c.child;case 12:return Ni(l,c,c.pendingProps.children,m),c.child;case 10:return v=c.pendingProps,ws(c,c.type,v.value),Ni(l,c,v.children,m),c.child;case 9:return A=c.type._context,v=c.pendingProps.children,Ts(c),A=Bt(A),v=v(A),c.flags|=1,Ni(l,c,v,m),c.child;case 14:return G4(l,c,c.type,c.pendingProps,m);case 15:return Y4(l,c,c.type,c.pendingProps,m);case 19:return Z4(l,c,m);case 31:return to(l,c,m);case 22:return X4(l,c,m,c.pendingProps);case 24:return Ts(c),v=Bt(Qr),l===null?(A=xu(),A===null&&(A=hr,O=d1(),A.pooledCache=O,O.refCount++,O!==null&&(A.pooledCacheLanes|=m),A=O),c.memoizedState={parent:v,cache:A},m1(c),ws(c,Qr,A)):((l.lanes&m)!==0&&(gp(l,c),kc(c,null,null,m),yp()),A=l.memoizedState,O=c.memoizedState,A.parent!==v?(A={parent:v,cache:v},c.memoizedState=A,c.lanes===0&&(c.memoizedState=c.updateQueue.baseState=A),ws(c,Qr,v)):(v=O.cache,ws(c,Qr,v),v!==A.cache&&c1(c,[Qr],m,!0))),Ni(l,c,c.pendingProps.children,m),c.child;case 29:throw c.pendingProps}throw Error(i(156,c.tag))}function Ns(l){l.flags|=4}function $1(l,c,m,v,A){if((c=(l.mode&32)!==0)&&(c=!1),c){if(l.flags|=16777216,(A&335544128)===A)if(l.stateNode.complete)l.flags|=8192;else if(C0())l.flags|=8192;else throw _c=l0,hp}else l.flags&=-16777217}function W6(l,c){if(c.type!=="stylesheet"||(c.state.loading&4)!==0)l.flags&=-16777217;else if(l.flags|=16777216,!by(c))if(C0())l.flags|=8192;else throw _c=l0,hp}function Up(l,c){c!==null&&(l.flags|=4),l.flags&16384&&(c=l.tag!==22?pt():536870912,l.lanes|=c,Vc|=c)}function Qi(l,c){if(!kn)switch(l.tailMode){case"hidden":c=l.tail;for(var m=null;c!==null;)c.alternate!==null&&(m=c),c=c.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?c||l.tail===null?l.tail=null:l.tail.sibling=null:v.sibling=null}}function Er(l){var c=l.alternate!==null&&l.alternate.child===l.child,m=0,v=0;if(c)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,c}function Pr(l,c,m){var v=c.pendingProps;switch(i0(c),c.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Er(c),null;case 1:return Er(c),null;case 3:return m=c.stateNode,v=null,l!==null&&(v=l.memoizedState.cache),c.memoizedState.cache!==v&&(c.flags|=2048),aa(Qr),Ze(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(l===null||l.child===null)&&(Es(c)?Ns(c):l===null||l.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,s1())),Er(c),null;case 26:var A=c.type,O=c.memoizedState;return l===null?(Ns(c),O!==null?(Er(c),W6(c,O)):(Er(c),$1(c,A,null,v,m))):O?O!==l.memoizedState?(Ns(c),Er(c),W6(c,O)):(Er(c),c.flags&=-16777217):(l=l.memoizedProps,l!==v&&Ns(c),Er(c),$1(c,A,l,v,m)),null;case 27:if(tt(c),m=De.current,A=c.type,l!==null&&c.stateNode!=null)l.memoizedProps!==v&&Ns(c);else{if(!v){if(c.stateNode===null)throw Error(i(166));return Er(c),null}l=Re.current,Es(c)?a0(c):(l=Bl(A,v,m),c.stateNode=l,Ns(c))}return Er(c),null;case 5:if(tt(c),A=c.type,l!==null&&c.stateNode!=null)l.memoizedProps!==v&&Ns(c);else{if(!v){if(c.stateNode===null)throw Error(i(166));return Er(c),null}if(O=Re.current,Es(c))a0(c);else{var U=om(De.current);switch(O){case 1:O=U.createElementNS("http://www.w3.org/2000/svg",A);break;case 2:O=U.createElementNS("http://www.w3.org/1998/Math/MathML",A);break;default:switch(A){case"svg":O=U.createElementNS("http://www.w3.org/2000/svg",A);break;case"math":O=U.createElementNS("http://www.w3.org/1998/Math/MathML",A);break;case"script":O=U.createElement("div"),O.innerHTML="<script><\/script>",O=O.removeChild(O.firstChild);break;case"select":O=typeof v.is=="string"?U.createElement("select",{is:v.is}):U.createElement("select"),v.multiple?O.multiple=!0:v.size&&(O.size=v.size);break;default:O=typeof v.is=="string"?U.createElement(A,{is:v.is}):U.createElement(A)}}O[pi]=c,O[Mr]=v;e:for(U=c.child;U!==null;){if(U.tag===5||U.tag===6)O.appendChild(U.stateNode);else if(U.tag!==4&&U.tag!==27&&U.child!==null){U.child.return=U,U=U.child;continue}if(U===c)break e;for(;U.sibling===null;){if(U.return===null||U.return===c)break e;U=U.return}U.sibling.return=U.return,U=U.sibling}c.stateNode=O;e:switch(Ki(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(c)}}return Er(c),$1(c,c.type,l===null?null:l.memoizedProps,c.pendingProps,m),null;case 6:if(l&&c.stateNode!=null)l.memoizedProps!==v&&Ns(c);else{if(typeof v!="string"&&c.stateNode===null)throw Error(i(166));if(l=De.current,Es(c)){if(l=c.stateNode,m=c.memoizedProps,v=null,A=mi,A!==null)switch(A.tag){case 27:case 5:v=A.memoizedProps}l[pi]=c,l=!!(l.nodeValue===m||v!==null&&v.suppressHydrationWarning===!0||CS(l.nodeValue,m)),l||Aa(c,!0)}else l=om(l).createTextNode(v),l[pi]=c,c.stateNode=l}return Er(c),null;case 31:if(m=c.memoizedState,l===null||l.memoizedState!==null){if(v=Es(c),m!==null){if(l===null){if(!v)throw Error(i(318));if(l=c.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(i(557));l[pi]=c}else Rl(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;Er(c),l=!1}else m=s1(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=m),l=!0;if(!l)return c.flags&256?(sa(c),c):(sa(c),null);if((c.flags&128)!==0)throw Error(i(558))}return Er(c),null;case 13:if(v=c.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(A=Es(c),v!==null&&v.dehydrated!==null){if(l===null){if(!A)throw Error(i(318));if(A=c.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(i(317));A[pi]=c}else Rl(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;Er(c),A=!1}else A=s1(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=A),A=!0;if(!A)return c.flags&256?(sa(c),c):(sa(c),null)}return sa(c),(c.flags&128)!==0?(c.lanes=m,c):(m=v!==null,l=l!==null&&l.memoizedState!==null,m&&(v=c.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&&(c.child.flags|=8192),Up(c,c.updateQueue),Er(c),null);case 4:return Ze(),l===null&&wS(c.stateNode.containerInfo),Er(c),null;case 10:return aa(c.type),Er(c),null;case 19:if(J(Vr),v=c.memoizedState,v===null)return Er(c),null;if(A=(c.flags&128)!==0,O=v.rendering,O===null)if(A)Qi(v,!1);else{if(zr!==0||l!==null&&(l.flags&128)!==0)for(l=c.child;l!==null;){if(O=jf(l),O!==null){for(c.flags|=128,Qi(v,!1),l=O.updateQueue,c.updateQueue=l,Up(c,l),c.subtreeFlags=0,l=m,m=c.child;m!==null;)V6(m,l),m=m.sibling;return F(Vr,Vr.current&1|2),kn&&bs(c,v.treeForkCount),c.child}l=l.sibling}v.tail!==null&&$t()>Xp&&(c.flags|=128,A=!0,Qi(v,!1),c.lanes=4194304)}else{if(!A)if(l=jf(O),l!==null){if(c.flags|=128,A=!0,l=l.updateQueue,c.updateQueue=l,Up(c,l),Qi(v,!0),v.tail===null&&v.tailMode==="hidden"&&!O.alternate&&!kn)return Er(c),null}else 2*$t()-v.renderingStartTime>Xp&&m!==536870912&&(c.flags|=128,A=!0,Qi(v,!1),c.lanes=4194304);v.isBackwards?(O.sibling=c.child,c.child=O):(l=v.last,l!==null?l.sibling=O:c.child=O,v.last=O)}return v.tail!==null?(l=v.tail,v.rendering=l,v.tail=l.sibling,v.renderingStartTime=$t(),l.sibling=null,m=Vr.current,F(Vr,A?m&1|2:m&1),kn&&bs(c,v.treeForkCount),l):(Er(c),null);case 22:case 23:return sa(c),bp(),v=c.memoizedState!==null,l!==null?l.memoizedState!==null!==v&&(c.flags|=8192):v&&(c.flags|=8192),v?(m&536870912)!==0&&(c.flags&128)===0&&(Er(c),c.subtreeFlags&6&&(c.flags|=8192)):Er(c),m=c.updateQueue,m!==null&&Up(c,m.retryQueue),m=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),v=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(v=c.memoizedState.cachePool.pool),v!==m&&(c.flags|=2048),l!==null&&J(Za),null;case 24:return m=null,l!==null&&(m=l.memoizedState.cache),c.memoizedState.cache!==m&&(c.flags|=2048),aa(Qr),Er(c),null;case 25:return null;case 30:return null}throw Error(i(156,c.tag))}function Q6(l,c){switch(i0(c),c.tag){case 1:return l=c.flags,l&65536?(c.flags=l&-65537|128,c):null;case 3:return aa(Qr),Ze(),l=c.flags,(l&65536)!==0&&(l&128)===0?(c.flags=l&-65537|128,c):null;case 26:case 27:case 5:return tt(c),null;case 31:if(c.memoizedState!==null){if(sa(c),c.alternate===null)throw Error(i(340));Rl()}return l=c.flags,l&65536?(c.flags=l&-65537|128,c):null;case 13:if(sa(c),l=c.memoizedState,l!==null&&l.dehydrated!==null){if(c.alternate===null)throw Error(i(340));Rl()}return l=c.flags,l&65536?(c.flags=l&-65537|128,c):null;case 19:return J(Vr),null;case 4:return Ze(),null;case 10:return aa(c.type),null;case 22:case 23:return sa(c),bp(),l!==null&&J(Za),l=c.flags,l&65536?(c.flags=l&-65537|128,c):null;case 24:return aa(Qr),null;case 25:return null;default:return null}}function J4(l,c){switch(i0(c),c.tag){case 3:aa(Qr),Ze();break;case 26:case 27:case 5:tt(c);break;case 4:Ze();break;case 31:c.memoizedState!==null&&sa(c);break;case 13:sa(c);break;case 19:J(Vr);break;case 10:aa(c.type);break;case 22:case 23:sa(c),bp(),l!==null&&J(Za);break;case 24:aa(Qr)}}function Pp(l,c){try{var m=c.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,U=m.inst;v=O(),U.destroy=v}m=m.next}while(m!==A)}}catch(te){ir(c,c.return,te)}}function Oa(l,c,m){try{var v=c.updateQueue,A=v!==null?v.lastEffect:null;if(A!==null){var O=A.next;v=O;do{if((v.tag&l)===l){var U=v.inst,te=U.destroy;if(te!==void 0){U.destroy=void 0,A=c;var ve=m,Ie=te;try{Ie()}catch(Ge){ir(A,ve,Ge)}}}v=v.next}while(v!==O)}}catch(Ge){ir(c,c.return,Ge)}}function Kf(l){var c=l.updateQueue;if(c!==null){var m=l.stateNode;try{y1(c,m)}catch(v){ir(l,l.return,v)}}}function j1(l,c,m){m.props=Wf(l.type,l.memoizedProps),m.state=l.memoizedState;try{m.componentWillUnmount()}catch(v){ir(l,c,v)}}function zl(l,c){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,c,A)}}function Ma(l,c){var m=l.ref,v=l.refCleanup;if(m!==null)if(typeof v=="function")try{v()}catch(A){ir(l,c,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,c,A)}else m.current=null}function eS(l){var c=l.type,m=l.memoizedProps,v=l.stateNode;try{e:switch(c){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 H1(l,c,m){try{var v=l.stateNode;H8(v,l.type,m,c),v[Mr]=c}catch(A){ir(l,l.return,A)}}function tS(l){return l.tag===5||l.tag===3||l.tag===26||l.tag===27&&$s(l.type)||l.tag===4}function q1(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||tS(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&&$s(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 E0(l,c,m){var v=l.tag;if(v===5||v===6)l=l.stateNode,c?(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m).insertBefore(l,c):(c=m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,c.appendChild(l),m=m._reactRootContainer,m!=null||c.onclick!==null||(c.onclick=qi));else if(v!==4&&(v===27&&$s(l.type)&&(m=l.stateNode,c=null),l=l.child,l!==null))for(E0(l,c,m),l=l.sibling;l!==null;)E0(l,c,m),l=l.sibling}function Zf(l,c,m){var v=l.tag;if(v===5||v===6)l=l.stateNode,c?m.insertBefore(l,c):m.appendChild(l);else if(v!==4&&(v===27&&$s(l.type)&&(m=l.stateNode),l=l.child,l!==null))for(Zf(l,c,m),l=l.sibling;l!==null;)Zf(l,c,m),l=l.sibling}function F1(l){var c=l.stateNode,m=l.memoizedProps;try{for(var v=l.type,A=c.attributes;A.length;)c.removeAttributeNode(A[0]);Ki(c,v,m),c[pi]=l,c[Mr]=m}catch(O){ir(l,l.return,O)}}var zs=!1,gi=!1,nS=!1,rS=typeof WeakSet=="function"?WeakSet:Set,wi=null;function P8(l,c){if(l=l.containerInfo,am=Vu,l=kf(l),bu(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 U=0,te=-1,ve=-1,Ie=0,Ge=0,Je=l,Be=null;t:for(;;){for(var He;Je!==m||A!==0&&Je.nodeType!==3||(te=U+A),Je!==O||v!==0&&Je.nodeType!==3||(ve=U+v),Je.nodeType===3&&(U+=Je.nodeValue.length),(He=Je.firstChild)!==null;)Be=Je,Je=He;for(;;){if(Je===l)break t;if(Be===m&&++Ie===A&&(te=U),Be===O&&++Ge===v&&(ve=U),(He=Je.nextSibling)!==null)break;Je=Be,Be=Je.parentNode}Je=He}m=te===-1||ve===-1?null:{start:te,end:ve}}else m=null}m=m||{start:0,end:0}}else m=null;for(cy={focusedElem:l,selectionRange:m},Vu=!1,wi=c;wi!==null;)if(c=wi,l=c.child,(c.subtreeFlags&1028)!==0&&l!==null)l.return=c,wi=l;else for(;wi!==null;){switch(c=wi,O=c.alternate,l=c.flags,c.tag){case 0:if((l&4)!==0&&(l=c.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=c,A=O.memoizedProps,O=O.memoizedState,v=m.stateNode;try{var Rt=Wf(m.type,A);l=v.getSnapshotBeforeUpdate(Rt,O),v.__reactInternalSnapshotBeforeUpdate=l}catch(jt){ir(m,m.return,jt)}}break;case 3:if((l&1024)!==0){if(l=c.stateNode.containerInfo,m=l.nodeType,m===9)Jr(l);else if(m===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":Jr(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=c.sibling,l!==null){l.return=c.return,wi=l;break}wi=c.return}}function Jf(l,c,m){var v=m.flags;switch(m.tag){case 0:case 11:case 15:Ls(l,m),v&4&&Pp(5,m);break;case 1:if(Ls(l,m),v&4)if(l=m.stateNode,c===null)try{l.componentDidMount()}catch(U){ir(m,m.return,U)}else{var A=Wf(m.type,c.memoizedProps);c=c.memoizedState;try{l.componentDidUpdate(A,c,l.__reactInternalSnapshotBeforeUpdate)}catch(U){ir(m,m.return,U)}}v&64&&Kf(m),v&512&&zl(m,m.return);break;case 3:if(Ls(l,m),v&64&&(l=m.updateQueue,l!==null)){if(c=null,m.child!==null)switch(m.child.tag){case 27:case 5:c=m.child.stateNode;break;case 1:c=m.child.stateNode}try{y1(l,c)}catch(U){ir(m,m.return,U)}}break;case 27:c===null&&v&4&&F1(m);case 26:case 5:Ls(l,m),c===null&&v&4&&eS(m),v&512&&zl(m,m.return);break;case 12:Ls(l,m);break;case 31:Ls(l,m),v&4&&aS(l,m);break;case 13:Ls(l,m),v&4&&K6(l,m),v&64&&(l=m.memoizedState,l!==null&&(l=l.dehydrated,l!==null&&(m=j8.bind(null,m),z0(l,m))));break;case 22:if(v=m.memoizedState!==null||zs,!v){c=c!==null&&c.memoizedState!==null||gi,A=zs;var O=gi;zs=v,(gi=c)&&!O?Du(l,m,(m.subtreeFlags&8772)!==0):Ls(l,m),zs=A,gi=O}break;case 30:break;default:Ls(l,m)}}function $p(l){var c=l.alternate;c!==null&&(l.alternate=null,$p(c)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(c=l.stateNode,c!==null&&mc(c)),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,ua=!1;function Is(l,c,m){for(m=m.child;m!==null;)iS(l,c,m),m=m.sibling}function iS(l,c,m){if(Vt&&typeof Vt.onCommitFiberUnmount=="function")try{Vt.onCommitFiberUnmount(kt,m)}catch{}switch(m.tag){case 26:gi||Ma(m,c),Is(l,c,m),m.memoizedState?m.memoizedState.count--:m.stateNode&&(m=m.stateNode,m.parentNode.removeChild(m));break;case 27:gi||Ma(m,c);var v=Rr,A=ua;$s(m.type)&&(Rr=m.stateNode,ua=!1),Is(l,c,m),Iu(m.stateNode),Rr=v,ua=A;break;case 5:gi||Ma(m,c);case 6:if(v=Rr,A=ua,Rr=null,Is(l,c,m),Rr=v,ua=A,Rr!==null)if(ua)try{(Rr.nodeType===9?Rr.body:Rr.nodeName==="HTML"?Rr.ownerDocument.body:Rr).removeChild(m.stateNode)}catch(O){ir(m,c,O)}else try{Rr.removeChild(m.stateNode)}catch(O){ir(m,c,O)}break;case 18:Rr!==null&&(ua?(l=Rr,lm(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,m.stateNode),U0(l)):lm(Rr,m.stateNode));break;case 4:v=Rr,A=ua,Rr=m.stateNode.containerInfo,ua=!0,Is(l,c,m),Rr=v,ua=A;break;case 0:case 11:case 14:case 15:Oa(2,m,c),gi||Oa(4,m,c),Is(l,c,m);break;case 1:gi||(Ma(m,c),v=m.stateNode,typeof v.componentWillUnmount=="function"&&j1(m,c,v)),Is(l,c,m);break;case 21:Is(l,c,m);break;case 22:gi=(v=gi)||m.memoizedState!==null,Is(l,c,m),gi=v;break;default:Is(l,c,m)}}function aS(l,c){if(c.memoizedState===null&&(l=c.alternate,l!==null&&(l=l.memoizedState,l!==null))){l=l.dehydrated;try{U0(l)}catch(m){ir(c,c.return,m)}}}function K6(l,c){if(c.memoizedState===null&&(l=c.alternate,l!==null&&(l=l.memoizedState,l!==null&&(l=l.dehydrated,l!==null))))try{U0(l)}catch(m){ir(c,c.return,m)}}function Z6(l){switch(l.tag){case 31:case 13:case 19:var c=l.stateNode;return c===null&&(c=l.stateNode=new rS),c;case 22:return l=l.stateNode,c=l._retryCache,c===null&&(c=l._retryCache=new rS),c;default:throw Error(i(435,l.tag))}}function Lc(l,c){var m=Z6(l);c.forEach(function(v){if(!m.has(v)){m.add(v);var A=Mo.bind(null,l,v);v.then(A,A)}})}function Ra(l,c){var m=c.deletions;if(m!==null)for(var v=0;v<m.length;v++){var A=m[v],O=l,U=c,te=U;e:for(;te!==null;){switch(te.tag){case 27:if($s(te.type)){Rr=te.stateNode,ua=!1;break e}break;case 5:Rr=te.stateNode,ua=!1;break e;case 3:case 4:Rr=te.stateNode.containerInfo,ua=!0;break e}te=te.return}if(Rr===null)throw Error(i(160));iS(O,U,A),Rr=null,ua=!1,O=A.alternate,O!==null&&(O.return=null),A.return=null}if(c.subtreeFlags&13886)for(c=c.child;c!==null;)Gn(c,l),c=c.sibling}var nl=null;function Gn(l,c){var m=l.alternate,v=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:Ra(c,l),ca(l),v&4&&(Oa(3,l,l.return),Pp(3,l),Oa(5,l,l.return));break;case 1:Ra(c,l),ca(l),v&512&&(gi||m===null||Ma(m,m.return)),v&64&&zs&&(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(Ra(c,l),ca(l),v&512&&(gi||m===null||Ma(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[Yd]||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"))),Ki(O,v,m),O[pi]=l,Ei(O),v=O;break e;case"link":var U=vy("link","href",A).get(v+(m.href||""));if(U){for(var te=0;te<U.length;te++)if(O=U[te],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)){U.splice(te,1);break t}}O=A.createElement(v),Ki(O,v,m),A.head.appendChild(O);break;case"meta":if(U=vy("meta","content",A).get(v+(m.content||""))){for(te=0;te<U.length;te++)if(O=U[te],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)){U.splice(te,1);break t}}O=A.createElement(v),Ki(O,v,m),A.head.appendChild(O);break;default:throw Error(i(468,v))}O[pi]=l,Ei(O),v=O}l.stateNode=v}else BS(A,l.type,l.stateNode);else l.stateNode=LS(A,v,l.memoizedProps);else O!==v?(O===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):O.count--,v===null?BS(A,l.type,l.stateNode):LS(A,v,l.memoizedProps)):v===null&&l.stateNode!==null&&H1(l,l.memoizedProps,m.memoizedProps)}break;case 27:Ra(c,l),ca(l),v&512&&(gi||m===null||Ma(m,m.return)),m!==null&&v&4&&H1(l,l.memoizedProps,m.memoizedProps);break;case 5:if(Ra(c,l),ca(l),v&512&&(gi||m===null||Ma(m,m.return)),l.flags&32){A=l.stateNode;try{Tf(A,"")}catch(Rt){ir(l,l.return,Rt)}}v&4&&l.stateNode!=null&&(A=l.memoizedProps,H1(l,A,m!==null?m.memoizedProps:A)),v&1024&&(nS=!0);break;case 6:if(Ra(c,l),ca(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(fm=null,A=nl,nl=ld(c.containerInfo),Ra(c,l),nl=A,ca(l),v&4&&m!==null&&m.memoizedState.isDehydrated)try{U0(c.containerInfo)}catch(Rt){ir(l,l.return,Rt)}nS&&(nS=!1,J6(l));break;case 4:v=nl,nl=ld(l.stateNode.containerInfo),Ra(c,l),ca(l),nl=v;break;case 12:Ra(c,l),ca(l);break;case 31:Ra(c,l),ca(l),v&4&&(v=l.updateQueue,v!==null&&(l.updateQueue=null,Lc(l,v)));break;case 13:Ra(c,l),ca(l),l.child.flags&8192&&l.memoizedState!==null!=(m!==null&&m.memoizedState!==null)&&(Yp=$t()),v&4&&(v=l.updateQueue,v!==null&&(l.updateQueue=null,Lc(l,v)));break;case 22:A=l.memoizedState!==null;var ve=m!==null&&m.memoizedState!==null,Ie=zs,Ge=gi;if(zs=Ie||A,gi=Ge||ve,Ra(c,l),gi=Ge,zs=Ie,ca(l),v&8192)e:for(c=l.stateNode,c._visibility=A?c._visibility&-2:c._visibility|1,A&&(m===null||ve||zs||gi||ed(l)),m=null,c=l;;){if(c.tag===5||c.tag===26){if(m===null){ve=m=c;try{if(O=ve.stateNode,A)U=O.style,typeof U.setProperty=="function"?U.setProperty("display","none","important"):U.display="none";else{te=ve.stateNode;var Je=ve.memoizedProps.style,Be=Je!=null&&Je.hasOwnProperty("display")?Je.display:null;te.style.display=Be==null||typeof Be=="boolean"?"":(""+Be).trim()}}catch(Rt){ir(ve,ve.return,Rt)}}}else if(c.tag===6){if(m===null){ve=c;try{ve.stateNode.nodeValue=A?"":ve.memoizedProps}catch(Rt){ir(ve,ve.return,Rt)}}}else if(c.tag===18){if(m===null){ve=c;try{var He=ve.stateNode;A?_S(He,!0):_S(ve.stateNode,!1)}catch(Rt){ir(ve,ve.return,Rt)}}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===l)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===l)break e;for(;c.sibling===null;){if(c.return===null||c.return===l)break e;m===c&&(m=null),c=c.return}m===c&&(m=null),c.sibling.return=c.return,c=c.sibling}v&4&&(v=l.updateQueue,v!==null&&(m=v.retryQueue,m!==null&&(v.retryQueue=null,Lc(l,m))));break;case 19:Ra(c,l),ca(l),v&4&&(v=l.updateQueue,v!==null&&(l.updateQueue=null,Lc(l,v)));break;case 30:break;case 21:break;default:Ra(c,l),ca(l)}}function ca(l){var c=l.flags;if(c&2){try{for(var m,v=l.return;v!==null;){if(tS(v)){m=v;break}v=v.return}if(m==null)throw Error(i(160));switch(m.tag){case 27:var A=m.stateNode,O=q1(l);Zf(l,O,A);break;case 5:var U=m.stateNode;m.flags&32&&(Tf(U,""),m.flags&=-33);var te=q1(l);Zf(l,te,U);break;case 3:case 4:var ve=m.stateNode.containerInfo,Ie=q1(l);E0(l,Ie,ve);break;default:throw Error(i(161))}}catch(Ge){ir(l,l.return,Ge)}l.flags&=-3}c&4096&&(l.flags&=-4097)}function J6(l){if(l.subtreeFlags&1024)for(l=l.child;l!==null;){var c=l;J6(c),c.tag===5&&c.flags&1024&&c.stateNode.reset(),l=l.sibling}}function Ls(l,c){if(c.subtreeFlags&8772)for(c=c.child;c!==null;)Jf(l,c.alternate,c),c=c.sibling}function ed(l){for(l=l.child;l!==null;){var c=l;switch(c.tag){case 0:case 11:case 14:case 15:Oa(4,c,c.return),ed(c);break;case 1:Ma(c,c.return);var m=c.stateNode;typeof m.componentWillUnmount=="function"&&j1(c,c.return,m),ed(c);break;case 27:Iu(c.stateNode);case 26:case 5:Ma(c,c.return),ed(c);break;case 22:c.memoizedState===null&&ed(c);break;case 30:ed(c);break;default:ed(c)}l=l.sibling}}function Du(l,c,m){for(m=m&&(c.subtreeFlags&8772)!==0,c=c.child;c!==null;){var v=c.alternate,A=l,O=c,U=O.flags;switch(O.tag){case 0:case 11:case 15:Du(A,O,m),Pp(4,O);break;case 1:if(Du(A,O,m),v=O,A=v.stateNode,typeof A.componentDidMount=="function")try{A.componentDidMount()}catch(Ie){ir(v,v.return,Ie)}if(v=O,A=v.updateQueue,A!==null){var te=v.stateNode;try{var ve=A.shared.hiddenCallbacks;if(ve!==null)for(A.shared.hiddenCallbacks=null,A=0;A<ve.length;A++)$f(ve[A],te)}catch(Ie){ir(v,v.return,Ie)}}m&&U&64&&Kf(O),zl(O,O.return);break;case 27:F1(O);case 26:case 5:Du(A,O,m),m&&v===null&&U&4&&eS(O),zl(O,O.return);break;case 12:Du(A,O,m);break;case 31:Du(A,O,m),m&&U&4&&aS(A,O);break;case 13:Du(A,O,m),m&&U&4&&K6(A,O);break;case 22:O.memoizedState===null&&Du(A,O,m),zl(O,O.return);break;case 30:break;default:Du(A,O,m)}c=c.sibling}}function jp(l,c){var m=null;l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(m=l.memoizedState.cachePool.pool),l=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(l=c.memoizedState.cachePool.pool),l!==m&&(l!=null&&l.refCount++,m!=null&&Vf(m))}function G1(l,c){l=null,c.alternate!==null&&(l=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==l&&(c.refCount++,l!=null&&Vf(l))}function rl(l,c,m,v){if(c.subtreeFlags&10256)for(c=c.child;c!==null;)oS(l,c,m,v),c=c.sibling}function oS(l,c,m,v){var A=c.flags;switch(c.tag){case 0:case 11:case 15:rl(l,c,m,v),A&2048&&Pp(9,c);break;case 1:rl(l,c,m,v);break;case 3:rl(l,c,m,v),A&2048&&(l=null,c.alternate!==null&&(l=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==l&&(c.refCount++,l!=null&&Vf(l)));break;case 12:if(A&2048){rl(l,c,m,v),l=c.stateNode;try{var O=c.memoizedProps,U=O.id,te=O.onPostCommit;typeof te=="function"&&te(U,c.alternate===null?"mount":"update",l.passiveEffectDuration,-0)}catch(ve){ir(c,c.return,ve)}}else rl(l,c,m,v);break;case 31:rl(l,c,m,v);break;case 13:rl(l,c,m,v);break;case 23:break;case 22:O=c.stateNode,U=c.alternate,c.memoizedState!==null?O._visibility&2?rl(l,c,m,v):Hp(l,c):O._visibility&2?rl(l,c,m,v):(O._visibility|=2,Bs(l,c,m,v,(c.subtreeFlags&10256)!==0||!1)),A&2048&&jp(U,c);break;case 24:rl(l,c,m,v),A&2048&&G1(c.alternate,c);break;default:rl(l,c,m,v)}}function Bs(l,c,m,v,A){for(A=A&&((c.subtreeFlags&10256)!==0||!1),c=c.child;c!==null;){var O=l,U=c,te=m,ve=v,Ie=U.flags;switch(U.tag){case 0:case 11:case 15:Bs(O,U,te,ve,A),Pp(8,U);break;case 23:break;case 22:var Ge=U.stateNode;U.memoizedState!==null?Ge._visibility&2?Bs(O,U,te,ve,A):Hp(O,U):(Ge._visibility|=2,Bs(O,U,te,ve,A)),A&&Ie&2048&&jp(U.alternate,U);break;case 24:Bs(O,U,te,ve,A),A&&Ie&2048&&G1(U.alternate,U);break;default:Bs(O,U,te,ve,A)}c=c.sibling}}function Hp(l,c){if(c.subtreeFlags&10256)for(c=c.child;c!==null;){var m=l,v=c,A=v.flags;switch(v.tag){case 22:Hp(m,v),A&2048&&jp(v.alternate,v);break;case 24:Hp(m,v),A&2048&&G1(v.alternate,v);break;default:Hp(m,v)}c=c.sibling}}var qp=8192;function _a(l,c,m){if(l.subtreeFlags&qp)for(l=l.child;l!==null;)w0(l,c,m),l=l.sibling}function w0(l,c,m){switch(l.tag){case 26:_a(l,c,m),l.flags&qp&&l.memoizedState!==null&&Ro(m,nl,l.memoizedState,l.memoizedProps);break;case 5:_a(l,c,m);break;case 3:case 4:var v=nl;nl=ld(l.stateNode.containerInfo),_a(l,c,m),nl=v;break;case 22:l.memoizedState===null&&(v=l.alternate,v!==null&&v.memoizedState!==null?(v=qp,qp=16777216,_a(l,c,m),qp=v):_a(l,c,m));break;default:_a(l,c,m)}}function eE(l){var c=l.alternate;if(c!==null&&(l=c.child,l!==null)){c.child=null;do c=l.sibling,l.sibling=null,l=c;while(l!==null)}}function td(l){var c=l.deletions;if((l.flags&16)!==0){if(c!==null)for(var m=0;m<c.length;m++){var v=c[m];wi=v,sS(v,l)}eE(l)}if(l.subtreeFlags&10256)for(l=l.child;l!==null;)lS(l),l=l.sibling}function lS(l){switch(l.tag){case 0:case 11:case 15:td(l),l.flags&2048&&Oa(9,l,l.return);break;case 3:td(l);break;case 12:td(l);break;case 22:var c=l.stateNode;l.memoizedState!==null&&c._visibility&2&&(l.return===null||l.return.tag!==13)?(c._visibility&=-3,Fp(l)):td(l);break;default:td(l)}}function Fp(l){var c=l.deletions;if((l.flags&16)!==0){if(c!==null)for(var m=0;m<c.length;m++){var v=c[m];wi=v,sS(v,l)}eE(l)}for(l=l.child;l!==null;){switch(c=l,c.tag){case 0:case 11:case 15:Oa(8,c,c.return),Fp(c);break;case 22:m=c.stateNode,m._visibility&2&&(m._visibility&=-3,Fp(c));break;default:Fp(c)}l=l.sibling}}function sS(l,c){for(;wi!==null;){var m=wi;switch(m.tag){case 0:case 11:case 15:Oa(8,m,c);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:Vf(m.memoizedState.cache)}if(v=m.child,v!==null)v.return=m,wi=v;else e:for(m=l;wi!==null;){v=wi;var A=v.sibling,O=v.return;if($p(v),v===m){wi=null;break e}if(A!==null){A.return=O,wi=A;break e}wi=O}}}var uS={getCacheForType:function(l){var c=Bt(Qr),m=c.data.get(l);return m===void 0&&(m=l(),c.data.set(l,m)),m},cacheSignal:function(){return Bt(Qr).controller.signal}},tE=typeof WeakMap=="function"?WeakMap:Map,jn=0,hr=null,Cn=null,Nn=0,Yn=0,no=null,cn=!1,Bc=!1,Gp=!1,Vs=0,zr=0,il=0,Us=0,cS=0,ro=0,Vc=0,Zr=null,io=null,al=!1,Yp=0,ku=0,Xp=1/0,Qn=null,Ps=null,Bn=0,Uc=null,nd=null,Il=0,Y1=0,ao=null,fS=null,rd=0,X1=null;function Da(){return(jn&2)!==0&&Nn!==0?Nn&-Nn:K.T!==null?id():y6()}function dS(){if(ro===0)if((Nn&536870912)===0||kn){var l=rt;rt<<=1,(rt&3932160)===0&&(rt=262144),ro=l}else ro=536870912;return l=la.current,l!==null&&(l.flags|=32),ro}function oo(l,c,m){(l===hr&&(Yn===2||Yn===9)||l.cancelPendingCommit!==null)&&(T0(l,0),Nu(l,Nn,ro,!1)),Hi(l,m),((jn&2)===0||l!==hr)&&(l===hr&&((jn&2)===0&&(Us|=m),zr===4&&Nu(l,Nn,ro,!1)),Ll(l))}function hS(l,c,m){if((jn&6)!==0)throw Error(i(327));var v=!m&&(c&127)===0&&(c&l.expiredLanes)===0||St(l,c),A=v?$8(l,c):pS(l,c,!0),O=v;do{if(A===0){Bc&&!v&&Nu(l,c,0,!1);break}else{if(m=l.current.alternate,O&&!W1(m)){A=pS(l,c,!1),O=!1;continue}if(A===2){if(O=c,l.errorRecoveryDisabledLanes&O)var U=0;else U=l.pendingLanes&-536870913,U=U!==0?U:U&536870912?536870912:0;if(U!==0){c=U;e:{var te=l;A=Zr;var ve=te.current.memoizedState.isDehydrated;if(ve&&(T0(te,U).flags|=256),U=pS(te,U,!1),U!==2){if(Gp&&!ve){te.errorRecoveryDisabledLanes|=O,Us|=O,A=4;break e}O=io,io=A,O!==null&&(io===null?io=O:io.push.apply(io,O))}A=U}if(O=!1,A!==2)continue}}if(A===1){T0(l,0),Nu(l,c,0,!0);break}e:{switch(v=l,O=A,O){case 0:case 1:throw Error(i(345));case 4:if((c&4194048)!==c)break;case 6:Nu(v,c,ro,!cn);break e;case 2:io=null;break;case 3:case 5:break;default:throw Error(i(329))}if((c&62914560)===c&&(A=Yp+300-$t(),10<A)){if(Nu(v,c,ro,!cn),At(v,0,!0)!==0)break e;Il=c,v.timeoutHandle=xE(nE.bind(null,v,m,io,Qn,al,c,ro,Us,Vc,cn,O,"Throttled",-0,0),A);break e}nE(v,m,io,Qn,al,c,ro,Us,Vc,cn,O,null,-0,0)}}break}while(!0);Ll(l)}function nE(l,c,m,v,A,O,U,te,ve,Ie,Ge,Je,Be,He){if(l.timeoutHandle=-1,Je=c.subtreeFlags,Je&8192||(Je&16785408)===16785408){Je={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:qi},w0(c,O,Je);var Rt=(O&62914560)===O?Yp-$t():(O&4194048)===O?ku-$t():0;if(Rt=Vl(Je,Rt),Rt!==null){Il=O,l.cancelPendingCommit=Rt(sE.bind(null,l,c,O,m,v,A,U,te,ve,Ge,Je,null,Be,He)),Nu(l,O,U,!Ie);return}}sE(l,c,O,m,v,A,U,te,ve)}function W1(l){for(var c=l;;){var m=c.tag;if((m===0||m===11||m===15)&&c.flags&16384&&(m=c.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(!Ga(O(),A))return!1}catch{return!1}}if(m=c.child,c.subtreeFlags&16384&&m!==null)m.return=c,c=m;else{if(c===l)break;for(;c.sibling===null;){if(c.return===null||c.return===l)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function Nu(l,c,m,v){c&=~cS,c&=~Us,l.suspendedLanes|=c,l.pingedLanes&=~c,v&&(l.warmLanes|=c),v=l.expirationTimes;for(var A=c;0<A;){var O=31-yn(A),U=1<<O;v[O]=-1,A&=~U}m!==0&&yf(l,m,c)}function Wp(){return(jn&6)===0?(Jp(0),!1):!0}function Qp(){if(Cn!==null){if(Yn===0)var l=Cn.return;else l=Cn,_l=Ac=null,qf(l),Dc=null,Uf=0,l=Cn;for(;l!==null;)J4(l.alternate,l),l=l.return;Cn=null}}function T0(l,c){var m=l.timeoutHandle;m!==-1&&(l.timeoutHandle=-1,dy(m)),m=l.cancelPendingCommit,m!==null&&(l.cancelPendingCommit=null,m()),Il=0,Qp(),hr=l,Cn=m=wo(l.current,null),Nn=c,Yn=0,no=null,cn=!1,Bc=St(l,c),Gp=!1,Vc=ro=cS=Us=il=zr=0,io=Zr=null,al=!1,(c&8)!==0&&(c|=c&32);var v=l.entangledLanes;if(v!==0)for(l=l.entanglements,v&=c;0<v;){var A=31-yn(v),O=1<<A;c|=l[A],v&=~O}return Vs=c,xo(),m}function A0(l,c){fn=null,K.H=v0,c===Dl||c===Mc?(c=y4(),Yn=3):c===hp?(c=y4(),Yn=4):Yn=c===F4?8:c!==null&&typeof c=="object"&&typeof c.then=="function"?6:1,no=c,Cn===null&&(zr=1,b0(l,To(c,l.current)))}function C0(){var l=la.current;return l===null?!0:(Nn&4194048)===Nn?eo===null:(Nn&62914560)===Nn||(Nn&536870912)!==0?l===eo:!1}function rE(){var l=K.H;return K.H=v0,l===null?v0:l}function iE(){var l=K.A;return K.A=uS,l}function Q1(){zr=4,cn||(Nn&4194048)!==Nn&&la.current!==null||(Bc=!0),(il&134217727)===0&&(Us&134217727)===0||hr===null||Nu(hr,Nn,ro,!1)}function pS(l,c,m){var v=jn;jn|=2;var A=rE(),O=iE();(hr!==l||Nn!==c)&&(Qn=null,T0(l,c)),c=!1;var U=zr;e:do try{if(Yn!==0&&Cn!==null){var te=Cn,ve=no;switch(Yn){case 8:Qp(),U=6;break e;case 3:case 2:case 9:case 6:la.current===null&&(c=!0);var Ie=Yn;if(Yn=0,no=null,O0(l,te,ve,Ie),m&&Bc){U=0;break e}break;default:Ie=Yn,Yn=0,no=null,O0(l,te,ve,Ie)}}aE(),U=zr;break}catch(Ge){A0(l,Ge)}while(!0);return c&&l.shellSuspendCounter++,_l=Ac=null,jn=v,K.H=A,K.A=O,Cn===null&&(hr=null,Nn=0,xo()),U}function aE(){for(;Cn!==null;)zu(Cn)}function $8(l,c){var m=jn;jn|=2;var v=rE(),A=iE();hr!==l||Nn!==c?(Qn=null,Xp=$t()+500,T0(l,c)):Bc=St(l,c);e:do try{if(Yn!==0&&Cn!==null){c=Cn;var O=no;t:switch(Yn){case 1:Yn=0,no=null,O0(l,c,O,1);break;case 2:case 9:if(pp(O)){Yn=0,no=null,lE(c);break}c=function(){Yn!==2&&Yn!==9||hr!==l||(Yn=7),Ll(l)},O.then(c,c);break e;case 3:Yn=7;break e;case 4:Yn=5;break e;case 7:pp(O)?(Yn=0,no=null,lE(c)):(Yn=0,no=null,O0(l,c,O,7));break;case 5:var U=null;switch(Cn.tag){case 26:U=Cn.memoizedState;case 5:case 27:var te=Cn;if(U?by(U):te.stateNode.complete){Yn=0,no=null;var ve=te.sibling;if(ve!==null)Cn=ve;else{var Ie=te.return;Ie!==null?(Cn=Ie,Kp(Ie)):Cn=null}break t}}Yn=0,no=null,O0(l,c,O,5);break;case 6:Yn=0,no=null,O0(l,c,O,6);break;case 8:Qp(),zr=6;break e;default:throw Error(i(462))}}oE();break}catch(Ge){A0(l,Ge)}while(!0);return _l=Ac=null,K.H=v,K.A=A,jn=m,Cn!==null?0:(hr=null,Nn=0,xo(),zr)}function oE(){for(;Cn!==null&&!Mt();)zu(Cn)}function zu(l){var c=Vp(l.alternate,l,Vs);l.memoizedProps=l.pendingProps,c===null?Kp(l):Cn=c}function lE(l){var c=l,m=c.alternate;switch(c.tag){case 15:case 0:c=Q4(m,c,c.pendingProps,c.type,void 0,Nn);break;case 11:c=Q4(m,c,c.pendingProps,c.type.render,c.ref,Nn);break;case 5:qf(c);default:J4(m,c),c=Cn=V6(c,Vs),c=Vp(m,c,Vs)}l.memoizedProps=l.pendingProps,c===null?Kp(l):Cn=c}function O0(l,c,m,v){_l=Ac=null,qf(c),Dc=null,Uf=0;var A=c.return;try{if(Y6(l,A,c,m,Nn)){zr=1,b0(l,To(m,l.current)),Cn=null;return}}catch(O){if(A!==null)throw Cn=A,O;zr=1,b0(l,To(m,l.current)),Cn=null;return}c.flags&32768?(kn||v===1?l=!0:Bc||(Nn&536870912)!==0?l=!1:(cn=l=!0,(v===2||v===9||v===3||v===6)&&(v=la.current,v!==null&&v.tag===13&&(v.flags|=16384))),mS(c,l)):Kp(c)}function Kp(l){var c=l;do{if((c.flags&32768)!==0){mS(c,cn);return}l=c.return;var m=Pr(c.alternate,c,Vs);if(m!==null){Cn=m;return}if(c=c.sibling,c!==null){Cn=c;return}Cn=c=l}while(c!==null);zr===0&&(zr=5)}function mS(l,c){do{var m=Q6(l.alternate,l);if(m!==null){m.flags&=32767,Cn=m;return}if(m=l.return,m!==null&&(m.flags|=32768,m.subtreeFlags=0,m.deletions=null),!c&&(l=l.sibling,l!==null)){Cn=l;return}Cn=l=m}while(l!==null);zr=6,Cn=null}function sE(l,c,m,v,A,O,U,te,ve){l.cancelPendingCommit=null;do K1();while(Bn!==0);if((jn&6)!==0)throw Error(i(327));if(c!==null){if(c===l.current)throw Error(i(177));if(O=c.lanes|c.childLanes,O|=Ta,Ug(l,m,O,U,te,ve),l===hr&&(Cn=hr=null,Nn=0),nd=c,Uc=l,Il=m,Y1=O,ao=A,fS=v,(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?(l.callbackNode=null,l.callbackPriority=0,pE(st,function(){return Z1(),null})):(l.callbackNode=null,l.callbackPriority=0),v=(c.flags&13878)!==0,(c.subtreeFlags&13878)!==0||v){v=K.T,K.T=null,A=ae.p,ae.p=2,U=jn,jn|=4;try{P8(l,c,m)}finally{jn=U,ae.p=A,K.T=v}}Bn=1,uE(),cE(),fE()}}function uE(){if(Bn===1){Bn=0;var l=Uc,c=nd,m=(c.flags&13878)!==0;if((c.subtreeFlags&13878)!==0||m){m=K.T,K.T=null;var v=ae.p;ae.p=2;var A=jn;jn|=4;try{Gn(c,l);var O=cy,U=kf(l.containerInfo),te=O.focusedElem,ve=O.selectionRange;if(U!==te&&te&&te.ownerDocument&&u4(te.ownerDocument.documentElement,te)){if(ve!==null&&bu(te)){var Ie=ve.start,Ge=ve.end;if(Ge===void 0&&(Ge=Ie),"selectionStart"in te)te.selectionStart=Ie,te.selectionEnd=Math.min(Ge,te.value.length);else{var Je=te.ownerDocument||document,Be=Je&&Je.defaultView||window;if(Be.getSelection){var He=Be.getSelection(),Rt=te.textContent.length,jt=Math.min(ve.start,Rt),pr=ve.end===void 0?jt:Math.min(ve.end,Rt);!He.extend&&jt>pr&&(U=pr,pr=jt,jt=U);var ke=s4(te,jt),Ae=s4(te,pr);if(ke&&Ae&&(He.rangeCount!==1||He.anchorNode!==ke.node||He.anchorOffset!==ke.offset||He.focusNode!==Ae.node||He.focusOffset!==Ae.offset)){var ze=Je.createRange();ze.setStart(ke.node,ke.offset),He.removeAllRanges(),jt>pr?(He.addRange(ze),He.extend(Ae.node,Ae.offset)):(ze.setEnd(Ae.node,Ae.offset),He.addRange(ze))}}}}for(Je=[],He=te;He=He.parentNode;)He.nodeType===1&&Je.push({element:He,left:He.scrollLeft,top:He.scrollTop});for(typeof te.focus=="function"&&te.focus(),te=0;te<Je.length;te++){var We=Je[te];We.element.scrollLeft=We.left,We.element.scrollTop=We.top}}Vu=!!am,cy=am=null}finally{jn=A,ae.p=v,K.T=m}}l.current=c,Bn=2}}function cE(){if(Bn===2){Bn=0;var l=Uc,c=nd,m=(c.flags&8772)!==0;if((c.subtreeFlags&8772)!==0||m){m=K.T,K.T=null;var v=ae.p;ae.p=2;var A=jn;jn|=4;try{Jf(l,c.alternate,c)}finally{jn=A,ae.p=v,K.T=m}}Bn=3}}function fE(){if(Bn===4||Bn===3){Bn=0,$n();var l=Uc,c=nd,m=Il,v=fS;(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?Bn=5:(Bn=0,nd=Uc=null,dE(l,l.pendingLanes));var A=l.pendingLanes;if(A===0&&(Ps=null),Pg(m),c=c.stateNode,Vt&&typeof Vt.onCommitFiberRoot=="function")try{Vt.onCommitFiberRoot(kt,c,void 0,(c.current.flags&128)===128)}catch{}if(v!==null){c=K.T,A=ae.p,ae.p=2,K.T=null;try{for(var O=l.onRecoverableError,U=0;U<v.length;U++){var te=v[U];O(te.value,{componentStack:te.stack})}}finally{K.T=c,ae.p=A}}(Il&3)!==0&&K1(),Ll(l),A=l.pendingLanes,(m&261930)!==0&&(A&42)!==0?l===X1?rd++:(rd=0,X1=l):rd=0,Jp(0)}}function dE(l,c){(l.pooledCacheLanes&=c)===0&&(c=l.pooledCache,c!=null&&(l.pooledCache=null,Vf(c)))}function K1(){return uE(),cE(),fE(),Z1()}function Z1(){if(Bn!==5)return!1;var l=Uc,c=Y1;Y1=0;var m=Pg(Il),v=K.T,A=ae.p;try{ae.p=32>m?32:m,K.T=null,m=ao,ao=null;var O=Uc,U=Il;if(Bn=0,nd=Uc=null,Il=0,(jn&6)!==0)throw Error(i(331));var te=jn;if(jn|=4,lS(O.current),oS(O,O.current,U,m),jn=te,Jp(0,!1),Vt&&typeof Vt.onPostCommitFiberRoot=="function")try{Vt.onPostCommitFiberRoot(kt,O)}catch{}return!0}finally{ae.p=A,K.T=v,dE(l,c)}}function hE(l,c,m){c=To(m,c),c=S0(l.stateNode,c,2),l=Tu(l,c,2),l!==null&&(Hi(l,2),Ll(l))}function ir(l,c,m){if(l.tag===3)hE(l,l,m);else for(;c!==null;){if(c.tag===3){hE(c,l,m);break}else if(c.tag===1){var v=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(Ps===null||!Ps.has(v))){l=To(m,l),m=G6(2),v=Tu(c,m,2),v!==null&&(q4(m,v,c,l),Hi(v,2),Ll(v));break}}c=c.return}}function J1(l,c,m){var v=l.pingCache;if(v===null){v=l.pingCache=new tE;var A=new Set;v.set(c,A)}else A=v.get(c),A===void 0&&(A=new Set,v.set(c,A));A.has(m)||(Gp=!0,A.add(m),l=gS.bind(null,l,c,m),c.then(l,l))}function gS(l,c,m){var v=l.pingCache;v!==null&&v.delete(c),l.pingedLanes|=l.suspendedLanes&m,l.warmLanes&=~m,hr===l&&(Nn&m)===m&&(zr===4||zr===3&&(Nn&62914560)===Nn&&300>$t()-Yp?(jn&2)===0&&T0(l,0):cS|=m,Vc===Nn&&(Vc=0)),Ll(l)}function ey(l,c){c===0&&(c=pt()),l=ia(l,c),l!==null&&(Hi(l,c),Ll(l))}function j8(l){var c=l.memoizedState,m=0;c!==null&&(m=c.retryLane),ey(l,m)}function Mo(l,c){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(c),ey(l,m)}function pE(l,c){return Dn(l,c)}var Zp=null,Pc=null,ty=!1,ny=!1,yS=!1,$c=0;function Ll(l){l!==Pc&&l.next===null&&(Pc===null?Zp=Pc=l:Pc=Pc.next=l),ny=!0,ty||(ty=!0,M0())}function Jp(l,c){if(!yS&&ny){yS=!0;do for(var m=!1,v=Zp;v!==null;){if(l!==0){var A=v.pendingLanes;if(A===0)var O=0;else{var U=v.suspendedLanes,te=v.pingedLanes;O=(1<<31-yn(42|l)+1)-1,O&=A&~(U&~te),O=O&201326741?O&201326741|1:O?O|2:0}O!==0&&(m=!0,nm(v,O))}else O=Nn,O=At(v,v===hr?O:0,v.cancelPendingCommit!==null||v.timeoutHandle!==-1),(O&3)===0||St(v,O)||(m=!0,nm(v,O));v=v.next}while(m);yS=!1}}function em(){tm()}function tm(){ny=ty=!1;var l=0;$c!==0&&SE()&&(l=$c);for(var c=$t(),m=null,v=Zp;v!==null;){var A=v.next,O=vS(v,c);O===0?(v.next=null,m===null?Zp=A:m.next=A,A===null&&(Pc=m)):(m=v,(l!==0||(O&3)!==0)&&(ny=!0)),v=A}Bn!==0&&Bn!==5||Jp(l),$c!==0&&($c=0)}function vS(l,c){for(var m=l.suspendedLanes,v=l.pingedLanes,A=l.expirationTimes,O=l.pendingLanes&-62914561;0<O;){var U=31-yn(O),te=1<<U,ve=A[U];ve===-1?((te&m)===0||(te&v)!==0)&&(A[U]=Xt(te,c)):ve<=c&&(l.expiredLanes|=te),O&=~te}if(c=hr,m=Nn,m=At(l,l===c?m:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),v=l.callbackNode,m===0||l===c&&(Yn===2||Yn===9)||l.cancelPendingCommit!==null)return v!==null&&v!==null&&lt(v),l.callbackNode=null,l.callbackPriority=0;if((m&3)===0||St(l,m)){if(c=m&-m,c===l.callbackPriority)return c;switch(v!==null&&lt(v),Pg(m)){case 2:case 8:m=Ue;break;case 32:m=st;break;case 268435456:m=dt;break;default:m=st}return v=bS.bind(null,l),m=Dn(m,v),l.callbackPriority=c,l.callbackNode=m,c}return v!==null&&v!==null&&lt(v),l.callbackPriority=2,l.callbackNode=null,2}function bS(l,c){if(Bn!==0&&Bn!==5)return l.callbackNode=null,l.callbackPriority=0,null;var m=l.callbackNode;if(K1()&&l.callbackNode!==m)return null;var v=Nn;return v=At(l,l===hr?v:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),v===0?null:(hS(l,v,c),vS(l,$t()),l.callbackNode!=null&&l.callbackNode===m?bS.bind(null,l):null)}function nm(l,c){if(K1())return null;hS(l,c,!0)}function M0(){N0(function(){(jn&6)!==0?Dn(Ee,em):tm()})}function id(){if($c===0){var l=Cc;l===0&&(l=Me,Me<<=1,(Me&261888)===0&&(Me=256)),$c=l}return $c}function SS(l){return l==null||typeof l=="symbol"||typeof l=="boolean"?null:typeof l=="function"?l:gc(""+l)}function mE(l,c){var m=c.ownerDocument.createElement("input");return m.name=c.name,m.value=c.value,l.id&&m.setAttribute("form",l.id),c.parentNode.insertBefore(m,c),l=new FormData(l),m.parentNode.removeChild(m),l}function R0(l,c,m,v,A){if(c==="submit"&&m&&m.stateNode===A){var O=SS((A[Mr]||null).action),U=v.submitter;U&&(c=(c=U[Mr]||null)?SS(c.formAction):U.getAttribute("formAction"),c!==null&&(O=c,U=null));var te=new Xh("action","action",null,v,A);l.push({event:te,listeners:[{instance:null,listener:function(){if(v.defaultPrevented){if($c!==0){var ve=U?mE(A,U):new FormData(A);I1(m,{pending:!0,data:ve,method:A.method,action:O},null,ve)}}else typeof O=="function"&&(te.preventDefault(),ve=U?mE(A,U):new FormData(A),I1(m,{pending:!0,data:ve,method:A.method,action:O},O,ve))},currentTarget:A}]})}}for(var ad=0;ad<Ol.length;ad++){var ry=Ol[ad],iy=ry.toLowerCase(),xS=ry[0].toUpperCase()+ry.slice(1);Ya(iy,"on"+xS)}Ya(Sr,"onAnimationEnd"),Ya(tp,"onAnimationIteration"),Ya(f4,"onAnimationStart"),Ya("dblclick","onDoubleClick"),Ya("focusin","onFocus"),Ya("focusout","onBlur"),Ya(d4,"onTransitionRun"),Ya(Nf,"onTransitionStart"),Ya(np,"onTransitionCancel"),Ya(Cl,"onTransitionEnd"),wf("onMouseEnter",["mouseout","mouseover"]),wf("onMouseLeave",["mouseout","mouseover"]),wf("onPointerEnter",["pointerout","pointerover"]),wf("onPointerLeave",["pointerout","pointerover"]),vo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),vo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),vo("onBeforeInput",["compositionend","keypress","textInput","paste"]),vo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),vo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),vo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var od="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(" "),gE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(od));function ES(l,c){c=(c&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(c)for(var U=v.length-1;0<=U;U--){var te=v[U],ve=te.instance,Ie=te.currentTarget;if(te=te.listener,ve!==O&&A.isPropagationStopped())break e;O=te,A.currentTarget=Ie;try{O(A)}catch(Ge){Tc(Ge)}A.currentTarget=null,O=ve}else for(U=0;U<v.length;U++){if(te=v[U],ve=te.instance,Ie=te.currentTarget,te=te.listener,ve!==O&&A.isPropagationStopped())break e;O=te,A.currentTarget=Ie;try{O(A)}catch(Ge){Tc(Ge)}A.currentTarget=null,O=ve}}}}function On(l,c){var m=c[Vh];m===void 0&&(m=c[Vh]=new Set);var v=l+"__bubble";m.has(v)||(rm(c,l,2,!1),m.add(v))}function ay(l,c,m){var v=0;c&&(v|=4),rm(m,l,v,c)}var oy="_reactListening"+Math.random().toString(36).slice(2);function wS(l){if(!l[oy]){l[oy]=!0,qa.forEach(function(m){m!=="selectionchange"&&(gE.has(m)||ay(m,!1,l),ay(m,!0,l))});var c=l.nodeType===9?l:l.ownerDocument;c===null||c[oy]||(c[oy]=!0,ay("selectionchange",!1,c))}}function rm(l,c,m,v){switch(hm(c)){case 2:var A=fa;break;case 8:A=Hs;break;default:A=ul}m=A.bind(null,c,m,l),A=void 0,!Wb||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(A=!0),v?A!==void 0?l.addEventListener(c,m,{capture:!0,passive:A}):l.addEventListener(c,m,!0):A!==void 0?l.addEventListener(c,m,{passive:A}):l.addEventListener(c,m,!1)}function _0(l,c,m,v,A){var O=v;if((c&1)===0&&(c&2)===0&&v!==null)e:for(;;){if(v===null)return;var U=v.tag;if(U===3||U===4){var te=v.stateNode.containerInfo;if(te===A)break;if(U===4)for(U=v.return;U!==null;){var ve=U.tag;if((ve===3||ve===4)&&U.stateNode.containerInfo===A)return;U=U.return}for(;te!==null;){if(U=bf(te),U===null)return;if(ve=U.tag,ve===5||ve===6||ve===26||ve===27){v=O=U;continue e}te=te.parentNode}}v=v.return}Gh(function(){var Ie=O,Ge=Fg(m),Je=[];e:{var Be=B6.get(l);if(Be!==void 0){var He=Xh,Rt=l;switch(l){case"keypress":if(Yh(m)===0)break e;case"keydown":case"keyup":He=Kg;break;case"focusin":Rt="focus",He=Qg;break;case"focusout":Rt="blur",He=Qg;break;case"beforeblur":case"afterblur":He=Qg;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":He=T6;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":He=A6;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":He=I8;break;case Sr:case tp:case f4:He=Jb;break;case Cl:He=D6;break;case"scroll":case"scrollend":He=w6;break;case"wheel":He=t4;break;case"copy":case"cut":case"paste":He=Of;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":He=Jg;break;case"toggle":case"beforetoggle":He=k6}var jt=(c&4)!==0,pr=!jt&&(l==="scroll"||l==="scrollend"),ke=jt?Be!==null?Be+"Capture":null:Be;jt=[];for(var Ae=Ie,ze;Ae!==null;){var We=Ae;if(ze=We.stateNode,We=We.tag,We!==5&&We!==26&&We!==27||ze===null||ke===null||(We=Zd(Ae,ke),We!=null&&jt.push(im(Ae,We,ze))),pr)break;Ae=Ae.return}0<jt.length&&(Be=new He(Be,Rt,null,m,Ge),Je.push({event:Be,listeners:jt}))}}if((c&7)===0){e:{if(Be=l==="mouseover"||l==="pointerover",He=l==="mouseout"||l==="pointerout",Be&&m!==Fh&&(Rt=m.relatedTarget||m.fromElement)&&(bf(Rt)||Rt[vf]))break e;if((He||Be)&&(Be=Ge.window===Ge?Ge:(Be=Ge.ownerDocument)?Be.defaultView||Be.parentWindow:window,He?(Rt=m.relatedTarget||m.toElement,He=Ie,Rt=Rt?bf(Rt):null,Rt!==null&&(pr=s(Rt),jt=Rt.tag,Rt!==pr||jt!==5&&jt!==27&&jt!==6)&&(Rt=null)):(He=null,Rt=Ie),He!==Rt)){if(jt=T6,We="onMouseLeave",ke="onMouseEnter",Ae="mouse",(l==="pointerout"||l==="pointerover")&&(jt=Jg,We="onPointerLeave",ke="onPointerEnter",Ae="pointer"),pr=He==null?Be:Xd(He),ze=Rt==null?Be:Xd(Rt),Be=new jt(We,Ae+"leave",He,m,Ge),Be.target=pr,Be.relatedTarget=ze,We=null,bf(Ge)===Ie&&(jt=new jt(ke,Ae+"enter",Rt,m,Ge),jt.target=ze,jt.relatedTarget=pr,We=jt),pr=We,He&&Rt)t:{for(jt=yE,ke=He,Ae=Rt,ze=0,We=ke;We;We=jt(We))ze++;We=0;for(var It=Ae;It;It=jt(It))We++;for(;0<ze-We;)ke=jt(ke),ze--;for(;0<We-ze;)Ae=jt(Ae),We--;for(;ze--;){if(ke===Ae||Ae!==null&&ke===Ae.alternate){jt=ke;break t}ke=jt(ke),Ae=jt(Ae)}jt=null}else jt=null;He!==null&&TS(Je,Be,He,jt,!1),Rt!==null&&pr!==null&&TS(Je,pr,Rt,jt,!0)}}e:{if(Be=Ie?Xd(Ie):window,He=Be.nodeName&&Be.nodeName.toLowerCase(),He==="select"||He==="input"&&Be.type==="file")var Hn=r1;else if(t1(Be))if(a4)Hn=bc;else{Hn=I6;var _t=l4}else He=Be.nodeName,!He||He.toLowerCase()!=="input"||Be.type!=="checkbox"&&Be.type!=="radio"?Ie&&Yb(Ie.elementType)&&(Hn=r1):Hn=L6;if(Hn&&(Hn=Hn(l,Ie))){ds(Je,Hn,m,Ge);break e}_t&&_t(l,Be,Ie),l==="focusout"&&Ie&&Be.type==="number"&&Ie.memoizedProps.value!=null&&Qd(Be,"number",Be.value)}switch(_t=Ie?Xd(Ie):window,l){case"focusin":(t1(_t)||_t.contentEditable==="true")&&(ms=_t,Jh=Ie,xc=null);break;case"focusout":xc=Jh=ms=null;break;case"mousedown":gs=!0;break;case"contextmenu":case"mouseup":case"dragend":gs=!1,ys(Je,m,Ge);break;case"selectionchange":if(c4)break;case"keydown":case"keyup":ys(Je,m,Ge)}var hn;if(e0)e:{switch(l){case"compositionstart":var Tn="onCompositionStart";break e;case"compositionend":Tn="onCompositionEnd";break e;case"compositionupdate":Tn="onCompositionUpdate";break e}Tn=void 0}else Rf?vc(l,m)&&(Tn="onCompositionEnd"):l==="keydown"&&m.keyCode===229&&(Tn="onCompositionStart");Tn&&(Fi&&m.locale!=="ko"&&(Rf||Tn!=="onCompositionStart"?Tn==="onCompositionEnd"&&Rf&&(hn=E6()):(yu=Ge,Gg="value"in yu?yu.value:yu.textContent,Rf=!0)),_t=ly(Ie,Tn),0<_t.length&&(Tn=new Wo(Tn,l,null,m,Ge),Je.push({event:Tn,listeners:_t}),hn?Tn.data=hn:(hn=e1(m),hn!==null&&(Tn.data=hn)))),(hn=r4?N6(l,m):z6(l,m))&&(Tn=ly(Ie,"onBeforeInput"),0<Tn.length&&(_t=new Wo("onBeforeInput","beforeinput",null,m,Ge),Je.push({event:_t,listeners:Tn}),_t.data=hn)),R0(Je,l,Ie,m,Ge)}ES(Je,c)})}function im(l,c,m){return{instance:l,listener:c,currentTarget:m}}function ly(l,c){for(var m=c+"Capture",v=[];l!==null;){var A=l,O=A.stateNode;if(A=A.tag,A!==5&&A!==26&&A!==27||O===null||(A=Zd(l,m),A!=null&&v.unshift(im(l,A,O)),A=Zd(l,c),A!=null&&v.push(im(l,A,O))),l.tag===3)return v;l=l.return}return[]}function yE(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5&&l.tag!==27);return l||null}function TS(l,c,m,v,A){for(var O=c._reactName,U=[];m!==null&&m!==v;){var te=m,ve=te.alternate,Ie=te.stateNode;if(te=te.tag,ve!==null&&ve===v)break;te!==5&&te!==26&&te!==27||Ie===null||(ve=Ie,A?(Ie=Zd(m,O),Ie!=null&&U.unshift(im(m,Ie,ve))):A||(Ie=Zd(m,O),Ie!=null&&U.push(im(m,Ie,ve)))),m=m.return}U.length!==0&&l.push({event:c,listeners:U})}var AS=/\r\n?/g,vE=/\u0000|\uFFFD/g;function sy(l){return(typeof l=="string"?l:""+l).replace(AS,`
`).replace(vE,"")}function CS(l,c){return c=sy(c),sy(l)===c}function ar(l,c,m,v,A,O){switch(m){case"children":typeof v=="string"?c==="body"||c==="textarea"&&v===""||Tf(l,v):(typeof v=="number"||typeof v=="bigint")&&c!=="body"&&Tf(l,""+v);break;case"className":Wd(l,"class",v);break;case"tabIndex":Wd(l,"tabindex",v);break;case"dir":case"role":case"viewBox":case"width":case"height":Wd(l,m,v);break;case"style":x6(l,v,O);break;case"data":if(c!=="object"){Wd(l,"data",v);break}case"src":case"href":if(v===""&&(c!=="a"||m!=="href")){l.removeAttribute(m);break}if(v==null||typeof v=="function"||typeof v=="symbol"||typeof v=="boolean"){l.removeAttribute(m);break}v=gc(""+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"?(c!=="input"&&ar(l,c,"name",A.name,A,null),ar(l,c,"formEncType",A.formEncType,A,null),ar(l,c,"formMethod",A.formMethod,A,null),ar(l,c,"formTarget",A.formTarget,A,null)):(ar(l,c,"encType",A.encType,A,null),ar(l,c,"method",A.method,A,null),ar(l,c,"target",A.target,A,null)));if(v==null||typeof v=="symbol"||typeof v=="boolean"){l.removeAttribute(m);break}v=gc(""+v),l.setAttribute(m,v);break;case"onClick":v!=null&&(l.onclick=qi);break;case"onScroll":v!=null&&On("scroll",l);break;case"onScrollEnd":v!=null&&On("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=gc(""+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":On("beforetoggle",l),On("toggle",l),mu(l,"popover",v);break;case"xlinkActuate":gu(l,"http://www.w3.org/1999/xlink","xlink:actuate",v);break;case"xlinkArcrole":gu(l,"http://www.w3.org/1999/xlink","xlink:arcrole",v);break;case"xlinkRole":gu(l,"http://www.w3.org/1999/xlink","xlink:role",v);break;case"xlinkShow":gu(l,"http://www.w3.org/1999/xlink","xlink:show",v);break;case"xlinkTitle":gu(l,"http://www.w3.org/1999/xlink","xlink:title",v);break;case"xlinkType":gu(l,"http://www.w3.org/1999/xlink","xlink:type",v);break;case"xmlBase":gu(l,"http://www.w3.org/XML/1998/namespace","xml:base",v);break;case"xmlLang":gu(l,"http://www.w3.org/XML/1998/namespace","xml:lang",v);break;case"xmlSpace":gu(l,"http://www.w3.org/XML/1998/namespace","xml:space",v);break;case"is":mu(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=k8.get(m)||m,mu(l,m,v))}}function OS(l,c,m,v,A,O){switch(m){case"style":x6(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"?Tf(l,v):(typeof v=="number"||typeof v=="bigint")&&Tf(l,""+v);break;case"onScroll":v!=null&&On("scroll",l);break;case"onScrollEnd":v!=null&&On("scrollend",l);break;case"onClick":v!=null&&(l.onclick=qi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ef.hasOwnProperty(m))e:{if(m[0]==="o"&&m[1]==="n"&&(A=m.endsWith("Capture"),c=m.slice(2,A?m.length-7:void 0),O=l[Mr]||null,O=O!=null?O[m]:null,typeof O=="function"&&l.removeEventListener(c,O,A),typeof v=="function")){typeof O!="function"&&O!==null&&(m in l?l[m]=null:l.hasAttribute(m)&&l.removeAttribute(m)),l.addEventListener(c,v,A);break e}m in l?l[m]=v:v===!0?l.setAttribute(m,""):mu(l,m,v)}}}function Ki(l,c,m){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":On("error",l),On("load",l);var v=!1,A=!1,O;for(O in m)if(m.hasOwnProperty(O)){var U=m[O];if(U!=null)switch(O){case"src":v=!0;break;case"srcSet":A=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,c));default:ar(l,c,O,U,m,null)}}A&&ar(l,c,"srcSet",m.srcSet,m,null),v&&ar(l,c,"src",m.src,m,null);return;case"input":On("invalid",l);var te=O=U=A=null,ve=null,Ie=null;for(v in m)if(m.hasOwnProperty(v)){var Ge=m[v];if(Ge!=null)switch(v){case"name":A=Ge;break;case"type":U=Ge;break;case"checked":ve=Ge;break;case"defaultChecked":Ie=Ge;break;case"value":O=Ge;break;case"defaultValue":te=Ge;break;case"children":case"dangerouslySetInnerHTML":if(Ge!=null)throw Error(i(137,c));break;default:ar(l,c,v,Ge,m,null)}}qg(l,O,te,ve,Ie,U,A,!1);return;case"select":On("invalid",l),v=U=O=null;for(A in m)if(m.hasOwnProperty(A)&&(te=m[A],te!=null))switch(A){case"value":O=te;break;case"defaultValue":U=te;break;case"multiple":v=te;default:ar(l,c,A,te,m,null)}c=O,m=U,l.multiple=!!v,c!=null?os(l,!!v,c,!1):m!=null&&os(l,!!v,m,!0);return;case"textarea":On("invalid",l),O=A=v=null;for(U in m)if(m.hasOwnProperty(U)&&(te=m[U],te!=null))switch(U){case"value":v=te;break;case"defaultValue":A=te;break;case"children":O=te;break;case"dangerouslySetInnerHTML":if(te!=null)throw Error(i(91));break;default:ar(l,c,U,te,m,null)}Fb(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,c,ve,v,m,null)}return;case"dialog":On("beforetoggle",l),On("toggle",l),On("cancel",l),On("close",l);break;case"iframe":case"object":On("load",l);break;case"video":case"audio":for(v=0;v<od.length;v++)On(od[v],l);break;case"image":On("error",l),On("load",l);break;case"details":On("toggle",l);break;case"embed":case"source":case"link":On("error",l),On("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(Ie in m)if(m.hasOwnProperty(Ie)&&(v=m[Ie],v!=null))switch(Ie){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,c));default:ar(l,c,Ie,v,m,null)}return;default:if(Yb(c)){for(Ge in m)m.hasOwnProperty(Ge)&&(v=m[Ge],v!==void 0&&OS(l,c,Ge,v,m,void 0));return}}for(te in m)m.hasOwnProperty(te)&&(v=m[te],v!=null&&ar(l,c,te,v,m,null))}function H8(l,c,m,v){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var A=null,O=null,U=null,te=null,ve=null,Ie=null,Ge=null;for(He in m){var Je=m[He];if(m.hasOwnProperty(He)&&Je!=null)switch(He){case"checked":break;case"value":break;case"defaultValue":ve=Je;default:v.hasOwnProperty(He)||ar(l,c,He,null,v,Je)}}for(var Be in v){var He=v[Be];if(Je=m[Be],v.hasOwnProperty(Be)&&(He!=null||Je!=null))switch(Be){case"type":O=He;break;case"name":A=He;break;case"checked":Ie=He;break;case"defaultChecked":Ge=He;break;case"value":U=He;break;case"defaultValue":te=He;break;case"children":case"dangerouslySetInnerHTML":if(He!=null)throw Error(i(137,c));break;default:He!==Je&&ar(l,c,Be,He,v,Je)}}Hg(l,U,te,ve,Ie,Ge,O,A);return;case"select":He=U=te=Be=null;for(O in m)if(ve=m[O],m.hasOwnProperty(O)&&ve!=null)switch(O){case"value":break;case"multiple":He=ve;default:v.hasOwnProperty(O)||ar(l,c,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":Be=O;break;case"defaultValue":te=O;break;case"multiple":U=O;default:O!==ve&&ar(l,c,A,O,v,ve)}c=te,m=U,v=He,Be!=null?os(l,!!m,Be,!1):!!v!=!!m&&(c!=null?os(l,!!m,c,!0):os(l,!!m,m?[]:"",!1));return;case"textarea":He=Be=null;for(te in m)if(A=m[te],m.hasOwnProperty(te)&&A!=null&&!v.hasOwnProperty(te))switch(te){case"value":break;case"children":break;default:ar(l,c,te,null,v,A)}for(U in v)if(A=v[U],O=m[U],v.hasOwnProperty(U)&&(A!=null||O!=null))switch(U){case"value":Be=A;break;case"defaultValue":He=A;break;case"children":break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(i(91));break;default:A!==O&&ar(l,c,U,A,v,O)}S6(l,Be,He);return;case"option":for(var Rt in m)if(Be=m[Rt],m.hasOwnProperty(Rt)&&Be!=null&&!v.hasOwnProperty(Rt))switch(Rt){case"selected":l.selected=!1;break;default:ar(l,c,Rt,null,v,Be)}for(ve in v)if(Be=v[ve],He=m[ve],v.hasOwnProperty(ve)&&Be!==He&&(Be!=null||He!=null))switch(ve){case"selected":l.selected=Be&&typeof Be!="function"&&typeof Be!="symbol";break;default:ar(l,c,ve,Be,v,He)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var jt in m)Be=m[jt],m.hasOwnProperty(jt)&&Be!=null&&!v.hasOwnProperty(jt)&&ar(l,c,jt,null,v,Be);for(Ie in v)if(Be=v[Ie],He=m[Ie],v.hasOwnProperty(Ie)&&Be!==He&&(Be!=null||He!=null))switch(Ie){case"children":case"dangerouslySetInnerHTML":if(Be!=null)throw Error(i(137,c));break;default:ar(l,c,Ie,Be,v,He)}return;default:if(Yb(c)){for(var pr in m)Be=m[pr],m.hasOwnProperty(pr)&&Be!==void 0&&!v.hasOwnProperty(pr)&&OS(l,c,pr,void 0,v,Be);for(Ge in v)Be=v[Ge],He=m[Ge],!v.hasOwnProperty(Ge)||Be===He||Be===void 0&&He===void 0||OS(l,c,Ge,Be,v,He);return}}for(var ke in m)Be=m[ke],m.hasOwnProperty(ke)&&Be!=null&&!v.hasOwnProperty(ke)&&ar(l,c,ke,null,v,Be);for(Je in v)Be=v[Je],He=m[Je],!v.hasOwnProperty(Je)||Be===He||Be==null&&He==null||ar(l,c,Je,Be,v,He)}function uy(l){switch(l){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function MS(){if(typeof performance.getEntriesByType=="function"){for(var l=0,c=0,m=performance.getEntriesByType("resource"),v=0;v<m.length;v++){var A=m[v],O=A.transferSize,U=A.initiatorType,te=A.duration;if(O&&te&&uy(U)){for(U=0,te=A.responseEnd,v+=1;v<m.length;v++){var ve=m[v],Ie=ve.startTime;if(Ie>te)break;var Ge=ve.transferSize,Je=ve.initiatorType;Ge&&uy(Je)&&(ve=ve.responseEnd,U+=Ge*(ve<te?1:(te-Ie)/(ve-Ie)))}if(--v,c+=8*(O+U)/(A.duration/1e3),l++,10<l)break}}if(0<l)return c/l/1e6}return navigator.connection&&(l=navigator.connection.downlink,typeof l=="number")?l:5}var am=null,cy=null;function om(l){return l.nodeType===9?l:l.ownerDocument}function D0(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 bE(l,c){if(l===0)switch(c){case"svg":return 1;case"math":return 2;default:return 0}return l===1&&c==="foreignObject"?0:l}function fy(l,c){return l==="textarea"||l==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.children=="bigint"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var k0=null;function SE(){var l=window.event;return l&&l.type==="popstate"?l===k0?!1:(k0=l,!0):(k0=null,!1)}var xE=typeof setTimeout=="function"?setTimeout:void 0,dy=typeof clearTimeout=="function"?clearTimeout:void 0,RS=typeof Promise=="function"?Promise:void 0,N0=typeof queueMicrotask=="function"?queueMicrotask:typeof RS<"u"?function(l){return RS.resolve(null).then(l).catch(EE)}:xE;function EE(l){setTimeout(function(){throw l})}function $s(l){return l==="head"}function lm(l,c){var m=c,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),U0(c);return}v--}else if(m==="$"||m==="$?"||m==="$~"||m==="$!"||m==="&")v++;else if(m==="html")Iu(l.ownerDocument.documentElement);else if(m==="head"){m=l.ownerDocument.head,Iu(m);for(var O=m.firstChild;O;){var U=O.nextSibling,te=O.nodeName;O[Yd]||te==="SCRIPT"||te==="STYLE"||te==="LINK"&&O.rel.toLowerCase()==="stylesheet"||m.removeChild(O),O=U}}else m==="body"&&Iu(l.ownerDocument.body);m=A}while(m);U0(c)}function _S(l,c){var m=l;l=0;do{var v=m.nextSibling;if(m.nodeType===1?c?(m._stashedDisplay=m.style.display,m.style.display="none"):(m.style.display=m._stashedDisplay||"",m.getAttribute("style")===""&&m.removeAttribute("style")):m.nodeType===3&&(c?(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 Jr(l){var c=l.firstChild;for(c&&c.nodeType===10&&(c=c.nextSibling);c;){var m=c;switch(c=c.nextSibling,m.nodeName){case"HTML":case"HEAD":case"BODY":Jr(m),mc(m);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(m.rel.toLowerCase()==="stylesheet")continue}l.removeChild(m)}}function DS(l,c,m,v){for(;l.nodeType===1;){var A=m;if(l.nodeName.toLowerCase()!==c.toLowerCase()){if(!v&&(l.nodeName!=="INPUT"||l.type!=="hidden"))break}else if(v){if(!l[Yd])switch(c){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(c==="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=Zi(l.nextSibling),l===null)break}return null}function q8(l,c,m){if(c==="")return null;for(;l.nodeType!==3;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!m||(l=Zi(l.nextSibling),l===null))return null;return l}function mn(l,c){for(;l.nodeType!==8;)if((l.nodeType!==1||l.nodeName!=="INPUT"||l.type!=="hidden")&&!c||(l=Zi(l.nextSibling),l===null))return null;return l}function kS(l){return l.data==="$?"||l.data==="$~"}function ol(l){return l.data==="$!"||l.data==="$?"&&l.ownerDocument.readyState!=="loading"}function z0(l,c){var m=l.ownerDocument;if(l.data==="$~")l._reactRetry=c;else if(l.data!=="$?"||m.readyState!=="loading")c();else{var v=function(){c(),m.removeEventListener("DOMContentLoaded",v)};m.addEventListener("DOMContentLoaded",v),l._reactRetry=v}}function Zi(l){for(;l!=null;l=l.nextSibling){var c=l.nodeType;if(c===1||c===3)break;if(c===8){if(c=l.data,c==="$"||c==="$!"||c==="$?"||c==="$~"||c==="&"||c==="F!"||c==="F")break;if(c==="/$"||c==="/&")return null}}return l}var I0=null;function hy(l){l=l.nextSibling;for(var c=0;l;){if(l.nodeType===8){var m=l.data;if(m==="/$"||m==="/&"){if(c===0)return Zi(l.nextSibling);c--}else m!=="$"&&m!=="$!"&&m!=="$?"&&m!=="$~"&&m!=="&"||c++}l=l.nextSibling}return null}function py(l){l=l.previousSibling;for(var c=0;l;){if(l.nodeType===8){var m=l.data;if(m==="$"||m==="$!"||m==="$?"||m==="$~"||m==="&"){if(c===0)return l;c--}else m!=="/$"&&m!=="/&"||c++}l=l.previousSibling}return null}function Bl(l,c,m){switch(c=om(m),l){case"html":if(l=c.documentElement,!l)throw Error(i(452));return l;case"head":if(l=c.head,!l)throw Error(i(453));return l;case"body":if(l=c.body,!l)throw Error(i(454));return l;default:throw Error(i(451))}}function Iu(l){for(var c=l.attributes;c.length;)l.removeAttributeNode(c[0]);mc(l)}var lo=new Map,my=new Set;function ld(l){return typeof l.getRootNode=="function"?l.getRootNode():l.nodeType===9?l:l.ownerDocument}var si=ae.d;ae.d={f:NS,r:F8,D:Ti,C:qe,L:Kn,m:G8,X:IS,S:zS,M:Lu};function NS(){var l=si.f(),c=Wp();return l||c}function F8(l){var c=Sf(l);c!==null&&c.tag===5&&c.type==="form"?y0(c):si.r(l)}var sd=typeof document>"u"?null:document;function wE(l,c,m){var v=sd;if(v&&typeof c=="string"&&c){var A=Xo(c);A='link[rel="'+l+'"][href="'+A+'"]',typeof m=="string"&&(A+='[crossorigin="'+m+'"]'),my.has(A)||(my.add(A),l={rel:l,crossOrigin:m,href:c},v.querySelector(A)===null&&(c=v.createElement("link"),Ki(c,"link",l),Ei(c),v.head.appendChild(c)))}}function Ti(l){si.D(l),wE("dns-prefetch",l,null)}function qe(l,c){si.C(l,c),wE("preconnect",l,c)}function Kn(l,c,m){si.L(l,c,m);var v=sd;if(v&&l&&c){var A='link[rel="preload"][as="'+Xo(c)+'"]';c==="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(c){case"style":O=js(l);break;case"script":O=ud(l)}lo.has(O)||(l=x({rel:"preload",href:c==="image"&&m&&m.imageSrcSet?void 0:l,as:c},m),lo.set(O,l),v.querySelector(A)!==null||c==="style"&&v.querySelector(ll(O))||c==="script"&&v.querySelector(L0(O))||(c=v.createElement("link"),Ki(c,"link",l),Ei(c),v.head.appendChild(c)))}}function G8(l,c){si.m(l,c);var m=sd;if(m&&l){var v=c&&typeof c.as=="string"?c.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=ud(l)}if(!lo.has(O)&&(l=x({rel:"modulepreload",href:l},c),lo.set(O,l),m.querySelector(A)===null)){switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(m.querySelector(L0(O)))return}v=m.createElement("link"),Ki(v,"link",l),Ei(v),m.head.appendChild(v)}}}function zS(l,c,m){si.S(l,c,m);var v=sd;if(v&&l){var A=xf(v).hoistableStyles,O=js(l);c=c||"default";var U=A.get(O);if(!U){var te={loading:0,preload:null};if(U=v.querySelector(ll(O)))te.loading=5;else{l=x({rel:"stylesheet",href:l,"data-precedence":c},m),(m=lo.get(O))&&gy(l,m);var ve=U=v.createElement("link");Ei(ve),Ki(ve,"link",l),ve._p=new Promise(function(Ie,Ge){ve.onload=Ie,ve.onerror=Ge}),ve.addEventListener("load",function(){te.loading|=1}),ve.addEventListener("error",function(){te.loading|=2}),te.loading|=4,cm(U,c,v)}U={type:"stylesheet",instance:U,count:1,state:te},A.set(O,U)}}}function IS(l,c){si.X(l,c);var m=sd;if(m&&l){var v=xf(m).hoistableScripts,A=ud(l),O=v.get(A);O||(O=m.querySelector(L0(A)),O||(l=x({src:l,async:!0},c),(c=lo.get(A))&&yy(l,c),O=m.createElement("script"),Ei(O),Ki(O,"link",l),m.head.appendChild(O)),O={type:"script",instance:O,count:1,state:null},v.set(A,O))}}function Lu(l,c){si.M(l,c);var m=sd;if(m&&l){var v=xf(m).hoistableScripts,A=ud(l),O=v.get(A);O||(O=m.querySelector(L0(A)),O||(l=x({src:l,async:!0,type:"module"},c),(c=lo.get(A))&&yy(l,c),O=m.createElement("script"),Ei(O),Ki(O,"link",l),m.head.appendChild(O)),O={type:"script",instance:O,count:1,state:null},v.set(A,O))}}function Bu(l,c,m,v){var A=(A=De.current)?ld(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"?(c=js(m.href),m=xf(A).hoistableStyles,v=m.get(c),v||(v={type:"style",instance:null,count:0,state:null},m.set(c,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=js(m.href);var O=xf(A).hoistableStyles,U=O.get(l);if(U||(A=A.ownerDocument||A,U={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},O.set(l,U),(O=A.querySelector(ll(l)))&&!O._p&&(U.instance=O,U.state.loading=5),lo.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},lo.set(l,m),O||um(A,l,m,U.state))),c&&v===null)throw Error(i(528,""));return U}if(c&&v!==null)throw Error(i(529,""));return null;case"script":return c=m.async,m=m.src,typeof m=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(c=ud(m),m=xf(A).hoistableScripts,v=m.get(c),v||(v={type:"script",instance:null,count:0,state:null},m.set(c,v)),v):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,l))}}function js(l){return'href="'+Xo(l)+'"'}function ll(l){return'link[rel="stylesheet"]['+l+"]"}function sm(l){return x({},l,{"data-precedence":l.precedence,precedence:null})}function um(l,c,m,v){l.querySelector('link[rel="preload"][as="style"]['+c+"]")?v.loading=1:(c=l.createElement("link"),v.preload=c,c.addEventListener("load",function(){return v.loading|=1}),c.addEventListener("error",function(){return v.loading|=2}),Ki(c,"link",m),Ei(c),l.head.appendChild(c))}function ud(l){return'[src="'+Xo(l)+'"]'}function L0(l){return"script[async]"+l}function LS(l,c,m){if(c.count++,c.instance===null)switch(c.type){case"style":var v=l.querySelector('style[data-href~="'+Xo(m.href)+'"]');if(v)return c.instance=v,Ei(v),v;var A=x({},m,{"data-href":m.href,"data-precedence":m.precedence,href:null,precedence:null});return v=(l.ownerDocument||l).createElement("style"),Ei(v),Ki(v,"style",A),cm(v,m.precedence,l),c.instance=v;case"stylesheet":A=js(m.href);var O=l.querySelector(ll(A));if(O)return c.state.loading|=4,c.instance=O,Ei(O),O;v=sm(m),(A=lo.get(A))&&gy(v,A),O=(l.ownerDocument||l).createElement("link"),Ei(O);var U=O;return U._p=new Promise(function(te,ve){U.onload=te,U.onerror=ve}),Ki(O,"link",v),c.state.loading|=4,cm(O,m.precedence,l),c.instance=O;case"script":return O=ud(m.src),(A=l.querySelector(L0(O)))?(c.instance=A,Ei(A),A):(v=m,(A=lo.get(O))&&(v=x({},m),yy(v,A)),l=l.ownerDocument||l,A=l.createElement("script"),Ei(A),Ki(A,"link",v),l.head.appendChild(A),c.instance=A);case"void":return null;default:throw Error(i(443,c.type))}else c.type==="stylesheet"&&(c.state.loading&4)===0&&(v=c.instance,c.state.loading|=4,cm(v,m.precedence,l));return c.instance}function cm(l,c,m){for(var v=m.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),A=v.length?v[v.length-1]:null,O=A,U=0;U<v.length;U++){var te=v[U];if(te.dataset.precedence===c)O=te;else if(O!==A)break}O?O.parentNode.insertBefore(l,O.nextSibling):(c=m.nodeType===9?m.head:m,c.insertBefore(l,c.firstChild))}function gy(l,c){l.crossOrigin==null&&(l.crossOrigin=c.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=c.referrerPolicy),l.title==null&&(l.title=c.title)}function yy(l,c){l.crossOrigin==null&&(l.crossOrigin=c.crossOrigin),l.referrerPolicy==null&&(l.referrerPolicy=c.referrerPolicy),l.integrity==null&&(l.integrity=c.integrity)}var fm=null;function vy(l,c,m){if(fm===null){var v=new Map,A=fm=new Map;A.set(m,v)}else A=fm,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[Yd]||O[pi]||l==="link"&&O.getAttribute("rel")==="stylesheet")&&O.namespaceURI!=="http://www.w3.org/2000/svg"){var U=O.getAttribute(c)||"";U=l+U;var te=v.get(U);te?te.push(O):v.set(U,[O])}}return v}function BS(l,c,m){l=l.ownerDocument||l,l.head.insertBefore(m,c==="title"?l.querySelector("head > title"):null)}function VS(l,c,m){if(m===1||c.itemProp!=null)return!1;switch(l){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href==="")break;return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError)break;switch(c.rel){case"stylesheet":return l=c.disabled,typeof c.precedence=="string"&&l==null;default:return!0}case"script":if(c.async&&typeof c.async!="function"&&typeof c.async!="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src=="string")return!0}return!1}function by(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}function Ro(l,c,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=js(v.href),O=c.querySelector(ll(A));if(O){c=O._p,c!==null&&typeof c=="object"&&typeof c.then=="function"&&(l.count++,l=B0.bind(l),c.then(l,l)),m.state.loading|=4,m.instance=O,Ei(O);return}O=c.ownerDocument||c,v=sm(v),(A=lo.get(A))&&gy(v,A),O=O.createElement("link"),Ei(O);var U=O;U._p=new Promise(function(te,ve){U.onload=te,U.onerror=ve}),Ki(O,"link",v),m.instance=O}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(m,c),(c=m.state.preload)&&(m.state.loading&3)===0&&(l.count++,m=B0.bind(l),c.addEventListener("load",m),c.addEventListener("error",m))}}var sl=0;function Vl(l,c){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+c);0<l.imgBytes&&sl===0&&(sl=62500*MS());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)+c);return l.unsuspend=m,function(){l.unsuspend=null,clearTimeout(v),clearTimeout(A)}}:null}function B0(){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 Sy=null;function xy(l,c){l.stylesheets=null,l.unsuspend!==null&&(l.count++,Sy=new Map,c.forEach(Y8,l),Sy=null,B0.call(l))}function Y8(l,c){if(!(c.state.loading&4)){var m=Sy.get(l);if(m)var v=m.get(null);else{m=new Map,Sy.set(l,m);for(var A=l.querySelectorAll("link[data-precedence],style[data-precedence]"),O=0;O<A.length;O++){var U=A[O];(U.nodeName==="LINK"||U.getAttribute("media")!=="not all")&&(m.set(U.dataset.precedence,U),v=U)}v&&m.set(null,v)}A=c.instance,U=A.getAttribute("data-precedence"),O=m.get(U)||v,O===v&&m.set(null,A),m.set(U,A),this.count++,v=B0.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)),c.state.loading|=4}}var ei={$$typeof:B,Provider:null,Consumer:null,_currentValue:pe,_currentValue2:pe,_threadCount:0};function X8(l,c,m,v,A,O,U,te,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=tr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tr(0),this.hiddenUpdates=tr(null),this.identifierPrefix=v,this.onUncaughtError=A,this.onCaughtError=O,this.onRecoverableError=U,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ve,this.incompleteTransitions=new Map}function Ey(l,c,m,v,A,O,U,te,ve,Ie,Ge,Je){return l=new X8(l,c,m,U,ve,Ie,Ge,Je,te),c=1,O===!0&&(c|=24),O=Xa(3,null,null,c),l.current=O,O.stateNode=l,c=d1(),c.refCount++,l.pooledCache=c,c.refCount++,O.memoizedState={element:v,isDehydrated:m,cache:c},m1(O),l}function wy(l){return l?(l=zf,l):zf}function cd(l,c,m,v,A,O){A=wy(A),v.context===null?v.context=A:v.pendingContext=A,v=wu(c),v.payload={element:m},O=O===void 0?null:O,O!==null&&(v.callback=O),m=Tu(l,v,c),m!==null&&(oo(m,l,c),As(m,l,c))}function TE(l,c){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var m=l.retryLane;l.retryLane=m!==0&&m<c?m:c}}function dm(l,c){TE(l,c),(l=l.alternate)&&TE(l,c)}function AE(l){if(l.tag===13||l.tag===31){var c=ia(l,67108864);c!==null&&oo(c,l,67108864),dm(l,67108864)}}function CE(l){if(l.tag===13||l.tag===31){var c=Da();c=Ha(c);var m=ia(l,c);m!==null&&oo(m,l,c),dm(l,c)}}var Vu=!0;function fa(l,c,m,v){var A=K.T;K.T=null;var O=ae.p;try{ae.p=2,ul(l,c,m,v)}finally{ae.p=O,K.T=A}}function Hs(l,c,m,v){var A=K.T;K.T=null;var O=ae.p;try{ae.p=8,ul(l,c,m,v)}finally{ae.p=O,K.T=A}}function ul(l,c,m,v){if(Vu){var A=Ji(v);if(A===null)_0(l,c,v,Ty,m),da(l,v);else if(PS(A,l,c,m,v))v.stopPropagation();else if(da(l,v),c&4&&-1<ta.indexOf(l)){for(;A!==null;){var O=Sf(A);if(O!==null)switch(O.tag){case 3:if(O=O.stateNode,O.current.memoizedState.isDehydrated){var U=Ke(O.pendingLanes);if(U!==0){var te=O;for(te.pendingLanes|=2,te.entangledLanes|=2;U;){var ve=1<<31-yn(U);te.entanglements[1]|=ve,U&=~ve}Ll(O),(jn&6)===0&&(Xp=$t()+500,Jp(0))}}break;case 31:case 13:te=ia(O,2),te!==null&&oo(te,O,2),Wp(),dm(O,2)}if(O=Ji(v),O===null&&_0(l,c,v,Ty,m),O===A)break;A=O}A!==null&&v.stopPropagation()}else _0(l,c,v,null,m)}}function Ji(l){return l=Fg(l),US(l)}var Ty=null;function US(l){if(Ty=null,l=bf(l),l!==null){var c=s(l);if(c===null)l=null;else{var m=c.tag;if(m===13){if(l=f(c),l!==null)return l;l=null}else if(m===31){if(l=d(c),l!==null)return l;l=null}else if(m===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;l=null}else c!==l&&(l=null)}}return Ty=l,null}function hm(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(nt()){case Ee:return 2;case Ue:return 8;case st:case mt:return 32;case dt:return 268435456;default:return 32}default:return 32}}var V0=!1,Ul=null,Ai=null,ea=null,_o=new Map,jc=new Map,ka=[],ta="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 da(l,c){switch(l){case"focusin":case"focusout":Ul=null;break;case"dragenter":case"dragleave":Ai=null;break;case"mouseover":case"mouseout":ea=null;break;case"pointerover":case"pointerout":_o.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":jc.delete(c.pointerId)}}function cl(l,c,m,v,A,O){return l===null||l.nativeEvent!==O?(l={blockedOn:c,domEventName:m,eventSystemFlags:v,nativeEvent:O,targetContainers:[A]},c!==null&&(c=Sf(c),c!==null&&AE(c)),l):(l.eventSystemFlags|=v,c=l.targetContainers,A!==null&&c.indexOf(A)===-1&&c.push(A),l)}function PS(l,c,m,v,A){switch(c){case"focusin":return Ul=cl(Ul,l,c,m,v,A),!0;case"dragenter":return Ai=cl(Ai,l,c,m,v,A),!0;case"mouseover":return ea=cl(ea,l,c,m,v,A),!0;case"pointerover":var O=A.pointerId;return _o.set(O,cl(_o.get(O)||null,l,c,m,v,A)),!0;case"gotpointercapture":return O=A.pointerId,jc.set(O,cl(jc.get(O)||null,l,c,m,v,A)),!0}return!1}function OE(l){var c=bf(l.target);if(c!==null){var m=s(c);if(m!==null){if(c=m.tag,c===13){if(c=f(m),c!==null){l.blockedOn=c,$g(l.priority,function(){CE(m)});return}}else if(c===31){if(c=d(m),c!==null){l.blockedOn=c,$g(l.priority,function(){CE(m)});return}}else if(c===3&&m.stateNode.current.memoizedState.isDehydrated){l.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}l.blockedOn=null}function Ay(l){if(l.blockedOn!==null)return!1;for(var c=l.targetContainers;0<c.length;){var m=Ji(l.nativeEvent);if(m===null){m=l.nativeEvent;var v=new m.constructor(m.type,m);Fh=v,m.target.dispatchEvent(v),Fh=null}else return c=Sf(m),c!==null&&AE(c),l.blockedOn=m,!1;c.shift()}return!0}function $S(l,c,m){Ay(l)&&m.delete(c)}function pm(){V0=!1,Ul!==null&&Ay(Ul)&&(Ul=null),Ai!==null&&Ay(Ai)&&(Ai=null),ea!==null&&Ay(ea)&&(ea=null),_o.forEach($S),jc.forEach($S)}function mm(l,c){l.blockedOn===c&&(l.blockedOn=null,V0||(V0=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,pm)))}var qs=null;function Cy(l){qs!==l&&(qs=l,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){qs===l&&(qs=null);for(var c=0;c<l.length;c+=3){var m=l[c],v=l[c+1],A=l[c+2];if(typeof v!="function"){if(US(v||m)===null)continue;break}var O=Sf(m);O!==null&&(l.splice(c,3),c-=3,I1(O,{pending:!0,data:A,method:m.method,action:v},v,A))}}))}function U0(l){function c(ve){return mm(ve,l)}Ul!==null&&mm(Ul,l),Ai!==null&&mm(Ai,l),ea!==null&&mm(ea,l),_o.forEach(c),jc.forEach(c);for(var m=0;m<ka.length;m++){var v=ka[m];v.blockedOn===l&&(v.blockedOn=null)}for(;0<ka.length&&(m=ka[0],m.blockedOn===null);)OE(m),m.blockedOn===null&&ka.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],U=A[Mr]||null;if(typeof O=="function")U||Cy(m);else if(U){var te=null;if(O&&O.hasAttribute("formAction")){if(A=O,U=O[Mr]||null)te=U.formAction;else if(US(A)!==null)continue}else te=U.action;typeof te=="function"?m[v+1]=te:(m.splice(v,3),v-=3),Cy(m)}}}function ME(){function l(O){O.canIntercept&&O.info==="react-transition"&&O.intercept({handler:function(){return new Promise(function(U){return A=U})},focusReset:"manual",scroll:"manual"})}function c(){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",c),navigation.addEventListener("navigateerror",c),setTimeout(m,100),function(){v=!0,navigation.removeEventListener("navigate",l),navigation.removeEventListener("navigatesuccess",c),navigation.removeEventListener("navigateerror",c),A!==null&&(A(),A=null)}}}function Oy(l){this._internalRoot=l}gm.prototype.render=Oy.prototype.render=function(l){var c=this._internalRoot;if(c===null)throw Error(i(409));var m=c.current,v=Da();cd(m,v,l,c,null,null)},gm.prototype.unmount=Oy.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var c=l.containerInfo;cd(l.current,2,null,l,null,null),Wp(),c[vf]=null}};function gm(l){this._internalRoot=l}gm.prototype.unstable_scheduleHydration=function(l){if(l){var c=y6();l={blockedOn:null,target:l,priority:c};for(var m=0;m<ka.length&&c!==0&&c<ka[m].priority;m++);ka.splice(m,0,l),m===0&&OE(l)}};var RE=t.version;if(RE!=="19.2.4")throw Error(i(527,RE,"19.2.4"));ae.findDOMNode=function(l){var c=l._reactInternals;if(c===void 0)throw typeof l.render=="function"?Error(i(188)):(l=Object.keys(l).join(","),Error(i(268,l)));return l=y(c),l=l!==null?b(l):null,l=l===null?null:l.stateNode,l};var _E={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:K,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ym=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ym.isDisabled&&ym.supportsFiber)try{kt=ym.inject(_E),Vt=ym}catch{}}return ov.createRoot=function(l,c){if(!o(l))throw Error(i(299));var m=!1,v="",A=j4,O=B1,U=H4;return c!=null&&(c.unstable_strictMode===!0&&(m=!0),c.identifierPrefix!==void 0&&(v=c.identifierPrefix),c.onUncaughtError!==void 0&&(A=c.onUncaughtError),c.onCaughtError!==void 0&&(O=c.onCaughtError),c.onRecoverableError!==void 0&&(U=c.onRecoverableError)),c=Ey(l,1,!1,null,null,m,v,null,A,O,U,ME),l[vf]=c.current,wS(l),new Oy(c)},ov.hydrateRoot=function(l,c,m){if(!o(l))throw Error(i(299));var v=!1,A="",O=j4,U=B1,te=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&&(U=m.onCaughtError),m.onRecoverableError!==void 0&&(te=m.onRecoverableError),m.formState!==void 0&&(ve=m.formState)),c=Ey(l,1,!0,c,m??null,v,A,ve,O,U,te,ME),c.context=wy(null),m=c.current,v=Da(),v=Ha(v),A=wu(v),A.callback=null,Tu(m,A,v),m=v,c.current.lanes=m,Hi(c,m),Ll(c),l[vf]=c.current,wS(l),new gm(c)},ov.version="19.2.4",ov}var sv={},gC;function pB(){if(gC)return sv;gC=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 S=a[u],E=Ti(r)?r.slice():mn({},r);return E[S]=n(r[S],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 S=a[g],E=Ti(r)?r.slice():mn({},r);return g+1===a.length?(E[u[g]]=E[S],Ti(E)?E.splice(S,1):delete E[S]):E[S]=o(r[S],a,u,g+1),E}function s(r,a,u){var g=a[u],S=Ti(r)?r.slice():mn({},r);return u+1===a.length?(Ti(S)?S.splice(g,1):delete S[g],S):(S[g]=s(r[g],a,u+1),S)}function f(){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 x(){}function T(r){var a=[];return r.forEach(function(u){a.push(u)}),a.sort().join(", ")}function w(r,a,u,g){return new V8(r,a,u,g)}function C(r,a){r.context===H0&&(AS(r.current,2,a,r,null,null),Kf())}function R(r,a){if(Ys!==null){var u=a.staleFamilies;a=a.updatedFamilies,Lc(),z6(r.current,a,u),Kf()}}function _(r){Ys=r}function N(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 B(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 V(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 I(r){if(z(r)!==r)throw Error("Unable to find node on an unmounted component.")}function P(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 S=u.return;if(S===null)break;var E=S.alternate;if(E===null){if(g=S.return,g!==null){u=g;continue}break}if(S.child===E.child){for(E=S.child;E;){if(E===u)return I(S),r;if(E===g)return I(S),a;E=E.sibling}throw Error("Unable to find node on an unmounted component.")}if(u.return!==g.return)u=S,g=E;else{for(var M=!1,D=S.child;D;){if(D===u){M=!0,u=S,g=E;break}if(D===g){M=!0,g=S,u=E;break}D=D.sibling}if(!M){for(D=E.child;D;){if(D===u){M=!0,u=E,g=S;break}if(D===g){M=!0,g=E,u=S;break}D=D.sibling}if(!M)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 Y(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=Y(r),a!==null)return a;r=r.sibling}return null}function se(r){return r===null||typeof r!="object"?null:(r=sd&&r[sd]||r["@@iterator"],typeof r=="function"?r:null)}function ue(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===wE?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case Zi:return"Fragment";case hy:return"Profiler";case I0:return"StrictMode";case lo:return"Suspense";case my:return"SuspenseList";case NS: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 z0:return"Portal";case Bl:return r.displayName||"Context";case py:return(r._context.displayName||"Context")+".Consumer";case Iu:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case ld:return a=r.displayName||null,a!==null?a:ue(r.type)||"Memo";case si:a=r._payload,r=r._init;try{return ue(r(a))}catch{}}return null}function re(r){return typeof r.tag=="number"?le(r):typeof r.name=="string"?r.name:null}function le(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 ue(a);case 8:return a===I0?"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 le(r.return)}return null}function $(r){return{current:r}}function oe(r,a){0>Lu?console.error("Unexpected pop."):(a!==IS[Lu]&&console.error("Unexpected Fiber popped."),r.current=zS[Lu],zS[Lu]=null,IS[Lu]=null,Lu--)}function W(r,a,u){Lu++,zS[Lu]=r.current,IS[Lu]=u,r.current=a}function ie(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 K(r,a){W(ll,a,r),W(js,r,r),W(Bu,null,r);var u=a.nodeType;switch(u){case 9:case 11:u=u===9?"#document":"#fragment",a=(a=a.documentElement)&&(a=a.namespaceURI)?Nu(a):Td;break;default:if(u=a.tagName,a=a.namespaceURI)a=Nu(a),a=Wp(a,u);else switch(u){case"svg":a=iv;break;case"math":a=S7;break;default:a=Td}}u=u.toLowerCase(),u=Hh(null,u),u={context:a,ancestorInfo:u},oe(Bu,r),W(Bu,u,r)}function ae(r){oe(Bu,r),oe(js,r),oe(ll,r)}function pe(){return ie(Bu.current)}function Te(r){r.memoizedState!==null&&W(sm,r,r);var a=ie(Bu.current),u=r.type,g=Wp(a.context,u);u=Hh(a.ancestorInfo,u),g={context:g,ancestorInfo:u},a!==g&&(W(js,r,r),W(Bu,g,r))}function ee(r){js.current===r&&(oe(Bu,r),oe(js,r)),sm.current===r&&(oe(sm,r),_5._currentValue=Pm)}function q(){}function J(){if(um===0){ud=console.log,L0=console.info,LS=console.warn,cm=console.error,gy=console.group,yy=console.groupCollapsed,fm=console.groupEnd;var r={configurable:!0,enumerable:!0,value:q,writable:!0};Object.defineProperties(console,{info:r,log:r,warn:r,error:r,group:r,groupCollapsed:r,groupEnd:r})}um++}function F(){if(um--,um===0){var r={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:mn({},r,{value:ud}),info:mn({},r,{value:L0}),warn:mn({},r,{value:LS}),error:mn({},r,{value:cm}),group:mn({},r,{value:gy}),groupCollapsed:mn({},r,{value:yy}),groupEnd:mn({},r,{value:fm})})}0>um&&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 be(r){if(vy===void 0)try{throw Error()}catch(u){var a=u.stack.trim().match(/\n( *(at )?)/);vy=a&&a[1]||"",BS=-1<u.stack.indexOf(`
    at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
`+vy+r+BS}function De(r,a){if(!r||VS)return"";var u=by.get(r);if(u!==void 0)return u;VS=!0,u=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var g=null;g=qe.H,qe.H=null,J();try{var S={DetermineComponentFrameRoot:function(){try{if(a){var me=function(){throw Error()};if(Object.defineProperty(me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(me,[])}catch(gt){var Ve=gt}Reflect.construct(r,[],me)}else{try{me.call()}catch(gt){Ve=gt}r.call(me.prototype)}}else{try{throw Error()}catch(gt){Ve=gt}(me=r())&&typeof me.catch=="function"&&me.catch(function(){})}}catch(gt){if(gt&&Ve&&typeof gt.stack=="string")return[gt.stack,Ve.stack]}return[null,null]}};S.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var E=Object.getOwnPropertyDescriptor(S.DetermineComponentFrameRoot,"name");E&&E.configurable&&Object.defineProperty(S.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var M=S.DetermineComponentFrameRoot(),D=M[0],H=M[1];if(D&&H){var Q=D.split(`
`),we=H.split(`
`);for(M=E=0;E<Q.length&&!Q[E].includes("DetermineComponentFrameRoot");)E++;for(;M<we.length&&!we[M].includes("DetermineComponentFrameRoot");)M++;if(E===Q.length||M===we.length)for(E=Q.length-1,M=we.length-1;1<=E&&0<=M&&Q[E]!==we[M];)M--;for(;1<=E&&0<=M;E--,M--)if(Q[E]!==we[M]){if(E!==1||M!==1)do if(E--,M--,0>M||Q[E]!==we[M]){var Ce=`
`+Q[E].replace(" at new "," at ");return r.displayName&&Ce.includes("<anonymous>")&&(Ce=Ce.replace("<anonymous>",r.displayName)),typeof r=="function"&&by.set(r,Ce),Ce}while(1<=E&&0<=M);break}}}finally{VS=!1,qe.H=g,F(),Error.prepareStackTrace=u}return Q=(Q=r?r.displayName||r.name:"")?be(Q):"",typeof r=="function"&&by.set(r,Q),Q}function Pe(r,a){switch(r.tag){case 26:case 27:case 5:return be(r.type);case 16:return be("Lazy");case 13:return r.child!==a&&a!==null?be("Suspense Fallback"):be("Suspense");case 19:return be("SuspenseList");case 0:case 15:return De(r.type,!1);case 11:return De(r.type.render,!1);case 1:return De(r.type,!0);case 31:return be("Activity");default:return""}}function Fe(r){try{var a="",u=null;do{a+=Pe(r,u);var g=r._debugInfo;if(g)for(var S=g.length-1;0<=S;S--){var E=g[S];if(typeof E.name=="string"){var M=a;e:{var D=E.name,H=E.env,Q=E.debugLocation;if(Q!=null){var we=Re(Q),Ce=we.lastIndexOf(`
`),me=Ce===-1?we:we.slice(Ce+1);if(me.indexOf(D)!==-1){var Ve=`
`+me;break e}}Ve=be(D+(H?" ["+H+"]":""))}a=M+Ve}}u=r,r=r.return}while(r);return a}catch(gt){return`
Error generating stack: `+gt.message+`
`+gt.stack}}function Ze(r){return(r=r?r.displayName||r.name:"")?be(r):""}function Qe(){if(Ro===null)return null;var r=Ro._debugOwner;return r!=null?re(r):null}function tt(){if(Ro===null)return"";var r=Ro;try{var a="";switch(r.tag===6&&(r=r.return),r.tag){case 26:case 27:case 5:a+=be(r.type);break;case 13:a+=be("Suspense");break;case 19:a+=be("SuspenseList");break;case 31:a+=be("Activity");break;case 30:case 0:case 15:case 1:r._debugOwner||a!==""||(a+=Ze(r.type));break;case 11:r._debugOwner||a!==""||(a+=Ze(r.type.render))}for(;r;)if(typeof r.tag=="number"){var u=r;r=u._debugOwner;var g=u._debugStack;if(r&&g){var S=Re(g);S!==""&&(a+=`
`+S)}}else if(r.debugStack!=null){var E=r.debugStack;(r=r.owner)&&E&&(a+=`
`+Re(E))}else break;var M=a}catch(D){M=`
Error generating stack: `+D.message+`
`+D.stack}return M}function $e(r,a,u,g,S,E,M){var D=Ro;_e(r);try{return r!==null&&r._debugTask?r._debugTask.run(a.bind(null,u,g,S,E,M)):a(u,g,S,E,M)}finally{_e(D)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function _e(r){qe.getCurrentStack=r===null?null:tt,sl=!1,Ro=r}function ut(r){return typeof Symbol=="function"&&Symbol.toStringTag&&r[Symbol.toStringTag]||r.constructor.name||"Object"}function Ot(r){try{return Qt(r),!1}catch{return!0}}function Qt(r){return""+r}function vt(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,ut(r)),Qt(r)}function Lt(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,ut(r)),Qt(r)}function un(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.",ut(r)),Qt(r)}function Dn(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{Vu=a.inject(r),fa=a}catch(u){console.error("React instrumentation encountered an error: %o.",u)}return!!a.checkDCE}function lt(r){if(typeof AE=="function"&&CE(r),fa&&typeof fa.setStrictMode=="function")try{fa.setStrictMode(Vu,r)}catch(a){Hs||(Hs=!0,console.error("React instrumentation encountered an error: %o",a))}}function Mt(r){return r>>>=0,r===0?32:31-(Ty(r)/US|0)|0}function $n(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 $t(r,a,u){var g=r.pendingLanes;if(g===0)return 0;var S=0,E=r.suspendedLanes,M=r.pingedLanes;r=r.warmLanes;var D=g&134217727;return D!==0?(g=D&~E,g!==0?S=$n(g):(M&=D,M!==0?S=$n(M):u||(u=D&~r,u!==0&&(S=$n(u))))):(D=g&~E,D!==0?S=$n(D):M!==0?S=$n(M):u||(u=g&~r,u!==0&&(S=$n(u)))),S===0?0:a!==0&&a!==S&&(a&E)===0&&(E=S&-S,u=a&-a,E>=u||E===32&&(u&4194048)!==0)?a:S}function nt(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function Ee(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 Ue(){var r=Ul;return Ul<<=1,(Ul&62914560)===0&&(Ul=4194304),r}function st(r){for(var a=[],u=0;31>u;u++)a.push(r);return a}function mt(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function dt(r,a,u,g,S,E){var M=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,H=r.expirationTimes,Q=r.hiddenUpdates;for(u=M&~u;0<u;){var we=31-Ji(u),Ce=1<<we;D[we]=0,H[we]=-1;var me=Q[we];if(me!==null)for(Q[we]=null,we=0;we<me.length;we++){var Ve=me[we];Ve!==null&&(Ve.lane&=-536870913)}u&=~Ce}g!==0&&bt(r,g,0),E!==0&&S===0&&r.tag!==0&&(r.suspendedLanes|=E&~(M&~a))}function bt(r,a,u){r.pendingLanes|=a,r.suspendedLanes&=~a;var g=31-Ji(a);r.entangledLanes|=a,r.entanglements[g]=r.entanglements[g]|1073741824|u&261930}function pn(r,a){var u=r.entangledLanes|=a;for(r=r.entanglements;u;){var g=31-Ji(u),S=1<<g;S&a|r[g]&a&&(r[g]|=a),u&=~S}}function kt(r,a){var u=a&-a;return u=(u&42)!==0?1:Vt(u),(u&(r.suspendedLanes|a))!==0?0:u}function Vt(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-Ji(u),S=1<<g;r[g].add(a),u&=~S}}function yn(r,a){if(ul)for(var u=r.pendingUpdatersLaneMap,g=r.memoizedUpdaters;0<a;){var S=31-Ji(a);r=1<<S,S=u[S],0<S.size&&(S.forEach(function(E){var M=E.alternate;M!==null&&g.has(M)||g.add(E)}),S.clear()),a&=~r}}function Yr(r){return r&=-r,Ai<r?ea<r?(r&134217727)!==0?_o:jc:ea:Ai}function fr(){var r=Kn.p;return r!==0?r:(r=window.event,r===void 0?_o:cy(r.type))}function Z(r,a){var u=Kn.p;try{return Kn.p=r,a()}finally{Kn.p=u}}function Me(r){delete r[ta],delete r[da],delete r[PS],delete r[OE],delete r[Ay]}function rt(r){var a=r[ta];if(a)return a;for(var u=r.parentNode;u;){if(a=u[cl]||u[ta]){if(u=a.alternate,a.child!==null||u!==null&&u.child!==null)for(r=ty(r);r!==null;){if(u=r[ta])return u;r=ty(r)}return a}r=u,u=r.parentNode}return null}function Ne(r){if(r=r[ta]||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 Ke(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function At(r){var a=r[$S];return a||(a=r[$S]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function St(r){r[pm]=!0}function Xt(r,a){pt(r,a),pt(r+"Capture",a)}function pt(r,a){qs[r]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",r),qs[r]=a;var u=r.toLowerCase();for(Cy[u]=r,r==="onDoubleClick"&&(Cy.ondblclick=r),r=0;r<a.length;r++)mm.add(a[r])}function tr(r,a){U0[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 Hi(r){return Vl.call(gm,r)?!0:Vl.call(Oy,r)?!1:ME.test(r)?gm[r]=!0:(Oy[r]=!0,console.error("Invalid attribute name: `%s`",r),!1)}function Ug(r,a,u){if(Hi(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:(vt(u,a),r===""+u?u:r)}}function yf(r,a,u){if(Hi(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}}vt(u,a),r.setAttribute(a,""+u)}}function Bh(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}vt(u,a),r.setAttribute(a,""+u)}}function as(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}vt(g,u),r.setAttributeNS(a,u,""+g)}}function Ha(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return un(r),r;default:return""}}function Pg(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function y6(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 S=g.get,E=g.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return S.call(this)},set:function(M){un(M),u=""+M,E.call(this,M)}}),Object.defineProperty(r,a,{enumerable:g.enumerable}),{getValue:function(){return u},setValue:function(M){un(M),u=""+M},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function $g(r){if(!r._valueTracker){var a=Pg(r)?"checked":"value";r._valueTracker=y6(r,a,""+r[a])}}function pu(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var u=a.getValue(),g="";return r&&(g=Pg(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 Mr(r){return r.replace(RE,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function vf(r,a){a.checked===void 0||a.defaultChecked===void 0||ym||(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),ym=!0),a.value===void 0||a.defaultValue===void 0||_E||(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),_E=!0)}function Vh(r,a,u,g,S,E,M,D){r.name="",M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"?(vt(M,"type"),r.type=M):r.removeAttribute("type"),a!=null?M==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+Ha(a)):r.value!==""+Ha(a)&&(r.value=""+Ha(a)):M!=="submit"&&M!=="reset"||r.removeAttribute("value"),a!=null?Pb(r,M,Ha(a)):u!=null?Pb(r,M,Ha(u)):g!=null&&r.removeAttribute("value"),S==null&&E!=null&&(r.defaultChecked=!!E),S!=null&&(r.checked=S&&typeof S!="function"&&typeof S!="symbol"),D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?(vt(D,"name"),r.name=""+Ha(D)):r.removeAttribute("name")}function v6(r,a,u,g,S,E,M,D){if(E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(vt(E,"type"),r.type=E),a!=null||u!=null){if(!(E!=="submit"&&E!=="reset"||a!=null)){$g(r);return}u=u!=null?""+Ha(u):"",a=a!=null?""+Ha(a):u,D||a===r.value||(r.value=a),r.defaultValue=a}g=g??S,g=typeof g!="function"&&typeof g!="symbol"&&!!g,r.checked=D?r.checked:!!g,r.defaultChecked=!!g,M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(vt(M,"name"),r.name=M),$g(r)}function Pb(r,a,u){a==="number"&&pi(r.ownerDocument)===r||r.defaultValue===""+u||(r.defaultValue=""+u)}function $b(r,a){a.value==null&&(typeof a.children=="object"&&a.children!==null?DS.Children.forEach(a.children,function(u){u==null||typeof u=="string"||typeof u=="number"||typeof u=="bigint"||c||(c=!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 Yd(){var r=Qe();return r?`

Check the render method of \``+r+"`.":""}function mc(r,a,u,g){if(r=r.options,a){a={};for(var S=0;S<u.length;S++)a["$"+u[S]]=!0;for(u=0;u<r.length;u++)S=a.hasOwnProperty("$"+r[u].value),r[u].selected!==S&&(r[u].selected=S),S&&g&&(r[u].defaultSelected=!0)}else{for(u=""+Ha(u),a=null,S=0;S<r.length;S++){if(r[S].value===u){r[S].selected=!0,g&&(r[S].defaultSelected=!0);return}a!==null||r[S].disabled||(a=r[S])}a!==null&&(a.selected=!0)}}function bf(r,a){for(r=0;r<A.length;r++){var u=A[r];if(a[u]!=null){var g=Ti(a[u]);a.multiple&&!g?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",u,Yd()):!a.multiple&&g&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",u,Yd())}}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 Sf(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 Xd(r,a,u){if(a!=null&&(a=""+Ha(a),a!==r.value&&(r.value=a),u==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=u!=null?""+Ha(u):""}function xf(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(Ti(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=Ha(a),r.defaultValue=u,g=r.textContent,g===u&&g!==""&&g!==null&&(r.value=g),$g(r)}function Ei(r,a){return r.serverProps===void 0&&r.serverTail.length===0&&r.children.length===1&&3<r.distanceFromLeaf&&r.distanceFromLeaf>15-a?Ei(r.children[0],a):r}function qa(r){return"  "+"  ".repeat(r)}function Ef(r){return"+ "+"  ".repeat(r)}function vo(r){return"- "+"  ".repeat(r)}function wf(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 Uh(r,a){return U.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 Ph(r,a,u){var g=120-2*u;if(a===null)return Ef(u)+Uh(r,g)+`
`;if(typeof a=="string"){for(var S=0;S<a.length&&S<r.length&&a.charCodeAt(S)===r.charCodeAt(S);S++);return S>g-8&&10<S&&(r="..."+r.slice(S-8),a="..."+a.slice(S-8)),Ef(u)+Uh(r,g)+`
`+vo(u)+Uh(a,g)+`
`}return qa(u)+Uh(r,g)+`
`}function jg(r){return Object.prototype.toString.call(r).replace(/^\[object (.*)\]$/,function(a,u){return u})}function $h(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(Ti(r))return"[...]";if(r.$$typeof===ol)return(a=ue(r.type))?"<"+a+">":"<...>";var u=jg(r);if(u==="Object"){u="",a-=2;for(var g in r)if(r.hasOwnProperty(g)){var S=JSON.stringify(g);if(S!=='"'+g+'"'&&(g=S),a-=g.length-2,S=$h(r[g],15>a?a:15),a-=S.length,0>a){u+=u===""?"...":", ...";break}u+=(u===""?"":",")+g+":"+S}return"{"+u+"}"}return u;case"function":return(a=r.displayName||r.name)?"function "+a:"function";default:return String(r)}}function mu(r,a){return typeof r!="string"||U.test(r)?"{"+$h(r,a-2)+"}":r.length>a-2?5>a?'"..."':'"'+r.slice(0,a-5)+'..."':'"'+r+'"'}function Wd(r,a,u){var g=120-u.length-r.length,S=[],E;for(E in a)if(a.hasOwnProperty(E)&&E!=="children"){var M=mu(a[E],120-u.length-E.length-1);g-=E.length+M.length+2,S.push(E+"="+M)}return S.length===0?u+"<"+r+`>
`:0<g?u+"<"+r+" "+S.join(" ")+`>
`:u+"<"+r+`
`+u+"  "+S.join(`
`+u+"  ")+`
`+u+`>
`}function gu(r,a,u){var g="",S=mn({},a),E;for(E in r)if(r.hasOwnProperty(E)){delete S[E];var M=120-2*u-E.length-2,D=$h(r[E],M);a.hasOwnProperty(E)?(M=$h(a[E],M),g+=Ef(u)+E+": "+D+`
`,g+=vo(u)+E+": "+M+`
`):g+=Ef(u)+E+": "+D+`
`}for(var H in S)S.hasOwnProperty(H)&&(r=$h(S[H],120-2*u-H.length-2),g+=vo(u)+H+": "+r+`
`);return g}function Yo(r,a,u,g){var S="",E=new Map;for(Q in u)u.hasOwnProperty(Q)&&E.set(Q.toLowerCase(),Q);if(E.size===1&&E.has("children"))S+=Wd(r,a,qa(g));else{for(var M in a)if(a.hasOwnProperty(M)&&M!=="children"){var D=120-2*(g+1)-M.length-1,H=E.get(M.toLowerCase());if(H!==void 0){E.delete(M.toLowerCase());var Q=a[M];H=u[H];var we=mu(Q,D);D=mu(H,D),typeof Q=="object"&&Q!==null&&typeof H=="object"&&H!==null&&jg(Q)==="Object"&&jg(H)==="Object"&&(2<Object.keys(Q).length||2<Object.keys(H).length||-1<we.indexOf("...")||-1<D.indexOf("..."))?S+=qa(g+1)+M+`={{
`+gu(Q,H,g+2)+qa(g+1)+`}}
`:(S+=Ef(g+1)+M+"="+we+`
`,S+=vo(g+1)+M+"="+D+`
`)}else S+=qa(g+1)+M+"="+mu(a[M],D)+`
`}E.forEach(function(Ce){if(Ce!=="children"){var me=120-2*(g+1)-Ce.length-1;S+=vo(g+1)+Ce+"="+mu(u[Ce],me)+`
`}}),S=S===""?qa(g)+"<"+r+`>
`:qa(g)+"<"+r+`
`+S+qa(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),S+=Ph(E,""+r,g+1)):(typeof a=="string"||typeof a=="number"||typeof a=="bigint")&&(S=r==null?S+Ph(""+a,null,g+1):S+Ph(""+a,void 0,g+1)),S}function jb(r,a){var u=wf(r);if(u===null){for(u="",r=r.child;r;)u+=jb(r,a),r=r.sibling;return u}return qa(a)+"<"+u+`>
`}function Hb(r,a){var u=Ei(r,a);if(u!==r&&(r.children.length!==1||r.children[0]!==u))return qa(a)+`...
`+Hb(u,a+1);u="";var g=r.fiber._debugInfo;if(g)for(var S=0;S<g.length;S++){var E=g[S].name;typeof E=="string"&&(u+=qa(a)+"<"+E+`>
`,a++)}if(g="",S=r.fiber.pendingProps,r.fiber.tag===6)g=Ph(S,r.serverProps,a),a++;else if(E=wf(r.fiber),E!==null)if(r.serverProps===void 0){g=a;var M=120-2*g-E.length-2,D="";for(Q in S)if(S.hasOwnProperty(Q)&&Q!=="children"){var H=mu(S[Q],15);if(M-=Q.length+H.length+2,0>M){D+=" ...";break}D+=" "+Q+"="+H}g=qa(g)+"<"+E+D+`>
`,a++}else r.serverProps===null?(g=Wd(E,S,Ef(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,S,r.serverProps,a),a++);var Q="";for(S=r.fiber.child,E=0;S&&E<r.children.length;)M=r.children[E],M.fiber===S?(Q+=Hb(M,a),E++):Q+=jb(S,a),S=S.sibling;for(S&&0<r.children.length&&(Q+=qa(a)+`...
`),S=r.serverTail,r.serverProps===null&&a--,r=0;r<S.length;r++)E=S[r],Q=typeof E=="string"?Q+(vo(a)+Uh(E,120-2*a)+`
`):Q+Wd(E.type,E.props,vo(a));return u+g+Q}function jh(r){try{return`

`+Hb(r,0)}catch{return""}}function qb(r,a,u){for(var g=a,S=null,E=0;g;)g===r&&(E=0),S={fiber:g,children:S!==null?[S]:[],serverProps:g===a?u:g===r?null:void 0,serverTail:[],distanceFromLeaf:E},E++,g=g.return;return S!==null?jh(S).replaceAll(/^[+-]/gm,">"):""}function Hh(r,a){var u=mn({},r||Je),g={tag:a};return ve.indexOf(a)!==-1&&(u.aTagInScope=null,u.buttonTagInScope=null,u.nobrTagInScope=null),Ie.indexOf(a)!==-1&&(u.pTagInButtonScope=null),te.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 b6(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 Ge.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 Hg(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 qg(r,a){a=a||Je;var u=a.current;if(a=(u=b6(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,Be[a])return!1;Be[a]=!0;var S=(a=Ro)?Hg(a.return,g):null,E=a!==null&&S!==null?qb(S,a,null):"",M="<"+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`,M,g,u,E)):console.error(`In HTML, %s cannot be a descendant of <%s>.
This will cause a hydration error.%s`,M,g,E),a&&(r=a.return,S===null||r===null||S===r&&r._debugOwner===a._debugOwner||$e(S,function(){console.error(`<%s> cannot contain a nested %s.
See this log for the ancestor stack trace.`,g,M)})),!1}function Qd(r,a,u){if(u||b6("#text",a,!1))return!0;if(u="#text|"+a,Be[u])return!1;Be[u]=!0;var g=(u=Ro)?Hg(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 os(r,a){if(a){var u=r.firstChild;if(u&&u===r.lastChild&&u.nodeType===3){u.nodeValue=a;return}}r.textContent=a}function S6(r){return r.replace(Ae,function(a,u){return u.toUpperCase()})}function Fb(r,a,u){var g=a.indexOf("--")===0;g||(-1<a.indexOf("-")?We.hasOwnProperty(a)&&We[a]||(We[a]=!0,console.error("Unsupported style property %s. Did you mean %s?",a,S6(a.replace(ke,"ms-")))):pr.test(a)?We.hasOwnProperty(a)&&We[a]||(We[a]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",a,a.charAt(0).toUpperCase()+a.slice(1))):!ze.test(u)||It.hasOwnProperty(u)&&It[u]||(It[u]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,a,u.replace(ze,""))),typeof u=="number"&&(isNaN(u)?Hn||(Hn=!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:(Lt(u,a),r[a]=(""+u).trim()):r[a]=u+"px"}function Tf(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 S in u)if(u.hasOwnProperty(S)&&!a.hasOwnProperty(S))for(var E=He[S]||[S],M=0;M<E.length;M++)g[E[M]]=S}for(var D in a)if(a.hasOwnProperty(D)&&(!u||u[D]!==a[D]))for(S=He[D]||[D],E=0;E<S.length;E++)g[S[E]]=D;D={};for(var H in a)for(S=He[H]||[H],E=0;E<S.length;E++)D[S[E]]=H;H={};for(var Q in g)if(S=g[Q],(E=D[Q])&&S!==E&&(M=S+","+E,!H[M])){H[M]=!0,M=console;var we=a[S];M.error.call(M,"%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.",we==null||typeof we=="boolean"||we===""?"Removing":"Updating",S,E)}}for(var Ce in u)!u.hasOwnProperty(Ce)||a!=null&&a.hasOwnProperty(Ce)||(Ce.indexOf("--")===0?r.setProperty(Ce,""):Ce==="float"?r.cssFloat="":r[Ce]="");for(var me in a)Q=a[me],a.hasOwnProperty(me)&&u[me]!==Q&&Fb(r,me,Q)}else for(g in a)a.hasOwnProperty(g)&&Fb(r,g,a[g])}function qh(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 Gb(r){return Hc.get(r)||r}function x6(r,a){if(Vl.call(Ry,a)&&Ry[a])return!0;if(ice.test(a)){if(r="aria-"+a.slice(4).toLowerCase(),r=Qz.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(rce.test(a)){if(r=a.toLowerCase(),r=Qz.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)x6(r,g)||u.push(g);a=u.map(function(S){return"`"+S+"`"}).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 k8(r,a,u,g){if(Vl.call(Do,a)&&Do[a])return!0;var S=a.toLowerCase();if(S==="onfocusin"||S==="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."),Do[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(S)?r[S]:null,g!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",a,g),Do[a]=!0;if(Zz.test(a))return console.error("Unknown event handler property `%s`. It will be ignored.",a),Do[a]=!0}else if(Zz.test(a))return ace.test(a)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",a),Do[a]=!0;if(oce.test(a)||lce.test(a))return!0;if(S==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Do[a]=!0;if(S==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Do[a]=!0;if(S==="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),Do[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),Do[a]=!0;if(My.hasOwnProperty(S)){if(S=My[S],S!==a)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",a,S),Do[a]=!0}else if(a!==S)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,S),Do[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 S=a.toLowerCase().slice(0,5),S==="data-"||S==="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),Do[a]=!0)}case"function":case"symbol":return Do[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),Do[a]=!0}}return!0}function N8(r,a,u){var g=[],S;for(S in a)k8(r,S,a[S],u)||g.push(S);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 gc(r){return sce.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function qi(){}function Fh(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}function Fg(r){var a=Ne(r);if(a&&(r=a.stateNode)){var u=r[da]||null;e:switch(r=a.stateNode,a.type){case"input":if(Vh(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(vt(a,"name"),u=u.querySelectorAll('input[name="'+Mr(""+a)+'"][type="radio"]'),a=0;a<u.length;a++){var g=u[a];if(g!==r&&g.form===r.form){var S=g[da]||null;if(!S)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Vh(g,S.value,S.defaultValue,S.defaultValue,S.checked,S.defaultChecked,S.type,S.name)}}for(a=0;a<u.length;a++)g=u[a],g.form===r.form&&pu(g)}break e;case"textarea":Xd(r,u.value,u.defaultValue);break e;case"select":a=u.value,a!=null&&mc(r,!!u.multiple,a,!1)}}}function Af(r,a,u){if(W8)return r(a,u);W8=!0;try{var g=r(a);return g}finally{if(W8=!1,(_y!==null||Dy!==null)&&(Kf(),_y&&(a=_y,r=Dy,Dy=_y=null,Fg(a),r)))for(a=0;a<r.length;a++)Fg(r[a])}}function ls(r,a){var u=r.stateNode;if(u===null)return null;var g=u[da]||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(DE)return DE;var r,a=K8,u=a.length,g,S="value"in P0?P0.value:P0.textContent,E=S.length;for(r=0;r<u&&a[r]===S[r];r++);var M=u-r;for(g=1;g<=M&&a[u-g]===S[E-g];g++);return DE=S.slice(r,1<g?1-g:void 0)}function Kd(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 Gh(){return!0}function Zd(){return!1}function Xr(r){function a(u,g,S,E,M){this._reactName=u,this._targetInst=S,this.type=g,this.nativeEvent=E,this.target=M,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)?Gh:Zd,this.isPropagationStopped=Zd,this}return mn(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=Gh)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Gh)},persist:function(){},isPersistent:Gh}),a}function Wb(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=xce[r])?!!a[r]:!1}function Cf(){return Wb}function yu(r,a){switch(r){case"keyup":return Nce.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==nI;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 Yg(r,a){switch(r){case"compositionend":return Gg(a);case"keypress":return a.which!==iI?null:(oI=!0,aI);case"textInput":return r=a.data,r===aI&&oI?null:r;default:return null}}function E6(r,a){if(ky)return r==="compositionend"||!tA&&yu(r,a)?(r=Xb(),DE=K8=P0=null,ky=!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 rI&&a.locale!=="ko"?null:a.data;default:return null}}function Yh(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!Ice[r.type]:a==="textarea"}function Xg(r){if(!qc)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){_y?Dy?Dy.push(g):Dy=[g]:_y=g,a=Us(a,"onChange"),0<a.length&&(u=new kE("onChange","change",null,u,g),r.push({event:u,listeners:a}))}function Fa(r){no(r,0)}function ss(r){var a=Ke(r);if(pu(a))return r}function Xh(r,a){if(r==="change")return a}function Jd(){YS&&(YS.detachEvent("onpropertychange",w6),XS=YS=null)}function w6(r){if(r.propertyName==="value"&&ss(XS)){var a=[];Qb(a,XS,r,Fh(r)),Af(Fa,a)}}function Kb(r,a,u){r==="focusin"?(Jd(),YS=a,XS=u,YS.attachEvent("onpropertychange",w6)):r==="focusout"&&Jd()}function Zb(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return ss(XS)}function Wh(r,a){if(r==="click")return ss(a)}function Wg(r,a){if(r==="input"||r==="change")return ss(a)}function T6(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}function Qh(r,a){if(ko(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 S=u[g];if(!Vl.call(a,S)||!ko(r[S],a[S]))return!1}return!0}function A6(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function C6(r,a){var u=A6(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=A6(u)}}function Qg(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?Qg(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function O6(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 M6(r,a,u){var g=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;rA||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}),WS&&Qh(WS,g)||(WS=g,g=Us(nA,"onSelect"),0<g.length&&(a=new kE("onSelect","select",null,a,u),r.push({event:a,listeners:g}),a.target=Ny)))}function Of(r,a){var u={};return u[r.toLowerCase()]=a.toLowerCase(),u["Webkit"+r]="webkit"+a,u["Moz"+r]="moz"+a,u}function Mf(r){if(iA[r])return iA[r];if(!zy[r])return r;var a=zy[r],u;for(u in a)if(a.hasOwnProperty(u)&&u in sI)return iA[r]=a[u];return r}function Wo(r,a){hI.set(r,a),Xt(a,[r])}function z8(r){for(var a=zE,u=0;u<r.length;u++){var g=r[u];if(typeof g=="object"&&g!==null)if(Ti(g)&&g.length===2&&typeof g[0]=="string"){if(a!==zE&&a!==uA)return lA;a=uA}else return lA;else{if(typeof g=="function"||typeof g=="string"&&50<g.length||a!==zE&&a!==sA)return lA;a=sA}}return a}function e4(r,a,u,g){for(var S in r)Vl.call(r,S)&&S[0]!=="_"&&us(S,r[S],a,u,g)}function us(r,a,u,g,S){switch(typeof a){case"object":if(a===null){a="null";break}else{if(a.$$typeof===ol){var E=ue(a.type)||"…",M=a.key;a=a.props;var D=Object.keys(a),H=D.length;if(M==null&&H===0){a="<"+E+" />";break}if(3>g||H===1&&D[0]==="children"&&M==null){a="<"+E+" … />";break}u.push([S+"  ".repeat(g)+r,"<"+E]),M!==null&&us("key",M,u,g+1,S),r=!1;for(var Q in a)Q==="children"?a.children!=null&&(!Ti(a.children)||0<a.children.length)&&(r=!0):Vl.call(a,Q)&&Q[0]!=="_"&&us(Q,a[Q],u,g+1,S);u.push(["",r?">…</"+E+">":"/>"]);return}if(E=Object.prototype.toString.call(a),E=E.slice(8,E.length-1),E==="Array"){if(Q=z8(a),Q===sA||Q===zE){a=JSON.stringify(a);break}else if(Q===uA){for(u.push([S+"  ".repeat(g)+r,""]),r=0;r<a.length;r++)E=a[r],us(E[0],E[1],u,g+1,S);return}}if(E==="Promise"){if(a.status==="fulfilled"){if(E=u.length,us(r,a.value,u,g,S),u.length>E){u=u[E],u[1]="Promise<"+(u[1]||"Object")+">";return}}else if(a.status==="rejected"&&(E=u.length,us(r,a.reason,u,g,S),u.length>E)){u=u[E],u[1]="Rejected Promise<"+u[1]+">";return}u.push(["  ".repeat(g)+r,"Promise"]);return}E==="Object"&&(Q=Object.getPrototypeOf(a))&&typeof Q.constructor=="function"&&(E=Q.constructor.name),u.push([S+"  ".repeat(g)+r,E==="Object"?3>g?"":"…":E]),3>g&&e4(a,u,g+1,S);return}case"function":a=a.name===""?"() => {}":a.name+"() {}";break;case"string":a=a===jce?"…":JSON.stringify(a);break;case"undefined":a="undefined";break;case"boolean":a=a?"true":"false";break;default:a=String(a)}u.push([S+"  ".repeat(g)+r,a])}function R6(r,a,u,g){var S=!0;for(M in r)M in a||(u.push([IE+"  ".repeat(g)+M,"…"]),S=!1);for(var E in a)if(E in r){var M=r[E],D=a[E];if(M!==D){if(g===0&&E==="children")S="  ".repeat(g)+E,u.push([IE+S,"…"],[LE+S,"…"]);else{if(!(3<=g)){if(typeof M=="object"&&typeof D=="object"&&M!==null&&D!==null&&M.$$typeof===D.$$typeof)if(D.$$typeof===ol){if(M.type===D.type&&M.key===D.key){M=ue(D.type)||"…",S="  ".repeat(g)+E,M="<"+M+" … />",u.push([IE+S,M],[LE+S,M]),S=!1;continue}}else{var H=Object.prototype.toString.call(M),Q=Object.prototype.toString.call(D);if(H===Q&&(Q==="[object Object]"||Q==="[object Array]")){H=[gI+"  ".repeat(g)+E,Q==="[object Array]"?"Array":""],u.push(H),Q=u.length,R6(M,D,u,g+1)?Q===u.length&&(H[1]="Referentially unequal but deeply equal objects. Consider memoization."):S=!1;continue}}else if(typeof M=="function"&&typeof D=="function"&&M.name===D.name&&M.length===D.length&&(H=Function.prototype.toString.call(M),Q=Function.prototype.toString.call(D),H===Q)){M=D.name===""?"() => {}":D.name+"() {}",u.push([gI+"  ".repeat(g)+E,M+" Referentially unequal function closure. Consider memoization."]);continue}}us(E,M,u,g,IE),us(E,D,u,g,LE)}S=!1}}else u.push([LE+"  ".repeat(g)+E,"…"]),S=!1;return S}function bo(r){Pn=r&63?"Blocking":r&64?"Gesture":r&4194176?"Transition":r&62914560?"Suspense":r&2080374784?"Idle":"Other"}function cs(r,a,u,g){Ir&&(j0.start=a,j0.end=u,fd.color="warning",fd.tooltipText=g,fd.properties=null,(r=r._debugTask)?r.run(performance.measure.bind(performance,g,j0)):performance.measure(g,j0))}function Kg(r,a,u){cs(r,a,u,"Reconnect")}function Zg(r,a,u,g,S){var E=le(r);if(E!==null&&Ir){var M=r.alternate,D=r.actualDuration;if(M===null||M.child!==r.child)for(var H=r.child;H!==null;H=H.sibling)D-=H.actualDuration;g=.5>D?g?"tertiary-light":"primary-light":10>D?g?"tertiary":"primary":100>D?g?"tertiary-dark":"primary-dark":"error";var Q=r.memoizedProps;D=r._debugTask,Q!==null&&M!==null&&M.memoizedProps!==Q?(H=[Hce],Q=R6(M.memoizedProps,Q,H,0),1<H.length&&(Q&&!$0&&(M.lanes&S)===0&&100<r.actualDuration?($0=!0,H[0]=qce,fd.color="warning",fd.tooltipText=yI):(fd.color=g,fd.tooltipText=E),fd.properties=H,j0.start=a,j0.end=u,D!=null?D.run(performance.measure.bind(performance,"​"+E,j0)):performance.measure("​"+E,j0))):D!=null?D.run(console.timeStamp.bind(console,E,a,u,Fs,void 0,g)):console.timeStamp(E,a,u,Fs,void 0,g)}}function Jg(r,a,u,g){if(Ir){var S=le(r);if(S!==null){for(var E=null,M=[],D=0;D<g.length;D++){var H=g[D];E==null&&H.source!==null&&(E=H.source._debugTask),H=H.value,M.push(["Error",typeof H=="object"&&H!==null&&typeof H.message=="string"?String(H.message):String(H)])}r.key!==null&&us("key",r.key,M,0,""),r.memoizedProps!==null&&e4(r.memoizedProps,M,0,""),E==null&&(E=r._debugTask),r={start:a,end:u,detail:{devtools:{color:"error",track:Fs,tooltipText:r.tag===13?"Hydration failed":"Error boundary caught an error",properties:M}}},E?E.run(performance.measure.bind(performance,"​"+S,r)):performance.measure("​"+S,r)}}}function fs(r,a,u,g,S){if(S!==null){if(Ir){var E=le(r);if(E!==null){g=[];for(var M=0;M<S.length;M++){var D=S[M].value;g.push(["Error",typeof D=="object"&&D!==null&&typeof D.message=="string"?String(D.message):String(D)])}r.key!==null&&us("key",r.key,g,0,""),r.memoizedProps!==null&&e4(r.memoizedProps,g,0,""),a={start:a,end:u,detail:{devtools:{color:"error",track:Fs,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=le(r),E!==null&&Ir&&(S=1>g?"secondary-light":100>g?"secondary":500>g?"secondary-dark":"error",(r=r._debugTask)?r.run(console.timeStamp.bind(console,E,a,u,Fs,void 0,S)):console.timeStamp(E,a,u,Fs,void 0,S))}function I8(r,a,u,g){if(Ir&&!(a<=r)){var S=(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,Pn,Vn,S)):console.timeStamp(u,r,a,Pn,Vn,S)}}function _6(r,a,u,g){!Ir||a<=r||(u=(u&738197653)===u?"tertiary-dark":"primary-dark",g?g.run(console.timeStamp.bind(console,"Prewarm",r,a,Pn,Vn,u)):console.timeStamp("Prewarm",r,a,Pn,Vn,u))}function D6(r,a,u,g){!Ir||a<=r||(u=(u&738197653)===u?"tertiary-dark":"primary-dark",g?g.run(console.timeStamp.bind(console,"Suspended",r,a,Pn,Vn,u)):console.timeStamp("Suspended",r,a,Pn,Vn,u))}function L8(r,a,u,g,S,E){if(Ir&&!(a<=r)){u=[];for(var M=0;M<g.length;M++){var D=g[M].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:Pn,trackGroup:Vn,tooltipText:S?"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){!Ir||a<=r||(g?g.run(console.timeStamp.bind(console,"Errored",r,a,Pn,Vn,"error")):console.timeStamp("Errored",r,a,Pn,Vn,"error"))}function B8(r,a,u,g){!Ir||a<=r||(g?g.run(console.timeStamp.bind(console,u,r,a,Pn,Vn,"secondary-light")):console.timeStamp(u,r,a,Pn,Vn,"secondary-light"))}function k6(r,a,u,g,S){if(Ir&&!(a<=r)){for(var E=[],M=0;M<u.length;M++){var D=u[M].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:Pn,trackGroup:Vn,tooltipText:g?"Remaining Effects Errored":"Commit Errored",properties:E}}},S?S.run(performance.measure.bind(performance,"Errored",r)):performance.measure("Errored",r)}}function n4(r,a,u){!Ir||a<=r||console.timeStamp("Animating",r,a,Pn,Vn,"secondary-dark")}function e0(){for(var r=Iy,a=cA=Iy=0;a<r;){var u=Gs[a];Gs[a++]=null;var g=Gs[a];Gs[a++]=null;var S=Gs[a];Gs[a++]=null;var E=Gs[a];if(Gs[a++]=null,g!==null&&S!==null){var M=g.pending;M===null?S.next=S:(S.next=M.next,M.next=S),g.pending=S}E!==0&&i4(u,S,E)}}function yc(r,a,u,g){Gs[Iy++]=r,Gs[Iy++]=a,Gs[Iy++]=u,Gs[Iy++]=g,cA|=g,r.lanes|=g,r=r.alternate,r!==null&&(r.lanes|=g)}function r4(r,a,u,g){return yc(r,a,u,g),Kh(r)}function Fi(r,a){return yc(r,null,null,a),Kh(r)}function i4(r,a,u){r.lanes|=u;var g=r.alternate;g!==null&&(g.lanes|=u);for(var S=!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&QS||(S=!0)),r=E,E=E.return;return r.tag===3?(E=r.stateNode,S&&a!==null&&(S=31-Ji(u),r=E.hiddenUpdates,g=r[S],g===null?r[S]=[a]:g.push(a),a.lane=u|536870912),E):null}function Kh(r){if(w5>ofe)throw zm=w5=0,T5=HA=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.");zm>lfe&&(zm=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&&oS(r);for(var a=r,u=a.return;u!==null;)a.alternate===null&&(a.flags&4098)!==0&&oS(r),a=u,u=a.return;return a.tag===3?a.stateNode:null}function vc(r){if(Ys===null)return r;var a=Ys(r);return a===void 0?r:a.current}function e1(r){if(Ys===null)return r;var a=Ys(r);return a===void 0?r!=null&&typeof r.render=="function"&&(a=vc(r.render),r.render!==a)?(a={$$typeof:Iu,render:a},r.displayName!==void 0&&(a.displayName=r.displayName),a):r:a.current}function Rf(r,a){if(Ys===null)return!1;var u=r.elementType;a=a.type;var g=!1,S=typeof a=="object"&&a!==null?a.$$typeof:null;switch(r.tag){case 1:typeof a=="function"&&(g=!0);break;case 0:(typeof a=="function"||S===si)&&(g=!0);break;case 11:(S===Iu||S===si)&&(g=!0);break;case 14:case 15:(S===ld||S===si)&&(g=!0);break;default:return!1}return!!(g&&(r=Ys(u),r!==void 0&&r===Ys(a)))}function N6(r){Ys!==null&&typeof WeakSet=="function"&&(Ly===null&&(Ly=new WeakSet),Ly.add(r))}function z6(r,a,u){do{var g=r,S=g.alternate,E=g.child,M=g.sibling,D=g.tag;g=g.type;var H=null;switch(D){case 0:case 15:case 1:H=g;break;case 11:H=g.render}if(Ys===null)throw Error("Expected resolveFamily to be set during hot reload.");var Q=!1;if(g=!1,H!==null&&(H=Ys(H),H!==void 0&&(u.has(H)?g=!0:a.has(H)&&(D===1?g=!0:Q=!0))),Ly!==null&&(Ly.has(r)||S!==null&&Ly.has(S))&&(g=!0),g&&(r._debugNeedsRemount=!0),(g||Q)&&(S=Fi(r,2),S!==null&&Pr(S,r,2)),E===null||g||z6(E,a,u),M===null)break;r=M}while(!0)}function V8(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,vI||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function t1(r){return r=r.prototype,!(!r||!r.isReactComponent)}function ds(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=vc(r.type);break;case 1:u.type=vc(r.type);break;case 11:u.type=e1(r.type)}return u}function t0(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 _f(r,a,u,g,S,E){var M=0,D=r;if(typeof r=="function")t1(r)&&(M=1),D=vc(D);else if(typeof r=="string")M=pe(),M=On(r,u,M)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case NS:return a=w(31,u,a,S),a.elementType=NS,a.lanes=E,a;case Zi:return hs(u.children,S,E,a);case I0:M=8,S|=so,S|=Uu;break;case hy:return r=u,g=S,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|vn),a.elementType=hy,a.lanes=E,a.stateNode={effectDuration:0,passiveEffectDuration:0},a;case lo:return a=w(13,u,a,S),a.elementType=lo,a.lanes=E,a;case my:return a=w(19,u,a,S),a.elementType=my,a.lanes=E,a;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case Bl:M=10;break e;case py:M=9;break e;case Iu:M=11,D=e1(D);break e;case ld:M=14;break e;case si:M=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":Ti(r)?u="array":r!==void 0&&r.$$typeof===ol?(u="<"+(ue(r.type)||"Unknown")+" />",D=" Did you accidentally export a JSX literal instead of a component?"):u=typeof r,(M=g?re(g):null)&&(D+=`

Check the render method of \``+M+"`."),M=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(M,u,a,S),a.elementType=r,a.type=D,a.lanes=E,a._debugOwner=g,a}function n1(r,a,u){return a=_f(r.type,r.key,r.props,r._owner,a,u),a._debugOwner=r._owner,a._debugStack=r._debugStack,a._debugTask=r._debugTask,a}function hs(r,a,u,g){return r=w(7,r,g,a),r.lanes=u,r}function r1(r,a,u){return r=w(6,r,null,a),r.lanes=u,r}function a4(r){var a=w(18,null,null,Jt);return a.stateNode=r,a}function Zh(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 Ea(r,a){if(typeof r=="object"&&r!==null){var u=fA.get(r);return u!==void 0?u:(a={value:r,source:a,stack:Fe(a)},fA.set(r,a),a)}return{value:r,source:a,stack:Fe(a)}}function ps(r,a){bc(),By[Vy++]=KS,By[Vy++]=BE,BE=r,KS=a}function o4(r,a,u){bc(),Xs[Ws++]=hd,Xs[Ws++]=pd,Xs[Ws++]=bm,bm=r;var g=hd;r=pd;var S=32-Ji(g)-1;g&=~(1<<S),u+=1;var E=32-Ji(a)+S;if(30<E){var M=S-S%5;E=(g&(1<<M)-1).toString(32),g>>=M,S-=M,hd=1<<32-Ji(a)+S|u<<S|g,pd=E+r}else hd=1<<E|u<<S|g,pd=r}function i1(r){bc(),r.return!==null&&(ps(r,1),o4(r,1,0))}function l4(r){for(;r===BE;)BE=By[--Vy],By[Vy]=null,KS=By[--Vy],By[Vy]=null;for(;r===bm;)bm=Xs[--Ws],Xs[Ws]=null,pd=Xs[--Ws],Xs[Ws]=null,hd=Xs[--Ws],Xs[Ws]=null}function I6(){return bc(),bm!==null?{id:hd,overflow:pd}:null}function L6(r,a){bc(),Xs[Ws++]=hd,Xs[Ws++]=pd,Xs[Ws++]=bm,hd=a.id,pd=a.overflow,bm=r}function bc(){zn||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Df(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=Df(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 Ga(){zn&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Sc(r,a){Fc||(r=Df(r,0),r.serverProps=null,a!==null&&(a=pE(a),r.serverTail.push(a)))}function vu(r){var a=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,u="",g=Pl;throw g!==null&&(Pl=null,u=jh(g)),ms(Ea(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)),dA}function s4(r){var a=r.stateNode,u=r.type,g=r.memoizedProps;switch(a[ta]=r,a[da]=g,Vc(u,g),u){case"dialog":cn("cancel",a),cn("close",a);break;case"iframe":case"object":case"embed":cn("load",a);break;case"video":case"audio":for(u=0;u<A5.length;u++)cn(A5[u],a);break;case"source":cn("error",a);break;case"img":case"image":case"link":cn("error",a),cn("load",a);break;case"details":cn("toggle",a);break;case"input":tr("input",g),cn("invalid",a),vf(a,g),v6(a,g.value,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name,!0);break;case"option":$b(a,g);break;case"select":tr("select",g),cn("invalid",a),bf(a,g);break;case"textarea":tr("textarea",g),cn("invalid",a),Sf(a,g),xf(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||Xp(a.textContent,u)?(g.popover!=null&&(cn("beforetoggle",a),cn("toggle",a)),g.onScroll!=null&&cn("scroll",a),g.onScrollEnd!=null&&cn("scrollend",a),g.onClick!=null&&(a.onclick=qi),a=!0):a=!1,a||vu(r,!0)}function u4(r){for(Na=r.return;Na;)switch(Na.tag){case 5:case 31:case 13:Qs=!1;return;case 27:case 3:Qs=!0;return;default:Na=Na.return}}function kf(r){if(r!==Na)return!1;if(!zn)return u4(r),zn=!0,!1;var a=r.tag,u;if((u=a!==3&&a!==27)&&((u=a===5)&&(u=r.type,u=!(u!=="form"&&u!=="button")||Qp(r.type,r.memoizedProps)),u=!u),u&&Lr){for(u=Lr;u;){var g=Df(r,0),S=pE(u);g.serverTail.push(S),u=S.type==="Suspense"?Pc(u):Mo(u.nextSibling)}vu(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.");Lr=Pc(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.");Lr=Pc(r)}else a===27?(a=Lr,zu(r.type)?(r=tC,tC=null,Lr=r):Lr=a):Lr=Na?Mo(r.stateNode.nextSibling):null;return!0}function bu(){Lr=Na=null,Fc=zn=!1}function c4(){var r=q0;return r!==null&&(Lo===null?Lo=r:Lo.push.apply(Lo,r),q0=null),r}function ms(r){q0===null?q0=[r]:q0.push(r)}function Jh(){var r=Pl;if(r!==null){Pl=null;for(var a=jh(r);0<r.children.length;)r=r.children[0];$e(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 xc(){Uy=VE=null,Py=!1}function gs(r,a,u){W(hA,a._currentValue,r),a._currentValue=u,W(pA,a._currentRenderer,r),a._currentRenderer!==void 0&&a._currentRenderer!==null&&a._currentRenderer!==SI&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),a._currentRenderer=SI}function ys(r,a){r._currentValue=hA.current;var u=pA.current;oe(pA,a),r._currentRenderer=u,oe(hA,a)}function Su(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 Ec(r,a,u,g){var S=r.child;for(S!==null&&(S.return=r);S!==null;){var E=S.dependencies;if(E!==null){var M=S.child;E=E.firstContext;e:for(;E!==null;){var D=E;E=S;for(var H=0;H<a.length;H++)if(D.context===a[H]){E.lanes|=u,D=E.alternate,D!==null&&(D.lanes|=u),Su(E.return,u,r),g||(M=null);break e}E=D.next}}else if(S.tag===18){if(M=S.return,M===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");M.lanes|=u,E=M.alternate,E!==null&&(E.lanes|=u),Su(M,u,r),M=null}else M=S.child;if(M!==null)M.return=S;else for(M=S;M!==null;){if(M===r){M=null;break}if(S=M.sibling,S!==null){S.return=M.return,M=S;break}M=M.return}S=M}}function wc(r,a,u,g){r=null;for(var S=a,E=!1;S!==null;){if(!E){if((S.flags&524288)!==0)E=!0;else if((S.flags&262144)!==0)break}if(S.tag===10){var M=S.alternate;if(M===null)throw Error("Should have a current fiber. This is a bug in React.");if(M=M.memoizedProps,M!==null){var D=S.type;ko(S.pendingProps.value,M.value)||(r!==null?r.push(D):r=[D])}}else if(S===sm.current){if(M=S.alternate,M===null)throw Error("Should have a current fiber. This is a bug in React.");M.memoizedState.memoizedState!==S.memoizedState.memoizedState&&(r!==null?r.push(_5):r=[_5])}S=S.return}r!==null&&Ec(a,r,u,g),a.flags|=262144}function ep(r){for(r=r.firstContext;r!==null;){if(!ko(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function So(r){VE=r,Uy=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function Sr(r){return Py&&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(VE,r)}function tp(r,a){return VE===null&&So(r),f4(r,a)}function f4(r,a){var u=a._currentValue;if(a={context:a,memoizedValue:u,next:null},Uy===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().");Uy=a,r.dependencies={lanes:0,firstContext:a,_debugThenableState:null},r.flags|=524288}else Uy=Uy.next=a;return u}function d4(){return{controller:new Yce,data:new Map,refCount:0}}function Nf(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 np(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&&Xce(Wce,function(){r.controller.abort()})}function Cl(r,a,u){(r&127)!==0?0>Gc&&(Gc=Ii(),JS=UE(a),mA=a,u!=null&&(gA=le(u)),(qn&(ra|Hl))!==ma&&(ui=!0,G0=ZS),r=C0(),a=A0(),r!==$y||a!==e5?$y=-1.1:a!==null&&(G0=ZS),Em=r,e5=a):(r&4194048)!==0&&0>Ks&&(Ks=Ii(),t5=UE(a),xI=a,u!=null&&(EI=le(u)),0>vd)&&(r=C0(),a=A0(),(r!==X0||a!==wm)&&(X0=-1.1),Y0=r,wm=a)}function B6(r){if(0>Gc){Gc=Ii(),JS=r._debugTask!=null?r._debugTask:null,(qn&(ra|Hl))!==ma&&(G0=ZS);var a=C0(),u=A0();a!==$y||u!==e5?$y=-1.1:u!==null&&(G0=ZS),Em=a,e5=u}0>Ks&&(Ks=Ii(),t5=r._debugTask!=null?r._debugTask:null,0>vd)&&(r=C0(),a=A0(),(r!==X0||a!==wm)&&(X0=-1.1),Y0=r,wm=a)}function Ol(){var r=Sm;return Sm=0,r}function Ya(r){var a=Sm;return Sm=r,a}function Tc(r){var a=Sm;return Sm+=r,a}function wa(){Wt=Pt=-1.1}function ki(){var r=Pt;return Pt=-1.1,r}function Ta(r){0<=r&&(Pt=r)}function xo(){var r=ti;return ti=-0,r}function Eo(r){0<=r&&(ti=r)}function Qo(){var r=$r;return $r=null,r}function ia(){var r=ui;return ui=!1,r}function a1(r){No=Ii(),0>r.actualStartTime&&(r.actualStartTime=No)}function n0(r){if(0<=No){var a=Ii()-No;r.actualDuration+=a,r.selfBaseDuration=a,No=-1}}function zf(r){if(0<=No){var a=Ii()-No;r.actualDuration+=a,No=-1}}function vs(){if(0<=No){var r=Ii(),a=r-No;No=-1,Sm+=a,ti+=a,Wt=r}}function Xa(r){$r===null&&($r=[]),$r.push(r),gd===null&&(gd=[]),gd.push(r)}function Ko(){No=Ii(),0>Pt&&(Pt=No)}function wo(r){for(var a=r.child;a;)r.actualDuration+=a.actualDuration,a=a.sibling}function V6(r,a){if(r5===null){var u=r5=[];vA=0,Tm=jn(),jy={status:"pending",value:void 0,then:function(g){u.push(g)}}}return vA++,a.then(rp,rp),a}function rp(){if(--vA===0&&(-1<Ks||(vd=-1.1),r5!==null)){jy!==null&&(jy.status="fulfilled");var r=r5;r5=null,Tm=0,jy=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function If(r,a){var u=[],g={status:"pending",value:null,reason:null,then:function(S){u.push(S)}};return r.then(function(){g.status="fulfilled",g.value=a;for(var S=0;S<u.length;S++)(0,u[S])(a)},function(S){for(g.status="rejected",g.reason=S,S=0;S<u.length;S++)(0,u[S])(void 0)}),g}function ip(){var r=Am.current;return r!==null?r:Tr.pooledCache}function ap(r,a){a===null?W(Am,Am.current,r):W(Am,a.pool,r)}function o1(){var r=ip();return r===null?null:{parent:zi._currentValue,pool:r}}function h4(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function To(r){return r=r.status,r==="fulfilled"||r==="rejected"}function Lf(r,a,u){qe.actQueue!==null&&(qe.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(qi,qi),a=u),a._debugInfo===void 0){r=performance.now(),g=a.displayName;var S={name:typeof g=="string"?g:"Promise",start:r,end:r,value:a};a._debugInfo=[{awaited:S}],a.status!=="fulfilled"&&a.status!=="rejected"&&(r=function(){S.end=performance.now()},a.then(r,r))}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,r0(r),r;default:if(typeof a.status=="string")a.then(qi,qi);else{if(r=Tr,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 M=a;M.status="fulfilled",M.value=E}},function(E){if(a.status==="pending"){var M=a;M.status="rejected",M.reason=E}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,r0(r),r}throw Om=a,c5=!0,Hy}}function Ao(r){try{return efe(r)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Om=a,c5=!0,Hy):a}}function op(){if(Om===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var r=Om;return Om=null,c5=!1,r}function r0(r){if(r===Hy||r===YE)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 dr(r){var a=bn;return r!=null&&(bn=a===null?r:a.concat(r)),a}function Wa(){var r=bn;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 Ml(r,a,u){for(var g=Object.keys(r.props),S=0;S<g.length;S++){var E=g[S];if(E!=="children"&&E!=="key"){a===null&&(a=n1(r,u.mode,0),a._debugInfo=bn,a.return=u),$e(a,function(M){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",M)},E);break}}}function Co(r){var a=f5;return f5+=1,qy===null&&(qy=h4()),Lf(qy,r,a)}function Qa(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function bs(r,a){throw a.$$typeof===kS?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 lp(r,a){var u=Wa();u!==null?u.run(bs.bind(null,r,a)):bs(r,a)}function l1(r,a){var u=le(r)||"Component";jI[u]||(jI[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 i0(r,a){var u=Wa();u!==null?u.run(l1.bind(null,r,a)):l1(r,a)}function p4(r,a){var u=le(r)||"Component";HI[u]||(HI[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=Wa();u!==null?u.run(p4.bind(null,r,a)):p4(r,a)}function xr(r){function a(de,ye){if(r){var Se=de.deletions;Se===null?(de.deletions=[ye],de.flags|=16):Se.push(ye)}}function u(de,ye){if(!r)return null;for(;ye!==null;)a(de,ye),ye=ye.sibling;return null}function g(de){for(var ye=new Map;de!==null;)de.key!==null?ye.set(de.key,de):ye.set(de.index,de),de=de.sibling;return ye}function S(de,ye){return de=ds(de,ye),de.index=0,de.sibling=null,de}function E(de,ye,Se){return de.index=Se,r?(Se=de.alternate,Se!==null?(Se=Se.index,Se<ye?(de.flags|=67108866,ye):Se):(de.flags|=67108866,ye)):(de.flags|=1048576,ye)}function M(de){return r&&de.alternate===null&&(de.flags|=67108866),de}function D(de,ye,Se,Ye){return ye===null||ye.tag!==6?(ye=r1(Se,de.mode,Ye),ye.return=de,ye._debugOwner=de,ye._debugTask=de._debugTask,ye._debugInfo=bn,ye):(ye=S(ye,Se),ye.return=de,ye._debugInfo=bn,ye)}function H(de,ye,Se,Ye){var xt=Se.type;return xt===Zi?(ye=we(de,ye,Se.props.children,Ye,Se.key),Ml(Se,ye,de),ye):ye!==null&&(ye.elementType===xt||Rf(ye,Se)||typeof xt=="object"&&xt!==null&&xt.$$typeof===si&&Ao(xt)===ye.type)?(ye=S(ye,Se.props),Qa(ye,Se),ye.return=de,ye._debugOwner=Se._owner,ye._debugInfo=bn,ye):(ye=n1(Se,de.mode,Ye),Qa(ye,Se),ye.return=de,ye._debugInfo=bn,ye)}function Q(de,ye,Se,Ye){return ye===null||ye.tag!==4||ye.stateNode.containerInfo!==Se.containerInfo||ye.stateNode.implementation!==Se.implementation?(ye=Zh(Se,de.mode,Ye),ye.return=de,ye._debugInfo=bn,ye):(ye=S(ye,Se.children||[]),ye.return=de,ye._debugInfo=bn,ye)}function we(de,ye,Se,Ye,xt){return ye===null||ye.tag!==7?(ye=hs(Se,de.mode,Ye,xt),ye.return=de,ye._debugOwner=de,ye._debugTask=de._debugTask,ye._debugInfo=bn,ye):(ye=S(ye,Se),ye.return=de,ye._debugInfo=bn,ye)}function Ce(de,ye,Se){if(typeof ye=="string"&&ye!==""||typeof ye=="number"||typeof ye=="bigint")return ye=r1(""+ye,de.mode,Se),ye.return=de,ye._debugOwner=de,ye._debugTask=de._debugTask,ye._debugInfo=bn,ye;if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case ol:return Se=n1(ye,de.mode,Se),Qa(Se,ye),Se.return=de,de=dr(ye._debugInfo),Se._debugInfo=bn,bn=de,Se;case z0:return ye=Zh(ye,de.mode,Se),ye.return=de,ye._debugInfo=bn,ye;case si:var Ye=dr(ye._debugInfo);return ye=Ao(ye),de=Ce(de,ye,Se),bn=Ye,de}if(Ti(ye)||se(ye))return Se=hs(ye,de.mode,Se,null),Se.return=de,Se._debugOwner=de,Se._debugTask=de._debugTask,de=dr(ye._debugInfo),Se._debugInfo=bn,bn=de,Se;if(typeof ye.then=="function")return Ye=dr(ye._debugInfo),de=Ce(de,Co(ye),Se),bn=Ye,de;if(ye.$$typeof===Bl)return Ce(de,tp(de,ye),Se);lp(de,ye)}return typeof ye=="function"&&i0(de,ye),typeof ye=="symbol"&&mi(de,ye),null}function me(de,ye,Se,Ye){var xt=ye!==null?ye.key:null;if(typeof Se=="string"&&Se!==""||typeof Se=="number"||typeof Se=="bigint")return xt!==null?null:D(de,ye,""+Se,Ye);if(typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case ol:return Se.key===xt?(xt=dr(Se._debugInfo),de=H(de,ye,Se,Ye),bn=xt,de):null;case z0:return Se.key===xt?Q(de,ye,Se,Ye):null;case si:return xt=dr(Se._debugInfo),Se=Ao(Se),de=me(de,ye,Se,Ye),bn=xt,de}if(Ti(Se)||se(Se))return xt!==null?null:(xt=dr(Se._debugInfo),de=we(de,ye,Se,Ye,null),bn=xt,de);if(typeof Se.then=="function")return xt=dr(Se._debugInfo),de=me(de,ye,Co(Se),Ye),bn=xt,de;if(Se.$$typeof===Bl)return me(de,ye,tp(de,Se),Ye);lp(de,Se)}return typeof Se=="function"&&i0(de,Se),typeof Se=="symbol"&&mi(de,Se),null}function Ve(de,ye,Se,Ye,xt){if(typeof Ye=="string"&&Ye!==""||typeof Ye=="number"||typeof Ye=="bigint")return de=de.get(Se)||null,D(ye,de,""+Ye,xt);if(typeof Ye=="object"&&Ye!==null){switch(Ye.$$typeof){case ol:return Se=de.get(Ye.key===null?Se:Ye.key)||null,de=dr(Ye._debugInfo),ye=H(ye,Se,Ye,xt),bn=de,ye;case z0:return de=de.get(Ye.key===null?Se:Ye.key)||null,Q(ye,de,Ye,xt);case si:var ln=dr(Ye._debugInfo);return Ye=Ao(Ye),ye=Ve(de,ye,Se,Ye,xt),bn=ln,ye}if(Ti(Ye)||se(Ye))return Se=de.get(Se)||null,de=dr(Ye._debugInfo),ye=we(ye,Se,Ye,xt,null),bn=de,ye;if(typeof Ye.then=="function")return ln=dr(Ye._debugInfo),ye=Ve(de,ye,Se,Co(Ye),xt),bn=ln,ye;if(Ye.$$typeof===Bl)return Ve(de,ye,Se,tp(ye,Ye),xt);lp(ye,Ye)}return typeof Ye=="function"&&i0(ye,Ye),typeof Ye=="symbol"&&mi(ye,Ye),null}function gt(de,ye,Se,Ye){if(typeof Se!="object"||Se===null)return Ye;switch(Se.$$typeof){case ol:case z0:x(de,ye,Se);var xt=Se.key;if(typeof xt!="string")break;if(Ye===null){Ye=new Set,Ye.add(xt);break}if(!Ye.has(xt)){Ye.add(xt);break}$e(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.",xt)});break;case si:Se=Ao(Se),gt(de,ye,Se,Ye)}return Ye}function wt(de,ye,Se,Ye){for(var xt=null,ln=null,Ut=null,Dt=ye,gn=ye=0,Br=null;Dt!==null&&gn<Se.length;gn++){Dt.index>gn?(Br=Dt,Dt=null):Br=Dt.sibling;var Oi=me(de,Dt,Se[gn],Ye);if(Oi===null){Dt===null&&(Dt=Br);break}xt=gt(de,Oi,Se[gn],xt),r&&Dt&&Oi.alternate===null&&a(de,Dt),ye=E(Oi,ye,gn),Ut===null?ln=Oi:Ut.sibling=Oi,Ut=Oi,Dt=Br}if(gn===Se.length)return u(de,Dt),zn&&ps(de,gn),ln;if(Dt===null){for(;gn<Se.length;gn++)Dt=Ce(de,Se[gn],Ye),Dt!==null&&(xt=gt(de,Dt,Se[gn],xt),ye=E(Dt,ye,gn),Ut===null?ln=Dt:Ut.sibling=Dt,Ut=Dt);return zn&&ps(de,gn),ln}for(Dt=g(Dt);gn<Se.length;gn++)Br=Ve(Dt,de,gn,Se[gn],Ye),Br!==null&&(xt=gt(de,Br,Se[gn],xt),r&&Br.alternate!==null&&Dt.delete(Br.key===null?gn:Br.key),ye=E(Br,ye,gn),Ut===null?ln=Br:Ut.sibling=Br,Ut=Br);return r&&Dt.forEach(function(Cd){return a(de,Cd)}),zn&&ps(de,gn),ln}function _r(de,ye,Se,Ye){if(Se==null)throw Error("An iterable object provided no iterator.");for(var xt=null,ln=null,Ut=ye,Dt=ye=0,gn=null,Br=null,Oi=Se.next();Ut!==null&&!Oi.done;Dt++,Oi=Se.next()){Ut.index>Dt?(gn=Ut,Ut=null):gn=Ut.sibling;var Cd=me(de,Ut,Oi.value,Ye);if(Cd===null){Ut===null&&(Ut=gn);break}Br=gt(de,Cd,Oi.value,Br),r&&Ut&&Cd.alternate===null&&a(de,Ut),ye=E(Cd,ye,Dt),ln===null?xt=Cd:ln.sibling=Cd,ln=Cd,Ut=gn}if(Oi.done)return u(de,Ut),zn&&ps(de,Dt),xt;if(Ut===null){for(;!Oi.done;Dt++,Oi=Se.next())Ut=Ce(de,Oi.value,Ye),Ut!==null&&(Br=gt(de,Ut,Oi.value,Br),ye=E(Ut,ye,Dt),ln===null?xt=Ut:ln.sibling=Ut,ln=Ut);return zn&&ps(de,Dt),xt}for(Ut=g(Ut);!Oi.done;Dt++,Oi=Se.next())gn=Ve(Ut,de,Dt,Oi.value,Ye),gn!==null&&(Br=gt(de,gn,Oi.value,Br),r&&gn.alternate!==null&&Ut.delete(gn.key===null?Dt:gn.key),ye=E(gn,ye,Dt),ln===null?xt=gn:ln.sibling=gn,ln=gn);return r&&Ut.forEach(function(Tfe){return a(de,Tfe)}),zn&&ps(de,Dt),xt}function Un(de,ye,Se,Ye){if(typeof Se=="object"&&Se!==null&&Se.type===Zi&&Se.key===null&&(Ml(Se,null,de),Se=Se.props.children),typeof Se=="object"&&Se!==null){switch(Se.$$typeof){case ol:var xt=dr(Se._debugInfo);e:{for(var ln=Se.key;ye!==null;){if(ye.key===ln){if(ln=Se.type,ln===Zi){if(ye.tag===7){u(de,ye.sibling),Ye=S(ye,Se.props.children),Ye.return=de,Ye._debugOwner=Se._owner,Ye._debugInfo=bn,Ml(Se,Ye,de),de=Ye;break e}}else if(ye.elementType===ln||Rf(ye,Se)||typeof ln=="object"&&ln!==null&&ln.$$typeof===si&&Ao(ln)===ye.type){u(de,ye.sibling),Ye=S(ye,Se.props),Qa(Ye,Se),Ye.return=de,Ye._debugOwner=Se._owner,Ye._debugInfo=bn,de=Ye;break e}u(de,ye);break}else a(de,ye);ye=ye.sibling}Se.type===Zi?(Ye=hs(Se.props.children,de.mode,Ye,Se.key),Ye.return=de,Ye._debugOwner=de,Ye._debugTask=de._debugTask,Ye._debugInfo=bn,Ml(Se,Ye,de),de=Ye):(Ye=n1(Se,de.mode,Ye),Qa(Ye,Se),Ye.return=de,Ye._debugInfo=bn,de=Ye)}return de=M(de),bn=xt,de;case z0:e:{for(xt=Se,Se=xt.key;ye!==null;){if(ye.key===Se)if(ye.tag===4&&ye.stateNode.containerInfo===xt.containerInfo&&ye.stateNode.implementation===xt.implementation){u(de,ye.sibling),Ye=S(ye,xt.children||[]),Ye.return=de,de=Ye;break e}else{u(de,ye);break}else a(de,ye);ye=ye.sibling}Ye=Zh(xt,de.mode,Ye),Ye.return=de,de=Ye}return M(de);case si:return xt=dr(Se._debugInfo),Se=Ao(Se),de=Un(de,ye,Se,Ye),bn=xt,de}if(Ti(Se))return xt=dr(Se._debugInfo),de=wt(de,ye,Se,Ye),bn=xt,de;if(se(Se)){if(xt=dr(Se._debugInfo),ln=se(Se),typeof ln!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var Ut=ln.call(Se);return Ut===Se?(de.tag!==0||Object.prototype.toString.call(de.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Ut)!=="[object Generator]")&&(PI||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."),PI=!0):Se.entries!==ln||EA||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),EA=!0),de=_r(de,ye,Ut,Ye),bn=xt,de}if(typeof Se.then=="function")return xt=dr(Se._debugInfo),de=Un(de,ye,Co(Se),Ye),bn=xt,de;if(Se.$$typeof===Bl)return Un(de,ye,tp(de,Se),Ye);lp(de,Se)}return typeof Se=="string"&&Se!==""||typeof Se=="number"||typeof Se=="bigint"?(xt=""+Se,ye!==null&&ye.tag===6?(u(de,ye.sibling),Ye=S(ye,xt),Ye.return=de,de=Ye):(u(de,ye),Ye=r1(xt,de.mode,Ye),Ye.return=de,Ye._debugOwner=de,Ye._debugTask=de._debugTask,Ye._debugInfo=bn,de=Ye),M(de)):(typeof Se=="function"&&i0(de,Se),typeof Se=="symbol"&&mi(de,Se),u(de,ye))}return function(de,ye,Se,Ye){var xt=bn;bn=null;try{f5=0;var ln=Un(de,ye,Se,Ye);return qy=null,ln}catch(Br){if(Br===Hy||Br===YE)throw Br;var Ut=w(29,Br,null,de.mode);Ut.lanes=Ye,Ut.return=de;var Dt=Ut._debugInfo=bn;if(Ut._debugOwner=de._debugOwner,Ut._debugTask=de._debugTask,Dt!=null){for(var gn=Dt.length-1;0<=gn;gn--)if(typeof Dt[gn].stack=="string"){Ut._debugOwner=Dt[gn],Ut._debugTask=Dt[gn].debugTask;break}}return Ut}finally{bn=xt}}}function kn(r,a){var u=Ti(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 Ss(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ka(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:FI,payload:null,callback:null,next:null}}function Aa(r,a,u){var g=r.updateQueue;if(g===null)return null;if(g=g.shared,TA===g&&!XI){var S=le(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`,S),XI=!0}return(qn&ra)!==ma?(S=g.pending,S===null?a.next=a:(a.next=S.next,S.next=a),g.pending=a,a=Kh(r),i4(r,null,u),a):(yc(r,g,a,u),Kh(r))}function a0(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,pn(r,u)}}function sp(r,a){var u=r.updateQueue,g=r.alternate;if(g!==null&&(g=g.updateQueue,u===g)){var S=null,E=null;if(u=u.firstBaseUpdate,u!==null){do{var M={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};E===null?S=E=M:E=E.next=M,u=u.next}while(u!==null);E===null?S=E=a:E=E.next=a}else S=E=a;u={baseState:g.baseState,firstBaseUpdate:S,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 Es(){if(AA){var r=jy;if(r!==null)throw r}}function Rl(r,a,u,g){AA=!1;var S=r.updateQueue;W0=!1,TA=S.shared;var E=S.firstBaseUpdate,M=S.lastBaseUpdate,D=S.shared.pending;if(D!==null){S.shared.pending=null;var H=D,Q=H.next;H.next=null,M===null?E=Q:M.next=Q,M=H;var we=r.alternate;we!==null&&(we=we.updateQueue,D=we.lastBaseUpdate,D!==M&&(D===null?we.firstBaseUpdate=Q:D.next=Q,we.lastBaseUpdate=H))}if(E!==null){var Ce=S.baseState;M=0,we=Q=H=null,D=E;do{var me=D.lane&-536870913,Ve=me!==D.lane;if(Ve?(Sn&me)===me:(g&me)===me){me!==0&&me===Tm&&(AA=!0),we!==null&&(we=we.next={lane:0,tag:D.tag,payload:D.payload,callback:null,next:null});e:{me=r;var gt=D,wt=a,_r=u;switch(gt.tag){case GI:if(gt=gt.payload,typeof gt=="function"){Py=!0;var Un=gt.call(_r,Ce,wt);if(me.mode&so){lt(!0);try{gt.call(_r,Ce,wt)}finally{lt(!1)}}Py=!1,Ce=Un;break e}Ce=gt;break e;case wA:me.flags=me.flags&-65537|128;case FI:if(Un=gt.payload,typeof Un=="function"){if(Py=!0,gt=Un.call(_r,Ce,wt),me.mode&so){lt(!0);try{Un.call(_r,Ce,wt)}finally{lt(!1)}}Py=!1}else gt=Un;if(gt==null)break e;Ce=mn({},Ce,gt);break e;case YI:W0=!0}}me=D.callback,me!==null&&(r.flags|=64,Ve&&(r.flags|=8192),Ve=S.callbacks,Ve===null?S.callbacks=[me]:Ve.push(me))}else Ve={lane:me,tag:D.tag,payload:D.payload,callback:D.callback,next:null},we===null?(Q=we=Ve,H=Ce):we=we.next=Ve,M|=me;if(D=D.next,D===null){if(D=S.shared.pending,D===null)break;Ve=D,D=Ve.next,Ve.next=null,S.lastBaseUpdate=Ve,S.shared.pending=null}}while(!0);we===null&&(H=Ce),S.baseState=H,S.firstBaseUpdate=Q,S.lastBaseUpdate=we,E===null&&(S.shared.lanes=0),Z0|=M,r.lanes=M,r.memoizedState=Ce}TA=null}function s1(r,a){if(typeof r!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+r);r.call(a)}function up(r,a){var u=r.shared.hiddenCallbacks;if(u!==null)for(r.shared.hiddenCallbacks=null,r=0;r<u.length;r++)s1(u[r],a)}function u1(r,a){var u=r.callbacks;if(u!==null)for(r.callbacks=null,r=0;r<u.length;r++)s1(u[r],a)}function Ac(r,a){var u=Xc;W(WE,u,r),W(Fy,a,r),Xc=u|a.baseLanes}function _l(r){W(WE,Xc,r),W(Fy,Fy.current,r)}function ws(r){Xc=WE.current,oe(Fy,r),oe(WE,r)}function aa(r){var a=r.alternate;W(Ci,Ci.current&Gy,r),W($l,r,r),Zs===null&&(a===null||Fy.current!==null||a.memoizedState!==null)&&(Zs=r)}function cp(r){W(Ci,Ci.current,r),W($l,r,r),Zs===null&&(Zs=r)}function c1(r){r.tag===22?(W(Ci,Ci.current,r),W($l,r,r),Zs===null&&(Zs=r)):Oo(r)}function Oo(r){W(Ci,Ci.current,r),W($l,$l.current,r)}function oa(r){oe($l,r),Zs===r&&(Zs=null),oe(Ci,r)}function Ts(r){for(var a=r;a!==null;){if(a.tag===13){var u=a.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||gS(u)||ey(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 Bt(){var r=je;eu===null?eu=[r]:eu.push(r)}function it(){var r=je;if(eu!==null&&(xd++,eu[xd]!==r)){var a=le(on);if(!WI.has(a)&&(WI.add(a),eu!==null)){for(var u="",g=0;g<=xd;g++){var S=eu[g],E=g===xd?r:S;for(S=g+1+". "+S;30>S.length;)S+=" ";S+=E+`
`,u+=S}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 Bf(r){r==null||Ti(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.",je,typeof r)}function f1(){var r=le(on);KI.has(r)||(KI.add(r),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",r))}function Wr(){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.",je),!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`,je,"["+a.join(", ")+"]","["+r.join(", ")+"]");for(var u=0;u<a.length&&u<r.length;u++)if(!ko(r[u],a[u]))return!1;return!0}function Qr(r,a,u,g,S,E){bd=E,on=a,eu=r!==null?r._debugHookTypes:null,xd=-1,p5=r!==null&&r.type!==a.type,(Object.prototype.toString.call(u)==="[object AsyncFunction]"||Object.prototype.toString.call(u)==="[object AsyncGeneratorFunction]")&&(E=le(on),CA.has(E)||(CA.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,qe.H=r!==null&&r.memoizedState!==null?MA:eu!==null?ZI:OA,Rm=E=(a.mode&so)!==Jt;var M=bA(u,g,S);if(Rm=!1,Xy&&(M=Vf(a,u,g,S)),E){lt(!0);try{M=Vf(a,u,g,S)}finally{lt(!1)}}return d1(r,a),M}function d1(r,a){a._debugHookTypes=eu,a.dependencies===null?Sd!==null&&(a.dependencies={lanes:0,firstContext:null,_debugThenableState:Sd}):a.dependencies._debugThenableState=Sd,qe.H=m5;var u=wr!==null&&wr.next!==null;if(bd=0,eu=je=Li=wr=on=null,xd=-1,r!==null&&(r.flags&65011712)!==(a.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),KE=!1,h5=0,Sd=null,u)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");r===null||Bi||(r=r.dependencies,r!==null&&ep(r)&&(Bi=!0)),c5?(c5=!1,r=!0):r=!1,r&&(a=le(a)||"Unknown",QI.has(a)||CA.has(a)||(QI.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 Vf(r,a,u,g){on=r;var S=0;do{if(Xy&&(Sd=null),h5=0,Xy=!1,S>=nfe)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(S+=1,p5=!1,Li=wr=null,r.updateQueue!=null){var E=r.updateQueue;E.lastEffect=null,E.events=null,E.stores=null,E.memoCache!=null&&(E.memoCache.index=0)}xd=-1,qe.H=JI,E=bA(a,u,g)}while(Xy);return E}function fp(){var r=qe.H,a=r.useState()[0];return a=typeof a.then=="function"?o0(a):a,r=r.useState()[0],(wr!==null?wr.memoizedState:null)!==r&&(on.flags|=1024),a}function dp(){var r=ZE!==0;return ZE=0,r}function Cc(r,a,u){a.updateQueue=r.updateQueue,a.flags=(a.mode&Uu)!==Jt?a.flags&-402655237:a.flags&-2053,r.lanes&=~u}function Oc(r){if(KE){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}KE=!1}bd=0,eu=Li=wr=on=null,xd=-1,je=null,Xy=!1,h5=ZE=0,Sd=null}function Ca(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Li===null?on.memoizedState=Li=r:Li=Li.next=r,Li}function Wn(){if(wr===null){var r=on.alternate;r=r!==null?r.memoizedState:null}else r=wr.next;var a=Li===null?on.memoizedState:Li.next;if(a!==null)Li=a,wr=r;else{if(r===null)throw on.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.");wr=r,r={memoizedState:wr.memoizedState,baseState:wr.baseState,baseQueue:wr.baseQueue,queue:wr.queue,next:null},Li===null?on.memoizedState=Li=r:Li=Li.next=r}return Li}function h1(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function o0(r){var a=h5;return h5+=1,Sd===null&&(Sd=h4()),r=Lf(Sd,r,a),a=on,(Li===null?a.memoizedState:Li.next)===null&&(a=a.alternate,qe.H=a!==null&&a.memoizedState!==null?MA:OA),r}function Za(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return o0(r);if(r.$$typeof===Bl)return Sr(r)}throw Error("An unsupported type was passed to use(): "+String(r))}function xu(r){var a=null,u=on.updateQueue;if(u!==null&&(a=u.memoCache),a==null){var g=on.alternate;g!==null&&(g=g.updateQueue,g!==null&&(g=g.memoCache,g!=null&&(a={data:g.data.map(function(S){return S.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),u===null&&(u=h1(),on.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]=F8;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 Ja(r,a){return typeof a=="function"?a(r):a}function p1(r,a,u){var g=Ca();if(u!==void 0){var S=u(a);if(Rm){lt(!0);try{u(a)}finally{lt(!1)}}}else S=a;return g.memoizedState=g.baseState=S,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:S},g.queue=r,r=r.dispatch=w4.bind(null,on,r),[g.memoizedState,r]}function Dl(r){var a=Wn();return hp(a,wr,r)}function hp(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 S=r.baseQueue,E=g.pending;if(E!==null){if(S!==null){var M=S.next;S.next=E.next,E.next=M}a.baseQueue!==S&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),a.baseQueue=S=E,g.pending=null}if(E=r.baseState,S===null)r.memoizedState=E;else{a=S.next;var D=M=null,H=null,Q=a,we=!1;do{var Ce=Q.lane&-536870913;if(Ce!==Q.lane?(Sn&Ce)===Ce:(bd&Ce)===Ce){var me=Q.revertLane;if(me===0)H!==null&&(H=H.next={lane:0,revertLane:0,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),Ce===Tm&&(we=!0);else if((bd&me)===me){Q=Q.next,me===Tm&&(we=!0);continue}else Ce={lane:0,revertLane:Q.revertLane,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},H===null?(D=H=Ce,M=E):H=H.next=Ce,on.lanes|=me,Z0|=me;Ce=Q.action,Rm&&u(E,Ce),E=Q.hasEagerState?Q.eagerState:u(E,Ce)}else me={lane:Ce,revertLane:Q.revertLane,gesture:Q.gesture,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},H===null?(D=H=me,M=E):H=H.next=me,on.lanes|=Ce,Z0|=Ce;Q=Q.next}while(Q!==null&&Q!==a);if(H===null?M=E:H.next=D,!ko(E,r.memoizedState)&&(Bi=!0,we&&(u=jy,u!==null)))throw u;r.memoizedState=E,r.baseState=M,r.baseQueue=H,g.lastRenderedState=E}return S===null&&(g.lanes=0),[r.memoizedState,g.dispatch]}function Mc(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,S=u.pending,E=a.memoizedState;if(S!==null){u.pending=null;var M=S=S.next;do E=r(E,M.action),M=M.next;while(M!==S);ko(E,a.memoizedState)||(Bi=!0),a.memoizedState=E,a.baseQueue===null&&(a.baseState=E),u.lastRenderedState=E}return[E,g]}function l0(r,a,u){var g=on,S=Ca();if(zn){if(u===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var E=u();Yy||E===u()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Yy=!0)}else{if(E=a(),Yy||(u=a(),ko(E,u)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Yy=!0)),Tr===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Sn&127)!==0||g4(g,a,E)}return S.memoizedState=E,u={value:E,getSnapshot:a},S.queue=u,vp(_c.bind(null,g,u,r),[r]),g.flags|=2048,$f(Js|Io,{destroy:void 0},Rc.bind(null,g,u,E,a),null),E}function pp(r,a,u){var g=on,S=Wn(),E=zn;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(),!Yy){var M=a();ko(u,M)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Yy=!0)}(M=!ko((wr||S).memoizedState,u))&&(S.memoizedState=u,Bi=!0),S=S.queue;var D=_c.bind(null,g,S,r);if(Gi(2048,Io,D,[r]),S.getSnapshot!==a||M||Li!==null&&Li.memoizedState.tag&Js){if(g.flags|=2048,$f(Js|Io,{destroy:void 0},Rc.bind(null,g,S,u,a),null),Tr===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");E||(bd&127)!==0||g4(g,a,u)}return u}function g4(r,a,u){r.flags|=16384,r={getSnapshot:a,value:u},a=on.updateQueue,a===null?(a=h1(),on.updateQueue=a,a.stores=[r]):(u=a.stores,u===null?a.stores=[r]:u.push(r))}function Rc(r,a,u,g){a.value=u,a.getSnapshot=g,y4(a)&&v4(r)}function _c(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!ko(r,u)}catch{return!0}}function v4(r){var a=Fi(r,2);a!==null&&Pr(a,r,2)}function Dc(r){var a=Ca();if(typeof r=="function"){var u=r;if(r=u(),Rm){lt(!0);try{u()}finally{lt(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ja,lastRenderedState:r},a}function Uf(r){r=Dc(r);var a=r.queue,u=x1.bind(null,on,a);return a.dispatch=u,[r.memoizedState,u]}function s0(r){var a=Ca();a.memoizedState=a.baseState=r;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=u,a=Yi.bind(null,on,!0,u),u.dispatch=a,[r,a]}function u0(r,a){var u=Wn();return mp(u,wr,r,a)}function mp(r,a,u,g){return r.baseState=u,hp(r,wr,typeof g=="function"?g:Ja)}function b4(r,a){var u=Wn();return wr!==null?mp(u,wr,r,a):(u.baseState=r,[r,u.queue.dispatch])}function Pf(r,a,u,g,S){if(Nr(r))throw Error("Cannot update form state while rendering.");if(r=a.action,r!==null){var E={payload:S,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(M){E.listeners.push(M)}};qe.T!==null?u(!0):E.isTransition=!1,g(E),u=a.pending,u===null?(E.next=a.pending=E,S4(a,E)):(E.next=u.next,a.pending=u.next=E)}}function S4(r,a){var u=a.action,g=a.payload,S=r.state;if(a.isTransition){var E=qe.T,M={};M._updatedFibers=new Set,qe.T=M;try{var D=u(S,g),H=qe.S;H!==null&&H(M,D),Eu(r,a,D)}catch(Q){gp(r,a,Q)}finally{E!==null&&M.types!==null&&(E.types!==null&&E.types!==M.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=M.types),qe.T=E,E===null&&M._updatedFibers&&(r=M._updatedFibers.size,M._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{M=u(S,g),Eu(r,a,M)}catch(Q){gp(r,a,Q)}}function Eu(r,a,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?(qe.asyncTransitions++,u.then(Cu,Cu),u.then(function(g){m1(r,a,g)},function(g){return gp(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.")):m1(r,a,u)}function m1(r,a,u){a.status="fulfilled",a.value=u,wu(a),r.state=u,a=r.pending,a!==null&&(u=a.next,u===a?r.pending=null:(u=u.next,a.next=u,S4(r,u)))}function gp(r,a,u){var g=r.pending;if(r.pending=null,g!==null){g=g.next;do a.status="rejected",a.reason=u,wu(a),a=a.next;while(a!==g)}r.action=null}function wu(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function Tu(r,a){return a}function As(r,a){if(zn){var u=Tr.formState;if(u!==null){e:{var g=on;if(zn){if(Lr){t:{for(var S=Lr,E=Qs;S.nodeType!==8;){if(!E){S=null;break t}if(S=Mo(S.nextSibling),S===null){S=null;break t}}E=S.data,S=E===KA||E===VL?S:null}if(S){Lr=Mo(S.nextSibling),g=S.data===KA;break e}}vu(g)}g=!1}g&&(a=u[0])}}return u=Ca(),u.memoizedState=u.baseState=a,g={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tu,lastRenderedState:a},u.queue=g,u=x1.bind(null,on,g),g.dispatch=u,g=Dc(!1),E=Yi.bind(null,on,!1,g.queue),g=Ca(),S={state:a,dispatch:null,action:r,pending:null},g.queue=S,u=Pf.bind(null,on,S,E,u),S.dispatch=u,g.memoizedState=r,[a,u,!1]}function c0(r){var a=Wn();return g1(a,wr,r)}function g1(r,a,u){if(a=hp(r,a,Tu)[0],r=Dl(Ja)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var g=o0(a)}catch(M){throw M===Hy?YE:M}else g=a;a=Wn();var S=a.queue,E=S.dispatch;return u!==a.memoizedState&&(on.flags|=2048,$f(Js|Io,{destroy:void 0},yp.bind(null,S,u),null)),[g,E,r]}function yp(r,a){r.action=a}function kc(r){var a=Wn(),u=wr;if(u!==null)return g1(a,u,r);Wn(),a=a.memoizedState,u=Wn();var g=u.queue.dispatch;return u.memoizedState=r,[a,g,!1]}function $f(r,a,u,g){return r={tag:r,create:u,deps:g,inst:a,next:null},a=on.updateQueue,a===null&&(a=h1(),on.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 y1(r){var a=Ca();return r={current:r},a.memoizedState=r}function Zo(r,a,u,g){var S=Ca();on.flags|=r,S.memoizedState=$f(Js|a,{destroy:void 0},u,g===void 0?null:g)}function Gi(r,a,u,g){var S=Wn();g=g===void 0?null:g;var E=S.memoizedState.inst;wr!==null&&g!==null&&m4(g,wr.memoizedState.deps)?S.memoizedState=$f(a,E,u,g):(on.flags|=r,S.memoizedState=$f(Js|a,E,u,g))}function vp(r,a){(on.mode&Uu)!==Jt?Zo(276826112,Io,r,a):Zo(8390656,Io,r,a)}function x4(r){on.flags|=4;var a=on.updateQueue;if(a===null)a=h1(),on.updateQueue=a,a.events=[r];else{var u=a.events;u===null?a.events=[r]:u.push(r)}}function bp(r){var a=Ca(),u={impl:r};return a.memoizedState=u,function(){if((qn&ra)!==ma)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return u.impl.apply(void 0,arguments)}}function la(r){var a=Wn().memoizedState;return x4({ref:a,nextImpl:r}),function(){if((qn&ra)!==ma)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function eo(r,a){var u=4194308;return(on.mode&Uu)!==Jt&&(u|=134217728),Zo(u,jl,r,a)}function Au(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 Sp(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;(on.mode&Uu)!==Jt&&(g|=134217728),Zo(g,jl,Au.bind(null,a,r),u)}function xp(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,Gi(4,jl,Au.bind(null,a,r),u)}function Cs(r,a){return Ca().memoizedState=[r,a===void 0?null:a],r}function sa(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 Vr(r,a){var u=Ca();a=a===void 0?null:a;var g=r();if(Rm){lt(!0);try{r()}finally{lt(!1)}}return u.memoizedState=[g,a],g}function jf(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(),Rm){lt(!0);try{r()}finally{lt(!1)}}return u.memoizedState=[g,a],g}function kl(r,a){var u=Ca();return Kr(u,r,a)}function fn(r,a){var u=Wn();return Ep(u,wr.memoizedState,r,a)}function nr(r,a){var u=Wn();return wr===null?Kr(u,r,a):Ep(u,wr.memoizedState,r,a)}function Kr(r,a,u){return u===void 0||(bd&1073741824)!==0&&(Sn&261930)===0?r.memoizedState=a:(r.memoizedState=u,r=Er(),on.lanes|=r,Z0|=r,u)}function Ep(r,a,u,g){return ko(u,a)?u:Fy.current!==null?(r=Kr(r,u,g),ko(r,a)||(Bi=!0),r):(bd&42)===0||(bd&1073741824)!==0&&(Sn&261930)===0?(Bi=!0,r.memoizedState=u):(r=Er(),on.lanes|=r,Z0|=r,a)}function Cu(){qe.asyncTransitions--}function Nc(r,a,u,g,S){var E=Kn.p;Kn.p=E!==0&&E<ea?E:ea;var M=qe.T,D={};D._updatedFibers=new Set,qe.T=D,Yi(r,!1,a,u);try{var H=S(),Q=qe.S;if(Q!==null&&Q(D,H),H!==null&&typeof H=="object"&&typeof H.then=="function"){qe.asyncTransitions++,H.then(Cu,Cu);var we=If(H,g);qf(r,a,we,Qi(r))}else qf(r,a,g,Qi(r))}catch(Ce){qf(r,a,{then:function(){},status:"rejected",reason:Ce},Qi(r))}finally{Kn.p=E,M!==null&&D.types!==null&&(M.types!==null&&M.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."),M.types=D.types),qe.T=M,M===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 f0(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 S=d0(r).queue;B6(r),Nc(r,S,a,Pm,u===null?b:function(){return Hf(r),u(g)})}function d0(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:Pm,baseState:Pm,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ja,lastRenderedState:Pm},next:null};var u={};return a.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ja,lastRenderedState:u},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function Hf(r){qe.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var a=d0(r);a.next===null&&(a=r.alternate.memoizedState),qf(r,a.next.queue,{},Qi(r))}function E4(){var r=Dc(!1);return r=Nc.bind(null,on,r.queue,!0,!1),Ca().memoizedState=r,[!1,r]}function Ur(){var r=Dl(Ja)[0],a=Wn().memoizedState;return[typeof r=="boolean"?r:o0(r),a]}function v1(){var r=Mc(Ja)[0],a=Wn().memoizedState;return[typeof r=="boolean"?r:o0(r),a]}function Ou(){return Sr(_5)}function b1(){var r=Ca(),a=Tr.identifierPrefix;if(zn){var u=pd,g=hd;u=(g&~(1<<32-Ji(g)-1)).toString(32)+u,a="_"+a+"R_"+u,u=ZE++,0<u&&(a+="H"+u.toString(32)),a+="_"}else u=tfe++,a="_"+a+"r_"+u.toString(32)+"_";return r.memoizedState=a}function S1(){return Ca().memoizedState=U8.bind(null,on)}function U8(r,a){for(var u=r.return;u!==null;){switch(u.tag){case 24:case 3:var g=Qi(u),S=xs(g),E=Aa(u,S,g);E!==null&&(Cl(g,"refresh()",r),Pr(E,u,g),a0(E,u,g)),r=d4(),a!=null&&E!==null&&console.error("The seed argument is not enabled outside experimental channels."),S.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=Qi(r);var S={lane:g,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};Nr(r)?wp(a,S):(S=r4(r,a,S,g),S!==null&&(Cl(g,"dispatch()",r),Pr(S,r,g),h0(S,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=Qi(r),qf(r,a,u,g)&&Cl(g,"setState()",r)}function qf(r,a,u,g){var S={lane:g,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Nr(r))wp(a,S);else{var E=r.alternate;if(r.lanes===0&&(E===null||E.lanes===0)&&(E=a.lastRenderedReducer,E!==null)){var M=qe.H;qe.H=$u;try{var D=a.lastRenderedState,H=E(D,u);if(S.hasEagerState=!0,S.eagerState=H,ko(H,D))return yc(r,a,S,0),Tr===null&&e0(),!1}catch{}finally{qe.H=M}}if(u=r4(r,a,S,g),u!==null)return Pr(u,r,g),h0(u,a,g),!0}return!1}function Yi(r,a,u,g){if(qe.T===null&&Tm===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:jn(),gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null},Nr(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),Pr(a,r,2))}function Nr(r){var a=r.alternate;return r===on||a!==null&&a===on}function wp(r,a){Xy=KE=!0;var u=r.pending;u===null?a.next=a:(a.next=u.next,u.next=a),r.pending=a}function h0(r,a,u){if((u&4194048)!==0){var g=a.lanes;g&=r.pendingLanes,u|=g,a.lanes=u,pn(r,u)}}function p0(r){if(r!==null&&typeof r!="function"){var a=String(r);cL.has(a)||(cL.add(a),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",r))}}function Tp(r,a,u,g){var S=r.memoizedState,E=u(g,S);if(r.mode&so){lt(!0);try{E=u(g,S)}finally{lt(!1)}}E===void 0&&(a=ue(a)||"Component",oL.has(a)||(oL.add(a),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",a))),S=E==null?S:mn({},S,E),r.memoizedState=S,r.lanes===0&&(r.updateQueue.baseState=S)}function Os(r,a,u,g,S,E,M){var D=r.stateNode;if(typeof D.shouldComponentUpdate=="function"){if(u=D.shouldComponentUpdate(g,E,M),r.mode&so){lt(!0);try{u=D.shouldComponentUpdate(g,E,M)}finally{lt(!1)}}return u===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",ue(a)||"Component"),u}return a.prototype&&a.prototype.isPureReactComponent?!Qh(u,g)||!Qh(S,E):!0}function Ap(r,a,u,g){var S=a.state;typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(u,g),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(u,g),a.state!==S&&(r=le(r)||"Component",tL.has(r)||(tL.add(r),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",r)),RA.enqueueReplaceState(a,a.state,null))}function Mu(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=mn({},u));for(var S in r)u[S]===void 0&&(u[S]=r[S])}return u}function E1(r){oA(r),console.warn(`%s

%s
`,Wy?"An error occurred in the <"+Wy+"> 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=Wy?"The above error occurred in the <"+Wy+"> 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, "+((_A||"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,GL+" "+r[0],YL,w7+g+w7,XL):r.splice(0,0,GL,YL,w7+g+w7,XL),r.unshift(console),g=Efe.apply(console.error,r),g()}else console.error(`%o

%s

%s
`,r,a,u)}function A4(r){oA(r)}function Cp(r,a){try{Wy=a.source?le(a.source):null,_A=null;var u=a.value;if(qe.actQueue!==null)qe.thrownErrors.push(u);else{var g=r.onUncaughtError;g(u,{componentStack:a.stack})}}catch(S){setTimeout(function(){throw S})}}function C4(r,a,u){try{Wy=u.source?le(u.source):null,_A=le(a);var g=r.onCaughtError;g(u.value,{componentStack:u.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(S){setTimeout(function(){throw S})}}function w1(r,a,u){return u=xs(u),u.tag=wA,u.payload={element:null},u.callback=function(){$e(a.source,Cp,r,a)},u}function T1(r){return r=xs(r),r.tag=wA,r}function Op(r,a,u,g){var S=u.type.getDerivedStateFromError;if(typeof S=="function"){var E=g.value;r.payload=function(){return S(E)},r.callback=function(){N6(u),$e(g.source,C4,a,u,g)}}var M=u.stateNode;M!==null&&typeof M.componentDidCatch=="function"&&(r.callback=function(){N6(u),$e(g.source,C4,a,u,g),typeof S!="function"&&(eh===null?eh=new Set([this]):eh.add(this)),Kce(this,g),typeof S=="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.",le(u)||"Unknown")})}function U6(r,a,u,g,S){if(u.flags|=32768,ul&&Bs(r,S),g!==null&&typeof g=="object"&&typeof g.then=="function"){if(a=u.alternate,a!==null&&wc(a,u,S,!0),zn&&(Fc=!0),u=$l.current,u!==null){switch(u.tag){case 31:case 13:return Zs===null?Zf():u.alternate===null&&ni===wd&&(ni=t7),u.flags&=-257,u.flags|=65536,u.lanes=S,g===XE?u.flags|=16384:(a=u.updateQueue,a===null?u.updateQueue=new Set([g]):a.add(g),ca(r,g,S)),!1;case 22:return u.flags|=65536,g===XE?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)),ca(r,g,S)),!1}throw Error("Unexpected Suspense handler tag ("+u.tag+"). This is a bug in React.")}return ca(r,g,S),Zf(),!1}if(zn)return Fc=!0,a=$l.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=S,g!==dA&&ms(Ea(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!==dA&&ms(Ea(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,S&=-S,r.lanes|=S,g=Ea(g,u),S=w1(r.stateNode,g,S),sp(r,S),ni!==Q0&&(ni=_m)),!1;var E=Ea(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(x5===null?x5=[E]:x5.push(E),ni!==Q0&&(ni=_m),a===null)return!0;g=Ea(g,u),u=a;do{switch(u.tag){case 3:return u.flags|=65536,r=S&-S,u.lanes|=r,r=w1(u.stateNode,g,r),sp(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"&&(eh===null||!eh.has(E))))return u.flags|=65536,S&=-S,u.lanes|=S,S=T1(S),Op(S,r,u,g),sp(u,S),!1}u=u.return}while(u!==null);return!1}function Xi(r,a,u,g){a.child=r===null?qI(a,null,u,g):Mm(a,r.child,u,g)}function O4(r,a,u,g,S){u=u.render;var E=a.ref;if("ref"in g){var M={};for(var D in g)D!=="ref"&&(M[D]=g[D])}else M=g;return So(a),g=Qr(r,a,u,M,E,S),D=dp(),r!==null&&!Bi?(Cc(r,a,S),Ms(r,a,S)):(zn&&D&&i1(a),a.flags|=1,Xi(r,a,g,S),a.child)}function M4(r,a,u,g,S){if(r===null){var E=u.type;return typeof E=="function"&&!t1(E)&&E.defaultProps===void 0&&u.compare===null?(u=vc(E),a.tag=15,a.type=u,g0(a,E),R4(r,a,u,g,S)):(r=_f(u.type,null,g,a,a.mode,S),r.ref=a.ref,r.return=a,a.child=r)}if(E=r.child,!N1(r,S)){var M=E.memoizedProps;if(u=u.compare,u=u!==null?u:Qh,u(M,g)&&r.ref===a.ref)return Ms(r,a,S)}return a.flags|=1,r=ds(E,g),r.ref=a.ref,r.return=a,a.child=r}function R4(r,a,u,g,S){if(r!==null){var E=r.memoizedProps;if(Qh(E,g)&&r.ref===a.ref&&a.type===r.type)if(Bi=!1,a.pendingProps=g=E,N1(r,S))(r.flags&131072)!==0&&(Bi=!0);else return a.lanes=r.lanes,Ms(r,a,S)}return O1(r,a,u,g,S)}function A1(r,a,u,g){var S=g.children,E=r!==null?r.memoizedState:null;if(r===null&&a.stateNode===null&&(a.stateNode={_visibility:QS,_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,S=0;g!==null;)S=S|g.lanes|g.childLanes,g=g.sibling;g=S&~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&&ap(a,E!==null?E.cachePool:null),E!==null?Ac(a,E):_l(a),c1(a);else return g=a.lanes=536870912,_4(r,a,E!==null?E.baseLanes|u:u,u,g)}else E!==null?(ap(a,E.cachePool),Ac(a,E),Oo(a),a.memoizedState=null):(r!==null&&ap(a,null),_l(a),Oo(a));return Xi(r,a,S,u),a.child}function m0(r,a){return r!==null&&r.tag===22||a.stateNode!==null||(a.stateNode={_visibility:QS,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function _4(r,a,u,g,S){var E=ip();return E=E===null?null:{parent:zi._currentValue,pool:E},a.memoizedState={baseLanes:u,cachePool:E},r!==null&&ap(a,null),_l(a),c1(a),r!==null&&wc(r,a,g,!0),a.childLanes=S,null}function Mp(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=Dp({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 Mm(a,r.child,null,u),r=Mp(a,a.pendingProps),r.flags|=2,oa(a),a.memoizedState=null,r}function P6(r,a,u){var g=a.pendingProps,S=(a.flags&128)!==0;if(a.flags&=-129,r===null){if(zn){if(g.mode==="hidden")return r=Mp(a,g),a.lanes=536870912,m0(null,r);if(cp(a),(r=Lr)?(u=J1(r,Qs),u=u!==null&&u.data===Lm?u:null,u!==null&&(g={dehydrated:u,treeContext:I6(),retryLane:536870912,hydrationErrors:null},a.memoizedState=g,g=a4(u),g.return=a,a.child=g,Na=a,Lr=null)):u=null,u===null)throw Sc(a,r),vu(a);return a.lanes=536870912,null}return Mp(a,g)}var E=r.memoizedState;if(E!==null){var M=E.dehydrated;if(cp(a),S)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(Ga(),(u&536870912)!==0&&E0(a),Bi||wc(r,a,u,!1),S=(u&r.childLanes)!==0,Bi||S){if(g=Tr,g!==null&&(M=kt(g,u),M!==0&&M!==E.retryLane))throw E.retryLane=M,Fi(r,M),Pr(g,r,M),DA;Zf(),a=D4(r,a,u)}else r=E.treeContext,Lr=Mo(M.nextSibling),Na=a,zn=!0,q0=null,Fc=!1,Pl=null,Qs=!1,r!==null&&L6(a,r),a=Mp(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&&E0(a),r=ds(E,g),r.ref=a.ref,a.child=r,r.return=a,r}function C1(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 O1(r,a,u,g,S){if(u.prototype&&typeof u.prototype.render=="function"){var E=ue(u)||"Unknown";fL[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),fL[E]=!0)}return a.mode&so&&Pu.recordLegacyContextWarning(a,null),r===null&&(g0(a,a.type),u.contextTypes&&(E=ue(u)||"Unknown",hL[E]||(hL[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)))),So(a),u=Qr(r,a,u,g,void 0,S),g=dp(),r!==null&&!Bi?(Cc(r,a,S),Ms(r,a,S)):(zn&&g&&i1(a),a.flags|=1,Xi(r,a,u,S),a.child)}function Ff(r,a,u,g,S,E){return So(a),xd=-1,p5=r!==null&&r.type!==a.type,a.updateQueue=null,u=Vf(a,g,u,S),d1(r,a),g=dp(),r!==null&&!Bi?(Cc(r,a,E),Ms(r,a,E)):(zn&&g&&i1(a),a.flags|=1,Xi(r,a,u,E),a.child)}function k4(r,a,u,g,S){switch(d(a)){case!1:var E=a.stateNode,M=new a.type(a.memoizedProps,E.context).state;E.updater.enqueueSetState(E,M,null);break;case!0:a.flags|=128,a.flags|=65536,E=Error("Simulated error coming from DevTools");var D=S&-S;if(a.lanes|=D,M=Tr,M===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");D=T1(D),Op(D,M,a,Ea(E,a)),sp(a,D)}if(So(a),a.stateNode===null){if(M=H0,E=u.contextType,"contextType"in u&&E!==null&&(E===void 0||E.$$typeof!==Bl)&&!uL.has(u)&&(uL.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===py?" 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",ue(u)||"Component",D)),typeof E=="object"&&E!==null&&(M=Sr(E)),E=new u(g,M),a.mode&so){lt(!0);try{E=new u(g,M)}finally{lt(!1)}}if(M=a.memoizedState=E.state!==null&&E.state!==void 0?E.state:null,E.updater=RA,a.stateNode=E,E._reactInternals=a,E._reactInternalInstance=eL,typeof u.getDerivedStateFromProps=="function"&&M===null&&(M=ue(u)||"Component",nL.has(M)||(nL.add(M),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.",M,E.state===null?"null":"undefined",M))),typeof u.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"){var H=D=M=null;if(typeof E.componentWillMount=="function"&&E.componentWillMount.__suppressDeprecationWarning!==!0?M="componentWillMount":typeof E.UNSAFE_componentWillMount=="function"&&(M="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?H="componentWillUpdate":typeof E.UNSAFE_componentWillUpdate=="function"&&(H="UNSAFE_componentWillUpdate"),M!==null||D!==null||H!==null){E=ue(u)||"Component";var Q=typeof u.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";iL.has(E)||(iL.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,Q,M!==null?`
  `+M:"",D!==null?`
  `+D:"",H!==null?`
  `+H:""))}}E=a.stateNode,M=ue(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?",M):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",M)),!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?",M),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.",M),E.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",M),u.childContextTypes&&!sL.has(u)&&(sL.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)",M)),u.contextTypes&&!lL.has(u)&&(lL.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)",M)),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.",M),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.",ue(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()?",M),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().",M),typeof E.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",M),typeof E.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",M),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.",M),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.",M,M),typeof E.getSnapshotBeforeUpdate!="function"||typeof E.componentDidUpdate=="function"||rL.has(u)||(rL.add(u),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",ue(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.",M),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.",M),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.",M),(D=E.state)&&(typeof D!="object"||Ti(D))&&console.error("%s.state: must be set to an object or null",M),typeof E.getChildContext=="function"&&typeof u.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",M),E=a.stateNode,E.props=g,E.state=a.memoizedState,E.refs={},Ss(a),M=u.contextType,E.context=typeof M=="object"&&M!==null?Sr(M):H0,E.state===g&&(M=ue(u)||"Component",aL.has(M)||(aL.add(M),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.",M))),a.mode&so&&Pu.recordLegacyContextWarning(a,E),Pu.recordUnsafeLifecycleWarnings(a,E),E.state=a.memoizedState,M=u.getDerivedStateFromProps,typeof M=="function"&&(Tp(a,u,M,g),E.state=a.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof E.getSnapshotBeforeUpdate=="function"||typeof E.UNSAFE_componentWillMount!="function"&&typeof E.componentWillMount!="function"||(M=E.state,typeof E.componentWillMount=="function"&&E.componentWillMount(),typeof E.UNSAFE_componentWillMount=="function"&&E.UNSAFE_componentWillMount(),M!==E.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",le(a)||"Component"),RA.enqueueReplaceState(E,E.state,null)),Rl(a,g,E,S),Es(),E.state=a.memoizedState),typeof E.componentDidMount=="function"&&(a.flags|=4194308),(a.mode&Uu)!==Jt&&(a.flags|=134217728),E=!0}else if(r===null){E=a.stateNode;var we=a.memoizedProps;D=Mu(u,we),E.props=D;var Ce=E.context;H=u.contextType,M=H0,typeof H=="object"&&H!==null&&(M=Sr(H)),Q=u.getDerivedStateFromProps,H=typeof Q=="function"||typeof E.getSnapshotBeforeUpdate=="function",we=a.pendingProps!==we,H||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(we||Ce!==M)&&Ap(a,E,g,M),W0=!1;var me=a.memoizedState;E.state=me,Rl(a,g,E,S),Es(),Ce=a.memoizedState,we||me!==Ce||W0?(typeof Q=="function"&&(Tp(a,u,Q,g),Ce=a.memoizedState),(D=W0||Os(a,u,D,g,me,Ce,M))?(H||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&Uu)!==Jt&&(a.flags|=134217728)):(typeof E.componentDidMount=="function"&&(a.flags|=4194308),(a.mode&Uu)!==Jt&&(a.flags|=134217728),a.memoizedProps=g,a.memoizedState=Ce),E.props=g,E.state=Ce,E.context=M,E=D):(typeof E.componentDidMount=="function"&&(a.flags|=4194308),(a.mode&Uu)!==Jt&&(a.flags|=134217728),E=!1)}else{E=a.stateNode,Ka(r,a),M=a.memoizedProps,H=Mu(u,M),E.props=H,Q=a.pendingProps,me=E.context,Ce=u.contextType,D=H0,typeof Ce=="object"&&Ce!==null&&(D=Sr(Ce)),we=u.getDerivedStateFromProps,(Ce=typeof we=="function"||typeof E.getSnapshotBeforeUpdate=="function")||typeof E.UNSAFE_componentWillReceiveProps!="function"&&typeof E.componentWillReceiveProps!="function"||(M!==Q||me!==D)&&Ap(a,E,g,D),W0=!1,me=a.memoizedState,E.state=me,Rl(a,g,E,S),Es();var Ve=a.memoizedState;M!==Q||me!==Ve||W0||r!==null&&r.dependencies!==null&&ep(r.dependencies)?(typeof we=="function"&&(Tp(a,u,we,g),Ve=a.memoizedState),(H=W0||Os(a,u,H,g,me,Ve,D)||r!==null&&r.dependencies!==null&&ep(r.dependencies))?(Ce||typeof E.UNSAFE_componentWillUpdate!="function"&&typeof E.componentWillUpdate!="function"||(typeof E.componentWillUpdate=="function"&&E.componentWillUpdate(g,Ve,D),typeof E.UNSAFE_componentWillUpdate=="function"&&E.UNSAFE_componentWillUpdate(g,Ve,D)),typeof E.componentDidUpdate=="function"&&(a.flags|=4),typeof E.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof E.componentDidUpdate!="function"||M===r.memoizedProps&&me===r.memoizedState||(a.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||M===r.memoizedProps&&me===r.memoizedState||(a.flags|=1024),a.memoizedProps=g,a.memoizedState=Ve),E.props=g,E.state=Ve,E.context=D,E=H):(typeof E.componentDidUpdate!="function"||M===r.memoizedProps&&me===r.memoizedState||(a.flags|=4),typeof E.getSnapshotBeforeUpdate!="function"||M===r.memoizedProps&&me===r.memoizedState||(a.flags|=1024),E=!1)}if(D=E,C1(r,a),M=(a.flags&128)!==0,D||M){if(D=a.stateNode,_e(a),M&&typeof u.getDerivedStateFromError!="function")u=null,No=-1;else if(u=_I(D),a.mode&so){lt(!0);try{_I(D)}finally{lt(!1)}}a.flags|=1,r!==null&&M?(a.child=Mm(a,r.child,null,S),a.child=Mm(a,null,u,S)):Xi(r,a,u,S),a.memoizedState=D.state,r=a.child}else r=Ms(r,a,S);return S=a.stateNode,E&&S.props!==g&&(Qy||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",le(a)||"a component"),Qy=!0),r}function Rp(r,a,u,g){return bu(),a.flags|=256,Xi(r,a,u,g),a.child}function g0(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=ue(a)||"Unknown",pL[r]||(console.error("%s: Function components do not support getDerivedStateFromProps.",r),pL[r]=!0)),typeof a.contextType=="object"&&a.contextType!==null&&(a=ue(a)||"Unknown",dL[a]||(console.error("%s: Function components do not support contextType.",a),dL[a]=!0))}function M1(r){return{baseLanes:r,cachePool:o1()}}function _p(r,a,u){return r=r!==null?r.childLanes&~u:0,a&&(r|=hl),r}function $6(r,a,u){var g,S=a.pendingProps;f(a)&&(a.flags|=128);var E=!1,M=(a.flags&128)!==0;if((g=M)||(g=r!==null&&r.memoizedState===null?!1:(Ci.current&d5)!==0),g&&(E=!0,a.flags&=-129),g=(a.flags&32)!==0,a.flags&=-33,r===null){if(zn){if(E?aa(a):Oo(a),(r=Lr)?(u=J1(r,Qs),u=u!==null&&u.data!==Lm?u:null,u!==null&&(g={dehydrated:u,treeContext:I6(),retryLane:536870912,hydrationErrors:null},a.memoizedState=g,g=a4(u),g.return=a,a.child=g,Na=a,Lr=null)):u=null,u===null)throw Sc(a,r),vu(a);return ey(u)?a.lanes=32:a.lanes=536870912,null}var D=S.children;if(S=S.fallback,E){Oo(a);var H=a.mode;return D=Dp({mode:"hidden",children:D},H),S=hs(S,H,u,null),D.return=a,S.return=a,D.sibling=S,a.child=D,S=a.child,S.memoizedState=M1(u),S.childLanes=_p(r,g,u),a.memoizedState=kA,m0(null,S)}return aa(a),R1(a,D)}var Q=r.memoizedState;if(Q!==null){var we=Q.dehydrated;if(we!==null){if(M)a.flags&256?(aa(a),a.flags&=-257,a=_1(r,a,u)):a.memoizedState!==null?(Oo(a),a.child=r.child,a.flags|=128,a=null):(Oo(a),D=S.fallback,H=a.mode,S=Dp({mode:"visible",children:S.children},H),D=hs(D,H,u,null),D.flags|=2,S.return=a,D.return=a,S.sibling=D,a.child=S,Mm(a,r.child,null,u),S=a.child,S.memoizedState=M1(u),S.childLanes=_p(r,g,u),a.memoizedState=kA,a=m0(null,S));else if(aa(a),Ga(),(u&536870912)!==0&&E0(a),ey(we)){if(g=we.nextSibling&&we.nextSibling.dataset,g){D=g.dgst;var Ce=g.msg;H=g.stck;var me=g.cstck}E=Ce,g=D,S=H,we=me,D=E,H=we,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=S||"",D.digest=g,g=H===void 0?null:H,S={value:D,source:null,stack:g},typeof g=="string"&&fA.set(D,S),ms(S),a=_1(r,a,u)}else if(Bi||wc(r,a,u,!1),g=(u&r.childLanes)!==0,Bi||g){if(g=Tr,g!==null&&(S=kt(g,u),S!==0&&S!==Q.retryLane))throw Q.retryLane=S,Fi(r,S),Pr(g,r,S),DA;gS(we)||Zf(),a=_1(r,a,u)}else gS(we)?(a.flags|=192,a.child=r.child,a=null):(r=Q.treeContext,Lr=Mo(we.nextSibling),Na=a,zn=!0,q0=null,Fc=!1,Pl=null,Qs=!1,r!==null&&L6(a,r),a=R1(a,S.children),a.flags|=4096);return a}}return E?(Oo(a),D=S.fallback,H=a.mode,me=r.child,we=me.sibling,S=ds(me,{mode:"hidden",children:S.children}),S.subtreeFlags=me.subtreeFlags&65011712,we!==null?D=ds(we,D):(D=hs(D,H,u,null),D.flags|=2),D.return=a,S.return=a,S.sibling=D,a.child=S,m0(null,S),S=a.child,D=r.child.memoizedState,D===null?D=M1(u):(H=D.cachePool,H!==null?(me=zi._currentValue,H=H.parent!==me?{parent:me,pool:me}:H):H=o1(),D={baseLanes:D.baseLanes|u,cachePool:H}),S.memoizedState=D,S.childLanes=_p(r,g,u),a.memoizedState=kA,m0(r.child,S)):(Q!==null&&(u&62914560)===u&&(u&r.lanes)!==0&&E0(a),aa(a),u=r.child,r=u.sibling,u=ds(u,{mode:"visible",children:S.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=Dp({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function Dp(r,a){return r=w(22,r,null,a),r.lanes=0,r}function _1(r,a,u){return Mm(a,r.child,null,u),r=R1(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function N4(r,a,u){r.lanes|=a;var g=r.alternate;g!==null&&(g.lanes|=a),Su(r.return,a,u)}function D1(r,a,u,g,S,E){var M=r.memoizedState;M===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:g,tail:u,tailMode:S,treeForkCount:E}:(M.isBackwards=a,M.rendering=null,M.renderingStartTime=0,M.last=g,M.tail=u,M.tailMode=S,M.treeForkCount=E)}function k1(r,a,u){var g=a.pendingProps,S=g.revealOrder,E=g.tail,M=g.children,D=Ci.current;if((g=(D&d5)!==0)?(D=D&Gy|d5,a.flags|=128):D&=Gy,W(Ci,D,a),D=S??"null",S!=="forwards"&&S!=="unstable_legacy-backwards"&&S!=="together"&&S!=="independent"&&!mL[D])if(mL[D]=!0,S==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(S==="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 S=="string")switch(S.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.',S,S.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.',S,S.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',S)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',S);D=E??"null",e7[D]||(E==null?(S==="forwards"||S==="backwards"||S==="unstable_legacy-backwards")&&(e7[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"?(e7[D]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',E)):S!=="forwards"&&S!=="backwards"&&S!=="unstable_legacy-backwards"&&(e7[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((S==="forwards"||S==="backwards"||S==="unstable_legacy-backwards")&&M!==void 0&&M!==null&&M!==!1)if(Ti(M)){for(D=0;D<M.length;D++)if(!kn(M[D],D))break e}else if(D=se(M),typeof D=="function"){if(D=D.call(M))for(var H=D.next(),Q=0;!H.done;H=D.next()){if(!kn(H.value,Q))break e;Q++}}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?',S);if(Xi(r,a,M,u),zn?(bc(),M=KS):M=0,!g&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&N4(r,u,a);else if(r.tag===19)N4(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(S){case"forwards":for(u=a.child,S=null;u!==null;)r=u.alternate,r!==null&&Ts(r)===null&&(S=u),u=u.sibling;u=S,u===null?(S=a.child,a.child=null):(S=u.sibling,u.sibling=null),D1(a,!1,S,u,E,M);break;case"backwards":case"unstable_legacy-backwards":for(u=null,S=a.child,a.child=null;S!==null;){if(r=S.alternate,r!==null&&Ts(r)===null){a.child=S;break}r=S.sibling,S.sibling=u,u=S,S=r}D1(a,!0,u,null,E,M);break;case"together":D1(a,!1,null,null,void 0,M);break;default:a.memoizedState=null}return a.child}function Ms(r,a,u){if(r!==null&&(a.dependencies=r.dependencies),No=-1,Z0|=a.lanes,(u&a.childLanes)===0)if(r!==null){if(wc(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=ds(r,r.pendingProps),a.child=u,u.return=a;r.sibling!==null;)r=r.sibling,u=u.sibling=ds(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&&ep(r)))}function z4(r,a,u){switch(a.tag){case 3:K(a,a.stateNode.containerInfo),gs(a,zi,r.memoizedState.cache),bu();break;case 27:case 5:Te(a);break;case 4:K(a,a.stateNode.containerInfo);break;case 10:gs(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,cp(a),null;break;case 13:if(g=a.memoizedState,g!==null)return g.dehydrated!==null?(aa(a),a.flags|=128,null):(u&a.child.childLanes)!==0?$6(r,a,u):(aa(a),r=Ms(r,a,u),r!==null?r.sibling:null);aa(a);break;case 19:var S=(r.flags&128)!==0;if(g=(u&a.childLanes)!==0,g||(wc(r,a,u,!1),g=(u&a.childLanes)!==0),S){if(g)return k1(r,a,u);a.flags|=128}if(S=a.memoizedState,S!==null&&(S.rendering=null,S.tail=null,S.lastEffect=null),W(Ci,Ci.current,a),g)break;return null;case 22:return a.lanes=0,A1(r,a,u,a.pendingProps);case 24:gs(a,zi,r.memoizedState.cache)}return Ms(r,a,u)}function z1(r,a,u){if(a._debugNeedsRemount&&r!==null){u=_f(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 S=g.child;if(S===null)throw Error("Expected parent to have a child.");for(;S.sibling!==a;)if(S=S.sibling,S===null)throw Error("Expected to find the previous sibling.");S.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)Bi=!0;else{if(!N1(r,u)&&(a.flags&128)===0)return Bi=!1,z4(r,a,u);Bi=(r.flags&131072)!==0}else Bi=!1,(g=zn)&&(bc(),g=(a.flags&1048576)!==0),g&&(g=a.index,bc(),o4(a,KS,g));switch(a.lanes=0,a.tag){case 16:e:if(g=a.pendingProps,r=Ao(a.elementType),a.type=r,typeof r=="function")t1(r)?(g=Mu(r,g),a.tag=1,a.type=r=vc(r),a=k4(null,a,r,g,u)):(a.tag=0,g0(a,r),a.type=r=vc(r),a=O1(null,a,r,g,u));else{if(r!=null){if(S=r.$$typeof,S===Iu){a.tag=11,a.type=r=e1(r),a=O4(null,a,r,g,u);break e}else if(S===ld){a.tag=14,a=M4(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=ue(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 O1(r,a,a.type,a.pendingProps,u);case 1:return g=a.type,S=Mu(g,a.pendingProps),k4(r,a,g,S,u);case 3:e:{if(K(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;S=E.element,Ka(r,a),Rl(a,g,null,u);var M=a.memoizedState;if(g=M.cache,gs(a,zi,g),g!==E.cache&&Ec(a,[zi],u,!0),Es(),g=M.element,E.isDehydrated)if(E={element:g,isDehydrated:!1,cache:M.cache},a.updateQueue.baseState=E,a.memoizedState=E,a.flags&256){a=Rp(r,a,g,u);break e}else if(g!==S){S=Ea(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),a),ms(S),a=Rp(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(Lr=Mo(r.firstChild),Na=a,zn=!0,q0=null,Fc=!1,Pl=null,Qs=!0,u=qI(a,null,g,u),a.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(bu(),g===S){a=Ms(r,a,u);break e}Xi(r,a,g,u)}a=a.child}return a;case 26:return C1(r,a),r===null?(u=bS(a.type,null,a.pendingProps,null))?a.memoizedState=u:zn||(u=a.type,r=a.pendingProps,g=ie(ll.current),g=W1(g).createElement(u),g[ta]=a,g[da]=r,Bn(g,u,r),St(g),a.stateNode=g):a.memoizedState=bS(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return Te(a),r===null&&zn&&(g=ie(ll.current),S=pe(),g=a.stateNode=Ll(a.type,a.pendingProps,g,S,!1),Fc||(S=dS(g,a.type,a.pendingProps,S),S!==null&&(Df(a,0).serverProps=S)),Na=a,Qs=!0,S=Lr,zu(a.type)?(tC=S,Lr=Mo(g.firstChild)):Lr=S),Xi(r,a,a.pendingProps.children,u),C1(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&zn&&(E=pe(),g=qg(a.type,E.ancestorInfo),S=Lr,(M=!S)||(M=hE(S,a.type,a.pendingProps,Qs),M!==null?(a.stateNode=M,Fc||(E=dS(M,a.type,a.pendingProps,E),E!==null&&(Df(a,0).serverProps=E)),Na=a,Lr=Mo(M.firstChild),Qs=!1,E=!0):E=!1,M=!E),M&&(g&&Sc(a,S),vu(a))),Te(a),S=a.type,E=a.pendingProps,M=r!==null?r.memoizedProps:null,g=E.children,Qp(S,E)?g=null:M!==null&&Qp(S,M)&&(a.flags|=32),a.memoizedState!==null&&(S=Qr(r,a,fp,null,null,u),_5._currentValue=S),C1(r,a),Xi(r,a,g,u),a.child;case 6:return r===null&&zn&&(u=a.pendingProps,r=pe(),g=r.ancestorInfo.current,u=g!=null?Qd(u,g.tag,r.ancestorInfo.implicitRootScope):!0,r=Lr,(g=!r)||(g=ir(r,a.pendingProps,Qs),g!==null?(a.stateNode=g,Na=a,Lr=null,g=!0):g=!1,g=!g),g&&(u&&Sc(a,r),vu(a))),null;case 13:return $6(r,a,u);case 4:return K(a,a.stateNode.containerInfo),g=a.pendingProps,r===null?a.child=Mm(a,null,g,u):Xi(r,a,g,u),a.child;case 11:return O4(r,a,a.type,a.pendingProps,u);case 7:return Xi(r,a,a.pendingProps,u),a.child;case 8:return Xi(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,Xi(r,a,a.pendingProps.children,u),a.child;case 10:return g=a.type,S=a.pendingProps,E=S.value,"value"in S||gL||(gL=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),gs(a,g,E),Xi(r,a,S.children,u),a.child;case 9:return S=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."),So(a),S=Sr(S),g=bA(g,S,void 0),a.flags|=1,Xi(r,a,g,u),a.child;case 14:return M4(r,a,a.type,a.pendingProps,u);case 15:return R4(r,a,a.type,a.pendingProps,u);case 19:return k1(r,a,u);case 31:return P6(r,a,u);case 22:return A1(r,a,u,a.pendingProps);case 24:return So(a),g=Sr(zi),r===null?(S=ip(),S===null&&(S=Tr,E=d4(),S.pooledCache=E,Nf(E),E!==null&&(S.pooledCacheLanes|=u),S=E),a.memoizedState={parent:g,cache:S},Ss(a),gs(a,zi,S)):((r.lanes&u)!==0&&(Ka(r,a),Rl(a,null,null,u),Es()),S=r.memoizedState,E=a.memoizedState,S.parent!==g?(S={parent:g,cache:g},a.memoizedState=S,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=S),gs(a,zi,g)):(g=E.cache,gs(a,zi,g),g!==S.cache&&Ec(a,[zi],u,!0))),Xi(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,S){if((a=(r.mode&Gce)!==Jt)&&(a=!1),a){if(r.flags|=16777216,(S&335544128)===S)if(r.stateNode.complete)r.flags|=8192;else if(H1())r.flags|=8192;else throw Om=XE,xA}else r.flags&=-16777217}function I1(r,a){if(a.type!=="stylesheet"||(a.state.loading&tu)!==Um)r.flags&=-16777217;else if(r.flags|=16777216,!ay(a))if(H1())r.flags|=8192;else throw Om=XE,xA}function kp(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?Ue():536870912,r.lanes|=a,Nm|=a)}function y0(r,a){if(!zn)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&vn)!==Jt){for(var S=r.selfBaseDuration,E=r.child;E!==null;)u|=E.lanes|E.childLanes,g|=E.subtreeFlags&65011712,g|=E.flags&65011712,S+=E.treeBaseDuration,E=E.sibling;r.treeBaseDuration=S}else for(S=r.child;S!==null;)u|=S.lanes|S.childLanes,g|=S.subtreeFlags&65011712,g|=S.flags&65011712,S.return=r,S=S.sibling;else if((r.mode&vn)!==Jt){S=r.actualDuration,E=r.selfBaseDuration;for(var M=r.child;M!==null;)u|=M.lanes|M.childLanes,g|=M.subtreeFlags,g|=M.flags,S+=M.actualDuration,E+=M.treeBaseDuration,M=M.sibling;r.actualDuration=S,r.treeBaseDuration=E}else for(S=r.child;S!==null;)u|=S.lanes|S.childLanes,g|=S.subtreeFlags,g|=S.flags,S.return=r,S=S.sibling;return r.subtreeFlags|=g,r.childLanes=u,a}function j6(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),ys(zi,a),ae(a),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(r===null||r.child===null)&&(kf(a)?(Jh(),Rs(a)):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,c4())),rr(a),null;case 26:var S=a.type,E=a.memoizedState;return r===null?(Rs(a),E!==null?(rr(a),I1(a,E)):(rr(a),I4(a,S,null,g,u))):E?E!==r.memoizedState?(Rs(a),rr(a),I1(a,E)):(rr(a),a.flags&=-16777217):(r=r.memoizedProps,r!==g&&Rs(a),rr(a),I4(a,S,r,g,u)),null;case 27:if(ee(a),u=ie(ll.current),S=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=pe(),kf(a)?s4(a):(r=Ll(S,g,u,r,!0),a.stateNode=r,Rs(a))}return rr(a),null;case 5:if(ee(a),S=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 M=pe();if(kf(a))s4(a);else{switch(E=ie(ll.current),qg(S,M.ancestorInfo),M=M.context,E=W1(E),M){case iv:E=E.createElementNS(Mn,S);break;case S7:E=E.createElementNS(Tn,S);break;default:switch(S){case"svg":E=E.createElementNS(Mn,S);break;case"math":E=E.createElementNS(Tn,S);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(S,{is:g.is}):E.createElement(S),S.indexOf("-")===-1&&(S!==S.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",S),Object.prototype.toString.call(E)!=="[object HTMLUnknownElement]"||Vl.call(PL,S)||(PL[S]=!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.",S)))}}E[ta]=a,E[da]=g;e:for(M=a.child;M!==null;){if(M.tag===5||M.tag===6)E.appendChild(M.stateNode);else if(M.tag!==4&&M.tag!==27&&M.child!==null){M.child.return=M,M=M.child;continue}if(M===a)break e;for(;M.sibling===null;){if(M.return===null||M.return===a)break e;M=M.return}M.sibling.return=M.return,M=M.sibling}a.stateNode=E;e:switch(Bn(E,S,g),S){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=ie(ll.current),u=pe(),kf(a)){if(r=a.stateNode,u=a.memoizedProps,S=!Fc,g=null,E=Na,E!==null)switch(E.tag){case 3:S&&(S=Zp(r,u,g),S!==null&&(Df(a,0).serverProps=S));break;case 27:case 5:g=E.memoizedProps,S&&(S=Zp(r,u,g),S!==null&&(Df(a,0).serverProps=S))}r[ta]=a,r=!!(r.nodeValue===u||g!==null&&g.suppressHydrationWarning===!0||Xp(r.nodeValue,u)),r||vu(a,!0)}else S=u.ancestorInfo.current,S!=null&&Qd(g,S.tag,u.ancestorInfo.implicitRootScope),r=W1(r).createTextNode(g),r[ta]=a,a.stateNode=r}return rr(a),null;case 31:if(u=a.memoizedState,r===null||r.memoizedState!==null){if(g=kf(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[ta]=a,rr(a),(a.mode&vn)!==Jt&&u!==null&&(r=a.child,r!==null&&(a.treeBaseDuration-=r.treeBaseDuration))}else Jh(),bu(),(a.flags&128)===0&&(u=a.memoizedState=null),a.flags|=4,rr(a),(a.mode&vn)!==Jt&&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?(oa(a),a):(oa(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(S=g,E=kf(a),S!==null&&S.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[ta]=a,rr(a),(a.mode&vn)!==Jt&&S!==null&&(S=a.child,S!==null&&(a.treeBaseDuration-=S.treeBaseDuration))}else Jh(),bu(),(a.flags&128)===0&&(S=a.memoizedState=null),a.flags|=4,rr(a),(a.mode&vn)!==Jt&&S!==null&&(S=a.child,S!==null&&(a.treeBaseDuration-=S.treeBaseDuration));S=!1}else S=c4(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=S),S=!0;if(!S)return a.flags&256?(oa(a),a):(oa(a),null)}return oa(a),(a.flags&128)!==0?(a.lanes=u,(a.mode&vn)!==Jt&&wo(a),a):(u=g!==null,r=r!==null&&r.memoizedState!==null,u&&(g=a.child,S=null,g.alternate!==null&&g.alternate.memoizedState!==null&&g.alternate.memoizedState.cachePool!==null&&(S=g.alternate.memoizedState.cachePool.pool),E=null,g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(E=g.memoizedState.cachePool.pool),E!==S&&(g.flags|=2048)),u!==r&&u&&(a.child.flags|=8192),kp(a,a.updateQueue),rr(a),(a.mode&vn)!==Jt&&u&&(r=a.child,r!==null&&(a.treeBaseDuration-=r.treeBaseDuration)),null);case 4:return ae(a),r===null&&Gp(a.stateNode.containerInfo),rr(a),null;case 10:return ys(a.type,a),rr(a),null;case 19:if(oe(Ci,a),g=a.memoizedState,g===null)return rr(a),null;if(S=(a.flags&128)!==0,E=g.rendering,E===null)if(S)y0(g,!1);else{if(ni!==wd||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(E=Ts(r),E!==null){for(a.flags|=128,y0(g,!1),r=E.updateQueue,a.updateQueue=r,kp(a,r),a.subtreeFlags=0,r=u,u=a.child;u!==null;)t0(u,r),u=u.sibling;return W(Ci,Ci.current&Gy|d5,a),zn&&ps(a,g.treeForkCount),a.child}r=r.sibling}g.tail!==null&&ei()>l7&&(a.flags|=128,S=!0,y0(g,!1),a.lanes=4194304)}else{if(!S)if(r=Ts(E),r!==null){if(a.flags|=128,S=!0,r=r.updateQueue,a.updateQueue=r,kp(a,r),y0(g,!0),g.tail===null&&g.tailMode==="hidden"&&!E.alternate&&!zn)return rr(a),null}else 2*ei()-g.renderingStartTime>l7&&u!==536870912&&(a.flags|=128,S=!0,y0(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=ei(),r.sibling=null,u=Ci.current,u=S?u&Gy|d5:u&Gy,W(Ci,u,a),zn&&ps(a,g.treeForkCount),r):(rr(a),null);case 22:case 23:return oa(a),ws(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&&kp(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&&oe(Am,a),null;case 24:return u=null,r!==null&&(u=r.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),ys(zi,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 H6(r,a){switch(l4(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,(a.mode&vn)!==Jt&&wo(a),a):null;case 3:return ys(zi,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 ee(a),null;case 31:if(a.memoizedState!==null){if(oa(a),a.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");bu()}return r=a.flags,r&65536?(a.flags=r&-65537|128,(a.mode&vn)!==Jt&&wo(a),a):null;case 13:if(oa(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.");bu()}return r=a.flags,r&65536?(a.flags=r&-65537|128,(a.mode&vn)!==Jt&&wo(a),a):null;case 19:return oe(Ci,a),null;case 4:return ae(a),null;case 10:return ys(a.type,a),null;case 22:case 23:return oa(a),ws(a),r!==null&&oe(Am,a),r=a.flags,r&65536?(a.flags=r&-65537|128,(a.mode&vn)!==Jt&&wo(a),a):null;case 24:return ys(zi,a),null;case 25:return null;default:return null}}function q6(r,a){switch(l4(a),a.tag){case 3:ys(zi,a),ae(a);break;case 26:case 27:case 5:ee(a);break;case 4:ae(a);break;case 31:a.memoizedState!==null&&oa(a);break;case 13:oa(a);break;case 19:oe(Ci,a);break;case 10:ys(a.type,a);break;case 22:case 23:oa(a),ws(a),r!==null&&oe(Am,a);break;case 24:ys(zi,a)}}function _s(r){return(r.mode&vn)!==Jt}function L4(r,a){_s(r)?(Ko(),Yf(a,r),vs()):Yf(a,r)}function Gf(r,a,u){_s(r)?(Ko(),Ru(u,r,a),vs()):Ru(u,r,a)}function Yf(r,a){try{var u=a.updateQueue,g=u!==null?u.lastEffect:null;if(g!==null){var S=g.next;u=S;do{if((u.tag&r)===r&&(g=void 0,(r&zo)!==QE&&(tv=!0),g=$e(a,Zce,u),(r&zo)!==QE&&(tv=!1),g!==void 0&&typeof g!="function")){var E=void 0;E=(u.tag&jl)!==0?"useLayoutEffect":(u.tag&zo)!==0?"useInsertionEffect":"useEffect";var M=void 0;M=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,$e(a,function(D,H){console.error("%s must not return anything besides a function, which is used for clean-up.%s",D,H)},E,M)}u=u.next}while(u!==S)}}catch(D){Gn(a,a.return,D)}}function Ru(r,a,u){try{var g=a.updateQueue,S=g!==null?g.lastEffect:null;if(S!==null){var E=S.next;g=E;do{if((g.tag&r)===r){var M=g.inst,D=M.destroy;D!==void 0&&(M.destroy=void 0,(r&zo)!==QE&&(tv=!0),S=a,$e(S,Jce,S,u,D),(r&zo)!==QE&&(tv=!1))}g=g.next}while(g!==E)}}catch(H){Gn(a,a.return,H)}}function B4(r,a){_s(r)?(Ko(),Yf(a,r),vs()):Yf(a,r)}function L1(r,a,u){_s(r)?(Ko(),Ru(u,r,a),vs()):Ru(u,r,a)}function v0(r){var a=r.updateQueue;if(a!==null){var u=r.stateNode;r.type.defaultProps||"ref"in r.memoizedProps||Qy||(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.",le(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.",le(r)||"instance"));try{$e(r,u1,a,u)}catch(g){Gn(r,r.return,g)}}}function F6(r,a,u){return r.getSnapshotBeforeUpdate(a,u)}function V4(r,a){var u=a.memoizedProps,g=a.memoizedState;a=r.stateNode,r.type.defaultProps||"ref"in r.memoizedProps||Qy||(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.",le(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.",le(r)||"instance"));try{var S=Mu(r.type,u),E=$e(r,F6,a,S,g);u=yL,E!==void 0||u.has(r.type)||(u.add(r.type),$e(r,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",le(r))})),a.__reactInternalSnapshotBeforeUpdate=E}catch(M){Gn(r,r.return,M)}}function U4(r,a,u){u.props=Mu(r.type,r.memoizedProps),u.state=r.memoizedState,_s(r)?(Ko(),$e(r,LI,r,a,u),vs()):$e(r,LI,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(_s(r))try{Ko(),r.refCleanup=a(u)}finally{vs()}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().",le(r)),a.current=u}}function Xf(r,a){try{$e(r,P4,r)}catch(u){Gn(r,a,u)}}function Nl(r,a){var u=r.ref,g=r.refCleanup;if(u!==null)if(typeof g=="function")try{if(_s(r))try{Ko(),$e(r,g)}finally{vs(r)}else $e(r,g)}catch(S){Gn(r,a,S)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof u=="function")try{if(_s(r))try{Ko(),$e(r,u,null)}finally{vs(r)}else $e(r,u,null)}catch(S){Gn(r,a,S)}else u.current=null}function $4(r,a,u,g){var S=r.memoizedProps,E=S.id,M=S.onCommit;S=S.onRender,a=a===null?"mount":"update",qE&&(a="nested-update"),typeof S=="function"&&S(E,a,r.actualDuration,r.treeBaseDuration,r.actualStartTime,u),typeof M=="function"&&M(E,a,g,u)}function Wf(r,a,u,g){var S=r.memoizedProps;r=S.id,S=S.onPostCommit,a=a===null?"mount":"update",qE&&(a="nested-update"),typeof S=="function"&&S(r,a,g,u)}function j4(r){var a=r.type,u=r.memoizedProps,g=r.stateNode;try{$e(r,iE,g,a,u,r)}catch(S){Gn(r,r.return,S)}}function B1(r,a,u){try{$e(r,pS,r.stateNode,r.type,u,a,r)}catch(g){Gn(r,r.return,g)}}function H4(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&zu(r.type)||r.tag===4}function b0(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&&zu(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?(oE(u),(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(r,a)):(oE(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=qi));else if(g!==4&&(g===27&&zu(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 S0(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&&zu(r.type)&&(u=r.stateNode),r=r.child,r!==null))for(S0(r,a,u),r=r.sibling;r!==null;)S0(r,a,u),r=r.sibling}function G6(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=b0(r),S0(r,u,a);break;case 5:u=a.stateNode,a.flags&32&&(aE(u),a.flags&=-33),a=b0(r),S0(r,a,u);break;case 3:case 4:a=a.stateNode.containerInfo,u=b0(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{$e(r,Jp,r.type,u,a,r)}catch(g){Gn(r,r.return,g)}}function Y6(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 F4(r,a){if(r=r.containerInfo,ZA=T7,r=O6(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 S=g.anchorOffset,E=g.focusNode;g=g.focusOffset;try{u.nodeType,E.nodeType}catch{u=null;break e}var M=0,D=-1,H=-1,Q=0,we=0,Ce=r,me=null;t:for(;;){for(var Ve;Ce!==u||S!==0&&Ce.nodeType!==3||(D=M+S),Ce!==E||g!==0&&Ce.nodeType!==3||(H=M+g),Ce.nodeType===3&&(M+=Ce.nodeValue.length),(Ve=Ce.firstChild)!==null;)me=Ce,Ce=Ve;for(;;){if(Ce===r)break t;if(me===u&&++Q===S&&(D=M),me===E&&++we===g&&(H=M),(Ve=Ce.nextSibling)!==null)break;Ce=me,me=Ce.parentNode}Ce=Ve}u=D===-1||H===-1?null:{start:D,end:H}}else u=null}u=u||{start:0,end:0}}else u=null;for(JA={focusedElem:r,selectionRange:u},T7=!1,pa=a;pa!==null;)if(a=pa,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,pa=r;else for(;pa!==null;){switch(r=a=pa,u=r.alternate,S=r.flags,r.tag){case 0:if((S&4)!==0&&(r=r.updateQueue,r=r!==null?r.events:null,r!==null))for(u=0;u<r.length;u++)S=r[u],S.ref.impl=S.nextImpl;break;case 11:case 15:break;case 1:(S&1024)!==0&&u!==null&&V4(r,u);break;case 3:if((S&1024)!==0){if(r=r.stateNode.containerInfo,u=r.nodeType,u===9)Z1(r);else if(u===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Z1(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((S&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,pa=r;break}pa=a.return}}function li(r,a,u){var g=ki(),S=xo(),E=Qo(),M=ia(),D=u.flags;switch(u.tag){case 0:case 11:case 15:Jo(r,u),D&4&&L4(u,jl|Js);break;case 1:if(Jo(r,u),D&4)if(r=u.stateNode,a===null)u.type.defaultProps||"ref"in u.memoizedProps||Qy||(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.",le(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.",le(u)||"instance")),_s(u)?(Ko(),$e(u,SA,u,r),vs()):$e(u,SA,u,r);else{var H=Mu(u.type,a.memoizedProps);a=a.memoizedState,u.type.defaultProps||"ref"in u.memoizedProps||Qy||(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.",le(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.",le(u)||"instance")),_s(u)?(Ko(),$e(u,NI,u,r,H,a,r.__reactInternalSnapshotBeforeUpdate),vs()):$e(u,NI,u,r,H,a,r.__reactInternalSnapshotBeforeUpdate)}D&64&&v0(u),D&512&&Xf(u,u.return);break;case 3:if(a=Ol(),Jo(r,u),D&64&&(D=u.updateQueue,D!==null)){if(H=null,u.child!==null)switch(u.child.tag){case 27:case 5:H=u.child.stateNode;break;case 1:H=u.child.stateNode}try{$e(u,u1,D,H)}catch(we){Gn(u,u.return,we)}}r.effectDuration+=Ya(a);break;case 27:a===null&&D&4&&q4(u);case 26:case 5:if(Jo(r,u),a===null){if(D&4)j4(u);else if(D&64){r=u.type,a=u.memoizedProps,H=u.stateNode;try{$e(u,Q1,H,r,a,u)}catch(we){Gn(u,u.return,we)}}}D&512&&Xf(u,u.return);break;case 12:if(D&4){D=Ol(),Jo(r,u),r=u.stateNode,r.effectDuration+=Tc(D);try{$e(u,$4,u,a,F0,r.effectDuration)}catch(we){Gn(u,u.return,we)}}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=ed.bind(null,u),j8(r,D))));break;case 22:if(D=u.memoizedState!==null||Ed,!D){a=a!==null&&a.memoizedState!==null||Vi,H=Ed;var Q=Vi;Ed=D,(Vi=a)&&!Q?(el(r,u,(u.subtreeFlags&8772)!==0),(u.mode&vn)!==Jt&&0<=Pt&&0<=Wt&&.05<Wt-Pt&&Kg(u,Pt,Wt)):Jo(r,u),Ed=H,Vi=Q}break;case 30:break;default:Jo(r,u)}(u.mode&vn)!==Jt&&0<=Pt&&0<=Wt&&((ui||.05<ti)&&fs(u,Pt,Wt,ti,$r),u.alternate===null&&u.return!==null&&u.return.alternate!==null&&.05<Wt-Pt&&(Y6(u.return.alternate,u.return)||cs(u,Pt,Wt,"Mount"))),Ta(g),Eo(S),$r=E,ui=M}function Ni(r){var a=r.alternate;a!==null&&(r.alternate=null,Ni(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&Me(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 Ds(r,a,u){for(u=u.child;u!==null;)G4(r,a,u),u=u.sibling}function G4(r,a,u){if(fa&&typeof fa.onCommitFiberUnmount=="function")try{fa.onCommitFiberUnmount(Vu,u)}catch(Q){Hs||(Hs=!0,console.error("React instrumentation encountered an error: %o",Q))}var g=ki(),S=xo(),E=Qo(),M=ia();switch(u.tag){case 26:Vi||Nl(u,a),Ds(r,a,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(r=u.stateNode,r.parentNode.removeChild(r));break;case 27:Vi||Nl(u,a);var D=Ui,H=fl;zu(u.type)&&(Ui=u.stateNode,fl=!1),Ds(r,a,u),$e(u,em,u.stateNode),Ui=D,fl=H;break;case 5:Vi||Nl(u,a);case 6:if(D=Ui,H=fl,Ui=null,Ds(r,a,u),Ui=D,fl=H,Ui!==null)if(fl)try{$e(u,O0,Ui,u.stateNode)}catch(Q){Gn(u,a,Q)}else try{$e(u,lE,Ui,u.stateNode)}catch(Q){Gn(u,a,Q)}break;case 18:Ui!==null&&(fl?(r=Ui,Kp(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,u.stateNode),N0(r)):Kp(Ui,u.stateNode));break;case 4:D=Ui,H=fl,Ui=u.stateNode.containerInfo,fl=!0,Ds(r,a,u),Ui=D,fl=H;break;case 0:case 11:case 14:case 15:Ru(zo,u,a),Vi||Gf(u,a,jl),Ds(r,a,u);break;case 1:Vi||(Nl(u,a),D=u.stateNode,typeof D.componentWillUnmount=="function"&&U4(u,a,D)),Ds(r,a,u);break;case 21:Ds(r,a,u);break;case 22:Vi=(D=Vi)||u.memoizedState!==null,Ds(r,a,u),Vi=D;break;default:Ds(r,a,u)}(u.mode&vn)!==Jt&&0<=Pt&&0<=Wt&&(ui||.05<ti)&&fs(u,Pt,Wt,ti,$r),Ta(g),Eo(S),$r=E,ui=M}function Y4(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{$e(a,yS,r)}catch(u){Gn(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{$e(a,$c,r)}catch(u){Gn(a,a.return,u)}}function Np(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new vL),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new vL),a;default:throw Error("Unexpected Suspense handler tag ("+r.tag+"). This is a bug in React.")}}function zp(r,a){var u=Np(r);a.forEach(function(g){if(!u.has(g)){if(u.add(g),ul)if(Ky!==null&&Zy!==null)Bs(Zy,Ky);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var S=Du.bind(null,r,g);g.then(S,S)}})}function Wi(r,a){var u=a.deletions;if(u!==null)for(var g=0;g<u.length;g++){var S=r,E=a,M=u[g],D=ki(),H=E;e:for(;H!==null;){switch(H.tag){case 27:if(zu(H.type)){Ui=H.stateNode,fl=!1;break e}break;case 5:Ui=H.stateNode,fl=!1;break e;case 3:case 4:Ui=H.stateNode.containerInfo,fl=!0;break e}H=H.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.");G4(S,E,M),Ui=null,fl=!1,(M.mode&vn)!==Jt&&0<=Pt&&0<=Wt&&.05<Wt-Pt&&cs(M,Pt,Wt,"Unmount"),Ta(D),S=M,E=S.alternate,E!==null&&(E.return=null),S.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)W4(a,r),a=a.sibling}function W4(r,a){var u=ki(),g=xo(),S=Qo(),E=ia(),M=r.alternate,D=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:Wi(a,r),to(r),D&4&&(Ru(zo|Js,r,r.return),Yf(zo|Js,r),Gf(r,r.return,jl|Js));break;case 1:if(Wi(a,r),to(r),D&512&&(Vi||M===null||Nl(M,M.return)),D&64&&Ed&&(D=r.updateQueue,D!==null&&(M=D.callbacks,M!==null))){var H=D.shared.hiddenCallbacks;D.shared.hiddenCallbacks=H===null?M:H.concat(M)}break;case 26:if(H=ju,Wi(a,r),to(r),D&512&&(Vi||M===null||Nl(M,M.return)),D&4){var Q=M!==null?M.memoizedState:null;if(D=r.memoizedState,M===null)if(D===null)if(r.stateNode===null){e:{D=r.type,M=r.memoizedProps,H=H.ownerDocument||H;t:switch(D){case"title":Q=H.getElementsByTagName("title")[0],(!Q||Q[pm]||Q[ta]||Q.namespaceURI===Mn||Q.hasAttribute("itemprop"))&&(Q=H.createElement(D),H.head.insertBefore(Q,H.querySelector("head > title"))),Bn(Q,D,M),Q[ta]=r,St(Q),D=Q;break e;case"link":var we=gE("link","href",H).get(D+(M.href||""));if(we){for(var Ce=0;Ce<we.length;Ce++)if(Q=we[Ce],Q.getAttribute("href")===(M.href==null||M.href===""?null:M.href)&&Q.getAttribute("rel")===(M.rel==null?null:M.rel)&&Q.getAttribute("title")===(M.title==null?null:M.title)&&Q.getAttribute("crossorigin")===(M.crossOrigin==null?null:M.crossOrigin)){we.splice(Ce,1);break t}}Q=H.createElement(D),Bn(Q,D,M),H.head.appendChild(Q);break;case"meta":if(we=gE("meta","content",H).get(D+(M.content||""))){for(Ce=0;Ce<we.length;Ce++)if(Q=we[Ce],vt(M.content,"content"),Q.getAttribute("content")===(M.content==null?null:""+M.content)&&Q.getAttribute("name")===(M.name==null?null:M.name)&&Q.getAttribute("property")===(M.property==null?null:M.property)&&Q.getAttribute("http-equiv")===(M.httpEquiv==null?null:M.httpEquiv)&&Q.getAttribute("charset")===(M.charSet==null?null:M.charSet)){we.splice(Ce,1);break t}}Q=H.createElement(D),Bn(Q,D,M),H.head.appendChild(Q);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+D+'". This is a bug in React.')}Q[ta]=r,St(Q),D=Q}r.stateNode=D}else ES(H,r.type,r.stateNode);else r.stateNode=ry(H,D,r.memoizedProps);else Q!==D?(Q===null?M.stateNode!==null&&(M=M.stateNode,M.parentNode.removeChild(M)):Q.count--,D===null?ES(H,r.type,r.stateNode):ry(H,D,r.memoizedProps)):D===null&&r.stateNode!==null&&B1(r,r.memoizedProps,M.memoizedProps)}break;case 27:Wi(a,r),to(r),D&512&&(Vi||M===null||Nl(M,M.return)),M!==null&&D&4&&B1(r,r.memoizedProps,M.memoizedProps);break;case 5:if(Wi(a,r),to(r),D&512&&(Vi||M===null||Nl(M,M.return)),r.flags&32){H=r.stateNode;try{$e(r,aE,H)}catch(wt){Gn(r,r.return,wt)}}D&4&&r.stateNode!=null&&(H=r.memoizedProps,B1(r,H,M!==null?M.memoizedProps:H)),D&1024&&(NA=!0,r.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Wi(a,r),to(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,M=M!==null?M.memoizedProps:D,H=r.stateNode;try{$e(r,$8,H,M,D)}catch(wt){Gn(r,r.return,wt)}}break;case 3:if(H=Ol(),x7=null,Q=ju,ju=tm(a.containerInfo),Wi(a,r),ju=Q,to(r),D&4&&M!==null&&M.memoizedState.isDehydrated)try{$e(r,ny,a.containerInfo)}catch(wt){Gn(r,r.return,wt)}NA&&(NA=!1,Ip(r)),a.effectDuration+=Ya(H);break;case 4:D=ju,ju=tm(r.stateNode.containerInfo),Wi(a,r),to(r),ju=D;break;case 12:D=Ol(),Wi(a,r),to(r),r.stateNode.effectDuration+=Tc(D);break;case 31:Wi(a,r),to(r),D&4&&(D=r.updateQueue,D!==null&&(r.updateQueue=null,zp(r,D)));break;case 13:Wi(a,r),to(r),r.child.flags&8192&&r.memoizedState!==null!=(M!==null&&M.memoizedState!==null)&&(o7=ei()),D&4&&(D=r.updateQueue,D!==null&&(r.updateQueue=null,zp(r,D)));break;case 22:H=r.memoizedState!==null;var me=M!==null&&M.memoizedState!==null,Ve=Ed,gt=Vi;if(Ed=Ve||H,Vi=gt||me,Wi(a,r),Vi=gt,Ed=Ve,me&&!H&&!Ve&&!gt&&(r.mode&vn)!==Jt&&0<=Pt&&0<=Wt&&.05<Wt-Pt&&Kg(r,Pt,Wt),to(r),D&8192)e:for(a=r.stateNode,a._visibility=H?a._visibility&~QS:a._visibility|QS,!H||M===null||me||Ed||Vi||(zc(r),(r.mode&vn)!==Jt&&0<=Pt&&0<=Wt&&.05<Wt-Pt&&cs(r,Pt,Wt,"Disconnect")),M=null,a=r;;){if(a.tag===5||a.tag===26){if(M===null){me=M=a;try{Q=me.stateNode,H?$e(me,uE,Q):$e(me,dE,me.stateNode,me.memoizedProps)}catch(wt){Gn(me,me.return,wt)}}}else if(a.tag===6){if(M===null){me=a;try{we=me.stateNode,H?$e(me,cE,we):$e(me,K1,we,me.memoizedProps)}catch(wt){Gn(me,me.return,wt)}}}else if(a.tag===18){if(M===null){me=a;try{Ce=me.stateNode,H?$e(me,sE,Ce):$e(me,fE,me.stateNode)}catch(wt){Gn(me,me.return,wt)}}}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;M===a&&(M=null),a=a.return}M===a&&(M=null),a.sibling.return=a.return,a=a.sibling}D&4&&(D=r.updateQueue,D!==null&&(M=D.retryQueue,M!==null&&(D.retryQueue=null,zp(r,M))));break;case 19:Wi(a,r),to(r),D&4&&(D=r.updateQueue,D!==null&&(r.updateQueue=null,zp(r,D)));break;case 30:break;case 21:break;default:Wi(a,r),to(r)}(r.mode&vn)!==Jt&&0<=Pt&&0<=Wt&&((ui||.05<ti)&&fs(r,Pt,Wt,ti,$r),r.alternate===null&&r.return!==null&&r.return.alternate!==null&&.05<Wt-Pt&&(Y6(r.return.alternate,r.return)||cs(r,Pt,Wt,"Mount"))),Ta(u),Eo(g),$r=S,ui=E}function to(r){var a=r.flags;if(a&2){try{$e(r,G6,r)}catch(u){Gn(r,r.return,u)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function Ip(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;Ip(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=ki(),u=xo(),g=Qo(),S=ia();switch(r.tag){case 0:case 11:case 14:case 15:Gf(r,r.return,jl),zc(r);break;case 1:Nl(r,r.return);var E=r.stateNode;typeof E.componentWillUnmount=="function"&&U4(r,r.return,E),zc(r);break;case 27:$e(r,em,r.stateNode);case 26:case 5:Nl(r,r.return),zc(r);break;case 22:r.memoizedState===null&&zc(r);break;case 30:zc(r);break;default:zc(r)}(r.mode&vn)!==Jt&&0<=Pt&&0<=Wt&&(ui||.05<ti)&&fs(r,Pt,Wt,ti,$r),Ta(a),Eo(u),$r=g,ui=S}function zc(r){for(r=r.child;r!==null;)Q4(r),r=r.sibling}function K4(r,a,u,g){var S=ki(),E=xo(),M=Qo(),D=ia(),H=u.flags;switch(u.tag){case 0:case 11:case 15:el(r,u,g),L4(u,jl);break;case 1:if(el(r,u,g),a=u.stateNode,typeof a.componentDidMount=="function"&&$e(u,SA,u,a),a=u.updateQueue,a!==null){r=u.stateNode;try{$e(u,up,a,r)}catch(Q){Gn(u,u.return,Q)}}g&&H&64&&v0(u),Xf(u,u.return);break;case 27:q4(u);case 26:case 5:el(r,u,g),g&&a===null&&H&4&&j4(u),Xf(u,u.return);break;case 12:if(g&&H&4){H=Ol(),el(r,u,g),g=u.stateNode,g.effectDuration+=Tc(H);try{$e(u,$4,u,a,F0,g.effectDuration)}catch(Q){Gn(u,u.return,Q)}}else el(r,u,g);break;case 31:el(r,u,g),g&&H&4&&Y4(r,u);break;case 13:el(r,u,g),g&&H&4&&X4(r,u);break;case 22:u.memoizedState===null&&el(r,u,g),Xf(u,u.return);break;case 30:break;default:el(r,u,g)}(u.mode&vn)!==Jt&&0<=Pt&&0<=Wt&&(ui||.05<ti)&&fs(u,Pt,Wt,ti,$r),Ta(S),Eo(E),$r=M,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 Lp(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&&Nf(r),u!=null&&np(u))}function Bp(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(Nf(a),r!=null&&np(r))}function tl(r,a,u,g,S){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;U1(r,a,u,g,E!==null?E.actualStartTime:S),a=E}}function U1(r,a,u,g,S){var E=ki(),M=xo(),D=Qo(),H=ia(),Q=$0,we=a.flags;switch(a.tag){case 0:case 11:case 15:(a.mode&vn)!==Jt&&0<a.actualStartTime&&(a.flags&1)!==0&&Zg(a,a.actualStartTime,S,na,u),tl(r,a,u,g,S),we&2048&&B4(a,Io|Js);break;case 1:(a.mode&vn)!==Jt&&0<a.actualStartTime&&((a.flags&128)!==0?Jg(a,a.actualStartTime,S,[]):(a.flags&1)!==0&&Zg(a,a.actualStartTime,S,na,u)),tl(r,a,u,g,S);break;case 3:var Ce=Ol(),me=na;na=a.alternate!==null&&a.alternate.memoizedState.isDehydrated&&(a.flags&256)===0,tl(r,a,u,g,S),na=me,we&2048&&(u=null,a.alternate!==null&&(u=a.alternate.memoizedState.cache),g=a.memoizedState.cache,g!==u&&(Nf(g),u!=null&&np(u))),r.passiveEffectDuration+=Ya(Ce);break;case 12:if(we&2048){we=Ol(),tl(r,a,u,g,S),r=a.stateNode,r.passiveEffectDuration+=Tc(we);try{$e(a,Wf,a,a.alternate,F0,r.passiveEffectDuration)}catch(Ve){Gn(a,a.return,Ve)}}else tl(r,a,u,g,S);break;case 31:we=na,Ce=a.alternate!==null?a.alternate.memoizedState:null,me=a.memoizedState,Ce!==null&&me===null?(me=a.deletions,me!==null&&0<me.length&&me[0].tag===18?(na=!1,Ce=Ce.hydrationErrors,Ce!==null&&Jg(a,a.actualStartTime,S,Ce)):na=!0):na=!1,tl(r,a,u,g,S),na=we;break;case 13:we=na,Ce=a.alternate!==null?a.alternate.memoizedState:null,me=a.memoizedState,Ce===null||Ce.dehydrated===null||me!==null&&me.dehydrated!==null?na=!1:(me=a.deletions,me!==null&&0<me.length&&me[0].tag===18?(na=!1,Ce=Ce.hydrationErrors,Ce!==null&&Jg(a,a.actualStartTime,S,Ce)):na=!0),tl(r,a,u,g,S),na=we;break;case 23:break;case 22:me=a.stateNode,Ce=a.alternate,a.memoizedState!==null?me._visibility&dd?tl(r,a,u,g,S):x0(r,a,u,g,S):me._visibility&dd?tl(r,a,u,g,S):(me._visibility|=dd,_u(r,a,u,g,(a.subtreeFlags&10256)!==0||a.actualDuration!==0&&(a.alternate===null||a.alternate.child!==a.child),S),(a.mode&vn)===Jt||na||(r=a.actualStartTime,0<=r&&.05<S-r&&Kg(a,r,S),0<=Pt&&0<=Wt&&.05<Wt-Pt&&Kg(a,Pt,Wt))),we&2048&&Lp(Ce,a);break;case 24:tl(r,a,u,g,S),we&2048&&Bp(a.alternate,a);break;default:tl(r,a,u,g,S)}(a.mode&vn)!==Jt&&((r=!na&&a.alternate===null&&a.return!==null&&a.return.alternate!==null)&&(u=a.actualStartTime,0<=u&&.05<S-u&&cs(a,u,S,"Mount")),0<=Pt&&0<=Wt&&((ui||.05<ti)&&fs(a,Pt,Wt,ti,$r),r&&.05<Wt-Pt&&cs(a,Pt,Wt,"Mount"))),Ta(E),Eo(M),$r=D,ui=H,$0=Q}function _u(r,a,u,g,S,E){for(S=S&&((a.subtreeFlags&10256)!==0||a.actualDuration!==0&&(a.alternate===null||a.alternate.child!==a.child)),a=a.child;a!==null;){var M=a.sibling;P1(r,a,u,g,S,M!==null?M.actualStartTime:E),a=M}}function P1(r,a,u,g,S,E){var M=ki(),D=xo(),H=Qo(),Q=ia(),we=$0;S&&(a.mode&vn)!==Jt&&0<a.actualStartTime&&(a.flags&1)!==0&&Zg(a,a.actualStartTime,E,na,u);var Ce=a.flags;switch(a.tag){case 0:case 11:case 15:_u(r,a,u,g,S,E),B4(a,Io);break;case 23:break;case 22:var me=a.stateNode;a.memoizedState!==null?me._visibility&dd?_u(r,a,u,g,S,E):x0(r,a,u,g,E):(me._visibility|=dd,_u(r,a,u,g,S,E)),S&&Ce&2048&&Lp(a.alternate,a);break;case 24:_u(r,a,u,g,S,E),S&&Ce&2048&&Bp(a.alternate,a);break;default:_u(r,a,u,g,S,E)}(a.mode&vn)!==Jt&&0<=Pt&&0<=Wt&&(ui||.05<ti)&&fs(a,Pt,Wt,ti,$r),Ta(M),Eo(D),$r=H,ui=Q,$0=we}function x0(r,a,u,g,S){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 M=r,D=u,H=g,Q=a!==null?a.actualStartTime:S,we=$0;(E.mode&vn)!==Jt&&0<E.actualStartTime&&(E.flags&1)!==0&&Zg(E,E.actualStartTime,Q,na,D);var Ce=E.flags;switch(E.tag){case 22:x0(M,E,D,H,Q),Ce&2048&&Lp(E.alternate,E);break;case 24:x0(M,E,D,H,Q),Ce&2048&&Bp(E.alternate,E);break;default:x0(M,E,D,H,Q)}$0=we,E=a}}function Ic(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:Ic(r,a,u),r.flags&g5&&r.memoizedState!==null&&oy(u,ju,r.memoizedState,r.memoizedProps);break;case 5:Ic(r,a,u);break;case 3:case 4:var g=ju;ju=tm(r.stateNode.containerInfo),Ic(r,a,u),ju=g;break;case 22:r.memoizedState===null&&(g=r.alternate,g!==null&&g.memoizedState!==null?(g=g5,g5=16777216,Ic(r,a,u),g5=g):Ic(r,a,u));break;default:Ic(r,a,u)}}function ks(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 Qf(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],S=ki();pa=g,$1(g,r),(g.mode&vn)!==Jt&&0<=Pt&&0<=Wt&&.05<Wt-Pt&&cs(g,Pt,Wt,"Unmount"),Ta(S)}ks(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)X6(r),r=r.sibling}function X6(r){var a=ki(),u=xo(),g=Qo(),S=ia();switch(r.tag){case 0:case 11:case 15:Qf(r),r.flags&2048&&L1(r,r.return,Io|Js);break;case 3:var E=Ol();Qf(r),r.stateNode.passiveEffectDuration+=Ya(E);break;case 12:E=Ol(),Qf(r),r.stateNode.passiveEffectDuration+=Tc(E);break;case 22:E=r.stateNode,r.memoizedState!==null&&E._visibility&dd&&(r.return===null||r.return.tag!==13)?(E._visibility&=~dd,Vp(r),(r.mode&vn)!==Jt&&0<=Pt&&0<=Wt&&.05<Wt-Pt&&cs(r,Pt,Wt,"Disconnect")):Qf(r);break;default:Qf(r)}(r.mode&vn)!==Jt&&0<=Pt&&0<=Wt&&(ui||.05<ti)&&fs(r,Pt,Wt,ti,$r),Ta(a),Eo(u),ui=S,$r=g}function Vp(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],S=ki();pa=g,$1(g,r),(g.mode&vn)!==Jt&&0<=Pt&&0<=Wt&&.05<Wt-Pt&&cs(g,Pt,Wt,"Unmount"),Ta(S)}ks(r)}for(r=r.child;r!==null;)Ns(r),r=r.sibling}function Ns(r){var a=ki(),u=xo(),g=Qo(),S=ia();switch(r.tag){case 0:case 11:case 15:L1(r,r.return,Io),Vp(r);break;case 22:var E=r.stateNode;E._visibility&dd&&(E._visibility&=~dd,Vp(r));break;default:Vp(r)}(r.mode&vn)!==Jt&&0<=Pt&&0<=Wt&&(ui||.05<ti)&&fs(r,Pt,Wt,ti,$r),Ta(a),Eo(u),ui=S,$r=g}function $1(r,a){for(;pa!==null;){var u=pa,g=u,S=a,E=ki(),M=xo(),D=Qo(),H=ia();switch(g.tag){case 0:case 11:case 15:L1(g,S,Io);break;case 23:case 22:g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(S=g.memoizedState.cachePool.pool,S!=null&&Nf(S));break;case 24:np(g.memoizedState.cache)}if((g.mode&vn)!==Jt&&0<=Pt&&0<=Wt&&(ui||.05<ti)&&fs(g,Pt,Wt,ti,$r),Ta(E),Eo(M),ui=H,$r=D,g=u.child,g!==null)g.return=u,pa=g;else e:for(u=r;pa!==null;){if(g=pa,E=g.sibling,M=g.return,Ni(g),g===u){pa=null;break e}if(E!==null){E.return=M,pa=E;break e}pa=M}}}function W6(){ife.forEach(function(r){return r()})}function Up(){var r=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return r||qe.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),r}function Qi(r){if((qn&ra)!==ma&&Sn!==0)return Sn&-Sn;var a=qe.T;return a!==null?(a._updatedFibers||(a._updatedFibers=new Set),a._updatedFibers.add(r),jn()):fr()}function Er(){if(hl===0)if((Sn&536870912)===0||zn){var r=V0;V0<<=1,(V0&3932160)===0&&(V0=262144),hl=r}else hl=536870912;return r=$l.current,r!==null&&(r.flags|=32),hl}function Pr(r,a,u){if(tv&&console.error("useInsertionEffect must not schedule updates."),qA&&(c7=!0),(r===Tr&&(mr===Dm||mr===km)||r.cancelPendingCommit!==null)&&(Ma(r,0),Oa(r,Sn,hl,!1)),mt(r,u),(qn&ra)!==ma&&r===Tr){if(sl)switch(a.tag){case 0:case 11:case 15:r=An&&le(An)||"Unknown",NL.has(r)||(NL.add(r),a=le(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:kL||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),kL=!0)}}else ul&&Fn(r,a,u),qp(a),r===Tr&&((qn&ra)===ma&&(J0|=u),ni===Q0&&Oa(r,Sn,hl,!1)),_a(r)}function Q6(r,a,u){if((qn&(ra|Hl))!==ma)throw Error("Should not already be working.");if(Sn!==0&&An!==null){var g=An,S=ei();switch(AI){case b5:case Dm:var E=n5;Ir&&((g=g._debugTask)?g.run(console.timeStamp.bind(console,"Suspended",E,S,Fs,void 0,"primary-light")):console.timeStamp("Suspended",E,S,Fs,void 0,"primary-light"));break;case km:E=n5,Ir&&((g=g._debugTask)?g.run(console.timeStamp.bind(console,"Action",E,S,Fs,void 0,"primary-light")):console.timeStamp("Action",E,S,Fs,void 0,"primary-light"));break;default:Ir&&(g=S-n5,3>g||console.timeStamp("Blocked",n5,S,Fs,void 0,5>g?"primary-light":10>g?"primary":100>g?"primary-dark":"error"))}}E=(u=!u&&(a&127)===0&&(a&r.expiredLanes)===0||nt(r,a))?gi(r,a):F1(r,a,!0);var M=u;do{if(E===wd){Jy&&!u&&Oa(r,a,0,!1),a=mr,n5=Ii(),AI=a;break}else{if(g=ei(),S=r.current.alternate,M&&!Pp(S)){bo(a),S=ha,E=g,!Ir||E<=S||(yi?yi.run(console.timeStamp.bind(console,"Teared Render",S,E,Pn,Vn,"error")):console.timeStamp("Teared Render",S,E,Pn,Vn,"error")),zl(a,g),E=F1(r,a,!1),M=!1;continue}if(E===_m){if(M=a,r.errorRecoveryDisabledLanes&M)var D=0;else D=r.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){bo(a),t4(ha,g,a,yi),zl(a,g),a=D;e:{g=r,E=M,M=x5;var H=g.current.memoizedState.isDehydrated;if(H&&(Ma(g,D).flags|=256),D=F1(g,D,!1),D!==_m){if(LA&&!H){g.errorRecoveryDisabledLanes|=E,J0|=E,E=Q0;break e}g=Lo,Lo=M,g!==null&&(Lo===null?Lo=g:Lo.push.apply(Lo,g))}E=D}if(M=!1,E!==_m)continue;g=ei()}}if(E===v5){bo(a),t4(ha,g,a,yi),zl(a,g),Ma(r,0),Oa(r,a,0,!0);break}e:{switch(u=r,E){case wd:case v5:throw Error("Root did not complete. This is a bug in React.");case Q0:if((a&4194048)!==a)break;case n7:bo(a),_6(ha,g,a,yi),zl(a,g),S=a,(S&127)!==0?$E=g:(S&4194048)!==0&&(jE=g),Oa(u,a,hl,!K0);break e;case _m:Lo=null;break;case t7:case bL:break;default:throw Error("Unknown root exit status.")}if(qe.actQueue!==null)ua(u,S,a,Lo,E5,a7,hl,J0,Nm,E,null,null,ha,g);else{if((a&62914560)===a&&(M=o7+EL-ei(),10<M)){if(Oa(u,a,hl,!K0),$t(u,0,!0)!==0)break e;Hu=a,u.timeoutHandle=$L(J4.bind(null,u,S,Lo,E5,a7,a,hl,J0,Nm,K0,E,"Throttled",ha,g),M);break e}J4(u,S,Lo,E5,a7,a,hl,J0,Nm,K0,E,null,ha,g)}}}break}while(!0);_a(r)}function J4(r,a,u,g,S,E,M,D,H,Q,we,Ce,me,Ve){r.timeoutHandle=Vm;var gt=a.subtreeFlags,wt=null;if((gt&8192||(gt&16785408)===16785408)&&(wt={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:qi},Z4(a,E,wt),gt=(E&62914560)===E?o7-ei():(E&4194048)===E?xL-ei():0,gt=wS(wt,gt),gt!==null)){Hu=E,r.cancelPendingCommit=gt(ua.bind(null,r,a,E,u,g,S,M,D,H,we,wt,wt.waitingForViewTransition?"Waiting for the previous Animation":0<wt.count?0<wt.imgCount?"Suspended on CSS and Images":"Suspended on CSS":wt.imgCount===1?"Suspended on an Image":0<wt.imgCount?"Suspended on Images":null,me,Ve)),Oa(r,E,M,!Q);return}ua(r,a,E,u,g,S,M,D,H,we,wt,Ce,me,Ve)}function Pp(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 S=u[g],E=S.getSnapshot;S=S.value;try{if(!ko(E(),S))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 Oa(r,a,u,g){a&=~BA,a&=~J0,r.suspendedLanes|=a,r.pingedLanes&=~a,g&&(r.warmLanes|=a),g=r.expirationTimes;for(var S=a;0<S;){var E=31-Ji(S),M=1<<E;g[E]=-1,S&=~M}u!==0&&bt(r,u,a)}function Kf(){return(qn&(ra|Hl))===ma?(w0(0),!1):!0}function j1(){if(An!==null){if(mr===dl)var r=An.return;else r=An,xc(),Oc(r),qy=null,f5=0,r=An;for(;r!==null;)q6(r.alternate,r),r=r.return;An=null}}function zl(r,a){(r&127)!==0&&(xm=a),(r&4194048)!==0&&(yd=a),(r&62914560)!==0&&(wI=a),(r&2080374784)!==0&&(TI=a)}function Ma(r,a){Ir&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",Vn,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",Vn,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",Vn,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",Vn,"primary-light"));var u=ha;if(ha=Ii(),Sn!==0&&0<u){if(bo(Sn),ni===t7||ni===Q0)_6(u,ha,a,yi);else{var g=ha,S=yi;if(Ir&&!(g<=u)){var E=(a&738197653)===a?"tertiary-dark":"primary-dark",M=(a&536870912)===a?"Prewarm":(a&201326741)===a?"Interrupted Hydration":"Interrupted Render";S?S.run(console.timeStamp.bind(console,M,u,g,Pn,Vn,E)):console.timeStamp(M,u,g,Pn,Vn,E)}}zl(Sn,ha)}if(u=yi,yi=null,(a&127)!==0){yi=JS,S=0<=Gc&&Gc<xm?xm:Gc,g=0<=Em&&Em<xm?xm:Em,E=0<=g?g:0<=S?S:ha,0<=$E?(bo(2),D6($E,E,a,u)):HE&127,u=S;var D=g,H=e5,Q=0<$y,we=G0===ZS,Ce=G0===PE;if(S=ha,g=JS,E=mA,M=gA,Ir){if(Pn="Blocking",0<u?u>S&&(u=S):u=S,0<D?D>u&&(D=u):D=u,H!==null&&u>D){var me=Q?"secondary-light":"warning";g?g.run(console.timeStamp.bind(console,Q?"Consecutive":"Event: "+H,D,u,Pn,Vn,me)):console.timeStamp(Q?"Consecutive":"Event: "+H,D,u,Pn,Vn,me)}S>u&&(D=we?"error":(a&738197653)===a?"tertiary-light":"primary-light",we=Ce?"Promise Resolved":we?"Cascading Update":5<S-u?"Update Blocked":"Update",Ce=[],M!=null&&Ce.push(["Component name",M]),E!=null&&Ce.push(["Method name",E]),u={start:u,end:S,detail:{devtools:{properties:Ce,track:Pn,trackGroup:Vn,color:D}}},g?g.run(performance.measure.bind(performance,we,u)):performance.measure(we,u))}Gc=-1.1,G0=0,gA=mA=null,$E=-1.1,$y=Em,Em=-1.1,xm=Ii()}if((a&4194048)!==0&&(yi=t5,S=0<=vd&&vd<yd?yd:vd,u=0<=Ks&&Ks<yd?yd:Ks,g=0<=Y0&&Y0<yd?yd:Y0,E=0<=g?g:0<=u?u:ha,0<=jE?(bo(256),D6(jE,E,a,yi)):HE&4194048,Ce=g,D=wm,H=0<X0,Q=yA===PE,E=ha,g=t5,M=xI,we=EI,Ir&&(Pn="Transition",0<u?u>E&&(u=E):u=E,0<S?S>u&&(S=u):S=u,0<Ce?Ce>S&&(Ce=S):Ce=S,S>Ce&&D!==null&&(me=H?"secondary-light":"warning",g?g.run(console.timeStamp.bind(console,H?"Consecutive":"Event: "+D,Ce,S,Pn,Vn,me)):console.timeStamp(H?"Consecutive":"Event: "+D,Ce,S,Pn,Vn,me)),u>S&&(g?g.run(console.timeStamp.bind(console,"Action",S,u,Pn,Vn,"primary-dark")):console.timeStamp("Action",S,u,Pn,Vn,"primary-dark")),E>u&&(S=Q?"Promise Resolved":5<E-u?"Update Blocked":"Update",Ce=[],we!=null&&Ce.push(["Component name",we]),M!=null&&Ce.push(["Method name",M]),u={start:u,end:E,detail:{devtools:{properties:Ce,track:Pn,trackGroup:Vn,color:"primary-light"}}},g?g.run(performance.measure.bind(performance,S,u)):performance.measure(S,u))),Ks=vd=-1.1,yA=0,jE=-1.1,X0=Y0,Y0=-1.1,yd=Ii()),(a&62914560)!==0&&(HE&62914560)!==0&&(bo(4194304),n4(wI,ha)),(a&2080374784)!==0&&(HE&2080374784)!==0&&(bo(268435456),n4(TI,ha)),u=r.timeoutHandle,u!==Vm&&(r.timeoutHandle=Vm,yfe(u)),u=r.cancelPendingCommit,u!==null&&(r.cancelPendingCommit=null,u()),Hu=0,j1(),Tr=r,An=u=ds(r.current,null),Sn=a,mr=dl,ql=null,K0=!1,Jy=nt(r,a),LA=!1,ni=wd,Nm=hl=BA=J0=Z0=0,Lo=x5=null,a7=!1,(a&8)!==0&&(a|=a&32),g=r.entangledLanes,g!==0)for(r=r.entanglements,g&=a;0<g;)S=31-Ji(g),E=1<<S,a|=r[S],g&=~E;return Xc=a,e0(),r=mI(),1e3<r-pI&&(qe.recentlyCreatedOwnerStacks=0,pI=r),Pu.discardPendingWarnings(),u}function eS(r,a){on=null,qe.H=m5,qe.getCurrentStack=null,sl=!1,Ro=null,a===Hy||a===YE?(a=op(),mr=b5):a===xA?(a=op(),mr=SL):mr=a===DA?IA:a!==null&&typeof a=="object"&&typeof a.then=="function"?S5:r7,ql=a;var u=An;u===null?(ni=v5,Cp(r,Ea(a,r.current))):u.mode&vn&&n0(u)}function H1(){var r=$l.current;return r===null?!0:(Sn&4194048)===Sn?Zs===null:(Sn&62914560)===Sn||(Sn&536870912)!==0?r===Zs:!1}function tS(){var r=qe.H;return qe.H=m5,r===null?m5:r}function q1(){var r=qe.A;return qe.A=rfe,r}function E0(r){yi===null&&(yi=r._debugTask==null?null:r._debugTask)}function Zf(){ni=Q0,K0||(Sn&4194048)!==Sn&&$l.current!==null||(Jy=!0),(Z0&134217727)===0&&(J0&134217727)===0||Tr===null||Oa(Tr,Sn,hl,!1)}function F1(r,a,u){var g=qn;qn|=ra;var S=tS(),E=q1();if(Tr!==r||Sn!==a){if(ul){var M=r.memoizedUpdaters;0<M.size&&(Bs(r,Sn),M.clear()),yn(r,a)}E5=null,Ma(r,a)}a=!1,M=ni;e:do try{if(mr!==dl&&An!==null){var D=An,H=ql;switch(mr){case IA:j1(),M=n7;break e;case b5:case Dm:case km:case S5:$l.current===null&&(a=!0);var Q=mr;if(mr=dl,ql=null,Jf(r,D,H,Q),u&&Jy){M=wd;break e}break;default:Q=mr,mr=dl,ql=null,Jf(r,D,H,Q)}}zs(),M=ni;break}catch(we){eS(r,we)}while(!0);return a&&r.shellSuspendCounter++,xc(),qn=g,qe.H=S,qe.A=E,An===null&&(Tr=null,Sn=0,e0()),M}function zs(){for(;An!==null;)rS(An)}function gi(r,a){var u=qn;qn|=ra;var g=tS(),S=q1();if(Tr!==r||Sn!==a){if(ul){var E=r.memoizedUpdaters;0<E.size&&(Bs(r,Sn),E.clear()),yn(r,a)}E5=null,l7=ei()+wL,Ma(r,a)}else Jy=nt(r,a);e:do try{if(mr!==dl&&An!==null)t:switch(a=An,E=ql,mr){case r7:mr=dl,ql=null,Jf(r,a,E,r7);break;case Dm:case km:if(To(E)){mr=dl,ql=null,wi(a);break}a=function(){mr!==Dm&&mr!==km||Tr!==r||(mr=i7),_a(r)},E.then(a,a);break e;case b5:mr=i7;break e;case SL:mr=zA;break e;case i7:To(E)?(mr=dl,ql=null,wi(a)):(mr=dl,ql=null,Jf(r,a,E,i7));break;case zA:var M=null;switch(An.tag){case 26:M=An.memoizedState;case 5:case 27:var D=An;if(M?ay(M):D.stateNode.complete){mr=dl,ql=null;var H=D.sibling;if(H!==null)An=H;else{var Q=D.return;Q!==null?(An=Q,$p(Q)):An=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}mr=dl,ql=null,Jf(r,a,E,zA);break;case S5:mr=dl,ql=null,Jf(r,a,E,S5);break;case IA:j1(),ni=n7;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}qe.actQueue!==null?zs():nS();break}catch(we){eS(r,we)}while(!0);return xc(),qe.H=g,qe.A=S,qn=u,An!==null?wd:(Tr=null,Sn=0,e0(),ni)}function nS(){for(;An!==null&&!xy();)rS(An)}function rS(r){var a=r.alternate;(r.mode&vn)!==Jt?(a1(r),a=$e(r,z1,a,r,Xc),n0(r)):a=$e(r,z1,a,r,Xc),r.memoizedProps=r.pendingProps,a===null?$p(r):An=a}function wi(r){var a=$e(r,P8,r);r.memoizedProps=r.pendingProps,a===null?$p(r):An=a}function P8(r){var a=r.alternate,u=(r.mode&vn)!==Jt;switch(u&&a1(r),r.tag){case 15:case 0:a=Ff(a,r,r.pendingProps,r.type,void 0,Sn);break;case 11:a=Ff(a,r,r.pendingProps,r.type.render,r.ref,Sn);break;case 5:Oc(r);default:q6(a,r),r=An=t0(r,Xc),a=z1(a,r,Xc)}return u&&n0(r),a}function Jf(r,a,u,g){xc(),Oc(a),qy=null,f5=0;var S=a.return;try{if(U6(r,S,a,u,Sn)){ni=v5,Cp(r,Ea(u,r.current)),An=null;return}}catch(E){if(S!==null)throw An=S,E;ni=v5,Cp(r,Ea(u,r.current)),An=null;return}a.flags&32768?(zn||g===r7?r=!0:Jy||(Sn&536870912)!==0?r=!1:(K0=r=!0,(g===Dm||g===km||g===b5||g===S5)&&(g=$l.current,g!==null&&g.tag===13&&(g.flags|=16384))),Rr(a,r)):$p(a)}function $p(r){var a=r;do{if((a.flags&32768)!==0){Rr(a,K0);return}var u=a.alternate;if(r=a.return,a1(a),u=$e(a,j6,u,a,Xc),(a.mode&vn)!==Jt&&zf(a),u!==null){An=u;return}if(a=a.sibling,a!==null){An=a;return}An=a=r}while(a!==null);ni===wd&&(ni=bL)}function Rr(r,a){do{var u=H6(r.alternate,r);if(u!==null){u.flags&=32767,An=u;return}if((r.mode&vn)!==Jt){zf(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)){An=r;return}An=r=u}while(r!==null);ni=n7,An=null}function ua(r,a,u,g,S,E,M,D,H,Q,we,Ce,me,Ve){r.cancelPendingCommit=null;do Lc();while(Pi!==th);if(Pu.flushLegacyContextWarning(),Pu.flushPendingUnsafeLifecycleWarnings(),(qn&(ra|Hl))!==ma)throw Error("Should not already be working.");if(bo(u),Q===_m?t4(me,Ve,u,yi):g!==null?L8(me,Ve,u,g,a!==null&&a.alternate!==null&&a.alternate.memoizedState.isDehydrated&&(a.flags&256)!==0,yi):I8(me,Ve,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|=cA,dt(r,u,E,M,D,H),r===Tr&&(An=Tr=null,Sn=0),ev=a,nh=r,Hu=u,PA=E,jA=S,RL=g,$A=Ve,_L=Ce,qu=s7,DL=null,a.actualDuration!==0||(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,Hp(cd,function(){return M5=window.event,qu===s7&&(qu=UA),Ra(),null})):(r.callbackNode=null,r.callbackPriority=0),gd=null,F0=Ii(),Ce!==null&&B8(Ve,F0,Ce,yi),g=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||g){g=qe.T,qe.T=null,S=Kn.p,Kn.p=Ai,M=qn,qn|=Hl;try{F4(r,a,u)}finally{qn=M,Kn.p=S,qe.T=g}}Pi=AL,Is(),iS(),aS()}}function Is(){if(Pi===AL){Pi=th;var r=nh,a=ev,u=Hu,g=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||g){g=qe.T,qe.T=null;var S=Kn.p;Kn.p=Ai;var E=qn;qn|=Hl;try{Ky=u,Zy=r,wa(),W4(a,r),Zy=Ky=null,u=JA;var M=O6(r.containerInfo),D=u.focusedElem,H=u.selectionRange;if(M!==D&&D&&D.ownerDocument&&Qg(D.ownerDocument.documentElement,D)){if(H!==null&&Jb(D)){var Q=H.start,we=H.end;if(we===void 0&&(we=Q),"selectionStart"in D)D.selectionStart=Q,D.selectionEnd=Math.min(we,D.value.length);else{var Ce=D.ownerDocument||document,me=Ce&&Ce.defaultView||window;if(me.getSelection){var Ve=me.getSelection(),gt=D.textContent.length,wt=Math.min(H.start,gt),_r=H.end===void 0?wt:Math.min(H.end,gt);!Ve.extend&&wt>_r&&(M=_r,_r=wt,wt=M);var Un=C6(D,wt),de=C6(D,_r);if(Un&&de&&(Ve.rangeCount!==1||Ve.anchorNode!==Un.node||Ve.anchorOffset!==Un.offset||Ve.focusNode!==de.node||Ve.focusOffset!==de.offset)){var ye=Ce.createRange();ye.setStart(Un.node,Un.offset),Ve.removeAllRanges(),wt>_r?(Ve.addRange(ye),Ve.extend(de.node,de.offset)):(ye.setEnd(de.node,de.offset),Ve.addRange(ye))}}}}for(Ce=[],Ve=D;Ve=Ve.parentNode;)Ve.nodeType===1&&Ce.push({element:Ve,left:Ve.scrollLeft,top:Ve.scrollTop});for(typeof D.focus=="function"&&D.focus(),D=0;D<Ce.length;D++){var Se=Ce[D];Se.element.scrollLeft=Se.left,Se.element.scrollTop=Se.top}}T7=!!ZA,JA=ZA=null}finally{qn=E,Kn.p=S,qe.T=g}}r.current=a,Pi=CL}}function iS(){if(Pi===CL){Pi=th;var r=DL;if(r!==null){F0=Ii();var a=md,u=F0;!Ir||u<=a||console.timeStamp(r,a,u,Pn,Vn,"secondary-light")}r=nh,a=ev,u=Hu;var g=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||g){g=qe.T,qe.T=null;var S=Kn.p;Kn.p=Ai;var E=qn;qn|=Hl;try{Ky=u,Zy=r,wa(),li(r,a.alternate,a),Zy=Ky=null}finally{qn=E,Kn.p=S,qe.T=g}}r=$A,a=_L,md=Ii(),r=a===null?r:F0,a=md,u=qu===VA,g=yi,gd!==null?k6(r,a,gd,!1,g):!Ir||a<=r||(g?g.run(console.timeStamp.bind(console,u?"Commit Interrupted View Transition":"Commit",r,a,Pn,Vn,u?"error":"secondary-dark")):console.timeStamp(u?"Commit Interrupted View Transition":"Commit",r,a,Pn,Vn,u?"error":"secondary-dark")),Pi=OL}}function aS(){if(Pi===ML||Pi===OL){if(Pi===ML){var r=md;md=Ii();var a=md,u=qu===VA;!Ir||a<=r||console.timeStamp(u?"Interrupted View Transition":"Starting Animation",r,a,Pn,Vn,u?" error":"secondary-light"),qu!==VA&&(qu=TL)}Pi=th,Y8(),r=nh;var g=ev;a=Hu,u=RL;var S=g.actualDuration!==0||(g.subtreeFlags&10256)!==0||(g.flags&10256)!==0;S?Pi=u7:(Pi=th,ev=nh=null,Z6(r,r.pendingLanes),zm=0,T5=null);var E=r.pendingLanes;if(E===0&&(eh=null),S||rl(r),E=Yr(a),g=g.stateNode,fa&&typeof fa.onCommitFiberRoot=="function")try{var M=(g.current.flags&128)===128;switch(E){case Ai:var D=Ey;break;case ea:D=wy;break;case _o:D=cd;break;case jc:D=dm;break;default:D=cd}fa.onCommitFiberRoot(Vu,g,D,M)}catch(Ce){Hs||(Hs=!0,console.error("React instrumentation encountered an error: %o",Ce))}if(ul&&r.memoizedUpdaters.clear(),W6(),u!==null){M=qe.T,D=Kn.p,Kn.p=Ai,qe.T=null;try{var H=r.onRecoverableError;for(g=0;g<u.length;g++){var Q=u[g],we=K6(Q.stack);$e(Q.source,H,Q.value,we)}}finally{qe.T=M,Kn.p=D}}(Hu&3)!==0&&Lc(),_a(r),E=r.pendingLanes,(a&261930)!==0&&(E&42)!==0?(FE=!0,r===HA?w5++:(w5=0,HA=r)):w5=0,S||zl(a,md),w0(0)}}function K6(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 Z6(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,np(a)))}function Lc(){return Is(),iS(),aS(),Ra()}function Ra(){if(Pi!==u7)return!1;var r=nh,a=PA;PA=0;var u=Yr(Hu),g=_o>u?_o:u;u=qe.T;var S=Kn.p;try{Kn.p=g,qe.T=null;var E=jA;jA=null,g=nh;var M=Hu;if(Pi=th,ev=nh=null,Hu=0,(qn&(ra|Hl))!==ma)throw Error("Cannot flush passive effects while already rendering.");bo(M),qA=!0,c7=!1;var D=0;if(gd=null,D=ei(),qu===TL)n4(md,D,Qce);else{var H=md,Q=D,we=qu===UA;!Ir||Q<=H||(yi?yi.run(console.timeStamp.bind(console,we?"Waiting for Paint":"Waiting",H,Q,Pn,Vn,"secondary-light")):console.timeStamp(we?"Waiting for Paint":"Waiting",H,Q,Pn,Vn,"secondary-light"))}H=qn,qn|=Hl;var Ce=g.current;wa(),X6(Ce);var me=g.current;Ce=$A,wa(),U1(g,me,M,E,Ce),rl(g),qn=H;var Ve=ei();if(me=D,Ce=yi,gd!==null?k6(me,Ve,gd,!0,Ce):!Ir||Ve<=me||(Ce?Ce.run(console.timeStamp.bind(console,"Remaining Effects",me,Ve,Pn,Vn,"secondary-dark")):console.timeStamp("Remaining Effects",me,Ve,Pn,Vn,"secondary-dark")),zl(M,Ve),w0(0,!1),c7?g===T5?zm++:(zm=0,T5=g):zm=0,c7=qA=!1,fa&&typeof fa.onPostCommitFiberRoot=="function")try{fa.onPostCommitFiberRoot(Vu,g)}catch(wt){Hs||(Hs=!0,console.error("React instrumentation encountered an error: %o",wt))}var gt=g.current.stateNode;return gt.effectDuration=0,gt.passiveEffectDuration=0,!0}finally{Kn.p=S,qe.T=u,Z6(r,a)}}function nl(r,a,u){a=Ea(u,a),Xa(a),a=w1(r.stateNode,a,2),r=Aa(r,a,2),r!==null&&(mt(r,2),_a(r))}function Gn(r,a,u){if(tv=!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"&&(eh===null||!eh.has(g))){r=Ea(u,r),Xa(r),u=T1(2),g=Aa(a,u,2),g!==null&&(Op(u,g,a,r),mt(g,2),_a(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 ca(r,a,u){var g=r.pingCache;if(g===null){g=r.pingCache=new afe;var S=new Set;g.set(a,S)}else S=g.get(a),S===void 0&&(S=new Set,g.set(a,S));S.has(u)||(LA=!0,S.add(u),g=J6.bind(null,r,a,u),ul&&Bs(r,u),a.then(g,g))}function J6(r,a,u){var g=r.pingCache;g!==null&&g.delete(a),r.pingedLanes|=r.suspendedLanes&u,r.warmLanes&=~u,(u&127)!==0?0>Gc&&(xm=Gc=Ii(),JS=UE("Promise Resolved"),G0=PE):(u&4194048)!==0&&0>Ks&&(yd=Ks=Ii(),t5=UE("Promise Resolved"),yA=PE),Up()&&qe.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`),Tr===r&&(Sn&u)===u&&(ni===Q0||ni===t7&&(Sn&62914560)===Sn&&ei()-o7<EL?(qn&ra)===ma&&Ma(r,0):BA|=u,Nm===Sn&&(Nm=0)),_a(r)}function Ls(r,a){a===0&&(a=Ue()),r=Fi(r,a),r!==null&&(mt(r,a),_a(r))}function ed(r){var a=r.memoizedState,u=0;a!==null&&(u=a.retryLane),Ls(r,u)}function Du(r,a){var u=0;switch(r.tag){case 31:case 13:var g=r.stateNode,S=r.memoizedState;S!==null&&(u=S.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),Ls(r,u)}function jp(r,a,u){if((a.subtreeFlags&67117056)!==0)for(a=a.child;a!==null;){var g=r,S=a,E=S.type===I0;E=u||E,S.tag!==22?S.flags&67108864?E&&$e(S,G1,g,S):jp(g,S,E):S.memoizedState===null&&(E&&S.flags&8192?$e(S,G1,g,S):S.subtreeFlags&67108864&&$e(S,jp,g,S,E)),a=a.sibling}}function G1(r,a){lt(!0);try{Q4(a),Ns(a),K4(r,a.alternate,a,!1),P1(r,a,0,null,!1,0)}finally{lt(!1)}}function rl(r){var a=!0;r.current.mode&(so|Uu)||(a=!1),jp(r,r.current,a)}function oS(r){if((qn&ra)===ma){var a=r.tag;if(a===3||a===1||a===0||a===11||a===14||a===15){if(a=le(r)||"ReactComponent",f7!==null){if(f7.has(a))return;f7.add(a)}else f7=new Set([a]);$e(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 Bs(r,a){ul&&r.memoizedUpdaters.forEach(function(u){Fn(r,u,a)})}function Hp(r,a){var u=qe.actQueue;return u!==null?(u.push(a),sfe):B0(r,a)}function qp(r){Up()&&qe.actQueue===null&&$e(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`,le(r))})}function _a(r){r!==nv&&r.next===null&&(nv===null?d7=nv=r:nv=nv.next=r),h7=!0,qe.actQueue!==null?GA||(GA=!0,tE()):FA||(FA=!0,tE())}function w0(r,a){if(!YA&&h7){YA=!0;do for(var u=!1,g=d7;g!==null;){if(r!==0){var S=g.pendingLanes;if(S===0)var E=0;else{var M=g.suspendedLanes,D=g.pingedLanes;E=(1<<31-Ji(42|r)+1)-1,E&=S&~(M&~D),E=E&201326741?E&201326741|1:E?E|2:0}E!==0&&(u=!0,sS(g,E))}else E=Sn,E=$t(g,g===Tr?E:0,g.cancelPendingCommit!==null||g.timeoutHandle!==Vm),(E&3)===0||nt(g,E)||(u=!0,sS(g,E));g=g.next}while(u);YA=!1}}function eE(){M5=window.event,td()}function td(){h7=GA=FA=!1;var r=0;rh!==0&&T0()&&(r=rh);for(var a=ei(),u=null,g=d7;g!==null;){var S=g.next,E=lS(g,a);E===0?(g.next=null,u===null?d7=S:u.next=S,S===null&&(nv=u)):(u=g,(r!==0||(E&3)!==0)&&(h7=!0)),g=S}Pi!==th&&Pi!==u7||w0(r),rh!==0&&(rh=0)}function lS(r,a){for(var u=r.suspendedLanes,g=r.pingedLanes,S=r.expirationTimes,E=r.pendingLanes&-62914561;0<E;){var M=31-Ji(E),D=1<<M,H=S[M];H===-1?((D&u)===0||(D&g)!==0)&&(S[M]=Ee(D,a)):H<=a&&(r.expiredLanes|=D),E&=~D}if(a=Tr,u=Sn,u=$t(r,r===a?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==Vm),g=r.callbackNode,u===0||r===a&&(mr===Dm||mr===km)||r.cancelPendingCommit!==null)return g!==null&&uS(g),r.callbackNode=null,r.callbackPriority=0;if((u&3)===0||nt(r,u)){if(a=u&-u,a!==r.callbackPriority||qe.actQueue!==null&&g!==XA)uS(g);else return a;switch(Yr(u)){case Ai:case ea:u=wy;break;case _o:u=cd;break;case jc:u=dm;break;default:u=cd}return g=Fp.bind(null,r),qe.actQueue!==null?(qe.actQueue.push(g),u=XA):u=B0(u,g),r.callbackPriority=a,r.callbackNode=u,a}return g!==null&&uS(g),r.callbackPriority=2,r.callbackNode=null,2}function Fp(r,a){if(FE=qE=!1,M5=window.event,Pi!==th&&Pi!==u7)return r.callbackNode=null,r.callbackPriority=0,null;var u=r.callbackNode;if(qu===s7&&(qu=UA),Lc()&&r.callbackNode!==u)return null;var g=Sn;return g=$t(r,r===Tr?g:0,r.cancelPendingCommit!==null||r.timeoutHandle!==Vm),g===0?null:(Q6(r,g,a),lS(r,ei()),r.callbackNode!=null&&r.callbackNode===u?Fp.bind(null,r):null)}function sS(r,a){if(Lc())return null;qE=FE,FE=!1,Q6(r,a,!0)}function uS(r){r!==XA&&r!==null&&Sy(r)}function tE(){qe.actQueue!==null&&qe.actQueue.push(function(){return td(),null}),vfe(function(){(qn&(ra|Hl))!==ma?B0(Ey,eE):td()})}function jn(){if(rh===0){var r=Tm;r===0&&(r=hm,hm<<=1,(hm&261888)===0&&(hm=256)),rh=r}return rh}function hr(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:(vt(r,"action"),gc(""+r))}function Cn(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 Nn(r,a,u,g,S){if(a==="submit"&&u&&u.stateNode===S){var E=hr((S[da]||null).action),M=g.submitter;M&&(a=(a=M[da]||null)?hr(a.formAction):M.getAttribute("formAction"),a!==null&&(E=a,M=null));var D=new kE("action","action",null,g,S);r.push({event:D,listeners:[{instance:null,listener:function(){if(g.defaultPrevented){if(rh!==0){var H=M?Cn(S,M):new FormData(S),Q={pending:!0,data:H,method:S.method,action:E};Object.freeze(Q),f0(u,Q,null,H)}}else typeof E=="function"&&(D.preventDefault(),H=M?Cn(S,M):new FormData(S),Q={pending:!0,data:H,method:S.method,action:E},Object.freeze(Q),f0(u,Q,E,H))},currentTarget:S}]})}}function Yn(r,a,u){r.currentTarget=u;try{a(r)}catch(g){oA(g)}r.currentTarget=null}function no(r,a){a=(a&4)!==0;for(var u=0;u<r.length;u++){var g=r[u];e:{var S=void 0,E=g.event;if(g=g.listeners,a)for(var M=g.length-1;0<=M;M--){var D=g[M],H=D.instance,Q=D.currentTarget;if(D=D.listener,H!==S&&E.isPropagationStopped())break e;H!==null?$e(H,Yn,E,D,Q):Yn(E,D,Q),S=H}else for(M=0;M<g.length;M++){if(D=g[M],H=D.instance,Q=D.currentTarget,D=D.listener,H!==S&&E.isPropagationStopped())break e;H!==null?$e(H,Yn,E,D,Q):Yn(E,D,Q),S=H}}}}function cn(r,a){WA.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[PS];u===void 0&&(u=a[PS]=new Set);var g=r+"__bubble";u.has(g)||(Vs(a,r,2,!1),u.add(g))}function Bc(r,a,u){WA.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 Gp(r){if(!r[p7]){r[p7]=!0,mm.forEach(function(u){u!=="selectionchange"&&(WA.has(u)||Bc(u,!1,r),Bc(u,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[p7]||(a[p7]=!0,Bc("selectionchange",!1,a))}}function Vs(r,a,u,g){switch(cy(a)){case Ai:var S=Ki;break;case ea:S=H8;break;default:S=uy}u=S.bind(null,a,u,r),S=void 0,!Q8||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(S=!0),g?S!==void 0?r.addEventListener(a,u,{capture:!0,passive:S}):r.addEventListener(a,u,!0):S!==void 0?r.addEventListener(a,u,{passive:S}):r.addEventListener(a,u,!1)}function zr(r,a,u,g,S){var E=g;if((a&1)===0&&(a&2)===0&&g!==null)e:for(;;){if(g===null)return;var M=g.tag;if(M===3||M===4){var D=g.stateNode.containerInfo;if(D===S)break;if(M===4)for(M=g.return;M!==null;){var H=M.tag;if((H===3||H===4)&&M.stateNode.containerInfo===S)return;M=M.return}for(;D!==null;){if(M=rt(D),M===null)return;if(H=M.tag,H===5||H===6||H===26||H===27){g=E=M;continue e}D=D.parentNode}}g=g.return}Af(function(){var Q=E,we=Fh(u),Ce=[];e:{var me=hI.get(r);if(me!==void 0){var Ve=kE,gt=r;switch(r){case"keypress":if(Kd(u)===0)break e;case"keydown":case"keyup":Ve=wce;break;case"focusin":gt="focus",Ve=eA;break;case"focusout":gt="blur",Ve=eA;break;case"beforeblur":case"afterblur":Ve=eA;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":Ve=Jz;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ve=fce;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ve=Cce;break;case uI:case cI:case fI:Ve=pce;break;case dI:Ve=Mce;break;case"scroll":case"scrollend":Ve=uce;break;case"wheel":Ve=_ce;break;case"copy":case"cut":case"paste":Ve=gce;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ve=tI;break;case"toggle":case"beforetoggle":Ve=kce}var wt=(a&4)!==0,_r=!wt&&(r==="scroll"||r==="scrollend"),Un=wt?me!==null?me+"Capture":null:me;wt=[];for(var de=Q,ye;de!==null;){var Se=de;if(ye=Se.stateNode,Se=Se.tag,Se!==5&&Se!==26&&Se!==27||ye===null||Un===null||(Se=ls(de,Un),Se!=null&&wt.push(il(de,Se,ye))),_r)break;de=de.return}0<wt.length&&(me=new Ve(me,gt,null,u,we),Ce.push({event:me,listeners:wt}))}}if((a&7)===0){e:{if(me=r==="mouseover"||r==="pointerover",Ve=r==="mouseout"||r==="pointerout",me&&u!==jS&&(gt=u.relatedTarget||u.fromElement)&&(rt(gt)||gt[cl]))break e;if((Ve||me)&&(me=we.window===we?we:(me=we.ownerDocument)?me.defaultView||me.parentWindow:window,Ve?(gt=u.relatedTarget||u.toElement,Ve=Q,gt=gt?rt(gt):null,gt!==null&&(_r=z(gt),wt=gt.tag,gt!==_r||wt!==5&&wt!==27&&wt!==6)&&(gt=null)):(Ve=null,gt=Q),Ve!==gt)){if(wt=Jz,Se="onMouseLeave",Un="onMouseEnter",de="mouse",(r==="pointerout"||r==="pointerover")&&(wt=tI,Se="onPointerLeave",Un="onPointerEnter",de="pointer"),_r=Ve==null?me:Ke(Ve),ye=gt==null?me:Ke(gt),me=new wt(Se,de+"leave",Ve,u,we),me.target=_r,me.relatedTarget=ye,Se=null,rt(we)===Q&&(wt=new wt(Un,de+"enter",gt,u,we),wt.target=ye,wt.relatedTarget=_r,Se=wt),_r=Se,Ve&&gt)t:{for(wt=cS,Un=Ve,de=gt,ye=0,Se=Un;Se;Se=wt(Se))ye++;Se=0;for(var Ye=de;Ye;Ye=wt(Ye))Se++;for(;0<ye-Se;)Un=wt(Un),ye--;for(;0<Se-ye;)de=wt(de),Se--;for(;ye--;){if(Un===de||de!==null&&Un===de.alternate){wt=Un;break t}Un=wt(Un),de=wt(de)}wt=null}else wt=null;Ve!==null&&ro(Ce,me,Ve,wt,!1),gt!==null&&_r!==null&&ro(Ce,_r,gt,wt,!0)}}e:{if(me=Q?Ke(Q):window,Ve=me.nodeName&&me.nodeName.toLowerCase(),Ve==="select"||Ve==="input"&&me.type==="file")var xt=Xh;else if(Yh(me))if(lI)xt=Wg;else{xt=Zb;var ln=Kb}else Ve=me.nodeName,!Ve||Ve.toLowerCase()!=="input"||me.type!=="checkbox"&&me.type!=="radio"?Q&&qh(Q.elementType)&&(xt=Xh):xt=Wh;if(xt&&(xt=xt(r,Q))){Qb(Ce,xt,u,we);break e}ln&&ln(r,me,Q),r==="focusout"&&Q&&me.type==="number"&&Q.memoizedProps.value!=null&&Pb(me,"number",me.value)}switch(ln=Q?Ke(Q):window,r){case"focusin":(Yh(ln)||ln.contentEditable==="true")&&(Ny=ln,nA=Q,WS=null);break;case"focusout":WS=nA=Ny=null;break;case"mousedown":rA=!0;break;case"contextmenu":case"mouseup":case"dragend":rA=!1,M6(Ce,u,we);break;case"selectionchange":if(Lce)break;case"keydown":case"keyup":M6(Ce,u,we)}var Ut;if(tA)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 ky?yu(r,u)&&(Dt="onCompositionEnd"):r==="keydown"&&u.keyCode===nI&&(Dt="onCompositionStart");Dt&&(rI&&u.locale!=="ko"&&(ky||Dt!=="onCompositionStart"?Dt==="onCompositionEnd"&&ky&&(Ut=Xb()):(P0=we,K8="value"in P0?P0.value:P0.textContent,ky=!0)),ln=Us(Q,Dt),0<ln.length&&(Dt=new eI(Dt,r,null,u,we),Ce.push({event:Dt,listeners:ln}),Ut?Dt.data=Ut:(Ut=Gg(u),Ut!==null&&(Dt.data=Ut)))),(Ut=zce?Yg(r,u):E6(r,u))&&(Dt=Us(Q,"onBeforeInput"),0<Dt.length&&(ln=new vce("onBeforeInput","beforeinput",null,u,we),Ce.push({event:ln,listeners:Dt}),ln.data=Ut)),Nn(Ce,r,Q,u,we)}no(Ce,a)})}function il(r,a,u){return{instance:r,listener:a,currentTarget:u}}function Us(r,a){for(var u=a+"Capture",g=[];r!==null;){var S=r,E=S.stateNode;if(S=S.tag,S!==5&&S!==26&&S!==27||E===null||(S=ls(r,u),S!=null&&g.unshift(il(r,S,E)),S=ls(r,a),S!=null&&g.push(il(r,S,E))),r.tag===3)return g;r=r.return}return[]}function cS(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function ro(r,a,u,g,S){for(var E=a._reactName,M=[];u!==null&&u!==g;){var D=u,H=D.alternate,Q=D.stateNode;if(D=D.tag,H!==null&&H===g)break;D!==5&&D!==26&&D!==27||Q===null||(H=Q,S?(Q=ls(u,E),Q!=null&&M.unshift(il(u,Q,H))):S||(Q=ls(u,E),Q!=null&&M.push(il(u,Q,H)))),u=u.return}M.length!==0&&r.push({event:a,listeners:M})}function Vc(r,a){Yb(r,a),r!=="input"&&r!=="textarea"&&r!=="select"||a==null||a.value!==null||Kz||(Kz=!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:qs,possibleRegistrationNames:Cy};qh(r)||typeof a.is=="string"||N8(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 Zr(r,a,u,g){a!==u&&(u=ku(u),ku(a)!==u&&(g[r]=a))}function io(r,a,u){a.forEach(function(g){u[nd(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 Yp(r,a){return r=r.namespaceURI===Tn||r.namespaceURI===Mn?r.ownerDocument.createElementNS(r.namespaceURI,r.tagName):r.ownerDocument.createElement(r.tagName),r.innerHTML=a,r.innerHTML}function ku(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.",ut(r)),Qt(r)),(typeof r=="string"?r:""+r).replace(ufe,`
`).replace(cfe,"")}function Xp(r,a){return a=ku(a),ku(r)===a}function Qn(r,a,u,g,S,E){switch(u){case"children":typeof g=="string"?(Qd(g,a,!1),a==="body"||a==="textarea"&&g===""||os(r,g)):(typeof g=="number"||typeof g=="bigint")&&(Qd(""+g,a,!1),a!=="body"&&os(r,""+g));break;case"className":Bh(r,"class",g);break;case"tabIndex":Bh(r,"tabindex",g);break;case"dir":case"role":case"viewBox":case"width":case"height":Bh(r,u,g);break;case"style":Tf(r,g,E);break;case"data":if(a!=="object"){Bh(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}vt(g,u),g=gc(""+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"&&(S.encType==null&&S.method==null||y7||(y7=!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.")),S.target==null||g7||(g7=!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"||S.type==="submit"||S.type==="image"||m7?a!=="button"||S.type==null||S.type==="submit"||m7?typeof g=="function"&&(S.name==null||LL||(LL=!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.')),S.formEncType==null&&S.formMethod==null||y7||(y7=!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.")),S.formTarget==null||g7||(g7=!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."))):(m7=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(m7=!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",S.name,S,null),Qn(r,a,"formEncType",S.formEncType,S,null),Qn(r,a,"formMethod",S.formMethod,S,null),Qn(r,a,"formTarget",S.formTarget,S,null)):(Qn(r,a,"encType",S.encType,S,null),Qn(r,a,"method",S.method,S,null),Qn(r,a,"target",S.target,S,null)));if(g==null||typeof g=="symbol"||typeof g=="boolean"){r.removeAttribute(u);break}vt(g,u),g=gc(""+g),r.setAttribute(u,g);break;case"onClick":g!=null&&(typeof g!="function"&&al(u,g),r.onclick=qi);break;case"onScroll":g!=null&&(typeof g!="function"&&al(u,g),cn("scroll",r));break;case"onScrollEnd":g!=null&&(typeof g!="function"&&al(u,g),cn("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(S.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}vt(g,u),u=gc(""+g),r.setAttributeNS(Im,"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"?(vt(g,u),r.setAttribute(u,""+g)):r.removeAttribute(u);break;case"inert":g!==""||v7[u]||(v7[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"?(vt(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?(vt(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):(vt(g,u),r.setAttribute(u,g));break;case"popover":cn("beforetoggle",r),cn("toggle",r),yf(r,"popover",g);break;case"xlinkActuate":as(r,Im,"xlink:actuate",g);break;case"xlinkArcrole":as(r,Im,"xlink:arcrole",g);break;case"xlinkRole":as(r,Im,"xlink:role",g);break;case"xlinkShow":as(r,Im,"xlink:show",g);break;case"xlinkTitle":as(r,Im,"xlink:title",g);break;case"xlinkType":as(r,Im,"xlink:type",g);break;case"xmlBase":as(r,QA,"xml:base",g);break;case"xmlLang":as(r,QA,"xml:lang",g);break;case"xmlSpace":as(r,QA,"xml:space",g);break;case"is":E!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),yf(r,"is",g);break;case"innerText":case"textContent":break;case"popoverTarget":BL||g==null||typeof g!="object"||(BL=!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=Gb(u),yf(r,u,g)):qs.hasOwnProperty(u)&&g!=null&&typeof g!="function"&&al(u,g)}}function Ps(r,a,u,g,S,E){switch(u){case"style":Tf(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(S.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");r.innerHTML=u}}break;case"children":typeof g=="string"?os(r,g):(typeof g=="number"||typeof g=="bigint")&&os(r,""+g);break;case"onScroll":g!=null&&(typeof g!="function"&&al(u,g),cn("scroll",r));break;case"onScrollEnd":g!=null&&(typeof g!="function"&&al(u,g),cn("scrollend",r));break;case"onClick":g!=null&&(typeof g!="function"&&al(u,g),r.onclick=qi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(qs.hasOwnProperty(u))g!=null&&typeof g!="function"&&al(u,g);else e:{if(u[0]==="o"&&u[1]==="n"&&(S=u.endsWith("Capture"),a=u.slice(2,S?u.length-7:void 0),E=r[da]||null,E=E!=null?E[u]:null,typeof E=="function"&&r.removeEventListener(a,E,S),typeof g=="function")){typeof E!="function"&&E!==null&&(u in r?r[u]=null:r.hasAttribute(u)&&r.removeAttribute(u)),r.addEventListener(a,g,S);break e}u in r?r[u]=g:g===!0?r.setAttribute(u,""):yf(r,u,g)}}}function Bn(r,a,u){switch(Vc(a,u),a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":cn("error",r),cn("load",r);var g=!1,S=!1,E;for(E in u)if(u.hasOwnProperty(E)){var M=u[E];if(M!=null)switch(E){case"src":g=!0;break;case"srcSet":S=!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,M,u,null)}}S&&Qn(r,a,"srcSet",u.srcSet,u,null),g&&Qn(r,a,"src",u.src,u,null);return;case"input":tr("input",u),cn("invalid",r);var D=E=M=S=null,H=null,Q=null;for(g in u)if(u.hasOwnProperty(g)){var we=u[g];if(we!=null)switch(g){case"name":S=we;break;case"type":M=we;break;case"checked":H=we;break;case"defaultChecked":Q=we;break;case"value":E=we;break;case"defaultValue":D=we;break;case"children":case"dangerouslySetInnerHTML":if(we!=null)throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Qn(r,a,g,we,u,null)}}vf(r,u),v6(r,E,D,H,Q,M,S,!1);return;case"select":tr("select",u),cn("invalid",r),g=M=E=null;for(S in u)if(u.hasOwnProperty(S)&&(D=u[S],D!=null))switch(S){case"value":E=D;break;case"defaultValue":M=D;break;case"multiple":g=D;default:Qn(r,a,S,D,u,null)}bf(r,u),a=E,u=M,r.multiple=!!g,a!=null?mc(r,!!g,a,!1):u!=null&&mc(r,!!g,u,!0);return;case"textarea":tr("textarea",u),cn("invalid",r),E=S=g=null;for(M in u)if(u.hasOwnProperty(M)&&(D=u[M],D!=null))switch(M){case"value":g=D;break;case"defaultValue":S=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,M,D,u,null)}Sf(r,u),xf(r,g,S,E);return;case"option":$b(r,u);for(H in u)if(u.hasOwnProperty(H)&&(g=u[H],g!=null))switch(H){case"selected":r.selected=g&&typeof g!="function"&&typeof g!="symbol";break;default:Qn(r,a,H,g,u,null)}return;case"dialog":cn("beforetoggle",r),cn("toggle",r),cn("cancel",r),cn("close",r);break;case"iframe":case"object":cn("load",r);break;case"video":case"audio":for(g=0;g<A5.length;g++)cn(A5[g],r);break;case"image":cn("error",r),cn("load",r);break;case"details":cn("toggle",r);break;case"embed":case"source":case"link":cn("error",r),cn("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(Q in u)if(u.hasOwnProperty(Q)&&(g=u[Q],g!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Qn(r,a,Q,g,u,null)}return;default:if(qh(a)){for(we in u)u.hasOwnProperty(we)&&(g=u[we],g!==void 0&&Ps(r,a,we,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 Uc(r,a,u,g){switch(Vc(a,g),a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var S=null,E=null,M=null,D=null,H=null,Q=null,we=null;for(Ve in u){var Ce=u[Ve];if(u.hasOwnProperty(Ve)&&Ce!=null)switch(Ve){case"checked":break;case"value":break;case"defaultValue":H=Ce;default:g.hasOwnProperty(Ve)||Qn(r,a,Ve,null,g,Ce)}}for(var me in g){var Ve=g[me];if(Ce=u[me],g.hasOwnProperty(me)&&(Ve!=null||Ce!=null))switch(me){case"type":E=Ve;break;case"name":S=Ve;break;case"checked":Q=Ve;break;case"defaultChecked":we=Ve;break;case"value":M=Ve;break;case"defaultValue":D=Ve;break;case"children":case"dangerouslySetInnerHTML":if(Ve!=null)throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Ve!==Ce&&Qn(r,a,me,Ve,g,Ce)}}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||IL||(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"),IL=!0),!a||g||zL||(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"),zL=!0),Vh(r,M,D,H,Q,we,E,S);return;case"select":Ve=M=D=me=null;for(E in u)if(H=u[E],u.hasOwnProperty(E)&&H!=null)switch(E){case"value":break;case"multiple":Ve=H;default:g.hasOwnProperty(E)||Qn(r,a,E,null,g,H)}for(S in g)if(E=g[S],H=u[S],g.hasOwnProperty(S)&&(E!=null||H!=null))switch(S){case"value":me=E;break;case"defaultValue":D=E;break;case"multiple":M=E;default:E!==H&&Qn(r,a,S,E,g,H)}g=D,a=M,u=Ve,me!=null?mc(r,!!a,me,!1):!!u!=!!a&&(g!=null?mc(r,!!a,g,!0):mc(r,!!a,a?[]:"",!1));return;case"textarea":Ve=me=null;for(D in u)if(S=u[D],u.hasOwnProperty(D)&&S!=null&&!g.hasOwnProperty(D))switch(D){case"value":break;case"children":break;default:Qn(r,a,D,null,g,S)}for(M in g)if(S=g[M],E=u[M],g.hasOwnProperty(M)&&(S!=null||E!=null))switch(M){case"value":me=S;break;case"defaultValue":Ve=S;break;case"children":break;case"dangerouslySetInnerHTML":if(S!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:S!==E&&Qn(r,a,M,S,g,E)}Xd(r,me,Ve);return;case"option":for(var gt in u)if(me=u[gt],u.hasOwnProperty(gt)&&me!=null&&!g.hasOwnProperty(gt))switch(gt){case"selected":r.selected=!1;break;default:Qn(r,a,gt,null,g,me)}for(H in g)if(me=g[H],Ve=u[H],g.hasOwnProperty(H)&&me!==Ve&&(me!=null||Ve!=null))switch(H){case"selected":r.selected=me&&typeof me!="function"&&typeof me!="symbol";break;default:Qn(r,a,H,me,g,Ve)}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 wt in u)me=u[wt],u.hasOwnProperty(wt)&&me!=null&&!g.hasOwnProperty(wt)&&Qn(r,a,wt,null,g,me);for(Q in g)if(me=g[Q],Ve=u[Q],g.hasOwnProperty(Q)&&me!==Ve&&(me!=null||Ve!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(me!=null)throw Error(a+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Qn(r,a,Q,me,g,Ve)}return;default:if(qh(a)){for(var _r in u)me=u[_r],u.hasOwnProperty(_r)&&me!==void 0&&!g.hasOwnProperty(_r)&&Ps(r,a,_r,void 0,g,me);for(we in g)me=g[we],Ve=u[we],!g.hasOwnProperty(we)||me===Ve||me===void 0&&Ve===void 0||Ps(r,a,we,me,g,Ve);return}}for(var Un in u)me=u[Un],u.hasOwnProperty(Un)&&me!=null&&!g.hasOwnProperty(Un)&&Qn(r,a,Un,null,g,me);for(Ce in g)me=g[Ce],Ve=u[Ce],!g.hasOwnProperty(Ce)||me===Ve||me==null&&Ve==null||Qn(r,a,Ce,me,g,Ve)}function nd(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 Y1(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,S=g="",E;for(E in a)if(a.hasOwnProperty(E)){var M=a[E];M!=null&&typeof M!="boolean"&&M!==""&&(E.indexOf("--")===0?(Lt(M,E),g+=S+E+":"+(""+M).trim()):typeof M!="number"||M===0||hn.has(E)?(Lt(M,E),g+=S+E.replace(Rt,"-$1").toLowerCase().replace(jt,"-ms-")+":"+(""+M).trim()):g+=S+E.replace(Rt,"-$1").toLowerCase().replace(jt,"-ms-")+":"+M+"px",S=";")}g=g||null,a=r.getAttribute("style"),a!==g&&(g=ku(g),ku(a)!==g&&(u.style=Il(r)))}}function ao(r,a,u,g,S,E){if(S.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(vt(g,a),r===""+g)return}Zr(a,r,g,E)}function fS(r,a,u,g,S,E){if(S.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}Zr(a,r,g,E)}function rd(r,a,u,g,S,E){if(S.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(vt(g,u),r===""+g)return}Zr(a,r,g,E)}function X1(r,a,u,g,S,E){if(S.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)&&(vt(g,a),r===""+g))return}Zr(a,r,g,E)}function Da(r,a,u,g,S,E){if(S.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(vt(g,a),u=gc(""+g),r===u)return}Zr(a,r,g,E)}function dS(r,a,u,g){for(var S={},E=new Set,M=r.attributes,D=0;D<M.length;D++)switch(M[D].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:E.add(M[D].name)}if(qh(a)){for(var H in u)if(u.hasOwnProperty(H)){var Q=u[H];if(Q!=null){if(qs.hasOwnProperty(H))typeof Q!="function"&&al(H,Q);else if(u.suppressHydrationWarning!==!0)switch(H){case"children":typeof Q!="string"&&typeof Q!="number"||Zr("children",r.textContent,Q,S);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":M=r.innerHTML,Q=Q?Q.__html:void 0,Q!=null&&(Q=Yp(r,Q),Zr(H,M,Q,S));continue;case"style":E.delete(H),Y1(r,Q,S);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":E.delete(H.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",H);continue;case"className":E.delete("class"),M=Ug(r,"class",Q),Zr("className",M,Q,S);continue;default:g.context===Td&&a!=="svg"&&a!=="math"?E.delete(H.toLowerCase()):E.delete(H),M=Ug(r,H,Q),Zr(H,M,Q,S)}}}}else for(Q in u)if(u.hasOwnProperty(Q)&&(H=u[Q],H!=null)){if(qs.hasOwnProperty(Q))typeof H!="function"&&al(Q,H);else if(u.suppressHydrationWarning!==!0)switch(Q){case"children":typeof H!="string"&&typeof H!="number"||Zr("children",r.textContent,H,S);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":M=r.innerHTML,H=H?H.__html:void 0,H!=null&&(H=Yp(r,H),M!==H&&(S[Q]={__html:M}));continue;case"className":ao(r,Q,"class",H,E,S);continue;case"tabIndex":ao(r,Q,"tabindex",H,E,S);continue;case"style":E.delete(Q),Y1(r,H,S);continue;case"multiple":E.delete(Q),Zr(Q,r.multiple,H,S);continue;case"muted":E.delete(Q),Zr(Q,r.muted,H,S);continue;case"autoFocus":E.delete("autofocus"),Zr(Q,r.autofocus,H,S);continue;case"data":if(a!=="object"){E.delete(Q),M=r.getAttribute("data"),Zr(Q,M,H,S);continue}case"src":case"href":if(!(H!==""||a==="a"&&Q==="href"||a==="object"&&Q==="data")){console.error(Q==="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.',Q,Q);continue}Da(r,Q,Q,H,E,S);continue;case"action":case"formAction":if(M=r.getAttribute(Q),typeof H=="function"){E.delete(Q.toLowerCase()),Q==="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(M===ffe){E.delete(Q.toLowerCase()),Zr(Q,"function",H,S);continue}Da(r,Q,Q.toLowerCase(),H,E,S);continue;case"xlinkHref":Da(r,Q,"xlink:href",H,E,S);continue;case"contentEditable":rd(r,Q,"contenteditable",H,E,S);continue;case"spellCheck":rd(r,Q,"spellcheck",H,E,S);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":rd(r,Q,Q,H,E,S);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":fS(r,Q,Q.toLowerCase(),H,E,S);continue;case"capture":case"download":e:{D=r;var we=M=Q,Ce=S;if(E.delete(we),D=D.getAttribute(we),D===null)switch(typeof H){case"undefined":case"function":case"symbol":break e;default:if(H===!1)break e}else if(H!=null)switch(typeof H){case"function":case"symbol":break;case"boolean":if(H===!0&&D==="")break e;break;default:if(vt(H,M),D===""+H)break e}Zr(M,D,H,Ce)}continue;case"cols":case"rows":case"size":case"span":e:{if(D=r,we=M=Q,Ce=S,E.delete(we),D=D.getAttribute(we),D===null)switch(typeof H){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(H)||1>H)break e}else if(H!=null)switch(typeof H){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(H)||1>H)&&(vt(H,M),D===""+H))break e}Zr(M,D,H,Ce)}continue;case"rowSpan":X1(r,Q,"rowspan",H,E,S);continue;case"start":X1(r,Q,Q,H,E,S);continue;case"xHeight":ao(r,Q,"x-height",H,E,S);continue;case"xlinkActuate":ao(r,Q,"xlink:actuate",H,E,S);continue;case"xlinkArcrole":ao(r,Q,"xlink:arcrole",H,E,S);continue;case"xlinkRole":ao(r,Q,"xlink:role",H,E,S);continue;case"xlinkShow":ao(r,Q,"xlink:show",H,E,S);continue;case"xlinkTitle":ao(r,Q,"xlink:title",H,E,S);continue;case"xlinkType":ao(r,Q,"xlink:type",H,E,S);continue;case"xmlBase":ao(r,Q,"xml:base",H,E,S);continue;case"xmlLang":ao(r,Q,"xml:lang",H,E,S);continue;case"xmlSpace":ao(r,Q,"xml:space",H,E,S);continue;case"inert":H!==""||v7[Q]||(v7[Q]=!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.",Q)),fS(r,Q,Q,H,E,S);continue;default:if(!(2<Q.length)||Q[0]!=="o"&&Q[0]!=="O"||Q[1]!=="n"&&Q[1]!=="N"){D=Gb(Q),M=!1,g.context===Td&&a!=="svg"&&a!=="math"?E.delete(D.toLowerCase()):(we=Q.toLowerCase(),we=My.hasOwnProperty(we)&&My[we]||null,we!==null&&we!==Q&&(M=!0,E.delete(we)),E.delete(D));e:if(we=r,Ce=D,D=H,Hi(Ce))if(we.hasAttribute(Ce))we=we.getAttribute(Ce),vt(D,Ce),D=we===""+D?D:we;else{switch(typeof D){case"function":case"symbol":break e;case"boolean":if(we=Ce.toLowerCase().slice(0,5),we!=="data-"&&we!=="aria-")break e}D=D===void 0?void 0:null}else D=void 0;M||Zr(Q,D,H,S)}}}return 0<E.size&&u.suppressHydrationWarning!==!0&&io(r,E,S),Object.keys(S).length===0?null:S}function oo(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 hS(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function nE(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,u=performance.getEntriesByType("resource"),g=0;g<u.length;g++){var S=u[g],E=S.transferSize,M=S.initiatorType,D=S.duration;if(E&&D&&hS(M)){for(M=0,D=S.responseEnd,g+=1;g<u.length;g++){var H=u[g],Q=H.startTime;if(Q>D)break;var we=H.transferSize,Ce=H.initiatorType;we&&hS(Ce)&&(H=H.responseEnd,M+=we*(H<D?1:(D-Q)/(H-Q)))}if(--g,a+=8*(E+M)/(S.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 W1(r){return r.nodeType===9?r:r.ownerDocument}function Nu(r){switch(r){case Mn:return iv;case Tn:return S7;default:return Td}}function Wp(r,a){if(r===Td)switch(a){case"svg":return iv;case"math":return S7;default:return Td}return r===iv&&a==="foreignObject"?Td:r}function Qp(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 T0(){var r=window.event;return r&&r.type==="popstate"?r===eC?!1:(eC=r,!0):(eC=null,!1)}function A0(){var r=window.event;return r&&r!==M5?r.type:null}function C0(){var r=window.event;return r&&r!==M5?r.timeStamp:-1.1}function rE(r){setTimeout(function(){throw r})}function iE(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 Q1(){}function pS(r,a,u,g){Uc(r,a,u,g),r[da]=g}function aE(r){os(r,"")}function $8(r,a,u){r.nodeValue=u}function oE(r){if(!r.__reactWarnedAboutChildrenConflict){var a=r[da]||null;if(a!==null){var u=Ne(r);u!==null&&(typeof a.children=="string"||typeof a.children=="number"?(r.__reactWarnedAboutChildrenConflict=!0,$e(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,$e(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 zu(r){return r==="head"}function lE(r,a){r.removeChild(a)}function O0(r,a){(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r).removeChild(a)}function Kp(r,a){var u=a,g=0;do{var S=u.nextSibling;if(r.removeChild(u),S&&S.nodeType===8)if(u=S.data,u===O5||u===b7){if(g===0){r.removeChild(S),N0(a);return}g--}else if(u===C5||u===ih||u===Bm||u===rv||u===Lm)g++;else if(u===hfe)em(r.ownerDocument.documentElement);else if(u===mfe){u=r.ownerDocument.head,em(u);for(var E=u.firstChild;E;){var M=E.nextSibling,D=E.nodeName;E[pm]||D==="SCRIPT"||D==="STYLE"||D==="LINK"&&E.rel.toLowerCase()==="stylesheet"||u.removeChild(E),E=M}}else u===pfe&&em(r.ownerDocument.body);u=S}while(u);N0(a)}function mS(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!==ih&&u!==Bm&&u!==rv||r++;u=g}while(u)}function sE(r){mS(r,!0)}function uE(r){r=r.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none"}function cE(r){r.nodeValue=""}function fE(r){mS(r,!1)}function dE(r,a){a=a[gfe],a=a!=null&&a.hasOwnProperty("display")?a.display:null,r.style.display=a==null||typeof a=="boolean"?"":(""+a).trim()}function K1(r,a){r.nodeValue=a}function Z1(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":Z1(u),Me(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}r.removeChild(u)}}function hE(r,a,u,g){for(;r.nodeType===1;){var S=u;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!g&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(g){if(!r[pm])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!==S.rel||r.getAttribute("href")!==(S.href==null||S.href===""?null:S.href)||r.getAttribute("crossorigin")!==(S.crossOrigin==null?null:S.crossOrigin)||r.getAttribute("title")!==(S.title==null?null:S.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(E=r.getAttribute("src"),(E!==(S.src==null?null:S.src)||r.getAttribute("type")!==(S.type==null?null:S.type)||r.getAttribute("crossorigin")!==(S.crossOrigin==null?null:S.crossOrigin))&&E&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){vt(S.name,"name");var E=S.name==null?null:""+S.name;if(S.type==="hidden"&&r.getAttribute("name")===E)return r}else return r;if(r=Mo(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=Mo(r.nextSibling),r===null))return null;return r}function J1(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=Mo(r.nextSibling),r===null))return null;return r}function gS(r){return r.data===ih||r.data===Bm}function ey(r){return r.data===rv||r.data===ih&&r.ownerDocument.readyState!==UL}function j8(r,a){var u=r.ownerDocument;if(r.data===Bm)r._reactRetry=a;else if(r.data!==ih||u.readyState!==UL)a();else{var g=function(){a(),u.removeEventListener("DOMContentLoaded",g)};u.addEventListener("DOMContentLoaded",g),r._reactRetry=g}}function Mo(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===rv||a===ih||a===Bm||a===Lm||a===KA||a===VL)break;if(a===O5||a===b7)return null}}return r}function pE(r){if(r.nodeType===1){for(var a=r.nodeName.toLowerCase(),u={},g=r.attributes,S=0;S<g.length;S++){var E=g[S];u[nd(E.name)]=E.name.toLowerCase()==="style"?Il(r):E.value}return{type:a,props:u}}return r.nodeType===8?r.data===Lm?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:r.nodeValue}function Zp(r,a,u){return u===null||u[dfe]!==!0?(r.nodeValue===a?r=null:(a=ku(a),r=ku(r.nodeValue)===a?null:r.nodeValue),r):null}function Pc(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var u=r.data;if(u===O5||u===b7){if(a===0)return Mo(r.nextSibling);a--}else u!==C5&&u!==rv&&u!==ih&&u!==Bm&&u!==Lm||a++}r=r.nextSibling}return null}function ty(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var u=r.data;if(u===C5||u===rv||u===ih||u===Bm||u===Lm){if(a===0)return r;a--}else u!==O5&&u!==b7||a++}r=r.previousSibling}return null}function ny(r){N0(r)}function yS(r){N0(r)}function $c(r){N0(r)}function Ll(r,a,u,g,S){switch(S&&qg(r,g.ancestorInfo),a=W1(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 Jp(r,a,u,g){if(!u[cl]&&Ne(u)){var S=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.",S,S,S)}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(S=u.attributes;S.length;)u.removeAttributeNode(S[0]);Bn(u,r,a),u[ta]=g,u[da]=a}function em(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);Me(r)}function tm(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}function vS(r,a,u){var g=av;if(g&&typeof a=="string"&&a){var S=Mr(a);S='link[rel="'+r+'"][href="'+S+'"]',typeof u=="string"&&(S+='[crossorigin="'+u+'"]'),FL.has(S)||(FL.add(S),r={rel:r,crossOrigin:u,href:a},g.querySelector(S)===null&&(a=g.createElement("link"),Bn(a,"link",r),St(a),g.head.appendChild(a)))}}function bS(r,a,u,g){var S=(S=ll.current)?tm(S):null;if(!S)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=M0(u.href),a=At(S).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=M0(u.href);var E=At(S).hoistableStyles,M=E.get(r);if(!M&&(S=S.ownerDocument||S,M={type:"stylesheet",instance:null,count:0,state:{loading:Um,preload:null}},E.set(r,M),(E=S.querySelector(id(r)))&&!E._p&&(M.instance=E,M.state.loading=R5|tu),!nu.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};nu.set(r,D),E||mE(S,r,D,M.state)}if(a&&g===null)throw u=`

  - `+nm(a)+`
  + `+nm(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 M}if(a&&g!==null)throw u=`

  - `+nm(a)+`
  + `+nm(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=At(S).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 nm(r){var a=0,u="<link";return typeof r.rel=="string"?(a++,u+=' rel="'+r.rel+'"'):Vl.call(r,"rel")&&(a++,u+=' rel="'+(r.rel===null?"null":"invalid type "+typeof r.rel)+'"'),typeof r.href=="string"?(a++,u+=' href="'+r.href+'"'):Vl.call(r,"href")&&(a++,u+=' href="'+(r.href===null?"null":"invalid type "+typeof r.href)+'"'),typeof r.precedence=="string"?(a++,u+=' precedence="'+r.precedence+'"'):Vl.call(r,"precedence")&&(a++,u+=" precedence={"+(r.precedence===null?"null":"invalid type "+typeof r.precedence)+"}"),Object.getOwnPropertyNames(r).length>a&&(u+=" ..."),u+" />"}function M0(r){return'href="'+Mr(r)+'"'}function id(r){return'link[rel="stylesheet"]['+r+"]"}function SS(r){return mn({},r,{"data-precedence":r.precedence,precedence:null})}function mE(r,a,u,g){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?g.loading=R5:(a=r.createElement("link"),g.preload=a,a.addEventListener("load",function(){return g.loading|=R5}),a.addEventListener("error",function(){return g.loading|=HL}),Bn(a,"link",u),St(a),r.head.appendChild(a))}function R0(r){return'[src="'+Mr(r)+'"]'}function ad(r){return"script[async]"+r}function ry(r,a,u){if(a.count++,a.instance===null)switch(a.type){case"style":var g=r.querySelector('style[data-href~="'+Mr(u.href)+'"]');if(g)return a.instance=g,St(g),g;var S=mn({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return g=(r.ownerDocument||r).createElement("style"),St(g),Bn(g,"style",S),iy(g,u.precedence,r),a.instance=g;case"stylesheet":S=M0(u.href);var E=r.querySelector(id(S));if(E)return a.state.loading|=tu,a.instance=E,St(E),E;g=SS(u),(S=nu.get(S))&&xS(g,S),E=(r.ownerDocument||r).createElement("link"),St(E);var M=E;return M._p=new Promise(function(D,H){M.onload=D,M.onerror=H}),Bn(E,"link",g),a.state.loading|=tu,iy(E,u.precedence,r),a.instance=E;case"script":return E=R0(u.src),(S=r.querySelector(ad(E)))?(a.instance=S,St(S),S):(g=u,(S=nu.get(E))&&(g=mn({},u),od(g,S)),r=r.ownerDocument||r,S=r.createElement("script"),St(S),Bn(S,"link",g),r.head.appendChild(S),a.instance=S);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&tu)===Um&&(g=a.instance,a.state.loading|=tu,iy(g,u.precedence,r));return a.instance}function iy(r,a,u){for(var g=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),S=g.length?g[g.length-1]:null,E=S,M=0;M<g.length;M++){var D=g[M];if(D.dataset.precedence===a)E=D;else if(E!==S)break}E?E.parentNode.insertBefore(r,E.nextSibling):(a=u.nodeType===9?u.head:u,a.insertBefore(r,a.firstChild))}function xS(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function od(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}function gE(r,a,u){if(x7===null){var g=new Map,S=x7=new Map;S.set(u,g)}else S=x7,g=S.get(u),g||(g=new Map,S.set(u,g));if(g.has(r))return g;for(g.set(r,null),u=u.getElementsByTagName(r),S=0;S<u.length;S++){var E=u[S];if(!(E[pm]||E[ta]||r==="link"&&E.getAttribute("rel")==="stylesheet")&&E.namespaceURI!==Mn){var M=E.getAttribute(a)||"";M=r+M;var D=g.get(M);D?D.push(E):g.set(M,[E])}}return g}function ES(r,a,u){r=r.ownerDocument||r,r.head.insertBefore(u,a==="title"?r.querySelector("head > title"):null)}function On(r,a,u){var g=!u.ancestorInfo.containerTagInScope;if(u.context===iv||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 S=a.onError,E=a.disabled;u=[],a.onLoad&&u.push("`onLoad`"),S&&u.push("`onError`"),E!=null&&u.push("`disabled`"),S=oo(u,"and"),S+=u.length===1?" prop":" props",E=u.length===1?"an "+S:"the "+S,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,S)}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 ay(r){return!(r.type==="stylesheet"&&(r.state.loading&qL)===Um)}function oy(r,a,u,g){if(u.type==="stylesheet"&&(typeof g.media!="string"||matchMedia(g.media).matches!==!1)&&(u.state.loading&tu)===Um){if(u.instance===null){var S=M0(g.href),E=a.querySelector(id(S));if(E){a=E._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=rm.bind(r),a.then(r,r)),u.state.loading|=tu,u.instance=E,St(E);return}E=a.ownerDocument||a,g=SS(g),(S=nu.get(S))&&xS(g,S),E=E.createElement("link"),St(E);var M=E;M._p=new Promise(function(D,H){M.onload=D,M.onerror=H}),Bn(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&qL)===Um&&(r.count++,u=rm.bind(r),a.addEventListener("load",u),a.addEventListener("error",u))}}function wS(r,a){return r.stylesheets&&r.count===0&&_0(r,r.stylesheets),0<r.count||0<r.imgCount?function(u){var g=setTimeout(function(){if(r.stylesheets&&_0(r,r.stylesheets),r.unsuspend){var E=r.unsuspend;r.unsuspend=null,E()}},bfe+a);0<r.imgBytes&&nC===0&&(nC=125*nE()*xfe);var S=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&_0(r,r.stylesheets),r.unsuspend)){var E=r.unsuspend;r.unsuspend=null,E()}},(r.imgBytes>nC?50:Sfe)+a);return r.unsuspend=u,function(){r.unsuspend=null,clearTimeout(g),clearTimeout(S)}}:null}function rm(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_0(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}function _0(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,E7=new Map,a.forEach(im,r),E7=null,rm.call(r))}function im(r,a){if(!(a.state.loading&tu)){var u=E7.get(r);if(u)var g=u.get(rC);else{u=new Map,E7.set(r,u);for(var S=r.querySelectorAll("link[data-precedence],style[data-precedence]"),E=0;E<S.length;E++){var M=S[E];(M.nodeName==="LINK"||M.getAttribute("media")!=="not all")&&(u.set(M.dataset.precedence,M),g=M)}g&&u.set(rC,g)}S=a.instance,M=S.getAttribute("data-precedence"),E=u.get(M)||g,E===g&&u.set(rC,S),u.set(M,S),this.count++,g=rm.bind(this),S.addEventListener("load",g),S.addEventListener("error",g),E?E.parentNode.insertBefore(S,E.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(S,r.firstChild)),a.state.loading|=tu}}function ly(r,a,u,g,S,E,M,D,H){for(this.tag=1,this.containerInfo=r,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Vm,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=st(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=st(0),this.hiddenUpdates=st(null),this.identifierPrefix=g,this.onUncaughtError=S,this.onCaughtError=E,this.onRecoverableError=M,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=H,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 yE(r,a,u,g,S,E,M,D,H,Q,we,Ce){return r=new ly(r,a,u,M,H,Q,we,Ce,D),a=Fce,E===!0&&(a|=so|Uu),a|=vn,E=w(3,null,null,a),r.current=E,E.stateNode=r,a=d4(),Nf(a),r.pooledCache=a,Nf(a),E.memoizedState={element:g,isDehydrated:u,cache:a},Ss(E),r}function TS(r){return r?(r=H0,r):H0}function AS(r,a,u,g,S,E){if(fa&&typeof fa.onScheduleFiberRoot=="function")try{fa.onScheduleFiberRoot(Vu,g,u)}catch(M){Hs||(Hs=!0,console.error("React instrumentation encountered an error: %o",M))}S=TS(S),g.context===null?g.context=S:g.pendingContext=S,sl&&Ro!==null&&!WL&&(WL=!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.`,le(Ro)||"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=Aa(r,g,a),u!==null&&(Cl(a,"root.render()",null),Pr(u,r,a),a0(u,r,a))}function vE(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var u=r.retryLane;r.retryLane=u!==0&&u<a?u:a}}function sy(r,a){vE(r,a),(r=r.alternate)&&vE(r,a)}function CS(r){if(r.tag===13||r.tag===31){var a=Fi(r,67108864);a!==null&&Pr(a,r,67108864),sy(r,67108864)}}function ar(r){if(r.tag===13||r.tag===31){var a=Qi(r);a=Vt(a);var u=Fi(r,a);u!==null&&Pr(u,r,a),sy(r,a)}}function OS(){return Ro}function Ki(r,a,u,g){var S=qe.T;qe.T=null;var E=Kn.p;try{Kn.p=Ai,uy(r,a,u,g)}finally{Kn.p=E,qe.T=S}}function H8(r,a,u,g){var S=qe.T;qe.T=null;var E=Kn.p;try{Kn.p=ea,uy(r,a,u,g)}finally{Kn.p=E,qe.T=S}}function uy(r,a,u,g){if(T7){var S=MS(g);if(S===null)zr(r,a,g,A7,u),om(r,g);else if(bE(S,r,a,u,g))g.stopPropagation();else if(om(r,g),a&4&&-1<wfe.indexOf(r)){for(;S!==null;){var E=Ne(S);if(E!==null)switch(E.tag){case 3:if(E=E.stateNode,E.current.memoizedState.isDehydrated){var M=$n(E.pendingLanes);if(M!==0){var D=E;for(D.pendingLanes|=2,D.entangledLanes|=2;M;){var H=1<<31-Ji(M);D.entanglements[1]|=H,M&=~H}_a(E),(qn&(ra|Hl))===ma&&(l7=ei()+wL,w0(0))}}break;case 31:case 13:D=Fi(E,2),D!==null&&Pr(D,E,2),Kf(),sy(E,2)}if(E=MS(g),E===null&&zr(r,a,g,A7,u),E===S)break;S=E}S!==null&&g.stopPropagation()}else zr(r,a,g,null,u)}}function MS(r){return r=Fh(r),am(r)}function am(r){if(A7=null,r=rt(r),r!==null){var a=z(r);if(a===null)r=null;else{var u=a.tag;if(u===13){if(r=B(a),r!==null)return r;r=null}else if(u===31){if(r=V(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 A7=r,null}function cy(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 Ai;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 ea;case"message":switch(X8()){case Ey:return Ai;case wy:return ea;case cd:case TE:return _o;case dm:return jc;default:return _o}default:return _o}}function om(r,a){switch(r){case"focusin":case"focusout":ah=null;break;case"dragenter":case"dragleave":oh=null;break;case"mouseover":case"mouseout":lh=null;break;case"pointerover":case"pointerout":D5.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":k5.delete(a.pointerId)}}function D0(r,a,u,g,S,E){return r===null||r.nativeEvent!==E?(r={blockedOn:a,domEventName:u,eventSystemFlags:g,nativeEvent:E,targetContainers:[S]},a!==null&&(a=Ne(a),a!==null&&CS(a)),r):(r.eventSystemFlags|=g,a=r.targetContainers,S!==null&&a.indexOf(S)===-1&&a.push(S),r)}function bE(r,a,u,g,S){switch(a){case"focusin":return ah=D0(ah,r,a,u,g,S),!0;case"dragenter":return oh=D0(oh,r,a,u,g,S),!0;case"mouseover":return lh=D0(lh,r,a,u,g,S),!0;case"pointerover":var E=S.pointerId;return D5.set(E,D0(D5.get(E)||null,r,a,u,g,S)),!0;case"gotpointercapture":return E=S.pointerId,k5.set(E,D0(k5.get(E)||null,r,a,u,g,S)),!0}return!1}function fy(r){var a=rt(r.target);if(a!==null){var u=z(a);if(u!==null){if(a=u.tag,a===13){if(a=B(u),a!==null){r.blockedOn=a,Z(r.priority,function(){ar(u)});return}}else if(a===31){if(a=V(u),a!==null){r.blockedOn=a,Z(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 k0(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var u=MS(r.nativeEvent);if(u===null){u=r.nativeEvent;var g=new u.constructor(u.type,u),S=g;jS!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),jS=S,u.target.dispatchEvent(g),jS===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."),jS=null}else return a=Ne(u),a!==null&&CS(a),r.blockedOn=u,!1;a.shift()}return!0}function SE(r,a,u){k0(r)&&u.delete(a)}function xE(){iC=!1,ah!==null&&k0(ah)&&(ah=null),oh!==null&&k0(oh)&&(oh=null),lh!==null&&k0(lh)&&(lh=null),D5.forEach(SE),k5.forEach(SE)}function dy(r,a){r.blockedOn===a&&(r.blockedOn=null,iC||(iC=!0,Jr.unstable_scheduleCallback(Jr.unstable_NormalPriority,xE)))}function RS(r){C7!==r&&(C7=r,Jr.unstable_scheduleCallback(Jr.unstable_NormalPriority,function(){C7===r&&(C7=null);for(var a=0;a<r.length;a+=3){var u=r[a],g=r[a+1],S=r[a+2];if(typeof g!="function"){if(am(g||u)===null)continue;break}var E=Ne(u);E!==null&&(r.splice(a,3),a-=3,u={pending:!0,data:S,method:u.method,action:g},Object.freeze(u),f0(E,u,g,S))}}))}function N0(r){function a(H){return dy(H,r)}ah!==null&&dy(ah,r),oh!==null&&dy(oh,r),lh!==null&&dy(lh,r),D5.forEach(a),k5.forEach(a);for(var u=0;u<sh.length;u++){var g=sh[u];g.blockedOn===r&&(g.blockedOn=null)}for(;0<sh.length&&(u=sh[0],u.blockedOn===null);)fy(u),u.blockedOn===null&&sh.shift();if(u=(r.ownerDocument||r).$$reactFormReplay,u!=null)for(g=0;g<u.length;g+=3){var S=u[g],E=u[g+1],M=S[da]||null;if(typeof E=="function")M||RS(u);else if(M){var D=null;if(E&&E.hasAttribute("formAction")){if(S=E,M=E[da]||null)D=M.formAction;else if(am(S)!==null)continue}else D=M.action;typeof D=="function"?u[g+1]=D:(u.splice(g,3),g-=3),RS(u)}}}function EE(){function r(E){E.canIntercept&&E.info==="react-transition"&&E.intercept({handler:function(){return new Promise(function(M){return S=M})},focusReset:"manual",scroll:"manual"})}function a(){S!==null&&(S(),S=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,S=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),S!==null&&(S(),S=null)}}}function $s(r){this._internalRoot=r}function lm(r){this._internalRoot=r}function _S(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 Jr=sC(),DS=Od(),q8=R7(),mn=Object.assign,kS=Symbol.for("react.element"),ol=Symbol.for("react.transitional.element"),z0=Symbol.for("react.portal"),Zi=Symbol.for("react.fragment"),I0=Symbol.for("react.strict_mode"),hy=Symbol.for("react.profiler"),py=Symbol.for("react.consumer"),Bl=Symbol.for("react.context"),Iu=Symbol.for("react.forward_ref"),lo=Symbol.for("react.suspense"),my=Symbol.for("react.suspense_list"),ld=Symbol.for("react.memo"),si=Symbol.for("react.lazy"),NS=Symbol.for("react.activity"),F8=Symbol.for("react.memo_cache_sentinel"),sd=Symbol.iterator,wE=Symbol.for("react.client.reference"),Ti=Array.isArray,qe=DS.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Kn=q8.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G8=Object.freeze({pending:!1,data:null,method:null,action:null}),zS=[],IS=[],Lu=-1,Bu=$(null),js=$(null),ll=$(null),sm=$(null),um=0,ud,L0,LS,cm,gy,yy,fm;q.__reactDisabledLog=!0;var vy,BS,VS=!1,by=new(typeof WeakMap=="function"?WeakMap:Map),Ro=null,sl=!1,Vl=Object.prototype.hasOwnProperty,B0=Jr.unstable_scheduleCallback,Sy=Jr.unstable_cancelCallback,xy=Jr.unstable_shouldYield,Y8=Jr.unstable_requestPaint,ei=Jr.unstable_now,X8=Jr.unstable_getCurrentPriorityLevel,Ey=Jr.unstable_ImmediatePriority,wy=Jr.unstable_UserBlockingPriority,cd=Jr.unstable_NormalPriority,TE=Jr.unstable_LowPriority,dm=Jr.unstable_IdlePriority,AE=Jr.log,CE=Jr.unstable_setDisableYieldValue,Vu=null,fa=null,Hs=!1,ul=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",Ji=Math.clz32?Math.clz32:Mt,Ty=Math.log,US=Math.LN2,hm=256,V0=262144,Ul=4194304,Ai=2,ea=8,_o=32,jc=268435456,ka=Math.random().toString(36).slice(2),ta="__reactFiber$"+ka,da="__reactProps$"+ka,cl="__reactContainer$"+ka,PS="__reactEvents$"+ka,OE="__reactListeners$"+ka,Ay="__reactHandles$"+ka,$S="__reactResources$"+ka,pm="__reactMarker$"+ka,mm=new Set,qs={},Cy={},U0={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},ME=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]*$"),Oy={},gm={},RE=/[\n"\\]/g,_E=!1,ym=!1,l=!1,c=!1,m=!1,v=!1,A=["value","defaultValue"],O=!1,U=/["'&<>\n\t]|^\s|\s$/,te="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(" "),Ie=ve.concat(["button"]),Ge="dd dt li option optgroup p rp rt".split(" "),Je={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},Be={},He={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,jt=/^ms-/,pr=/^(?:webkit|moz|o)[A-Z]/,ke=/^-ms-/,Ae=/-(.)/g,ze=/;\s*$/,We={},It={},Hn=!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(" ")),Tn="http://www.w3.org/1998/Math/MathML",Mn="http://www.w3.org/2000/svg",Hc=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"]]),My={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"},Qz={"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={},rce=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]*$"),ice=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]*$"),Kz=!1,Do={},Zz=/^on./,ace=/^on[^A-Z]/,oce=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]*$"),lce=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]*$"),sce=/^[\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,jS=null,_y=null,Dy=null,W8=!1,qc=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Q8=!1;if(qc)try{var HS={};Object.defineProperty(HS,"passive",{get:function(){Q8=!0}}),window.addEventListener("test",HS,HS),window.removeEventListener("test",HS,HS)}catch{Q8=!1}var P0=null,K8=null,DE=null,vm={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},kE=Xr(vm),qS=mn({},vm,{view:0,detail:0}),uce=Xr(qS),Z8,J8,FS,NE=mn({},qS,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Cf,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!==FS&&(FS&&r.type==="mousemove"?(Z8=r.screenX-FS.screenX,J8=r.screenY-FS.screenY):J8=Z8=0,FS=r),Z8)},movementY:function(r){return"movementY"in r?r.movementY:J8}}),Jz=Xr(NE),cce=mn({},NE,{dataTransfer:0}),fce=Xr(cce),dce=mn({},qS,{relatedTarget:0}),eA=Xr(dce),hce=mn({},vm,{animationName:0,elapsedTime:0,pseudoElement:0}),pce=Xr(hce),mce=mn({},vm,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),gce=Xr(mce),yce=mn({},vm,{data:0}),eI=Xr(yce),vce=eI,bce={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Sce={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"},xce={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Ece=mn({},qS,{key:function(r){if(r.key){var a=bce[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=Kd(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?Sce[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Cf,charCode:function(r){return r.type==="keypress"?Kd(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Kd(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),wce=Xr(Ece),Tce=mn({},NE,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),tI=Xr(Tce),Ace=mn({},qS,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Cf}),Cce=Xr(Ace),Oce=mn({},vm,{propertyName:0,elapsedTime:0,pseudoElement:0}),Mce=Xr(Oce),Rce=mn({},NE,{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}),_ce=Xr(Rce),Dce=mn({},vm,{newState:0,oldState:0}),kce=Xr(Dce),Nce=[9,13,27,32],nI=229,tA=qc&&"CompositionEvent"in window,GS=null;qc&&"documentMode"in document&&(GS=document.documentMode);var zce=qc&&"TextEvent"in window&&!GS,rI=qc&&(!tA||GS&&8<GS&&11>=GS),iI=32,aI=String.fromCharCode(iI),oI=!1,ky=!1,Ice={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},YS=null,XS=null,lI=!1;qc&&(lI=Xg("input")&&(!document.documentMode||9<document.documentMode));var ko=typeof Object.is=="function"?Object.is:T6,Lce=qc&&"documentMode"in document&&11>=document.documentMode,Ny=null,nA=null,WS=null,rA=!1,zy={animationend:Of("Animation","AnimationEnd"),animationiteration:Of("Animation","AnimationIteration"),animationstart:Of("Animation","AnimationStart"),transitionrun:Of("Transition","TransitionRun"),transitionstart:Of("Transition","TransitionStart"),transitioncancel:Of("Transition","TransitionCancel"),transitionend:Of("Transition","TransitionEnd")},iA={},sI={};qc&&(sI=document.createElement("div").style,"AnimationEvent"in window||(delete zy.animationend.animation,delete zy.animationiteration.animation,delete zy.animationstart.animation),"TransitionEvent"in window||delete zy.transitionend.transition);var uI=Mf("animationend"),cI=Mf("animationiteration"),fI=Mf("animationstart"),Bce=Mf("transitionrun"),Vce=Mf("transitionstart"),Uce=Mf("transitioncancel"),dI=Mf("transitionend"),hI=new Map,aA="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(" ");aA.push("scrollEnd");var pI=0;if(typeof performance=="object"&&typeof performance.now=="function")var Pce=performance,mI=function(){return Pce.now()};else{var $ce=Date;mI=function(){return $ce.now()}}var oA=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)},jce="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.",zE=0,lA=1,sA=2,uA=3,IE="– ",LE="+ ",gI="  ",Ir=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",Fs="Components ⚛",Vn="Scheduler ⚛",Pn="Blocking",$0=!1,fd={color:"primary",properties:null,tooltipText:"",track:Fs},j0={start:-0,end:-0,detail:{devtools:fd}},Hce=["Changed Props",""],yI="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",qce=["Changed Props",yI],QS=1,dd=2,Gs=[],Iy=0,cA=0,H0={};Object.freeze(H0);var Ys=null,Ly=null,Jt=0,Fce=1,vn=2,so=8,Uu=16,Gce=32,vI=!1;try{var bI=Object.preventExtensions({})}catch{vI=!0}var fA=new WeakMap,By=[],Vy=0,BE=null,KS=0,Xs=[],Ws=0,bm=null,hd=1,pd="",Na=null,Lr=null,zn=!1,Fc=!1,Pl=null,q0=null,Qs=!1,dA=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."),hA=$(null),pA=$(null),SI={},VE=null,Uy=null,Py=!1,Yce=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()})}},Xce=Jr.unstable_scheduleCallback,Wce=Jr.unstable_NormalPriority,zi={$$typeof:Bl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Ii=Jr.unstable_now,UE=console.createTask?console.createTask:function(){return null},ZS=1,PE=2,ha=-0,F0=-0,md=-0,gd=null,No=-1.1,Sm=-0,ti=-0,Pt=-1.1,Wt=-1.1,$r=null,ui=!1,xm=-0,Gc=-1.1,JS=null,G0=0,mA=null,gA=null,Em=-1.1,e5=null,$y=-1.1,$E=-1.1,yd=-0,vd=-1.1,Ks=-1.1,yA=0,t5=null,xI=null,EI=null,Y0=-1.1,wm=null,X0=-1.1,jE=-1.1,wI=-0,TI=-0,HE=0,Qce=null,AI=0,n5=-1.1,qE=!1,FE=!1,r5=null,vA=0,Tm=0,jy=null,CI=qe.S;qe.S=function(r,a){if(xL=ei(),typeof a=="object"&&a!==null&&typeof a.then=="function"){if(0>vd&&0>Ks){vd=Ii();var u=C0(),g=A0();(u!==X0||g!==wm)&&(X0=-1.1),Y0=u,wm=g}V6(r,a)}CI!==null&&CI(r,a)};var Am=$(null),Pu={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},i5=[],a5=[],o5=[],l5=[],s5=[],u5=[],Cm=new Set;Pu.recordUnsafeLifecycleWarnings=function(r,a){Cm.has(r.type)||(typeof a.componentWillMount=="function"&&a.componentWillMount.__suppressDeprecationWarning!==!0&&i5.push(r),r.mode&so&&typeof a.UNSAFE_componentWillMount=="function"&&a5.push(r),typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&o5.push(r),r.mode&so&&typeof a.UNSAFE_componentWillReceiveProps=="function"&&l5.push(r),typeof a.componentWillUpdate=="function"&&a.componentWillUpdate.__suppressDeprecationWarning!==!0&&s5.push(r),r.mode&so&&typeof a.UNSAFE_componentWillUpdate=="function"&&u5.push(r))},Pu.flushPendingUnsafeLifecycleWarnings=function(){var r=new Set;0<i5.length&&(i5.forEach(function(D){r.add(le(D)||"Component"),Cm.add(D.type)}),i5=[]);var a=new Set;0<a5.length&&(a5.forEach(function(D){a.add(le(D)||"Component"),Cm.add(D.type)}),a5=[]);var u=new Set;0<o5.length&&(o5.forEach(function(D){u.add(le(D)||"Component"),Cm.add(D.type)}),o5=[]);var g=new Set;0<l5.length&&(l5.forEach(function(D){g.add(le(D)||"Component"),Cm.add(D.type)}),l5=[]);var S=new Set;0<s5.length&&(s5.forEach(function(D){S.add(le(D)||"Component"),Cm.add(D.type)}),s5=[]);var E=new Set;if(0<u5.length&&(u5.forEach(function(D){E.add(le(D)||"Component"),Cm.add(D.type)}),u5=[]),0<a.size){var M=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`,M)}0<g.size&&(M=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`,M)),0<E.size&&(M=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`,M)),0<r.size&&(M=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`,M)),0<u.size&&(M=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`,M)),0<S.size&&(M=T(S),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`,M))};var GE=new Map,OI=new Set;Pu.recordLegacyContextWarning=function(r,a){for(var u=null,g=r;g!==null;)g.mode&so&&(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."):!OI.has(r.type)&&(g=GE.get(u),r.type.contextTypes!=null||r.type.childContextTypes!=null||a!==null&&typeof a.getChildContext=="function")&&(g===void 0&&(g=[],GE.set(u,g)),g.push(r))},Pu.flushLegacyContextWarning=function(){GE.forEach(function(r){if(r.length!==0){var a=r[0],u=new Set;r.forEach(function(S){u.add(le(S)||"Component"),OI.add(S.type)});var g=T(u);$e(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)})}})},Pu.discardPendingWarnings=function(){i5=[],a5=[],o5=[],l5=[],s5=[],u5=[],GE=new Map};var MI={react_stack_bottom_frame:function(r,a,u){var g=sl;sl=!0;try{return r(a,u)}finally{sl=g}}},bA=MI.react_stack_bottom_frame.bind(MI),RI={react_stack_bottom_frame:function(r){var a=sl;sl=!0;try{return r.render()}finally{sl=a}}},_I=RI.react_stack_bottom_frame.bind(RI),DI={react_stack_bottom_frame:function(r,a){try{a.componentDidMount()}catch(u){Gn(r,r.return,u)}}},SA=DI.react_stack_bottom_frame.bind(DI),kI={react_stack_bottom_frame:function(r,a,u,g,S){try{a.componentDidUpdate(u,g,S)}catch(E){Gn(r,r.return,E)}}},NI=kI.react_stack_bottom_frame.bind(kI),zI={react_stack_bottom_frame:function(r,a){var u=a.stack;r.componentDidCatch(a.value,{componentStack:u!==null?u:""})}},Kce=zI.react_stack_bottom_frame.bind(zI),II={react_stack_bottom_frame:function(r,a,u){try{u.componentWillUnmount()}catch(g){Gn(r,a,g)}}},LI=II.react_stack_bottom_frame.bind(II),BI={react_stack_bottom_frame:function(r){var a=r.create;return r=r.inst,a=a(),r.destroy=a}},Zce=BI.react_stack_bottom_frame.bind(BI),VI={react_stack_bottom_frame:function(r,a,u){try{u()}catch(g){Gn(r,a,g)}}},Jce=VI.react_stack_bottom_frame.bind(VI),UI={react_stack_bottom_frame:function(r){var a=r._init;return a(r._payload)}},efe=UI.react_stack_bottom_frame.bind(UI),Hy=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`."),xA=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."),YE=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."),XE={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.')}},Om=null,c5=!1,qy=null,f5=0,bn=null,EA,PI=EA=!1,$I={},jI={},HI={};x=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=le(r),S=g||"null";if(!$I[S]){$I[S]=!0,u=u._owner,r=r._debugOwner;var E="";r&&typeof r.tag=="number"&&(S=le(r))&&(E=`

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

Check the top-level render call using <`+g+">.");var M="";u!=null&&r!==u&&(g=null,typeof u.tag=="number"?g=le(u):typeof u.name=="string"&&(g=u.name),g&&(M=" It was passed a child from "+g+".")),$e(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,M)})}}};var Mm=xr(!0),qI=xr(!1),FI=0,GI=1,YI=2,wA=3,W0=!1,XI=!1,TA=null,AA=!1,Fy=$(null),WE=$(0),$l=$(null),Zs=null,Gy=1,d5=2,Ci=$(0),QE=0,Js=1,zo=2,jl=4,Io=8,Yy,WI=new Set,QI=new Set,CA=new Set,KI=new Set,bd=0,on=null,wr=null,Li=null,KE=!1,Xy=!1,Rm=!1,ZE=0,h5=0,Sd=null,tfe=0,nfe=25,je=null,eu=null,xd=-1,p5=!1,m5={readContext:Sr,use:Za,useCallback:Wr,useContext:Wr,useEffect:Wr,useImperativeHandle:Wr,useLayoutEffect:Wr,useInsertionEffect:Wr,useMemo:Wr,useReducer:Wr,useRef:Wr,useState:Wr,useDebugValue:Wr,useDeferredValue:Wr,useTransition:Wr,useSyncExternalStore:Wr,useId:Wr,useHostTransitionStatus:Wr,useFormState:Wr,useActionState:Wr,useOptimistic:Wr,useMemoCache:Wr,useCacheRefresh:Wr};m5.useEffectEvent=Wr;var OA=null,ZI=null,MA=null,JI=null,Yc=null,$u=null,JE=null;OA={readContext:function(r){return Sr(r)},use:Za,useCallback:function(r,a){return je="useCallback",Bt(),Bf(a),Cs(r,a)},useContext:function(r){return je="useContext",Bt(),Sr(r)},useEffect:function(r,a){return je="useEffect",Bt(),Bf(a),vp(r,a)},useImperativeHandle:function(r,a,u){return je="useImperativeHandle",Bt(),Bf(u),Sp(r,a,u)},useInsertionEffect:function(r,a){je="useInsertionEffect",Bt(),Bf(a),Zo(4,zo,r,a)},useLayoutEffect:function(r,a){return je="useLayoutEffect",Bt(),Bf(a),eo(r,a)},useMemo:function(r,a){je="useMemo",Bt(),Bf(a);var u=qe.H;qe.H=Yc;try{return Vr(r,a)}finally{qe.H=u}},useReducer:function(r,a,u){je="useReducer",Bt();var g=qe.H;qe.H=Yc;try{return p1(r,a,u)}finally{qe.H=g}},useRef:function(r){return je="useRef",Bt(),y1(r)},useState:function(r){je="useState",Bt();var a=qe.H;qe.H=Yc;try{return Uf(r)}finally{qe.H=a}},useDebugValue:function(){je="useDebugValue",Bt()},useDeferredValue:function(r,a){return je="useDeferredValue",Bt(),kl(r,a)},useTransition:function(){return je="useTransition",Bt(),E4()},useSyncExternalStore:function(r,a,u){return je="useSyncExternalStore",Bt(),l0(r,a,u)},useId:function(){return je="useId",Bt(),b1()},useFormState:function(r,a){return je="useFormState",Bt(),f1(),As(r,a)},useActionState:function(r,a){return je="useActionState",Bt(),As(r,a)},useOptimistic:function(r){return je="useOptimistic",Bt(),s0(r)},useHostTransitionStatus:Ou,useMemoCache:xu,useCacheRefresh:function(){return je="useCacheRefresh",Bt(),S1()},useEffectEvent:function(r){return je="useEffectEvent",Bt(),bp(r)}},ZI={readContext:function(r){return Sr(r)},use:Za,useCallback:function(r,a){return je="useCallback",it(),Cs(r,a)},useContext:function(r){return je="useContext",it(),Sr(r)},useEffect:function(r,a){return je="useEffect",it(),vp(r,a)},useImperativeHandle:function(r,a,u){return je="useImperativeHandle",it(),Sp(r,a,u)},useInsertionEffect:function(r,a){je="useInsertionEffect",it(),Zo(4,zo,r,a)},useLayoutEffect:function(r,a){return je="useLayoutEffect",it(),eo(r,a)},useMemo:function(r,a){je="useMemo",it();var u=qe.H;qe.H=Yc;try{return Vr(r,a)}finally{qe.H=u}},useReducer:function(r,a,u){je="useReducer",it();var g=qe.H;qe.H=Yc;try{return p1(r,a,u)}finally{qe.H=g}},useRef:function(r){return je="useRef",it(),y1(r)},useState:function(r){je="useState",it();var a=qe.H;qe.H=Yc;try{return Uf(r)}finally{qe.H=a}},useDebugValue:function(){je="useDebugValue",it()},useDeferredValue:function(r,a){return je="useDeferredValue",it(),kl(r,a)},useTransition:function(){return je="useTransition",it(),E4()},useSyncExternalStore:function(r,a,u){return je="useSyncExternalStore",it(),l0(r,a,u)},useId:function(){return je="useId",it(),b1()},useActionState:function(r,a){return je="useActionState",it(),As(r,a)},useFormState:function(r,a){return je="useFormState",it(),f1(),As(r,a)},useOptimistic:function(r){return je="useOptimistic",it(),s0(r)},useHostTransitionStatus:Ou,useMemoCache:xu,useCacheRefresh:function(){return je="useCacheRefresh",it(),S1()},useEffectEvent:function(r){return je="useEffectEvent",it(),bp(r)}},MA={readContext:function(r){return Sr(r)},use:Za,useCallback:function(r,a){return je="useCallback",it(),sa(r,a)},useContext:function(r){return je="useContext",it(),Sr(r)},useEffect:function(r,a){je="useEffect",it(),Gi(2048,Io,r,a)},useImperativeHandle:function(r,a,u){return je="useImperativeHandle",it(),xp(r,a,u)},useInsertionEffect:function(r,a){return je="useInsertionEffect",it(),Gi(4,zo,r,a)},useLayoutEffect:function(r,a){return je="useLayoutEffect",it(),Gi(4,jl,r,a)},useMemo:function(r,a){je="useMemo",it();var u=qe.H;qe.H=$u;try{return jf(r,a)}finally{qe.H=u}},useReducer:function(r,a,u){je="useReducer",it();var g=qe.H;qe.H=$u;try{return Dl(r,a,u)}finally{qe.H=g}},useRef:function(){return je="useRef",it(),Wn().memoizedState},useState:function(){je="useState",it();var r=qe.H;qe.H=$u;try{return Dl(Ja)}finally{qe.H=r}},useDebugValue:function(){je="useDebugValue",it()},useDeferredValue:function(r,a){return je="useDeferredValue",it(),fn(r,a)},useTransition:function(){return je="useTransition",it(),Ur()},useSyncExternalStore:function(r,a,u){return je="useSyncExternalStore",it(),pp(r,a,u)},useId:function(){return je="useId",it(),Wn().memoizedState},useFormState:function(r){return je="useFormState",it(),f1(),c0(r)},useActionState:function(r){return je="useActionState",it(),c0(r)},useOptimistic:function(r,a){return je="useOptimistic",it(),u0(r,a)},useHostTransitionStatus:Ou,useMemoCache:xu,useCacheRefresh:function(){return je="useCacheRefresh",it(),Wn().memoizedState},useEffectEvent:function(r){return je="useEffectEvent",it(),la(r)}},JI={readContext:function(r){return Sr(r)},use:Za,useCallback:function(r,a){return je="useCallback",it(),sa(r,a)},useContext:function(r){return je="useContext",it(),Sr(r)},useEffect:function(r,a){je="useEffect",it(),Gi(2048,Io,r,a)},useImperativeHandle:function(r,a,u){return je="useImperativeHandle",it(),xp(r,a,u)},useInsertionEffect:function(r,a){return je="useInsertionEffect",it(),Gi(4,zo,r,a)},useLayoutEffect:function(r,a){return je="useLayoutEffect",it(),Gi(4,jl,r,a)},useMemo:function(r,a){je="useMemo",it();var u=qe.H;qe.H=JE;try{return jf(r,a)}finally{qe.H=u}},useReducer:function(r,a,u){je="useReducer",it();var g=qe.H;qe.H=JE;try{return Mc(r,a,u)}finally{qe.H=g}},useRef:function(){return je="useRef",it(),Wn().memoizedState},useState:function(){je="useState",it();var r=qe.H;qe.H=JE;try{return Mc(Ja)}finally{qe.H=r}},useDebugValue:function(){je="useDebugValue",it()},useDeferredValue:function(r,a){return je="useDeferredValue",it(),nr(r,a)},useTransition:function(){return je="useTransition",it(),v1()},useSyncExternalStore:function(r,a,u){return je="useSyncExternalStore",it(),pp(r,a,u)},useId:function(){return je="useId",it(),Wn().memoizedState},useFormState:function(r){return je="useFormState",it(),f1(),kc(r)},useActionState:function(r){return je="useActionState",it(),kc(r)},useOptimistic:function(r,a){return je="useOptimistic",it(),b4(r,a)},useHostTransitionStatus:Ou,useMemoCache:xu,useCacheRefresh:function(){return je="useCacheRefresh",it(),Wn().memoizedState},useEffectEvent:function(r){return je="useEffectEvent",it(),la(r)}},Yc={readContext:function(r){return y(),Sr(r)},use:function(r){return h(),Za(r)},useCallback:function(r,a){return je="useCallback",h(),Bt(),Cs(r,a)},useContext:function(r){return je="useContext",h(),Bt(),Sr(r)},useEffect:function(r,a){return je="useEffect",h(),Bt(),vp(r,a)},useImperativeHandle:function(r,a,u){return je="useImperativeHandle",h(),Bt(),Sp(r,a,u)},useInsertionEffect:function(r,a){je="useInsertionEffect",h(),Bt(),Zo(4,zo,r,a)},useLayoutEffect:function(r,a){return je="useLayoutEffect",h(),Bt(),eo(r,a)},useMemo:function(r,a){je="useMemo",h(),Bt();var u=qe.H;qe.H=Yc;try{return Vr(r,a)}finally{qe.H=u}},useReducer:function(r,a,u){je="useReducer",h(),Bt();var g=qe.H;qe.H=Yc;try{return p1(r,a,u)}finally{qe.H=g}},useRef:function(r){return je="useRef",h(),Bt(),y1(r)},useState:function(r){je="useState",h(),Bt();var a=qe.H;qe.H=Yc;try{return Uf(r)}finally{qe.H=a}},useDebugValue:function(){je="useDebugValue",h(),Bt()},useDeferredValue:function(r,a){return je="useDeferredValue",h(),Bt(),kl(r,a)},useTransition:function(){return je="useTransition",h(),Bt(),E4()},useSyncExternalStore:function(r,a,u){return je="useSyncExternalStore",h(),Bt(),l0(r,a,u)},useId:function(){return je="useId",h(),Bt(),b1()},useFormState:function(r,a){return je="useFormState",h(),Bt(),As(r,a)},useActionState:function(r,a){return je="useActionState",h(),Bt(),As(r,a)},useOptimistic:function(r){return je="useOptimistic",h(),Bt(),s0(r)},useMemoCache:function(r){return h(),xu(r)},useHostTransitionStatus:Ou,useCacheRefresh:function(){return je="useCacheRefresh",Bt(),S1()},useEffectEvent:function(r){return je="useEffectEvent",h(),Bt(),bp(r)}},$u={readContext:function(r){return y(),Sr(r)},use:function(r){return h(),Za(r)},useCallback:function(r,a){return je="useCallback",h(),it(),sa(r,a)},useContext:function(r){return je="useContext",h(),it(),Sr(r)},useEffect:function(r,a){je="useEffect",h(),it(),Gi(2048,Io,r,a)},useImperativeHandle:function(r,a,u){return je="useImperativeHandle",h(),it(),xp(r,a,u)},useInsertionEffect:function(r,a){return je="useInsertionEffect",h(),it(),Gi(4,zo,r,a)},useLayoutEffect:function(r,a){return je="useLayoutEffect",h(),it(),Gi(4,jl,r,a)},useMemo:function(r,a){je="useMemo",h(),it();var u=qe.H;qe.H=$u;try{return jf(r,a)}finally{qe.H=u}},useReducer:function(r,a,u){je="useReducer",h(),it();var g=qe.H;qe.H=$u;try{return Dl(r,a,u)}finally{qe.H=g}},useRef:function(){return je="useRef",h(),it(),Wn().memoizedState},useState:function(){je="useState",h(),it();var r=qe.H;qe.H=$u;try{return Dl(Ja)}finally{qe.H=r}},useDebugValue:function(){je="useDebugValue",h(),it()},useDeferredValue:function(r,a){return je="useDeferredValue",h(),it(),fn(r,a)},useTransition:function(){return je="useTransition",h(),it(),Ur()},useSyncExternalStore:function(r,a,u){return je="useSyncExternalStore",h(),it(),pp(r,a,u)},useId:function(){return je="useId",h(),it(),Wn().memoizedState},useFormState:function(r){return je="useFormState",h(),it(),c0(r)},useActionState:function(r){return je="useActionState",h(),it(),c0(r)},useOptimistic:function(r,a){return je="useOptimistic",h(),it(),u0(r,a)},useMemoCache:function(r){return h(),xu(r)},useHostTransitionStatus:Ou,useCacheRefresh:function(){return je="useCacheRefresh",it(),Wn().memoizedState},useEffectEvent:function(r){return je="useEffectEvent",h(),it(),la(r)}},JE={readContext:function(r){return y(),Sr(r)},use:function(r){return h(),Za(r)},useCallback:function(r,a){return je="useCallback",h(),it(),sa(r,a)},useContext:function(r){return je="useContext",h(),it(),Sr(r)},useEffect:function(r,a){je="useEffect",h(),it(),Gi(2048,Io,r,a)},useImperativeHandle:function(r,a,u){return je="useImperativeHandle",h(),it(),xp(r,a,u)},useInsertionEffect:function(r,a){return je="useInsertionEffect",h(),it(),Gi(4,zo,r,a)},useLayoutEffect:function(r,a){return je="useLayoutEffect",h(),it(),Gi(4,jl,r,a)},useMemo:function(r,a){je="useMemo",h(),it();var u=qe.H;qe.H=$u;try{return jf(r,a)}finally{qe.H=u}},useReducer:function(r,a,u){je="useReducer",h(),it();var g=qe.H;qe.H=$u;try{return Mc(r,a,u)}finally{qe.H=g}},useRef:function(){return je="useRef",h(),it(),Wn().memoizedState},useState:function(){je="useState",h(),it();var r=qe.H;qe.H=$u;try{return Mc(Ja)}finally{qe.H=r}},useDebugValue:function(){je="useDebugValue",h(),it()},useDeferredValue:function(r,a){return je="useDeferredValue",h(),it(),nr(r,a)},useTransition:function(){return je="useTransition",h(),it(),v1()},useSyncExternalStore:function(r,a,u){return je="useSyncExternalStore",h(),it(),pp(r,a,u)},useId:function(){return je="useId",h(),it(),Wn().memoizedState},useFormState:function(r){return je="useFormState",h(),it(),kc(r)},useActionState:function(r){return je="useActionState",h(),it(),kc(r)},useOptimistic:function(r,a){return je="useOptimistic",h(),it(),b4(r,a)},useMemoCache:function(r){return h(),xu(r)},useHostTransitionStatus:Ou,useCacheRefresh:function(){return je="useCacheRefresh",it(),Wn().memoizedState},useEffectEvent:function(r){return je="useEffectEvent",h(),it(),la(r)}};var eL={},tL=new Set,nL=new Set,rL=new Set,iL=new Set,aL=new Set,oL=new Set,lL=new Set,sL=new Set,uL=new Set,cL=new Set;Object.freeze(eL);var RA={enqueueSetState:function(r,a,u){r=r._reactInternals;var g=Qi(r),S=xs(g);S.payload=a,u!=null&&(p0(u),S.callback=u),a=Aa(r,S,g),a!==null&&(Cl(g,"this.setState()",r),Pr(a,r,g),a0(a,r,g))},enqueueReplaceState:function(r,a,u){r=r._reactInternals;var g=Qi(r),S=xs(g);S.tag=GI,S.payload=a,u!=null&&(p0(u),S.callback=u),a=Aa(r,S,g),a!==null&&(Cl(g,"this.replaceState()",r),Pr(a,r,g),a0(a,r,g))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var u=Qi(r),g=xs(u);g.tag=YI,a!=null&&(p0(a),g.callback=a),a=Aa(r,g,u),a!==null&&(Cl(u,"this.forceUpdate()",r),Pr(a,r,u),a0(a,r,u))}},Wy=null,_A=null,DA=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."),Bi=!1,fL={},dL={},hL={},pL={},Qy=!1,mL={},e7={},kA={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},gL=!1,yL=null;yL=new Set;var Ed=!1,Vi=!1,NA=!1,vL=typeof WeakSet=="function"?WeakSet:Set,pa=null,Ky=null,Zy=null,Ui=null,fl=!1,ju=null,na=!1,g5=8192,rfe={getCacheForType:function(r){var a=Sr(zi),u=a.data.get(r);return u===void 0&&(u=r(),a.data.set(r,u)),u},cacheSignal:function(){return Sr(zi).controller.signal},getOwner:function(){return Ro}};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 ife=[],afe=typeof WeakMap=="function"?WeakMap:Map,ma=0,ra=2,Hl=4,wd=0,v5=1,_m=2,t7=3,Q0=4,n7=6,bL=5,qn=ma,Tr=null,An=null,Sn=0,dl=0,r7=1,Dm=2,b5=3,SL=4,zA=5,S5=6,i7=7,IA=8,km=9,mr=dl,ql=null,K0=!1,Jy=!1,LA=!1,Xc=0,ni=wd,Z0=0,J0=0,BA=0,hl=0,Nm=0,x5=null,Lo=null,a7=!1,o7=0,xL=0,EL=300,l7=1/0,wL=500,E5=null,yi=null,eh=null,s7=0,VA=1,UA=2,TL=3,th=0,AL=1,CL=2,OL=3,ML=4,u7=5,Pi=0,nh=null,ev=null,Hu=0,PA=0,$A=-0,jA=null,RL=null,_L=null,qu=s7,DL=null,ofe=50,w5=0,HA=null,qA=!1,c7=!1,lfe=50,zm=0,T5=null,tv=!1,f7=null,kL=!1,NL=new Set,sfe={},d7=null,nv=null,FA=!1,GA=!1,h7=!1,YA=!1,rh=0,XA={};(function(){for(var r=0;r<aA.length;r++){var a=aA[r],u=a.toLowerCase();a=a[0].toUpperCase()+a.slice(1),Wo(u,"on"+a)}Wo(uI,"onAnimationEnd"),Wo(cI,"onAnimationIteration"),Wo(fI,"onAnimationStart"),Wo("dblclick","onDoubleClick"),Wo("focusin","onFocus"),Wo("focusout","onBlur"),Wo(Bce,"onTransitionRun"),Wo(Vce,"onTransitionStart"),Wo(Uce,"onTransitionCancel"),Wo(dI,"onTransitionEnd")})(),pt("onMouseEnter",["mouseout","mouseover"]),pt("onMouseLeave",["mouseout","mouseover"]),pt("onPointerEnter",["pointerout","pointerover"]),pt("onPointerLeave",["pointerout","pointerover"]),Xt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Xt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xt("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(" "),WA=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(A5)),p7="_reactListening"+Math.random().toString(36).slice(2),zL=!1,IL=!1,m7=!1,LL=!1,g7=!1,y7=!1,BL=!1,v7={},ufe=/\r\n?/g,cfe=/\u0000|\uFFFD/g,Im="http://www.w3.org/1999/xlink",QA="http://www.w3.org/XML/1998/namespace",ffe="javascript:throw new Error('React form unexpectedly submitted.')",dfe="suppressHydrationWarning",Lm="&",b7="/&",C5="$",O5="/$",ih="$?",Bm="$~",rv="$!",hfe="html",pfe="body",mfe="head",KA="F!",VL="F",UL="loading",gfe="style",Td=0,iv=1,S7=2,ZA=null,JA=null,PL={dialog:!0,webview:!0},eC=null,M5=void 0,$L=typeof setTimeout=="function"?setTimeout:void 0,yfe=typeof clearTimeout=="function"?clearTimeout:void 0,Vm=-1,jL=typeof Promise=="function"?Promise:void 0,vfe=typeof queueMicrotask=="function"?queueMicrotask:typeof jL<"u"?function(r){return jL.resolve(null).then(r).catch(rE)}:$L,tC=null,Um=0,R5=1,HL=2,qL=3,tu=4,nu=new Map,FL=new Set,Ad=Kn.d;Kn.d={f:function(){var r=Ad.f(),a=Kf();return r||a},r:function(r){var a=Ne(r);a!==null&&a.tag===5&&a.type==="form"?Hf(a):Ad.r(r)},D:function(r){Ad.D(r),vS("dns-prefetch",r,null)},C:function(r,a){Ad.C(r,a),vS("preconnect",r,a)},L:function(r,a,u){Ad.L(r,a,u);var g=av;if(g&&r&&a){var S='link[rel="preload"][as="'+Mr(a)+'"]';a==="image"&&u&&u.imageSrcSet?(S+='[imagesrcset="'+Mr(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(S+='[imagesizes="'+Mr(u.imageSizes)+'"]')):S+='[href="'+Mr(r)+'"]';var E=S;switch(a){case"style":E=M0(r);break;case"script":E=R0(r)}nu.has(E)||(r=mn({rel:"preload",href:a==="image"&&u&&u.imageSrcSet?void 0:r,as:a},u),nu.set(E,r),g.querySelector(S)!==null||a==="style"&&g.querySelector(id(E))||a==="script"&&g.querySelector(ad(E))||(a=g.createElement("link"),Bn(a,"link",r),St(a),g.head.appendChild(a)))}},m:function(r,a){Ad.m(r,a);var u=av;if(u&&r){var g=a&&typeof a.as=="string"?a.as:"script",S='link[rel="modulepreload"][as="'+Mr(g)+'"][href="'+Mr(r)+'"]',E=S;switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":E=R0(r)}if(!nu.has(E)&&(r=mn({rel:"modulepreload",href:r},a),nu.set(E,r),u.querySelector(S)===null)){switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(ad(E)))return}g=u.createElement("link"),Bn(g,"link",r),St(g),u.head.appendChild(g)}}},X:function(r,a){Ad.X(r,a);var u=av;if(u&&r){var g=At(u).hoistableScripts,S=R0(r),E=g.get(S);E||(E=u.querySelector(ad(S)),E||(r=mn({src:r,async:!0},a),(a=nu.get(S))&&od(r,a),E=u.createElement("script"),St(E),Bn(E,"link",r),u.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},g.set(S,E))}},S:function(r,a,u){Ad.S(r,a,u);var g=av;if(g&&r){var S=At(g).hoistableStyles,E=M0(r);a=a||"default";var M=S.get(E);if(!M){var D={loading:Um,preload:null};if(M=g.querySelector(id(E)))D.loading=R5|tu;else{r=mn({rel:"stylesheet",href:r,"data-precedence":a},u),(u=nu.get(E))&&xS(r,u);var H=M=g.createElement("link");St(H),Bn(H,"link",r),H._p=new Promise(function(Q,we){H.onload=Q,H.onerror=we}),H.addEventListener("load",function(){D.loading|=R5}),H.addEventListener("error",function(){D.loading|=HL}),D.loading|=tu,iy(M,a,g)}M={type:"stylesheet",instance:M,count:1,state:D},S.set(E,M)}}},M:function(r,a){Ad.M(r,a);var u=av;if(u&&r){var g=At(u).hoistableScripts,S=R0(r),E=g.get(S);E||(E=u.querySelector(ad(S)),E||(r=mn({src:r,async:!0,type:"module"},a),(a=nu.get(S))&&od(r,a),E=u.createElement("script"),St(E),Bn(E,"link",r),u.head.appendChild(E)),E={type:"script",instance:E,count:1,state:null},g.set(S,E))}}};var av=typeof document>"u"?null:document,x7=null,bfe=6e4,Sfe=800,xfe=500,nC=0,rC=null,E7=null,Pm=G8,_5={$$typeof:Bl,Provider:null,Consumer:null,_currentValue:Pm,_currentValue2:Pm,_threadCount:0},GL="%c%s%c",YL="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",XL="",w7=" ",Efe=Function.prototype.bind,WL=!1,QL=null,KL=null,ZL=null,JL=null,eB=null,tB=null,nB=null,rB=null,iB=null,aB=null;QL=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=mn({},r.memoizedProps),u=Fi(r,2),u!==null&&Pr(u,r,2))},KL=function(r,a,u){a=t(r,a),a!==null&&(u=s(a.memoizedState,u,0),a.memoizedState=u,a.baseState=u,r.memoizedProps=mn({},r.memoizedProps),u=Fi(r,2),u!==null&&Pr(u,r,2))},ZL=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=mn({},r.memoizedProps),u=Fi(r,2),u!==null&&Pr(u,r,2))},JL=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&&Pr(a,r,2)},eB=function(r,a){r.pendingProps=s(r.memoizedProps,a,0),r.alternate&&(r.alternate.pendingProps=r.pendingProps),a=Fi(r,2),a!==null&&Pr(a,r,2)},tB=function(r,a,u){r.pendingProps=i(r.memoizedProps,a,u),r.alternate&&(r.alternate.pendingProps=r.pendingProps),a=Fi(r,2),a!==null&&Pr(a,r,2)},nB=function(r){var a=Fi(r,2);a!==null&&Pr(a,r,2)},rB=function(r){var a=Ue(),u=Fi(r,a);u!==null&&Pr(u,r,a)},iB=function(r){d=r},aB=function(r){f=r};var T7=!0,A7=null,iC=!1,ah=null,oh=null,lh=null,D5=new Map,k5=new Map,sh=[],wfe="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(" "),C7=null;if(lm.prototype.render=$s.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()."):N(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,S=Qi(g);AS(g,S,u,a,null,null)},lm.prototype.unmount=$s.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;(qn&(ra|Hl))!==ma&&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."),AS(r.current,2,null,r,null,null),Kf(),a[cl]=null}},lm.prototype.unstable_scheduleHydration=function(r){if(r){var a=fr();r={blockedOn:null,target:r,priority:a};for(var u=0;u<sh.length&&a!==0&&a<sh[u].priority;u++);sh.splice(u,0,r),u===0&&fy(r)}},(function(){var r=DS.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=P(a),r=r!==null?Y(r):null,r=r===null?null:r.stateNode,r},!(function(){var r={bundleType:1,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:qe,reconcilerVersion:"19.2.4"};return r.overrideHookState=QL,r.overrideHookStateDeletePath=KL,r.overrideHookStateRenamePath=ZL,r.overrideProps=JL,r.overridePropsDeletePath=eB,r.overridePropsRenamePath=tB,r.scheduleUpdate=nB,r.scheduleRetry=rB,r.setErrorHandler=iB,r.setSuspenseHandler=aB,r.scheduleRefresh=R,r.scheduleRoot=C,r.setRefreshHandler=_,r.getCurrentFiber=OS,Dn(r)})()&&qc&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var oB=window.location.protocol;/^(https?|file):$/.test(oB)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(oB==="file:"?`
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}sv.createRoot=function(r,a){if(!N(r))throw Error("Target container is not a DOM element.");_S(r);var u=!1,g="",S=E1,E=T4,M=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&&(S=a.onUncaughtError),a.onCaughtError!==void 0&&(E=a.onCaughtError),a.onRecoverableError!==void 0&&(M=a.onRecoverableError)),a=yE(r,1,!1,null,null,u,g,null,S,E,M,EE),r[cl]=a.current,Gp(r),new $s(a)},sv.hydrateRoot=function(r,a,u){if(!N(r))throw Error("Target container is not a DOM element.");_S(r),a===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var g=!1,S="",E=E1,M=T4,D=A4,H=null;return u!=null&&(u.unstable_strictMode===!0&&(g=!0),u.identifierPrefix!==void 0&&(S=u.identifierPrefix),u.onUncaughtError!==void 0&&(E=u.onUncaughtError),u.onCaughtError!==void 0&&(M=u.onCaughtError),u.onRecoverableError!==void 0&&(D=u.onRecoverableError),u.formState!==void 0&&(H=u.formState)),a=yE(r,1,!0,a,u??null,g,S,H,E,M,D,EE),a.context=TS(null),u=a.current,g=Qi(u),g=Vt(g),S=xs(g),S.callback=null,Aa(u,S,g),Cl(g,"hydrateRoot()",null),u=g,a.current.lanes=u,mt(a,u),_a(a),r[cl]=a.current,Gp(r),new lm(a)},sv.version="19.2.4",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),sv}var yC;function mB(){if(yC)return Wc.exports;yC=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(),Wc.exports=hB()):Wc.exports=pB(),Wc.exports}var gB=mB(),Rn=(e=>(e.VERTICAL="vert",e.HORIZONTAL="horz",e))(Rn||{}),or=(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))(or||{});function yB(e){return e!==null&&typeof e=="object"&&"x"in e}function vB(e){return typeof e=="string"||typeof e=="number"}function bB(e){return e!==null&&typeof e=="object"&&"x"in e}class _7{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 f=!1;return typeof s.onSwitchFrom=="function"&&(f=s.onSwitchFrom(i)),f||s.moveToXValue(o),this.notifyLayerSwitch(t,s),s}computeIndexAndSegment(t,n,i,o){return i===Rn.HORIZONTAL?{pointIndex:t,segmentType:o[n]}:{pointIndex:n,segmentType:o[t]}}computeVisualCoordinates(t,n,i){return i===Rn.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=Gu(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,f=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 x=this.findNearestPointIndexByX(y,n);if(x!==-1){const T=Gu(y[x]);let w=Number.POSITIVE_INFINITY;typeof n=="number"&&typeof T=="number"?(w=Math.abs(T-n),w<f&&(f=w,o=h,s=x,d="numeric")):typeof n=="string"&&typeof T=="string"?o===-1&&(o=h,s=x,d="categorical"):o===-1&&(o=h,s=x,d="generic")}}}if(o!==-1&&s!==-1){const h=t[o];if(Array.isArray(h)&&Gu(h[s]),d!==null)return i(o,s),!0}return!1}moveToXValueInValues(t,n,i){let o=-1,s=-1,f=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],x=this.extractXFromValue(b);if(x===n)return i(h,y),!0;if(typeof n=="number"&&typeof x=="number"){const T=Math.abs(x-n);T<f&&(f=T,o=h,s=y,d="numeric")}else typeof n=="string"&&typeof x=="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 bB(t)?t.x:null}extractXFromValue(t){return yB(t)?t.x:vB(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 f=Gu(t[s]);if(typeof f=="number"){const d=Math.abs(f-n);d<o&&(o=d,i=s)}else if(typeof f=="string"){const d=Number(f);if(!Number.isNaN(d)){const h=Math.abs(d-n);h<o&&(o=h,i=s)}}}if(i!==-1)return Gu(t[i]),i}else if(typeof n=="string"){for(let o=0;o<t.length;o++)if(Gu(t[o])===n)return o;const i=Number(n);if(!Number.isNaN(i)){let o=-1,s=Number.POSITIVE_INFINITY;for(let f=0;f<t.length;f++){const d=Gu(t[f]);if(typeof d=="number"){const h=Math.abs(d-i);h<s&&(s=h,o=f)}else if(typeof d=="string"){const h=Number(d);if(!Number.isNaN(h)){const y=Math.abs(h-i);y<s&&(s=y,o=f)}}}if(o!==-1)return Gu(t[o]),o}for(let o=0;o<t.length;o++)if(typeof Gu(t[o])=="string")return o}return t.length>0?(Gu(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 SB(e){return e&&typeof e=="object"&&"x"in e&&"y"in e}function xB(e){return e&&typeof e=="object"&&typeof e.x=="number"&&typeof e.y=="number"}function EB(e){return e&&typeof e=="object"&&"xMin"in e&&"xMax"in e}function wB(e){return e&&typeof e=="object"&&"x"in e&&"y"in e}function TB(e){return e&&typeof e=="object"&&typeof e.x=="number"&&typeof e.y=="number"}function AB(e){return e&&typeof e=="object"&&"value"in e}function Gu(e){return e?SB(e)||xB(e)||wB(e)||TB(e)||EB(e)?e.x:AB(e)?e.value:null:null}var Bo=(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))(Bo||{}),xn=(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))(xn||{});class Md{constructor(){j(this,"listeners");j(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 ge{constructor(){}}j(ge,"ARTICLE","article"),j(ge,"DIV","div"),j(ge,"FIGURE","figure"),j(ge,"IMAGE","img"),j(ge,"INPUT","input"),j(ge,"STYLE","style"),j(ge,"TEXT_AREA","textarea"),j(ge,"BRAILLE_TEXT_AREA","maidr-braille-textarea"),j(ge,"MAIDR_ARTICLE","maidr-article"),j(ge,"MAIDR_FIGURE","maidr-figure"),j(ge,"MAIDR_HIGHLIGHT","maidr-highlight"),j(ge,"REACT_CONTAINER","maidr-react-container"),j(ge,"REVIEW_INPUT","maidr-review-input"),j(ge,"TEXT_CONTAINER","maidr-text-container"),j(ge,"MAIDR_INSTRUCTION","maidr-instruction"),j(ge,"ROTOR_AREA","maidr-rotor-area"),j(ge,"SR_ONLY_CLASS","maidr-sr-only"),j(ge,"ARIA_LABEL","aria-label"),j(ge,"CIRCLE_X","cx"),j(ge,"CIRCLE_Y","cy"),j(ge,"D","d"),j(ge,"FILL","fill"),j(ge,"MARGIN","margin"),j(ge,"POINTS","points"),j(ge,"RADIUS","r"),j(ge,"ROLE","role"),j(ge,"STROKE","stroke"),j(ge,"STROKE_WIDTH","stroke-width"),j(ge,"TITLE","title"),j(ge,"VISIBILITY","visibility"),j(ge,"X1","x1"),j(ge,"X2","x2"),j(ge,"Y1","y1"),j(ge,"Y2","y2"),j(ge,"MAIDR_SUBPLOT","subplot"),j(ge,"MAIDR","maidr"),j(ge,"MAIDR_JSON_SELECTOR",'[maidr^="{"]'),j(ge,"AFTER_END","afterend"),j(ge,"APPLICATION","application"),j(ge,"ARE"," are "),j(ge,"CIRCLE","circle"),j(ge,"CLOSE_BRACKET","]"),j(ge,"COMMA",","),j(ge,"COMMA_SPACE",", "),j(ge,"EMPTY",""),j(ge,"HIDDEN","hidden"),j(ge,"IS"," is "),j(ge,"LINE","line"),j(ge,"MAIDR_DATA","maidr-data"),j(ge,"MAIDR_HIGHLIGHT_COLOR","#BADA55"),j(ge,"NEW_LINE",`
`),j(ge,"OPEN_BRACKET","["),j(ge,"POLYLINE","polyline"),j(ge,"SPACE"," "),j(ge,"THROUGH"," through "),j(ge,"TRANSPARENT","transparent"),j(ge,"VISIBLE","visible"),j(ge,"X","x"),j(ge,"Y","y"),j(ge,"HIGHLIGHT_BASE_COLOR",{r:255,g:255,b:255}),j(ge,"HIGHLIGHT_CONTRAST_RATIO",3),j(ge,"HIGHLIGHT_COLOR_RATIO",.6),j(ge,"HIGHLIGHT_MAX_COLOR",255),j(ge,"HIGHER_VALUE_MODE","HIGHER VALUE NAVIGATION"),j(ge,"LOWER_VALUE_MODE","LOWER VALUE NAVIGATION"),j(ge,"DATA_MODE","DATA POINT NAVIGATION"),j(ge,"NO_OF_ROTOR_NAV_MODES",3);class D7{constructor(){j(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 k7=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function N7(e,t,n,i){e.addEventListener?e.addEventListener(t,n,i):e.attachEvent&&e.attachEvent("on".concat(t),n)}function uv(e,t,n,i){e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent&&e.detachEvent("on".concat(t),n)}function vC(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 bC(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 CB(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 cv={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,"-":k7?173:189,"=":k7?61:187,";":k7?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},fv={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},ga={16:!1,18:!1,17:!1,91:!1},ri={};for(let e=1;e<20;e++)cv["f".concat(e)]=111+e;let jr=[],dv=null,SC="all";const Qc=new Map,hv=e=>cv[e.toLowerCase()]||ru[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),OB=e=>Object.keys(cv).find(t=>cv[t]===e),MB=e=>Object.keys(ru).find(t=>ru[t]===e);function xC(e){SC=e||"all"}function pv(){return SC||"all"}function RB(){return jr.slice(0)}function _B(){return jr.map(e=>OB(e)||MB(e)||String.fromCharCode(e))}function DB(){const e=[];return Object.keys(ri).forEach(t=>{ri[t].forEach(n=>{let{key:i,scope:o,mods:s,shortcut:f}=n;e.push({scope:o,shortcut:f,mods:s,keys:i.split("+").map(d=>hv(d))})})}),e}function kB(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 NB(e){return typeof e=="string"&&(e=hv(e)),jr.indexOf(e)!==-1}function zB(e,t){let n,i;e||(e=pv());for(const o in ri)if(Object.prototype.hasOwnProperty.call(ri,o))for(n=ri[o],i=0;i<n.length;)n[i].scope===e?n.splice(i,1).forEach(f=>{let{element:d}=f;return z7(d)}):i++;pv()===e&&xC(t||"all")}function IB(e){let t=e.keyCode||e.which||e.charCode;const n=jr.indexOf(t);if(n>=0&&jr.splice(n,1),e.key&&e.key.toLowerCase()==="meta"&&jr.splice(0,jr.length),(t===93||t===224)&&(t=91),t in ga){ga[t]=!1;for(const i in ru)ru[i]===t&&(La[i]=!1)}}function EC(e){if(typeof e>"u")Object.keys(ri).forEach(o=>{Array.isArray(ri[o])&&ri[o].forEach(s=>B5(s)),delete ri[o]}),z7(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;bC(t).forEach(f=>{const d=f.split(o),h=d.length,y=d[h-1],b=y==="*"?"*":hv(y);if(!ri[b])return;n||(n=pv());const x=h>1?vC(ru,d):[],T=[];ri[b]=ri[b].filter(w=>{const R=(i?w.method===i:!0)&&w.scope===n&&CB(w.mods,x);return R&&T.push(w.element),!R}),T.forEach(w=>z7(w))})};function wC(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 ga)Object.prototype.hasOwnProperty.call(ga,s)&&(!ga[s]&&t.mods.indexOf(+s)>-1||ga[s]&&t.mods.indexOf(+s)===-1)&&(o=!1);(t.mods.length===0&&!ga[16]&&!ga[18]&&!ga[17]&&!ga[91]||o||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(jr),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function TC(e,t){const n=ri["*"];let i=e.keyCode||e.which||e.charCode;if(!La.filter.call(this,e))return;if((i===93||i===224)&&(i=91),jr.indexOf(i)===-1&&i!==229&&jr.push(i),["metaKey","ctrlKey","altKey","shiftKey"].forEach(d=>{const h=fv[d];e[d]&&jr.indexOf(h)===-1?jr.push(h):!e[d]&&jr.indexOf(h)>-1?jr.splice(jr.indexOf(h),1):d==="metaKey"&&e[d]&&(jr=jr.filter(y=>y in fv||y===i))}),i in ga){ga[i]=!0;for(const d in ru)if(Object.prototype.hasOwnProperty.call(ru,d)){const h=fv[ru[d]];La[d]=e[h]}if(!n)return}for(const d in ga)Object.prototype.hasOwnProperty.call(ga,d)&&(ga[d]=e[fv[d]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(jr.indexOf(17)===-1&&jr.push(17),jr.indexOf(18)===-1&&jr.push(18),ga[17]=!0,ga[18]=!0);const o=pv();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)&&wC(e,n[d],o,t);if(!(i in ri))return;const s=ri[i],f=s.length;for(let d=0;d<f;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),x=[];for(let T=0;T<b.length;T++)x.push(hv(b[T]));x.sort().join("")===jr.sort().join("")&&wC(e,h,o,t)}}function La(e,t,n){jr=[];const i=bC(e);let o=[],s="all",f=document,d=0,h=!1,y=!0,b="+",x=!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&&(f=t.element),t.keyup&&(h=t.keyup),t.keydown!==void 0&&(y=t.keydown),t.capture!==void 0&&(x=t.capture),typeof t.splitKey=="string"&&(b=t.splitKey),t.single===!0&&(T=!0)),typeof t=="string"&&(s=t),T&&EC(e,s);d<i.length;d++)e=i[d].split(b),o=[],e.length>1&&(o=vC(ru,e)),e=e[e.length-1],e=e==="*"?"*":hv(e),e in ri||(ri[e]=[]),ri[e].push({keyup:h,keydown:y,scope:s,mods:o,shortcut:i[d],method:n,key:i[d],splitKey:b,element:f});if(typeof f<"u"&&window){if(!Qc.has(f)){const w=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return TC(R,f)},C=function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;TC(R,f),IB(R)};Qc.set(f,{keydownListener:w,keyupListenr:C,capture:x}),N7(f,"keydown",w,x),N7(f,"keyup",C,x)}if(!dv){const w=()=>{jr=[]};dv={listener:w,capture:x},N7(window,"focus",w,x)}}}function LB(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(ri).forEach(n=>{ri[n].filter(o=>o.scope===t&&o.shortcut===e).forEach(o=>{o&&o.method&&o.method()})})}function z7(e){const t=Object.values(ri).flat();if(t.findIndex(i=>{let{element:o}=i;return o===e})<0){const{keydownListener:i,keyupListenr:o,capture:s}=Qc.get(e)||{};i&&o&&(uv(e,"keyup",o,s),uv(e,"keydown",i,s),Qc.delete(e))}if((t.length<=0||Qc.size<=0)&&(Object.keys(Qc).forEach(o=>{const{keydownListener:s,keyupListenr:f,capture:d}=Qc.get(o)||{};s&&f&&(uv(o,"keyup",f,d),uv(o,"keydown",s,d),Qc.delete(o))}),Qc.clear(),Object.keys(ri).forEach(o=>delete ri[o]),dv)){const{listener:o,capture:s}=dv;uv(window,"focus",o,s),dv=null}}const I7={getPressedKeyString:_B,setScope:xC,getScope:pv,deleteScope:zB,getPressedKeyCodes:RB,getAllKeyCodes:DB,isPressed:NB,filter:kB,trigger:LB,unbind:EC,keyMap:cv,modifier:ru,modifierMap:fv};for(const e in I7)Object.prototype.hasOwnProperty.call(I7,e)&&(La[e]=I7[e]);if(typeof window<"u"){const e=window.hotkeys;La.noConflict=t=>(t&&window.hotkeys===La&&(window.hotkeys=e),La),window.hotkeys=La}class BB{constructor(t){j(this,"id");j(this,"instructionContext");j(this,"selectorList",[]);j(this,"plotContext");j(this,"scopeContext");j(this,"navigationService");j(this,"figure");j(this,"isRotorActive");this.figure=t,this.id=t.id,this.plotContext=new D7,this.scopeContext=new D7,this.navigationService=new _7,this.isRotorActive=!1;const n=t.state;if(n.empty||n.size!==1){this.instructionContext=t,this.plotContext.push(t),this.scopeContext.push(xn.SUBPLOT);return}this.scopeContext.push(xn.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),La.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(xn.TRACE)}}exitSubplot(){this.plotContext.size()>2&&(this.plotContext.pop(),this.plotContext.pop(),this.active.notifyStateUpdate(),this.toggleScope(xn.SUBPLOT))}getInstruction(t){const n=this.instructionContext.state;if(n.empty)return`No ${n.type} info available`;const i=t?"Click to activate.":ge.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":return`This is a maidr plot containing ${n.size} layers, and
        this is layer 1 of ${n.size}: ${n.trace.traceType} 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: ${o}${s}. ${i} Use Arrows to navigate data points. Toggle B for Braille, T for Text, S for Sonification, and R for Review mode.`}}}}class V5{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 f=s/255;return f<=.03928?f/12.92:((f+.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 Ht{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}),f=document.createElement("canvas");[f.width,f.height]=[s.naturalWidth,s.naturalHeight];const d=f.getContext("2d");return d?(d.drawImage(s,0,0),f.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(ge.VISIBILITY,ge.HIDDEN),i.insertAdjacentElement(ge.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(ge.VISIBILITY,ge.HIDDEN),i==null||i.insertAdjacentElement(ge.AFTER_END,o),o}static createEmptyElement(t="rect"){const n=document.createElementNS(this.SVG_NAMESPACE,t);return n.setAttribute(ge.FILL,ge.TRANSPARENT),n.setAttribute(ge.STROKE,ge.TRANSPARENT),n.setAttribute(ge.VISIBILITY,ge.HIDDEN),n}static createCircleElement(t,n,i){var y;const o=window.getComputedStyle(i),s=o.stroke||o.fill,f=o.strokeWidth||"2",d=Number.parseFloat(f)*2,h=document.createElementNS(this.SVG_NAMESPACE,ge.CIRCLE);return h.setAttribute(ge.CIRCLE_X,String(t)),h.setAttribute(ge.CIRCLE_Y,String(n)),h.setAttribute(ge.RADIUS,String(d)),h.setAttribute(ge.FILL,s),h.setAttribute(ge.STROKE,s),h.setAttribute(ge.STROKE_WIDTH,f),h.setAttribute(ge.VISIBILITY,ge.HIDDEN),(y=i.parentElement)==null||y.insertAdjacentElement(ge.AFTER_END,h),h}static createLineElement(t,n){const o=t.getBBox();let s,f,d,h;switch(n){case"top":[s,f,d,h]=[o.x,o.y,o.x+o.width,o.y];break;case"bottom":[s,f,d,h]=[o.x,o.y+o.height,o.x+o.width,o.y+o.height];break;case"left":[s,f,d,h]=[o.x,o.y,o.x,o.y+o.height];break;case"right":[s,f,d,h]=[o.x+o.width,o.y,o.x+o.width,o.y+o.height];break}const y=window.getComputedStyle(t),b=document.createElementNS(this.SVG_NAMESPACE,ge.LINE);return b.setAttribute(ge.X1,String(s)),b.setAttribute(ge.Y1,String(f)),b.setAttribute(ge.X2,String(d)),b.setAttribute(ge.Y2,String(h)),b.setAttribute(ge.STROKE,y.stroke),b.setAttribute(ge.STROKE_WIDTH,y.strokeWidth||"2"),b.setAttribute(ge.VISIBILITY,ge.HIDDEN),t.insertAdjacentElement(ge.AFTER_END,b),b}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){const i=t.cloneNode(!0),o=t.tagName.toLowerCase(),s=o===ge.POLYLINE||o===ge.LINE,f=window.getComputedStyle(t),d=s?f.getPropertyValue(ge.STROKE):f.getPropertyValue(ge.FILL),h=this.getHighlightColor(d,n),y=f.getPropertyValue("fill-opacity"),b=f.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(ge.VISIBILITY,ge.VISIBLE),i.setAttribute(ge.STROKE,h),i.setAttribute(ge.FILL,h),i.style.fill=h,i.style.stroke=h,s){const x=window.getComputedStyle(i).getPropertyValue(ge.STROKE_WIDTH),T=x.match(/^([0-9.]+)([a-z%]*)$/i);if(T){const w=Number.parseFloat(T[1]),C=T[2]||"";i.setAttribute(ge.STROKE_WIDTH,`${w+this.STROKE_WIDTH_HIGHLIGHT_INCREASE}${C}`)}else{const w=Number.parseFloat(x),C=Number.isNaN(w)?this.STROKE_WIDTH_HIGHLIGHT_INCREASE:w+this.STROKE_WIDTH_HIGHLIGHT_INCREASE;i.setAttribute(ge.STROKE_WIDTH,`${C}`)}}return t.insertAdjacentElement(ge.AFTER_END,i),i}static getHighlightColor(t,n){const i=V5.parse(t);if(!i||!(V5.getContrastRatio(i,ge.HIGHLIGHT_BASE_COLOR)<ge.HIGHLIGHT_CONTRAST_RATIO))return n;const f={...i};return i.r===i.g&&i.g===i.b?(f.r=Math.min(ge.HIGHLIGHT_MAX_COLOR,Math.floor(i.r*ge.HIGHLIGHT_COLOR_RATIO)),f.g=Math.min(ge.HIGHLIGHT_MAX_COLOR,Math.floor(i.g*ge.HIGHLIGHT_COLOR_RATIO)),f.b=Math.min(ge.HIGHLIGHT_MAX_COLOR,Math.floor(i.b*ge.HIGHLIGHT_COLOR_RATIO))):i.r>=i.g&&i.r>=i.b?f.r=Math.min(ge.HIGHLIGHT_MAX_COLOR,Math.floor(i.r*ge.HIGHLIGHT_COLOR_RATIO)):i.g>=i.r&&i.g>=i.b?f.g=Math.min(ge.HIGHLIGHT_MAX_COLOR,Math.floor(i.g*ge.HIGHLIGHT_COLOR_RATIO)):f.b=Math.min(ge.HIGHLIGHT_MAX_COLOR,Math.floor(i.b*ge.HIGHLIGHT_COLOR_RATIO)),V5.rgbToString(f)}static getContrastingColorForElement(t){const n=window.getComputedStyle(t).fill||"rgb(255,255,255)",i=V5.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 f=this.getHighlightColor(s,n);o.setAttribute("stroke",f),o.setAttribute("stroke-width","4")}}static removeSubplotHighlightSvg(t){const n=t.querySelector("rect, path");n&&(n.removeAttribute("stroke"),n.removeAttribute("stroke-width"))}}j(Ht,"SVG_NAMESPACE","http://www.w3.org/2000/svg"),j(Ht,"MIN_VISIBLE_FILL_OPACITY",.01),j(Ht,"MIN_VISIBLE_STROKE_OPACITY",.01),j(Ht,"STROKE_WIDTH_HIGHLIGHT_INCREASE",2);const VB="unavailable",UB="X",PB="Y",$B="unavailable";class L7{constructor(){j(this,"observers");j(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 Fl extends L7{constructor(n){var i,o,s;super();j(this,"id");j(this,"type");j(this,"title");j(this,"xAxis");j(this,"yAxis");j(this,"fill");j(this,"navigationService");j(this,"layer");this.layer=n,this.navigationService=new _7,this.id=n.id,this.type=n.type,this.title=n.title??VB,this.xAxis=((i=n.axes)==null?void 0:i.x)??UB,this.yAxis=((o=n.axes)==null?void 0:o.y)??PB,this.fill=((s=n.axes)==null?void 0:s.fill)??$B}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}}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 f of s){const d=f.previousElementSibling;d&&d.tagName===f.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:f}){const d=o.getBoundingClientRect();let h=12;return(this.type===or.HEATMAP||this.type===or.BAR||this.type===or.STACKED||this.type===or.HISTOGRAM)&&(h=0),n>=d.x-h&&n<=d.x+d.width+h&&i>=d.y-h&&i<=d.y+d.height+h}}class Ba{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 B7{constructor(t){j(this,"isInitialEntry");j(this,"isOutOfBounds");j(this,"row");j(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 uh extends B7{constructor(n,i){super(i);j(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 jB extends B7{constructor(n,i){super(i);j(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,f;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=(f=this.graph[this.row])==null?void 0:f[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 HB extends B7{constructor(n,i){super();j(this,"mode");j(this,"xPoints");j(this,"yPoints");j(this,"xValues");j(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 V7 extends Fl{constructor(n,i){super(n);j(this,"movable");j(this,"points");j(this,"barValues");j(this,"highlightValues");j(this,"highlightCenters");j(this,"orientation");j(this,"min");j(this,"max");j(this,"supportsExtrema",!0);this.points=i,this.orientation=n.orientation??Rn.VERTICAL,this.barValues=i.map(o=>o.map(s=>this.orientation===Rn.VERTICAL?Number(s.y):Number(s.x))),this.min=this.barValues.map(o=>Ba.safeMin(o)),this.max=this.barValues.map(o=>Ba.safeMax(o)),this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new uh(this.points)}dispose(){this.points.length=0,this.min.length=0,this.max.length=0,super.dispose()}get audio(){const n=this.orientation===Rn.VERTICAL,i=n?this.barValues[this.row][this.col]:this.barValues[this.col][this.row];return{freq:{min:Ba.safeMin(this.min),max:Ba.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===Rn.VERTICAL,i=this.points[this.row][this.col],o=n?this.xAxis:this.yAxis,s=n?i.x:i.y,f=n?this.yAxis:this.xAxis,d=n?i.y:i.x;return{main:{label:o,value:s},cross:{label:f,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=[Ht.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 f=n[o][s],d=Array.isArray(f)?f[0]:f,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 f=this.highlightValues[o][s],d=Array.isArray(f)?f[0]:f,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 qB extends V7{isPointInBounds(t,n,{element:i,row:o,col:s}){const f=i.getBoundingClientRect();return t>=f.x&&t<=f.x+f.width&&n>=f.y&&n<=f.y+f.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],f=i.indexOf(s),d=i.indexOf(o);return t.push({label:`Max Bar at ${this.getPointLabel(f)}`,value:s,pointIndex:f,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===Rn.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,f=t==="right"?1:-1;let d=s+f;for(;d>=0&&d<o.length;){if(this.compare(o[d],o[s],n))return this.col=d,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;d+=f}return this.notifyRotorBounds(),!1}}const iu={LOWER_OUTLIER:"Lower outlier(s)",MIN:"Minimum",Q1:"25%",Q2:"50%",Q3:"75%",MAX:"Maximum",UPPER_OUTLIER:"Upper outlier(s)"};class FB extends Fl{constructor(n,i=!1){var f;super(n);j(this,"supportsExtrema",!1);j(this,"movable");j(this,"points");j(this,"boxValues");j(this,"highlightValues");j(this,"highlightCenters");j(this,"orientation");j(this,"sections");j(this,"min");j(this,"max");j(this,"isViolinBoxPlot");this.isViolinBoxPlot=i&&n.type===or.BOX,this.points=n.data,this.orientation=n.orientation??Rn.VERTICAL,this.orientation===Rn.HORIZONTAL?this.points=[...n.data].reverse():this.points=n.data,this.sections=[iu.LOWER_OUTLIER,iu.MIN,iu.Q1,iu.Q2,iu.Q3,iu.MAX,iu.UPPER_OUTLIER];const o=[d=>d.lowerOutliers,d=>d.min,d=>d.q1,d=>d.q2,d=>d.q3,d=>d.max,d=>d.upperOutliers];this.orientation===Rn.HORIZONTAL?this.boxValues=this.points.map(d=>o.map(h=>h(d))):this.boxValues=o.map(d=>this.points.map(h=>d(h)));const s=this.boxValues.map(d=>d.flatMap(h=>Array.isArray(h)?h:[h]));this.min=Ba.minFrom2D(s),this.max=Ba.maxFrom2D(s),this.highlightValues=this.mapToSvgElements(n.selectors),this.orientation===Rn.HORIZONTAL&&((f=this.highlightValues)==null||f.reverse()),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new uh(this.boxValues,{row:0})}isViolin(){return this.isViolinBoxPlot}dispose(){this.points.length=0,this.sections.length=0,super.dispose()}moveToIndex(n,i){return super.moveToIndex(n,i)}handleInitialEntry(){var n;this.isInitialEntry=!1,this.orientation===Rn.VERTICAL?(this.row=Math.min(1,this.boxValues.length-1),this.col=0):(this.row=0,this.col=Math.min(1,((n=this.boxValues[0])==null?void 0:n.length)??1))}moveOnce(n){if(!this.isViolin())return super.moveOnce(n);if(this.isInitialEntry)return this.handleInitialEntry(),this.notifyStateUpdate(),!0;if(!this.isMovable(n))return this.notifyOutOfBounds(),!1;if(this.orientation===Rn.VERTICAL)if(n==="FORWARD")this.col+=1,this.row=1;else if(n==="BACKWARD")this.col-=1,this.row=1;else return super.moveOnce(n);else if(n==="UPWARD")this.row+=1,this.col=1;else if(n==="DOWNWARD")this.row-=1,this.col=1;else return super.moveOnce(n);return this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}get values(){return this.boxValues}get audio(){const n=this.orientation===Rn.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===Rn.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===Rn.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],f=n?this.xAxis:this.yAxis,d=this.boxValues[this.row][this.col];return{main:{label:o,value:i.fill},cross:{label:f,value:d},section:s,mainAxis:n?"y":"x",crossAxis:n?"x":"y"}}get dimension(){const n=this.orientation===Rn.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===Rn.VERTICAL,o=new Array;if(i)for(let f=0;f<this.sections.length;f++)o.push(Array.from({length:n.length}));const s=[];return n.forEach(f=>{var w,C;const d=((w=f.lowerOutliers)==null?void 0:w.flatMap(R=>Ht.selectAllElements(R,!1)))??[],h=((C=f.upperOutliers)==null?void 0:C.flatMap(R=>Ht.selectAllElements(R,!1)))??[],y=Ht.selectElement(f.min,!1),b=Ht.selectElement(f.max,!1),x=Ht.selectElement(f.iq,!1),T=Ht.selectElement(f.q2,!1);s.push({lowerOutliers:d,upperOutliers:h,min:y,max:b,iq:x,q2:T})}),s.forEach((f,d)=>{var N;const h=f.lowerOutliers.map(z=>{const B=z.cloneNode(!0);return B.setAttribute(ge.VISIBILITY,ge.HIDDEN),z.insertAdjacentElement(ge.AFTER_END,B),B}),y=f.upperOutliers.map(z=>{const B=z.cloneNode(!0);return B.setAttribute(ge.VISIBILITY,ge.HIDDEN),z.insertAdjacentElement(ge.AFTER_END,B),B}),b=this.cloneElementOrEmpty(f.min),x=this.cloneElementOrEmpty(f.max),T=this.cloneElementOrEmpty(f.q2),w=((N=this.layer.domMapping)==null?void 0:N.iqrDirection)==="reverse",[C,R]=f.iq?i?w?[Ht.createLineElement(f.iq,"top"),Ht.createLineElement(f.iq,"bottom")]:[Ht.createLineElement(f.iq,"bottom"),Ht.createLineElement(f.iq,"top")]:[Ht.createLineElement(f.iq,"left"),Ht.createLineElement(f.iq,"right")]:[Ht.createEmptyElement("line"),Ht.createEmptyElement("line")],_=[h,b,C,T,R,x,y];i?_.forEach((z,B)=>{o[B][d]=z}):o.push(_)}),o}cloneElementOrEmpty(n){if(!n)return Ht.createEmptyElement();const i=n.cloneNode(!0);return i.setAttribute(ge.VISIBILITY,ge.HIDDEN),n.insertAdjacentElement(ge.AFTER_END,i),i}moveToNextCompareValue(n,i){const o=this.row;if(o<0||o>=this.boxValues.length)return!1;let s=[],f=0;if(n==="left"||n==="right"?(s=this.boxValues[this.row],f=this.col):(s=this.boxValues.map(y=>y[this.col]),f=this.row),s.length<=0)return!1;const d=n==="right"||n==="up"?1:-1;let h=f+d;for(;h>=0&&h<s.length;){const y=s[f],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===Rn.VERTICAL?(this.moveOnce("UPWARD"),!0):this.moveToNextCompareValue("up",n)}moveDownRotor(n){return this.orientation===Rn.VERTICAL?(this.moveOnce("DOWNWARD"),!0):this.moveToNextCompareValue("down",n)}moveLeftRotor(n){return this.orientation===Rn.HORIZONTAL?(this.moveOnce("BACKWARD"),!0):this.moveToNextCompareValue("left",n)}moveRightRotor(n){return this.orientation===Rn.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 f=n[o][s],d=Array.isArray(f)?f[0]:f;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 f=0;f<this.highlightCenters.length;f++){const d=this.highlightCenters[f],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=f)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}moveToPoint(n,i){}getCurrentXValue(){return this.isViolin()?this.orientation===Rn.VERTICAL?this.col>=0?this.col:null:this.row>=0?this.row:null:super.getCurrentXValue()}moveToXValue(n){if(!this.isViolin())return super.moveToXValue(n);if(this.isInitialEntry&&this.handleInitialEntry(),typeof n!="number")return!1;const i=Math.floor(n),o=this.values;if(this.orientation===Rn.VERTICAL){const s=o.length>0?o[0].length:0;if(i<0||i>=s)return!1;const f=this.col;return this.col=i,i!==f&&(this.row=1),this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}else{if(i<0||i>=o.length)return!1;const s=this.row;return this.row=i,i!==s&&(this.col=1),this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}}getCurrentYValue(){if(!this.isViolin())return null;const n=this.values;if(this.orientation===Rn.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.isViolin()||typeof n!="number")return!1;const o=Math.floor(n),s=this.values;if(this.orientation===Rn.VERTICAL){const f=s.length>0?s[0].length:0;if(o<0||o>=f)return!1;this.col=o;let d=1,h=1/0;for(let y=0;y<s.length;y++){const b=s[y];if(Array.isArray(b)&&o<b.length){const x=b[o];if(Array.isArray(x)){for(const T of x)if(typeof T=="number"){const w=Math.abs(T-i);w<h&&(h=w,d=y)}}else if(typeof x=="number"){const T=Math.abs(x-i);T<h&&(h=T,d=y)}}}return this.row=d,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}else{if(o<0||o>=s.length)return!1;this.row=o;let f=1,d=1/0;const h=s[o];if(Array.isArray(h))for(let y=0;y<h.length;y++){const b=h[y];if(Array.isArray(b)){for(const x of b)if(typeof x=="number"){const T=Math.abs(x-i);T<d&&(d=T,f=y)}}else if(typeof b=="number"){const x=Math.abs(b-i);x<d&&(d=x,f=y)}}return this.col=f,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}}onSwitchFrom(n){var d;if(!this.isViolin())return!1;const i=n;if(!((i.type||((d=i.state)==null?void 0:d.traceType))==="smooth"))return!1;const f=n.getCurrentXValue();if(n.getCurrentYValue){const h=n.getCurrentYValue();if(h!==null&&f!==null&&this.moveToXAndYValue){const y=this.moveToXAndYValue(f,h);return y&&(this.isInitialEntry=!1),y}}if(f!==null){const h=this.moveToXValue(f);return h&&(this.isInitialEntry=!1),h}return!1}}const GB="trend",AC=100,YB=["volatility","open","high","low","close"];class XB extends Fl{constructor(n){super(n);j(this,"supportsExtrema",!0);j(this,"movable");j(this,"candles");j(this,"candleValues");j(this,"orientation");j(this,"currentSegmentType","open");j(this,"currentPointIndex",0);j(this,"sortedSegmentsByPoint");j(this,"segmentPositionMaps");j(this,"sections");j(this,"min");j(this,"max");j(this,"highlightValues");j(this,"highlightCenters");j(this,"navigationService");this.navigationService=new _7;const i=n.data;this.candles=i.map(s=>({...s,volatility:Math.round((s.high-s.low)*AC)/AC,trend:s.close>s.open?"Bull":s.close<s.open?"Bear":"Neutral"})),this.orientation=n.orientation??Rn.VERTICAL,this.sections=YB,this.candleValues=this.sections.map(s=>this.candles.map(f=>f[s]));const o=this.orientation===Rn.HORIZONTAL?{col:this.sections.length-1}:{row:this.sections.length-1};this.movable=new uh(this.candleValues,o),this.min=Ba.minFrom2D(this.candleValues),this.max=Ba.maxFrom2D(this.candleValues),this.sortedSegmentsByPoint=this.precomputeSortedSegments(),this.segmentPositionMaps=this.precomputePositionMaps(),this.currentPointIndex=0,this.currentSegmentType="close",this.orientation===Rn.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,f)=>s[1]-f[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===Rn.HORIZONTAL?this.col=i:this.row=i}updateVisualPointPosition(){this.orientation===Rn.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===Rn.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(f=>f.trend),i=this.getSegmentPositionInSortedOrder(this.currentPointIndex,this.currentSegmentType??this.sections[0]);this.row=i;const o=this.candleValues.map(f=>Math.min(...f)),s=this.candleValues.map(f=>Math.max(...f));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(...Ht.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,R=Ht.selectAllElements(C),_=[];for(let N=0;N<this.sections.length;N++){_[N]=[];for(let z=0;z<this.candles.length;z++){const B=z<R.length?z:0;_[N][z]=R[B]}}return _}const i=n,o=this.candles.length,s=this.collectElements(i.body);let f=this.collectElements(i.wickHigh),d=this.collectElements(i.wickLow);if(f.length===0||d.length===0){const C=this.collectElements(i.wick);C.length>0&&(f.length===0&&(f=C),d.length===0&&(d=C))}const h=this.collectElements(i.open),y=this.collectElements(i.close),b=Array.from({length:o},()=>Ht.createEmptyElement()),x=Array.from({length:o},()=>Ht.createEmptyElement()),T=Array.from({length:o},()=>Ht.createEmptyElement());for(let C=0;C<o;C++){let R=this.getElementAt(h,C);if(!R){const N=this.getElementAt(s,C);if(N){const{open:z,close:B}=this.candles[C],V=B>z?"bottom":B<z?"top":"bottom";R=Ht.createLineElement(N,V)}else R=Ht.createEmptyElement()}b[C]=R;let _=this.getElementAt(y,C);if(!_){const N=this.getElementAt(s,C);if(N){const{open:z,close:B}=this.candles[C],V=B>z?"top":B<z?"bottom":"top";_=Ht.createLineElement(N,V)}else _=Ht.createEmptyElement()}x[C]=_,T[C]=Ht.createEmptyElement()}const w=Array.from({length:this.sections.length},()=>Array.from({length:o},()=>Ht.createEmptyElement()));for(let C=0;C<o;C++){const R=this.sortedSegmentsByPoint[C];for(let _=0;_<R.length;_++){const N=R[_];let z;switch(N){case"volatility":{const B=[],V=this.getElementAt(s,C),I=this.getElementAt(f,C)??V,P=this.getElementAt(d,C)??V;I&&B.push(I),V&&B.push(V),P&&B.push(P);const Y=Array.from(new Set(B));z=Y.length>0?Y:[Ht.createEmptyElement()]}break;case"open":z=b[C];break;case"close":z=x[C];break;case"high":z=this.getElementAt(f,C)??this.getElementAt(s,C)??Ht.createEmptyElement();break;case"low":z=this.getElementAt(d,C)??this.getElementAt(s,C)??Ht.createEmptyElement();break;default:z=Ht.createEmptyElement()}w[_][C]=z}}return w}get text(){const n=this.candles[this.currentPointIndex],i=this.orientation===Rn.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:GB,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)),f=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);f.forEach((y,b)=>{const x=this.candles[y];n.push({label:`Max Volatility at ${x.value}`,value:x.volatility,pointIndex:y,segment:"volatility",type:"max",navigationType:"point"})}),h.forEach((y,b)=>{const x=this.candles[y];n.push({label:`Min Volatility at ${x.value}`,value:x.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)),f=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);f.forEach((y,b)=>{const x=this.candles[y],T=i.charAt(0).toUpperCase()+i.slice(1);n.push({label:`Max ${T} at ${x.value}`,value:x[i],pointIndex:y,segment:i,type:"max",navigationType:"point"})}),h.forEach((y,b)=>{const x=this.candles[y],T=i.charAt(0).toUpperCase()+i.slice(1);n.push({label:`Min ${T} at ${x.value}`,value:x[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",f=this.candles.map((b,x)=>({value:b[s],index:x,xValue:b.value})),d=this.col,h=n==="right"?1:-1;let y=d+h;for(;y>=0&&y<f.length;){if(this.compare(f[y].value,f[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 f=n[o][s],d=Array.isArray(f)?f[0]:f;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 f=0;f<this.highlightCenters.length;f++){const d=this.highlightCenters[f],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=f)}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===Rn.HORIZONTAL;return{rows:n?this.candleValues.length:this.candleValues[this.row].length,cols:n?this.candleValues[this.row].length:this.candleValues.length}}}class WB extends Fl{constructor(n){super(n);j(this,"supportsExtrema",!1);j(this,"movable");j(this,"heatmapValues");j(this,"highlightValues");j(this,"highlightCenters");j(this,"x");j(this,"y");j(this,"min");j(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}=Ba.minMaxFrom2D(this.heatmapValues);this.min=o,this.max=s,this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new uh(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=Ht.selectAllElements(n);if(s.length===0||s.length!==i*o)return null;const f=new Array;if(s[0]instanceof SVGPathElement)for(let h=0;h<i;h++){const y=i-1-h,b=new Array;for(let x=0;x<o;x++){const T=y*o+x;b.push(s[T])}f.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 x=h*o+b;y.push(s[x])}f.push(y)}else for(let h=0;h<i;h++){const y=new Array;for(let b=0;b<o;b++){const x=b*i+h;y.push(s[x])}f.push(y)}return f}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,f=n==="left"?-1:1;let d=s+f;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+=f}return this.notifyRotorBounds(),!1}search_in_col(n,i){const o=this.x.length,s=this.row,f=n==="up"?1:-1;let d=s+f;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+=f}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 f=n[o][s],d=Array.isArray(f)?f[0]:f;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 f=0;f<this.highlightCenters.length;f++){const d=this.highlightCenters[f],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=f)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}}class QB extends V7{constructor(t){super(t,[t.data])}get text(){const t=this.orientation===Rn.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,f=t==="right"?1:-1;let d=s+f;for(;d>=0&&d<o.length;){if(this.compare(o[d],o[s],n))return this.col=d,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;d+=f}return this.notifyRotorBounds(),!1}}const CC="Group",U7=/[ML]\s*(-?\d+(?:\.\d+)?)\s+(-?\d+(?:\.\d+)?)/g;class OC extends Fl{constructor(n){super(n);j(this,"supportsExtrema",!0);j(this,"rotorSupport",!0);j(this,"movable");j(this,"points");j(this,"lineValues");j(this,"highlightValues");j(this,"highlightCenters");j(this,"min");j(this,"max");j(this,"previousRow",null);this.points=n.data,this.lineValues=this.points.map(i=>i.map(o=>Number(o.y))),this.min=this.lineValues.map(i=>Ba.safeMin(i)),this.max=this.lineValues.map(i=>Ba.safeMax(i)),this.highlightValues=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new jB(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 f=this.points.map((b,x)=>{var T;return{y:(T=b[s])==null?void 0:T.y,row:x}}).filter(b=>b.y!==void 0);if(f.length===0)continue;const d=[...f].sort((b,x)=>b.y-x.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:x}=d[b],T=o[x][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 f=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=f,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 f=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}`;f.includes(d)&&(f=[d,...f.filter(h=>h!==d)])}o={fill:{label:CC,value:`intersection at (${f.join(", ")})`}}}else o=n.fill?{fill:{label:CC,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 f=this.findColumnByXValue(o,s);if(f!==-1){this.row=o,this.col=f;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 f of this.observers)f.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 f=0;f<this.points.length;f++){if(f===this.row)continue;const d=this.points[f].findIndex(x=>x.x===i);if(d===-1)continue;const h=this.points[f][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=f)}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 f=Ht.selectElement(n[s],!1);if(!f){i.push([]);continue}const d=[];if(f instanceof SVGPathElement){const b=f.getAttribute(ge.D)||ge.EMPTY;U7.lastIndex=0;let x=U7.exec(b);for(;x!==null;)d.push({x:Number.parseFloat(x[1]),y:Number.parseFloat(x[2])}),x=U7.exec(b)}else if(f instanceof SVGPolylineElement){const x=(f.getAttribute(ge.POINTS)||ge.EMPTY).split(/\s+/).filter(Boolean);for(const T of x){const[w,C]=T.split(ge.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(Ht.createCircleElement(b.x,b.y,f))}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 f=n[o][s],d=Array.isArray(f)?f[0]:f;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 f=0;f<this.highlightCenters.length;f++){const d=this.highlightCenters[f],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=f)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}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],f=this.max[i],d=[],h=[];for(let y=0;y<o.length;y++){const b=o[y];b===f&&d.push(y),b===s&&h.push(y)}for(const y of d)n.push({label:`Max point at ${this.getPointLabel(y)}`,value:f,pointIndex:y,segment:"line",type:"max",navigationType:"point"});for(const y of h)n.push({label:`Min point at ${this.getPointLabel(y)}`,value:s,pointIndex:y,segment:"line",type:"min",navigationType:"point"});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 f=this.col,d=n==="right"?1:-1;let h=f+d;for(;h>=0&&h<s.length;){if(this.compare(s[h],s[f],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}}class KB extends Fl{constructor(n){super(n);j(this,"mode");j(this,"movable");j(this,"supportsExtrema",!1);j(this,"xPoints");j(this,"yPoints");j(this,"xValues");j(this,"yValues");j(this,"highlightXValues");j(this,"highlightYValues");j(this,"highlightCenters");j(this,"minX");j(this,"maxX");j(this,"minY");j(this,"maxY");this.mode="column";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 f=[...i].sort((h,y)=>h.y-y.y||h.x-y.x);this.yPoints=new Array;let d=null;for(const h of f)(!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=Ba.safeMin(this.xValues),this.maxX=Ba.safeMax(this.xValues),this.minY=Ba.safeMin(this.yValues),this.maxY=Ba.safeMax(this.yValues),[this.highlightXValues,this.highlightYValues]=this.mapToSvgElements(n.selectors),this.highlightCenters=this.mapSvgElementsToCenters(),this.movable=new HB(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.movable.mode==="col"?this.highlightXValues:this.highlightYValues}getAudioGroupIndex(){return{}}get values(){const n=[this.xValues,this.yValues];return this.mode==="column"?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.movable.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.movable.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.movable.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="column"}toggleNavigation(){if(this.mode==="column"){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="column",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==="column")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==="column")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==="column"?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==="column")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}}mapToSvgElements(n){if(!n)return[null,null];const i=Ht.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 f=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[f,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 f=n[o][s],d=Array.isArray(f)?f[0]:f;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 f=0;f<this.highlightCenters.length;f++){const d=this.highlightCenters[f],h=Math.hypot(d.x-n,d.y-i);h<o&&(o=h,s=f)}return s===-1?null:{element:this.highlightCenters[s].element,row:this.highlightCenters[s].row,col:this.highlightCenters[s].col}}moveToPoint(n,i){this.mode="column";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 MC="Sum",ZB="Level",JB="undefined";class eV extends V7{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 f=this.barValues.reduce((h,y)=>h+y[s],0);t.push(f);const d=this.orientation===Rn.VERTICAL?{x:this.points[0][s].x,y:f,fill:MC}:{x:f,y:this.points[0][s].y,fill:MC};n.push(d)}this.points.push(n),this.barValues.push(t);const{min:i,max:o}=Ba.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 f=s.indexOf(o),d=s.indexOf(i),h=this.getGroupLabel(n),y=this.getCategoryLabel(f),b=this.getCategoryLabel(d);return t.push({label:`Max ${h} at ${y}`,value:o,pointIndex:f,segment:h,type:"max",groupIndex:n,categoryIndex:f,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===Rn.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:ZB,value:this.points[this.row][this.col].fill??JB}}}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=Ht.selectAllElements(t);if(n.length===0)return new Array;const i=new Array;if(n[0]instanceof SVGPathElement)for(let s=0,f=0;s<this.barValues.length;s++){const d=new Array;for(let h=0;h<this.barValues[s].length;h++){if(f>=n.length)return new Array;this.barValues[s][h]===0?d.push(Ht.createEmptyElement()):d.push(n[f++])}i.push(d)}else if(n[0]instanceof SVGRectElement){for(let f=0;f<this.barValues.length;f++)i.push(new Array);const s=((o=this.layer.domMapping)==null?void 0:o.groupDirection)==="forward";for(let f=0,d=0;f<this.barValues[0].length;f++)if(s)for(let h=0;h<this.barValues.length;h++){if(d>=n.length)return new Array;this.barValues[h][f]===0?i[h].push(Ht.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][f]===0?i[h].push(Ht.createEmptyElement()):i[h].push(n[d++])}}return i}}class P7 extends OC{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=f=>t[Math.max(0,Math.min(f,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 tV extends P7{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 f=Ht.selectElement(t[s],!1);if(!f){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(Ht.createCircleElement(y.svg_x,y.svg_y,f));h.length>0&&(i=!1),n.push(h)}return i?null:n}}const $7=.001;class nV extends P7{constructor(t){super(t)}isMovable(t){var n;if(Array.isArray(t)){const[i,o]=t;return i>=0&&i<this.points.length&&o>=0&&o<(((n=this.points[i])==null?void 0:n.length)||0)}switch(t){case"FORWARD":return this.row<this.points.length-1;case"BACKWARD":return this.row>0;case"UPWARD":return this.col<this.points[this.row].length-1;case"DOWNWARD":return this.col>0}}handleInitialEntry(){this.isInitialEntry=!1,this.row=0,this.col=0}moveOnce(t){if(this.isInitialEntry)return this.handleInitialEntry(),this.notifyStateUpdate(),!0;if(!this.isMovable(t))return this.notifyOutOfBounds(),!1;switch(t){case"FORWARD":if(this.row<this.points.length-1){const n=this.row+1;return this.row=n,this.col=0,this.notifyStateUpdate(),!0}return this.notifyOutOfBounds(),!1;case"BACKWARD":if(this.row>0){const n=this.row-1;return this.row=n,this.col=0,this.notifyStateUpdate(),!0}return this.notifyOutOfBounds(),!1;case"UPWARD":case"DOWNWARD":return t==="UPWARD"?this.col<this.points[this.row].length-1?(this.col+=1,this.notifyStateUpdate(),!0):(this.notifyOutOfBounds(),!1):this.col>0?(this.col-=1,this.notifyStateUpdate(),!0):(this.notifyOutOfBounds(),!1)}}mapToSvgElements(t){if(!t||t.length===0)return null;const n=[];let i=!0;const o=t.length===this.points.length;for(let s=0;s<this.points.length;s++){const f=[],d=this.points[s];let h;if(o?h=t[s]:h=t[0],!h){n.push([]);continue}const y=Ht.selectAllElements(h,!1);let b=null;if(y.length>0){const x=y.filter(C=>C instanceof SVGUseElement),T=y.filter(C=>C instanceof SVGPathElement),w=x.length>0?x:T;w.length>0&&(b=w[o?0:s<w.length?s:0])}if(b&&d){for(const x of d){let T,w;const C=x;if(typeof C.svg_x=="number"&&typeof C.svg_y=="number")T=C.svg_x,w=C.svg_y;else if(typeof x.x=="number"&&typeof x.y=="number")T=x.x,w=x.y;else continue;!Number.isNaN(T)&&!Number.isNaN(w)&&f.push(Ht.createCircleElement(T,w,b))}f.length>0&&(i=!1)}n.push(f)}return i?null:n}get text(){const t=this.points[this.row][this.col],n=t.x,i=Number(t.y),o=this.points[this.row],s=t;let f;if(typeof s.width=="number"&&!Number.isNaN(s.width))f=s.width;else{const w=typeof s.svg_y=="number"?s.svg_y:null,C=[];for(const R of o){const _=R,N=Number(R.y),z=typeof _.svg_y=="number"?_.svg_y:null;let B=!1;w!==null&&z!==null?B=Math.abs(z-w)<=1:B=Math.abs(N-i)<=.01,B&&typeof _.svg_x=="number"&&!Number.isNaN(_.svg_x)&&C.push(_.svg_x)}if(C.length>=2){const R=Math.min(...C),_=Math.max(...C);f=Math.abs(_-R)}}const d=T=>Math.round(T*1e4)/1e4,h=d(i),y=f!==void 0&&f>0?d(f):void 0;let b;if(typeof n=="string")b=n;else{const T=o[0];T&&typeof T.x=="string"?b=T.x:b=`Category ${this.row}`}const x={main:{label:this.xAxis,value:b},cross:{label:this.yAxis,value:h}};return y!==void 0&&(x.fill={label:"volume",value:String(y)}),x}get audio(){const n=this.points[0];if(!n||n.length===0)return super.audio;const i=n.map(z=>z.density??z.width??0),o=i.filter(z=>z>0);if(o.length===0)return super.audio;const s=Math.min(...o),f=i.length>0?Math.max(...i):0,d=s===f?Math.max(0,s-$7):s,h=s===f?f+$7:f,y=Math.min(this.col,i.length-1),b=z=>i[Math.max(0,Math.min(z,i.length-1))],x=y>0?b(y-1):b(y),T=b(y),w=y<i.length-1?b(y+1):b(y),C=this.points[this.row],R=C?Math.min(this.col,C.length-1):0,_=C==null?void 0:C[R];let N=1;if(_){const z=_.density??_.width??0,B=C.map(Y=>Y.density??Y.width??0),V=B.filter(Y=>Y>0),I=V.length>0?Math.min(...V):0,P=B.length>0?Math.max(...B):0;if(P>0&&typeof z=="number"&&z>0){const Y=I===P?P+$7:P;N=z/Y}}return{freq:{min:d,max:h,raw:[x,T,w]},panning:{y:this.row,x:this.col,rows:this.lineValues.length,cols:this.lineValues[this.row].length},isContinuous:!0,volumeScale:N}}getCurrentXValue(){return this.row>=0&&this.row<this.points.length?this.row:null}moveToXValue(t){var s;this.isInitialEntry&&this.handleInitialEntry();const n=this.points;if(!n||!n.length)return!1;const i=Math.floor(t);if(i<0||i>=n.length)return!1;const o=this.row;if(this.row=i,i!==o)this.col=0;else{const f=(s=n[i])!=null&&s.length?n[i].length-1:0;this.col=Math.min(this.col,f)}return this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}getCurrentYValue(){const t=this.lineValues[this.row];if(!t||t.length===0)return null;if(this.col>=0&&this.col<t.length){const n=t[this.col];return typeof n=="number"?n:null}return null}moveToXAndYValue(t,n){if(typeof t!="number")return!1;const i=Math.floor(t);if(i<0||i>=this.lineValues.length)return!1;this.row=i;const o=this.lineValues[this.row];if(!o||o.length===0)return this.col=0,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0;let s=0,f=Math.abs(o[0]-n);for(let d=1;d<o.length;d++){const h=Math.abs(o[d]-n);h<f&&(f=h,s=d)}return this.col=s,this.updateVisualPointPosition(),this.notifyStateUpdate(),!0}onSwitchFrom(t){var f;const n=t;if(!((n.type||((f=n.state)==null?void 0:f.traceType))==="box"))return!1;const s=t.getCurrentXValue();if(t.getCurrentYValue){const d=t.getCurrentYValue();if(d!==null&&s!==null&&this.moveToXAndYValue){const h=this.moveToXAndYValue(s,d);return h&&(this.isInitialEntry=!1),h}}if(s!==null){const d=this.moveToXValue(s);return d&&(this.isInitialEntry=!1),d}return!1}}function rV(e){return typeof(e==null?void 0:e.svg_x)=="number"&&typeof(e==null?void 0:e.svg_y)=="number"}function iV(e,t=!1){return t&&e.type===or.SMOOTH?new nV(e):Array.isArray(e.data)&&e.data.length>0&&Array.isArray(e.data[0])&&rV(e.data[0][0])?new tV(e):new P7(e)}class aV{static create(t,n){const i=(n==null?void 0:n.isViolinPlot)===!0;switch(t.type){case or.BAR:return new qB(t);case or.BOX:return new FB(t,i);case or.CANDLESTICK:return new XB(t);case or.HEATMAP:return new WB(t);case or.HISTOGRAM:return new QB(t);case or.LINE:return new OC(t);case or.SCATTER:return new KB(t);case or.SMOOTH:return iV(t,i);case or.DODGED:case or.NORMALIZED:case or.STACKED:return new eV(t);default:throw new Error(`Invalid trace type: ${t.type}`)}}}const oV="MAIDR Plot",lV="unavailable",sV="unavailable";class uV extends L7{constructor(n){super();j(this,"id");j(this,"movable");j(this,"title");j(this,"subtitle");j(this,"caption");j(this,"subplots");j(this,"size");j(this,"visualOrderMap");j(this,"invertVertical");j(this,"totalAxesCount");this.id=n.id,this.title=n.title??oV,this.subtitle=n.subtitle??lV,this.caption=n.caption??sV;const i=n.subplots;this.subplots=i.map(o=>o.map(s=>new cV(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 uh(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 uh(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 cV extends L7{constructor(n){var y;super();j(this,"movable");j(this,"traces");j(this,"traceTypes");j(this,"size");j(this,"highlightValue");j(this,"isViolinPlot");j(this,"layerSelector");j(this,"_axesElement",null);const i=n.layers;this.size=i.length;const o=(y=i[0])==null?void 0:y.selectors;this.layerSelector=typeof o=="string"?o:Array.isArray(o)&&typeof o[0]=="string"?o[0]:null;const s=i.map(b=>b.type),f=s.includes(or.BOX),d=s.includes(or.SMOOTH),h=f&&d;this.isViolinPlot=h,this.traces=i.map(b=>[aV.create(b,{isViolinPlot:h})]),this.traceTypes=this.traces.flat().map(b=>{const x=b.state;return x.empty?ge.EMPTY:x.traceType}),this.highlightValue=this.mapToSvgElement(n.selector),this.movable=new uh(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?Ht.selectElement(n)??null:null}}const Va={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},Bg=class Bg{constructor(){j(this,"basePalette");j(this,"extendedPalette");this.basePalette=[{index:Va.SINE_BASIC,waveType:"sine",timbreModulation:{attack:.01,decay:.1,sustain:.8,release:.2}},{index:Va.SQUARE_BASIC,waveType:"square",timbreModulation:{attack:.005,decay:.05,sustain:.7,release:.15}},{index:Va.SAWTOOTH_BASIC,waveType:"sawtooth",timbreModulation:{attack:.02,decay:.08,sustain:.6,release:.25}},{index:Va.TRIANGLE_BASIC,waveType:"triangle",timbreModulation:{attack:.015,decay:.12,sustain:.9,release:.18}},{index:Va.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:Va.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:Va.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:Va.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:Va.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:Va.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:Va.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 Va.SINE_BASIC;case"Bear":return Va.SAWTOOTH_SOFT;case"Neutral":return Va.TRIANGLE_BASIC;default:return Va.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),f=this.generateTimbreModulation(o,i.timbreModulation);return{index:t,waveType:i.waveType,harmonicMix:{fundamental:1,harmonics:s},timbreModulation:f}}generateHarmonics(t){const n=[],i=Bg.MIN_HARMONICS+t%Bg.HARMONIC_VARIATION;for(let o=0;o<i;o++){const s=1+(o+1)*(.5+t*.3%1),f=.4/(o+1)*(1-t*.1%.3);n.push({frequency:s,amplitude:f})}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.`)})}};j(Bg,"MIN_HARMONICS",2),j(Bg,"HARMONIC_VARIATION",3);let j7=Bg;const fV=100,dV=440,hV=880,RC=180,_C=.2,pV=.1,H7=.3,U5=Va.SINE_BASIC;class mV{constructor(t,n,i){j(this,"notification");j(this,"audioPalette");j(this,"isCombinedAudio");j(this,"mode");j(this,"activeAudioIds");j(this,"volume");j(this,"minFrequency");j(this,"maxFrequency");j(this,"audioContext");j(this,"compressor");this.notification=t,this.audioPalette=new j7,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 f=0;const d=this.mode==="on"?50:0,h=new Array,y=()=>{f<s.length?(this.playTone({min:n.freq.min,max:n.freq.max,raw:s[f++]},{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},f=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(f,{x:d,y:0},i)}createAdsrEnvelope(t,n,i,o,s){if(n!=null&&n.timbreModulation){const{attack:f,decay:d,sustain:h,release:y}=n.timbreModulation,b=s*f,x=s*d,T=s*y,w=s-b-x-T;return t.gain.setValueAtTime(1e-4*i,o),t.gain.linearRampToValueAtTime(i,o+b),t.gain.linearRampToValueAtTime(h*i,o+b+x),w>0&&t.gain.setValueAtTime(h*i,o+b+x+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=H7,s=this.audioContext.currentTime;i||(i=this.audioPalette.getPaletteEntry(U5));const f=[],d=[],h=this.audioContext.createOscillator();if(h.type=i.waveType,h.frequency.value=t,f.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,f.push(w)}for(let T=0;T<f.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 R=this.createAdsrEnvelope(w,i,C,s,o);R!==null&&w.gain.setValueCurveAtTime(R,s,o),d.push(w)}const y=this.audioContext.createStereoPanner();y.pan.value=n.x;for(let T=0;T<f.length;T++)f[T].connect(d[T]),d[T].connect(y);y.connect(this.compressor),f.forEach(T=>T.start(s));const b=T=>{y.disconnect();for(let w=0;w<f.length;w++)f[w].stop(),f[w].disconnect(),d[w].disconnect();this.activeAudioIds.delete(T)},x=setTimeout(()=>b(x),o*1e3*2);return this.activeAudioIds.set(x,f),x}playSmooth(t,n,i,o,s){const f=this.audioContext,d=f.currentTime,h=H7,y=t.raw.map(B=>this.interpolate(B,{min:t.min,max:t.max},{min:this.minFrequency,max:this.maxFrequency})),b=this.volume;let x;s!==void 0?x=b*Math.max(0,s):x=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=f.createOscillator();C.type=w,C.frequency.setValueCurveAtTime(y,d,h);const R=f.createGain(),_=this.createAdsrEnvelope(R,i,x,d,h);_!==null&&R.gain.setValueCurveAtTime(_,d,h);const N=f.createStereoPanner();N.pan.value=T,C.connect(R),R.connect(N),N.connect(this.compressor),C.start(d),C.stop(d+h);const z=setTimeout(()=>{C.disconnect(),R.disconnect(),N.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,f=i.createStereoPanner();f.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(f),f.connect(this.compressor);const b=[];for(let w=0;w<d.length;w++){const C=i.createOscillator(),R=i.createGain();C.frequency.value=d[w],C.type="sine",R.gain.setValueAtTime(h[w]*this.volume,o),R.gain.exponentialRampToValueAtTime(.001*this.volume,o+s),C.connect(R),R.connect(y),C.start(o),C.stop(o+s),b.push(C)}const x=w=>{f.disconnect(),y.disconnect(),b.forEach(C=>{C.disconnect()}),this.activeAudioIds.delete(w)},T=setTimeout(()=>x(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(RC,t),this.playOneWarningBeep(RC/2**(1/12),t+pV)}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(fV,{x:n,y:0},{index:U5,waveType:"triangle"})}playWaitingTone(){const t=this.audioPalette.getPaletteEntry(U5);return setInterval(()=>this.playOscillator(dV,{x:0,y:0},t),1e3)}playCompleteTone(){const t=this.audioPalette.getPaletteEntry(U5);return this.playOscillator(hV,{x:0,y:0},t)}playSimultaneousTones(t){const n=H7,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,f=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,x=i.createOscillator();x.type=b,x.frequency.value=f;const T=i.createGain();T.gain.setValueAtTime(this.volume,o),T.gain.exponentialRampToValueAtTime(.01*this.volume,o+n),x.connect(T),T.connect(this.compressor),x.start(o),x.stop(o+n);const w=setTimeout(()=>{x.disconnect(),T.disconnect(),this.activeAudioIds.delete(w)},n*1e3*2);this.activeAudioIds.set(w,[x])})}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(f=>{f==null||f.disconnect(),f==null||f.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 gV=250,yV=50,vV=500,DC=20;class bV{constructor(t,n,i){j(this,"context");j(this,"notification");j(this,"settings");j(this,"autoplayId");j(this,"currentDirection");j(this,"userSpeed");j(this,"defaultSpeed");j(this,"minSpeed");j(this,"maxSpeed");j(this,"autoplayRate");j(this,"interval");j(this,"totalDuration");j(this,"onChangeEmitter");j(this,"onChange");this.notification=n,this.context=t,this.settings=i,this.autoplayId=null,this.currentDirection=null,this.userSpeed=null,this.defaultSpeed=gV,this.minSpeed=yV,this.maxSpeed=vV,this.interval=DC,this.autoplayRate=this.defaultSpeed,this.interval=DC,this.totalDuration=i.get("general.autoplayDuration"),i.onChange(o=>{o.affectsSetting("general.autoplayDuration")&&(this.totalDuration=o.get("general.autoplayDuration"),this.restart())}),this.onChangeEmitter=new Md,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 kC=32;class mv{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 f=(t.max[s]-t.min[s])/4,d=t.min[s]+f,h=d+f,y=h+f;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(ge.NEW_LINE),i[s].push(o.length),o.push({row:s,col:t.values[s].length})}return{value:n.join(ge.EMPTY),cellToIndex:i,indexToCell:o}}}class SV{constructor(){j(this,"GLOBAL_MIN","globalMin");j(this,"GLOBAL_MAX","globalMax");j(this,"BLANK","blank");j(this,"LOWER_OUTLIER","lowerOutlier");j(this,"UPPER_OUTLIER","upperOutlier");j(this,"MIN","min");j(this,"MAX","max");j(this,"Q1","q1");j(this,"Q2","q2");j(this,"Q3","q3")}encode(t,n=kC){const i=new Array,o=new Array,s=new Array;for(let f=0;f<t.values.length;f++){const d=t.values[f],h=[{type:this.GLOBAL_MIN,value:t.min},...d.lowerOutliers.map(Y=>({type:this.LOWER_OUTLIER,value:Y})),{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(Y=>({type:this.UPPER_OUTLIER,value:Y})),{type:this.GLOBAL_MAX,value:t.max}],y=new Array;let b=!0;for(let Y=0;Y<h.length-1;Y++){const se=h[Y],ue=h[Y+1],re=Math.abs(b?ue.value-se.value:se.value-h[Y-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:re,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:re,numChars:0}):y.push({type:se.type,length:re,numChars:1})}let x=y.reduce((Y,se)=>Y+(se.numChars>0?se.numChars:0),0),[T,w,C,R]=[-1,-1,-1,-1];for(let Y=0;Y<y.length;Y++)y[Y].type===this.MIN&&y[Y].length>0&&(T=Y),y[Y].type===this.MAX&&y[Y].length>0&&(w=Y),y[Y].type===this.Q1&&(C=Y),y[Y].type===this.Q3&&(R=Y);T!==-1&&w!==-1&&y[T].length!==y[w].length&&(y[T].length>y[w].length?(y[T].numChars++,x++):(y[w].numChars++,x++)),C!==-1&&R!==-1&&y[C].length!==y[R].length&&(y[C].length>y[R].length?(y[C].numChars++,x++):(y[R].numChars++,x++));const _=Math.max(0,n-x),N=y.reduce((Y,se)=>Y+(se.type!==this.Q2&&se.length>0?se.length:0),0);for(const Y of y)if(Y.type!==this.Q2&&Y.length>0){const se=Math.round(Y.length/N*_);Y.numChars+=se}const z=y.reduce((Y,se)=>Y+se.numChars,0);let B=n-z,V=0;for(;B!==0;){const Y=y[V%y.length];Y.type!==this.BLANK&&Y.type!==this.Q2&&Y.length>0&&(Y.numChars+=B>0?1:-1,B+=B>0?-1:1),V++}let I=-1;const P=[this.LOWER_OUTLIER,this.MIN,this.Q1,this.Q2,this.Q3,this.MAX,this.UPPER_OUTLIER];s.push(Array.from({length:P.length}).fill(-1));for(const Y of y){Y.type!==this.BLANK&&Y.type!==this.GLOBAL_MIN&&Y.type!==this.GLOBAL_MAX&&(I=P.indexOf(Y.type),s[f][I]=i.length);for(let se=0;se<Y.numChars;se++){let ue="⠀";Y.type===this.MIN||Y.type===this.MAX?ue="⠒":Y.type===this.Q1||Y.type===this.Q3?ue="⠿":Y.type===this.Q2?ue=se===0?"⠸":"⠇":Y.type===this.LOWER_OUTLIER||Y.type===this.UPPER_OUTLIER?ue="⠂":Y.type===this.BLANK&&(ue="⠀"),i.push(ue),o.push({row:f,col:I})}}for(let Y=0;Y<3;Y++)if(s[f][Y]===-1){for(let se=Y+1;se<=3;se++)if(s[f][se]!==-1){s[f][Y]=s[f][se];break}}for(let Y=6;Y>3;Y--)if(s[f][Y]===-1){for(let se=Y-1;se>=3;se--)if(s[f][se]!==-1){s[f][Y]=s[f][se];break}}i.push(ge.NEW_LINE),o.push({row:f,col:I})}return{value:i.join(ge.EMPTY),cellToIndex:s,indexToCell:o}}}class xV{encode(t){const n=new Array,i=new Array,o=new Array,s=(t.max-t.min)/3,f=t.min+s,d=f+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]<=f?n.push("⠤"):t.values[h][y]<=d?n.push("⠒"):n.push("⠉"),i[h].push(o.length),o.push({row:h,col:y});n.push(ge.NEW_LINE),i[h].push(o.length),o.push({row:h,col:t.values[h].length})}return{value:n.join(ge.EMPTY),cellToIndex:i,indexToCell:o}}}class NC{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:f,medium:d,mediumHigh:h,high:y}=this.getThresholds(s,t);for(let b=0;b<t.values[s].length;b++){const x=t.values[s][b],T=b>0?t.values[s][b-1]:null,w=this.getBrailleChar(x,T,f,d,y,h);n.push(w),i[s].push(o.length),o.push({row:s,col:b})}n.push(ge.NEW_LINE),i[s].push(o.length),o.push({row:s,col:t.values[s].length})}return{value:n.join(ge.EMPTY),cellToIndex:i,indexToCell:o}}getBrailleChar(t,n,i,o,s,f){return f===void 0&&(f=s),t<=i&&n!==null&&n>i?n<=o?"⢄":n<=f?"⢆":"⢇":t<=i?"⣀":n!==null&&n<=i?t<=o?"⡠":t<=f?"⡰":"⡸":t<=o&&n!==null&&n>o?n<=f?"⠢":"⠣":t<=o?"⠤":n!==null&&n<=o?t<=f?"⠔":"⠜":t<=f&&n!==null&&n>f?"⠑":t<=f?"⠒":n!==null&&n<=f?"⠊":t<=s?"⠉":""}getBraille6Char(t,n,i,o,s){const f=x=>x<=i?"low":x<=o?"medium":(x<=s,"high"),d=f(t),h=n!==null?f(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 EV extends NC{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,f=i+s,d=f+s;return{low:f,medium:d,high:o}}encode(t){var s;const n=new Array,i=new Array,o=new Array;for(let f=0;f<t.values.length;f++){i.push(new Array);const{low:d,medium:h,high:y}=this.getThresholds(f,t);for(let b=0;b<t.values[f].length;b++){const x=t.values[f][b],T=b>0?t.values[f][b-1]:null;let w=this.getBraille6Char(x,T,d,h,y);((s=t.custom)==null?void 0:s[b])==="Bear"&&(w=this.addDot8(w)),n.push(w),i[f].push(o.length),o.push({row:f,col:b})}n.push(ge.NEW_LINE),i[f].push(o.length),o.push({row:f,col:t.values[f].length})}return{value:n.join(ge.EMPTY),cellToIndex:i,indexToCell:o}}}class zC extends NC{getThresholds(t,n){const i=(n.max[t]-n.min[t])/4,o=n.min[t]+i,s=o+i,f=s+i,d=n.max[t];return{low:o,medium:s,mediumHigh:f,high:d}}}class wV{constructor(t,n,i){j(this,"context");j(this,"notification");j(this,"display");j(this,"enabled");j(this,"cacheId");j(this,"cache");j(this,"encoders");j(this,"onChangeEmitter");j(this,"onChange");this.context=t,this.notification=n,this.display=i,this.enabled=!1,this.cacheId=ge.EMPTY,this.cache=null,this.encoders=new Map([[or.BAR,new mv],[or.BOX,new SV],[or.CANDLESTICK,new EV],[or.DODGED,new mv],[or.HEATMAP,new xV],[or.HISTOGRAM,new mv],[or.LINE,new zC],[or.NORMALIZED,new mv],[or.SMOOTH,new zC],[or.STACKED,new mv]]),this.onChangeEmitter=new Md,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,kC),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(xn.BRAILLE);const n=`Braille is ${this.enabled?"on":"off"}`;this.notification.notify(n)}}var IC=(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))(IC||{});class LC{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:IC.SERVER_ERROR,message:s instanceof Error?s.message:"Unknown error occurred"}}}}}j(LC,"DEFAULT_HEADERS",{"Content-Type":"application/json"});const TV=`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`,AV=`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`,CV=`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`,OV=`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.`,MV={basic:TV,intermediate:AV,advanced:CV};function RV(e){return e==="custom"?"":MV[e]}function q7(e,t){return t==="custom"?e:`${RV(t)}

${e}`}function F7(e){return OV.replace("{maidrJson}",e.maidrJson).replace("{currentPositionText}",e.currentPositionText).replace("{message}",e.message)}const _V=1e3,DV=256,kV=1e3;class NV{constructor(t,n,i){j(this,"display");j(this,"textService");j(this,"models");this.display=t,this.textService=n,this.models={OPENAI:new zV(t.plot,i,n,"gpt-4o"),ANTHROPIC_CLAUDE:new IV(t.plot,i,n,"claude-3-7-sonnet-latest"),GOOGLE_GEMINI:new LV(t.plot,i,n,"gemini-2.0-flash")}}async sendMessage(t,n){return this.models[t].getLlmResponse(n)}toggle(){this.display.toggleFocus(xn.CHAT)}}class G7{constructor(t,n,i){j(this,"svg");j(this,"json");j(this,"textService");j(this,"maidrBaseUrl");j(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 Ht.toBase64(this.svg),o=t.expertise==="custom"?"advanced":t.expertise,s=this.textService.getCoordinateText()||"",f=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 LC.post(d,f,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 zV extends G7{constructor(n,i,o,s){super(n,i,o);j(this,"version");this.version=s}getApiUrl(){return"https://api.openai.com/v1/chat/completions"}getEndPoint(){return"openai"}getPayload(n,i,o,s,f,d){const h={maidrJson:i,currentPositionText:s,message:f,expertiseLevel:d};return JSON.stringify({model:this.version,max_tokens:_V,messages:[{role:"system",content:q7(n,h.expertiseLevel)},{role:"user",content:[{type:"text",text:F7(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 IV extends G7{constructor(n,i,o,s){super(n,i,o);j(this,"version");this.version=s}getApiUrl(){return"https://api.anthropic.com"}getEndPoint(){return"claude"}getPayload(n,i,o,s,f,d){const h={maidrJson:i,currentPositionText:s,message:f,expertiseLevel:d};return JSON.stringify({anthropic_version:this.version,max_tokens:DV,messages:[{role:"user",content:[{type:"image",source:{type:"base64",media_type:"image/jpeg",data:o}},{type:"text",text:`${q7(n,h.expertiseLevel)}

${F7(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 LV extends G7{constructor(n,i,o,s){super(n,i,o);j(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,f,d){const h={maidrJson:i,currentPositionText:s,message:f,expertiseLevel:d},y=q7(n,h.expertiseLevel),b=F7(h),x=`${y}

${b}`;return JSON.stringify({generationConfig:{maxOutputTokens:kV},safetySettings:[],contents:[{role:"user",parts:[{text:x},{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 BV{constructor(t,n){j(this,"context");j(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 VV{constructor(t,n){j(this,"context");j(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 UV{constructor(t,n){j(this,"context");j(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 PV{constructor(t,n){j(this,"context");j(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 $V{constructor(t){j(this,"autoplay");this.autoplay=t}execute(){this.autoplay.stop()}}class jV{constructor(t){j(this,"autoplay");this.autoplay=t}execute(){this.autoplay.speedUp()}}class HV{constructor(t){j(this,"autoplay");this.autoplay=t}execute(){this.autoplay.speedDown()}}class qV{constructor(t){j(this,"autoplay");this.autoplay=t}execute(){this.autoplay.resetSpeed()}}class ch{constructor(t,n,i,o){j(this,"context");j(this,"textViewModel");j(this,"audioService");j(this,"textService");this.context=t,this.textViewModel=n,this.audioService=i,this.textService=o}restoreScope(){const t=this.context.state.type==="figure"?xn.SUBPLOT:xn.TRACE;this.context.toggleScope(t)}}class FV extends ch{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 GV extends ch{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 YV extends ch{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 XV extends ch{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 WV extends ch{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 QV extends ch{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 KV extends ch{constructor(n,i,o,s,f,d){super(n,f,i,d);j(this,"audio");j(this,"brailleViewModel");j(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 ZV{constructor(t,n){j(this,"context");j(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 JV{constructor(t){j(this,"goToExtremaViewModel");this.goToExtremaViewModel=t}execute(){this.goToExtremaViewModel.moveUp()}}class eU{constructor(t){j(this,"goToExtremaViewModel");this.goToExtremaViewModel=t}execute(){this.goToExtremaViewModel.moveDown()}}class tU{constructor(t){j(this,"goToExtremaViewModel");this.goToExtremaViewModel=t}execute(){this.goToExtremaViewModel.selectCurrent()}}class nU{constructor(t){j(this,"goToExtremaViewModel");this.goToExtremaViewModel=t}execute(){this.goToExtremaViewModel.hide()}}class rU{constructor(t){j(this,"context");this.context=t}execute(){this.context.moveOnce("UPWARD")}}class iU{constructor(t){j(this,"context");this.context=t}execute(){this.context.moveOnce("DOWNWARD")}}class aU{constructor(t){j(this,"context");this.context=t}execute(){this.context.moveOnce("BACKWARD")}}class oU{constructor(t){j(this,"context");this.context=t}execute(){this.context.moveOnce("FORWARD")}}class lU{constructor(t){j(this,"context");this.context=t}execute(){this.context.moveToExtreme("UPWARD")}}class sU{constructor(t){j(this,"context");this.context=t}execute(){this.context.moveToExtreme("DOWNWARD")}}class uU{constructor(t){j(this,"context");this.context=t}execute(){this.context.moveToExtreme("BACKWARD")}}class cU{constructor(t){j(this,"context");this.context=t}execute(){this.context.moveToExtreme("FORWARD")}}class fU{constructor(t){j(this,"context");this.context=t}execute(){this.context.enterSubplot()}}class dU{constructor(t){j(this,"context");this.context=t}execute(){this.context.exitSubplot()}}class hU{constructor(t){j(this,"context");this.context=t}execute(){this.context.stepTrace("UPWARD")}}class pU{constructor(t){j(this,"context");this.context=t}execute(){this.context.stepTrace("DOWNWARD")}}class mU{constructor(t,n){j(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=n}execute(){this.rotorNavigationViewModel.moveToNextNavUnit()}}class gU{constructor(t,n){j(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=n}execute(){this.rotorNavigationViewModel.moveToPrevNavUnit()}}class yU{constructor(t){j(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=t}execute(){this.rotorNavigationViewModel.moveUp()}}class vU{constructor(t){j(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=t}execute(){this.rotorNavigationViewModel.moveLeft()}}class bU{constructor(t){j(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=t}execute(){this.rotorNavigationViewModel.moveDown()}}class SU{constructor(t){j(this,"rotorNavigationViewModel");this.rotorNavigationViewModel=t}execute(){this.rotorNavigationViewModel.moveRight()}}class xU{constructor(t,n){j(this,"context");j(this,"brailleViewModel");this.context=t,this.brailleViewModel=n}execute(){const t=this.context.state;t.type==="trace"&&this.brailleViewModel.toggle(t)}}class EU{constructor(t){j(this,"textViewModel");this.textViewModel=t}execute(){this.textViewModel.toggle()}}class wU{constructor(t){j(this,"audio");this.audio=t}execute(){this.audio.toggle()}}class TU{constructor(t,n){j(this,"context");j(this,"reviewViewModel");this.context=t,this.reviewViewModel=n}execute(){const t=this.context.state;t.type==="trace"&&this.reviewViewModel.toggle(t)}}class AU{constructor(t){j(this,"helpViewModel");this.helpViewModel=t}execute(){this.helpViewModel.toggle()}}class CU{constructor(t){j(this,"chatViewModel");this.chatViewModel=t}execute(){this.chatViewModel.toggle()}}class OU{constructor(t){j(this,"settingsViewModel");this.settingsViewModel=t}execute(){this.settingsViewModel.toggle()}}class MU{constructor(t){j(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.toggle()}}class RU{constructor(t){j(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.hide()}}class _U{constructor(t){j(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.moveUp()}}class DU{constructor(t){j(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.moveDown()}}class kU{constructor(t){j(this,"commandPaletteViewModel");this.commandPaletteViewModel=t}execute(){this.commandPaletteViewModel.selectCurrent()}}class Y7{constructor(t,n){j(this,"context");j(this,"scope");this.context=t,this.scope=n}execute(){this.context.toggleScope(this.scope)}}class NU{constructor(t){j(this,"highContrastService");this.highContrastService=t}execute(){this.highContrastService.toggleHighContrast()}}class BC{constructor(t){j(this,"context");j(this,"audioService");j(this,"autoplayService");j(this,"highContrastService");j(this,"highlightService");j(this,"rotorService");j(this,"textService");j(this,"brailleViewModel");j(this,"chatViewModel");j(this,"commandPaletteViewModel");j(this,"goToExtremaViewModel");j(this,"helpViewModel");j(this,"reviewViewModel");j(this,"settingsViewModel");j(this,"textViewModel");j(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 yU(this.rotorNavigationViewModel):new rU(this.context);case"MOVE_DOWN":return this.context.isRotorEnabled()?new bU(this.rotorNavigationViewModel):new iU(this.context);case"MOVE_LEFT":return this.context.isRotorEnabled()?new vU(this.rotorNavigationViewModel):new aU(this.context);case"MOVE_RIGHT":return this.context.isRotorEnabled()?new SU(this.rotorNavigationViewModel):new oU(this.context);case"MOVE_TO_TOP_EXTREME":return new lU(this.context);case"MOVE_TO_BOTTOM_EXTREME":return new sU(this.context);case"MOVE_TO_LEFT_EXTREME":return new uU(this.context);case"MOVE_TO_RIGHT_EXTREME":return new cU(this.context);case"MOVE_TO_TRACE_CONTEXT":return new fU(this.context);case"MOVE_TO_SUBPLOT_CONTEXT":return new dU(this.context);case"MOVE_TO_NEXT_TRACE":return new hU(this.context);case"MOVE_TO_PREV_TRACE":return new pU(this.context);case"TOGGLE_AUDIO":return new wU(this.audioService);case"TOGGLE_BRAILLE":return new xU(this.context,this.brailleViewModel);case"TOGGLE_TEXT":return new EU(this.textViewModel);case"TOGGLE_REVIEW":return new TU(this.context,this.reviewViewModel);case"TOGGLE_HIGH_CONTRAST":return new NU(this.highContrastService);case"TOGGLE_HELP":return new AU(this.helpViewModel);case"TOGGLE_CHAT":return new CU(this.chatViewModel);case"TOGGLE_COMMAND_PALETTE":return new MU(this.commandPaletteViewModel);case"TOGGLE_SETTINGS":return new OU(this.settingsViewModel);case"GO_TO_EXTREMA_MOVE_UP":return new JV(this.goToExtremaViewModel);case"GO_TO_EXTREMA_MOVE_DOWN":return new eU(this.goToExtremaViewModel);case"GO_TO_EXTREMA_SELECT":return new tU(this.goToExtremaViewModel);case"GO_TO_EXTREMA_CLOSE":return new nU(this.goToExtremaViewModel);case"GO_TO_EXTREMA_TOGGLE":return new ZV(this.context,this.goToExtremaViewModel);case"COMMAND_PALETTE_MOVE_UP":return new _U(this.commandPaletteViewModel);case"COMMAND_PALETTE_MOVE_DOWN":return new DU(this.commandPaletteViewModel);case"COMMAND_PALETTE_SELECT":return new kU(this.commandPaletteViewModel);case"COMMAND_PALETTE_CLOSE":return new RU(this.commandPaletteViewModel);case"DESCRIBE_X":return new FV(this.context,this.textViewModel,this.audioService,this.textService);case"DESCRIBE_Y":return new GV(this.context,this.textViewModel,this.audioService,this.textService);case"DESCRIBE_FILL":return new YV(this.context,this.textViewModel,this.audioService,this.textService);case"DESCRIBE_POINT":return new KV(this.context,this.audioService,this.highlightService,this.brailleViewModel,this.textViewModel,this.textService);case"DESCRIBE_TITLE":return new XV(this.context,this.textViewModel,this.audioService,this.textService);case"DESCRIBE_SUBTITLE":return new WV(this.context,this.textViewModel,this.audioService,this.textService);case"DESCRIBE_CAPTION":return new QV(this.context,this.textViewModel,this.audioService,this.textService);case"ACTIVATE_FIGURE_LABEL_SCOPE":case"DEACTIVATE_FIGURE_LABEL_SCOPE":return new Y7(this.context,xn.FIGURE_LABEL);case"ACTIVATE_TRACE_LABEL_SCOPE":return new Y7(this.context,xn.TRACE_LABEL);case"DEACTIVATE_TRACE_LABEL_SCOPE":return new Y7(this.context,xn.TRACE);case"AUTOPLAY_UPWARD":return new BV(this.context,this.autoplayService);case"AUTOPLAY_DOWNWARD":return new VV(this.context,this.autoplayService);case"AUTOPLAY_FORWARD":return new UV(this.context,this.autoplayService);case"AUTOPLAY_BACKWARD":return new PV(this.context,this.autoplayService);case"STOP_AUTOPLAY":return new $V(this.autoplayService);case"SPEED_UP_AUTOPLAY":return new jV(this.autoplayService);case"SPEED_DOWN_AUTOPLAY":return new HV(this.autoplayService);case"RESET_AUTOPLAY_SPEED":return new qV(this.autoplayService);case"ROTOR_NEXT_NAV":return new mU(this.context,this.rotorNavigationViewModel);case"ROTOR_PREV_NAV":return new gU(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"}};j(Vg,"IS_MAC",(()=>{var n;return(((n=navigator.userAgentData)==null?void 0:n.platform)??navigator.platform).toLowerCase().includes("mac")})());let qt=Vg;const zU={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",ROTOR_NEXT_NAV:`${qt.alt}+shift+up`,ROTOR_PREV_NAV:`${qt.alt}+shift+down`},IU={TOGGLE_CHAT:"esc"},LU={DEACTIVATE_FIGURE_LABEL_SCOPE:"escape",DESCRIBE_TITLE:"t",DESCRIBE_SUBTITLE:"s",DESCRIBE_CAPTION:"c",TOGGLE_HELP:`${qt.ctrl}+/`},BU={TOGGLE_HELP:"esc"},VU={ACTIVATE_FIGURE_LABEL_SCOPE:"l",DESCRIBE_TITLE:"t",DESCRIBE_POINT:"space",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}+,`},UU={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}+/`},PU={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`},$U={TOGGLE_SETTINGS:"esc"},jU={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",GO_TO_EXTREMA_TOGGLE:"g",ROTOR_NEXT_NAV:`${qt.alt}+shift+up`,ROTOR_PREV_NAV:`${qt.alt}+shift+down`},HU={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"},qU={COMMAND_PALETTE_MOVE_UP:"up",COMMAND_PALETTE_MOVE_DOWN:"down",COMMAND_PALETTE_SELECT:"enter",COMMAND_PALETTE_CLOSE:"esc"},X7={[xn.BRAILLE]:zU,[xn.CHAT]:IU,[xn.COMMAND_PALETTE]:qU,[xn.FIGURE_LABEL]:LU,[xn.GO_TO_EXTREMA]:HU,[xn.HELP]:BU,[xn.REVIEW]:PU,[xn.SETTINGS]:$U,[xn.SUBPLOT]:VU,[xn.TRACE]:jU,[xn.TRACE_LABEL]:UU};class FU{constructor(t){j(this,"commandFactory");this.commandFactory=new BC(t)}register(t){La.filter=n=>{const i=n.target;return i.tagName.toLowerCase()===ge.INPUT?i.id.startsWith(ge.REVIEW_INPUT):i.tagName.toLowerCase()===ge.TEXT_AREA?i.id.startsWith(ge.BRAILLE_TEXT_AREA):!0};for(const[n,i]of Object.entries(X7))for(const[o,s]of Object.entries(i))o==="STOP_AUTOPLAY"&&La("*",xn.TRACE,f=>{(La.command||La.ctrl)&&this.commandFactory.create(o).execute(f)}),La(s,{scope:n},f=>{o!=="ALLOW_DEFAULT"&&(f.preventDefault(),this.commandFactory.create(o).execute(f))});La.setScope(t)}unregister(){La.unbind()}}class GU{constructor(t,n,i){j(this,"mouseListener");j(this,"commandContext");j(this,"hoverMode","none");j(this,"plot");j(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 YU{constructor(t,n){j(this,"commandFactory");j(this,"currentScope");j(this,"context");this.commandFactory=new BC(t),this.currentScope=n,this.context=t}getContext(){return this.context}executeCommand(t){const n=X7[this.currentScope];if(!(!n||!(t in n)))try{this.commandFactory.create(t).execute()}catch(i){console.error(`Failed to execute command ${t}:`,i)}}setScope(t){this.currentScope=t}getCurrentScope(){return this.currentScope}}class XU{constructor(t,n){j(this,"context");j(this,"display");this.context=t,this.display=n}toggle(){this.context.scope!==xn.COMMAND_PALETTE&&this.display.toggleFocus(xn.COMMAND_PALETTE)}returnToTraceScope(){this.context.scope!==xn.TRACE&&this.display.toggleFocus(xn.COMMAND_PALETTE)}}function WU(e){return e!==null&&typeof e=="object"&&"ensureInitialized"in e&&typeof e.ensureInitialized=="function"}class QU{constructor(t,n,i){j(this,"context");j(this,"focusStack");j(this,"plot");j(this,"onChangeEmitter");j(this,"onChange");j(this,"hasEnteredInteractive",!1);j(this,"textService");j(this,"isReturningFromModeToggle",!1);j(this,"textChangeDisposer",null);j(this,"hasClearedOnFirstNav",!1);this.context=t,this.focusStack=new D7,this.focusStack.push(this.context.scope),this.plot=n,this.textService=i,this.onChangeEmitter=new Md,this.onChange=this.onChangeEmitter.event,this.removeInstruction(),this.textChangeDisposer=this.textService.onChange(()=>{this.hasClearedOnFirstNav||(this.plot.removeAttribute(ge.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(ge.ARIA_LABEL,this.getInstruction()),this.plot.setAttribute(ge.TITLE,this.getInstruction()),this.plot.setAttribute(ge.ROLE,ge.IMAGE),this.plot.tabIndex=0}removeInstruction(){const t=this.hasEnteredInteractive?"":this.getInstruction(!1);t?(this.plot.setAttribute(ge.ARIA_LABEL,t),this.plot.removeAttribute(ge.TITLE),this.plot.setAttribute(ge.ROLE,ge.APPLICATION),this.plot.tabIndex=0):(this.plot.removeAttribute(ge.ARIA_LABEL),this.plot.removeAttribute(ge.TITLE),this.plot.setAttribute(ge.ROLE,ge.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(ge.ARIA_LABEL),this.focusStack.removeLast(t)||this.focusStack.push(t);const n=this.focusStack.peek();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(ge.ARIA_LABEL);else{const n=this.context.active;n&&WU(n)&&n.ensureInitialized(),this.hasEnteredInteractive||this.plot.removeAttribute(ge.ARIA_LABEL)}this.plot.setAttribute(ge.ROLE,ge.APPLICATION),this.plot.focus(),this.hasEnteredInteractive||(this.hasEnteredInteractive=!0),this.onChangeEmitter.fire({value:t})},0)):this.onChangeEmitter.fire({value:t})}}const $m=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 W7{constructor(){}static resolveFormat(t){if(!t)return $m;if(t.function)try{return new Function("value",t.function)}catch{return console.warn("Invalid format function string:",t.function),$m}return t.type?this.resolveTypeSpecifier(t):$m}static resolveTypeSpecifier(t){const{type:n,decimals:i,currency:o,locale:s,dateOptions:f}=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(f,s??"en-US");case"scientific":return jm.scientific(i??2);default:return $m}}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 KU{constructor(t){j(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 f=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(f,h)}}resolveAxisFormat(t){const n=W7.resolveFormat(t);return W7.wrapFormat(n)}getFormatter(t,n){const i=this.formatters.get(t);return i?i[n]:$m}hasCustomFormatter(t,n){const i=this.formatters.get(t);return i?i[n]!==$m:!1}formatValue(t,n,i){const o=this.getFormatter(n,i);return W7.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 ZU{constructor(t,n){j(this,"context");j(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!==xn.GO_TO_EXTREMA&&this.display.toggleFocus(xn.GO_TO_EXTREMA)}isExtremaNavigable(t){return t instanceof Fl&&t.supportsExtremaNavigation()}returnToTraceScope(){this.context.scope!==xn.TRACE&&this.display.toggleFocus(xn.GO_TO_EXTREMA)}}const Q7=[{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`}],VC=[{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 JU{constructor(t,n){j(this,"context");j(this,"display");j(this,"scopedMenuItems");this.context=t,this.display=n,this.scopedMenuItems={[xn.TRACE]:Q7,[xn.TRACE_LABEL]:Q7,[xn.BRAILLE]:Q7,[xn.SUBPLOT]:VC,[xn.FIGURE_LABEL]:VC}}getMenuItems(){return this.scopedMenuItems[this.context.scope]??[]}toggle(){this.display.toggleFocus(xn.HELP)}}const ya="http://www.w3.org/2000/svg",g6=class g6{constructor(){j(this,"patternCache",new Map);j(this,"defsElement",null);j(this,"targetSvg",null);j(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,f=this.generateCacheKey(n,i,o,s),d=this.patternCache.get(f);if(d&&this.patternExists(d))return d;const h=this.createPattern(t);return this.patternCache.set(f,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 f=s.replace(/fill:[^;]+/i,`fill:${o}`);t.setAttribute("style",f)}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(ya,"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),f=this.normalizeColor(i);return`${t}-${s}-${f}-${o}`}generatePatternId(t){const n=Date.now(),i=Math.random().toString(36).substring(2,8);return`${g6.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,f=this.patternGenerators[n];if(!f)throw new Error(`Unknown pattern type: ${n}`);const d=f(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,f=document.createElementNS(ya,"pattern");f.setAttribute("patternUnits","userSpaceOnUse"),f.setAttribute("width",String(o)),f.setAttribute("height",String(o)),f.setAttribute("patternTransform","rotate(45)");const d=document.createElementNS(ya,"rect");d.setAttribute("width",String(o)),d.setAttribute("height",String(o)),d.setAttribute("fill",t),f.appendChild(d);const h=document.createElementNS(ya,"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)),f.appendChild(h),f}createSquareGrid(t,n,i){const o=14*i,s=3*i,f=document.createElementNS(ya,"pattern");f.setAttribute("patternUnits","userSpaceOnUse"),f.setAttribute("width",String(o)),f.setAttribute("height",String(o));const d=document.createElementNS(ya,"rect");d.setAttribute("width",String(o)),d.setAttribute("height",String(o)),d.setAttribute("fill",t),f.appendChild(d);const h=document.createElementNS(ya,"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)),f.appendChild(h),f}createDots(t,n,i){const o=16*i,s=4*i,f=document.createElementNS(ya,"pattern");f.setAttribute("patternUnits","userSpaceOnUse"),f.setAttribute("width",String(o)),f.setAttribute("height",String(o));const d=document.createElementNS(ya,"rect");d.setAttribute("width",String(o)),d.setAttribute("height",String(o)),d.setAttribute("fill",t),f.appendChild(d);const h=document.createElementNS(ya,"circle");return h.setAttribute("cx",String(o/2)),h.setAttribute("cy",String(o/2)),h.setAttribute("r",String(s)),h.setAttribute("fill",n),f.appendChild(h),f}createHorizontalLines(t,n,i){const o=10*i,s=4*i,f=document.createElementNS(ya,"pattern");f.setAttribute("patternUnits","userSpaceOnUse"),f.setAttribute("width",String(o)),f.setAttribute("height",String(o));const d=document.createElementNS(ya,"rect");d.setAttribute("width",String(o)),d.setAttribute("height",String(o)),d.setAttribute("fill",t),f.appendChild(d);const h=document.createElementNS(ya,"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)),f.appendChild(h),f}createDiamonds(t,n,i){const o=16*i,s=o/2,f=document.createElementNS(ya,"pattern");f.setAttribute("patternUnits","userSpaceOnUse"),f.setAttribute("width",String(o)),f.setAttribute("height",String(o)),f.setAttribute("patternTransform","rotate(45)");const d=document.createElementNS(ya,"rect");d.setAttribute("width",String(o)),d.setAttribute("height",String(o)),d.setAttribute("fill",t),f.appendChild(d);const h=document.createElementNS(ya,"rect");h.setAttribute("width",String(s)),h.setAttribute("height",String(s)),h.setAttribute("fill",n),f.appendChild(h);const y=document.createElementNS(ya,"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),f.appendChild(y),f}};j(g6,"PATTERN_PREFIX","maidr-pattern");let K7=g6;const nn={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 eP{constructor(t,n,i,o,s){j(this,"settingsService");j(this,"notificationService");j(this,"displayService");j(this,"figure");j(this,"context");j(this,"settingsDisposable",null);j(this,"defaultBackgroundColor","");j(this,"defaultForegroundColor","");j(this,"originalColorInfo",null);j(this,"traceElementsCache",null);j(this,"patternService",null);j(this,"previousHighContrastMode",!1);j(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(f=>{f.affectsSetting("general.highContrastMode")&&this.handleHighContrastModeChange(f.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 f=(o.element.getAttribute("style")||"").replace(new RegExp(`${o.attr}:\\s*[^;]+`,"i"),`${o.attr}:${o.color}`);o.element.setAttribute("style",f)}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 f=s.getAllOriginalElements();for(const d of f)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 f=n[s];if(f.getAttribute("visibility")==="hidden")continue;const d=f.getAttribute("style")||"",h=d.match(/fill:\s*([^;]+)/i),y=d.match(/stroke:\s*([^;]+)/i),b=this.isTraceElement(f,i),x=f.getAttribute("d");let T=!1;x&&(T=x.length>nn.MIN_COMPLEX_PATH_LENGTH);const w=T;h&&o.push({element:f,color:h[1].trim(),isInSelectors:b,cantBeBackground:w,attr:"fill",attrType:"style"}),y&&o.push({element:f,color:y[1].trim(),isInSelectors:b,cantBeBackground:w,attr:"stroke",attrType:"style"});const C=f.getAttribute("fill");C&&o.push({element:f,color:C.trim(),isInSelectors:b,cantBeBackground:w,attr:"fill",attrType:"attribute"});const R=f.getAttribute("stroke");R&&o.push({element:f,color:R.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",nn.GLOW_FILTER_OFFSET),o.setAttribute("y",nn.GLOW_FILTER_OFFSET),o.setAttribute("width",nn.GLOW_FILTER_SIZE),o.setAttribute("height",nn.GLOW_FILTER_SIZE);const s=`
    <feGaussianBlur in="SourceAlpha" stdDeviation="${nn.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="${nn.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="${nn.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="${nn.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),x=Number.parseInt(s.slice(5,7),16),T=Number.parseInt(s.slice(7,9),16)/nn.RGB_MAX_VALUE,w=Math.round(y*T+nn.RGB_MAX_VALUE*(1-T)),C=Math.round(b*T+nn.RGB_MAX_VALUE*(1-T)),R=Math.round(x*T+nn.RGB_MAX_VALUE*(1-T));s=`#${w.toString(16).padStart(2,"0")}${C.toString(16).padStart(2,"0")}${R.toString(16).padStart(2,"0")}`}else if(!/^#[0-9a-f]{6}$/i.test(s))return n;let f=!1;const d=nn.NEAR_WHITE_LUMINANCE_SCALE;return"type"in this.context.instructionContext&&(this.context.instructionContext.type==="bar"||this.context.instructionContext.type==="histogram")&&t.isInSelectors&&(f=!0),this.findClosestColor(n,i,f,d,t.cantBeBackground)}findClosestColor(t,n,i,o,s){if(n.length===0)throw new Error("Color array cannot be empty");const f=b=>{const x=b.replace("#","");return{r:Number.parseInt(x.slice(0,2),16),g:Number.parseInt(x.slice(2,4),16),b:Number.parseInt(x.slice(4,6),16)}},d=b=>nn.LUMINANCE_RED_COEFF*b.r+nn.LUMINANCE_GREEN_COEFF*b.g+nn.LUMINANCE_BLUE_COEFF*b.b,h=(b,x)=>Math.sqrt((b.r-x.r)**2+(b.g-x.g)**2+(b.b-x.b)**2),y=f(t);if(s){const b=n.indexOf(this.highContrastDarkColor);b!==-1&&n.splice(b,1)}if(i){const b=d(y),x=nn.RGB_MAX_VALUE*(1-o);if(b>=x||n.length===1)return n[0];let T=n[0];if(n.length>1){let w=h(y,f(n[1]));for(let C=1;C<n.length;C++){const R=h(y,f(n[C]));R<w&&(w=R,T=n[C])}}return T}else{let b=n[0],x=h(y,f(n[0]));for(let C=1;C<n.length;C++){const R=h(y,f(n[C]));R<x&&(x=R,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),f=this.parseColorToRgb(n);if(!s||!f)return[t,n];if(o===2)return[t,n];const d=[],h=y=>{const b=Math.round(s.r+y*(f.r-s.r)),x=Math.round(s.g+y*(f.g-s.g)),T=Math.round(s.b+y*(f.b-s.b));return this.rgbToHex({r:b,g:x,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(nn.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 x=b.r/nn.RGB_MAX_VALUE,T=b.g/nn.RGB_MAX_VALUE,w=b.b/nn.RGB_MAX_VALUE,C=Math.max(x,T,w),R=Math.min(x,T,w),_=(C+R)/2;if(C===R)return{h:0,s:0,l:_};const N=C-R,z=_>nn.LIGHTNESS_MIDPOINT?N/(2-C-R):N/(C+R);let B=0;return C===x?B=((T-w)/N+(T<w?nn.HSL_HUE_DIVISOR:0))/nn.HSL_HUE_DIVISOR:C===T?B=((w-x)/N+nn.HSL_GREEN_HUE_OFFSET)/nn.HSL_HUE_DIVISOR:B=((x-T)/N+nn.HSL_BLUE_HUE_OFFSET)/nn.HSL_HUE_DIVISOR,{h:B,s:z,l:_}},i=b=>{const{h:x,s:T,l:w}=b;if(T===0){const N=Math.round(w*nn.RGB_MAX_VALUE);return{r:N,g:N,b:N}}const C=(N,z,B)=>{let V=B;return V<0&&(V+=1),V>1&&(V-=1),V<nn.HSL_THRESHOLD_ONE_SIXTH?N+(z-N)*nn.HSL_HUE_DIVISOR*V:V<nn.HSL_THRESHOLD_ONE_HALF?z:V<nn.HSL_THRESHOLD_TWO_THIRDS?N+(z-N)*(nn.HSL_THRESHOLD_TWO_THIRDS-V)*nn.HSL_HUE_DIVISOR:N},R=w<nn.LIGHTNESS_MIDPOINT?w*(1+T):w+T-w*T,_=2*w-R;return{r:Math.round(C(_,R,x+nn.HSL_THRESHOLD_ONE_THIRD)*nn.RGB_MAX_VALUE),g:Math.round(C(_,R,x)*nn.RGB_MAX_VALUE),b:Math.round(C(_,R,x-nn.HSL_THRESHOLD_ONE_THIRD)*nn.RGB_MAX_VALUE)}},o=[];for(let b=0;b<t.length;b++){const x=t[b];if(!(x.color==="none"||x.color==="transparent")&&x.isInSelectors){const T=this.parseColorToRgb(x.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),f=Math.min(...s),h=Math.max(...s)-f,y=t.map(b=>({...b}));for(const b of o){let x;h===0?x=nn.DEFAULT_MIDRANGE_LUMINANCE:x=(b.luminance-f)/h;const T={h:b.hsl.h,s:b.hsl.s,l:x},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 K7;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 f=this.normalizeColor(s.color);i.has(f)||i.set(f,[]),i.get(f).push(s)}let o=0;for(const[s,f]of i){const d=this.patternService.getPatternTypeByIndex(o);for(const h of f){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),f=Math.abs(n-o);return s>f?this.highContrastDarkColor:this.highContrastLightColor}getRelativeLuminance(t){const n=this.parseColorToRgb(t);return n?(nn.LUMINANCE_RED_COEFF*n.r+nn.LUMINANCE_GREEN_COEFF*n.g+nn.LUMINANCE_BLUE_COEFF*n.b)/nn.RGB_MAX_VALUE:nn.DEFAULT_MIDRANGE_LUMINANCE}}class tP{constructor(t){j(this,"highlightedElements");j(this,"settingsService");j(this,"highlightedSubplots");j(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=Ht.createHighlightElement(t,this.currentHighlightColor);return n.id=`${ge.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)Ht.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=>{Ht.removeSubplotHighlightSvg(t)}),this.highlightedSubplots.clear()}unhighlightAll(){this.unhighlightTraceElements(),this.unhighlightSubplotElements()}}class nP{constructor(){j(this,"onChangeEmitter");j(this,"onChange");this.onChangeEmitter=new Md,this.onChange=this.onChangeEmitter.event}dispose(){this.onChangeEmitter.dispose()}notify(t){t&&this.onChangeEmitter.fire({value:t})}}class rP{constructor(t,n,i){j(this,"notification");j(this,"display");j(this,"text");j(this,"enabled");j(this,"onChangeEmitter");j(this,"onChange");this.notification=t,this.display=n,this.text=i,this.enabled=!1,this.onChangeEmitter=new Md,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(xn.REVIEW);const n=`Review is ${this.enabled?"on":"off"}`;this.notification.notify(n)}}const UC={0:ge.DATA_MODE,1:ge.LOWER_VALUE_MODE,2:ge.HIGHER_VALUE_MODE};class iP{constructor(t,n){j(this,"context");j(this,"text");j(this,"rotorIndex");this.context=t,this.rotorIndex=0,this.text=n}moveToNextRotorUnit(){return this.rotorIndex=(this.rotorIndex+1)%ge.NO_OF_ROTOR_NAV_MODES,this.setMode(),this.getMode()}moveToPrevRotorUnit(){return this.rotorIndex=(this.rotorIndex-1+ge.NO_OF_ROTOR_NAV_MODES)%ge.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 Fl)if(n.getCurrentXValue()!==null){if(!n.moveToNextCompareValue(t,i)){const f=this.getMessage(i,t);return console.warn(f),f}}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 Fl&&!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 Fl&&!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 Fl&&!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 Fl&&!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(UC[this.rotorIndex]===ge.DATA_MODE){this.context.setRotorEnabled(!1);return}this.context.setRotorEnabled(!0)}getMode(){return UC[this.rotorIndex]}getCompareType(){const t=this.getMode();return t===ge.HIGHER_VALUE_MODE?"higher":(t===ge.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 Z7="maidr-settings";function aP(e,t){return t.split(".").reduce((n,i)=>n&&n[i],e)}function P5(e,t){const n=aP(e,t);if(n===void 0)throw new Error(`Setting not found: ${t}`);return n}class PC{constructor(t,n){j(this,"oldSettings");j(this,"newSettings");this.oldSettings=t,this.newSettings=n}affectsSetting(t){const n=P5(this.oldSettings,t),i=P5(this.newSettings,t);return JSON.stringify(n)!==JSON.stringify(i)}get(t){return P5(this.newSettings,t)}}class oP{constructor(t,n){j(this,"storage");j(this,"display");j(this,"defaultSettings");j(this,"currentSettings");j(this,"observers");j(this,"onChangeEmitter");j(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 Md,this.onChange=this.onChangeEmitter.event;const i=this.storage.load(Z7);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(Z7,this.currentSettings),this.onChangeEmitter.fire(new PC(n,t))}resetSettings(){const t=this.currentSettings;return this.currentSettings=this.defaultSettings,this.storage.remove(Z7),this.onChangeEmitter.fire(new PC(t,this.currentSettings)),this.currentSettings}get(t){return P5(this.currentSettings,t)}toggle(){this.display.toggleFocus(xn.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 lP{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 $C(e){return!e.empty&&e.isLayerSwitch===!0&&typeof e.index=="number"&&typeof e.size=="number"}class sP{constructor(t,n){j(this,"notification");j(this,"formatter");j(this,"mode");j(this,"currentState",null);j(this,"currentSubplotIndex",null);j(this,"currentLayerId",null);j(this,"hasHadFirstNavigation",!1);j(this,"onChangeEmitter");j(this,"onChange");j(this,"onNavigationEmitter");j(this,"onNavigation");this.notification=t,this.formatter=n,this.mode="verbose",this.onChangeEmitter=new Md,this.onChange=this.onChangeEmitter.event,this.onNavigationEmitter=new Md,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 f=Array.isArray(n.main.value)?this.formatArrayValue(n.main.value,o).join(", "):this.formatSingleValue(n.main.value,o);i.push(`${n.main.label} is ${f}`)}if(n.cross&&n.cross.value!==void 0){const f=Array.isArray(n.cross.value)?this.formatArrayValue(n.cross.value,s).join(", "):this.formatSingleValue(n.cross.value,s);i.push(`${n.cross.label} is ${f}`)}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(!$C(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==="box"&&t.size===2)&&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(ge.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,ge.IS),t.range!==void 0?n.push(this.formatSingleValue(t.range.min,i),ge.THROUGH,this.formatSingleValue(t.range.max,i)):Array.isArray(t.main.value)?n.push(this.formatArrayValue(t.main.value,i).join(ge.COMMA_SPACE)):n.push(this.formatSingleValue(t.main.value,i)),t.section&&this.isBoxPlotWithSection(t)&&(t.section===iu.UPPER_OUTLIER||t.section===iu.LOWER_OUTLIER)&&Array.isArray(t.cross.value)){const s=t.cross.label,f=t.cross.value,h=`[${this.formatArrayValue(f,o).join(", ")}]`,y=this.formatSingleValue(t.main.value,i);if(f.length===0)return`${t.main.label} is ${y}, no ${t.section.toLowerCase()} for ${s}`;{const b=f.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(ge.COMMA_SPACE,t.section.toLowerCase(),ge.SPACE,s)}else n.push(ge.COMMA_SPACE,t.section,ge.SPACE,t.cross.label);else n.push(ge.COMMA_SPACE,t.cross.label);if(Array.isArray(t.cross.value)?t.cross.value.length>1?n.push(ge.ARE,this.formatArrayValue(t.cross.value,o).join(ge.COMMA_SPACE)):t.cross.value.length>0&&n.push(ge.IS,this.formatArrayValue(t.cross.value,o).join(ge.COMMA_SPACE)):n.push(ge.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(ge.COMMA_SPACE,t.fill.label,ge.IS,s)}return n.join(ge.EMPTY)}formatTerseTraceText(t){const n=new Array,i=t.mainAxis??"x",o=t.crossAxis??"y";if(Array.isArray(t.main.value)?n.push(ge.OPEN_BRACKET,this.formatArrayValue(t.main.value,i).join(ge.COMMA_SPACE),ge.CLOSE_BRACKET):n.push(this.formatSingleValue(t.main.value,i),ge.COMMA_SPACE),t.section&&this.isBoxPlotWithSection(t)&&(t.section===iu.UPPER_OUTLIER||t.section===iu.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,ge.SPACE),Array.isArray(t.cross.value)?n.push(ge.OPEN_BRACKET,this.formatArrayValue(t.cross.value,o).join(ge.COMMA_SPACE),ge.CLOSE_BRACKET):n.push(this.formatSingleValue(t.cross.value,o))):t.section!==void 0&&t.fill===void 0?(n.push(t.section,ge.SPACE),Array.isArray(t.cross.value)?n.push(ge.OPEN_BRACKET,this.formatArrayValue(t.cross.value,o).join(ge.COMMA_SPACE),ge.CLOSE_BRACKET):n.push(this.formatSingleValue(t.cross.value,o))):Array.isArray(t.cross.value)?n.push(ge.OPEN_BRACKET,this.formatArrayValue(t.cross.value,o).join(ge.COMMA_SPACE),ge.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(ge.COMMA_SPACE,s)}return n.join(ge.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"&&$C(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 va(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 uP=typeof Symbol=="function"&&Symbol.observable||"@@observable",jC=uP,J7=()=>Math.random().toString(36).substring(7).split("").join("."),cP={INIT:`@@redux/INIT${J7()}`,REPLACE:`@@redux/REPLACE${J7()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${J7()}`},fh=cP;function gv(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 fP(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(pP(e))return"date";if(hP(e))return"error";const n=dP(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 dP(e){return typeof e.constructor=="function"?e.constructor.name:null}function hP(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function pP(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Rd(e){let t=typeof e;return vi.NODE_ENV!=="production"&&(t=fP(e)),t}function HC(e,t,n){if(typeof e!="function")throw new Error(vi.NODE_ENV==="production"?va(2):`Expected the root reducer to be a function. Instead, received: '${Rd(e)}'`);if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(vi.NODE_ENV==="production"?va(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"?va(1):`Expected the enhancer to be a function. Instead, received: '${Rd(n)}'`);return n(HC)(e,t)}let i=e,o=t,s=new Map,f=s,d=0,h=!1;function y(){f===s&&(f=new Map,s.forEach((_,N)=>{f.set(N,_)}))}function b(){if(h)throw new Error(vi.NODE_ENV==="production"?va(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 x(_){if(typeof _!="function")throw new Error(vi.NODE_ENV==="production"?va(4):`Expected the listener to be a function. Instead, received: '${Rd(_)}'`);if(h)throw new Error(vi.NODE_ENV==="production"?va(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 N=!0;y();const z=d++;return f.set(z,_),function(){if(N){if(h)throw new Error(vi.NODE_ENV==="production"?va(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.");N=!1,y(),f.delete(z),s=null}}}function T(_){if(!gv(_))throw new Error(vi.NODE_ENV==="production"?va(7):`Actions must be plain objects. Instead, the actual type was: '${Rd(_)}'. 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"?va(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"?va(17):`Action "type" property must be a string. Instead, the actual type was: '${Rd(_.type)}'. Value was: '${_.type}' (stringified)`);if(h)throw new Error(vi.NODE_ENV==="production"?va(9):"Reducers may not dispatch actions.");try{h=!0,o=i(o,_)}finally{h=!1}return(s=f).forEach(z=>{z()}),_}function w(_){if(typeof _!="function")throw new Error(vi.NODE_ENV==="production"?va(10):`Expected the nextReducer to be a function. Instead, received: '${Rd(_)}`);i=_,T({type:fh.REPLACE})}function C(){const _=x;return{subscribe(N){if(typeof N!="object"||N===null)throw new Error(vi.NODE_ENV==="production"?va(11):`Expected the observer to be an object. Instead, received: '${Rd(N)}'`);function z(){const V=N;V.next&&V.next(b())}return z(),{unsubscribe:_(z)}},[jC](){return this}}}return T({type:fh.INIT}),{dispatch:T,subscribe:x,getState:b,replaceReducer:w,[jC]:C}}function qC(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function mP(e,t,n,i){const o=Object.keys(t),s=n&&n.type===fh.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(!gv(e))return`The ${s} has unexpected type of "${Rd(e)}". Expected argument to be an object with the following keys: "${o.join('", "')}"`;const f=Object.keys(e).filter(d=>!t.hasOwnProperty(d)&&!i[d]);if(f.forEach(d=>{i[d]=!0}),!(n&&n.type===fh.REPLACE)&&f.length>0)return`Unexpected ${f.length>1?"keys":"key"} "${f.join('", "')}" found in ${s}. Expected to find one of the known reducer keys instead: "${o.join('", "')}". Unexpected keys will be ignored.`}function gP(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:fh.INIT})>"u")throw new Error(vi.NODE_ENV==="production"?va(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:fh.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(vi.NODE_ENV==="production"?va(13):`The slice reducer for key "${t}" returned undefined when probed with a random type. Don't try to handle '${fh.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 yP(e){const t=Object.keys(e),n={};for(let f=0;f<t.length;f++){const d=t[f];vi.NODE_ENV!=="production"&&typeof e[d]>"u"&&qC(`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{gP(n)}catch(f){s=f}return function(d={},h){if(s)throw s;if(vi.NODE_ENV!=="production"){const x=mP(d,n,h,o);x&&qC(x)}let y=!1;const b={};for(let x=0;x<i.length;x++){const T=i[x],w=n[T],C=d[T],R=w(C,h);if(typeof R>"u"){const _=h&&h.type;throw new Error(vi.NODE_ENV==="production"?va(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]=R,y=y||R!==C}return y=y||i.length!==Object.keys(d).length,y?b:d}}function $5(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...i)=>t(n(...i)))}function vP(...e){return t=>(n,i)=>{const o=t(n,i);let s=()=>{throw new Error(vi.NODE_ENV==="production"?va(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const f={getState:o.getState,dispatch:(h,...y)=>s(h,...y)},d=e.map(h=>h(f));return s=$5(...d)(o.dispatch),{...o,dispatch:s}}}function FC(e){return gv(e)&&"type"in e&&typeof e.type=="string"}var j5={},GC=Symbol.for("immer-nothing"),YC=Symbol.for("immer-draftable"),uo=Symbol.for("immer-state"),bP=j5.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(j5.NODE_ENV!=="production"){const n=bP[e],i=dh(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,Hm=gl.getPrototypeOf,H5="constructor",q5="prototype",e2="configurable",F5="enumerable",G5="writable",yv="value",Kc=e=>!!e&&!!e[uo];function au(e){var t;return e?WC(e)||W5(e)||!!e[YC]||!!((t=e[H5])!=null&&t[YC])||Q5(e)||K5(e):!1}var SP=gl[q5][H5].toString(),XC=new WeakMap;function WC(e){if(!e||!n2(e))return!1;const t=Hm(e);if(t===null||t===gl[q5])return!0;const n=gl.hasOwnProperty.call(t,H5)&&t[H5];if(n===Object)return!0;if(!dh(n))return!1;let i=XC.get(n);return i===void 0&&(i=Function.toString.call(n),XC.set(n,i)),i===SP}function Y5(e,t,n=!0){vv(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 vv(e){const t=e[uo];return t?t.type_:W5(e)?1:Q5(e)?2:K5(e)?3:0}var QC=(e,t,n=vv(e))=>n===2?e.has(t):gl[q5].hasOwnProperty.call(e,t),t2=(e,t,n=vv(e))=>n===2?e.get(t):e[t],X5=(e,t,n,i=vv(e))=>{i===2?e.set(t,n):i===3?e.add(n):e[t]=n};function xP(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var W5=Array.isArray,Q5=e=>e instanceof Map,K5=e=>e instanceof Set,n2=e=>typeof e=="object",dh=e=>typeof e=="function",r2=e=>typeof e=="boolean";function EP(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var Zc=e=>e.copy_||e.base_,i2=e=>e.modified_?e.copy_:e.base_;function a2(e,t){if(Q5(e))return new Map(e);if(K5(e))return new Set(e);if(W5(e))return Array[q5].slice.call(e);const n=WC(e);if(t===!0||t==="class_only"&&!n){const i=gl.getOwnPropertyDescriptors(e);delete i[uo];let o=Reflect.ownKeys(i);for(let s=0;s<o.length;s++){const f=o[s],d=i[f];d[G5]===!1&&(d[G5]=!0,d[e2]=!0),(d.get||d.set)&&(i[f]={[e2]:!0,[G5]:!0,[F5]:d[F5],[yv]:e[f]})}return gl.create(Hm(e),i)}else{const i=Hm(e);if(i!==null&&n)return{...e};const o=gl.create(i);return gl.assign(o,e)}}function o2(e,t=!1){return J5(e)||Kc(e)||!au(e)||(vv(e)>1&&gl.defineProperties(e,{set:Z5,add:Z5,clear:Z5,delete:Z5}),gl.freeze(e),t&&Y5(e,(n,i)=>{o2(i,!0)},!1)),e}function wP(){ml(2)}var Z5={[yv]:wP};function J5(e){return e===null||!n2(e)?!0:gl.isFrozen(e)}var ex="MapSet",l2="Patches",KC="ArrayMethods",ZC={};function hh(e){const t=ZC[e];return t||ml(0,e),t}var JC=e=>!!ZC[e],bv,e9=()=>bv,TP=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:JC(ex)?hh(ex):void 0,arrayMethodsPlugin_:JC(KC)?hh(KC):void 0});function t9(e,t){t&&(e.patchPlugin_=hh(l2),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function s2(e){u2(e),e.drafts_.forEach(AP),e.drafts_=null}function u2(e){e===bv&&(bv=e.parent_)}var n9=e=>bv=TP(bv,e);function AP(e){const t=e[uo];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function r9(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[uo].modified_&&(s2(t),ml(4)),au(e)&&(e=i9(t,e));const{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(n[uo].base_,e,t)}else e=i9(t,n);return CP(t,e,!0),s2(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==GC?e:void 0}function i9(e,t){if(J5(t))return t;const n=t[uo];if(!n)return nx(t,e.handledSet_,e);if(!tx(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);l9(n,e)}return n.copy_}function CP(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&o2(t,n)}function a9(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var tx=(e,t)=>e.scope_===t,OP=[];function o9(e,t,n,i){const o=Zc(e),s=e.type_;if(i!==void 0&&t2(o,i,s)===t){X5(o,i,n,s);return}if(!e.draftLocations_){const d=e.draftLocations_=new Map;Y5(o,(h,y)=>{if(Kc(y)){const b=d.get(y)||[];b.push(h),d.set(y,b)}})}const f=e.draftLocations_.get(t)??OP;for(const d of f)X5(o,d,n,s)}function MP(e,t,n){e.callbacks_.push(function(o){var d;const s=t;if(!s||!tx(s,o))return;(d=o.mapSetPlugin_)==null||d.fixSetContents(s);const f=i2(s);o9(e,s.draft_??s,f,n),l9(s,o)})}function l9(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)}a9(e)}}function RP(e,t,n){const{scope_:i}=e;if(Kc(n)){const o=n[uo];tx(o,i)&&o.callbacks_.push(function(){ix(e);const f=i2(o);o9(e,n,f,t)})}else au(n)&&e.callbacks_.push(function(){const s=Zc(e);e.type_===3?s.has(n)&&nx(n,i.handledSet_,i):t2(s,t,e.type_)===n&&i.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&nx(t2(e.copy_,t,e.type_),i.handledSet_,i)})}function nx(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Kc(e)||t.has(e)||!au(e)||J5(e)||(t.add(e),Y5(e,(i,o)=>{if(Kc(o)){const s=o[uo];if(tx(s,n)){const f=i2(s);X5(e,i,f,e.type_),a9(s)}}else au(o)&&nx(o,t,n)})),e}function _P(e,t){const n=W5(e),i={type_:n?1:0,scope_:t?t.scope_:e9(),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=rx;n&&(o=[i],s=Sv);const{revoke:f,proxy:d}=Proxy.revocable(o,s);return i.draft_=d,i.revoke_=f,[d,i]}var rx={get(e,t){if(t===uo)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=Zc(e);if(!QC(o,t,e.type_))return DP(e,o,t);const s=o[t];if(e.finalized_||!au(s)||i&&e.operationMethod&&(n!=null&&n.isMutatingArrayMethod(e.operationMethod))&&EP(t))return s;if(s===c2(e.base_,t)){ix(e);const f=e.type_===1?+t:t,d=d2(e.scope_,s,e,f);return e.copy_[f]=d}return s},has(e,t){return t in Zc(e)},ownKeys(e){return Reflect.ownKeys(Zc(e))},set(e,t,n){const i=s9(Zc(e),t);if(i!=null&&i.set)return i.set.call(e.draft_,n),!0;if(!e.modified_){const o=c2(Zc(e),t),s=o==null?void 0:o[uo];if(s&&s.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(xP(n,o)&&(n!==void 0||QC(e.base_,t,e.type_)))return!0;ix(e),f2(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),RP(e,t,n)),!0},deleteProperty(e,t){return ix(e),c2(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),f2(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Zc(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i&&{[G5]:!0,[e2]:e.type_!==1||t!=="length",[F5]:i[F5],[yv]:n[t]}},defineProperty(){ml(11)},getPrototypeOf(e){return Hm(e.base_)},setPrototypeOf(){ml(12)}},Sv={};for(let e in rx){let t=rx[e];Sv[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}Sv.deleteProperty=function(e,t){return j5.NODE_ENV!=="production"&&isNaN(parseInt(t))&&ml(13),Sv.set.call(this,e,t,void 0)},Sv.set=function(e,t,n){return j5.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&ml(14),rx.set.call(this,e[0],t,n,e[0])};function c2(e,t){const n=e[uo];return(n?Zc(n):e)[t]}function DP(e,t,n){var o;const i=s9(t,n);return i?yv in i?i[yv]:(o=i.get)==null?void 0:o.call(e.draft_):void 0}function s9(e,t){if(!(t in e))return;let n=Hm(e);for(;n;){const i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=Hm(n)}}function f2(e){e.modified_||(e.modified_=!0,e.parent_&&f2(e.parent_))}function ix(e){e.copy_||(e.assigned_=new Map,e.copy_=a2(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var kP=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,i)=>{if(dh(t)&&!dh(n)){const s=n;n=t;const f=this;return function(h=s,...y){return f.produce(h,b=>n.call(this,b,...y))}}dh(n)||ml(6),i!==void 0&&!dh(i)&&ml(7);let o;if(au(t)){const s=n9(this),f=d2(s,t,void 0);let d=!0;try{o=n(f),d=!1}finally{d?s2(s):u2(s)}return t9(s,i),r9(o,s)}else if(!t||!n2(t)){if(o=n(t),o===void 0&&(o=t),o===GC&&(o=void 0),this.autoFreeze_&&o2(o,!0),i){const s=[],f=[];hh(l2).generateReplacementPatches_(t,o,{patches_:s,inversePatches_:f}),i(s,f)}return o}else ml(1,t)},this.produceWithPatches=(t,n)=>{if(dh(t))return(f,...d)=>this.produceWithPatches(f,h=>t(h,...d));let i,o;return[this.produce(t,n,(f,d)=>{i=f,o=d}),i,o]},r2(e==null?void 0:e.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),r2(e==null?void 0:e.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),r2(e==null?void 0:e.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){au(e)||ml(8),Kc(e)&&(e=NP(e));const t=n9(this),n=d2(t,e,void 0);return n[uo].isManual_=!0,u2(t),n}finishDraft(e,t){const n=e&&e[uo];(!n||!n.isManual_)&&ml(9);const{scope_:i}=n;return t9(i,t),r9(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=hh(l2).applyPatches_;return Kc(e)?i(e,t):this.produce(e,o=>i(o,t))}};function d2(e,t,n,i){const[o,s]=Q5(t)?hh(ex).proxyMap_(t,n):K5(t)?hh(ex).proxySet_(t,n):_P(t,n);return((n==null?void 0:n.scope_)??e9()).drafts_.push(o),s.callbacks_=(n==null?void 0:n.callbacks_)??[],s.key_=i,n&&i!==void 0?MP(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 NP(e){return Kc(e)||ml(10,e),u9(e)}function u9(e){if(!au(e)||J5(e))return e;const t=e[uo];let n,i=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=a2(e,t.scope_.immer_.useStrictShallowCopy_),i=t.scope_.immer_.shouldUseStrictIteration()}else n=a2(e,!0);return Y5(n,(o,s)=>{X5(n,o,u9(s))},i),t&&(t.finalized_=!1),n}var zP=new kP,c9=zP.produce,IP={},LP=(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})}}},BP=(e,t,n)=>{const{memoize:i,memoizeOptions:o}=t,{inputSelectorResults:s,inputSelectorResultsCopy:f}=e,d=i(()=>({}),...o);if(!(d.apply(null,s)===d.apply(null,f))){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:f,stack:y})}},VP={inputStabilityCheck:"once",identityFunctionCheck:"once"};function UP(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function PP(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function $P(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 f9=e=>Array.isArray(e)?e:[e];function jP(e){const t=Array.isArray(e[0])?e[0]:e;return $P(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function d9(e,t){const n=[],{length:i}=e;for(let o=0;o<i;o++)n.push(e[o].apply(null,t));return n}var HP=(e,t)=>{const{identityFunctionCheck:n,inputStabilityCheck:i}={...VP,...t};return{identityFunctionCheck:{shouldRun:n==="always"||n==="once"&&e,run:LP},inputStabilityCheck:{shouldRun:i==="always"||i==="once"&&e,run:BP}}},qP=class{constructor(e){this.value=e}deref(){return this.value}},FP=typeof WeakRef<"u"?WeakRef:qP,GP=0,h9=1;function ax(){return{s:GP,v:void 0,o:null,p:null}}function p9(e,t={}){let n=ax();const{resultEqualityCheck:i}=t;let o,s=0;function f(){var x;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 R=d.o;R===null&&(d.o=R=new WeakMap);const _=R.get(C);_===void 0?(d=ax(),R.set(C,d)):d=_}else{let R=d.p;R===null&&(d.p=R=new Map);const _=R.get(C);_===void 0?(d=ax(),R.set(C,d)):d=_}}const y=d;let b;if(d.s===h9)b=d.v;else if(b=e.apply(null,arguments),s++,i){const T=((x=o==null?void 0:o.deref)==null?void 0:x.call(o))??o;T!=null&&i(T,b)&&(b=T,s!==0&&s--),o=typeof b=="object"&&b!==null||typeof b=="function"?new FP(b):b}return y.s=h9,y.v=b,b}return f.clearCache=()=>{n=ax(),f.resetResultsCount()},f.resultsCount=()=>s,f.resetResultsCount=()=>{s=0},f}function YP(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,i=(...o)=>{let s=0,f=0,d,h={},y=o.pop();typeof y=="object"&&(h=y,y=o.pop()),UP(y,`createSelector expects an output function after the inputs, but received: [${typeof y}]`);const b={...n,...h},{memoize:x,memoizeOptions:T=[],argsMemoize:w=p9,argsMemoizeOptions:C=[],devModeChecks:R={}}=b,_=f9(T),N=f9(C),z=jP(o),B=x(function(){return s++,y.apply(null,arguments)},..._);let V=!0;const I=w(function(){f++;const Y=d9(z,arguments);if(d=B.apply(null,Y),IP.NODE_ENV!=="production"){const{identityFunctionCheck:se,inputStabilityCheck:ue}=HP(V,R);if(se.shouldRun&&se.run(y,Y,d),ue.shouldRun){const re=d9(z,arguments);ue.run({inputSelectorResults:Y,inputSelectorResultsCopy:re},{memoize:x,memoizeOptions:_},arguments)}V&&(V=!1)}return d},...N);return Object.assign(I,{resultFunc:y,memoizedResultFunc:B,dependencies:z,dependencyRecomputations:()=>f,resetDependencyRecomputations:()=>{f=0},lastResult:()=>d,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:x,argsMemoize:w})};return Object.assign(i,{withTypes:()=>i}),i}var XP=YP(p9),WP=Object.assign((e,t=XP)=>{PP(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((f,d,h)=>(f[n[h]]=d,f),{}))},{withTypes:()=>WP});function m9(e){return({dispatch:n,getState:i})=>o=>s=>typeof s=="function"?s(n,i,e):o(s)}var QP=m9(),KP=m9,en={},ZP=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?$5:$5.apply(null,arguments)},JP=e=>e&&typeof e.match=="function";function g9(e,t){function n(...i){if(t){let o=t(...i);if(!o)throw new Error(en.NODE_ENV==="production"?Ar(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=>FC(i)&&i.type===e,n}function e$(e){return typeof e=="function"&&"type"in e&&JP(e)}function t$(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 n$(e={}){if(en.NODE_ENV==="production")return()=>n=>i=>n(i);const{isActionCreator:t=e$}=e;return()=>n=>i=>(t(i)&&console.warn(t$(i.type)),n(i))}function y9(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 v9=class N5 extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,N5.prototype)}static get[Symbol.species](){return N5}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new N5(...t[0].concat(this)):new N5(...t.concat(this))}};function b9(e){return au(e)?c9(e,()=>{}):e}function ox(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function r$(e){return typeof e!="object"||e==null||Object.isFrozen(e)}function i$(e,t,n){const i=S9(e,t,n);return{detectMutations(){return x9(e,t,i,n)}}}function S9(e,t=[],n,i="",o=new Set){const s={value:n};if(!e(n)&&!o.has(n)){o.add(n),s.children={};const f=t.length>0;for(const d in n){const h=i?i+"."+d:d;f&&t.some(b=>b instanceof RegExp?b.test(h):h===b)||(s.children[d]=S9(e,t,n[d],h))}}return s}function x9(e,t=[],n,i,o=!1,s=""){const f=n?n.value:void 0,d=f===i;if(o&&!d&&!Number.isNaN(i))return{wasMutated:!0,path:s};if(e(f)||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 x=s?s+"."+b:b;if(y&&t.some(C=>C instanceof RegExp?C.test(x):x===C))continue;const T=x9(e,t,n.children[b],i[b],d,x);if(T.wasMutated)return T}return{wasMutated:!1}}function a$(e={}){if(en.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(x,T){return y[0]===T?"[Circular ~]":"[Circular ~."+b.slice(0,y.indexOf(T)).join(".")+"]"}),function(x,T){if(y.length>0){var w=y.indexOf(this);~w?y.splice(w+1):y.push(this),~w?b.splice(w,1/0,x):b.push(x),~y.indexOf(T)&&(T=h.call(this,x,T))}else y.push(T);return d==null?T:d.call(this,x,T)}},{isImmutable:i=r$,ignoredPaths:o,warnAfter:s=32}=e;const f=i$.bind(null,i,o);return({getState:d})=>{let h=d(),y=f(h),b;return x=>T=>{const w=y9(s,"ImmutableStateInvariantMiddleware");w.measureTime(()=>{if(h=d(),b=y.detectMutations(),y=f(h),b.wasMutated)throw new Error(en.NODE_ENV==="production"?Ar(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=x(T);return w.measureTime(()=>{if(h=d(),b=y.detectMutations(),y=f(h),b.wasMutated)throw new Error(en.NODE_ENV==="production"?Ar(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 E9(e){const t=typeof e;return e==null||t==="string"||t==="boolean"||t==="number"||Array.isArray(e)||gv(e)}function h2(e,t="",n=E9,i,o=[],s){let f;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 x=t?t+"."+y:y;if(!(h&&o.some(w=>w instanceof RegExp?w.test(x):x===w))){if(!n(b))return{keyPath:x,value:b};if(typeof b=="object"&&(f=h2(b,x,n,i,o,s),f))return f}}return s&&w9(e)&&s.add(e),!1}function w9(e){if(!Object.isFrozen(e))return!1;for(const t of Object.values(e))if(!(typeof t!="object"||t===null)&&!w9(t))return!1;return!0}function o$(e={}){if(en.NODE_ENV==="production")return()=>t=>n=>t(n);{const{isSerializable:t=E9,getEntries:n,ignoredActions:i=[],ignoredActionPaths:o=["meta.arg","meta.baseQueryMeta"],ignoredPaths:s=[],warnAfter:f=32,ignoreState:d=!1,ignoreActions:h=!1,disableCache:y=!1}=e,b=!y&&WeakSet?new WeakSet:void 0;return x=>T=>w=>{if(!FC(w))return T(w);const C=T(w),R=y9(f,"SerializableStateInvariantMiddleware");return!h&&!(i.length&&i.indexOf(w.type)!==-1)&&R.measureTime(()=>{const _=h2(w,"",t,n,o,b);if(_){const{keyPath:N,value:z}=_;console.error(`A non-serializable value was detected in an action, in the path: \`${N}\`. 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||(R.measureTime(()=>{const _=x.getState(),N=h2(_,"",t,n,s,b);if(N){const{keyPath:z,value:B}=N;console.error(`A non-serializable value was detected in the state, in the path: \`${z}\`. Value:`,B,`
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)`)}}),R.warnIfExceeded()),C}}}function lx(e){return typeof e=="boolean"}var l$=()=>function(t){const{thunk:n=!0,immutableCheck:i=!0,serializableCheck:o=!0,actionCreatorCheck:s=!0}=t??{};let f=new v9;if(n&&(lx(n)?f.push(QP):f.push(KP(n.extraArgument))),en.NODE_ENV!=="production"){if(i){let d={};lx(i)||(d=i),f.unshift(a$(d))}if(o){let d={};lx(o)||(d=o),f.push(o$(d))}if(s){let d={};lx(s)||(d=s),f.unshift(n$(d))}}return f},s$="RTK_autoBatch",T9=e=>t=>{setTimeout(t,e)},u$=(e={type:"raf"})=>t=>(...n)=>{const i=t(...n);let o=!0,s=!1,f=!1;const d=new Set,h=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:T9(10):e.type==="callback"?e.queueNotification:T9(e.timeout),y=()=>{f=!1,s&&(s=!1,d.forEach(b=>b()))};return Object.assign({},i,{subscribe(b){const x=()=>o&&b(),T=i.subscribe(x);return d.add(b),()=>{T(),d.delete(b)}},dispatch(b){var x;try{return o=!((x=b==null?void 0:b.meta)!=null&&x[s$]),s=!o,s&&(f||(f=!0,h(y))),i.dispatch(b)}finally{o=!0}}})},c$=e=>function(n){const{autoBatch:i=!0}=n??{};let o=new v9(e);return i&&o.push(u$(typeof i=="object"?i:void 0)),o};function f$(e){const t=l$(),{reducer:n=void 0,middleware:i,devTools:o=!0,duplicateMiddlewareCheck:s=!0,preloadedState:f=void 0,enhancers:d=void 0}=e||{};let h;if(typeof n=="function")h=n;else if(gv(n))h=yP(n);else throw new Error(en.NODE_ENV==="production"?Ar(1):"`reducer` is a required argument, and must be a function or an object of functions that can be passed to combineReducers");if(en.NODE_ENV!=="production"&&i&&typeof i!="function")throw new Error(en.NODE_ENV==="production"?Ar(2):"`middleware` field must be a callback");let y;if(typeof i=="function"){if(y=i(t),en.NODE_ENV!=="production"&&!Array.isArray(y))throw new Error(en.NODE_ENV==="production"?Ar(3):"when using a middleware builder function, an array of middleware must be returned")}else y=t();if(en.NODE_ENV!=="production"&&y.some(R=>typeof R!="function"))throw new Error(en.NODE_ENV==="production"?Ar(4):"each middleware provided to configureStore must be a function");if(en.NODE_ENV!=="production"&&s){let R=new Set;y.forEach(_=>{if(R.has(_))throw new Error(en.NODE_ENV==="production"?Ar(42):"Duplicate middleware references found when creating the store. Ensure that each middleware is only included once.");R.add(_)})}let b=$5;o&&(b=ZP({trace:en.NODE_ENV!=="production",...typeof o=="object"&&o}));const x=vP(...y),T=c$(x);if(en.NODE_ENV!=="production"&&d&&typeof d!="function")throw new Error(en.NODE_ENV==="production"?Ar(5):"`enhancers` field must be a callback");let w=typeof d=="function"?d(T):T();if(en.NODE_ENV!=="production"&&!Array.isArray(w))throw new Error(en.NODE_ENV==="production"?Ar(6):"`enhancers` callback must return an array");if(en.NODE_ENV!=="production"&&w.some(R=>typeof R!="function"))throw new Error(en.NODE_ENV==="production"?Ar(7):"each enhancer provided to configureStore must be a function");en.NODE_ENV!=="production"&&y.length&&!w.includes(x)&&console.error("middlewares were provided, but middleware enhancer was not included in final enhancers - make sure to call `getDefaultEnhancers`");const C=b(...w);return HC(h,f,C)}function A9(e){const t={},n=[];let i;const o={addCase(s,f){if(en.NODE_ENV!=="production"){if(n.length>0)throw new Error(en.NODE_ENV==="production"?Ar(26):"`builder.addCase` should only be called before calling `builder.addMatcher`");if(i)throw new Error(en.NODE_ENV==="production"?Ar(27):"`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const d=typeof s=="string"?s:s.type;if(!d)throw new Error(en.NODE_ENV==="production"?Ar(28):"`builder.addCase` cannot be called with an empty action type");if(d in t)throw new Error(en.NODE_ENV==="production"?Ar(29):`\`builder.addCase\` cannot be called with two reducers for the same action type '${d}'`);return t[d]=f,o},addAsyncThunk(s,f){if(en.NODE_ENV!=="production"&&i)throw new Error(en.NODE_ENV==="production"?Ar(43):"`builder.addAsyncThunk` should only be called before calling `builder.addDefaultCase`");return f.pending&&(t[s.pending.type]=f.pending),f.rejected&&(t[s.rejected.type]=f.rejected),f.fulfilled&&(t[s.fulfilled.type]=f.fulfilled),f.settled&&n.push({matcher:s.settled,reducer:f.settled}),o},addMatcher(s,f){if(en.NODE_ENV!=="production"&&i)throw new Error(en.NODE_ENV==="production"?Ar(30):"`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return n.push({matcher:s,reducer:f}),o},addDefaultCase(s){if(en.NODE_ENV!=="production"&&i)throw new Error(en.NODE_ENV==="production"?Ar(31):"`builder.addDefaultCase` can only be called once");return i=s,o}};return e(o),[t,n,i]}function d$(e){return typeof e=="function"}function h$(e,t){if(en.NODE_ENV!=="production"&&typeof t=="object")throw new Error(en.NODE_ENV==="production"?Ar(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]=A9(t),s;if(d$(e))s=()=>b9(e());else{const d=b9(e);s=()=>d}function f(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,x)=>{if(x)if(Kc(b)){const w=x(b,h);return w===void 0?b:w}else{if(au(b))return c9(b,T=>x(T,h));{const T=x(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 f.getInitialState=s,f}var p$=Symbol.for("rtk-slice-createasyncthunk");function m$(e,t){return`${e}/${t}`}function g$({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[p$];return function(o){const{name:s,reducerPath:f=s}=o;if(!s)throw new Error(en.NODE_ENV==="production"?Ar(11):"`name` is a required option for createSlice");typeof process<"u"&&en.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(v$()):o.reducers)||{},h=Object.keys(d),y={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},b={addCase(V,I){const P=typeof V=="string"?V:V.type;if(!P)throw new Error(en.NODE_ENV==="production"?Ar(12):"`context.addCase` cannot be called with an empty action type");if(P in y.sliceCaseReducersByType)throw new Error(en.NODE_ENV==="production"?Ar(13):"`context.addCase` cannot be called with two reducers for the same action type: "+P);return y.sliceCaseReducersByType[P]=I,b},addMatcher(V,I){return y.sliceMatchers.push({matcher:V,reducer:I}),b},exposeAction(V,I){return y.actionCreators[V]=I,b},exposeCaseReducer(V,I){return y.sliceCaseReducersByName[V]=I,b}};h.forEach(V=>{const I=d[V],P={reducerName:V,type:m$(s,V),createNotation:typeof o.reducers=="function"};S$(I)?E$(P,I,b,t):b$(P,I,b)});function x(){if(en.NODE_ENV!=="production"&&typeof o.extraReducers=="object")throw new Error(en.NODE_ENV==="production"?Ar(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[V={},I=[],P=void 0]=typeof o.extraReducers=="function"?A9(o.extraReducers):[o.extraReducers],Y={...V,...y.sliceCaseReducersByType};return h$(o.initialState,se=>{for(let ue in Y)se.addCase(ue,Y[ue]);for(let ue of y.sliceMatchers)se.addMatcher(ue.matcher,ue.reducer);for(let ue of I)se.addMatcher(ue.matcher,ue.reducer);P&&se.addDefaultCase(P)})}const T=V=>V,w=new Map,C=new WeakMap;let R;function _(V,I){return R||(R=x()),R(V,I)}function N(){return R||(R=x()),R.getInitialState()}function z(V,I=!1){function P(se){let ue=se[V];if(typeof ue>"u"){if(I)ue=ox(C,P,N);else if(en.NODE_ENV!=="production")throw new Error(en.NODE_ENV==="production"?Ar(15):"selectSlice returned undefined for an uninjected slice reducer")}return ue}function Y(se=T){const ue=ox(w,I,()=>new WeakMap);return ox(ue,se,()=>{const re={};for(const[le,$]of Object.entries(o.selectors??{}))re[le]=y$($,se,()=>ox(C,se,N),I);return re})}return{reducerPath:V,getSelectors:Y,get selectors(){return Y(P)},selectSlice:P}}const B={name:s,reducer:_,actions:y.actionCreators,caseReducers:y.sliceCaseReducersByName,getInitialState:N,...z(f),injectInto(V,{reducerPath:I,...P}={}){const Y=I??f;return V.inject({reducerPath:Y,reducer:_},P),{...B,...z(Y,!0)}}};return B}}function y$(e,t,n,i){function o(s,...f){let d=t(s);if(typeof d>"u"){if(i)d=n();else if(en.NODE_ENV!=="production")throw new Error(en.NODE_ENV==="production"?Ar(16):"selectState returned undefined for an uninjected slice reducer")}return e(d,...f)}return o.unwrapped=e,o}var Yu=g$();function v$(){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 b$({type:e,reducerName:t,createNotation:n},i,o){let s,f;if("reducer"in i){if(n&&!x$(i))throw new Error(en.NODE_ENV==="production"?Ar(17):"Please use the `create.preparedReducer` notation for prepared action creators with the `create` notation.");s=i.reducer,f=i.prepare}else s=i;o.addCase(e,s).exposeCaseReducer(t,s).exposeAction(t,f?g9(e,f):g9(e))}function S$(e){return e._reducerDefinitionType==="asyncThunk"}function x$(e){return e._reducerDefinitionType==="reducerWithPrepare"}function E$({type:e,reducerName:t},n,i,o){if(!o)throw new Error(en.NODE_ENV==="production"?Ar(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:f,pending:d,rejected:h,settled:y,options:b}=n,x=o(e,s,b);i.exposeAction(t,x),f&&i.addCase(x.fulfilled,f),d&&i.addCase(x.pending,d),h&&i.addCase(x.rejected,h),y&&i.addMatcher(x.settled,y),i.exposeCaseReducer(t,{fulfilled:f||sx,pending:d||sx,rejected:h||sx,settled:y||sx})}function sx(){}function Ar(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 Xu{constructor(t){j(this,"store");j(this,"disposables");this.store=t,this.disposables=new Array}dispose(){this.disposables.forEach(t=>t.dispose()),this.disposables.length=0}}const C9={value:"",index:-1},O9=Yu({name:"braille",initialState:C9,reducers:{update(e,t){return t.payload},reset(){return C9}}}),{update:w$,reset:T$}=O9.actions;class A$ extends Xu{constructor(n,i){super(n);j(this,"brailleService");this.brailleService=i,this.registerListener()}dispose(){super.dispose(),this.store.dispatch(T$())}registerListener(){this.disposables.push(this.brailleService.onChange(n=>{this.store.dispatch(w$(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 C$=O9.reducer,xv={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"}}},M9={messages:[],suggestions:[]};function R9(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=Yu({name:"chat",initialState:M9,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 M9}}}),{addUserMessage:O$,addSystemMessage:M$,addPendingResponse:R$,updateResponse:_$,updateError:D9,updateSuggestions:D$,updateWelcomeMessage:k$,reset:k9}=_9.actions;class N$ extends Xu{constructor(n,i,o){super(n);j(this,"chatService");j(this,"audioService");this.chatService=i,this.audioService=o,this.loadInitialMessage()}dispose(){super.dispose(),this.store.dispatch(k9())}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,f])=>f.enabled&&f.apiKey.trim().length>0).map(([s,f])=>{var b;const d=(b=xv[s])==null?void 0:b.labels,h=(d==null?void 0:d[f.version])||f.version;return`${R9(s)} (${h})`}),o=Object.entries(n).filter(([s,f])=>f.enabled&&f.apiKey.trim().length>0).map(([s,f])=>({modelKey:s,name:R9(s),version:f.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(M$({text:s,timestamp:n,modelSelections:o,isWelcomeMessage:!0}))}refreshInitialMessage(){this.store.dispatch(k9()),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(k$({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(),f=[{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"&&f.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"}),f}catch(n){return console.error("Error generating suggestions:",n),[]}}updateSuggestions(){const n=this.generateSuggestions();this.store.dispatch(D$(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(O$({text:n,timestamp:o}));const s=Object.keys(i.models).filter(f=>i.models[f].enabled&&i.models[f].apiKey.trim().length>0);await Promise.all(s.map(async f=>{const d=this.audioService.playWaitingTone();try{this.store.dispatch(R$({model:f,timestamp:o}));const h=i.models[f],y=i.customExpertise&&["basic","intermediate","advanced"].includes(i.customExpertise)?i.customExpertise:i.expertiseLevel,b=await this.chatService.sendMessage(f,{message:n,customInstruction:i.customInstruction,expertise:y,apiKey:h.apiKey});this.audioService.stop(d),b.error?this.store.dispatch(D9({model:f,error:b.error,timestamp:o})):(this.store.dispatch(_$({model:f,data:b.data,timestamp:o})),this.audioService.playCompleteTone(),this.updateSuggestions())}catch(h){this.audioService.stop(d),this.store.dispatch(D9({model:f,error:h instanceof Error?h.message:"Error processing request",timestamp:o}))}}))}}const z$=_9.reducer,N9=Yu({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:I$,hide:z9,updateSelectedIndex:p2,updateSearch:L$}=N9.actions;class B$ extends Xu{constructor(n,i){super(n);j(this,"commandPaletteService");this.commandPaletteService=i}dispose(){super.dispose(),this.store.dispatch(z9())}get state(){return this.store.getState().commandPalette}toggle(){this.state.visible?this.hide():this.show()}show(){const n=X7.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(I$({commands:i,scope:xn.TRACE})),this.commandPaletteService.toggle()}hide(){this.store.dispatch(z9()),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(p2(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(p2(o))}}moveToSearch(){this.store.dispatch(p2(-1))}selectCurrent(){const n=this.state;n.commands.length>0&&n.selectedIndex}updateSearch(n){this.store.dispatch(L$(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 V$=N9.reducer,I9=Yu({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:U$,showTooltip:P$,updateFocus:$$,clearFocus:j$}=I9.actions;class H$ extends Xu{constructor(n,i){super(n);j(this,"displayService");this.displayService=i,this.registerListeners(),this.store.dispatch(U$())}dispose(){this.store.dispatch(j$()),this.store.dispatch(P$(this.displayService.getInstruction())),super.dispose()}registerListeners(){this.disposables.push(this.displayService.onChange(n=>{this.store.dispatch($$(n.value))}))}get state(){return this.store.getState().display}}const q$=I9.reducer,L9=Yu({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:F$,hide:m2,updateSelectedIndex:B9}=L9.actions;class G$ extends Xu{constructor(n,i,o){super(n);j(this,"goToExtremaService");j(this,"context");this.goToExtremaService=i,this.context=o}dispose(){super.dispose(),this.store.dispatch(m2())}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(F$({targets:o,description:s})),this.goToExtremaService.toggle(n)}}hide(){this.store.dispatch(m2()),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(B9(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(B9(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(m2()),this.goToExtremaService.returnToTraceScope(),i.navigateToExtrema(n)}catch{this.goToExtremaService.returnToTraceScope()}else this.goToExtremaService.returnToTraceScope()}generateDescription(n){return`Navigate to statistical extremes 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 Y$=L9.reducer,V9={items:[]},U9=Yu({name:"help",initialState:V9,reducers:{setHelpItems(e,t){e.items=t.payload},reset(){return V9}}}),{setHelpItems:X$,reset:W$}=U9.actions;class Q$ extends Xu{constructor(n,i){super(n);j(this,"helpService");this.helpService=i}toggle(){const n=this.helpService.getMenuItems();this.store.dispatch(X$(n)),this.helpService.toggle()}dispose(){super.dispose(),this.store.dispatch(W$())}get state(){return this.store.getState().help}}const K$=U9.reducer,P9={value:""},$9=Yu({name:"review",initialState:P9,reducers:{update(e,t){e.value=t.payload},reset(){return P9}}}),{update:Z$,reset:J$}=$9.actions;class ej extends Xu{constructor(n,i){super(n);j(this,"reviewService");this.reviewService=i,this.registerListener()}dispose(){super.dispose(),this.store.dispatch(J$())}registerListener(){this.disposables.push(this.reviewService.onChange(n=>{this.store.dispatch(Z$(n.value))}))}get state(){return this.store.getState().review}toggle(n){this.reviewService.toggle(n)}}const tj=$9.reducer,j9=Yu({name:"rotorNavigation",initialState:{rotor_value:""},reducers:{show(){return{rotor_value:""}},setValue(e,t){e.rotor_value=t.payload}}}),{setValue:qm}=j9.actions;class nj extends Xu{constructor(n,i){super(n);j(this,"rotorService");this.rotorService=i}get state(){return this.store.getState().rotor}moveToNextNavUnit(){const n=this.rotorService.moveToNextRotorUnit();this.store.dispatch(qm(`${n}`))}moveToPrevNavUnit(){const n=this.rotorService.moveToPrevRotorUnit();this.store.dispatch(qm(`${n}`))}moveUp(){this.store.dispatch(qm(this.rotorService.moveUp()))}moveLeft(){this.store.dispatch(qm(this.rotorService.moveLeft()))}moveDown(){this.store.dispatch(qm(this.rotorService.moveDown()))}moveRight(){this.store.dispatch(qm(this.rotorService.moveRight()))}}const rj=j9.reducer,H9={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"}}}},q9=Yu({name:"settings",initialState:H9,reducers:{update:(e,t)=>({...e,...t.payload}),reset:()=>H9}}),{update:ux,reset:ij}=q9.actions;class aj extends Xu{constructor(n,i){super(n);j(this,"settingsService");this.settingsService=i,this.load()}dispose(){super.dispose(),this.store.dispatch(ij())}get state(){return this.store.getState().settings}load(){const n=this.settingsService.loadSettings();this.store.dispatch(ux(n))}saveAndClose(n){this.settingsService.saveSettings(n),this.store.dispatch(ux(n)),this.toggle()}saveSettings(n){this.settingsService.saveSettings(n),this.store.dispatch(ux(n))}reset(){const n=this.settingsService.resetSettings();this.store.dispatch(ux(n))}toggle(){this.settingsService.toggle()}}const oj=q9.reducer,F9={enabled:!0,announce:!0,value:"",message:null},G9=Yu({name:"text",initialState:F9,reducers:{update(e,t){e.value=t.payload},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 F9}}}),{update:g2,announceText:lj,toggle:sj,notify:uj,clearMessage:Y9,reset:cj}=G9.actions;class fj extends Xu{constructor(n,i,o,s){super(n);j(this,"textService");this.textService=i,this.registerListeners(o,s)}dispose(){super.dispose(),this.store.dispatch(cj())}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(sj(n))}update(n){const i=this.textService.format(n),o=this.store.getState().text.value;i===o?(this.store.dispatch(g2("⁣")),this.store.dispatch(Y9()),setTimeout(()=>{this.store.dispatch(g2(i))},100)):(this.store.dispatch(g2(i)),this.store.dispatch(Y9()))}notify(n){this.store.dispatch(uj(n))}setAnnounce(n){this.store.dispatch(lj(n))}}const dj=G9.reducer,ou=f$({reducer:{braille:C$,chat:z$,commandPalette:V$,display:q$,goToExtrema:Y$,help:K$,review:tj,settings:oj,text:dj,rotor:rj}}),Ub=class Ub{constructor(){j(this,"viewModels");this.viewModels=new Map}static get instance(){return this.registry||(this.registry=new Ub),this.registry}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(),Ub.registry=null}};j(Ub,"registry");let co=Ub;function hj(e){const t=mj(e),n=gj(e,t),i=document.querySelectorAll('g[id^="axes_"]').length;if(n.length===0)return Sj(e,i,t);const o=yj(n),s=vj(o),f=o[0].row,d=bj(n,e.length);return{visualOrderMap:s,topLeftRow:f,invertVertical:d,totalAxesCount:i,axesElements:t}}function pj(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 mj(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=pj(o.getHighlightElement(),o.getLayerSelector());t.set(`${n},${i}`,s)}return t}function gj(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 f=s.getBoundingClientRect();n.push({row:i,col:o,y:f.top,x:f.left})}}return n}function yj(e){return[...e].sort((t,n)=>t.y-n.y||t.x-n.x)}function vj(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 bj(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 Sj(e,t,n){const i=new Map;let o=1;for(let s=0;s<e.length;s++)for(let f=0;f<e[s].length;f++)i.set(`${s},${f}`,o++);return{visualOrderMap:i,topLeftRow:0,invertVertical:!1,totalAxesCount:t,axesElements:n}}class y2{constructor(t,n){j(this,"figure");j(this,"context");j(this,"displayService");j(this,"notificationService");j(this,"settingsService");j(this,"formatterService");j(this,"audioService");j(this,"brailleService");j(this,"goToExtremaService");j(this,"textService");j(this,"reviewService");j(this,"rotorNavigationService");j(this,"autoplayService");j(this,"highContrastService");j(this,"highlightService");j(this,"helpService");j(this,"chatService");j(this,"textViewModel");j(this,"brailleViewModel");j(this,"goToExtremaViewModel");j(this,"reviewViewModel");j(this,"displayViewModel");j(this,"helpViewModel");j(this,"chatViewModel");j(this,"settingsViewModel");j(this,"rotorNavigationViewModel");j(this,"commandPaletteViewModel");j(this,"keybinding");j(this,"mousebinding");j(this,"commandExecutor");this.figure=new uV(t),this.figure.applyLayout(hj(this.figure.subplots)),this.context=new BB(this.figure),this.notificationService=new nP,this.formatterService=new KU(t),this.textService=new sP(this.notificationService,this.formatterService),this.displayService=new QU(this.context,n,this.textService),this.settingsService=new oP(new lP,this.displayService),this.audioService=new mV(this.notificationService,this.settingsService,this.context.state),this.brailleService=new wV(this.context,this.notificationService,this.displayService),this.goToExtremaService=new ZU(this.context,this.displayService),this.reviewService=new rP(this.notificationService,this.displayService,this.textService),this.autoplayService=new bV(this.context,this.notificationService,this.settingsService),this.highContrastService=new eP(this.settingsService,this.notificationService,this.displayService,this.figure,this.context),this.highlightService=new tP(this.settingsService),this.helpService=new JU(this.context,this.displayService),this.chatService=new NV(this.displayService,this.textService,t),this.textViewModel=new fj(ou,this.textService,this.notificationService,this.autoplayService),this.brailleViewModel=new A$(ou,this.brailleService),this.goToExtremaViewModel=new G$(ou,this.goToExtremaService,this.context),this.reviewViewModel=new ej(ou,this.reviewService),this.displayViewModel=new H$(ou,this.displayService),this.helpViewModel=new Q$(ou,this.helpService),this.settingsViewModel=new aj(ou,this.settingsService),this.rotorNavigationService=new iP(this.context,this.textService),this.rotorNavigationViewModel=new nj(ou,this.rotorNavigationService),this.chatViewModel=new N$(ou,this.chatService,this.audioService);const i=new XU(this.context,this.displayService);this.commandPaletteViewModel=new B$(ou,i),this.keybinding=new FU({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 GU({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 YU({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(){this.notificationService.notify("⁣"),setTimeout(()=>{this.notificationService.notify(this.displayService.getInstruction(!1))},50)}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(),co.instance.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.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()}registerViewModels(){co.instance.register("text",this.textViewModel),co.instance.register("braille",this.brailleViewModel),co.instance.register("goToExtrema",this.goToExtremaViewModel),co.instance.register("review",this.reviewViewModel),co.instance.register("display",this.displayViewModel),co.instance.register("help",this.helpViewModel),co.instance.register("chat",this.chatViewModel),co.instance.register("settings",this.settingsViewModel),co.instance.register("commandPalette",this.commandPaletteViewModel),co.instance.register("commandExecutor",this.commandExecutor)}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)}))}))}}var G=Od();const ce=pl(G),v2=Fu({__proto__:null,default:ce},[G]);var cx={exports:{}},b2={};/**
 * @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 X9;function xj(){if(X9)return b2;X9=1;var e=Od();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,f=e.useMemo,d=e.useDebugValue;return b2.useSyncExternalStoreWithSelector=function(h,y,b,x,T){var w=o(null);if(w.current===null){var C={hasValue:!1,value:null};w.current=C}else C=w.current;w=f(function(){function _(I){if(!N){if(N=!0,z=I,I=x(I),T!==void 0&&C.hasValue){var P=C.value;if(T(P,I))return B=P}return B=I}if(P=B,n(z,I))return P;var Y=x(I);return T!==void 0&&T(P,Y)?(z=I,P):(z=I,B=Y)}var N=!1,z,B,V=b===void 0?null:b;return[function(){return _(y())},V===null?void 0:function(){return _(V())}]},[y,b,x,T]);var R=i(h,w[0],w[1]);return s(function(){C.hasValue=!0,C.value=R},[R]),d(R),R},b2}var S2={},W9;function Ej(){if(W9)return S2;W9=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=Od(),i=typeof Object.is=="function"?Object.is:t,o=n.useSyncExternalStore,s=n.useRef,f=n.useEffect,d=n.useMemo,h=n.useDebugValue;S2.useSyncExternalStoreWithSelector=function(y,b,x,T,w){var C=s(null);if(C.current===null){var R={hasValue:!1,value:null};C.current=R}else R=C.current;C=d(function(){function N(P){if(!z){if(z=!0,B=P,P=T(P),w!==void 0&&R.hasValue){var Y=R.value;if(w(Y,P))return V=Y}return V=P}if(Y=V,i(B,P))return Y;var se=T(P);return w!==void 0&&w(Y,se)?(B=P,Y):(B=P,V=se)}var z=!1,B,V,I=x===void 0?null:x;return[function(){return N(b())},I===null?void 0:function(){return N(I())}]},[b,x,T,w]);var _=o(y,C[0],C[1]);return f(function(){R.hasValue=!0,R.value=_},[_]),h(_),_},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),S2}var Q9;function wj(){if(Q9)return cx.exports;Q9=1;var e={};return e.NODE_ENV==="production"?cx.exports=xj():cx.exports=Ej(),cx.exports}var Tj=wj(),Ev={};function Aj(e){e()}function Cj(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Aj(()=>{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 K9={notify(){},get:()=>[]};function Oj(e,t){let n,i=K9,o=0,s=!1;function f(R){b();const _=i.subscribe(R);let N=!1;return()=>{N||(N=!0,_(),x())}}function d(){i.notify()}function h(){C.onStateChange&&C.onStateChange()}function y(){return s}function b(){o++,n||(n=e.subscribe(h),i=Cj())}function x(){o--,n&&o===0&&(n(),n=void 0,i.clear(),i=K9)}function T(){s||(s=!0,b())}function w(){s&&(s=!1,x())}const C={addNestedSub:f,notifyNestedSubs:d,handleChangeWrapper:h,isSubscribed:y,trySubscribe:T,tryUnsubscribe:w,getListeners:()=>i};return C}var Mj=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Rj=Mj(),_j=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Dj=_j(),kj=()=>Rj||Dj?G.useLayoutEffect:G.useEffect,Nj=kj(),x2=Symbol.for("react-redux-context"),E2=typeof globalThis<"u"?globalThis:{};function zj(){if(!G.createContext)return{};const e=E2[x2]??(E2[x2]=new Map);let t=e.get(G.createContext);return t||(t=G.createContext(null),Ev.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(G.createContext,t)),t}var fx=zj();function Ij(e){const{children:t,context:n,serverState:i,store:o}=e,s=G.useMemo(()=>{const h=Oj(o),y={store:o,subscription:h,getServerState:i?()=>i:void 0};if(Ev.NODE_ENV==="production")return y;{const{identityFunctionCheck:b="once",stabilityCheck:x="once"}=e;return Object.assign(y,{stabilityCheck:x,identityFunctionCheck:b})}},[o,i]),f=G.useMemo(()=>o.getState(),[o]);Nj(()=>{const{subscription:h}=s;return h.onStateChange=h.notifyNestedSubs,h.trySubscribe(),f!==o.getState()&&h.notifyNestedSubs(),()=>{h.tryUnsubscribe(),h.onStateChange=void 0}},[s,f]);const d=n||fx;return G.createElement(d.Provider,{value:s},t)}var Lj=Ij;function Z9(e=fx){return function(){const n=G.useContext(e);if(Ev.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 Bj=Z9(),Vj=(e,t)=>e===t;function Uj(e=fx){const t=e===fx?Bj:Z9(e),n=(i,o={})=>{const{equalityFn:s=Vj}=typeof o=="function"?{equalityFn:o}:o;if(Ev.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 f=t(),{store:d,subscription:h,getServerState:y}=f,b=G.useRef(!0),x=G.useCallback({[i.name](w){const C=i(w);if(Ev.NODE_ENV!=="production"){const{devModeChecks:R={}}=typeof o=="function"?{}:o,{identityFunctionCheck:_,stabilityCheck:N}=f,{identityFunctionCheck:z,stabilityCheck:B}={stabilityCheck:N,identityFunctionCheck:_,...R};if(B==="always"||B==="once"&&b.current){const V=i(w);if(!s(C,V)){let I;try{throw new Error}catch(P){({stack:I}=P)}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:V,stack:I})}}if((z==="always"||z==="once"&&b.current)&&C===w){let V;try{throw new Error}catch(I){({stack:V}=I)}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:V})}b.current&&(b.current=!1)}return C}}[i.name],[i]),T=Tj.useSyncExternalStoreWithSelector(h.addNestedSub,d.getState,y||d.getState,x,s);return G.useDebugValue(T),T};return Object.assign(n,{withTypes:()=>n}),n}var Pj=Uj();const $j=Pj;function Wu(e){return co.instance.get(e)}function lu(e){return $j(t=>t[e])}const jj=()=>{const e=G.useId(),t=Wu("braille"),{value:n,index:i}=lu("braille"),o=G.useRef(null),s=G.useRef(i),f=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(Bo.SELECTION_CHANGE,f),()=>{d.removeEventListener(Bo.SELECTION_CHANGE,f)}},[]),G.useEffect(()=>{const d=o.current;d&&(d.value=n,d.selectionStart=i,d.selectionEnd=i,d.focus(),s.current=i)},[n,i]),ce.createElement("div",{id:e},ce.createElement("textarea",{id:`${ge.BRAILLE_TEXT_AREA}-${e}`,ref:o,defaultValue:n,autoCapitalize:"off",rows:5,cols:50}))},J9=e=>e,eO=(()=>{let e=J9;return{configure(t){e=t},generate(t){return e(t)},reset(){e=J9}}})();function Jc(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 Hj={};function et(e){if(typeof e!="string")throw new Error(Hj.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Jc(7));return e.charAt(0).toUpperCase()+e.slice(1)}function w2(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}var dx={exports:{}},hx={exports:{}},lr={};/** @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 tO;function qj(){if(tO)return lr;tO=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,f=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,x=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,R=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,N=e?Symbol.for("react.responder"):60118,z=e?Symbol.for("react.scope"):60119;function B(I){if(typeof I=="object"&&I!==null){var P=I.$$typeof;switch(P){case t:switch(I=I.type,I){case h:case y:case i:case s:case o:case x:return I;default:switch(I=I&&I.$$typeof,I){case d:case b:case C:case w:case f:return I;default:return P}}case n:return P}}}function V(I){return B(I)===y}return lr.AsyncMode=h,lr.ConcurrentMode=y,lr.ContextConsumer=d,lr.ContextProvider=f,lr.Element=t,lr.ForwardRef=b,lr.Fragment=i,lr.Lazy=C,lr.Memo=w,lr.Portal=n,lr.Profiler=s,lr.StrictMode=o,lr.Suspense=x,lr.isAsyncMode=function(I){return V(I)||B(I)===h},lr.isConcurrentMode=V,lr.isContextConsumer=function(I){return B(I)===d},lr.isContextProvider=function(I){return B(I)===f},lr.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===t},lr.isForwardRef=function(I){return B(I)===b},lr.isFragment=function(I){return B(I)===i},lr.isLazy=function(I){return B(I)===C},lr.isMemo=function(I){return B(I)===w},lr.isPortal=function(I){return B(I)===n},lr.isProfiler=function(I){return B(I)===s},lr.isStrictMode=function(I){return B(I)===o},lr.isSuspense=function(I){return B(I)===x},lr.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===i||I===y||I===s||I===o||I===x||I===T||typeof I=="object"&&I!==null&&(I.$$typeof===C||I.$$typeof===w||I.$$typeof===f||I.$$typeof===d||I.$$typeof===b||I.$$typeof===_||I.$$typeof===N||I.$$typeof===z||I.$$typeof===R)},lr.typeOf=B,lr}var sr={},nO;function Fj(){if(nO)return sr;nO=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,f=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,x=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,R=t?Symbol.for("react.lazy"):60116,_=t?Symbol.for("react.block"):60121,N=t?Symbol.for("react.fundamental"):60117,z=t?Symbol.for("react.responder"):60118,B=t?Symbol.for("react.scope"):60119;function V(_e){return typeof _e=="string"||typeof _e=="function"||_e===o||_e===b||_e===f||_e===s||_e===T||_e===w||typeof _e=="object"&&_e!==null&&(_e.$$typeof===R||_e.$$typeof===C||_e.$$typeof===d||_e.$$typeof===h||_e.$$typeof===x||_e.$$typeof===N||_e.$$typeof===z||_e.$$typeof===B||_e.$$typeof===_)}function I(_e){if(typeof _e=="object"&&_e!==null){var ut=_e.$$typeof;switch(ut){case n:var Ot=_e.type;switch(Ot){case y:case b:case o:case f:case s:case T:return Ot;default:var Qt=Ot&&Ot.$$typeof;switch(Qt){case h:case x:case R:case C:case d:return Qt;default:return ut}}case i:return ut}}}var P=y,Y=b,se=h,ue=d,re=n,le=x,$=o,oe=R,W=C,ie=i,K=f,ae=s,pe=T,Te=!1;function ee(_e){return Te||(Te=!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.")),q(_e)||I(_e)===y}function q(_e){return I(_e)===b}function J(_e){return I(_e)===h}function F(_e){return I(_e)===d}function Re(_e){return typeof _e=="object"&&_e!==null&&_e.$$typeof===n}function be(_e){return I(_e)===x}function De(_e){return I(_e)===o}function Pe(_e){return I(_e)===R}function Fe(_e){return I(_e)===C}function Ze(_e){return I(_e)===i}function Qe(_e){return I(_e)===f}function tt(_e){return I(_e)===s}function $e(_e){return I(_e)===T}sr.AsyncMode=P,sr.ConcurrentMode=Y,sr.ContextConsumer=se,sr.ContextProvider=ue,sr.Element=re,sr.ForwardRef=le,sr.Fragment=$,sr.Lazy=oe,sr.Memo=W,sr.Portal=ie,sr.Profiler=K,sr.StrictMode=ae,sr.Suspense=pe,sr.isAsyncMode=ee,sr.isConcurrentMode=q,sr.isContextConsumer=J,sr.isContextProvider=F,sr.isElement=Re,sr.isForwardRef=be,sr.isFragment=De,sr.isLazy=Pe,sr.isMemo=Fe,sr.isPortal=Ze,sr.isProfiler=Qe,sr.isStrictMode=tt,sr.isSuspense=$e,sr.isValidElementType=V,sr.typeOf=I})(),sr}var rO;function iO(){if(rO)return hx.exports;rO=1;var e={};return e.NODE_ENV==="production"?hx.exports=qj():hx.exports=Fj(),hx.exports}/*
object-assign
(c) Sindre Sorhus
@license MIT
*/var T2,aO;function Gj(){if(aO)return T2;aO=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 f={},d=0;d<10;d++)f["_"+String.fromCharCode(d)]=d;var h=Object.getOwnPropertyNames(f).map(function(b){return f[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 T2=o()?Object.assign:function(s,f){for(var d,h=i(s),y,b=1;b<arguments.length;b++){d=Object(arguments[b]);for(var x in d)t.call(d,x)&&(h[x]=d[x]);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},T2}var A2,oO;function C2(){if(oO)return A2;oO=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return A2=e,A2}var O2,lO;function sO(){return lO||(lO=1,O2=Function.call.bind(Object.prototype.hasOwnProperty)),O2}var M2,uO;function Yj(){if(uO)return M2;uO=1;var e={},t=function(){};if(e.NODE_ENV!=="production"){var n=C2(),i={},o=sO();t=function(f){var d="Warning: "+f;typeof console<"u"&&console.error(d);try{throw new Error(d)}catch{}}}function s(f,d,h,y,b){if(e.NODE_ENV!=="production"){for(var x in f)if(o(f,x)){var T;try{if(typeof f[x]!="function"){var w=Error((y||"React class")+": "+h+" type `"+x+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof f[x]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw w.name="Invariant Violation",w}T=f[x](d,x,y,h,null,n)}catch(R){T=R}if(T&&!(T instanceof Error)&&t((y||"React class")+": type specification of "+h+" `"+x+"` 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={})},M2=s,M2}var R2,cO;function Xj(){if(cO)return R2;cO=1;var e={},t=iO(),n=Gj(),i=C2(),o=sO(),s=Yj(),f=function(){};e.NODE_ENV!=="production"&&(f=function(h){var y="Warning: "+h;typeof console<"u"&&console.error(y);try{throw new Error(y)}catch{}});function d(){return null}return R2=function(h,y){var b=typeof Symbol=="function"&&Symbol.iterator,x="@@iterator";function T(q){var J=q&&(b&&q[b]||q[x]);if(typeof J=="function")return J}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:B(),arrayOf:V,element:I(),elementType:P(),instanceOf:Y,node:le(),objectOf:ue,oneOf:se,oneOfType:re,shape:oe,exact:W};function R(q,J){return q===J?q!==0||1/q===1/J:q!==q&&J!==J}function _(q,J){this.message=q,this.data=J&&typeof J=="object"?J:{},this.stack=""}_.prototype=Error.prototype;function N(q){if(e.NODE_ENV!=="production")var J={},F=0;function Re(De,Pe,Fe,Ze,Qe,tt,$e){if(Ze=Ze||w,tt=tt||Fe,$e!==i){if(y){var _e=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 _e.name="Invariant Violation",_e}else if(e.NODE_ENV!=="production"&&typeof console<"u"){var ut=Ze+":"+Fe;!J[ut]&&F<3&&(f("You are manually calling a React.PropTypes validation function for the `"+tt+"` prop on `"+Ze+"`. 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."),J[ut]=!0,F++)}}return Pe[Fe]==null?De?Pe[Fe]===null?new _("The "+Qe+" `"+tt+"` is marked as required "+("in `"+Ze+"`, but its value is `null`.")):new _("The "+Qe+" `"+tt+"` is marked as required in "+("`"+Ze+"`, but its value is `undefined`.")):null:q(Pe,Fe,Ze,Qe,tt)}var be=Re.bind(null,!1);return be.isRequired=Re.bind(null,!0),be}function z(q){function J(F,Re,be,De,Pe,Fe){var Ze=F[Re],Qe=ae(Ze);if(Qe!==q){var tt=pe(Ze);return new _("Invalid "+De+" `"+Pe+"` of type "+("`"+tt+"` supplied to `"+be+"`, expected ")+("`"+q+"`."),{expectedType:q})}return null}return N(J)}function B(){return N(d)}function V(q){function J(F,Re,be,De,Pe){if(typeof q!="function")return new _("Property `"+Pe+"` of component `"+be+"` has invalid PropType notation inside arrayOf.");var Fe=F[Re];if(!Array.isArray(Fe)){var Ze=ae(Fe);return new _("Invalid "+De+" `"+Pe+"` of type "+("`"+Ze+"` supplied to `"+be+"`, expected an array."))}for(var Qe=0;Qe<Fe.length;Qe++){var tt=q(Fe,Qe,be,De,Pe+"["+Qe+"]",i);if(tt instanceof Error)return tt}return null}return N(J)}function I(){function q(J,F,Re,be,De){var Pe=J[F];if(!h(Pe)){var Fe=ae(Pe);return new _("Invalid "+be+" `"+De+"` of type "+("`"+Fe+"` supplied to `"+Re+"`, expected a single ReactElement."))}return null}return N(q)}function P(){function q(J,F,Re,be,De){var Pe=J[F];if(!t.isValidElementType(Pe)){var Fe=ae(Pe);return new _("Invalid "+be+" `"+De+"` of type "+("`"+Fe+"` supplied to `"+Re+"`, expected a single ReactElement type."))}return null}return N(q)}function Y(q){function J(F,Re,be,De,Pe){if(!(F[Re]instanceof q)){var Fe=q.name||w,Ze=ee(F[Re]);return new _("Invalid "+De+" `"+Pe+"` of type "+("`"+Ze+"` supplied to `"+be+"`, expected ")+("instance of `"+Fe+"`."))}return null}return N(J)}function se(q){if(!Array.isArray(q))return e.NODE_ENV!=="production"&&(arguments.length>1?f("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])."):f("Invalid argument supplied to oneOf, expected an array.")),d;function J(F,Re,be,De,Pe){for(var Fe=F[Re],Ze=0;Ze<q.length;Ze++)if(R(Fe,q[Ze]))return null;var Qe=JSON.stringify(q,function($e,_e){var ut=pe(_e);return ut==="symbol"?String(_e):_e});return new _("Invalid "+De+" `"+Pe+"` of value `"+String(Fe)+"` "+("supplied to `"+be+"`, expected one of "+Qe+"."))}return N(J)}function ue(q){function J(F,Re,be,De,Pe){if(typeof q!="function")return new _("Property `"+Pe+"` of component `"+be+"` has invalid PropType notation inside objectOf.");var Fe=F[Re],Ze=ae(Fe);if(Ze!=="object")return new _("Invalid "+De+" `"+Pe+"` of type "+("`"+Ze+"` supplied to `"+be+"`, expected an object."));for(var Qe in Fe)if(o(Fe,Qe)){var tt=q(Fe,Qe,be,De,Pe+"."+Qe,i);if(tt instanceof Error)return tt}return null}return N(J)}function re(q){if(!Array.isArray(q))return e.NODE_ENV!=="production"&&f("Invalid argument supplied to oneOfType, expected an instance of array."),d;for(var J=0;J<q.length;J++){var F=q[J];if(typeof F!="function")return f("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Te(F)+" at index "+J+"."),d}function Re(be,De,Pe,Fe,Ze){for(var Qe=[],tt=0;tt<q.length;tt++){var $e=q[tt],_e=$e(be,De,Pe,Fe,Ze,i);if(_e==null)return null;_e.data&&o(_e.data,"expectedType")&&Qe.push(_e.data.expectedType)}var ut=Qe.length>0?", expected one of type ["+Qe.join(", ")+"]":"";return new _("Invalid "+Fe+" `"+Ze+"` supplied to "+("`"+Pe+"`"+ut+"."))}return N(Re)}function le(){function q(J,F,Re,be,De){return ie(J[F])?null:new _("Invalid "+be+" `"+De+"` supplied to "+("`"+Re+"`, expected a ReactNode."))}return N(q)}function $(q,J,F,Re,be){return new _((q||"React class")+": "+J+" type `"+F+"."+Re+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+be+"`.")}function oe(q){function J(F,Re,be,De,Pe){var Fe=F[Re],Ze=ae(Fe);if(Ze!=="object")return new _("Invalid "+De+" `"+Pe+"` of type `"+Ze+"` "+("supplied to `"+be+"`, expected `object`."));for(var Qe in q){var tt=q[Qe];if(typeof tt!="function")return $(be,De,Pe,Qe,pe(tt));var $e=tt(Fe,Qe,be,De,Pe+"."+Qe,i);if($e)return $e}return null}return N(J)}function W(q){function J(F,Re,be,De,Pe){var Fe=F[Re],Ze=ae(Fe);if(Ze!=="object")return new _("Invalid "+De+" `"+Pe+"` of type `"+Ze+"` "+("supplied to `"+be+"`, expected `object`."));var Qe=n({},F[Re],q);for(var tt in Qe){var $e=q[tt];if(o(q,tt)&&typeof $e!="function")return $(be,De,Pe,tt,pe($e));if(!$e)return new _("Invalid "+De+" `"+Pe+"` key `"+tt+"` supplied to `"+be+"`.\nBad object: "+JSON.stringify(F[Re],null,"  ")+`
Valid keys: `+JSON.stringify(Object.keys(q),null,"  "));var _e=$e(Fe,tt,be,De,Pe+"."+tt,i);if(_e)return _e}return null}return N(J)}function ie(q){switch(typeof q){case"number":case"string":case"undefined":return!0;case"boolean":return!q;case"object":if(Array.isArray(q))return q.every(ie);if(q===null||h(q))return!0;var J=T(q);if(J){var F=J.call(q),Re;if(J!==q.entries){for(;!(Re=F.next()).done;)if(!ie(Re.value))return!1}else for(;!(Re=F.next()).done;){var be=Re.value;if(be&&!ie(be[1]))return!1}}else return!1;return!0;default:return!1}}function K(q,J){return q==="symbol"?!0:J?J["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&J instanceof Symbol:!1}function ae(q){var J=typeof q;return Array.isArray(q)?"array":q instanceof RegExp?"object":K(J,q)?"symbol":J}function pe(q){if(typeof q>"u"||q===null)return""+q;var J=ae(q);if(J==="object"){if(q instanceof Date)return"date";if(q instanceof RegExp)return"regexp"}return J}function Te(q){var J=pe(q);switch(J){case"array":case"object":return"an "+J;case"boolean":case"date":case"regexp":return"a "+J;default:return J}}function ee(q){return!q.constructor||!q.constructor.name?w:q.constructor.name}return C.checkPropTypes=s,C.resetWarningCache=s.resetWarningCache,C.PropTypes=C,C},R2}var _2,fO;function Wj(){if(fO)return _2;fO=1;var e=C2();function t(){}function n(){}return n.resetWarningCache=t,_2=function(){function i(f,d,h,y,b,x){if(x!==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},_2}var dO;function Qj(){if(dO)return dx.exports;dO=1;var e={};if(e.NODE_ENV!=="production"){var t=iO(),n=!0;dx.exports=Xj()(t.isElement,n)}else dx.exports=Wj()();return dx.exports}var Kj=Qj();const p=pl(Kj);function hO(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=hO(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function Et(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=hO(e))&&(i&&(i+=" "),i+=t);return i}function tn(e,t,n=void 0){const i={};for(const o in e){const s=e[o];let f="",d=!0;for(let h=0;h<s.length;h+=1){const y=s[h];y&&(f+=(d===!0?"":" ")+t(y),d=!1,n&&n[y]&&(f+=" "+n[y]))}i[o]=f}return i}var px={exports:{}},vr={};/**
 * @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 pO;function Zj(){if(pO)return vr;pO=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"),f=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"),x=Symbol.for("react.lazy"),T=Symbol.for("react.view_transition"),w=Symbol.for("react.client.reference");function C(R){if(typeof R=="object"&&R!==null){var _=R.$$typeof;switch(_){case e:switch(R=R.type,R){case n:case o:case i:case h:case y:case T:return R;default:switch(R=R&&R.$$typeof,R){case f:case d:case x:case b:return R;case s:return R;default:return _}}case t:return _}}}return vr.ContextConsumer=s,vr.ContextProvider=f,vr.Element=e,vr.ForwardRef=d,vr.Fragment=n,vr.Lazy=x,vr.Memo=b,vr.Portal=t,vr.Profiler=o,vr.StrictMode=i,vr.Suspense=h,vr.SuspenseList=y,vr.isContextConsumer=function(R){return C(R)===s},vr.isContextProvider=function(R){return C(R)===f},vr.isElement=function(R){return typeof R=="object"&&R!==null&&R.$$typeof===e},vr.isForwardRef=function(R){return C(R)===d},vr.isFragment=function(R){return C(R)===n},vr.isLazy=function(R){return C(R)===x},vr.isMemo=function(R){return C(R)===b},vr.isPortal=function(R){return C(R)===t},vr.isProfiler=function(R){return C(R)===o},vr.isStrictMode=function(R){return C(R)===i},vr.isSuspense=function(R){return C(R)===h},vr.isSuspenseList=function(R){return C(R)===y},vr.isValidElementType=function(R){return typeof R=="string"||typeof R=="function"||R===n||R===o||R===i||R===h||R===y||typeof R=="object"&&R!==null&&(R.$$typeof===x||R.$$typeof===b||R.$$typeof===f||R.$$typeof===s||R.$$typeof===d||R.$$typeof===w||R.getModuleId!==void 0)},vr.typeOf=C,vr}var br={},mO;function Jj(){if(mO)return br;mO=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 N=_.$$typeof;switch(N){case n:switch(_=_.type,_){case o:case f:case s:case b:case x:case C:return _;default:switch(_=_&&_.$$typeof,_){case h:case y:case w:case T:return _;case d:return _;default:return N}}case i:return N}}}var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),f=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"),x=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),C=Symbol.for("react.view_transition"),R=Symbol.for("react.client.reference");br.ContextConsumer=d,br.ContextProvider=h,br.Element=n,br.ForwardRef=y,br.Fragment=o,br.Lazy=w,br.Memo=T,br.Portal=i,br.Profiler=f,br.StrictMode=s,br.Suspense=b,br.SuspenseList=x,br.isContextConsumer=function(_){return t(_)===d},br.isContextProvider=function(_){return t(_)===h},br.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===n},br.isForwardRef=function(_){return t(_)===y},br.isFragment=function(_){return t(_)===o},br.isLazy=function(_){return t(_)===w},br.isMemo=function(_){return t(_)===T},br.isPortal=function(_){return t(_)===i},br.isProfiler=function(_){return t(_)===f},br.isStrictMode=function(_){return t(_)===s},br.isSuspense=function(_){return t(_)===b},br.isSuspenseList=function(_){return t(_)===x},br.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===o||_===f||_===s||_===b||_===x||typeof _=="object"&&_!==null&&(_.$$typeof===w||_.$$typeof===T||_.$$typeof===h||_.$$typeof===d||_.$$typeof===y||_.$$typeof===R||_.getModuleId!==void 0)},br.typeOf=t})(),br}var gO;function eH(){if(gO)return px.exports;gO=1;var e={};return e.NODE_ENV==="production"?px.exports=Zj():px.exports=Jj(),px.exports}var ph=eH();function Qu(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 yO(e){if(G.isValidElement(e)||ph.isValidElementType(e)||!Qu(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=yO(e[n])}),t}function Ua(e,t,n={clone:!0}){const i=n.clone?{...e}:e;return Qu(e)&&Qu(t)&&Object.keys(t).forEach(o=>{G.isValidElement(t[o])||ph.isValidElementType(t[o])?i[o]=t[o]:Qu(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Qu(e[o])?i[o]=Ua(e[o],t[o],n):n.clone?i[o]=Qu(t[o])?yO(t[o]):t[o]:i[o]=t[o]}),i}function wv(e,t){return t?Ua(e,t,{clone:!1}):e}var tH={};const _d=tH.NODE_ENV!=="production"?p.oneOfType([p.number,p.string,p.object,p.array]):{};var nH={};function vO(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(i=>i.startsWith("@container")).sort((i,o)=>{var f,d;const s=/min-width:\s*([0-9.]+)/;return+(((f=i.match(s))==null?void 0:f[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 rH(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function iH(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n){if(nH.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,f)=>s.replace("@media",f?`@container ${f}`:"@container");function n(s,f){s.up=(...d)=>t(e.breakpoints.up(...d),f),s.down=(...d)=>t(e.breakpoints.down(...d),f),s.between=(...d)=>t(e.breakpoints.between(...d),f),s.only=(...d)=>t(e.breakpoints.only(...d),f),s.not=(...d)=>{const h=t(e.breakpoints.not(...d),f);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 mx={xs:0,sm:600,md:900,lg:1200,xl:1536},bO={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${mx[e]}px)`},oH={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:mx[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function ef(e,t,n){const i=e.theme||{};if(Array.isArray(t)){const s=i.breakpoints||bO;return t.reduce((f,d,h)=>(f[s.up(s.keys[h])]=n(t[h]),f),{})}if(typeof t=="object"){const s=i.breakpoints||bO;return Object.keys(t).reduce((f,d)=>{if(rH(s.keys,d)){const h=iH(i.containerQueries?i:oH,d);h&&(f[h]=n(t[d],d))}else if(Object.keys(s.values||mx).includes(d)){const h=s.up(d);f[h]=n(t[d],d)}else{const h=d;f[h]=t[h]}return f},{})}return n(t)}function lH(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((i,o)=>{const s=e.up(o);return i[s]={},i},{}))||{}}function SO(e,t){return e.reduce((n,i)=>{const o=n[i];return(!o||Object.keys(o).length===0)&&delete n[i],n},t)}var sH={};function gx(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 yx(e,t,n,i=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||i:o=gx(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=f=>{if(f[t]==null)return null;const d=f[t],h=f.theme,y=gx(h,i)||{};return ef(f,d,x=>{let T=yx(y,o,x);return x===T&&typeof x=="string"&&(T=yx(y,o,`${t}${x==="default"?"":et(x)}`,x)),n===!1?T:{[n]:T}})};return s.propTypes=sH.NODE_ENV!=="production"?{[t]:_d}:{},s.filterProps=[t],s}function uH(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var Fm={};const cH={m:"margin",p:"padding"},fH={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},xO={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},dH=uH(e=>{if(e.length>2)if(xO[e])e=xO[e];else return[e];const[t,n]=e.split(""),i=cH[t],o=fH[n]||"";return Array.isArray(o)?o.map(s=>i+s):[i+o]}),vx=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],bx=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],hH=[...vx,...bx];function Tv(e,t,n,i){const o=gx(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?s=>typeof s=="string"?s:(Fm.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 f=Math.abs(s);Fm.NODE_ENV!=="production"&&(Number.isInteger(f)?f>o.length-1&&console.error([`MUI: The value provided (${f}) overflows.`,`The supported values are: ${JSON.stringify(o)}.`,`${f} > ${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[f];return s>=0?d:typeof d=="number"?-d:typeof d=="string"&&d.startsWith("var(")?`calc(-1 * ${d})`:`-${d}`}:typeof o=="function"?o:(Fm.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 D2(e){return Tv(e,"spacing",8,"spacing")}function Av(e,t){return typeof t=="string"||t==null?t:e(t)}function pH(e,t){return n=>e.reduce((i,o)=>(i[o]=Av(t,n),i),{})}function mH(e,t,n,i){if(!t.includes(n))return null;const o=dH(n),s=pH(o,i),f=e[n];return ef(e,f,s)}function EO(e,t){const n=D2(e.theme);return Object.keys(e).map(i=>mH(e,t,i,n)).reduce(wv,{})}function ci(e){return EO(e,vx)}ci.propTypes=Fm.NODE_ENV!=="production"?vx.reduce((e,t)=>(e[t]=_d,e),{}):{},ci.filterProps=vx;function fi(e){return EO(e,bx)}fi.propTypes=Fm.NODE_ENV!=="production"?bx.reduce((e,t)=>(e[t]=_d,e),{}):{},fi.filterProps=bx,Fm.NODE_ENV!=="production"&&hH.reduce((e,t)=>(e[t]=_d,e),{});var gH={};function Sx(...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]?wv(o,t[s](i)):o,{});return n.propTypes=gH.NODE_ENV!=="production"?e.reduce((i,o)=>Object.assign(i,o.propTypes),{}):{},n.filterProps=e.reduce((i,o)=>i.concat(o.filterProps),[]),n}var yH={};function Gl(e){return typeof e!="number"?e:`${e}px solid`}function Yl(e,t){return bi({prop:e,themeKey:"borders",transform:t})}const vH=Yl("border",Gl),bH=Yl("borderTop",Gl),SH=Yl("borderRight",Gl),xH=Yl("borderBottom",Gl),EH=Yl("borderLeft",Gl),wH=Yl("borderColor"),TH=Yl("borderTopColor"),AH=Yl("borderRightColor"),CH=Yl("borderBottomColor"),OH=Yl("borderLeftColor"),MH=Yl("outline",Gl),RH=Yl("outlineColor"),xx=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Tv(e.theme,"shape.borderRadius",4,"borderRadius"),n=i=>({borderRadius:Av(t,i)});return ef(e,e.borderRadius,n)}return null};xx.propTypes=yH.NODE_ENV!=="production"?{borderRadius:_d}:{},xx.filterProps=["borderRadius"],Sx(vH,bH,SH,xH,EH,wH,TH,AH,CH,OH,xx,MH,RH);var k2={};const Ex=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Tv(e.theme,"spacing",8,"gap"),n=i=>({gap:Av(t,i)});return ef(e,e.gap,n)}return null};Ex.propTypes=k2.NODE_ENV!=="production"?{gap:_d}:{},Ex.filterProps=["gap"];const wx=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Tv(e.theme,"spacing",8,"columnGap"),n=i=>({columnGap:Av(t,i)});return ef(e,e.columnGap,n)}return null};wx.propTypes=k2.NODE_ENV!=="production"?{columnGap:_d}:{},wx.filterProps=["columnGap"];const Tx=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Tv(e.theme,"spacing",8,"rowGap"),n=i=>({rowGap:Av(t,i)});return ef(e,e.rowGap,n)}return null};Tx.propTypes=k2.NODE_ENV!=="production"?{rowGap:_d}:{},Tx.filterProps=["rowGap"];const _H=bi({prop:"gridColumn"}),DH=bi({prop:"gridRow"}),kH=bi({prop:"gridAutoFlow"}),NH=bi({prop:"gridAutoColumns"}),zH=bi({prop:"gridAutoRows"}),IH=bi({prop:"gridTemplateColumns"}),LH=bi({prop:"gridTemplateRows"}),BH=bi({prop:"gridTemplateAreas"}),VH=bi({prop:"gridArea"});Sx(Ex,wx,Tx,_H,DH,kH,NH,zH,IH,LH,BH,VH);function Gm(e,t){return t==="grey"?t:e}const UH=bi({prop:"color",themeKey:"palette",transform:Gm}),PH=bi({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Gm}),$H=bi({prop:"backgroundColor",themeKey:"palette",transform:Gm});Sx(UH,PH,$H);function yl(e){return e<=1&&e!==0?`${e*100}%`:e}const jH=bi({prop:"width",transform:yl}),N2=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,s,f,d,h;const i=((f=(s=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:s.values)==null?void 0:f[n])||mx[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 ef(e,e.maxWidth,t)}return null};N2.filterProps=["maxWidth"];const HH=bi({prop:"minWidth",transform:yl}),qH=bi({prop:"height",transform:yl}),FH=bi({prop:"maxHeight",transform:yl}),GH=bi({prop:"minHeight",transform:yl});bi({prop:"size",cssProperty:"width",transform:yl}),bi({prop:"size",cssProperty:"height",transform:yl});const YH=bi({prop:"boxSizing"});Sx(jH,N2,HH,qH,FH,GH,YH);const Cv={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:xx},color:{themeKey:"palette",transform:Gm},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Gm},backgroundColor:{themeKey:"palette",transform:Gm},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:Ex},rowGap:{style:Tx},columnGap:{style:wx},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:N2},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 XH(...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 WH(e,t){return typeof e=="function"?e(t):e}function QH(){function e(n,i,o,s){const f={[n]:i,theme:o},d=s[n];if(!d)return{[n]:i};const{cssProperty:h=n,themeKey:y,transform:b,style:x}=d;if(i==null)return null;if(y==="typography"&&i==="inherit")return{[n]:i};const T=gx(o,y)||{};return x?x(f):ef(f,i,C=>{let R=yx(T,b,C);return C===R&&typeof C=="string"&&(R=yx(T,b,`${n}${C==="default"?"":et(C)}`,C)),h===!1?R:{[h]:R}})}function t(n){const{sx:i,theme:o={},nested:s}=n||{};if(!i)return null;const f=o.unstable_sxConfig??Cv;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=lH(o.breakpoints),x=Object.keys(b);let T=b;return Object.keys(y).forEach(w=>{const C=WH(y[w],o);if(C!=null)if(typeof C=="object")if(f[w])T=wv(T,e(w,C,o,f));else{const R=ef({theme:o},C,_=>({[w]:_}));XH(R,C)?T[w]=t({sx:C,theme:o,nested:!0}):T=wv(T,R)}else T=wv(T,e(w,C,o,f))}),!s&&o.modularCssLayers?{"@layer sx":vO(o,SO(x,T))}:vO(o,SO(x,T))}return Array.isArray(i)?i.map(d):d(i)}return t}const mh=QH();mh.filterProps=["sx"];const KH=e=>{var i;const t={systemProps:{},otherProps:{}},n=((i=e==null?void 0:e.theme)==null?void 0:i.unstable_sxConfig)??Cv;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function z2(e){const{sx:t,...n}=e,{systemProps:i,otherProps:o}=KH(n);let s;return Array.isArray(t)?s=[i,...t]:typeof t=="function"?s=(...f)=>{const d=t(...f);return Qu(d)?{...i,...d}:i}:s={...i,...t},{...o,sx:s}}function Ax(){return Ax=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},Ax.apply(null,arguments)}function ZH(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 JH(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 eq=(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(JH(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=ZH(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})(),Pa="-ms-",Cx="-moz-",Jn="-webkit-",wO="comm",I2="rule",L2="decl",tq="@import",TO="@keyframes",nq="@layer",rq=Math.abs,Ox=String.fromCharCode,iq=Object.assign;function aq(e,t){return ba(e,0)^45?(((t<<2^ba(e,0))<<2^ba(e,1))<<2^ba(e,2))<<2^ba(e,3):0}function AO(e){return e.trim()}function oq(e,t){return(e=t.exec(e))?e[0]:e}function er(e,t,n){return e.replace(t,n)}function B2(e,t){return e.indexOf(t)}function ba(e,t){return e.charCodeAt(t)|0}function Ov(e,t,n){return e.slice(t,n)}function Ku(e){return e.length}function V2(e){return e.length}function Mx(e,t){return t.push(e),e}function lq(e,t){return e.map(t).join("")}var Rx=1,Ym=1,CO=0,Vo=0,Mi=0,Xm="";function _x(e,t,n,i,o,s,f){return{value:e,root:t,parent:n,type:i,props:o,children:s,line:Rx,column:Ym,length:f,return:""}}function Mv(e,t){return iq(_x("",null,null,"",null,null,0),e,{length:-e.length},t)}function sq(){return Mi}function uq(){return Mi=Vo>0?ba(Xm,--Vo):0,Ym--,Mi===10&&(Ym=1,Rx--),Mi}function vl(){return Mi=Vo<CO?ba(Xm,Vo++):0,Ym++,Mi===10&&(Ym=1,Rx++),Mi}function Zu(){return ba(Xm,Vo)}function Dx(){return Vo}function Rv(e,t){return Ov(Xm,e,t)}function _v(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 OO(e){return Rx=Ym=1,CO=Ku(Xm=e),Vo=0,[]}function MO(e){return Xm="",e}function kx(e){return AO(Rv(Vo-1,U2(e===91?e+2:e===40?e+1:e)))}function cq(e){for(;(Mi=Zu())&&Mi<33;)vl();return _v(e)>2||_v(Mi)>3?"":" "}function fq(e,t){for(;--t&&vl()&&!(Mi<48||Mi>102||Mi>57&&Mi<65||Mi>70&&Mi<97););return Rv(e,Dx()+(t<6&&Zu()==32&&vl()==32))}function U2(e){for(;vl();)switch(Mi){case e:return Vo;case 34:case 39:e!==34&&e!==39&&U2(Mi);break;case 40:e===41&&U2(e);break;case 92:vl();break}return Vo}function dq(e,t){for(;vl()&&e+Mi!==57;)if(e+Mi===84&&Zu()===47)break;return"/*"+Rv(t,Vo-1)+"*"+Ox(e===47?e:vl())}function hq(e){for(;!_v(Zu());)vl();return Rv(e,Vo)}function pq(e){return MO(Nx("",null,null,null,[""],e=OO(e),0,[0],e))}function Nx(e,t,n,i,o,s,f,d,h){for(var y=0,b=0,x=f,T=0,w=0,C=0,R=1,_=1,N=1,z=0,B="",V=o,I=s,P=i,Y=B;_;)switch(C=z,z=vl()){case 40:if(C!=108&&ba(Y,x-1)==58){B2(Y+=er(kx(z),"&","&\f"),"&\f")!=-1&&(N=-1);break}case 34:case 39:case 91:Y+=kx(z);break;case 9:case 10:case 13:case 32:Y+=cq(C);break;case 92:Y+=fq(Dx()-1,7);continue;case 47:switch(Zu()){case 42:case 47:Mx(mq(dq(vl(),Dx()),t,n),h);break;default:Y+="/"}break;case 123*R:d[y++]=Ku(Y)*N;case 125*R:case 59:case 0:switch(z){case 0:case 125:_=0;case 59+b:N==-1&&(Y=er(Y,/\f/g,"")),w>0&&Ku(Y)-x&&Mx(w>32?_O(Y+";",i,n,x-1):_O(er(Y," ","")+";",i,n,x-2),h);break;case 59:Y+=";";default:if(Mx(P=RO(Y,t,n,y,b,o,d,B,V=[],I=[],x),s),z===123)if(b===0)Nx(Y,t,P,P,V,s,x,d,I);else switch(T===99&&ba(Y,3)===110?100:T){case 100:case 108:case 109:case 115:Nx(e,P,P,i&&Mx(RO(e,P,P,0,0,o,d,B,o,V=[],x),I),o,I,x,d,i?V:I);break;default:Nx(Y,P,P,P,[""],I,0,d,I)}}y=b=w=0,R=N=1,B=Y="",x=f;break;case 58:x=1+Ku(Y),w=C;default:if(R<1){if(z==123)--R;else if(z==125&&R++==0&&uq()==125)continue}switch(Y+=Ox(z),z*R){case 38:N=b>0?1:(Y+="\f",-1);break;case 44:d[y++]=(Ku(Y)-1)*N,N=1;break;case 64:Zu()===45&&(Y+=kx(vl())),T=Zu(),b=x=Ku(B=Y+=hq(Dx())),z++;break;case 45:C===45&&Ku(Y)==2&&(R=0)}}return s}function RO(e,t,n,i,o,s,f,d,h,y,b){for(var x=o-1,T=o===0?s:[""],w=V2(T),C=0,R=0,_=0;C<i;++C)for(var N=0,z=Ov(e,x+1,x=rq(R=f[C])),B=e;N<w;++N)(B=AO(R>0?T[N]+" "+z:er(z,/&\f/g,T[N])))&&(h[_++]=B);return _x(e,t,n,o===0?I2:d,h,y,b)}function mq(e,t,n){return _x(e,t,n,wO,Ox(sq()),Ov(e,2,-2),0)}function _O(e,t,n,i){return _x(e,t,n,L2,Ov(e,0,i),Ov(e,i+1,-1),i)}function Wm(e,t){for(var n="",i=V2(e),o=0;o<i;o++)n+=t(e[o],o,e,t)||"";return n}function gq(e,t,n,i){switch(e.type){case nq:if(e.children.length)break;case tq:case L2:return e.return=e.return||e.value;case wO:return"";case TO:return e.return=e.value+"{"+Wm(e.children,i)+"}";case I2:e.value=e.props.join(",")}return Ku(n=Wm(e.children,i))?e.return=e.value+"{"+n+"}":""}function yq(e){var t=V2(e);return function(n,i,o,s){for(var f="",d=0;d<t;d++)f+=e[d](n,i,o,s)||"";return f}}function vq(e){return function(t){t.root||(t=t.return)&&e(t)}}function DO(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var bq=function(t,n,i){for(var o=0,s=0;o=s,s=Zu(),o===38&&s===12&&(n[i]=1),!_v(s);)vl();return Rv(t,Vo)},Sq=function(t,n){var i=-1,o=44;do switch(_v(o)){case 0:o===38&&Zu()===12&&(n[i]=1),t[i]+=bq(Vo-1,n,i);break;case 2:t[i]+=kx(o);break;case 4:if(o===44){t[++i]=Zu()===58?"&\f":"",n[i]=t[i].length;break}default:t[i]+=Ox(o)}while(o=vl());return t},xq=function(t,n){return MO(Sq(OO(t),n))},kO=new WeakMap,Eq=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&&!kO.get(i))&&!o){kO.set(t,!0);for(var s=[],f=xq(n,s),d=i.props,h=0,y=0;h<f.length;h++)for(var b=0;b<d.length;b++,y++)t.props[y]=s[h]?f[h].replace(/&\f/g,d[b]):d[b]+" "+f[h]}}},wq=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function NO(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+Cx+e+Pa+e+e;case 6828:case 4268:return Jn+e+Pa+e+e;case 6165:return Jn+e+Pa+"flex-"+e+e;case 5187:return Jn+e+er(e,/(\w+).+(:[^]+)/,Jn+"box-$1$2"+Pa+"flex-$1$2")+e;case 5443:return Jn+e+Pa+"flex-item-"+er(e,/flex-|-self/,"")+e;case 4675:return Jn+e+Pa+"flex-line-pack"+er(e,/align-content|flex-|-self/,"")+e;case 5548:return Jn+e+Pa+er(e,"shrink","negative")+e;case 5292:return Jn+e+Pa+er(e,"basis","preferred-size")+e;case 6060:return Jn+"box-"+er(e,"-grow","")+Jn+e+Pa+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"+Pa+"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(Ku(e)-1-t>6)switch(ba(e,t+1)){case 109:if(ba(e,t+4)!==45)break;case 102:return er(e,/(.+:)(.+)-([^]+)/,"$1"+Jn+"$2-$3$1"+Cx+(ba(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~B2(e,"stretch")?NO(er(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ba(e,t+1)!==115)break;case 6444:switch(ba(e,Ku(e)-3-(~B2(e,"!important")&&10))){case 107:return er(e,":",":"+Jn)+e;case 101:return er(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Jn+(ba(e,14)===45?"inline-":"")+"box$3$1"+Jn+"$2$3$1"+Pa+"$2box$3")+e}break;case 5936:switch(ba(e,t+11)){case 114:return Jn+e+Pa+er(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Jn+e+Pa+er(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Jn+e+Pa+er(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Jn+e+Pa+e+e}return e}var Tq=function(t,n,i,o){if(t.length>-1&&!t.return)switch(t.type){case L2:t.return=NO(t.value,t.length);break;case TO:return Wm([Mv(t,{value:er(t.value,"@","@"+Jn)})],o);case I2:if(t.length)return lq(t.props,function(s){switch(oq(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Wm([Mv(t,{props:[er(s,/:(read-\w+)/,":"+Cx+"$1")]})],o);case"::placeholder":return Wm([Mv(t,{props:[er(s,/:(plac\w+)/,":"+Jn+"input-$1")]}),Mv(t,{props:[er(s,/:(plac\w+)/,":"+Cx+"$1")]}),Mv(t,{props:[er(s,/:(plac\w+)/,Pa+"input-$1")]})],o)}return""})}},Aq=[Tq],Cq=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(R){var _=R.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(R),R.setAttribute("data-s",""))})}var o=t.stylisPlugins||Aq,s={},f,d=[];f=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(R){for(var _=R.getAttribute("data-emotion").split(" "),N=1;N<_.length;N++)s[_[N]]=!0;d.push(R)});var h,y=[Eq,wq];{var b,x=[gq,vq(function(R){b.insert(R)})],T=yq(y.concat(o,x)),w=function(_){return Wm(pq(_),T)};h=function(_,N,z,B){b=z,w(_?_+"{"+N.styles+"}":N.styles),B&&(C.inserted[N.name]=!0)}}var C={key:n,sheet:new eq({key:n,container:f,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},zx={exports:{}},ur={};/** @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 zO;function Oq(){if(zO)return ur;zO=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,f=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,x=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,R=e?Symbol.for("react.block"):60121,_=e?Symbol.for("react.fundamental"):60117,N=e?Symbol.for("react.responder"):60118,z=e?Symbol.for("react.scope"):60119;function B(I){if(typeof I=="object"&&I!==null){var P=I.$$typeof;switch(P){case t:switch(I=I.type,I){case h:case y:case i:case s:case o:case x:return I;default:switch(I=I&&I.$$typeof,I){case d:case b:case C:case w:case f:return I;default:return P}}case n:return P}}}function V(I){return B(I)===y}return ur.AsyncMode=h,ur.ConcurrentMode=y,ur.ContextConsumer=d,ur.ContextProvider=f,ur.Element=t,ur.ForwardRef=b,ur.Fragment=i,ur.Lazy=C,ur.Memo=w,ur.Portal=n,ur.Profiler=s,ur.StrictMode=o,ur.Suspense=x,ur.isAsyncMode=function(I){return V(I)||B(I)===h},ur.isConcurrentMode=V,ur.isContextConsumer=function(I){return B(I)===d},ur.isContextProvider=function(I){return B(I)===f},ur.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===t},ur.isForwardRef=function(I){return B(I)===b},ur.isFragment=function(I){return B(I)===i},ur.isLazy=function(I){return B(I)===C},ur.isMemo=function(I){return B(I)===w},ur.isPortal=function(I){return B(I)===n},ur.isProfiler=function(I){return B(I)===s},ur.isStrictMode=function(I){return B(I)===o},ur.isSuspense=function(I){return B(I)===x},ur.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===i||I===y||I===s||I===o||I===x||I===T||typeof I=="object"&&I!==null&&(I.$$typeof===C||I.$$typeof===w||I.$$typeof===f||I.$$typeof===d||I.$$typeof===b||I.$$typeof===_||I.$$typeof===N||I.$$typeof===z||I.$$typeof===R)},ur.typeOf=B,ur}var cr={},IO;function Mq(){if(IO)return cr;IO=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,f=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,x=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,R=t?Symbol.for("react.lazy"):60116,_=t?Symbol.for("react.block"):60121,N=t?Symbol.for("react.fundamental"):60117,z=t?Symbol.for("react.responder"):60118,B=t?Symbol.for("react.scope"):60119;function V(_e){return typeof _e=="string"||typeof _e=="function"||_e===o||_e===b||_e===f||_e===s||_e===T||_e===w||typeof _e=="object"&&_e!==null&&(_e.$$typeof===R||_e.$$typeof===C||_e.$$typeof===d||_e.$$typeof===h||_e.$$typeof===x||_e.$$typeof===N||_e.$$typeof===z||_e.$$typeof===B||_e.$$typeof===_)}function I(_e){if(typeof _e=="object"&&_e!==null){var ut=_e.$$typeof;switch(ut){case n:var Ot=_e.type;switch(Ot){case y:case b:case o:case f:case s:case T:return Ot;default:var Qt=Ot&&Ot.$$typeof;switch(Qt){case h:case x:case R:case C:case d:return Qt;default:return ut}}case i:return ut}}}var P=y,Y=b,se=h,ue=d,re=n,le=x,$=o,oe=R,W=C,ie=i,K=f,ae=s,pe=T,Te=!1;function ee(_e){return Te||(Te=!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.")),q(_e)||I(_e)===y}function q(_e){return I(_e)===b}function J(_e){return I(_e)===h}function F(_e){return I(_e)===d}function Re(_e){return typeof _e=="object"&&_e!==null&&_e.$$typeof===n}function be(_e){return I(_e)===x}function De(_e){return I(_e)===o}function Pe(_e){return I(_e)===R}function Fe(_e){return I(_e)===C}function Ze(_e){return I(_e)===i}function Qe(_e){return I(_e)===f}function tt(_e){return I(_e)===s}function $e(_e){return I(_e)===T}cr.AsyncMode=P,cr.ConcurrentMode=Y,cr.ContextConsumer=se,cr.ContextProvider=ue,cr.Element=re,cr.ForwardRef=le,cr.Fragment=$,cr.Lazy=oe,cr.Memo=W,cr.Portal=ie,cr.Profiler=K,cr.StrictMode=ae,cr.Suspense=pe,cr.isAsyncMode=ee,cr.isConcurrentMode=q,cr.isContextConsumer=J,cr.isContextProvider=F,cr.isElement=Re,cr.isForwardRef=be,cr.isFragment=De,cr.isLazy=Pe,cr.isMemo=Fe,cr.isPortal=Ze,cr.isProfiler=Qe,cr.isStrictMode=tt,cr.isSuspense=$e,cr.isValidElementType=V,cr.typeOf=I})(),cr}var LO;function Rq(){if(LO)return zx.exports;LO=1;var e={};return e.NODE_ENV==="production"?zx.exports=Oq():zx.exports=Mq(),zx.exports}var P2,BO;function _q(){if(BO)return P2;BO=1;var e=Rq(),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 f(C){return e.isMemo(C)?o:s[C.$$typeof]||t}var d=Object.defineProperty,h=Object.getOwnPropertyNames,y=Object.getOwnPropertySymbols,b=Object.getOwnPropertyDescriptor,x=Object.getPrototypeOf,T=Object.prototype;function w(C,R,_){if(typeof R!="string"){if(T){var N=x(R);N&&N!==T&&w(C,N,_)}var z=h(R);y&&(z=z.concat(y(R)));for(var B=f(C),V=f(R),I=0;I<z.length;++I){var P=z[I];if(!n[P]&&!(_&&_[P])&&!(V&&V[P])&&!(B&&B[P])){var Y=b(R,P);try{d(C,P,Y)}catch{}}}}return C}return P2=w,P2}_q();var Dq=!0;function VO(e,t,n){var i="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}var $2=function(t,n,i){var o=t.key+"-"+n.name;(i===!1||Dq===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},j2=function(t,n,i){$2(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 kq(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 Nq={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},zq=/[A-Z]|^ms/g,Iq=/_EMO_([^_]+?)_([^]*?)_EMO_/g,UO=function(t){return t.charCodeAt(1)===45},PO=function(t){return t!=null&&typeof t!="boolean"},H2=DO(function(e){return UO(e)?e:e.replace(zq,"-$&").toLowerCase()}),$O=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Iq,function(i,o,s){return Ju={name:o,styles:s,next:Ju},o})}return Nq[t]!==1&&!UO(t)&&typeof n=="number"&&n!==0?n+"px":n};function Dv(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 Ju={name:o.name,styles:o.styles,next:Ju},o.name;var s=n;if(s.styles!==void 0){var f=s.next;if(f!==void 0)for(;f!==void 0;)Ju={name:f.name,styles:f.styles,next:Ju},f=f.next;var d=s.styles+";";return d}return Lq(e,t,n)}case"function":{if(e!==void 0){var h=Ju,y=n(e);return Ju=h,Dv(e,t,y)}break}}var b=n;if(t==null)return b;var x=t[b];return x!==void 0?x:b}function Lq(e,t,n){var i="";if(Array.isArray(n))for(var o=0;o<n.length;o++)i+=Dv(e,t,n[o])+";";else for(var s in n){var f=n[s];if(typeof f!="object"){var d=f;t!=null&&t[d]!==void 0?i+=s+"{"+t[d]+"}":PO(d)&&(i+=H2(s)+":"+$O(s,d)+";")}else if(Array.isArray(f)&&typeof f[0]=="string"&&(t==null||t[f[0]]===void 0))for(var h=0;h<f.length;h++)PO(f[h])&&(i+=H2(s)+":"+$O(s,f[h])+";");else{var y=Dv(e,t,f);switch(s){case"animation":case"animationName":{i+=H2(s)+":"+y+";";break}default:i+=s+"{"+y+"}"}}}return i}var jO=/label:\s*([^\s;{]+)\s*(;|$)/g,Ju;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="";Ju=void 0;var s=e[0];if(s==null||s.raw===void 0)i=!1,o+=Dv(n,t,s);else{var f=s;o+=f[0]}for(var d=1;d<e.length;d++)if(o+=Dv(n,t,e[d]),i){var h=s;o+=h[d]}jO.lastIndex=0;for(var y="",b;(b=jO.exec(o))!==null;)y+="-"+b[1];var x=kq(o)+y;return{name:x,styles:o,next:Ju}}var Bq=function(t){return t()},HO=v2.useInsertionEffect?v2.useInsertionEffect:!1,qO=HO||Bq,FO=HO||G.useLayoutEffect,GO=G.createContext(typeof HTMLElement<"u"?Cq({key:"css"}):null);GO.Provider;var q2=function(t){return G.forwardRef(function(n,i){var o=G.useContext(GO);return t(n,o,i)})},Ix=G.createContext({}),F2={}.hasOwnProperty,G2="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Vq=function(t,n){var i={};for(var o in n)F2.call(n,o)&&(i[o]=n[o]);return i[G2]=t,i},Uq=function(t){var n=t.cache,i=t.serialized,o=t.isStringTag;return $2(n,i,o),qO(function(){return j2(n,i,o)}),null},Pq=q2(function(e,t,n){var i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[G2],s=[i],f="";typeof e.className=="string"?f=VO(t.registered,s,e.className):e.className!=null&&(f=e.className+" ");var d=kv(s,void 0,G.useContext(Ix));f+=t.key+"-"+d.name;var h={};for(var y in e)F2.call(e,y)&&y!=="css"&&y!==G2&&(h[y]=e[y]);return h.className=f,n&&(h.ref=n),G.createElement(G.Fragment,null,G.createElement(Uq,{cache:t,serialized:d,isStringTag:typeof o=="string"}),G.createElement(o,h))}),$q=Pq,YO=function(t,n){var i=arguments;if(n==null||!F2.call(n,"css"))return G.createElement.apply(void 0,i);var o=i.length,s=new Array(o);s[0]=$q,s[1]=Vq(t,n);for(var f=2;f<o;f++)s[f]=i[f];return G.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(YO||(YO={}));var jq=q2(function(e,t){var n=e.styles,i=kv([n],void 0,G.useContext(Ix)),o=G.useRef();return FO(function(){var s=t.key+"-global",f=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&&(f.before=t.sheet.tags[0]),h!==null&&(d=!0,h.setAttribute("data-emotion",s),f.hydrate([h])),o.current=[f,d],function(){f.flush()}},[t]),FO(function(){var s=o.current,f=s[0],d=s[1];if(d){s[1]=!1;return}if(i.next!==void 0&&j2(t,i.next,!0),f.tags.length){var h=f.tags[f.tags.length-1].nextElementSibling;f.before=h,f.flush()}t.insert("",i,f,!1)},[t,i.name]),null});function Y2(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return kv(t)}function Nv(){var e=Y2.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 Hq=/^((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)-.*))$/,qq=DO(function(e){return Hq.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Fq=qq,Gq=function(t){return t!=="theme"},XO=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Fq:Gq},WO=function(t,n,i){var o;if(n){var s=n.shouldForwardProp;o=t.__emotion_forwardProp&&s?function(f){return t.__emotion_forwardProp(f)&&s(f)}:s}return typeof o!="function"&&i&&(o=t.__emotion_forwardProp),o},Yq=function(t){var n=t.cache,i=t.serialized,o=t.isStringTag;return $2(n,i,o),qO(function(){return j2(n,i,o)}),null},Xq=function e(t,n){var i=t.__emotion_real===t,o=i&&t.__emotion_base||t,s,f;n!==void 0&&(s=n.label,f=n.target);var d=WO(t,n,i),h=d||XO(o),y=!h("as");return function(){var b=arguments,x=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&x.push("label:"+s+";"),b[0]==null||b[0].raw===void 0)x.push.apply(x,b);else{var T=b[0];x.push(T[0]);for(var w=b.length,C=1;C<w;C++)x.push(b[C],T[C])}var R=q2(function(_,N,z){var B=y&&_.as||o,V="",I=[],P=_;if(_.theme==null){P={};for(var Y in _)P[Y]=_[Y];P.theme=G.useContext(Ix)}typeof _.className=="string"?V=VO(N.registered,I,_.className):_.className!=null&&(V=_.className+" ");var se=kv(x.concat(I),N.registered,P);V+=N.key+"-"+se.name,f!==void 0&&(V+=" "+f);var ue=y&&d===void 0?XO(B):h,re={};for(var le in _)y&&le==="as"||ue(le)&&(re[le]=_[le]);return re.className=V,z&&(re.ref=z),G.createElement(G.Fragment,null,G.createElement(Yq,{cache:N,serialized:se,isStringTag:typeof B=="string"}),G.createElement(B,re))});return R.displayName=s!==void 0?s:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",R.defaultProps=t.defaultProps,R.__emotion_real=R,R.__emotion_base=o,R.__emotion_styles=x,R.__emotion_forwardProp=d,Object.defineProperty(R,"toString",{value:function(){return"."+f}}),R.withComponent=function(_,N){var z=e(_,Ax({},n,N,{shouldForwardProp:WO(R,N,!0)}));return z.apply(void 0,x)},R}},Wq=["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"],X2=Xq.bind(null);Wq.forEach(function(e){X2[e]=X2(e)});var Lx={exports:{}},zv={};/**
 * @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 QO;function Qq(){if(QO)return zv;QO=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,o,s){var f=null;if(s!==void 0&&(f=""+s),o.key!==void 0&&(f=""+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:f,ref:o!==void 0?o:null,props:s}}return zv.Fragment=t,zv.jsx=n,zv.jsxs=n,zv}var Iv={},KO;function Kq(){if(KO)return Iv;KO=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(J){if(J==null)return null;if(typeof J=="function")return J.$$typeof===$?null:J.displayName||J.name||null;if(typeof J=="string")return J;switch(J){case N:return"Fragment";case B:return"Profiler";case z:return"StrictMode";case Y:return"Suspense";case se:return"SuspenseList";case le: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 _:return"Portal";case I:return J.displayName||"Context";case V:return(J._context.displayName||"Context")+".Consumer";case P:var F=J.render;return J=J.displayName,J||(J=F.displayName||F.name||"",J=J!==""?"ForwardRef("+J+")":"ForwardRef"),J;case ue:return F=J.displayName||null,F!==null?F:t(J.type)||"Memo";case re:F=J._payload,J=J._init;try{return t(J(F))}catch{}}return null}function n(J){return""+J}function i(J){try{n(J);var F=!1}catch{F=!0}if(F){F=console;var Re=F.error,be=typeof Symbol=="function"&&Symbol.toStringTag&&J[Symbol.toStringTag]||J.constructor.name||"Object";return Re.call(F,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",be),n(J)}}function o(J){if(J===N)return"<>";if(typeof J=="object"&&J!==null&&J.$$typeof===re)return"<...>";try{var F=t(J);return F?"<"+F+">":"<...>"}catch{return"<...>"}}function s(){var J=oe.A;return J===null?null:J.getOwner()}function f(){return Error("react-stack-top-frame")}function d(J){if(W.call(J,"key")){var F=Object.getOwnPropertyDescriptor(J,"key").get;if(F&&F.isReactWarning)return!1}return J.key!==void 0}function h(J,F){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)",F))}Re.isReactWarning=!0,Object.defineProperty(J,"key",{get:Re,configurable:!0})}function y(){var J=t(this.type);return pe[J]||(pe[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 b(J,F,Re,be,De,Pe){var Fe=Re.ref;return J={$$typeof:R,type:J,key:F,props:Re,_owner:be},(Fe!==void 0?Fe:null)!==null?Object.defineProperty(J,"ref",{enumerable:!1,get:y}):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:De}),Object.defineProperty(J,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Pe}),Object.freeze&&(Object.freeze(J.props),Object.freeze(J)),J}function x(J,F,Re,be,De,Pe){var Fe=F.children;if(Fe!==void 0)if(be)if(ie(Fe)){for(be=0;be<Fe.length;be++)T(Fe[be]);Object.freeze&&Object.freeze(Fe)}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(Fe);if(W.call(F,"key")){Fe=t(J);var Ze=Object.keys(F).filter(function(tt){return tt!=="key"});be=0<Ze.length?"{key: someKey, "+Ze.join(": ..., ")+": ...}":"{key: someKey}",q[Fe+be]||(Ze=0<Ze.length?"{"+Ze.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} />`,be,Fe,Ze,Fe),q[Fe+be]=!0)}if(Fe=null,Re!==void 0&&(i(Re),Fe=""+Re),d(F)&&(i(F.key),Fe=""+F.key),"key"in F){Re={};for(var Qe in F)Qe!=="key"&&(Re[Qe]=F[Qe])}else Re=F;return Fe&&h(Re,typeof J=="function"?J.displayName||J.name||"Unknown":J),b(J,Fe,Re,s(),De,Pe)}function T(J){w(J)?J._store&&(J._store.validated=1):typeof J=="object"&&J!==null&&J.$$typeof===re&&(J._payload.status==="fulfilled"?w(J._payload.value)&&J._payload.value._store&&(J._payload.value._store.validated=1):J._store&&(J._store.validated=1))}function w(J){return typeof J=="object"&&J!==null&&J.$$typeof===R}var C=Od(),R=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),V=Symbol.for("react.consumer"),I=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),Y=Symbol.for("react.suspense"),se=Symbol.for("react.suspense_list"),ue=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),$=Symbol.for("react.client.reference"),oe=C.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=Object.prototype.hasOwnProperty,ie=Array.isArray,K=console.createTask?console.createTask:function(){return null};C={react_stack_bottom_frame:function(J){return J()}};var ae,pe={},Te=C.react_stack_bottom_frame.bind(C,f)(),ee=K(o(f)),q={};Iv.Fragment=N,Iv.jsx=function(J,F,Re){var be=1e4>oe.recentlyCreatedOwnerStacks++;return x(J,F,Re,!1,be?Error("react-stack-top-frame"):Te,be?K(o(J)):ee)},Iv.jsxs=function(J,F,Re){var be=1e4>oe.recentlyCreatedOwnerStacks++;return x(J,F,Re,!0,be?Error("react-stack-top-frame"):Te,be?K(o(J)):ee)}})(),Iv}var ZO;function Zq(){if(ZO)return Lx.exports;ZO=1;var e={};return e.NODE_ENV==="production"?Lx.exports=Qq():Lx.exports=Kq(),Lx.exports}var xe=Zq(),Jq={};function eF(e){return e==null||Object.keys(e).length===0}function JO(e){const{styles:t,defaultTheme:n={}}=e,i=typeof t=="function"?o=>t(eF(o)?n:o):t;return xe.jsx(jq,{styles:i})}Jq.NODE_ENV!=="production"&&(JO.propTypes={defaultTheme:p.object,styles:p.oneOfType([p.array,p.string,p.object,p.func])});var tF={};function eM(e,t){const n=X2(e,t);return tF.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 nF(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const tM=[];function Dd(e){return tM[0]=e,kv(tM)}const rF=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 iF(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:i=5,...o}=e,s=rF(t),f=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=f.indexOf(w);return`@media (min-width:${typeof t[T]=="number"?t[T]:T}${n}) and (max-width:${(C!==-1&&typeof t[f[C]]=="number"?t[f[C]]:w)-i/100}${n})`}function b(T){return f.indexOf(T)+1<f.length?y(T,f[f.indexOf(T)+1]):d(T)}function x(T){const w=f.indexOf(T);return w===0?d(f[1]):w===f.length-1?h(f[w]):y(T,f[f.indexOf(T)+1]).replace("@media","@media not all and")}return{keys:f,values:s,up:d,down:h,between:y,only:b,not:x,unit:n,...o}}const aF={borderRadius:4};var oF={};function nM(e=8,t=D2({spacing:e})){if(e.mui)return e;const n=(...i)=>(oF.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 f=t(s);return typeof f=="number"?`${f}px`:f}).join(" "));return n.mui=!0,n}function lF(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 Bx(e={},...t){const{breakpoints:n={},palette:i={},spacing:o,shape:s={},...f}=e,d=iF(n),h=nM(o);let y=Ua({breakpoints:d,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:h,shape:{...aF,...s}},f);return y=aH(y),y.applyStyles=lF,y=t.reduce((b,x)=>Ua(b,x),y),y.unstable_sxConfig={...Cv,...f==null?void 0:f.unstable_sxConfig},y.unstable_sx=function(x){return mh({sx:x,theme:this})},y}function sF(e){return Object.keys(e).length===0}function uF(e=null){const t=G.useContext(Ix);return!t||sF(t)?e:t}const cF=Bx();function Lv(e=cF){return uF(e)}var fF={};function W2(e){const t=Dd(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function rM({styles:e,themeId:t,defaultTheme:n={}}){const i=Lv(n),o=t&&i[t]||i;let s=typeof e=="function"?e(o):e;return o.modularCssLayers&&(Array.isArray(s)?s=s.map(f=>W2(typeof f=="function"?f(o):f)):s=W2(s)),xe.jsx(JO,{styles:s})}fF.NODE_ENV!=="production"&&(rM.propTypes={defaultTheme:p.object,styles:p.oneOfType([p.array,p.func,p.number,p.object,p.string,p.bool]),themeId:p.string});function dF(e={}){const{themeId:t,defaultTheme:n,defaultClassName:i="MuiBox-root",generateClassName:o}=e,s=eM("div",{shouldForwardProp:d=>d!=="theme"&&d!=="sx"&&d!=="as"})(mh);return G.forwardRef(function(h,y){const b=Lv(n),{className:x,component:T="div",...w}=z2(h);return xe.jsx(s,{as:T,ref:y,className:Et(x,o?o(i):i),theme:t&&b[t]||b,...w})})}const hF={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 Kt(e,t,n="Mui"){const i=hF[t];return i?`${n}-${i}`:`${eO.generate(e)}-${t}`}function Zt(e,t,n="Mui"){const i={};return t.forEach(o=>{i[o]=Kt(e,o,n)}),i}function iM(e,t=""){return e.displayName||e.name||t}function aM(e,t,n){const i=iM(t);return e.displayName||(i!==""?`${n}(${i})`:n)}function pF(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return iM(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ph.ForwardRef:return aM(e,e.render,"ForwardRef");case ph.Memo:return aM(e,e.type,"memo");default:return}}}function oM(e){const{variants:t,...n}=e,i={variants:t,style:Dd(n),isProcessed:!0};return i.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=Dd(o.style))}),i}var lM={};const mF=Bx();function Q2(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function gh(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function gF(e){return e?(t,n)=>n[e]:null}function yF(e,t,n){e.theme=SF(e.theme)?n:e.theme[t]||e.theme}function Vx(e,t,n){const i=typeof t=="function"?t(e):t;if(Array.isArray(i))return i.flatMap(o=>Vx(e,o,n));if(Array.isArray(i==null?void 0:i.variants)){let o;if(i.isProcessed)o=n?gh(i.style,n):i.style;else{const{variants:s,...f}=i;o=n?gh(Dd(f),n):f}return sM(e,i.variants,[o],n)}return i!=null&&i.isProcessed?n?gh(Dd(i.style),n):i.style:n?gh(Dd(i),n):i}function sM(e,t,n=[],i=void 0){var s;let o;e:for(let f=0;f<t.length;f+=1){const d=t[f];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?gh(Dd(d.style(o)),i):d.style(o))):n.push(i?gh(Dd(d.style),i):d.style)}return n}function uM(e={}){const{themeId:t,defaultTheme:n=mF,rootShouldForwardProp:i=Q2,slotShouldForwardProp:o=Q2}=e;function s(d){yF(d,t,n)}return(d,h={})=>{nF(d,P=>P.filter(Y=>Y!==mh));const{name:y,slot:b,skipVariantsResolver:x,skipSx:T,overridesResolver:w=gF(cM(b)),...C}=h,R=y&&y.startsWith("Mui")||b?"components":"custom",_=x!==void 0?x:b&&b!=="Root"&&b!=="root"||!1,N=T||!1;let z=Q2;b==="Root"||b==="root"?z=i:b?z=o:xF(d)&&(z=void 0);const B=eM(d,{shouldForwardProp:z,label:bF(y,b),...C}),V=P=>{if(P.__emotion_real===P)return P;if(typeof P=="function")return function(se){return Vx(se,P,se.theme.modularCssLayers?R:void 0)};if(Qu(P)){const Y=oM(P);return function(ue){return Y.variants?Vx(ue,Y,ue.theme.modularCssLayers?R:void 0):ue.theme.modularCssLayers?gh(Y.style,R):Y.style}}return P},I=(...P)=>{const Y=[],se=P.map(V),ue=[];if(Y.push(s),y&&w&&ue.push(function(oe){var ae,pe;const ie=(pe=(ae=oe.theme.components)==null?void 0:ae[y])==null?void 0:pe.styleOverrides;if(!ie)return null;const K={};for(const Te in ie)K[Te]=Vx(oe,ie[Te],oe.theme.modularCssLayers?"theme":void 0);return w(oe,K)}),y&&!_&&ue.push(function(oe){var K,ae;const W=oe.theme,ie=(ae=(K=W==null?void 0:W.components)==null?void 0:K[y])==null?void 0:ae.variants;return ie?sM(oe,ie,[],oe.theme.modularCssLayers?"theme":void 0):null}),N||ue.push(mh),Array.isArray(se[0])){const $=se.shift(),oe=new Array(Y.length).fill(""),W=new Array(ue.length).fill("");let ie;ie=[...oe,...$,...W],ie.raw=[...oe,...$.raw,...W],Y.unshift(ie)}const re=[...Y,...se,...ue],le=B(...re);return d.muiName&&(le.muiName=d.muiName),lM.NODE_ENV!=="production"&&(le.displayName=vF(y,b,d)),le};return B.withConfig&&(I.withConfig=B.withConfig),I}}function vF(e,t,n){return e?`${e}${et(t||"")}`:`Styled(${pF(n)})`}function bF(e,t){let n;return lM.NODE_ENV!=="production"&&e&&(n=`${e}-${cM(t||"Root")}`),n}function SF(e){for(const t in e)return!1;return!0}function xF(e){return typeof e=="string"&&e.charCodeAt(0)>96}function cM(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const EF=uM();function Bv(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 f=e[s],d=t[s];if(!d)i[s]=f||{};else if(!f)i[s]=d;else{i[s]={...d};for(const h in f)if(Object.prototype.hasOwnProperty.call(f,h)){const y=h;i[s][y]=Bv(f[y],d[y],n)}}}else s==="className"&&n&&t.className?i.className=Et(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 wF(e){const{theme:t,name:n,props:i}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?i:Bv(t.components[n].defaultProps,i)}function TF({props:e,name:t,defaultTheme:n,themeId:i}){let o=Lv(n);return i&&(o=o[i]||o),wF({theme:o,name:t,props:e})}const Xl=typeof window<"u"?G.useLayoutEffect:G.useEffect;function Qm(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}var kd={};function K2(e,t=0,n=1){return kd.NODE_ENV!=="production"&&(e<t||e>n)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${n}].`),Qm(e,t,n)}function AF(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)),kd.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 Nd(e){if(e.type)return e;if(e.charAt(0)==="#")return Nd(AF(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(kd.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Jc(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(kd.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Jc(10,o))}else i=i.split(",");return i=i.map(s=>parseFloat(s)),{type:n,values:i,colorSpace:o}}const CF=e=>{const t=Nd(e);return t.values.slice(0,3).map((n,i)=>t.type.includes("hsl")&&i!==0?`${n}%`:n).join(" ")},Vv=(e,t)=>{try{return CF(e)}catch{return t&&kd.NODE_ENV!=="production"&&console.warn(t),e}};function Ux(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 fM(e){e=Nd(e);const{values:t}=e,n=t[0],i=t[1]/100,o=t[2]/100,s=i*Math.min(o,1-o),f=(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(f(0)*255),Math.round(f(8)*255),Math.round(f(4)*255)];return e.type==="hsla"&&(d+="a",h.push(t[3])),Ux({type:d,values:h})}function Z2(e){e=Nd(e);let t=e.type==="hsl"||e.type==="hsla"?Nd(fM(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 dM(e,t){const n=Z2(e),i=Z2(t);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}function Px(e,t){return e=Nd(e),t=K2(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ux(e)}function yh(e,t,n){try{return Px(e,t)}catch{return n&&kd.NODE_ENV!=="production"&&console.warn(n),e}}function $x(e,t){if(e=Nd(e),t=K2(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 Ux(e)}function gr(e,t,n){try{return $x(e,t)}catch{return n&&kd.NODE_ENV!=="production"&&console.warn(n),e}}function jx(e,t){if(e=Nd(e),t=K2(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 Ux(e)}function yr(e,t,n){try{return jx(e,t)}catch{return n&&kd.NODE_ENV!=="production"&&console.warn(n),e}}function OF(e,t=.15){return Z2(e)>.5?$x(e,t):jx(e,t)}function Hx(e,t,n){try{return OF(e,t)}catch{return e}}var MF={};const RF="exact-prop: ​";function hM(e){return MF.NODE_ENV==="production"?e:{...e,[RF]: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 _F={};const DF=G.createContext();_F.NODE_ENV!=="production"&&(p.node,p.bool);const qx=()=>G.useContext(DF)??!1;var kF={};const NF=G.createContext(void 0);kF.NODE_ENV!=="production"&&(p.node,p.object);function zF(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?Bv(o.defaultProps,i,t.components.mergeClassNameAndStyle):!o.styleOverrides&&!o.variants?Bv(o,i,t.components.mergeClassNameAndStyle):i}function IF({props:e,name:t}){const n=G.useContext(NF);return zF({props:e,name:t,theme:{components:n}})}let pM=0;function LF(e){const[t,n]=G.useState(e),i=e||t;return G.useEffect(()=>{t==null&&(pM+=1,n(`mui-${pM}`))},[t]),i}const mM={...v2}.useId;function vh(e){if(mM!==void 0){const t=mM();return e??t}return LF(e)}const gM={theme:void 0};function BF(e){let t,n;return function(o){let s=t;return(s===void 0||o.theme!==n)&&(gM.theme=o.theme,s=oM(e(gM)),t=s,n=o.theme),s}}function VF(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 yM=(e,t,n,i=[])=>{let o=e;t.forEach((s,f)=>{f===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])})},UF=(e,t,n)=>{function i(o,s=[],f=[]){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)?[...f,d]:f):t([...s,d],h,f))})}i(e)},PF=(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 J2(e,t){const{prefix:n,shouldSkipGeneratingVar:i}=t||{},o={},s={},f={};return UF(e,(d,h,y)=>{if((typeof h=="string"||typeof h=="number")&&(!i||!i(d,h))){const b=`--${n?`${n}-`:""}${d.join("-")}`,x=PF(d,h);Object.assign(o,{[b]:x}),yM(s,d,`var(${b})`,y),yM(f,d,`var(${b}, ${x})`,y)}},d=>d[0]==="vars"),{css:o,vars:s,varsWithDefaults:f}}function $F(e,t={}){const{getSelector:n=N,disableCssColorScheme:i,colorSchemeSelector:o,enableContrastVars:s}=t,{colorSchemes:f={},components:d,defaultColorScheme:h="light",...y}=e,{vars:b,css:x,varsWithDefaults:T}=J2(y,t);let w=T;const C={},{[h]:R,..._}=f;if(Object.entries(_||{}).forEach(([V,I])=>{const{vars:P,css:Y,varsWithDefaults:se}=J2(I,t);w=Ua(w,se),C[V]={css:Y,vars:P}}),R){const{css:V,vars:I,varsWithDefaults:P}=J2(R,t);w=Ua(w,P),C[h]={css:V,vars:I}}function N(V,I){var Y,se;let P=o;if(o==="class"&&(P=".%s"),o==="data"&&(P="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(P=`[${o}="%s"]`),V){if(P==="media")return e.defaultColorScheme===V?":root":{[`@media (prefers-color-scheme: ${((se=(Y=f[V])==null?void 0:Y.palette)==null?void 0:se.mode)||V})`]:{":root":I}};if(P)return e.defaultColorScheme===V?`:root, ${P.replace("%s",String(V))}`:P.replace("%s",String(V))}return":root"}return{vars:w,generateThemeVars:()=>{let V={...b};return Object.entries(C).forEach(([,{vars:I}])=>{V=Ua(V,I)}),V},generateStyleSheets:()=>{var ue,re;const V=[],I=e.defaultColorScheme||"light";function P(le,$){Object.keys($).length&&V.push(typeof le=="string"?{[le]:{...$}}:le)}P(n(void 0,{...x}),x);const{[I]:Y,...se}=C;if(Y){const{css:le}=Y,$=(re=(ue=f[I])==null?void 0:ue.palette)==null?void 0:re.mode,oe=!i&&$?{colorScheme:$,...le}:{...le};P(n(I,{...oe}),oe)}return Object.entries(se).forEach(([le,{css:$}])=>{var ie,K;const oe=(K=(ie=f[le])==null?void 0:ie.palette)==null?void 0:K.mode,W=!i&&oe?{colorScheme:oe,...$}:{...$};P(n(le,{...W}),W)}),s&&V.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)"}}),V}}}var jF={};function HF(e){return function(n){return e==="media"?(jF.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 Km(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 qF=(e,t)=>e.filter(n=>t.includes(n)),Zm=(e,t,n)=>{const i=e.keys[0];Array.isArray(t)?t.forEach((o,s)=>{n((f,d)=>{s<=e.keys.length-1&&(s===0?Object.assign(f,d):f[e.up(e.keys[s])]=d)},o)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:qF(e.keys,Object.keys(t))).forEach(s=>{if(e.keys.includes(s)){const f=t[s];f!==void 0&&n((d,h)=>{i===s?Object.assign(d,h):d[e.up(s)]=h},f)}}):(typeof t=="number"||typeof t=="string")&&n((o,s)=>{Object.assign(o,s)},t)};function Fx(e){return`--Grid-${e}Spacing`}function Gx(e){return`--Grid-parent-${e}Spacing`}const vM="--Grid-columns",Jm="--Grid-parent-columns",FF=({theme:e,ownerState:t})=>{const n={};return Zm(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(${Jm}) - (var(${Jm}) - ${o}) * (var(${Gx("column")}) / var(${Jm})))`}),i(n,s)}),n},GF=({theme:e,ownerState:t})=>{const n={};return Zm(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(${Jm}) + var(${Gx("column")}) * ${o} / var(${Jm}))`}),i(n,s)}),n},YF=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[vM]:12};return Zm(e.breakpoints,t.columns,(i,o)=>{const s=o??12;i(n,{[vM]:s,"> *":{[Jm]:s}})}),n},XF=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Zm(e.breakpoints,t.rowSpacing,(i,o)=>{var f;const s=typeof o=="string"?o:(f=e.spacing)==null?void 0:f.call(e,o);i(n,{[Fx("row")]:s,"> *":{[Gx("row")]:s}})}),n},WF=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Zm(e.breakpoints,t.columnSpacing,(i,o)=>{var f;const s=typeof o=="string"?o:(f=e.spacing)==null?void 0:f.call(e,o);i(n,{[Fx("column")]:s,"> *":{[Gx("column")]:s}})}),n},QF=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return Zm(e.breakpoints,t.direction,(i,o)=>{i(n,{flexDirection:o})}),n},KF=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${Fx("row")}) var(${Fx("column")})`}}),ZF=e=>{const t=[];return Object.entries(e).forEach(([n,i])=>{i!==!1&&i!==void 0&&t.push(`grid-${n}-${String(i)}`)}),t},JF=(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[]},eG=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`];var tG={};const nG=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.`,bM=[];function rG(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])}),tG.NODE_ENV!=="production"&&n.forEach(i=>{bM.includes(i)||(bM.push(i),console.warn(`MUI Grid: ${nG(i)}
`))})}var iG={};const aG=Bx(),oG=EF("div",{name:"MuiGrid",slot:"Root"});function lG(e){return TF({props:e,name:"MuiGrid",defaultTheme:aG})}function sG(e={}){const{createStyledComponent:t=oG,useThemeProps:n=lG,useTheme:i=Lv,componentName:o="MuiGrid"}=e,s=(y,b)=>{const{container:x,direction:T,spacing:w,wrap:C,size:R}=y,_={root:["root",x&&"container",C!=="wrap"&&`wrap-xs-${String(C)}`,...eG(T),...ZF(R),...x?JF(w,b.breakpoints.keys[0]):[]]};return tn(_,N=>Kt(o,N),{})};function f(y,b,x=()=>!0){const T={};return y===null||(Array.isArray(y)?y.forEach((w,C)=>{w!==null&&x(w)&&b.keys[C]&&(T[b.keys[C]]=w)}):typeof y=="object"?Object.keys(y).forEach(w=>{const C=y[w];C!=null&&x(C)&&(T[w]=C)}):T[b.keys[0]]=y),T}const d=t(YF,WF,XF,FF,QF,KF,GF),h=G.forwardRef(function(b,x){const T=i(),w=n(b),C=z2(w);rG(C,T.breakpoints);const{className:R,children:_,columns:N=12,container:z=!1,component:B="div",direction:V="row",wrap:I="wrap",size:P={},offset:Y={},spacing:se=0,rowSpacing:ue=se,columnSpacing:re=se,unstable_level:le=0,...$}=C,oe=f(P,T.breakpoints,q=>q!==!1),W=f(Y,T.breakpoints),ie=b.columns??(le?void 0:N),K=b.spacing??(le?void 0:se),ae=b.rowSpacing??b.spacing??(le?void 0:ue),pe=b.columnSpacing??b.spacing??(le?void 0:re),Te={...C,level:le,columns:ie,container:z,direction:V,wrap:I,spacing:K,rowSpacing:ae,columnSpacing:pe,size:oe,offset:W},ee=s(Te,T);return xe.jsx(d,{ref:x,as:B,ownerState:Te,className:Et(ee.root,R),...$,children:G.Children.map(_,q=>{var J;return G.isValidElement(q)&&Km(q,["Grid"])&&z&&q.props.container?G.cloneElement(q,{unstable_level:((J=q.props)==null?void 0:J.unstable_level)??le+1}):q})})});return iG.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 Uv={black:"#000",white:"#fff"},uG={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"},eg={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},tg={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Pv={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},ng={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},rg={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},ig={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};var Yx={};function SM(){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:Uv.white,default:Uv.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 xM=SM();function EM(){return{text:{primary:Uv.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:Uv.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 ew=EM();function wM(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=jx(e.main,o):t==="dark"&&(e.dark=$x(e.main,s)))}function TM(e,t,n,i,o){const s=o.light||o,f=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 ${(f*100).toFixed(0)}%)`))}function cG(e="light"){return e==="dark"?{main:ng[200],light:ng[50],dark:ng[400]}:{main:ng[700],light:ng[400],dark:ng[800]}}function fG(e="light"){return e==="dark"?{main:eg[200],light:eg[50],dark:eg[400]}:{main:eg[500],light:eg[300],dark:eg[700]}}function dG(e="light"){return e==="dark"?{main:tg[500],light:tg[300],dark:tg[700]}:{main:tg[700],light:tg[400],dark:tg[800]}}function hG(e="light"){return e==="dark"?{main:rg[400],light:rg[300],dark:rg[700]}:{main:rg[700],light:rg[500],dark:rg[900]}}function pG(e="light"){return e==="dark"?{main:ig[400],light:ig[300],dark:ig[700]}:{main:ig[800],light:ig[500],dark:ig[900]}}function mG(e="light"){return e==="dark"?{main:Pv[400],light:Pv[300],dark:Pv[700]}:{main:"#ed6c02",light:Pv[500],dark:Pv[900]}}function gG(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function tw(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:i=.2,colorSpace:o,...s}=e,f=e.primary||cG(t),d=e.secondary||fG(t),h=e.error||dG(t),y=e.info||hG(t),b=e.success||pG(t),x=e.warning||mG(t);function T(_){if(o)return gG(_);const N=dM(_,ew.text.primary)>=n?ew.text.primary:xM.text.primary;if(Yx.NODE_ENV!=="production"){const z=dM(_,N);z<3&&console.error([`MUI: The contrast ratio of ${z}:1 for ${N} 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 N}const w=({color:_,name:N,mainShade:z=500,lightShade:B=300,darkShade:V=700})=>{if(_={..._},!_.main&&_[z]&&(_.main=_[z]),!_.hasOwnProperty("main"))throw new Error(Yx.NODE_ENV!=="production"?`MUI: The color${N?` (${N})`:""} provided to augmentColor(color) is invalid.
The color object needs to have a \`main\` property or a \`${z}\` property.`:Jc(11,N?` (${N})`:"",z));if(typeof _.main!="string")throw new Error(Yx.NODE_ENV!=="production"?`MUI: The color${N?` (${N})`:""} 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] },
} });`:Jc(12,N?` (${N})`:"",JSON.stringify(_.main)));return o?(TM(o,_,"light",B,i),TM(o,_,"dark",V,i)):(wM(_,"light",B,i),wM(_,"dark",V,i)),_.contrastText||(_.contrastText=T(_.main)),_};let C;return t==="light"?C=SM():t==="dark"&&(C=EM()),Yx.NODE_ENV!=="production"&&(C||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Ua({common:{...Uv},mode:t,primary:w({color:f,name:"primary"}),secondary:w({color:d,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:w({color:h,name:"error"}),warning:w({color:x,name:"warning"}),info:w({color:y,name:"info"}),success:w({color:b,name:"success"}),grey:uG,contrastThreshold:n,getContrastText:T,augmentColor:w,tonalOffset:i,...C},s)}function yG(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 vG(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}var bG={};function SG(e){return Math.round(e*1e5)/1e5}const AM={textTransform:"uppercase"},CM='"Roboto", "Helvetica", "Arial", sans-serif';function xG(e,t){const{fontFamily:n=CM,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:f=500,fontWeightBold:d=700,htmlFontSize:h=16,allVariants:y,pxToRem:b,...x}=typeof t=="function"?t(e):t;bG.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=(_,N,z,B,V)=>({fontFamily:n,fontWeight:_,fontSize:w(N),lineHeight:z,...n===CM?{letterSpacing:`${SG(B/N)}em`}:{},...V,...y}),R={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(f,20,1.6,.15),subtitle1:C(s,16,1.75,.15),subtitle2:C(f,14,1.57,.1),body1:C(s,16,1.5,.15),body2:C(s,14,1.43,.15),button:C(f,14,1.75,.4,AM),caption:C(s,12,1.66,.4),overline:C(s,12,2.66,1,AM),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ua({htmlFontSize:h,pxToRem:w,fontFamily:n,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:f,fontWeightBold:d,...R},x,{clone:!1})}const EG=.2,wG=.14,TG=.12;function Hr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${EG})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${wG})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${TG})`].join(",")}const AG=["none",Hr(0,2,1,-1,0,1,1,0,0,1,3,0),Hr(0,3,1,-2,0,2,2,0,0,1,5,0),Hr(0,3,3,-2,0,3,4,0,0,1,8,0),Hr(0,2,4,-1,0,4,5,0,0,1,10,0),Hr(0,3,5,-1,0,5,8,0,0,1,14,0),Hr(0,3,5,-1,0,6,10,0,0,1,18,0),Hr(0,4,5,-2,0,7,10,1,0,2,16,1),Hr(0,5,5,-3,0,8,10,1,0,3,14,2),Hr(0,5,6,-3,0,9,12,1,0,3,16,2),Hr(0,6,6,-3,0,10,14,1,0,4,18,3),Hr(0,6,7,-4,0,11,15,1,0,4,20,3),Hr(0,7,8,-4,0,12,17,2,0,5,22,4),Hr(0,7,8,-4,0,13,19,2,0,5,24,4),Hr(0,7,9,-4,0,14,21,2,0,5,26,4),Hr(0,8,9,-5,0,15,22,2,0,6,28,5),Hr(0,8,10,-5,0,16,24,2,0,6,30,5),Hr(0,8,11,-5,0,17,26,2,0,6,32,5),Hr(0,9,11,-5,0,18,28,2,0,7,34,6),Hr(0,9,12,-6,0,19,29,2,0,7,36,6),Hr(0,10,13,-6,0,20,31,3,0,8,38,7),Hr(0,10,13,-6,0,21,33,3,0,8,40,7),Hr(0,10,14,-6,0,22,35,3,0,8,42,7),Hr(0,11,14,-7,0,23,36,3,0,9,44,8),Hr(0,11,15,-7,0,24,38,3,0,9,46,8)];var CG={};const OG={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)"},MG={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function OM(e){return`${Math.round(e)}ms`}function RG(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function _G(e){const t={...OG,...e.easing},n={...MG,...e.duration};return{getAutoHeightDuration:RG,create:(o=["all"],s={})=>{const{duration:f=n.standard,easing:d=t.easeInOut,delay:h=0,...y}=s;if(CG.NODE_ENV!=="production"){const b=T=>typeof T=="string",x=T=>!Number.isNaN(parseFloat(T));!b(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!x(f)&&!b(f)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${f}.`),b(d)||console.error('MUI: Argument "easing" must be a string.'),!x(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 f=="string"?f:OM(f)} ${d} ${typeof h=="string"?h:OM(h)}`).join(",")},...e,easing:t,duration:n}}const DG={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function kG(e){return Qu(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function MM(e={}){const t={...e};function n(i){const o=Object.entries(i);for(let s=0;s<o.length;s++){const[f,d]=o[s];!kG(d)||f.startsWith("unstable_")?delete i[f]:Qu(d)&&(i[f]={...d},n(i[f]))}}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 nw={};function RM(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const NG=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 zG(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})`:Px(t,NG(n))},lighten(t,n){const i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${t}, #fff ${RM(n)})`:jx(t,n)},darken(t,n){const i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${t}, #000 ${RM(n)})`:$x(t,n)}})}function rw(e={},...t){const{breakpoints:n,mixins:i={},spacing:o,palette:s={},transitions:f={},typography:d={},shape:h,colorSpace:y,...b}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(nw.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.":Jc(20));const x=tw({...s,colorSpace:y}),T=Bx(e);let w=Ua(T,{mixins:vG(T.breakpoints,i),palette:x,shadows:AG.slice(),typography:xG(x,d),transitions:_G(f),zIndex:{...DG}});if(w=Ua(w,b),w=t.reduce((C,R)=>Ua(C,R),w),nw.NODE_ENV!=="production"){const C=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],R=(_,N)=>{let z;for(z in _){const B=_[z];if(C.includes(z)&&Object.keys(B).length>0){if(nw.NODE_ENV!=="production"){const V=Kt("",z);console.error([`MUI: The \`${N}\` 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 '&.${V}' syntax:`,JSON.stringify({root:{[`&.${V}`]:B}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
`))}_[z]={}}}};Object.keys(w.components).forEach(_=>{const N=w.components[_].styleOverrides;N&&_.startsWith("Mui")&&R(N,_)})}return w.unstable_sxConfig={...Cv,...b==null?void 0:b.unstable_sxConfig},w.unstable_sx=function(R){return mh({sx:R,theme:this})},w.toRuntimeSource=MM,zG(w),w}function iw(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 IG=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=iw(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function _M(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function DM(e){return e==="dark"?IG:[]}function LG(e){const{palette:t={mode:"light"},opacity:n,overlays:i,colorSpace:o,...s}=e,f=tw({...t,colorSpace:o});return{palette:f,opacity:{..._M(f.mode),...n},overlays:i||DM(f.mode),...s}}function BG(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 VG=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],UG=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 f={};return VG(e.cssVarPrefix).forEach(d=>{f[d]=n[d],delete n[d]}),s==="media"?{[i]:n,"@media (prefers-color-scheme: dark)":{[i]:f}}:s?{[s.replace("%s",t)]:f,[`${i}, ${s.replace("%s",t)}`]:n}:{[i]:{...n,...f}}}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 PG={};function $G(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function Xe(e,t,n){!e[t]&&n&&(e[t]=n)}function $v(e){return typeof e!="string"||!e.startsWith("hsl")?e:fM(e)}function tf(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Vv($v(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 jG(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ec=e=>{try{return e()}catch{}},HG=(e="mui")=>VF(e);function aw(e,t,n,i,o){if(!n)return;n=n===!0?{}:n;const s=o==="dark"?"dark":"light";if(!i){t[o]=LG({...n,palette:{mode:s,...n==null?void 0:n.palette},colorSpace:e});return}const{palette:f,...d}=rw({...i,palette:{mode:s,...n==null?void 0:n.palette},colorSpace:e});return t[o]={...n,palette:f,opacity:{..._M(s),...n==null?void 0:n.opacity},overlays:(n==null?void 0:n.overlays)||DM(s)},d}function qG(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:i,disableCssColorScheme:o=!1,cssVarPrefix:s="mui",nativeColor:f=!1,shouldSkipGeneratingVar:d=BG,colorSchemeSelector:h=n.light&&n.dark?"media":void 0,rootSelector:y=":root",...b}=e,x=Object.keys(n)[0],T=i||(n.light&&x!=="light"?"light":x),w=HG(s),{[T]:C,light:R,dark:_,...N}=n,z={...N};let B=C;if((T==="dark"&&!("dark"in n)||T==="light"&&!("light"in n))&&(B=!0),!B)throw new Error(PG.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${T}\` option is either missing or invalid.`:Jc(21,T));let V;f&&(V="oklch");const I=aw(V,z,B,b,T);R&&!z.light&&aw(V,z,R,void 0,"light"),_&&!z.dark&&aw(V,z,_,void 0,"dark");let P={defaultColorScheme:T,...I,cssVarPrefix:s,colorSchemeSelector:h,rootSelector:y,getCssVar:w,colorSchemes:z,font:{...yG(I.typography),...I.font},spacing:jG(b.spacing)};Object.keys(P.colorSchemes).forEach(le=>{const $=P.colorSchemes[le].palette,oe=ie=>{const K=ie.split("-"),ae=K[1],pe=K[2];return w(ie,$[ae][pe])};$.mode==="light"&&(Xe($.common,"background","#fff"),Xe($.common,"onBackground","#000")),$.mode==="dark"&&(Xe($.common,"background","#000"),Xe($.common,"onBackground","#fff"));function W(ie,K,ae){if(V){let pe;return ie===yh&&(pe=`transparent ${((1-ae)*100).toFixed(0)}%`),ie===gr&&(pe=`#000 ${(ae*100).toFixed(0)}%`),ie===yr&&(pe=`#fff ${(ae*100).toFixed(0)}%`),`color-mix(in ${V}, ${K}, ${pe})`}return ie(K,ae)}if($G($,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),$.mode==="light"){Xe($.Alert,"errorColor",W(gr,$.error.light,.6)),Xe($.Alert,"infoColor",W(gr,$.info.light,.6)),Xe($.Alert,"successColor",W(gr,$.success.light,.6)),Xe($.Alert,"warningColor",W(gr,$.warning.light,.6)),Xe($.Alert,"errorFilledBg",oe("palette-error-main")),Xe($.Alert,"infoFilledBg",oe("palette-info-main")),Xe($.Alert,"successFilledBg",oe("palette-success-main")),Xe($.Alert,"warningFilledBg",oe("palette-warning-main")),Xe($.Alert,"errorFilledColor",ec(()=>$.getContrastText($.error.main))),Xe($.Alert,"infoFilledColor",ec(()=>$.getContrastText($.info.main))),Xe($.Alert,"successFilledColor",ec(()=>$.getContrastText($.success.main))),Xe($.Alert,"warningFilledColor",ec(()=>$.getContrastText($.warning.main))),Xe($.Alert,"errorStandardBg",W(yr,$.error.light,.9)),Xe($.Alert,"infoStandardBg",W(yr,$.info.light,.9)),Xe($.Alert,"successStandardBg",W(yr,$.success.light,.9)),Xe($.Alert,"warningStandardBg",W(yr,$.warning.light,.9)),Xe($.Alert,"errorIconColor",oe("palette-error-main")),Xe($.Alert,"infoIconColor",oe("palette-info-main")),Xe($.Alert,"successIconColor",oe("palette-success-main")),Xe($.Alert,"warningIconColor",oe("palette-warning-main")),Xe($.AppBar,"defaultBg",oe("palette-grey-100")),Xe($.Avatar,"defaultBg",oe("palette-grey-400")),Xe($.Button,"inheritContainedBg",oe("palette-grey-300")),Xe($.Button,"inheritContainedHoverBg",oe("palette-grey-A100")),Xe($.Chip,"defaultBorder",oe("palette-grey-400")),Xe($.Chip,"defaultAvatarColor",oe("palette-grey-700")),Xe($.Chip,"defaultIconColor",oe("palette-grey-700")),Xe($.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Xe($.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Xe($.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Xe($.LinearProgress,"primaryBg",W(yr,$.primary.main,.62)),Xe($.LinearProgress,"secondaryBg",W(yr,$.secondary.main,.62)),Xe($.LinearProgress,"errorBg",W(yr,$.error.main,.62)),Xe($.LinearProgress,"infoBg",W(yr,$.info.main,.62)),Xe($.LinearProgress,"successBg",W(yr,$.success.main,.62)),Xe($.LinearProgress,"warningBg",W(yr,$.warning.main,.62)),Xe($.Skeleton,"bg",V?W(yh,$.text.primary,.11):`rgba(${oe("palette-text-primaryChannel")} / 0.11)`),Xe($.Slider,"primaryTrack",W(yr,$.primary.main,.62)),Xe($.Slider,"secondaryTrack",W(yr,$.secondary.main,.62)),Xe($.Slider,"errorTrack",W(yr,$.error.main,.62)),Xe($.Slider,"infoTrack",W(yr,$.info.main,.62)),Xe($.Slider,"successTrack",W(yr,$.success.main,.62)),Xe($.Slider,"warningTrack",W(yr,$.warning.main,.62));const ie=V?W(gr,$.background.default,.6825):Hx($.background.default,.8);Xe($.SnackbarContent,"bg",ie),Xe($.SnackbarContent,"color",ec(()=>V?ew.text.primary:$.getContrastText(ie))),Xe($.SpeedDialAction,"fabHoverBg",Hx($.background.paper,.15)),Xe($.StepConnector,"border",oe("palette-grey-400")),Xe($.StepContent,"border",oe("palette-grey-400")),Xe($.Switch,"defaultColor",oe("palette-common-white")),Xe($.Switch,"defaultDisabledColor",oe("palette-grey-100")),Xe($.Switch,"primaryDisabledColor",W(yr,$.primary.main,.62)),Xe($.Switch,"secondaryDisabledColor",W(yr,$.secondary.main,.62)),Xe($.Switch,"errorDisabledColor",W(yr,$.error.main,.62)),Xe($.Switch,"infoDisabledColor",W(yr,$.info.main,.62)),Xe($.Switch,"successDisabledColor",W(yr,$.success.main,.62)),Xe($.Switch,"warningDisabledColor",W(yr,$.warning.main,.62)),Xe($.TableCell,"border",W(yr,W(yh,$.divider,1),.88)),Xe($.Tooltip,"bg",W(yh,$.grey[700],.92))}if($.mode==="dark"){Xe($.Alert,"errorColor",W(yr,$.error.light,.6)),Xe($.Alert,"infoColor",W(yr,$.info.light,.6)),Xe($.Alert,"successColor",W(yr,$.success.light,.6)),Xe($.Alert,"warningColor",W(yr,$.warning.light,.6)),Xe($.Alert,"errorFilledBg",oe("palette-error-dark")),Xe($.Alert,"infoFilledBg",oe("palette-info-dark")),Xe($.Alert,"successFilledBg",oe("palette-success-dark")),Xe($.Alert,"warningFilledBg",oe("palette-warning-dark")),Xe($.Alert,"errorFilledColor",ec(()=>$.getContrastText($.error.dark))),Xe($.Alert,"infoFilledColor",ec(()=>$.getContrastText($.info.dark))),Xe($.Alert,"successFilledColor",ec(()=>$.getContrastText($.success.dark))),Xe($.Alert,"warningFilledColor",ec(()=>$.getContrastText($.warning.dark))),Xe($.Alert,"errorStandardBg",W(gr,$.error.light,.9)),Xe($.Alert,"infoStandardBg",W(gr,$.info.light,.9)),Xe($.Alert,"successStandardBg",W(gr,$.success.light,.9)),Xe($.Alert,"warningStandardBg",W(gr,$.warning.light,.9)),Xe($.Alert,"errorIconColor",oe("palette-error-main")),Xe($.Alert,"infoIconColor",oe("palette-info-main")),Xe($.Alert,"successIconColor",oe("palette-success-main")),Xe($.Alert,"warningIconColor",oe("palette-warning-main")),Xe($.AppBar,"defaultBg",oe("palette-grey-900")),Xe($.AppBar,"darkBg",oe("palette-background-paper")),Xe($.AppBar,"darkColor",oe("palette-text-primary")),Xe($.Avatar,"defaultBg",oe("palette-grey-600")),Xe($.Button,"inheritContainedBg",oe("palette-grey-800")),Xe($.Button,"inheritContainedHoverBg",oe("palette-grey-700")),Xe($.Chip,"defaultBorder",oe("palette-grey-700")),Xe($.Chip,"defaultAvatarColor",oe("palette-grey-300")),Xe($.Chip,"defaultIconColor",oe("palette-grey-300")),Xe($.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Xe($.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Xe($.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Xe($.LinearProgress,"primaryBg",W(gr,$.primary.main,.5)),Xe($.LinearProgress,"secondaryBg",W(gr,$.secondary.main,.5)),Xe($.LinearProgress,"errorBg",W(gr,$.error.main,.5)),Xe($.LinearProgress,"infoBg",W(gr,$.info.main,.5)),Xe($.LinearProgress,"successBg",W(gr,$.success.main,.5)),Xe($.LinearProgress,"warningBg",W(gr,$.warning.main,.5)),Xe($.Skeleton,"bg",V?W(yh,$.text.primary,.13):`rgba(${oe("palette-text-primaryChannel")} / 0.13)`),Xe($.Slider,"primaryTrack",W(gr,$.primary.main,.5)),Xe($.Slider,"secondaryTrack",W(gr,$.secondary.main,.5)),Xe($.Slider,"errorTrack",W(gr,$.error.main,.5)),Xe($.Slider,"infoTrack",W(gr,$.info.main,.5)),Xe($.Slider,"successTrack",W(gr,$.success.main,.5)),Xe($.Slider,"warningTrack",W(gr,$.warning.main,.5));const ie=V?W(yr,$.background.default,.985):Hx($.background.default,.98);Xe($.SnackbarContent,"bg",ie),Xe($.SnackbarContent,"color",ec(()=>V?xM.text.primary:$.getContrastText(ie))),Xe($.SpeedDialAction,"fabHoverBg",Hx($.background.paper,.15)),Xe($.StepConnector,"border",oe("palette-grey-600")),Xe($.StepContent,"border",oe("palette-grey-600")),Xe($.Switch,"defaultColor",oe("palette-grey-300")),Xe($.Switch,"defaultDisabledColor",oe("palette-grey-600")),Xe($.Switch,"primaryDisabledColor",W(gr,$.primary.main,.55)),Xe($.Switch,"secondaryDisabledColor",W(gr,$.secondary.main,.55)),Xe($.Switch,"errorDisabledColor",W(gr,$.error.main,.55)),Xe($.Switch,"infoDisabledColor",W(gr,$.info.main,.55)),Xe($.Switch,"successDisabledColor",W(gr,$.success.main,.55)),Xe($.Switch,"warningDisabledColor",W(gr,$.warning.main,.55)),Xe($.TableCell,"border",W(gr,W(yh,$.divider,1),.68)),Xe($.Tooltip,"bg",W(yh,$.grey[700],.92))}tf($.background,"default"),tf($.background,"paper"),tf($.common,"background"),tf($.common,"onBackground"),tf($,"divider"),Object.keys($).forEach(ie=>{const K=$[ie];ie!=="tonalOffset"&&K&&typeof K=="object"&&(K.main&&Xe($[ie],"mainChannel",Vv($v(K.main))),K.light&&Xe($[ie],"lightChannel",Vv($v(K.light))),K.dark&&Xe($[ie],"darkChannel",Vv($v(K.dark))),K.contrastText&&Xe($[ie],"contrastTextChannel",Vv($v(K.contrastText))),ie==="text"&&(tf($[ie],"primary"),tf($[ie],"secondary")),ie==="action"&&(K.active&&tf($[ie],"active"),K.selected&&tf($[ie],"selected")))})}),P=t.reduce((le,$)=>Ua(le,$),P);const Y={prefix:s,disableCssColorScheme:o,shouldSkipGeneratingVar:d,getSelector:UG(P),enableContrastVars:f},{vars:se,generateThemeVars:ue,generateStyleSheets:re}=$F(P,Y);return P.vars=se,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([le,$])=>{P[le]=$}),P.generateThemeVars=ue,P.generateStyleSheets=re,P.generateSpacing=function(){return nM(b.spacing,D2(this))},P.getColorSchemeSelector=HF(h),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=d,P.unstable_sxConfig={...Cv,...b==null?void 0:b.unstable_sxConfig},P.unstable_sx=function($){return mh({sx:$,theme:this})},P.toRuntimeSource=MM,P}function kM(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:tw({...n===!0?{}:n.palette,mode:t})})}function NM(e={},...t){const{palette:n,cssVariables:i=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:s=n==null?void 0:n.mode,...f}=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 rw(e,...t);let b=n;"palette"in e||y[d]&&(y[d]!==!0?b=y[d].palette:d==="dark"&&(b={mode:"dark"}));const x=rw({...e,palette:b},...t);return x.defaultColorScheme=d,x.colorSchemes=y,x.palette.mode==="light"&&(x.colorSchemes.light={...y.light!==!0&&y.light,palette:x.palette},kM(x,"dark",y.dark)),x.palette.mode==="dark"&&(x.colorSchemes.dark={...y.dark!==!0&&y.dark,palette:x.palette},kM(x,"light",y.light)),x}return!n&&!("light"in y)&&d==="light"&&(y.light=!0),qG({...f,colorSchemes:y,defaultColorScheme:d,...typeof i!="boolean"&&i},...t)}const ow=NM(),Xx="$$material";var FG={};function nf(){const e=Lv(ow);return FG.NODE_ENV!=="production"&&G.useDebugValue(e),e[Xx]||e}var GG={};function zM(e){return xe.jsx(rM,{...e,defaultTheme:ow,themeId:Xx})}GG.NODE_ENV!=="production"&&(zM.propTypes={styles:p.oneOfType([p.array,p.func,p.number,p.object,p.string,p.bool])});function Wx(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Sa=e=>Wx(e)&&e!=="classes",at=uM({themeId:Xx,defaultTheme:ow,rootShouldForwardProp:Sa});function YG(e){return function(n){return xe.jsx(zM,{styles:typeof e=="function"?i=>e({theme:i,...n}):e})}}function XG(){return z2}const Ft=BF;var WG={};WG.NODE_ENV!=="production"&&(p.node,p.object.isRequired);function sn(e){return IF(e)}function QG(e){return Kt("MuiSvgIcon",e)}Zt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var KG={};const ZG=e=>{const{color:t,fontSize:n,classes:i}=e,o={root:["root",t!=="inherit"&&`color${et(t)}`,`fontSize${et(n)}`]};return tn(o,QG,i)},JG=at("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${et(n.color)}`],t[`fontSize${et(n.fontSize)}`]]}})(Ft(({theme:e})=>{var t,n,i,o,s,f,d,h,y,b,x,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:R=>!R.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((f=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:f.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(([,R])=>R&&R.main).map(([R])=>{var _,N;return{props:{color:R},style:{color:(N=(_=(e.vars??e).palette)==null?void 0:_[R])==null?void 0:N.main}}}),{props:{color:"action"},style:{color:(T=(x=(e.vars??e).palette)==null?void 0:x.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}}]}})),bh=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiSvgIcon"}),{children:o,className:s,color:f="inherit",component:d="svg",fontSize:h="medium",htmlColor:y,inheritViewBox:b=!1,titleAccess:x,viewBox:T="0 0 24 24",...w}=i,C=G.isValidElement(o)&&o.type==="svg",R={...i,color:f,component:d,fontSize:h,instanceFontSize:t.fontSize,inheritViewBox:b,viewBox:T,hasSvgAsChild:C},_={};b||(_.viewBox=T);const N=ZG(R);return xe.jsxs(JG,{as:d,className:Et(N.root,s),focusable:"false",color:y,"aria-hidden":x?void 0:!0,role:x?"img":void 0,ref:n,..._,...w,...C&&o.props,ownerState:R,children:[C?o.props.children:o,x?xe.jsx("title",{children:x}):null]})});KG.NODE_ENV!=="production"&&(bh.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}),bh.muiName="SvgIcon";var IM={};function Ri(e,t){function n(i,o){return xe.jsx(bh,{"data-testid":IM.NODE_ENV!=="production"?`${t}Icon`:void 0,ref:o,...i,children:e})}return IM.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=bh.muiName,G.memo(G.forwardRef(n))}function LM(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 xa(e){return e&&e.ownerDocument||document}function rf(e){return xa(e).defaultView||window}var eY={};function tY(e,t){if(eY.NODE_ENV==="production")return()=>()=>null;const n=t?{...t.propTypes}:null;return o=>(s,f,d,h,y,...b)=>{const x=y||f,T=n==null?void 0:n[x];if(T){const w=T(s,f,d,h,y,...b);if(w)return w}return typeof s[f]<"u"&&!s[o]?new Error(`The prop \`${x}\` of \`${e}\` can only be used together with the \`${o}\` prop.`):null}}function BM(e,t){typeof e=="function"?e(t):e&&(e.current=t)}var nY={};function rY(e,t,n,i,o){if(nY.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 iY={};function ag(e){const{controlled:t,default:n,name:i,state:o="value"}=e,{current:s}=G.useRef(t!==void 0),[f,d]=G.useState(n),h=s?t:f;if(iY.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 Wl(e){const t=G.useRef(e);return Xl(()=>{t.current=e}),G.useRef((...n)=>(0,t.current)(...n)).current}function ii(...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 f=s,d=f(i);return typeof d=="function"?d:()=>{f(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 aY(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function VM(e,t){if(!e)return t;function n(f,d){const h={};return Object.keys(d).forEach(y=>{aY(y,d[y])&&typeof f[y]=="function"&&(h[y]=(...b)=>{f[y](...b),d[y](...b)})}),h}if(typeof e=="function"||typeof t=="function")return f=>{const d=typeof t=="function"?t(f):t,h=typeof e=="function"?e({...f,...d}):e,y=Et(f==null?void 0:f.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=Et(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 oY=Ri(xe.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"),UM=Ri(xe.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check"),PM=Ri(xe.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"),lY=Ri(xe.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"),sY=Ri(xe.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown"),uY=Ri(xe.jsx("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send"),$M=Ri(xe.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 cY={};function su(e,t){return cY.NODE_ENV==="production"?()=>null:function(...i){return e(...i)||t(...i)}}function jM(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 lw(e,t){return lw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},lw(e,t)}function HM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,lw(e,t)}var qM=R7();const Qx=pl(qM),FM={disabled:!1};var GM={},fY=GM.NODE_ENV!=="production"?p.oneOfType([p.number,p.shape({enter:p.number,exit:p.number,appear:p.number}).isRequired]):null;GM.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 Kx=ce.createContext(null);var dY=function(t){return t.scrollTop},hY={},jv="unmounted",Sh="exited",xh="entering",og="entered",sw="exiting",tc=(function(e){HM(t,e);function t(i,o){var s;s=e.call(this,i,o)||this;var f=o,d=f&&!f.isMounting?i.enter:i.appear,h;return s.appearStatus=null,i.in?d?(h=Sh,s.appearStatus=xh):h=og:i.unmountOnExit||i.mountOnEnter?h=jv:h=Sh,s.state={status:h},s.nextCallback=null,s}t.getDerivedStateFromProps=function(o,s){var f=o.in;return f&&s.status===jv?{status:Sh}: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 f=this.state.status;this.props.in?f!==xh&&f!==og&&(s=xh):(f===xh||f===og)&&(s=sw)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,s,f,d;return s=f=d=o,o!=null&&typeof o!="number"&&(s=o.exit,f=o.enter,d=o.appear!==void 0?o.appear:f),{exit:s,enter:f,appear:d}},n.updateStatus=function(o,s){if(o===void 0&&(o=!1),s!==null)if(this.cancelNextCallback(),s===xh){if(this.props.unmountOnExit||this.props.mountOnEnter){var f=this.props.nodeRef?this.props.nodeRef.current:Qx.findDOMNode(this);f&&dY(f)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Sh&&this.setState({status:jv})},n.performEnter=function(o){var s=this,f=this.props.enter,d=this.context?this.context.isMounting:o,h=this.props.nodeRef?[d]:[Qx.findDOMNode(this),d],y=h[0],b=h[1],x=this.getTimeouts(),T=d?x.appear:x.enter;if(!o&&!f||FM.disabled){this.safeSetState({status:og},function(){s.props.onEntered(y)});return}this.props.onEnter(y,b),this.safeSetState({status:xh},function(){s.props.onEntering(y,b),s.onTransitionEnd(T,function(){s.safeSetState({status:og},function(){s.props.onEntered(y,b)})})})},n.performExit=function(){var o=this,s=this.props.exit,f=this.getTimeouts(),d=this.props.nodeRef?void 0:Qx.findDOMNode(this);if(!s||FM.disabled){this.safeSetState({status:Sh},function(){o.props.onExited(d)});return}this.props.onExit(d),this.safeSetState({status:sw},function(){o.props.onExiting(d),o.onTransitionEnd(f.exit,function(){o.safeSetState({status:Sh},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,f=!0;return this.nextCallback=function(d){f&&(f=!1,s.nextCallback=null,o(d))},this.nextCallback.cancel=function(){f=!1},this.nextCallback},n.onTransitionEnd=function(o,s){this.setNextCallback(s);var f=this.props.nodeRef?this.props.nodeRef.current:Qx.findDOMNode(this),d=o==null&&!this.props.addEndListener;if(!f||d){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var h=this.props.nodeRef?[this.nextCallback]:[f,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===jv)return null;var s=this.props,f=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=jM(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return ce.createElement(Kx.Provider,{value:null},typeof f=="function"?f(o,d):ce.cloneElement(ce.Children.only(f),d))},t})(ce.Component);tc.contextType=Kx,tc.propTypes=hY.NODE_ENV!=="production"?{nodeRef:p.shape({current:typeof Element>"u"?p.any:function(e,t,n,i,o,s){var f=e[t];return p.instanceOf(f&&"ownerDocument"in f?f.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=fY;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 lg(){}tc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:lg,onEntering:lg,onEntered:lg,onExit:lg,onExiting:lg,onExited:lg},tc.UNMOUNTED=jv,tc.EXITED=Sh,tc.ENTERING=xh,tc.ENTERED=og,tc.EXITING=sw;function pY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uw(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 mY(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 f,d={};for(var h in t){if(i[h])for(f=0;f<i[h].length;f++){var y=i[h][f];d[i[h][f]]=n(y)}d[h]=n(h)}for(f=0;f<o.length;f++)d[o[f]]=n(o[f]);return d}function Eh(e,t,n){return n[t]!=null?n[t]:e.props[t]}function gY(e,t){return uw(e.children,function(n){return G.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Eh(n,"appear",e),enter:Eh(n,"enter",e),exit:Eh(n,"exit",e)})})}function yY(e,t,n){var i=uw(e.children),o=mY(t,i);return Object.keys(o).forEach(function(s){var f=o[s];if(G.isValidElement(f)){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(f,{onExited:n.bind(null,f),in:!0,exit:Eh(f,"exit",e),enter:Eh(f,"enter",e)}):!h&&d&&!b?o[s]=G.cloneElement(f,{in:!1}):h&&d&&G.isValidElement(y)&&(o[s]=G.cloneElement(f,{onExited:n.bind(null,f),in:y.props.in,exit:Eh(f,"exit",e),enter:Eh(f,"enter",e)}))}}),o}var vY={},bY=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},SY={component:"div",childFactory:function(t){return t}},cw=(function(e){HM(t,e);function t(i,o){var s;s=e.call(this,i,o)||this;var f=s.handleExited.bind(pY(s));return s.state={contextValue:{isMounting:!0},handleExited:f,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 f=s.children,d=s.handleExited,h=s.firstRender;return{children:h?gY(o,d):yY(o,f,d),firstRender:!1}},n.handleExited=function(o,s){var f=uw(this.props.children);o.key in f||(o.props.onExited&&o.props.onExited(s),this.mounted&&this.setState(function(d){var h=Ax({},d.children);return delete h[o.key],{children:h}}))},n.render=function(){var o=this.props,s=o.component,f=o.childFactory,d=jM(o,["component","childFactory"]),h=this.state.contextValue,y=bY(this.state.children).map(f);return delete d.appear,delete d.enter,delete d.exit,s===null?ce.createElement(Kx.Provider,{value:h},y):ce.createElement(Kx.Provider,{value:h},ce.createElement(s,d,y))},t})(ce.Component);cw.propTypes=vY.NODE_ENV!=="production"?{component:p.any,children:p.node,appear:p.bool,enter:p.bool,exit:p.bool,childFactory:p.func}:{},cw.defaultProps=SY;const YM={};function XM(e,t){const n=G.useRef(YM);return n.current===YM&&(n.current=e(t)),n}const xY=[];function EY(e){G.useEffect(e,xY)}class Zx{constructor(){j(this,"currentId",null);j(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});j(this,"disposeEffect",()=>this.clear)}static create(){return new Zx}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function sg(){const e=XM(Zx.create).current;return EY(e.disposeEffect),e}function wY(e){const{prototype:t={}}=e;return!!t.isReactComponent}function TY(e,t,n,i,o){const s=e[t],f=o||t;if(s==null||typeof window>"u")return null;let d;return typeof s=="function"&&!wY(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} \`${f}\` 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 Jx=su(p.elementType,TY),WM=e=>e.scrollTop;function e3(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 nc(e){return typeof e=="string"}function QM(e,t,n){return e===void 0||nc(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function KM(e,t,n){return typeof e=="function"?e(t,n):e}function Hv(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 ZM(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 JM(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:i,externalForwardedProps:o,className:s}=e;if(!t){const w=Et(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},R={...n,...o,...i};return w.length>0&&(R.className=w),Object.keys(C).length>0&&(R.style=C),{props:R,internalRef:void 0}}const f=Hv({...o,...i}),d=ZM(i),h=ZM(o),y=t(f),b=Et(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),x={...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(x).length>0&&(T.style=x),{props:T,internalRef:y.ref}}function rn(e,t){const{className:n,elementType:i,ownerState:o,externalForwardedProps:s,internalForwardedProps:f,shouldForwardComponentProp:d=!1,...h}=t,{component:y,slots:b={[e]:void 0},slotProps:x={[e]:void 0},...T}=s,w=b[e]||i,C=KM(x[e],o),{props:{component:R,..._},internalRef:N}=JM({className:n,...h,externalForwardedProps:e==="root"?T:void 0,externalSlotProps:C}),z=ii(N,C==null?void 0:C.ref,t.ref),B=e==="root"?R||y:R,V=QM(w,{...e==="root"&&!y&&!b[e]&&f,...e!=="root"&&!b[e]&&f,..._,...B&&!d&&{as:B},...B&&d&&{component:B},ref:z},o);return[w,V]}var AY={};function CY(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 eR(e,t,n,i){const o=e[t];if(o==null||!Number.isInteger(o)){const s=CY(o);return new RangeError(`Invalid ${i} \`${t}\` of type \`${s}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function tR(e,t,n,i){return e[t]===void 0?null:eR(e,t,n,i)}function fw(){return null}tR.isRequired=eR,fw.isRequired=fw;const nR=AY.NODE_ENV==="production"?fw:tR;function OY(e){return Kt("MuiPaper",e)}Zt("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 rR={};const MY=e=>{const{square:t,elevation:n,variant:i,classes:o}=e,s={root:["root",i,!t&&"rounded",i==="elevation"&&`elevation${n}`]};return tn(s,OY,o)},RY=at("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}`]]}})(Ft(({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)"}}]}))),qv=G.forwardRef(function(t,n){var w;const i=sn({props:t,name:"MuiPaper"}),o=nf(),{className:s,component:f="div",elevation:d=1,square:h=!1,variant:y="elevation",...b}=i,x={...i,component:f,elevation:d,square:h,variant:y},T=MY(x);return rR.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(`
`)),xe.jsx(RY,{as:f,ownerState:x,className:Et(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(${Px("#fff",iw(d))}, ${Px("#fff",iw(d))})`}},...b.style}})});rR.NODE_ENV!=="production"&&(qv.propTypes={children:p.node,classes:p.object,className:p.string,component:p.elementType,elevation:su(nR,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 fo=p.oneOfType([p.func,p.object]);var _Y={};function ug(e){try{return e.matches(":focus-visible")}catch{_Y.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 t3{constructor(){j(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 t3}static use(){const t=XM(t3.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=kY(),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 DY(){return t3.use()}function kY(){let e,t;const n=new Promise((i,o)=>{e=i,t=o});return n.resolve=e,n.reject=t,n}var NY={};function iR(e){const{className:t,classes:n,pulsate:i=!1,rippleX:o,rippleY:s,rippleSize:f,in:d,onExited:h,timeout:y}=e,[b,x]=G.useState(!1),T=Et(t,n.ripple,n.rippleVisible,i&&n.ripplePulsate),w={width:f,height:f,top:-(f/2)+s,left:-(f/2)+o},C=Et(n.child,b&&n.childLeaving,i&&n.childPulsate);return!d&&!b&&x(!0),G.useEffect(()=>{if(!d&&h!=null){const R=setTimeout(h,y);return()=>{clearTimeout(R)}}},[h,d,y]),xe.jsx("span",{className:T,style:w,children:xe.jsx("span",{className:C})})}NY.NODE_ENV!=="production"&&(iR.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 Ql=Zt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);var zY={};const dw=550,IY=80,LY=Nv`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

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

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

  50% {
    transform: scale(0.92);
  }

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

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

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

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

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

  & .${Ql.childPulsate} {
    position: absolute;
    /* @noflip */
    left: 0px;
    top: 0;
    animation-name: ${VY};
    animation-duration: 2500ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
    animation-iteration-count: infinite;
    animation-delay: 200ms;
  }
`,aR=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:s={},className:f,...d}=i,[h,y]=G.useState([]),b=G.useRef(0),x=G.useRef(null);G.useEffect(()=>{x.current&&(x.current(),x.current=null)},[h]);const T=G.useRef(!1),w=sg(),C=G.useRef(null),R=G.useRef(null),_=G.useCallback(V=>{const{pulsate:I,rippleX:P,rippleY:Y,rippleSize:se,cb:ue}=V;y(re=>[...re,xe.jsx(PY,{classes:{ripple:Et(s.ripple,Ql.ripple),rippleVisible:Et(s.rippleVisible,Ql.rippleVisible),ripplePulsate:Et(s.ripplePulsate,Ql.ripplePulsate),child:Et(s.child,Ql.child),childLeaving:Et(s.childLeaving,Ql.childLeaving),childPulsate:Et(s.childPulsate,Ql.childPulsate)},timeout:dw,pulsate:I,rippleX:P,rippleY:Y,rippleSize:se},b.current)]),b.current+=1,x.current=ue},[s]),N=G.useCallback((V={},I={},P=()=>{})=>{const{pulsate:Y=!1,center:se=o||I.pulsate,fakeElement:ue=!1}=I;if((V==null?void 0:V.type)==="mousedown"&&T.current){T.current=!1;return}(V==null?void 0:V.type)==="touchstart"&&(T.current=!0);const re=ue?null:R.current,le=re?re.getBoundingClientRect():{width:0,height:0,left:0,top:0};let $,oe,W;if(se||V===void 0||V.clientX===0&&V.clientY===0||!V.clientX&&!V.touches)$=Math.round(le.width/2),oe=Math.round(le.height/2);else{const{clientX:ie,clientY:K}=V.touches&&V.touches.length>0?V.touches[0]:V;$=Math.round(ie-le.left),oe=Math.round(K-le.top)}if(se)W=Math.sqrt((2*le.width**2+le.height**2)/3),W%2===0&&(W+=1);else{const ie=Math.max(Math.abs((re?re.clientWidth:0)-$),$)*2+2,K=Math.max(Math.abs((re?re.clientHeight:0)-oe),oe)*2+2;W=Math.sqrt(ie**2+K**2)}V!=null&&V.touches?C.current===null&&(C.current=()=>{_({pulsate:Y,rippleX:$,rippleY:oe,rippleSize:W,cb:P})},w.start(IY,()=>{C.current&&(C.current(),C.current=null)})):_({pulsate:Y,rippleX:$,rippleY:oe,rippleSize:W,cb:P})},[o,_,w]),z=G.useCallback(()=>{N({},{pulsate:!0})},[N]),B=G.useCallback((V,I)=>{if(w.clear(),(V==null?void 0:V.type)==="touchend"&&C.current){C.current(),C.current=null,w.start(0,()=>{B(V,I)});return}C.current=null,y(P=>P.length>0?P.slice(1):P),x.current=I},[w]);return G.useImperativeHandle(n,()=>({pulsate:z,start:N,stop:B}),[z,N,B]),xe.jsx(UY,{className:Et(Ql.root,s.root,f),ref:R,...d,children:xe.jsx(cw,{component:null,exit:!0,children:h})})});zY.NODE_ENV!=="production"&&(aR.propTypes={center:p.bool,classes:p.object,className:p.string});function $Y(e){return Kt("MuiButtonBase",e)}const jY=Zt("MuiButtonBase",["root","disabled","focusVisible"]);var HY={};const qY=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:i,classes:o}=e,f=tn({root:["root",t&&"disabled",n&&"focusVisible"]},$Y,o);return n&&i&&(f.root+=` ${i}`),f},FY=at("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"},[`&.${jY.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),zd=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:s=!1,children:f,className:d,component:h="button",disabled:y=!1,disableRipple:b=!1,disableTouchRipple:x=!1,focusRipple:T=!1,focusVisibleClassName:w,LinkComponent:C="a",onBlur:R,onClick:_,onContextMenu:N,onDragLeave:z,onFocus:B,onFocusVisible:V,onKeyDown:I,onKeyUp:P,onMouseDown:Y,onMouseLeave:se,onMouseUp:ue,onTouchEnd:re,onTouchMove:le,onTouchStart:$,tabIndex:oe=0,TouchRippleProps:W,touchRippleRef:ie,type:K,...ae}=i,pe=G.useRef(null),Te=DY(),ee=ii(Te.ref,ie),[q,J]=G.useState(!1);y&&q&&J(!1),G.useImperativeHandle(o,()=>({focusVisible:()=>{J(!0),pe.current.focus()}}),[]);const F=Te.shouldMount&&!b&&!y;G.useEffect(()=>{q&&T&&!b&&Te.pulsate()},[b,T,q,Te]);const Re=af(Te,"start",Y,x),be=af(Te,"stop",N,x),De=af(Te,"stop",z,x),Pe=af(Te,"stop",ue,x),Fe=af(Te,"stop",Mt=>{q&&Mt.preventDefault(),se&&se(Mt)},x),Ze=af(Te,"start",$,x),Qe=af(Te,"stop",re,x),tt=af(Te,"stop",le,x),$e=af(Te,"stop",Mt=>{ug(Mt.target)||J(!1),R&&R(Mt)},!1),_e=Wl(Mt=>{pe.current||(pe.current=Mt.currentTarget),ug(Mt.target)&&(J(!0),V&&V(Mt)),B&&B(Mt)}),ut=()=>{const Mt=pe.current;return h&&h!=="button"&&!(Mt.tagName==="A"&&Mt.href)},Ot=Wl(Mt=>{T&&!Mt.repeat&&q&&Mt.key===" "&&Te.stop(Mt,()=>{Te.start(Mt)}),Mt.target===Mt.currentTarget&&ut()&&Mt.key===" "&&Mt.preventDefault(),I&&I(Mt),Mt.target===Mt.currentTarget&&ut()&&Mt.key==="Enter"&&!y&&(Mt.preventDefault(),_&&_(Mt))}),Qt=Wl(Mt=>{T&&Mt.key===" "&&q&&!Mt.defaultPrevented&&Te.stop(Mt,()=>{Te.pulsate(Mt)}),P&&P(Mt),_&&Mt.target===Mt.currentTarget&&ut()&&Mt.key===" "&&!Mt.defaultPrevented&&_(Mt)});let vt=h;vt==="button"&&(ae.href||ae.to)&&(vt=C);const Lt={};if(vt==="button"){const Mt=!!ae.formAction;Lt.type=K===void 0&&!Mt?"button":K,Lt.disabled=y}else!ae.href&&!ae.to&&(Lt.role="button"),y&&(Lt["aria-disabled"]=y);const un=ii(n,pe),Dn={...i,centerRipple:s,component:h,disabled:y,disableRipple:b,disableTouchRipple:x,focusRipple:T,tabIndex:oe,focusVisible:q},lt=qY(Dn);return xe.jsxs(FY,{as:vt,className:Et(lt.root,d),ownerState:Dn,onBlur:$e,onClick:_,onContextMenu:be,onFocus:_e,onKeyDown:Ot,onKeyUp:Qt,onMouseDown:Re,onMouseLeave:Fe,onMouseUp:Pe,onDragLeave:De,onTouchEnd:Qe,onTouchMove:tt,onTouchStart:Ze,ref:un,tabIndex:y?-1:oe,type:K,...Lt,...ae,children:[f,F?xe.jsx(aR,{ref:ee,center:s,...W}):null]})});function af(e,t,n,i=!1){return Wl(o=>(n&&n(o),i||e[t](o),!0))}HY.NODE_ENV!=="production"&&(zd.propTypes={action:fo,centerRipple:p.bool,children:p.node,classes:p.object,className:p.string,component:Jx,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 GY(e){return typeof e.main=="string"}function YY(e,t=[]){if(!GY(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function qr(e=[]){return([,t])=>t&&YY(t,e)}function XY(e){return Kt("MuiAlert",e)}const oR=Zt("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 WY(e){return Kt("MuiCircularProgress",e)}Zt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);var QY={};const uu=44,hw=Nv`
  0% {
    transform: rotate(0deg);
  }

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

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

  100% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: -126px;
  }
`,KY=typeof hw!="string"?Y2`
        animation: ${hw} 1.4s linear infinite;
      `:null,ZY=typeof pw!="string"?Y2`
        animation: ${pw} 1.4s ease-in-out infinite;
      `:null,JY=e=>{const{classes:t,variant:n,color:i,disableShrink:o}=e,s={root:["root",n,`color${et(i)}`],svg:["svg"],track:["track"],circle:["circle",`circle${et(n)}`,o&&"circleDisableShrink"]};return tn(s,WY,t)},eX=at("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${et(n.color)}`]]}})(Ft(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:KY||{animation:`${hw} 1.4s linear infinite`}},...Object.entries(e.palette).filter(qr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),tX=at("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),nX=at("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${et(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Ft(({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:ZY||{animation:`${pw} 1.4s ease-in-out infinite`}}]}))),rX=at("circle",{name:"MuiCircularProgress",slot:"Track"})(Ft(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),Fv=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiCircularProgress"}),{className:o,color:s="primary",disableShrink:f=!1,enableTrackSlot:d=!1,size:h=40,style:y,thickness:b=3.6,value:x=0,variant:T="indeterminate",...w}=i,C={...i,color:s,disableShrink:f,size:h,thickness:b,value:x,variant:T,enableTrackSlot:d},R=JY(C),_={},N={},z={};if(T==="determinate"){const B=2*Math.PI*((uu-b)/2);_.strokeDasharray=B.toFixed(3),z["aria-valuenow"]=Math.round(x),_.strokeDashoffset=`${((100-x)/100*B).toFixed(3)}px`,N.transform="rotate(-90deg)"}return xe.jsx(eX,{className:Et(R.root,o),style:{width:h,height:h,...N,...y},ownerState:C,ref:n,role:"progressbar",...z,...w,children:xe.jsxs(tX,{className:R.svg,ownerState:C,viewBox:`${uu/2} ${uu/2} ${uu} ${uu}`,children:[d?xe.jsx(rX,{className:R.track,ownerState:C,cx:uu,cy:uu,r:(uu-b)/2,fill:"none",strokeWidth:b,"aria-hidden":"true"}):null,xe.jsx(nX,{className:R.circle,style:_,ownerState:C,cx:uu,cy:uu,r:(uu-b)/2,fill:"none",strokeWidth:b})]})})});QY.NODE_ENV!=="production"&&(Fv.propTypes={classes:p.object,className:p.string,color:p.oneOfType([p.oneOf(["inherit","primary","secondary","error","info","success","warning"]),p.string]),disableShrink:su(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 iX(e){return Kt("MuiIconButton",e)}const lR=Zt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]);var aX={};const oX=e=>{const{classes:t,disabled:n,color:i,edge:o,size:s,loading:f}=e,d={root:["root",f&&"loading",n&&"disabled",i!=="default"&&`color${et(i)}`,o&&`edge${et(o)}`,`size${et(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return tn(d,iX,t)},lX=at(zd,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${et(n.color)}`],n.edge&&t[`edge${et(n.edge)}`],t[`size${et(n.size)}`]]}})(Ft(({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}}]})),Ft(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(qr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(qr()).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)}}],[`&.${lR.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${lR.loading}`]:{color:"transparent"}}))),sX=at("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"}}]})),cg=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiIconButton"}),{edge:o=!1,children:s,className:f,color:d="default",disabled:h=!1,disableFocusRipple:y=!1,size:b="medium",id:x,loading:T=null,loadingIndicator:w,...C}=i,R=vh(x),_=w??xe.jsx(Fv,{"aria-labelledby":R,color:"inherit",size:16}),N={...i,edge:o,color:d,disabled:h,disableFocusRipple:y,loading:T,loadingIndicator:_,size:b},z=oX(N);return xe.jsxs(lX,{id:T?R:x,className:Et(z.root,f),centerRipple:!0,focusRipple:!y,disabled:h||T,ref:n,...C,ownerState:N,children:[typeof T=="boolean"&&xe.jsx("span",{className:z.loadingWrapper,style:{display:"contents"},children:xe.jsx(sX,{className:z.loadingIndicator,ownerState:N,children:T&&_})}),s]})});aX.NODE_ENV!=="production"&&(cg.propTypes={children:su(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 uX=Ri(xe.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"),cX=Ri(xe.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),fX=Ri(xe.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"),dX=Ri(xe.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"),hX=Ri(xe.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 pX={};const mX=e=>{const{variant:t,color:n,severity:i,classes:o}=e,s={root:["root",`color${et(n||i)}`,`${t}${et(n||i)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return tn(s,XY,o)},gX=at(qv,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${et(n.color||n.severity)}`]]}})(Ft(({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(qr(["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),[`& .${oR.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter(qr(["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}`,[`& .${oR.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}}})),...Object.entries(e.palette).filter(qr(["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)}}}))]}})),yX=at("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),vX=at("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),bX=at("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),sR={success:xe.jsx(uX,{fontSize:"inherit"}),warning:xe.jsx(cX,{fontSize:"inherit"}),error:xe.jsx(fX,{fontSize:"inherit"}),info:xe.jsx(dX,{fontSize:"inherit"})},uR=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiAlert"}),{action:o,children:s,className:f,closeText:d="Close",color:h,components:y={},componentsProps:b={},icon:x,iconMapping:T=sR,onClose:w,role:C="alert",severity:R="success",slotProps:_={},slots:N={},variant:z="standard",...B}=i,V={...i,color:h,severity:R,variant:z,colorSeverity:h||R},I=mX(V),P={slots:{closeButton:y.CloseButton,closeIcon:y.CloseIcon,...N},slotProps:{...b,..._}},[Y,se]=rn("root",{ref:n,shouldForwardComponentProp:!0,className:Et(I.root,f),elementType:gX,externalForwardedProps:{...P,...B},ownerState:V,additionalProps:{role:C,elevation:0}}),[ue,re]=rn("icon",{className:I.icon,elementType:yX,externalForwardedProps:P,ownerState:V}),[le,$]=rn("message",{className:I.message,elementType:vX,externalForwardedProps:P,ownerState:V}),[oe,W]=rn("action",{className:I.action,elementType:bX,externalForwardedProps:P,ownerState:V}),[ie,K]=rn("closeButton",{elementType:cg,externalForwardedProps:P,ownerState:V}),[ae,pe]=rn("closeIcon",{elementType:hX,externalForwardedProps:P,ownerState:V});return xe.jsxs(Y,{...se,children:[x!==!1?xe.jsx(ue,{...re,children:x||T[R]||sR[R]}):null,xe.jsx(le,{...$,children:s}),o!=null?xe.jsx(oe,{...W,children:o}):null,o==null&&w?xe.jsx(oe,{...W,children:xe.jsx(ie,{size:"small","aria-label":d,title:d,color:"inherit",onClick:w,...K,children:xe.jsx(ae,{fontSize:"small",...pe})})}):null]})});pX.NODE_ENV!=="production"&&(uR.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 SX(e){return Kt("MuiTypography",e)}const cR=Zt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);var xX={};const EX={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},wX=XG(),TX=e=>{const{align:t,gutterBottom:n,noWrap:i,paragraph:o,variant:s,classes:f}=e,d={root:["root",s,e.align!=="inherit"&&`align${et(t)}`,n&&"gutterBottom",i&&"noWrap",o&&"paragraph"]};return tn(d,SX,f)},AX=at("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${et(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ft(({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(qr()).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${et(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}}]}})),fR={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Fr=G.forwardRef(function(t,n){const{color:i,...o}=sn({props:t,name:"MuiTypography"}),s=!EX[i],f=wX({...o,...s&&{color:i}}),{align:d="inherit",className:h,component:y,gutterBottom:b=!1,noWrap:x=!1,paragraph:T=!1,variant:w="body1",variantMapping:C=fR,...R}=f,_={...f,align:d,color:i,className:h,component:y,gutterBottom:b,noWrap:x,paragraph:T,variant:w,variantMapping:C},N=y||(T?"p":C[w]||fR[w])||"span",z=TX(_);return xe.jsx(AX,{as:N,ref:n,className:Et(z.root,h),...R,ownerState:_,style:{...d!=="inherit"&&{"--Typography-textAlign":d},...R.style}})});xX.NODE_ENV!=="production"&&(Fr.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 CX={};function of(e,t,n,i,o){if(CX.NODE_ENV==="production")return null;const s=e[t],f=o||t;return s==null?null:s&&s.nodeType!==1?new Error(`Invalid ${i} \`${f}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}var Uo="top",Kl="bottom",Zl="right",Po="left",mw="auto",Gv=[Uo,Kl,Zl,Po],fg="start",Yv="end",OX="clippingParents",dR="viewport",Xv="popper",MX="reference",hR=Gv.reduce(function(e,t){return e.concat([t+"-"+fg,t+"-"+Yv])},[]),pR=[].concat(Gv,[mw]).reduce(function(e,t){return e.concat([t,t+"-"+fg,t+"-"+Yv])},[]),RX="beforeRead",_X="read",DX="afterRead",kX="beforeMain",NX="main",zX="afterMain",IX="beforeWrite",LX="write",BX="afterWrite",VX=[RX,_X,DX,kX,NX,zX,IX,LX,BX];function rc(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 wh(e){var t=bl(e).Element;return e instanceof t||e instanceof Element}function Jl(e){var t=bl(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function gw(e){if(typeof ShadowRoot>"u")return!1;var t=bl(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function UX(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];!Jl(s)||!rc(s)||(Object.assign(s.style,i),Object.keys(o).forEach(function(f){var d=o[f];d===!1?s.removeAttribute(f):s.setAttribute(f,d===!0?"":d)}))})}function PX(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]||{},f=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]),d=f.reduce(function(h,y){return h[y]="",h},{});!Jl(o)||!rc(o)||(Object.assign(o.style,d),Object.keys(s).forEach(function(h){o.removeAttribute(h)}))})}}const $X={name:"applyStyles",enabled:!0,phase:"write",fn:UX,effect:PX,requires:["computeStyles"]};function ic(e){return e.split("-")[0]}var Th=Math.max,n3=Math.min,dg=Math.round;function yw(){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 mR(){return!/^((?!chrome|android).)*safari/i.test(yw())}function hg(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),o=1,s=1;t&&Jl(e)&&(o=e.offsetWidth>0&&dg(i.width)/e.offsetWidth||1,s=e.offsetHeight>0&&dg(i.height)/e.offsetHeight||1);var f=wh(e)?bl(e):window,d=f.visualViewport,h=!mR()&&n,y=(i.left+(h&&d?d.offsetLeft:0))/o,b=(i.top+(h&&d?d.offsetTop:0))/s,x=i.width/o,T=i.height/s;return{width:x,height:T,top:b,right:y+x,bottom:b+T,left:y,x:y,y:b}}function vw(e){var t=hg(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 gR(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&gw(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function lf(e){return bl(e).getComputedStyle(e)}function jX(e){return["table","td","th"].indexOf(rc(e))>=0}function Id(e){return((wh(e)?e.ownerDocument:e.document)||window.document).documentElement}function r3(e){return rc(e)==="html"?e:e.assignedSlot||e.parentNode||(gw(e)?e.host:null)||Id(e)}function yR(e){return!Jl(e)||lf(e).position==="fixed"?null:e.offsetParent}function HX(e){var t=/firefox/i.test(yw()),n=/Trident/i.test(yw());if(n&&Jl(e)){var i=lf(e);if(i.position==="fixed")return null}var o=r3(e);for(gw(o)&&(o=o.host);Jl(o)&&["html","body"].indexOf(rc(o))<0;){var s=lf(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 Wv(e){for(var t=bl(e),n=yR(e);n&&jX(n)&&lf(n).position==="static";)n=yR(n);return n&&(rc(n)==="html"||rc(n)==="body"&&lf(n).position==="static")?t:n||HX(e)||t}function bw(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Qv(e,t,n){return Th(e,n3(t,n))}function qX(e,t,n){var i=Qv(e,t,n);return i>n?n:i}function vR(){return{top:0,right:0,bottom:0,left:0}}function bR(e){return Object.assign({},vR(),e)}function SR(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var FX=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,bR(typeof t!="number"?t:SR(t,Gv))};function GX(e){var t,n=e.state,i=e.name,o=e.options,s=n.elements.arrow,f=n.modifiersData.popperOffsets,d=ic(n.placement),h=bw(d),y=[Po,Zl].indexOf(d)>=0,b=y?"height":"width";if(!(!s||!f)){var x=FX(o.padding,n),T=vw(s),w=h==="y"?Uo:Po,C=h==="y"?Kl:Zl,R=n.rects.reference[b]+n.rects.reference[h]-f[h]-n.rects.popper[b],_=f[h]-n.rects.reference[h],N=Wv(s),z=N?h==="y"?N.clientHeight||0:N.clientWidth||0:0,B=R/2-_/2,V=x[w],I=z-T[b]-x[C],P=z/2-T[b]/2+B,Y=Qv(V,P,I),se=h;n.modifiersData[i]=(t={},t[se]=Y,t.centerOffset=Y-P,t)}}function YX(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)||gR(t.elements.popper,o)&&(t.elements.arrow=o))}const XX={name:"arrow",enabled:!0,phase:"main",fn:GX,effect:YX,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function pg(e){return e.split("-")[1]}var WX={top:"auto",right:"auto",bottom:"auto",left:"auto"};function QX(e,t){var n=e.x,i=e.y,o=t.devicePixelRatio||1;return{x:dg(n*o)/o||0,y:dg(i*o)/o||0}}function xR(e){var t,n=e.popper,i=e.popperRect,o=e.placement,s=e.variation,f=e.offsets,d=e.position,h=e.gpuAcceleration,y=e.adaptive,b=e.roundOffsets,x=e.isFixed,T=f.x,w=T===void 0?0:T,C=f.y,R=C===void 0?0:C,_=typeof b=="function"?b({x:w,y:R}):{x:w,y:R};w=_.x,R=_.y;var N=f.hasOwnProperty("x"),z=f.hasOwnProperty("y"),B=Po,V=Uo,I=window;if(y){var P=Wv(n),Y="clientHeight",se="clientWidth";if(P===bl(n)&&(P=Id(n),lf(P).position!=="static"&&d==="absolute"&&(Y="scrollHeight",se="scrollWidth")),P=P,o===Uo||(o===Po||o===Zl)&&s===Yv){V=Kl;var ue=x&&P===I&&I.visualViewport?I.visualViewport.height:P[Y];R-=ue-i.height,R*=h?1:-1}if(o===Po||(o===Uo||o===Kl)&&s===Yv){B=Zl;var re=x&&P===I&&I.visualViewport?I.visualViewport.width:P[se];w-=re-i.width,w*=h?1:-1}}var le=Object.assign({position:d},y&&WX),$=b===!0?QX({x:w,y:R},bl(n)):{x:w,y:R};if(w=$.x,R=$.y,h){var oe;return Object.assign({},le,(oe={},oe[V]=z?"0":"",oe[B]=N?"0":"",oe.transform=(I.devicePixelRatio||1)<=1?"translate("+w+"px, "+R+"px)":"translate3d("+w+"px, "+R+"px, 0)",oe))}return Object.assign({},le,(t={},t[V]=z?R+"px":"",t[B]=N?w+"px":"",t.transform="",t))}function KX(e){var t=e.state,n=e.options,i=n.gpuAcceleration,o=i===void 0?!0:i,s=n.adaptive,f=s===void 0?!0:s,d=n.roundOffsets,h=d===void 0?!0:d,y={placement:ic(t.placement),variation:pg(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,xR(Object.assign({},y,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:f,roundOffsets:h})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,xR(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 ZX={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:KX,data:{}};var i3={passive:!0};function JX(e){var t=e.state,n=e.instance,i=e.options,o=i.scroll,s=o===void 0?!0:o,f=i.resize,d=f===void 0?!0:f,h=bl(t.elements.popper),y=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&y.forEach(function(b){b.addEventListener("scroll",n.update,i3)}),d&&h.addEventListener("resize",n.update,i3),function(){s&&y.forEach(function(b){b.removeEventListener("scroll",n.update,i3)}),d&&h.removeEventListener("resize",n.update,i3)}}const eW={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:JX,data:{}};var tW={left:"right",right:"left",bottom:"top",top:"bottom"};function a3(e){return e.replace(/left|right|bottom|top/g,function(t){return tW[t]})}var nW={start:"end",end:"start"};function ER(e){return e.replace(/start|end/g,function(t){return nW[t]})}function Sw(e){var t=bl(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function xw(e){return hg(Id(e)).left+Sw(e).scrollLeft}function rW(e,t){var n=bl(e),i=Id(e),o=n.visualViewport,s=i.clientWidth,f=i.clientHeight,d=0,h=0;if(o){s=o.width,f=o.height;var y=mR();(y||!y&&t==="fixed")&&(d=o.offsetLeft,h=o.offsetTop)}return{width:s,height:f,x:d+xw(e),y:h}}function iW(e){var t,n=Id(e),i=Sw(e),o=(t=e.ownerDocument)==null?void 0:t.body,s=Th(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),f=Th(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),d=-i.scrollLeft+xw(e),h=-i.scrollTop;return lf(o||n).direction==="rtl"&&(d+=Th(n.clientWidth,o?o.clientWidth:0)-s),{width:s,height:f,x:d,y:h}}function Ew(e){var t=lf(e),n=t.overflow,i=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function wR(e){return["html","body","#document"].indexOf(rc(e))>=0?e.ownerDocument.body:Jl(e)&&Ew(e)?e:wR(r3(e))}function Kv(e,t){var n;t===void 0&&(t=[]);var i=wR(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=bl(i),f=o?[s].concat(s.visualViewport||[],Ew(i)?i:[]):i,d=t.concat(f);return o?d:d.concat(Kv(r3(f)))}function ww(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function aW(e,t){var n=hg(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 TR(e,t,n){return t===dR?ww(rW(e,n)):wh(t)?aW(t,n):ww(iW(Id(e)))}function oW(e){var t=Kv(r3(e)),n=["absolute","fixed"].indexOf(lf(e).position)>=0,i=n&&Jl(e)?Wv(e):e;return wh(i)?t.filter(function(o){return wh(o)&&gR(o,i)&&rc(o)!=="body"}):[]}function lW(e,t,n,i){var o=t==="clippingParents"?oW(e):[].concat(t),s=[].concat(o,[n]),f=s[0],d=s.reduce(function(h,y){var b=TR(e,y,i);return h.top=Th(b.top,h.top),h.right=n3(b.right,h.right),h.bottom=n3(b.bottom,h.bottom),h.left=Th(b.left,h.left),h},TR(e,f,i));return d.width=d.right-d.left,d.height=d.bottom-d.top,d.x=d.left,d.y=d.top,d}function AR(e){var t=e.reference,n=e.element,i=e.placement,o=i?ic(i):null,s=i?pg(i):null,f=t.x+t.width/2-n.width/2,d=t.y+t.height/2-n.height/2,h;switch(o){case Uo:h={x:f,y:t.y-n.height};break;case Kl:h={x:f,y:t.y+t.height};break;case Zl:h={x:t.x+t.width,y:d};break;case Po:h={x:t.x-n.width,y:d};break;default:h={x:t.x,y:t.y}}var y=o?bw(o):null;if(y!=null){var b=y==="y"?"height":"width";switch(s){case fg:h[y]=h[y]-(t[b]/2-n[b]/2);break;case Yv:h[y]=h[y]+(t[b]/2-n[b]/2);break}}return h}function Zv(e,t){t===void 0&&(t={});var n=t,i=n.placement,o=i===void 0?e.placement:i,s=n.strategy,f=s===void 0?e.strategy:s,d=n.boundary,h=d===void 0?OX:d,y=n.rootBoundary,b=y===void 0?dR:y,x=n.elementContext,T=x===void 0?Xv:x,w=n.altBoundary,C=w===void 0?!1:w,R=n.padding,_=R===void 0?0:R,N=bR(typeof _!="number"?_:SR(_,Gv)),z=T===Xv?MX:Xv,B=e.rects.popper,V=e.elements[C?z:T],I=lW(wh(V)?V:V.contextElement||Id(e.elements.popper),h,b,f),P=hg(e.elements.reference),Y=AR({reference:P,element:B,placement:o}),se=ww(Object.assign({},B,Y)),ue=T===Xv?se:P,re={top:I.top-ue.top+N.top,bottom:ue.bottom-I.bottom+N.bottom,left:I.left-ue.left+N.left,right:ue.right-I.right+N.right},le=e.modifiersData.offset;if(T===Xv&&le){var $=le[o];Object.keys(re).forEach(function(oe){var W=[Zl,Kl].indexOf(oe)>=0?1:-1,ie=[Uo,Kl].indexOf(oe)>=0?"y":"x";re[oe]+=$[ie]*W})}return re}function sW(e,t){t===void 0&&(t={});var n=t,i=n.placement,o=n.boundary,s=n.rootBoundary,f=n.padding,d=n.flipVariations,h=n.allowedAutoPlacements,y=h===void 0?pR:h,b=pg(i),x=b?d?hR:hR.filter(function(C){return pg(C)===b}):Gv,T=x.filter(function(C){return y.indexOf(C)>=0});T.length===0&&(T=x);var w=T.reduce(function(C,R){return C[R]=Zv(e,{placement:R,boundary:o,rootBoundary:s,padding:f})[ic(R)],C},{});return Object.keys(w).sort(function(C,R){return w[C]-w[R]})}function uW(e){if(ic(e)===mw)return[];var t=a3(e);return[ER(e),t,ER(t)]}function cW(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,f=n.altAxis,d=f===void 0?!0:f,h=n.fallbackPlacements,y=n.padding,b=n.boundary,x=n.rootBoundary,T=n.altBoundary,w=n.flipVariations,C=w===void 0?!0:w,R=n.allowedAutoPlacements,_=t.options.placement,N=ic(_),z=N===_,B=h||(z||!C?[a3(_)]:uW(_)),V=[_].concat(B).reduce(function(Re,be){return Re.concat(ic(be)===mw?sW(t,{placement:be,boundary:b,rootBoundary:x,padding:y,flipVariations:C,allowedAutoPlacements:R}):be)},[]),I=t.rects.reference,P=t.rects.popper,Y=new Map,se=!0,ue=V[0],re=0;re<V.length;re++){var le=V[re],$=ic(le),oe=pg(le)===fg,W=[Uo,Kl].indexOf($)>=0,ie=W?"width":"height",K=Zv(t,{placement:le,boundary:b,rootBoundary:x,altBoundary:T,padding:y}),ae=W?oe?Zl:Po:oe?Kl:Uo;I[ie]>P[ie]&&(ae=a3(ae));var pe=a3(ae),Te=[];if(s&&Te.push(K[$]<=0),d&&Te.push(K[ae]<=0,K[pe]<=0),Te.every(function(Re){return Re})){ue=le,se=!1;break}Y.set(le,Te)}if(se)for(var ee=C?3:1,q=function(be){var De=V.find(function(Pe){var Fe=Y.get(Pe);if(Fe)return Fe.slice(0,be).every(function(Ze){return Ze})});if(De)return ue=De,"break"},J=ee;J>0;J--){var F=q(J);if(F==="break")break}t.placement!==ue&&(t.modifiersData[i]._skip=!0,t.placement=ue,t.reset=!0)}}const fW={name:"flip",enabled:!0,phase:"main",fn:cW,requiresIfExists:["offset"],data:{_skip:!1}};function CR(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 OR(e){return[Uo,Zl,Kl,Po].some(function(t){return e[t]>=0})}function dW(e){var t=e.state,n=e.name,i=t.rects.reference,o=t.rects.popper,s=t.modifiersData.preventOverflow,f=Zv(t,{elementContext:"reference"}),d=Zv(t,{altBoundary:!0}),h=CR(f,i),y=CR(d,o,s),b=OR(h),x=OR(y);t.modifiersData[n]={referenceClippingOffsets:h,popperEscapeOffsets:y,isReferenceHidden:b,hasPopperEscaped:x},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":b,"data-popper-escaped":x})}const hW={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:dW};function pW(e,t,n){var i=ic(e),o=[Po,Uo].indexOf(i)>=0?-1:1,s=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,f=s[0],d=s[1];return f=f||0,d=(d||0)*o,[Po,Zl].indexOf(i)>=0?{x:d,y:f}:{x:f,y:d}}function mW(e){var t=e.state,n=e.options,i=e.name,o=n.offset,s=o===void 0?[0,0]:o,f=pR.reduce(function(b,x){return b[x]=pW(x,t.rects,s),b},{}),d=f[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]=f}const gW={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:mW};function yW(e){var t=e.state,n=e.name;t.modifiersData[n]=AR({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const vW={name:"popperOffsets",enabled:!0,phase:"read",fn:yW,data:{}};function bW(e){return e==="x"?"y":"x"}function SW(e){var t=e.state,n=e.options,i=e.name,o=n.mainAxis,s=o===void 0?!0:o,f=n.altAxis,d=f===void 0?!1:f,h=n.boundary,y=n.rootBoundary,b=n.altBoundary,x=n.padding,T=n.tether,w=T===void 0?!0:T,C=n.tetherOffset,R=C===void 0?0:C,_=Zv(t,{boundary:h,rootBoundary:y,padding:x,altBoundary:b}),N=ic(t.placement),z=pg(t.placement),B=!z,V=bw(N),I=bW(V),P=t.modifiersData.popperOffsets,Y=t.rects.reference,se=t.rects.popper,ue=typeof R=="function"?R(Object.assign({},t.rects,{placement:t.placement})):R,re=typeof ue=="number"?{mainAxis:ue,altAxis:ue}:Object.assign({mainAxis:0,altAxis:0},ue),le=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(P){if(s){var oe,W=V==="y"?Uo:Po,ie=V==="y"?Kl:Zl,K=V==="y"?"height":"width",ae=P[V],pe=ae+_[W],Te=ae-_[ie],ee=w?-se[K]/2:0,q=z===fg?Y[K]:se[K],J=z===fg?-se[K]:-Y[K],F=t.elements.arrow,Re=w&&F?vw(F):{width:0,height:0},be=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:vR(),De=be[W],Pe=be[ie],Fe=Qv(0,Y[K],Re[K]),Ze=B?Y[K]/2-ee-Fe-De-re.mainAxis:q-Fe-De-re.mainAxis,Qe=B?-Y[K]/2+ee+Fe+Pe+re.mainAxis:J+Fe+Pe+re.mainAxis,tt=t.elements.arrow&&Wv(t.elements.arrow),$e=tt?V==="y"?tt.clientTop||0:tt.clientLeft||0:0,_e=(oe=le==null?void 0:le[V])!=null?oe:0,ut=ae+Ze-_e-$e,Ot=ae+Qe-_e,Qt=Qv(w?n3(pe,ut):pe,ae,w?Th(Te,Ot):Te);P[V]=Qt,$[V]=Qt-ae}if(d){var vt,Lt=V==="x"?Uo:Po,un=V==="x"?Kl:Zl,Dn=P[I],lt=I==="y"?"height":"width",Mt=Dn+_[Lt],$n=Dn-_[un],$t=[Uo,Po].indexOf(N)!==-1,nt=(vt=le==null?void 0:le[I])!=null?vt:0,Ee=$t?Mt:Dn-Y[lt]-se[lt]-nt+re.altAxis,Ue=$t?Dn+Y[lt]+se[lt]-nt-re.altAxis:$n,st=w&&$t?qX(Ee,Dn,Ue):Qv(w?Ee:Mt,Dn,w?Ue:$n);P[I]=st,$[I]=st-Dn}t.modifiersData[i]=$}}const xW={name:"preventOverflow",enabled:!0,phase:"main",fn:SW,requiresIfExists:["offset"]};function EW(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function wW(e){return e===bl(e)||!Jl(e)?Sw(e):EW(e)}function TW(e){var t=e.getBoundingClientRect(),n=dg(t.width)/e.offsetWidth||1,i=dg(t.height)/e.offsetHeight||1;return n!==1||i!==1}function AW(e,t,n){n===void 0&&(n=!1);var i=Jl(t),o=Jl(t)&&TW(t),s=Id(t),f=hg(e,o,n),d={scrollLeft:0,scrollTop:0},h={x:0,y:0};return(i||!i&&!n)&&((rc(t)!=="body"||Ew(s))&&(d=wW(t)),Jl(t)?(h=hg(t,!0),h.x+=t.clientLeft,h.y+=t.clientTop):s&&(h.x=xw(s))),{x:f.left+d.scrollLeft-h.x,y:f.top+d.scrollTop-h.y,width:f.width,height:f.height}}function CW(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 f=[].concat(s.requires||[],s.requiresIfExists||[]);f.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 OW(e){var t=CW(e);return VX.reduce(function(n,i){return n.concat(t.filter(function(o){return o.phase===i}))},[])}function MW(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function RW(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 MR={placement:"bottom",modifiers:[],strategy:"absolute"};function RR(){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 _W(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,o=t.defaultOptions,s=o===void 0?MR:o;return function(d,h,y){y===void 0&&(y=s);var b={placement:"bottom",orderedModifiers:[],options:Object.assign({},MR,s),modifiersData:{},elements:{reference:d,popper:h},attributes:{},styles:{}},x=[],T=!1,w={state:b,setOptions:function(N){var z=typeof N=="function"?N(b.options):N;R(),b.options=Object.assign({},s,b.options,z),b.scrollParents={reference:wh(d)?Kv(d):d.contextElement?Kv(d.contextElement):[],popper:Kv(h)};var B=OW(RW([].concat(i,b.options.modifiers)));return b.orderedModifiers=B.filter(function(V){return V.enabled}),C(),w.update()},forceUpdate:function(){if(!T){var N=b.elements,z=N.reference,B=N.popper;if(RR(z,B)){b.rects={reference:AW(z,Wv(B),b.options.strategy==="fixed"),popper:vw(B)},b.reset=!1,b.placement=b.options.placement,b.orderedModifiers.forEach(function(re){return b.modifiersData[re.name]=Object.assign({},re.data)});for(var V=0;V<b.orderedModifiers.length;V++){if(b.reset===!0){b.reset=!1,V=-1;continue}var I=b.orderedModifiers[V],P=I.fn,Y=I.options,se=Y===void 0?{}:Y,ue=I.name;typeof P=="function"&&(b=P({state:b,options:se,name:ue,instance:w})||b)}}}},update:MW(function(){return new Promise(function(_){w.forceUpdate(),_(b)})}),destroy:function(){R(),T=!0}};if(!RR(d,h))return w;w.setOptions(y).then(function(_){!T&&y.onFirstUpdate&&y.onFirstUpdate(_)});function C(){b.orderedModifiers.forEach(function(_){var N=_.name,z=_.options,B=z===void 0?{}:z,V=_.effect;if(typeof V=="function"){var I=V({state:b,name:N,instance:w,options:B}),P=function(){};x.push(I||P)}})}function R(){x.forEach(function(_){return _()}),x=[]}return w}}var DW=[eW,vW,ZX,$X,gW,fW,xW,XX,hW],kW=_W({defaultModifiers:DW});function ac(e){var x;const{elementType:t,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:o=!1,...s}=e,f=o?{}:KM(n,i),{props:d,internalRef:h}=JM({...s,externalSlotProps:f}),y=ii(h,f==null?void 0:f.ref,(x=e.additionalProps)==null?void 0:x.ref);return QM(t,{...d,ref:y},i)}function mg(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 _R={};function NW(e){return typeof e=="function"?e():e}const Jv=G.forwardRef(function(t,n){const{children:i,container:o,disablePortal:s=!1}=t,[f,d]=G.useState(null),h=ii(G.isValidElement(i)?mg(i):null,n);if(Xl(()=>{s||d(NW(o)||document.body)},[o,s]),Xl(()=>{if(f&&!s)return BM(n,f),()=>{BM(n,null)}},[n,f,s]),s){if(G.isValidElement(i)){const y={ref:h};return G.cloneElement(i,y)}return i}return f&&qM.createPortal(i,f)});_R.NODE_ENV!=="production"&&(Jv.propTypes={children:p.node,container:p.oneOfType([of,p.func]),disablePortal:p.bool}),_R.NODE_ENV!=="production"&&(Jv.propTypes=hM(Jv.propTypes));function zW(e){return Kt("MuiPopper",e)}Zt("MuiPopper",["root"]);var Tw={};function IW(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 o3(e){return typeof e=="function"?e():e}function l3(e){return e.nodeType!==void 0}function LW(e){return!l3(e)}const BW=e=>{const{classes:t}=e;return tn({root:["root"]},zW,t)},VW={},UW=G.forwardRef(function(t,n){const{anchorEl:i,children:o,direction:s,disablePortal:f,modifiers:d,open:h,placement:y,popperOptions:b,popperRef:x,slotProps:T={},slots:w={},TransitionProps:C,ownerState:R,..._}=t,N=G.useRef(null),z=ii(N,n),B=G.useRef(null),V=ii(B,x),I=G.useRef(V);Xl(()=>{I.current=V},[V]),G.useImperativeHandle(x,()=>B.current,[]);const P=IW(y,s),[Y,se]=G.useState(P),[ue,re]=G.useState(o3(i));G.useEffect(()=>{B.current&&B.current.forceUpdate()}),G.useEffect(()=>{i&&re(o3(i))},[i]),Xl(()=>{if(!ue||!h)return;const ie=pe=>{se(pe.placement)};if(Tw.NODE_ENV!=="production"&&ue&&l3(ue)&&ue.nodeType===1){const pe=ue.getBoundingClientRect();!globalThis.MUI_TEST_ENV&&pe.top===0&&pe.left===0&&pe.right===0&&pe.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 K=[{name:"preventOverflow",options:{altBoundary:f}},{name:"flip",options:{altBoundary:f}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:pe})=>{ie(pe)}}];d!=null&&(K=K.concat(d)),b&&b.modifiers!=null&&(K=K.concat(b.modifiers));const ae=kW(ue,N.current,{placement:P,...b,modifiers:K});return I.current(ae),()=>{ae.destroy(),I.current(null)}},[ue,f,d,h,b,P]);const le={placement:Y};C!==null&&(le.TransitionProps=C);const $=BW(t),oe=w.root??"div",W=ac({elementType:oe,externalSlotProps:T.root,externalForwardedProps:_,additionalProps:{role:"tooltip",ref:z},ownerState:t,className:$.root});return xe.jsx(oe,{...W,children:typeof o=="function"?o(le):o})}),DR=G.forwardRef(function(t,n){const{anchorEl:i,children:o,container:s,direction:f="ltr",disablePortal:d=!1,keepMounted:h=!1,modifiers:y,open:b,placement:x="bottom",popperOptions:T=VW,popperRef:w,style:C,transition:R=!1,slotProps:_={},slots:N={},...z}=t,[B,V]=G.useState(!0),I=()=>{V(!1)},P=()=>{V(!0)};if(!h&&!b&&(!R||B))return null;let Y;if(s)Y=s;else if(i){const re=o3(i);Y=re&&l3(re)?xa(re).body:xa(null).body}const se=!b&&h&&(!R||B)?"none":void 0,ue=R?{in:b,onEnter:I,onExited:P}:void 0;return xe.jsx(Jv,{disablePortal:d,container:Y,children:xe.jsx(UW,{anchorEl:i,direction:f,disablePortal:d,modifiers:y,ref:n,open:R?!B:b,placement:x,popperOptions:T,popperRef:w,slotProps:_,slots:N,...z,style:{position:"fixed",top:0,left:0,display:se,...C},TransitionProps:ue,children:o})})});Tw.NODE_ENV!=="production"&&(DR.propTypes={anchorEl:su(p.oneOfType([of,p.object,p.func]),e=>{if(e.open){const t=o3(e.anchorEl);if(t&&l3(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(Tw.NODE_ENV!=="production"&&!globalThis.MUI_TEST_ENV&&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"||LW(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([of,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:fo,slotProps:p.shape({root:p.oneOfType([p.func,p.object])}),slots:p.shape({root:p.elementType}),transition:p.bool});var PW={};const $W=at(DR,{name:"MuiPopper",slot:"Root"})({}),Aw=G.forwardRef(function(t,n){const i=qx(),o=sn({props:t,name:"MuiPopper"}),{anchorEl:s,component:f,components:d,componentsProps:h,container:y,disablePortal:b,keepMounted:x,modifiers:T,open:w,placement:C,popperOptions:R,popperRef:_,transition:N,slots:z,slotProps:B,...V}=o,I=(z==null?void 0:z.root)??(d==null?void 0:d.Root),P={anchorEl:s,container:y,disablePortal:b,keepMounted:x,modifiers:T,open:w,placement:C,popperOptions:R,popperRef:_,transition:N,...V};return xe.jsx($W,{as:f,direction:i?"rtl":"ltr",slots:{root:I},slotProps:B??h,...P,ref:n})});PW.NODE_ENV!=="production"&&(Aw.propTypes={anchorEl:p.oneOfType([of,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([of,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:fo,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 jW=Ri(xe.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 HW(e){return Kt("MuiChip",e)}const In=Zt("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 kR={};const qW=e=>{const{classes:t,disabled:n,size:i,color:o,iconColor:s,onDelete:f,clickable:d,variant:h}=e,y={root:["root",h,n&&"disabled",`size${et(i)}`,`color${et(o)}`,d&&"clickable",d&&`clickableColor${et(o)}`,f&&"deletable",f&&`deletableColor${et(o)}`,`${h}${et(o)}`],label:["label",`label${et(i)}`],avatar:["avatar",`avatar${et(i)}`,`avatarColor${et(o)}`],icon:["icon",`icon${et(i)}`,`iconColor${et(s)}`],deleteIcon:["deleteIcon",`deleteIcon${et(i)}`,`deleteIconColor${et(o)}`,`deleteIcon${et(h)}Color${et(o)}`]};return tn(y,HW,t)},FW=at("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:i,iconColor:o,clickable:s,onDelete:f,size:d,variant:h}=n;return[{[`& .${In.avatar}`]:t.avatar},{[`& .${In.avatar}`]:t[`avatar${et(d)}`]},{[`& .${In.avatar}`]:t[`avatarColor${et(i)}`]},{[`& .${In.icon}`]:t.icon},{[`& .${In.icon}`]:t[`icon${et(d)}`]},{[`& .${In.icon}`]:t[`iconColor${et(o)}`]},{[`& .${In.deleteIcon}`]:t.deleteIcon},{[`& .${In.deleteIcon}`]:t[`deleteIcon${et(d)}`]},{[`& .${In.deleteIcon}`]:t[`deleteIconColor${et(i)}`]},{[`& .${In.deleteIcon}`]:t[`deleteIcon${et(h)}Color${et(i)}`]},t.root,t[`size${et(d)}`],t[`color${et(i)}`],s&&t.clickable,s&&i!=="default"&&t[`clickableColor${et(i)}`],f&&t.deletable,f&&i!=="default"&&t[`deletableColor${et(i)}`],t[h],t[`${h}${et(i)}`]]}})(Ft(({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",[`&.${In.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${In.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${In.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${In.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${In.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${In.icon}`]:{marginLeft:5,marginRight:-6},[`& .${In.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,[`& .${In.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${In.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(qr(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${In.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:{[`& .${In.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${In.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${In.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(qr(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${In.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}`)},[`&.${In.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(qr(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${In.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]}`,[`&.${In.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${In.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${In.avatar}`]:{marginLeft:4},[`& .${In.avatarSmall}`]:{marginLeft:2},[`& .${In.icon}`]:{marginLeft:4},[`& .${In.iconSmall}`]:{marginLeft:2},[`& .${In.deleteIcon}`]:{marginRight:5},[`& .${In.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(qr()).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)}`,[`&.${In.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${In.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${In.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),GW=at("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:i}=n;return[t.label,t[`label${et(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 NR(e){return e.key==="Backspace"||e.key==="Delete"}const zR=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiChip"}),{avatar:o,className:s,clickable:f,color:d="default",component:h,deleteIcon:y,disabled:b=!1,icon:x,label:T,onClick:w,onDelete:C,onKeyDown:R,onKeyUp:_,size:N="medium",variant:z="filled",tabIndex:B,skipFocusWhenDisabled:V=!1,slots:I={},slotProps:P={},...Y}=i,se=G.useRef(null),ue=ii(se,n),re=De=>{De.stopPropagation(),C(De)},le=De=>{De.currentTarget===De.target&&NR(De)&&De.preventDefault(),R&&R(De)},$=De=>{De.currentTarget===De.target&&C&&NR(De)&&C(De),_&&_(De)},oe=f!==!1&&w?!0:f,W=oe||C?zd:h||"div",ie={...i,component:W,disabled:b,size:N,color:d,iconColor:G.isValidElement(x)&&x.props.color||d,onDelete:!!C,clickable:oe,variant:z},K=qW(ie),ae=W===zd?{component:h||"div",focusVisibleClassName:K.focusVisible,...C&&{disableRipple:!0}}:{};let pe=null;C&&(pe=y&&G.isValidElement(y)?G.cloneElement(y,{className:Et(y.props.className,K.deleteIcon),onClick:re}):xe.jsx(jW,{className:K.deleteIcon,onClick:re}));let Te=null;o&&G.isValidElement(o)&&(Te=G.cloneElement(o,{className:Et(K.avatar,o.props.className)}));let ee=null;x&&G.isValidElement(x)&&(ee=G.cloneElement(x,{className:Et(K.icon,x.props.className)})),kR.NODE_ENV!=="production"&&Te&&ee&&console.error("MUI: The Chip component can not handle the avatar and the icon prop at the same time. Pick one.");const q={slots:I,slotProps:P},[J,F]=rn("root",{elementType:FW,externalForwardedProps:{...q,...Y},ownerState:ie,shouldForwardComponentProp:!0,ref:ue,className:Et(K.root,s),additionalProps:{disabled:oe&&b?!0:void 0,tabIndex:V&&b?-1:B,...ae},getSlotProps:De=>({...De,onClick:Pe=>{var Fe;(Fe=De.onClick)==null||Fe.call(De,Pe),w==null||w(Pe)},onKeyDown:Pe=>{var Fe;(Fe=De.onKeyDown)==null||Fe.call(De,Pe),le(Pe)},onKeyUp:Pe=>{var Fe;(Fe=De.onKeyUp)==null||Fe.call(De,Pe),$(Pe)}})}),[Re,be]=rn("label",{elementType:GW,externalForwardedProps:q,ownerState:ie,className:K.label});return xe.jsxs(J,{as:W,...F,children:[Te||ee,xe.jsx(Re,{...be,children:T}),pe]})});kR.NODE_ENV!=="production"&&(zR.propTypes={avatar:p.element,children:rY,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 YW={};function s3(e){return parseInt(e,10)||0}const XW={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function WW(e){for(const t in e)return!1;return!0}function IR(e){return WW(e)||e.outerHeightStyle===0&&!e.overflowing}const Cw=G.forwardRef(function(t,n){const{onChange:i,maxRows:o,minRows:s=1,style:f,value:d,...h}=t,{current:y}=G.useRef(d!=null),b=G.useRef(null),x=ii(n,b),T=G.useRef(null),w=G.useRef(null),C=G.useCallback(()=>{const B=b.current,V=w.current;if(!B||!V)return;const P=rf(B).getComputedStyle(B);if(P.width==="0px")return{outerHeightStyle:0,overflowing:!1};V.style.width=P.width,V.value=B.value||t.placeholder||"x",V.value.slice(-1)===`
`&&(V.value+=" ");const Y=P.boxSizing,se=s3(P.paddingBottom)+s3(P.paddingTop),ue=s3(P.borderBottomWidth)+s3(P.borderTopWidth),re=V.scrollHeight;V.value="x";const le=V.scrollHeight;let $=re;s&&($=Math.max(Number(s)*le,$)),o&&($=Math.min(Number(o)*le,$)),$=Math.max($,le);const oe=$+(Y==="border-box"?se+ue:0),W=Math.abs($-re)<=1;return{outerHeightStyle:oe,overflowing:W}},[o,s,t.placeholder]),R=Wl(()=>{const B=b.current,V=C();if(!B||!V||IR(V))return!1;const I=V.outerHeightStyle;return T.current!=null&&T.current!==I}),_=G.useCallback(()=>{const B=b.current,V=C();if(!B||!V||IR(V))return;const I=V.outerHeightStyle;T.current!==I&&(T.current=I,B.style.height=`${I}px`),B.style.overflow=V.overflowing?"hidden":""},[C]),N=G.useRef(-1);Xl(()=>{const B=LM(_),V=b==null?void 0:b.current;if(!V)return;const I=rf(V);I.addEventListener("resize",B);let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver(()=>{R()&&(P.unobserve(V),cancelAnimationFrame(N.current),_(),N.current=requestAnimationFrame(()=>{P.observe(V)}))}),P.observe(V)),()=>{B.clear(),cancelAnimationFrame(N.current),I.removeEventListener("resize",B),P&&P.disconnect()}},[C,_,R]),Xl(()=>{_()});const z=B=>{y||_();const V=B.target,I=V.value.length,P=V.value.endsWith(`
`),Y=V.selectionStart===I;P&&Y&&V.setSelectionRange(I,I),i&&i(B)};return xe.jsxs(G.Fragment,{children:[xe.jsx("textarea",{value:d,onChange:z,ref:x,rows:s,style:f,...h}),xe.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:w,tabIndex:-1,style:{...XW.shadow,...f,paddingTop:0,paddingBottom:0}})]})});YW.NODE_ENV!=="production"&&(Cw.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 Ld({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 QW={};const eb=G.createContext(void 0);QW.NODE_ENV!=="production"&&(eb.displayName="FormControlContext");function cu(){return G.useContext(eb)}function LR(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function u3(e,t=!1){return e&&(LR(e.value)&&e.value!==""||t&&LR(e.defaultValue)&&e.defaultValue!=="")}function KW(e){return e.startAdornment}function ZW(e){return Kt("MuiInputBase",e)}const gg=Zt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var tb={},BR;const c3=(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${et(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},f3=(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]},JW=e=>{const{classes:t,color:n,disabled:i,error:o,endAdornment:s,focused:f,formControl:d,fullWidth:h,hiddenLabel:y,multiline:b,readOnly:x,size:T,startAdornment:w,type:C}=e,R={root:["root",`color${et(n)}`,i&&"disabled",o&&"error",h&&"fullWidth",f&&"focused",d&&"formControl",T&&T!=="medium"&&`size${et(T)}`,b&&"multiline",w&&"adornedStart",s&&"adornedEnd",y&&"hiddenLabel",x&&"readOnly"],input:["input",i&&"disabled",C==="search"&&"inputTypeSearch",b&&"inputMultiline",T==="small"&&"inputSizeSmall",y&&"inputHiddenLabel",w&&"inputAdornedStart",s&&"inputAdornedEnd",x&&"readOnly"]};return tn(R,ZW,t)},d3=at("div",{name:"MuiInputBase",slot:"Root",overridesResolver:c3})(Ft(({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",[`&.${gg.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%"}}]}))),h3=at("input",{name:"MuiInputBase",slot:"Input",overridesResolver:f3})(Ft(({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] + .${gg.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},[`&.${gg.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"}}]}})),VR=YG({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),p3=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:f,className:d,color:h,components:y={},componentsProps:b={},defaultValue:x,disabled:T,disableInjectingGlobalStyles:w,endAdornment:C,error:R,fullWidth:_=!1,id:N,inputComponent:z="input",inputProps:B={},inputRef:V,margin:I,maxRows:P,minRows:Y,multiline:se=!1,name:ue,onBlur:re,onChange:le,onClick:$,onFocus:oe,onKeyDown:W,onKeyUp:ie,placeholder:K,readOnly:ae,renderSuffix:pe,rows:Te,size:ee,slotProps:q={},slots:J={},startAdornment:F,type:Re="text",value:be,...De}=i,Pe=B.value!=null?B.value:be,{current:Fe}=G.useRef(Pe!=null),Ze=G.useRef(),Qe=G.useCallback(bt=>{tb.NODE_ENV!=="production"&&bt&&bt.nodeName!=="INPUT"&&!bt.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(`
`))},[]),tt=ii(Ze,V,B.ref,Qe),[$e,_e]=G.useState(!1),ut=cu();tb.NODE_ENV!=="production"&&G.useEffect(()=>{if(ut)return ut.registerEffect()},[ut]);const Ot=Ld({props:i,muiFormControl:ut,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ot.focused=ut?ut.focused:$e,G.useEffect(()=>{!ut&&T&&$e&&(_e(!1),re&&re())},[ut,T,$e,re]);const Qt=ut&&ut.onFilled,vt=ut&&ut.onEmpty,Lt=G.useCallback(bt=>{u3(bt)?Qt&&Qt():vt&&vt()},[Qt,vt]);Xl(()=>{Fe&&Lt({value:Pe})},[Pe,Lt,Fe]);const un=bt=>{oe&&oe(bt),B.onFocus&&B.onFocus(bt),ut&&ut.onFocus?ut.onFocus(bt):_e(!0)},Dn=bt=>{re&&re(bt),B.onBlur&&B.onBlur(bt),ut&&ut.onBlur?ut.onBlur(bt):_e(!1)},lt=(bt,...pn)=>{if(!Fe){const kt=bt.target||Ze.current;if(kt==null)throw new Error(tb.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.":Jc(1));Lt({value:kt.value})}B.onChange&&B.onChange(bt,...pn),le&&le(bt,...pn)};G.useEffect(()=>{Lt(Ze.current)},[]);const Mt=bt=>{Ze.current&&bt.currentTarget===bt.target&&Ze.current.focus(),$&&$(bt)};let $n=z,$t=B;se&&$n==="input"&&(Te?(tb.NODE_ENV!=="production"&&(Y||P)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),$t={type:void 0,minRows:Te,maxRows:Te,...$t}):$t={type:void 0,maxRows:P,minRows:Y,...$t},$n=Cw);const nt=bt=>{Lt(bt.animationName==="mui-auto-fill-cancel"?Ze.current:{value:"x"})};G.useEffect(()=>{ut&&ut.setAdornedStart(!!F)},[ut,F]);const Ee={...i,color:Ot.color||"primary",disabled:Ot.disabled,endAdornment:C,error:Ot.error,focused:Ot.focused,formControl:ut,fullWidth:_,hiddenLabel:Ot.hiddenLabel,multiline:se,size:Ot.size,startAdornment:F,type:Re},Ue=JW(Ee),st=J.root||y.Root||d3,mt=q.root||b.root||{},dt=J.input||y.Input||h3;return $t={...$t,...q.input??b.input},xe.jsxs(G.Fragment,{children:[!w&&typeof VR=="function"&&(BR||(BR=xe.jsx(VR,{}))),xe.jsxs(st,{...mt,ref:n,onClick:Mt,...De,...!nc(st)&&{ownerState:{...Ee,...mt.ownerState}},className:Et(Ue.root,mt.className,d,ae&&"MuiInputBase-readOnly"),children:[F,xe.jsx(eb.Provider,{value:null,children:xe.jsx(dt,{"aria-invalid":Ot.error,"aria-describedby":o,autoComplete:s,autoFocus:f,defaultValue:x,disabled:Ot.disabled,id:N,onAnimationStart:nt,name:ue,placeholder:K,readOnly:ae,required:Ot.required,rows:Te,value:Pe,onKeyDown:W,onKeyUp:ie,type:Re,...$t,...!nc(dt)&&{as:$n,ownerState:{...Ee,...$t.ownerState}},ref:tt,className:Et(Ue.input,$t.className,ae&&"MuiInputBase-readOnly"),onBlur:Dn,onChange:lt,onFocus:un})}),C,pe?pe({...Ot,startAdornment:F}):null]})]})});tb.NODE_ENV!=="production"&&(p3.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:Jx,inputProps:p.object,inputRef:fo,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 eQ(e){return Kt("MuiInput",e)}const nb={...gg,...Zt("MuiInput",["root","underline","input"])};function tQ(e){return Kt("MuiOutlinedInput",e)}const oc={...gg,...Zt("MuiOutlinedInput",["root","notchedOutline","input"])};function nQ(e){return Kt("MuiFilledInput",e)}const Ah={...gg,...Zt("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},rQ=Ri(xe.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),iQ=Ri(xe.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 aQ(e){return Kt("MuiAvatar",e)}Zt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);var oQ={};const lQ=e=>{const{classes:t,variant:n,colorDefault:i}=e;return tn({root:["root",n,i&&"colorDefault"],img:["img"],fallback:["fallback"]},aQ,t)},sQ=at("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Ft(({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]})}}}]}))),uQ=at("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),cQ=at(iQ,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function fQ({crossOrigin:e,referrerPolicy:t,src:n,srcSet:i}){const[o,s]=G.useState(!1);return G.useEffect(()=>{if(!n&&!i)return;s(!1);let f=!0;const d=new Image;return d.onload=()=>{f&&s("loaded")},d.onerror=()=>{f&&s("error")},d.crossOrigin=e,d.referrerPolicy=t,d.src=n,i&&(d.srcset=i),()=>{f=!1}},[e,t,n,i]),o}const UR=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiAvatar"}),{alt:o,children:s,className:f,component:d="div",slots:h={},slotProps:y={},imgProps:b,sizes:x,src:T,srcSet:w,variant:C="circular",...R}=i;let _=null;const N={...i,component:d,variant:C},z=fQ({...b,...typeof y.img=="function"?y.img(N):y.img,src:T,srcSet:w}),B=T||w,V=B&&z!=="error";N.colorDefault=!V,delete N.ownerState;const I=lQ(N),[P,Y]=rn("root",{ref:n,className:Et(I.root,f),elementType:sQ,externalForwardedProps:{slots:h,slotProps:y,component:d,...R},ownerState:N}),[se,ue]=rn("img",{className:I.img,elementType:uQ,externalForwardedProps:{slots:h,slotProps:{img:{...b,...y.img}}},additionalProps:{alt:o,src:T,srcSet:w,sizes:x},ownerState:N}),[re,le]=rn("fallback",{className:I.fallback,elementType:cQ,externalForwardedProps:{slots:h,slotProps:y},shouldForwardComponentProp:!0,ownerState:N});return V?_=xe.jsx(se,{...ue}):s||s===0?_=s:B&&o?_=o[0]:_=xe.jsx(re,{...le}),xe.jsx(P,{...Y,children:_})});oQ.NODE_ENV!=="production"&&(UR.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 dQ(e){const{prototype:t={}}=e;return!!t.isReactComponent}function PR(e,t,n,i,o){const s=e[t],f=o||t;if(s==null||typeof window>"u")return null;let d;const h=s.type;return typeof h=="function"&&!dQ(h)&&(d="Did you accidentally use a plain function component for an element instead?"),d!==void 0?new Error(`Invalid ${i} \`${f}\` 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 yg=su(p.element,PR);yg.isRequired=su(p.element.isRequired,PR);var hQ={};const pQ={entering:{opacity:1},entered:{opacity:1}},m3=G.forwardRef(function(t,n){const i=nf(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:s,appear:f=!0,children:d,easing:h,in:y,onEnter:b,onEntered:x,onEntering:T,onExit:w,onExited:C,onExiting:R,style:_,timeout:N=o,TransitionComponent:z=tc,...B}=t,V=G.useRef(null),I=ii(V,mg(d),n),P=W=>ie=>{if(W){const K=V.current;ie===void 0?W(K):W(K,ie)}},Y=P(T),se=P((W,ie)=>{WM(W);const K=e3({style:_,timeout:N,easing:h},{mode:"enter"});W.style.webkitTransition=i.transitions.create("opacity",K),W.style.transition=i.transitions.create("opacity",K),b&&b(W,ie)}),ue=P(x),re=P(R),le=P(W=>{const ie=e3({style:_,timeout:N,easing:h},{mode:"exit"});W.style.webkitTransition=i.transitions.create("opacity",ie),W.style.transition=i.transitions.create("opacity",ie),w&&w(W)}),$=P(C),oe=W=>{s&&s(V.current,W)};return xe.jsx(z,{appear:f,in:y,nodeRef:V,onEnter:se,onEntered:ue,onEntering:Y,onExit:le,onExited:$,onExiting:re,addEndListener:oe,timeout:N,...B,children:(W,{ownerState:ie,...K})=>G.cloneElement(d,{style:{opacity:0,visibility:W==="exited"&&!y?"hidden":void 0,...pQ[W],..._,...d.props.style},ref:I,...K})})});hQ.NODE_ENV!=="production"&&(m3.propTypes={addEndListener:p.func,appear:p.bool,children:yg.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 mQ(e){return Kt("MuiBackdrop",e)}Zt("MuiBackdrop",["root","invisible"]);var gQ={};const yQ=e=>{const{classes:t,invisible:n}=e;return tn({root:["root",n&&"invisible"]},mQ,t)},vQ=at("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"}}]}),Ow=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiBackdrop"}),{children:o,className:s,component:f="div",invisible:d=!1,open:h,components:y={},componentsProps:b={},slotProps:x={},slots:T={},TransitionComponent:w,transitionDuration:C,...R}=i,_={...i,component:f,invisible:d},N=yQ(_),z={transition:w,root:y.Root,...T},B={...b,...x},V={component:f,slots:z,slotProps:B},[I,P]=rn("root",{elementType:vQ,externalForwardedProps:V,className:Et(N.root,s),ownerState:_}),[Y,se]=rn("transition",{elementType:m3,externalForwardedProps:V,ownerState:_});return xe.jsx(Y,{in:h,timeout:C,...R,...se,children:xe.jsx(I,{"aria-hidden":!0,...P,ref:n,children:o})})});gQ.NODE_ENV!=="production"&&(Ow.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 bQ=Zt("MuiBox",["root"]);var SQ={};const xQ=NM(),Si=dF({themeId:Xx,defaultTheme:xQ,defaultClassName:bQ.root,generateClassName:eO.generate});SQ.NODE_ENV!=="production"&&(Si.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 EQ(e){return Kt("MuiButton",e)}const Ch=Zt("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 wQ={};const $R=G.createContext({});wQ.NODE_ENV!=="production"&&($R.displayName="ButtonGroupContext");var TQ={};const jR=G.createContext(void 0);TQ.NODE_ENV!=="production"&&(jR.displayName="ButtonGroupButtonContext");var AQ={};const CQ=e=>{const{color:t,disableElevation:n,fullWidth:i,size:o,variant:s,loading:f,loadingPosition:d,classes:h}=e,y={root:["root",f&&"loading",s,`${s}${et(t)}`,`size${et(o)}`,`${s}Size${et(o)}`,`color${et(t)}`,n&&"disableElevation",i&&"fullWidth",f&&`loadingPosition${et(d)}`],startIcon:["icon","startIcon",`iconSize${et(o)}`],endIcon:["icon","endIcon",`iconSize${et(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},b=tn(y,EQ,h);return{...h,...b}},HR=[{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}}}],OQ=at(zd,{shouldForwardProp:e=>Sa(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${et(n.color)}`],t[`size${et(n.size)}`],t[`${n.variant}Size${et(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Ft(({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"},[`&.${Ch.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]},[`&.${Ch.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Ch.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)",[`&.${Ch.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(qr()).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"},[`&.${Ch.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Ch.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}),[`&.${Ch.loading}`]:{color:"transparent"}}}]}})),MQ=at("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${et(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}},...HR]})),RQ=at("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${et(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}},...HR]})),_Q=at("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}}]})),qR=at("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),vg=G.forwardRef(function(t,n){const i=G.useContext($R),o=G.useContext(jR),s=Bv(i,t),f=sn({props:s,name:"MuiButton"}),{children:d,color:h="primary",component:y="button",className:b,disabled:x=!1,disableElevation:T=!1,disableFocusRipple:w=!1,endIcon:C,focusVisibleClassName:R,fullWidth:_=!1,id:N,loading:z=null,loadingIndicator:B,loadingPosition:V="center",size:I="medium",startIcon:P,type:Y,variant:se="text",...ue}=f,re=vh(N),le=B??xe.jsx(Fv,{"aria-labelledby":re,color:"inherit",size:16}),$={...f,color:h,component:y,disabled:x,disableElevation:T,disableFocusRipple:w,fullWidth:_,loading:z,loadingIndicator:le,loadingPosition:V,size:I,type:Y,variant:se},oe=CQ($),W=(P||z&&V==="start")&&xe.jsx(MQ,{className:oe.startIcon,ownerState:$,children:P||xe.jsx(qR,{className:oe.loadingIconPlaceholder,ownerState:$})}),ie=(C||z&&V==="end")&&xe.jsx(RQ,{className:oe.endIcon,ownerState:$,children:C||xe.jsx(qR,{className:oe.loadingIconPlaceholder,ownerState:$})}),K=o||"",ae=typeof z=="boolean"?xe.jsx("span",{className:oe.loadingWrapper,style:{display:"contents"},children:z&&xe.jsx(_Q,{className:oe.loadingIndicator,ownerState:$,children:le})}):null;return xe.jsxs(OQ,{ownerState:$,className:Et(i.className,oe.root,b,K),component:y,disabled:x||z,focusRipple:!w,focusVisibleClassName:Et(oe.focusVisible,R),ref:n,type:Y,id:z?re:N,...ue,classes:oe,children:[W,V!=="end"&&ae,d,V==="end"&&ae,ie]})});AQ.NODE_ENV!=="production"&&(vg.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 DQ(e){return Kt("PrivateSwitchBase",e)}Zt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var kQ={};const NQ=e=>{const{classes:t,checked:n,disabled:i,edge:o}=e,s={root:["root",n&&"checked",i&&"disabled",o&&`edge${et(o)}`],input:["input"]};return tn(s,DQ,t)},zQ=at(zd,{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}}]}),IQ=at("input",{name:"MuiSwitchBase",shouldForwardProp:Sa})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),g3=G.forwardRef(function(t,n){const{autoFocus:i,checked:o,checkedIcon:s,defaultChecked:f,disabled:d,disableFocusRipple:h=!1,edge:y=!1,icon:b,id:x,inputProps:T,inputRef:w,name:C,onBlur:R,onChange:_,onFocus:N,readOnly:z,required:B=!1,tabIndex:V,type:I,value:P,slots:Y={},slotProps:se={},...ue}=t,[re,le]=ag({controlled:o,default:!!f,name:"SwitchBase",state:"checked"}),$=cu(),oe=be=>{N&&N(be),$&&$.onFocus&&$.onFocus(be)},W=be=>{R&&R(be),$&&$.onBlur&&$.onBlur(be)},ie=be=>{if(be.nativeEvent.defaultPrevented||z)return;const De=be.target.checked;le(De),_&&_(be,De)};let K=d;$&&typeof K>"u"&&(K=$.disabled);const ae=I==="checkbox"||I==="radio",pe={...t,checked:re,disabled:K,disableFocusRipple:h,edge:y},Te=NQ(pe),ee={slots:Y,slotProps:{input:T,...se}},[q,J]=rn("root",{ref:n,elementType:zQ,className:Te.root,shouldForwardComponentProp:!0,externalForwardedProps:{...ee,component:"span",...ue},getSlotProps:be=>({...be,onFocus:De=>{var Pe;(Pe=be.onFocus)==null||Pe.call(be,De),oe(De)},onBlur:De=>{var Pe;(Pe=be.onBlur)==null||Pe.call(be,De),W(De)}}),ownerState:pe,additionalProps:{centerRipple:!0,focusRipple:!h,role:void 0,tabIndex:null}}),[F,Re]=rn("input",{ref:w,elementType:IQ,className:Te.input,externalForwardedProps:ee,getSlotProps:be=>({...be,onChange:De=>{var Pe;(Pe=be.onChange)==null||Pe.call(be,De),ie(De)}}),ownerState:pe,additionalProps:{autoFocus:i,checked:o,defaultChecked:f,disabled:K,id:ae?x:void 0,name:C,readOnly:z,required:B,tabIndex:V,type:I,...I==="checkbox"&&P===void 0?{}:{value:P}}});return xe.jsxs(q,{...J,children:[xe.jsx(F,{...Re}),re?s:b]})});kQ.NODE_ENV!=="production"&&(g3.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:fo,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 LQ=Ri(xe.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"),BQ=Ri(xe.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"),VQ=Ri(xe.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 UQ(e){return Kt("MuiCheckbox",e)}const Mw=Zt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);var PQ={};const $Q=e=>{const{classes:t,indeterminate:n,color:i,size:o}=e,s={root:["root",n&&"indeterminate",`color${et(i)}`,`size${et(o)}`]},f=tn(s,UQ,t);return{...t,...f}},jQ=at(g3,{shouldForwardProp:e=>Sa(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${et(n.size)}`],n.color!=="default"&&t[`color${et(n.color)}`]]}})(Ft(({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(qr()).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(qr()).map(([t])=>({props:{color:t},style:{[`&.${Mw.checked}, &.${Mw.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Mw.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),HQ=xe.jsx(BQ,{}),qQ=xe.jsx(LQ,{}),FQ=xe.jsx(VQ,{}),FR=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiCheckbox"}),{checkedIcon:o=HQ,color:s="primary",icon:f=qQ,indeterminate:d=!1,indeterminateIcon:h=FQ,inputProps:y,size:b="medium",disableRipple:x=!1,className:T,slots:w={},slotProps:C={},...R}=i,_=d?h:f,N=d?h:o,z={...i,disableRipple:x,color:s,indeterminate:d,size:b},B=$Q(z),V=C.input??y,[I,P]=rn("root",{ref:n,elementType:jQ,className:Et(B.root,T),shouldForwardComponentProp:!0,externalForwardedProps:{slots:w,slotProps:C,...R},ownerState:z,additionalProps:{type:"checkbox",icon:G.cloneElement(_,{fontSize:_.props.fontSize??b}),checkedIcon:G.cloneElement(N,{fontSize:N.props.fontSize??b}),disableRipple:x,slots:w,slotProps:{input:VM(typeof V=="function"?V(z):V,{"data-indeterminate":d})}}});return xe.jsx(I,{...P,classes:B})});PQ.NODE_ENV!=="production"&&(FR.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 GR(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function GQ(e){const t=xa(e);return t.body===e?rf(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function rb(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function YR(e){return parseFloat(rf(e).getComputedStyle(e).paddingRight)||0}function YQ(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 XR(e,t,n,i,o){const s=[t,n,...i];[].forEach.call(e.children,f=>{const d=!s.includes(f),h=!YQ(f);d&&h&&rb(f,o)})}function Rw(e,t){let n=-1;return e.some((i,o)=>t(i)?(n=o,!0):!1),n}function XQ(e,t){const n=[],i=e.container;if(!t.disableScrollLock){if(GQ(i)){const f=GR(rf(i));n.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${YR(i)+f}px`;const d=xa(i).querySelectorAll(".mui-fixed");[].forEach.call(d,h=>{n.push({value:h.style.paddingRight,property:"padding-right",el:h}),h.style.paddingRight=`${YR(h)+f}px`})}let s;if(i.parentNode instanceof DocumentFragment)s=xa(i).body;else{const f=i.parentElement,d=rf(i);s=(f==null?void 0:f.nodeName)==="HTML"&&d.getComputedStyle(f).overflowY==="scroll"?f: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:f,property:d})=>{s?f.style.setProperty(d,s):f.style.removeProperty(d)})}}function WQ(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class QQ{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&&rb(t.modalRef,!1);const o=WQ(n);XR(n,t.mount,t.modalRef,o,!0);const s=Rw(this.containers,f=>f.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=Rw(this.containers,s=>s.modals.includes(t)),o=this.containers[i];o.restore||(o.restore=XQ(o,n))}remove(t,n=!0){const i=this.modals.indexOf(t);if(i===-1)return i;const o=Rw(this.containers,f=>f.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&&rb(t.modalRef,n),XR(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(o,1);else{const f=s.modals[s.modals.length-1];f.modalRef&&rb(f.modalRef,!1)}return i}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function ib(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 _w={};const KQ=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function ZQ(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 JQ(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 eK(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||JQ(e))}function tK(e){const t=[],n=[];return Array.from(e.querySelectorAll(KQ)).forEach((i,o)=>{const s=ZQ(i);s===-1||!eK(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 nK(){return!0}function y3(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:i=!1,disableRestoreFocus:o=!1,getTabbable:s=tK,isEnabled:f=nK,open:d}=e,h=G.useRef(!1),y=G.useRef(null),b=G.useRef(null),x=G.useRef(null),T=G.useRef(null),w=G.useRef(!1),C=G.useRef(null),R=ii(mg(t),C),_=G.useRef(null);G.useEffect(()=>{!d||!C.current||(w.current=!n)},[n,d]),G.useEffect(()=>{if(!d||!C.current)return;const B=xa(C.current),V=ib(B);return C.current.contains(V)||(C.current.hasAttribute("tabIndex")||(_w.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||(x.current&&x.current.focus&&(h.current=!0,x.current.focus()),x.current=null)}},[d]),G.useEffect(()=>{if(!d||!C.current)return;const B=xa(C.current),V=Y=>{if(_.current=Y,i||!f()||Y.key!=="Tab")return;ib(B)===C.current&&Y.shiftKey&&(h.current=!0,b.current&&b.current.focus())},I=()=>{var re,le;const Y=C.current;if(Y===null)return;const se=ib(B);if(!B.hasFocus()||!f()||h.current){h.current=!1;return}if(Y.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 ue=[];if((se===y.current||se===b.current)&&(ue=s(C.current)),ue.length>0){const $=!!((re=_.current)!=null&&re.shiftKey&&((le=_.current)==null?void 0:le.key)==="Tab"),oe=ue[0],W=ue[ue.length-1];typeof oe!="string"&&typeof W!="string"&&($?W.focus():oe.focus())}else Y.focus()};B.addEventListener("focusin",I),B.addEventListener("keydown",V,!0);const P=setInterval(()=>{const Y=ib(B);Y&&Y.tagName==="BODY"&&I()},50);return()=>{clearInterval(P),B.removeEventListener("focusin",I),B.removeEventListener("keydown",V,!0)}},[n,i,o,f,d,s]);const N=B=>{x.current===null&&(x.current=B.relatedTarget),w.current=!0,T.current=B.target;const V=t.props.onFocus;V&&V(B)},z=B=>{x.current===null&&(x.current=B.relatedTarget),w.current=!0};return xe.jsxs(G.Fragment,{children:[xe.jsx("div",{tabIndex:d?0:-1,onFocus:z,ref:y,"data-testid":"sentinelStart"}),G.cloneElement(t,{ref:R,onFocus:N}),xe.jsx("div",{tabIndex:d?0:-1,onFocus:z,ref:b,"data-testid":"sentinelEnd"})]})}_w.NODE_ENV!=="production"&&(y3.propTypes={children:yg,disableAutoFocus:p.bool,disableEnforceFocus:p.bool,disableRestoreFocus:p.bool,getTabbable:p.func,isEnabled:p.func,open:p.bool.isRequired}),_w.NODE_ENV!=="production"&&(y3.propTypes=hM(y3.propTypes));function rK(e){return typeof e=="function"?e():e}function iK(e){return e?e.props.hasOwnProperty("in"):!1}const WR=()=>{},v3=new QQ;function aK(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:i=!1,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:f,children:d,onClose:h,open:y,rootRef:b}=e,x=G.useRef({}),T=G.useRef(null),w=G.useRef(null),C=ii(w,b),[R,_]=G.useState(!y),N=iK(d);let z=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(z=!1);const B=()=>xa(T.current),V=()=>(x.current.modalRef=w.current,x.current.mount=T.current,x.current),I=()=>{v3.mount(V(),{disableScrollLock:i}),w.current&&(w.current.scrollTop=0)},P=Wl(()=>{const ie=rK(t)||B().body;v3.add(V(),ie),w.current&&I()}),Y=()=>v3.isTopModal(V()),se=Wl(ie=>{T.current=ie,ie&&(y&&Y()?I():w.current&&rb(w.current,z))}),ue=G.useCallback(()=>{v3.remove(V(),z)},[z]);G.useEffect(()=>()=>{ue()},[ue]),G.useEffect(()=>{y?P():(!N||!o)&&ue()},[y,ue,N,o,P]);const re=ie=>K=>{var ae;(ae=ie.onKeyDown)==null||ae.call(ie,K),!(K.key!=="Escape"||K.which===229||!Y())&&(n||(K.stopPropagation(),h&&h(K,"escapeKeyDown")))},le=ie=>K=>{var ae;(ae=ie.onClick)==null||ae.call(ie,K),K.target===K.currentTarget&&h&&h(K,"backdropClick")};return{getRootProps:(ie={})=>{const K=Hv(e);delete K.onTransitionEnter,delete K.onTransitionExited;const ae={...K,...ie};return{role:"presentation",...ae,onKeyDown:re(ae),ref:C}},getBackdropProps:(ie={})=>{const K=ie;return{"aria-hidden":!0,...K,onClick:le(K),open:y}},getTransitionProps:()=>{const ie=()=>{_(!1),s&&s()},K=()=>{_(!0),f&&f(),o&&ue()};return{onEnter:w2(ie,(d==null?void 0:d.props.onEnter)??WR),onExited:w2(K,(d==null?void 0:d.props.onExited)??WR)}},rootRef:C,portalRef:se,isTopModal:Y,exited:R,hasTransition:N}}function oK(e){return Kt("MuiModal",e)}Zt("MuiModal",["root","hidden","backdrop"]);var lK={};const sK=e=>{const{open:t,exited:n,classes:i}=e;return tn({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},oK,i)},uK=at("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ft(({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"}}]}))),cK=at(Ow,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Dw=G.forwardRef(function(t,n){const i=sn({name:"MuiModal",props:t}),{BackdropComponent:o=cK,BackdropProps:s,classes:f,className:d,closeAfterTransition:h=!1,children:y,container:b,component:x,components:T={},componentsProps:w={},disableAutoFocus:C=!1,disableEnforceFocus:R=!1,disableEscapeKeyDown:_=!1,disablePortal:N=!1,disableRestoreFocus:z=!1,disableScrollLock:B=!1,hideBackdrop:V=!1,keepMounted:I=!1,onClose:P,onTransitionEnter:Y,onTransitionExited:se,open:ue,slotProps:re={},slots:le={},theme:$,...oe}=i,W={...i,closeAfterTransition:h,disableAutoFocus:C,disableEnforceFocus:R,disableEscapeKeyDown:_,disablePortal:N,disableRestoreFocus:z,disableScrollLock:B,hideBackdrop:V,keepMounted:I},{getRootProps:ie,getBackdropProps:K,getTransitionProps:ae,portalRef:pe,isTopModal:Te,exited:ee,hasTransition:q}=aK({...W,rootRef:n}),J={...W,exited:ee},F=sK(J),Re={};if(y.props.tabIndex===void 0&&(Re.tabIndex="-1"),q){const{onEnter:Qe,onExited:tt}=ae();Re.onEnter=Qe,Re.onExited=tt}const be={slots:{root:T.Root,backdrop:T.Backdrop,...le},slotProps:{...w,...re}},[De,Pe]=rn("root",{ref:n,elementType:uK,externalForwardedProps:{...be,...oe,component:x},getSlotProps:ie,ownerState:J,className:Et(d,F==null?void 0:F.root,!J.open&&J.exited&&(F==null?void 0:F.hidden))}),[Fe,Ze]=rn("backdrop",{ref:s==null?void 0:s.ref,elementType:o,externalForwardedProps:be,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:Qe=>K({...Qe,onClick:tt=>{Qe!=null&&Qe.onClick&&Qe.onClick(tt)}}),className:Et(s==null?void 0:s.className,F==null?void 0:F.backdrop),ownerState:J});return!I&&!ue&&(!q||ee)?null:xe.jsx(Jv,{ref:pe,container:b,disablePortal:N,children:xe.jsxs(De,{...Pe,children:[!V&&o?xe.jsx(Fe,{...Ze}):null,xe.jsx(y3,{disableEnforceFocus:R,disableAutoFocus:C,disableRestoreFocus:z,isEnabled:Te,open:ue,children:G.cloneElement(y,Re)})]})})});lK.NODE_ENV!=="production"&&(Dw.propTypes={BackdropComponent:p.elementType,BackdropProps:p.object,children:yg.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([of,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 fK(e){return Kt("MuiDialog",e)}const kw=Zt("MuiDialog",["root","backdrop","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var dK={};const Nw=G.createContext({});dK.NODE_ENV!=="production"&&(Nw.displayName="DialogContext");var hK={};const pK=at(Ow,{name:"MuiDialog",slot:"Backdrop"})({zIndex:-1}),mK=e=>{const{classes:t,scroll:n,maxWidth:i,fullWidth:o,fullScreen:s}=e,f={root:["root"],backdrop:["backdrop"],container:["container",`scroll${et(n)}`],paper:["paper",`paperScroll${et(n)}`,`paperWidth${et(String(i))}`,o&&"paperFullWidth",s&&"paperFullScreen"]};return tn(f,fK,t)},gK=at(Dw,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),yK=at("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${et(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"}}}]}),vK=at(qv,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${et(n.scroll)}`],t[`paperWidth${et(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Ft(({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)`,[`&.${kw.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}`,[`&.${kw.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,[`&.${kw.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),ab=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiDialog"}),o=nf(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":f,"aria-labelledby":d,"aria-modal":h=!0,BackdropComponent:y,BackdropProps:b,children:x,className:T,disableEscapeKeyDown:w=!1,fullScreen:C=!1,fullWidth:R=!1,maxWidth:_="sm",onClick:N,onClose:z,open:B,PaperComponent:V=qv,PaperProps:I={},scroll:P="paper",slots:Y={},slotProps:se={},TransitionComponent:ue=m3,transitionDuration:re=s,TransitionProps:le,...$}=i,oe={...i,disableEscapeKeyDown:w,fullScreen:C,fullWidth:R,maxWidth:_,scroll:P},W=mK(oe),ie=G.useRef(),K=_e=>{ie.current=_e.target===_e.currentTarget},ae=_e=>{N&&N(_e),ie.current&&(ie.current=null,z&&z(_e,"backdropClick"))},pe=vh(d),Te=G.useMemo(()=>({titleId:pe}),[pe]),ee={transition:ue,...Y},q={transition:le,paper:I,backdrop:b,...se},J={slots:ee,slotProps:q},[F,Re]=rn("root",{elementType:gK,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:oe,className:Et(W.root,T),ref:n}),[be,De]=rn("backdrop",{elementType:pK,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:oe,className:W.backdrop}),[Pe,Fe]=rn("paper",{elementType:vK,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:oe,className:Et(W.paper,I.className)}),[Ze,Qe]=rn("container",{elementType:yK,externalForwardedProps:J,ownerState:oe,className:W.container}),[tt,$e]=rn("transition",{elementType:m3,externalForwardedProps:J,ownerState:oe,additionalProps:{appear:!0,in:B,timeout:re,role:"presentation"}});return xe.jsx(F,{closeAfterTransition:!0,slots:{backdrop:be},slotProps:{backdrop:{transitionDuration:re,as:y,...De}},disableEscapeKeyDown:w,onClose:z,open:B,onClick:ae,...Re,...$,children:xe.jsx(tt,{...$e,children:xe.jsx(Ze,{onMouseDown:K,...Qe,children:xe.jsx(Pe,{as:V,elevation:24,role:"dialog","aria-describedby":f,"aria-labelledby":pe,"aria-modal":h,...Fe,children:xe.jsx(Nw.Provider,{value:Te,children:x})})})})})});hK.NODE_ENV!=="production"&&(ab.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 bK(e){return Kt("MuiDialogActions",e)}Zt("MuiDialogActions",["root","spacing"]);var SK={};const xK=e=>{const{classes:t,disableSpacing:n}=e;return tn({root:["root",!n&&"spacing"]},bK,t)},EK=at("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}}}]}),zw=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:s=!1,...f}=i,d={...i,disableSpacing:s},h=xK(d);return xe.jsx(EK,{className:Et(h.root,o),ownerState:d,ref:n,...f})});SK.NODE_ENV!=="production"&&(zw.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 wK(e){return Kt("MuiDialogContent",e)}Zt("MuiDialogContent",["root","dividers"]);function TK(e){return Kt("MuiDialogTitle",e)}const AK=Zt("MuiDialogTitle",["root"]);var CK={};const OK=e=>{const{classes:t,dividers:n}=e;return tn({root:["root",n&&"dividers"]},wK,t)},MK=at("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Ft(({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:{[`.${AK.root} + &`]:{paddingTop:0}}}]}))),ob=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiDialogContent"}),{className:o,dividers:s=!1,...f}=i,d={...i,dividers:s},h=OK(d);return xe.jsx(MK,{className:Et(h.root,o),ownerState:d,ref:n,...f})});CK.NODE_ENV!=="production"&&(ob.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 RK={};const _K=e=>{const{classes:t}=e;return tn({root:["root"]},TK,t)},DK=at(Fr,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Iw=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiDialogTitle"}),{className:o,id:s,...f}=i,d=i,h=_K(d),{titleId:y=s}=G.useContext(Nw);return xe.jsx(DK,{component:"h2",className:Et(h.root,o),ownerState:d,ref:n,variant:"h6",id:s??y,...f})});RK.NODE_ENV!=="production"&&(Iw.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 kK(e){return Kt("MuiDivider",e)}const QR=Zt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);var NK={};const zK=e=>{const{absolute:t,children:n,classes:i,flexItem:o,light:s,orientation:f,textAlign:d,variant:h}=e;return tn({root:["root",t&&"absolute",h,s&&"light",f==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&f==="vertical"&&"withChildrenVertical",d==="right"&&f!=="vertical"&&"textAlignRight",d==="left"&&f!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",f==="vertical"&&"wrapperVertical"]},kK,i)},IK=at("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]}})(Ft(({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%"}}}]}))),LK=at("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Ft(({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)`}}]}))),bg=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiDivider"}),{absolute:o=!1,children:s,className:f,orientation:d="horizontal",component:h=s||d==="vertical"?"div":"hr",flexItem:y=!1,light:b=!1,role:x=h!=="hr"?"separator":void 0,textAlign:T="center",variant:w="fullWidth",...C}=i,R={...i,absolute:o,component:h,flexItem:y,light:b,orientation:d,role:x,textAlign:T,variant:w},_=zK(R);return xe.jsx(IK,{as:h,className:Et(_.root,f),role:x,ref:n,ownerState:R,"aria-orientation":x==="separator"&&(h!=="hr"||d==="vertical")?d:void 0,...C,children:s?xe.jsx(LK,{className:_.wrapper,ownerState:R,children:s}):null})});bg&&(bg.muiSkipListHighlight=!0),NK.NODE_ENV!=="production"&&(bg.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 BK={};const VK=e=>{const{classes:t,disableUnderline:n,startAdornment:i,endAdornment:o,size:s,hiddenLabel:f,multiline:d}=e,h={root:["root",!n&&"underline",i&&"adornedStart",o&&"adornedEnd",s==="small"&&`size${et(s)}`,f&&"hiddenLabel",d&&"multiline"],input:["input"]},y=tn(h,nQ,t);return{...t,...y}},UK=at(d3,{shouldForwardProp:e=>Sa(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...c3(e,t),!n.disableUnderline&&t.underline]}})(Ft(({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}},[`&.${Ah.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Ah.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:f})=>!f.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"},[`&.${Ah.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ah.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(.${Ah.disabled}, .${Ah.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ah.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(qr()).map(([f])=>{var d;return{props:{disableUnderline:!1,color:f},style:{"&::after":{borderBottom:`2px solid ${(d=(e.vars||e).palette[f])==null?void 0:d.main}`}}}}),{props:({ownerState:f})=>f.startAdornment,style:{paddingLeft:12}},{props:({ownerState:f})=>f.endAdornment,style:{paddingRight:12}},{props:({ownerState:f})=>f.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:f,size:d})=>f.multiline&&d==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:f})=>f.multiline&&f.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:f})=>f.multiline&&f.hiddenLabel&&f.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),PK=at(h3,{name:"MuiFilledInput",slot:"Input",overridesResolver:f3})(Ft(({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}}]}))),b3=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:s={},componentsProps:f,fullWidth:d=!1,hiddenLabel:h,inputComponent:y="input",multiline:b=!1,slotProps:x,slots:T={},type:w="text",...C}=i,R={...i,disableUnderline:o,fullWidth:d,inputComponent:y,multiline:b,type:w},_=VK(i),N={root:{ownerState:R},input:{ownerState:R}},z=x??f?Ua(N,x??f):N,B=T.root??s.Root??UK,V=T.input??s.Input??PK;return xe.jsx(p3,{slots:{root:B,input:V},slotProps:z,fullWidth:d,inputComponent:y,multiline:b,ref:n,type:w,...C,classes:_})});BK.NODE_ENV!=="production"&&(b3.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:fo,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}),b3.muiName="Input";function $K(e){return Kt("MuiFormControl",e)}Zt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);var KR={};const jK=e=>{const{classes:t,margin:n,fullWidth:i}=e,o={root:["root",n!=="none"&&`margin${et(n)}`,i&&"fullWidth"]};return tn(o,$K,t)},HK=at("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${et(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%"}}]}),$i=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiFormControl"}),{children:o,className:s,color:f="primary",component:d="div",disabled:h=!1,error:y=!1,focused:b,fullWidth:x=!1,hiddenLabel:T=!1,margin:w="none",required:C=!1,size:R="medium",variant:_="outlined",...N}=i,z={...i,color:f,component:d,disabled:h,error:y,fullWidth:x,hiddenLabel:T,margin:w,required:C,size:R,variant:_},B=jK(z),[V,I]=G.useState(()=>{let K=!1;return o&&G.Children.forEach(o,ae=>{if(!Km(ae,["Input","Select"]))return;const pe=Km(ae,["Select"])?ae.props.input:ae;pe&&KW(pe.props)&&(K=!0)}),K}),[P,Y]=G.useState(()=>{let K=!1;return o&&G.Children.forEach(o,ae=>{Km(ae,["Input","Select"])&&(u3(ae.props,!0)||u3(ae.props.inputProps,!0))&&(K=!0)}),K}),[se,ue]=G.useState(!1);h&&se&&ue(!1);const re=b!==void 0&&!h?b:se;let le;const $=G.useRef(!1);KR.NODE_ENV!=="production"&&(le=()=>($.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 oe=G.useCallback(()=>{Y(!0)},[]),W=G.useCallback(()=>{Y(!1)},[]),ie=G.useMemo(()=>({adornedStart:V,setAdornedStart:I,color:f,disabled:h,error:y,filled:P,focused:re,fullWidth:x,hiddenLabel:T,size:R,onBlur:()=>{ue(!1)},onFocus:()=>{ue(!0)},onEmpty:W,onFilled:oe,registerEffect:le,required:C,variant:_}),[V,f,h,y,P,re,x,T,le,W,oe,C,R,_]);return xe.jsx(eb.Provider,{value:ie,children:xe.jsx(HK,{as:d,ownerState:z,className:Et(B.root,s),ref:n,...N,children:o})})});KR.NODE_ENV!=="production"&&($i.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 qK(e){return Kt("MuiFormControlLabel",e)}const lb=Zt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);var FK={};const GK=e=>{const{classes:t,disabled:n,labelPlacement:i,error:o,required:s}=e,f={root:["root",n&&"disabled",`labelPlacement${et(i)}`,o&&"error",s&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return tn(f,qK,t)},YK=at("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${lb.label}`]:t.label},t.root,t[`labelPlacement${et(n.labelPlacement)}`]]}})(Ft(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${lb.disabled}`]:{cursor:"default"},[`& .${lb.label}`]:{[`&.${lb.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}}]}))),XK=at("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Ft(({theme:e})=>({[`&.${lb.error}`]:{color:(e.vars||e).palette.error.main}}))),Oh=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiFormControlLabel"}),{checked:o,className:s,componentsProps:f={},control:d,disabled:h,disableTypography:y,inputRef:b,label:x,labelPlacement:T="end",name:w,onChange:C,required:R,slots:_={},slotProps:N={},value:z,...B}=i,V=cu(),I=h??d.props.disabled??(V==null?void 0:V.disabled),P=R??d.props.required,Y={disabled:I,required:P};["checked","name","onChange","value","inputRef"].forEach(ie=>{typeof d.props[ie]>"u"&&typeof i[ie]<"u"&&(Y[ie]=i[ie])});const se=Ld({props:i,muiFormControl:V,states:["error"]}),ue={...i,disabled:I,labelPlacement:T,required:P,error:se.error},re=GK(ue),le={slots:_,slotProps:{...f,...N}},[$,oe]=rn("typography",{elementType:Fr,externalForwardedProps:le,ownerState:ue});let W=x;return W!=null&&W.type!==Fr&&!y&&(W=xe.jsx($,{component:"span",...oe,className:Et(re.label,oe==null?void 0:oe.className),children:W})),xe.jsxs(YK,{className:Et(re.root,s),ownerState:ue,ref:n,...B,children:[G.cloneElement(d,Y),P?xe.jsxs("div",{children:[W,xe.jsxs(XK,{ownerState:ue,"aria-hidden":!0,className:re.asterisk,children:[" ","*"]})]}):W]})});FK.NODE_ENV!=="production"&&(Oh.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:fo,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 WK(e){return Kt("MuiFormGroup",e)}Zt("MuiFormGroup",["root","row","error"]);var QK={};const KK=e=>{const{classes:t,row:n,error:i}=e;return tn({root:["root",n&&"row",i&&"error"]},WK,t)},ZK=at("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"}}]}),ZR=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiFormGroup"}),{className:o,row:s=!1,...f}=i,d=cu(),h=Ld({props:i,muiFormControl:d,states:["error"]}),y={...i,row:s,error:h.error},b=KK(y);return xe.jsx(ZK,{className:Et(b.root,o),ownerState:y,ref:n,...f})});QK.NODE_ENV!=="production"&&(ZR.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 JK(e){return Kt("MuiFormHelperText",e)}const JR=Zt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var eZ={},e_;const tZ=e=>{const{classes:t,contained:n,size:i,disabled:o,error:s,filled:f,focused:d,required:h}=e,y={root:["root",o&&"disabled",s&&"error",i&&`size${et(i)}`,n&&"contained",d&&"focused",f&&"filled",h&&"required"]};return tn(y,JK,t)},nZ=at("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${et(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Ft(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${JR.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${JR.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}}]}))),t_=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiFormHelperText"}),{children:o,className:s,component:f="p",disabled:d,error:h,filled:y,focused:b,margin:x,required:T,variant:w,...C}=i,R=cu(),_=Ld({props:i,muiFormControl:R,states:["variant","size","disabled","error","filled","focused","required"]}),N={...i,component:f,contained:_.variant==="filled"||_.variant==="outlined",variant:_.variant,size:_.size,disabled:_.disabled,error:_.error,filled:_.filled,focused:_.focused,required:_.required};delete N.ownerState;const z=tZ(N);return xe.jsx(nZ,{as:f,className:Et(z.root,s),ref:n,...C,ownerState:N,children:o===" "?e_||(e_=xe.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});eZ.NODE_ENV!=="production"&&(t_.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 rZ(e){return Kt("MuiFormLabel",e)}const sb=Zt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);var iZ={};const aZ=e=>{const{classes:t,color:n,focused:i,disabled:o,error:s,filled:f,required:d}=e,h={root:["root",`color${et(n)}`,o&&"disabled",s&&"error",f&&"filled",i&&"focused",d&&"required"],asterisk:["asterisk",s&&"error"]};return tn(h,rZ,t)},oZ=at("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Ft(({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(qr()).map(([t])=>({props:{color:t},style:{[`&.${sb.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${sb.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${sb.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),lZ=at("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ft(({theme:e})=>({[`&.${sb.error}`]:{color:(e.vars||e).palette.error.main}}))),n_=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiFormLabel"}),{children:o,className:s,color:f,component:d="label",disabled:h,error:y,filled:b,focused:x,required:T,...w}=i,C=cu(),R=Ld({props:i,muiFormControl:C,states:["color","required","focused","disabled","error","filled"]}),_={...i,color:R.color||"primary",component:d,disabled:R.disabled,error:R.error,filled:R.filled,focused:R.focused,required:R.required},N=aZ(_);return xe.jsxs(oZ,{as:d,ownerState:_,className:Et(N.root,s),ref:n,...w,children:[o,R.required&&xe.jsxs(lZ,{ownerState:_,"aria-hidden":!0,className:N.asterisk,children:[" ","*"]})]})});iZ.NODE_ENV!=="production"&&(n_.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 r_={};const Nt=sG({createStyledComponent:at("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>sn({props:e,name:"MuiGrid"}),useTheme:nf});if(r_.NODE_ENV!=="production"&&(Nt.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"])}),r_.NODE_ENV!=="production"){const e=Nt,t=tY("Grid",e);e.propTypes={...e.propTypes,direction:t("container"),spacing:t("container"),wrap:t("container")}}var sZ={};function Lw(e){return`scale(${e}, ${e**2})`}const uZ={entering:{opacity:1,transform:Lw(1)},entered:{opacity:1,transform:"none"}},Bw=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ub=G.forwardRef(function(t,n){const{addEndListener:i,appear:o=!0,children:s,easing:f,in:d,onEnter:h,onEntered:y,onEntering:b,onExit:x,onExited:T,onExiting:w,style:C,timeout:R="auto",TransitionComponent:_=tc,...N}=t,z=sg(),B=G.useRef(),V=nf(),I=G.useRef(null),P=ii(I,mg(s),n),Y=ie=>K=>{if(ie){const ae=I.current;K===void 0?ie(ae):ie(ae,K)}},se=Y(b),ue=Y((ie,K)=>{WM(ie);const{duration:ae,delay:pe,easing:Te}=e3({style:C,timeout:R,easing:f},{mode:"enter"});let ee;R==="auto"?(ee=V.transitions.getAutoHeightDuration(ie.clientHeight),B.current=ee):ee=ae,ie.style.transition=[V.transitions.create("opacity",{duration:ee,delay:pe}),V.transitions.create("transform",{duration:Bw?ee:ee*.666,delay:pe,easing:Te})].join(","),h&&h(ie,K)}),re=Y(y),le=Y(w),$=Y(ie=>{const{duration:K,delay:ae,easing:pe}=e3({style:C,timeout:R,easing:f},{mode:"exit"});let Te;R==="auto"?(Te=V.transitions.getAutoHeightDuration(ie.clientHeight),B.current=Te):Te=K,ie.style.transition=[V.transitions.create("opacity",{duration:Te,delay:ae}),V.transitions.create("transform",{duration:Bw?Te:Te*.666,delay:Bw?ae:ae||Te*.333,easing:pe})].join(","),ie.style.opacity=0,ie.style.transform=Lw(.75),x&&x(ie)}),oe=Y(T),W=ie=>{R==="auto"&&z.start(B.current||0,ie),i&&i(I.current,ie)};return xe.jsx(_,{appear:o,in:d,nodeRef:I,onEnter:ue,onEntered:re,onEntering:se,onExit:$,onExited:oe,onExiting:le,addEndListener:W,timeout:R==="auto"?null:R,...N,children:(ie,{ownerState:K,...ae})=>G.cloneElement(s,{style:{opacity:0,transform:Lw(.75),visibility:ie==="exited"&&!d?"hidden":void 0,...uZ[ie],...C,...s.props.style},ref:P,...ae})})});sZ.NODE_ENV!=="production"&&(ub.propTypes={addEndListener:p.func,appear:p.bool,children:yg.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})])}),ub&&(ub.muiSupportAuto=!0);var cZ={};const fZ=e=>{const{classes:t,disableUnderline:n}=e,o=tn({root:["root",!n&&"underline"],input:["input"]},eQ,t);return{...t,...o}},dZ=at(d3,{shouldForwardProp:e=>Sa(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...c3(e,t),!n.disableUnderline&&t.underline]}})(Ft(({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"},[`&.${nb.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${nb.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(.${nb.disabled}, .${nb.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${nb.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(qr()).map(([i])=>({props:{color:i,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[i].main}`}}}))]}})),hZ=at(h3,{name:"MuiInput",slot:"Input",overridesResolver:f3})({}),S3=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:s={},componentsProps:f,fullWidth:d=!1,inputComponent:h="input",multiline:y=!1,slotProps:b,slots:x={},type:T="text",...w}=i,C=fZ(i),_={root:{ownerState:{disableUnderline:o}}},N=b??f?Ua(b??f,_):_,z=x.root??s.Root??dZ,B=x.input??s.Input??hZ;return xe.jsx(p3,{slots:{root:z,input:B},slotProps:N,fullWidth:d,inputComponent:h,multiline:y,ref:n,type:T,...w,classes:C})});cZ.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,id:p.string,inputComponent:p.elementType,inputProps:p.object,inputRef:fo,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 pZ(e){return Kt("MuiInputAdornment",e)}const i_=Zt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var a_={},o_;const mZ=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${et(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},gZ=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:i,position:o,size:s,variant:f}=e,d={root:["root",n&&"disablePointerEvents",o&&`position${et(o)}`,f,i&&"hiddenLabel",s&&`size${et(s)}`]};return tn(d,pZ,t)},yZ=at("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:mZ})(Ft(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${i_.positionStart}&:not(.${i_.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),l_=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiInputAdornment"}),{children:o,className:s,component:f="div",disablePointerEvents:d=!1,disableTypography:h=!1,position:y,variant:b,...x}=i,T=cu()||{};let w=b;b&&T.variant&&a_.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},R=gZ(C);return xe.jsx(eb.Provider,{value:null,children:xe.jsx(yZ,{as:f,ownerState:C,className:Et(R.root,s),ref:n,...x,children:typeof o=="string"&&!h?xe.jsx(Fr,{color:"textSecondary",children:o}):xe.jsxs(G.Fragment,{children:[y==="start"?o_||(o_=xe.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});a_.NODE_ENV!=="production"&&(l_.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 vZ(e){return Kt("MuiInputLabel",e)}Zt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);var bZ={};const SZ=e=>{const{classes:t,formControl:n,size:i,shrink:o,disableAnimation:s,variant:f,required:d}=e,h={root:["root",n&&"formControl",!s&&"animated",o&&"shrink",i&&i!=="medium"&&`size${et(i)}`,f],asterisk:[d&&"asterisk"]},y=tn(h,vZ,t);return{...t,...y}},xZ=at(n_,{shouldForwardProp:e=>Sa(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${sb.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]]}})(Ft(({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)"}}]}))),s_=G.forwardRef(function(t,n){const i=sn({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:s,shrink:f,variant:d,className:h,...y}=i,b=cu();let x=f;typeof x>"u"&&b&&(x=b.filled||b.focused||b.adornedStart);const T=Ld({props:i,muiFormControl:b,states:["size","variant","required","focused"]}),w={...i,disableAnimation:o,formControl:b,shrink:x,size:T.size,variant:T.variant,required:T.required,focused:T.focused},C=SZ(w);return xe.jsx(xZ,{"data-shrink":x,ref:n,className:Et(C.root,h),...y,ownerState:w,classes:C})});bZ.NODE_ENV!=="production"&&(s_.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 EZ={};const fu=G.createContext({});EZ.NODE_ENV!=="production"&&(fu.displayName="ListContext");function wZ(e){return Kt("MuiList",e)}Zt("MuiList",["root","padding","dense","subheader"]);var TZ={};const AZ=e=>{const{classes:t,disablePadding:n,dense:i,subheader:o}=e;return tn({root:["root",!n&&"padding",i&&"dense",o&&"subheader"]},wZ,t)},CZ=at("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}}]}),x3=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiList"}),{children:o,className:s,component:f="ul",dense:d=!1,disablePadding:h=!1,subheader:y,...b}=i,x=G.useMemo(()=>({dense:d}),[d]),T={...i,component:f,dense:d,disablePadding:h},w=AZ(T);return xe.jsx(fu.Provider,{value:x,children:xe.jsxs(CZ,{as:f,className:Et(w.root,s),ref:n,ownerState:T,...b,children:[y,o]})})});TZ.NODE_ENV!=="production"&&(x3.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 OZ(e){return Kt("MuiListItem",e)}Zt("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function MZ(e){return Kt("MuiListItemButton",e)}const Sg=Zt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);var u_={};const RZ=(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]},_Z=e=>{const{alignItems:t,classes:n,dense:i,disabled:o,disableGutters:s,divider:f,selected:d}=e,y=tn({root:["root",i&&"dense",!s&&"gutters",f&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",d&&"selected"]},MZ,n);return{...n,...y}},DZ=at(zd,{shouldForwardProp:e=>Sa(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:RZ})(Ft(({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"}},[`&.${Sg.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Sg.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Sg.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)}},[`&.${Sg.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Sg.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}}]}))),c_=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:s=!1,component:f="div",children:d,dense:h=!1,disableGutters:y=!1,divider:b=!1,focusVisibleClassName:x,selected:T=!1,className:w,...C}=i,R=G.useContext(fu),_=G.useMemo(()=>({dense:h||R.dense||!1,alignItems:o,disableGutters:y}),[o,R.dense,h,y]),N=G.useRef(null);Xl(()=>{s&&(N.current?N.current.focus():u_.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},B=_Z(z),V=ii(N,n);return xe.jsx(fu.Provider,{value:_,children:xe.jsx(DZ,{ref:V,href:C.href||C.to,component:(C.href||C.to)&&f==="div"?"button":f,focusVisibleClassName:Et(B.focusVisible,x),ownerState:z,className:Et(B.root,w),...C,classes:B,children:d})})});u_.NODE_ENV!=="production"&&(c_.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 kZ(e){return Kt("MuiListItemSecondaryAction",e)}Zt("MuiListItemSecondaryAction",["root","disableGutters"]);var NZ={};const zZ=e=>{const{disableGutters:t,classes:n}=e;return tn({root:["root",t&&"disableGutters"]},kZ,n)},IZ=at("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}}]}),Vw=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...s}=i,f=G.useContext(fu),d={...i,disableGutters:f.disableGutters},h=zZ(d);return xe.jsx(IZ,{className:Et(h.root,o),ownerState:d,ref:n,...s})});NZ.NODE_ENV!=="production"&&(Vw.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])}),Vw.muiName="ListItemSecondaryAction";var LZ={};const BZ=(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]},VZ=e=>{const{alignItems:t,classes:n,dense:i,disableGutters:o,disablePadding:s,divider:f,hasSecondaryAction:d}=e;return tn({root:["root",i&&"dense",!o&&"gutters",!s&&"padding",f&&"divider",t==="flex-start"&&"alignItemsFlexStart",d&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},OZ,n)},UZ=at("div",{name:"MuiListItem",slot:"Root",overridesResolver:BZ})(Ft(({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:{[`& > .${Sg.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}}]}))),PZ=at("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),f_=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiListItem"}),{alignItems:o="center",children:s,className:f,component:d,components:h={},componentsProps:y={},ContainerComponent:b="li",ContainerProps:{className:x,...T}={},dense:w=!1,disableGutters:C=!1,disablePadding:R=!1,divider:_=!1,secondaryAction:N,slotProps:z={},slots:B={},...V}=i,I=G.useContext(fu),P=G.useMemo(()=>({dense:w||I.dense||!1,alignItems:o,disableGutters:C}),[o,I.dense,w,C]),Y=G.useRef(null),se=G.Children.toArray(s),ue=se.length&&Km(se[se.length-1],["ListItemSecondaryAction"]),re={...i,alignItems:o,dense:P.dense,disableGutters:C,disablePadding:R,divider:_,hasSecondaryAction:ue},le=VZ(re),$=ii(Y,n),oe={slots:B,slotProps:z},[W,ie]=rn("secondaryAction",{elementType:Vw,externalForwardedProps:oe,ownerState:re,className:le.secondaryAction}),K=B.root||h.Root||UZ,ae=z.root||y.root||{},pe={className:Et(le.root,ae.className,f),...V};let Te=d||"li";return ue?(Te=!pe.component&&!d?"div":Te,b==="li"&&(Te==="li"?Te="div":pe.component==="li"&&(pe.component="div")),xe.jsx(fu.Provider,{value:P,children:xe.jsxs(PZ,{as:b,className:Et(le.container,x),ref:$,ownerState:re,...T,children:[xe.jsx(K,{...ae,...!nc(K)&&{as:Te,ownerState:{...re,...ae.ownerState}},...pe,children:se}),se.pop()]})})):xe.jsx(fu.Provider,{value:P,children:xe.jsxs(K,{...ae,as:Te,ref:$,...!nc(K)&&{ownerState:{...re,...ae.ownerState}},...pe,children:[se,N&&xe.jsx(W,{...ie,children:N})]})})});LZ.NODE_ENV!=="production"&&(f_.propTypes={alignItems:p.oneOf(["center","flex-start"]),children:su(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(Km(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:Jx,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 d_=Zt("MuiListItemIcon",["root","alignItemsFlexStart"]);function $Z(e){return Kt("MuiListItemText",e)}const xg=Zt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);var jZ={};const HZ=e=>{const{classes:t,inset:n,primary:i,secondary:o,dense:s}=e;return tn({root:["root",n&&"inset",s&&"dense",i&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},$Z,t)},qZ=at("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${xg.primary}`]:t.primary},{[`& .${xg.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,[`.${cR.root}:where(& .${xg.primary})`]:{display:"block"},[`.${cR.root}:where(& .${xg.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Uw=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiListItemText"}),{children:o,className:s,disableTypography:f=!1,inset:d=!1,primary:h,primaryTypographyProps:y,secondary:b,secondaryTypographyProps:x,slots:T={},slotProps:w={},...C}=i,{dense:R}=G.useContext(fu);let _=h??o,N=b;const z={...i,disableTypography:f,inset:d,primary:!!_,secondary:!!N,dense:R},B=HZ(z),V={slots:T,slotProps:{primary:y,secondary:x,...w}},[I,P]=rn("root",{className:Et(B.root,s),elementType:qZ,externalForwardedProps:{...V,...C},ownerState:z,ref:n}),[Y,se]=rn("primary",{className:B.primary,elementType:Fr,externalForwardedProps:V,ownerState:z}),[ue,re]=rn("secondary",{className:B.secondary,elementType:Fr,externalForwardedProps:V,ownerState:z});return _!=null&&_.type!==Fr&&!f&&(_=xe.jsx(Y,{variant:R?"body2":"body1",component:se!=null&&se.variant?void 0:"span",...se,children:_})),N!=null&&N.type!==Fr&&!f&&(N=xe.jsx(ue,{variant:"body2",color:"textSecondary",...re,children:N})),xe.jsxs(I,{...P,children:[_,N]})});jZ.NODE_ENV!=="production"&&(Uw.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 h_={};function Pw(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function p_(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function m_(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 cb(e,t,n,i,o,s){let f=!1,d=o(e,t,t?n:!1);for(;d;){if(d===e.firstChild){if(f)return!1;f=!0}const h=i?!1:d.disabled||d.getAttribute("aria-disabled")==="true";if(!d.hasAttribute("tabindex")||!m_(d,s)||h)d=o(e,d,n);else return d.focus(),!0}return!1}const g_=G.forwardRef(function(t,n){const{actions:i,autoFocus:o=!1,autoFocusItem:s=!1,children:f,className:d,disabledItemsFocusable:h=!1,disableListWrap:y=!1,onKeyDown:b,variant:x="selectedMenu",...T}=t,w=G.useRef(null),C=G.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Xl(()=>{o&&w.current.focus()},[o]),G.useImperativeHandle(i,()=>({adjustStyleForScrollbar:(B,{direction:V})=>{const I=!w.current.style.width;if(B.clientHeight<w.current.clientHeight&&I){const P=`${GR(rf(B))}px`;w.current.style[V==="rtl"?"paddingLeft":"paddingRight"]=P,w.current.style.width=`calc(100% + ${P})`}return w.current}}),[]);const R=B=>{const V=w.current,I=B.key;if(B.ctrlKey||B.metaKey||B.altKey){b&&b(B);return}const Y=ib(xa(V));if(I==="ArrowDown")B.preventDefault(),cb(V,Y,y,h,Pw);else if(I==="ArrowUp")B.preventDefault(),cb(V,Y,y,h,p_);else if(I==="Home")B.preventDefault(),cb(V,null,y,h,Pw);else if(I==="End")B.preventDefault(),cb(V,null,y,h,p_);else if(I.length===1){const se=C.current,ue=I.toLowerCase(),re=performance.now();se.keys.length>0&&(re-se.lastTime>500?(se.keys=[],se.repeating=!0,se.previousKeyMatched=!0):se.repeating&&ue!==se.keys[0]&&(se.repeating=!1)),se.lastTime=re,se.keys.push(ue);const le=Y&&!se.repeating&&m_(Y,se);se.previousKeyMatched&&(le||cb(V,Y,!1,h,Pw,se))?B.preventDefault():se.previousKeyMatched=!1}b&&b(B)},_=ii(w,n);let N=-1;G.Children.forEach(f,(B,V)=>{if(!G.isValidElement(B)){N===V&&(N+=1,N>=f.length&&(N=-1));return}h_.NODE_ENV!=="production"&&ph.isFragment(B)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
`)),B.props.disabled||(x==="selectedMenu"&&B.props.selected||N===-1)&&(N=V),N===V&&(B.props.disabled||B.props.muiSkipListHighlight||B.type.muiSkipListHighlight)&&(N+=1,N>=f.length&&(N=-1))});const z=G.Children.map(f,(B,V)=>{if(V===N){const I={};return s&&(I.autoFocus=!0),B.props.tabIndex===void 0&&x==="selectedMenu"&&(I.tabIndex=0),G.cloneElement(B,I)}return B});return xe.jsx(x3,{role:"menu",ref:_,className:d,onKeyDown:R,tabIndex:o?0:-1,...T,children:z})});h_.NODE_ENV!=="production"&&(g_.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 FZ(e){return Kt("MuiPopover",e)}Zt("MuiPopover",["root","paper"]);var fb={};function y_(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function v_(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function b_(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function db(e){return typeof e=="function"?e():e}const GZ=e=>{const{classes:t}=e;return tn({root:["root"],paper:["paper"]},FZ,t)},YZ=at(Dw,{name:"MuiPopover",slot:"Root"})({}),S_=at(qv,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),x_=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiPopover"}),{action:o,anchorEl:s,anchorOrigin:f={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:h="anchorEl",children:y,className:b,container:x,elevation:T=8,marginThreshold:w=16,open:C,PaperProps:R={},slots:_={},slotProps:N={},transformOrigin:z={vertical:"top",horizontal:"left"},TransitionComponent:B,transitionDuration:V="auto",TransitionProps:I={},disableScrollLock:P=!1,...Y}=i,se=G.useRef(),ue={...i,anchorOrigin:f,anchorReference:h,elevation:T,marginThreshold:w,transformOrigin:z,TransitionComponent:B,transitionDuration:V,TransitionProps:I},re=GZ(ue),le=G.useCallback(()=>{if(h==="anchorPosition")return fb.NODE_ENV!=="production"&&(d||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),d;const Qe=db(s),tt=Qe&&Qe.nodeType===1?Qe:xa(se.current).body,$e=tt.getBoundingClientRect();if(fb.NODE_ENV!=="production"){const _e=tt.getBoundingClientRect();!globalThis.MUI_TEST_ENV&&_e.top===0&&_e.left===0&&_e.right===0&&_e.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:$e.top+y_($e,f.vertical),left:$e.left+v_($e,f.horizontal)}},[s,f.horizontal,f.vertical,d,h]),$=G.useCallback(Qe=>({vertical:y_(Qe,z.vertical),horizontal:v_(Qe,z.horizontal)}),[z.horizontal,z.vertical]),oe=G.useCallback(Qe=>{const tt={width:Qe.offsetWidth,height:Qe.offsetHeight},$e=$(tt);if(h==="none")return{top:null,left:null,transformOrigin:b_($e)};const _e=le();let ut=_e.top-$e.vertical,Ot=_e.left-$e.horizontal;const Qt=ut+tt.height,vt=Ot+tt.width,Lt=rf(db(s)),un=Lt.innerHeight-w,Dn=Lt.innerWidth-w;if(w!==null&&ut<w){const lt=ut-w;ut-=lt,$e.vertical+=lt}else if(w!==null&&Qt>un){const lt=Qt-un;ut-=lt,$e.vertical+=lt}if(fb.NODE_ENV!=="production"&&tt.height>un&&tt.height&&un&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${tt.height-un}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
`)),w!==null&&Ot<w){const lt=Ot-w;Ot-=lt,$e.horizontal+=lt}else if(vt>Dn){const lt=vt-Dn;Ot-=lt,$e.horizontal+=lt}return{top:`${Math.round(ut)}px`,left:`${Math.round(Ot)}px`,transformOrigin:b_($e)}},[s,h,le,$,w]),[W,ie]=G.useState(C),K=G.useCallback(()=>{const Qe=se.current;if(!Qe)return;const tt=oe(Qe);tt.top!==null&&Qe.style.setProperty("top",tt.top),tt.left!==null&&(Qe.style.left=tt.left),Qe.style.transformOrigin=tt.transformOrigin,ie(!0)},[oe]);G.useEffect(()=>(P&&window.addEventListener("scroll",K),()=>window.removeEventListener("scroll",K)),[s,P,K]);const ae=()=>{K()},pe=()=>{ie(!1)};G.useEffect(()=>{C&&K()}),G.useImperativeHandle(o,()=>C?{updatePosition:()=>{K()}}:null,[C,K]),G.useEffect(()=>{if(!C)return;const Qe=LM(()=>{K()}),tt=rf(db(s));return tt.addEventListener("resize",Qe),()=>{Qe.clear(),tt.removeEventListener("resize",Qe)}},[s,C,K]);let Te=V;const ee={slots:{transition:B,..._},slotProps:{transition:I,paper:R,...N}},[q,J]=rn("transition",{elementType:ub,externalForwardedProps:ee,ownerState:ue,getSlotProps:Qe=>({...Qe,onEntering:(tt,$e)=>{var _e;(_e=Qe.onEntering)==null||_e.call(Qe,tt,$e),ae()},onExited:tt=>{var $e;($e=Qe.onExited)==null||$e.call(Qe,tt),pe()}}),additionalProps:{appear:!0,in:C}});V==="auto"&&!q.muiSupportAuto&&(Te=void 0);const F=x||(s?xa(db(s)).body:void 0),[Re,{slots:be,slotProps:De,...Pe}]=rn("root",{ref:n,elementType:YZ,externalForwardedProps:{...ee,...Y},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:_.backdrop},slotProps:{backdrop:VM(typeof N.backdrop=="function"?N.backdrop(ue):N.backdrop,{invisible:!0})},container:F,open:C},ownerState:ue,className:Et(re.root,b)}),[Fe,Ze]=rn("paper",{ref:se,className:re.paper,elementType:S_,externalForwardedProps:ee,shouldForwardComponentProp:!0,additionalProps:{elevation:T,style:W?void 0:{opacity:0}},ownerState:ue});return xe.jsx(Re,{...Pe,...!nc(Re)&&{slots:be,slotProps:De,disableScrollLock:P},children:xe.jsx(q,{...J,timeout:Te,children:xe.jsx(Fe,{...Ze,children:y})})})});fb.NODE_ENV!=="production"&&(x_.propTypes={action:fo,anchorEl:su(p.oneOfType([of,p.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=db(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(fb.NODE_ENV!=="production"&&!globalThis.MUI_TEST_ENV&&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([of,p.func]),disableScrollLock:p.bool,elevation:nR,marginThreshold:p.number,onClose:p.func,open:p.bool.isRequired,PaperProps:p.shape({component:Jx}),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 XZ(e){return Kt("MuiMenu",e)}Zt("MuiMenu",["root","paper","list"]);var E_={};const WZ={vertical:"top",horizontal:"right"},QZ={vertical:"top",horizontal:"left"},KZ=e=>{const{classes:t}=e;return tn({root:["root"],paper:["paper"],list:["list"]},XZ,t)},ZZ=at(x_,{shouldForwardProp:e=>Sa(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),JZ=at(S_,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),eJ=at(g_,{name:"MuiMenu",slot:"List"})({outline:0}),w_=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:f,disableAutoFocusItem:d=!1,MenuListProps:h={},onClose:y,open:b,PaperProps:x={},PopoverClasses:T,transitionDuration:w="auto",TransitionProps:{onEntering:C,...R}={},variant:_="selectedMenu",slots:N={},slotProps:z={},...B}=i,V=qx(),I={...i,autoFocus:o,disableAutoFocusItem:d,MenuListProps:h,onEntering:C,PaperProps:x,transitionDuration:w,TransitionProps:R,variant:_},P=KZ(I),Y=o&&!d&&b,se=G.useRef(null),ue=(Te,ee)=>{se.current&&se.current.adjustStyleForScrollbar(Te,{direction:V?"rtl":"ltr"}),C&&C(Te,ee)},re=Te=>{Te.key==="Tab"&&(Te.preventDefault(),y&&y(Te,"tabKeyDown"))};let le=-1;G.Children.map(s,(Te,ee)=>{G.isValidElement(Te)&&(E_.NODE_ENV!=="production"&&ph.isFragment(Te)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
`)),Te.props.disabled||(_==="selectedMenu"&&Te.props.selected||le===-1)&&(le=ee))});const $={slots:N,slotProps:{list:h,transition:R,paper:x,...z}},oe=ac({elementType:N.root,externalSlotProps:z.root,ownerState:I,className:[P.root,f]}),[W,ie]=rn("paper",{className:P.paper,elementType:JZ,externalForwardedProps:$,shouldForwardComponentProp:!0,ownerState:I}),[K,ae]=rn("list",{className:Et(P.list,h.className),elementType:eJ,shouldForwardComponentProp:!0,externalForwardedProps:$,getSlotProps:Te=>({...Te,onKeyDown:ee=>{var q;re(ee),(q=Te.onKeyDown)==null||q.call(Te,ee)}}),ownerState:I}),pe=typeof $.slotProps.transition=="function"?$.slotProps.transition(I):$.slotProps.transition;return xe.jsx(ZZ,{onClose:y,anchorOrigin:{vertical:"bottom",horizontal:V?"right":"left"},transformOrigin:V?WZ:QZ,slots:{root:N.root,paper:W,backdrop:N.backdrop,...N.transition&&{transition:N.transition}},slotProps:{root:oe,paper:ie,backdrop:typeof z.backdrop=="function"?z.backdrop(I):z.backdrop,transition:{...pe,onEntering:(...Te)=>{var ee;ue(...Te),(ee=pe==null?void 0:pe.onEntering)==null||ee.call(pe,...Te)}}},open:b,ref:n,transitionDuration:w,ownerState:I,...B,classes:T,children:xe.jsx(K,{actions:se,autoFocus:o&&(le===-1||d),autoFocusItem:Y,variant:_,...ae,children:s})})});E_.NODE_ENV!=="production"&&(w_.propTypes={anchorEl:p.oneOfType([of,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 tJ(e){return Kt("MuiMenuItem",e)}const hb=Zt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);var T_={};const nJ=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},rJ=e=>{const{disabled:t,dense:n,divider:i,disableGutters:o,selected:s,classes:f}=e,h=tn({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",i&&"divider",s&&"selected"]},tJ,f);return{...f,...h}},iJ=at(zd,{shouldForwardProp:e=>Sa(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:nJ})(Ft(({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"}},[`&.${hb.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${hb.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${hb.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)}},[`&.${hb.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${hb.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${QR.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${QR.inset}`]:{marginLeft:52},[`& .${xg.root}`]:{marginTop:0,marginBottom:0},[`& .${xg.inset}`]:{paddingLeft:36},[`& .${d_.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,[`& .${d_.root} svg`]:{fontSize:"1.25rem"}}}]}))),Mh=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:s="li",dense:f=!1,divider:d=!1,disableGutters:h=!1,focusVisibleClassName:y,role:b="menuitem",tabIndex:x,className:T,...w}=i,C=G.useContext(fu),R=G.useMemo(()=>({dense:f||C.dense||!1,disableGutters:h}),[C.dense,f,h]),_=G.useRef(null);Xl(()=>{o&&(_.current?_.current.focus():T_.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[o]);const N={...i,dense:R.dense,divider:d,disableGutters:h},z=rJ(i),B=ii(_,n);let V;return i.disabled||(V=x!==void 0?x:-1),xe.jsx(fu.Provider,{value:R,children:xe.jsx(iJ,{ref:B,role:b,tabIndex:V,component:s,focusVisibleClassName:Et(z.focusVisible,y),className:Et(z.root,T),...w,ownerState:N,classes:z})})});T_.NODE_ENV!=="production"&&(Mh.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 aJ(e){return Kt("MuiNativeSelect",e)}const $w=Zt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var oJ={};const lJ=e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:s,error:f}=e,d={select:["select",n,i&&"disabled",o&&"multiple",f&&"error"],icon:["icon",`icon${et(n)}`,s&&"iconOpen",i&&"disabled"]};return tn(d,aJ,t)},A_=at("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${$w.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}}}]})),sJ=at(A_,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Sa,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${$w.multiple}`]:t.multiple}]}})({}),C_=at("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${$w.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}}]})),uJ=at(C_,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${et(n.variant)}`],n.open&&t.iconOpen]}})({}),O_=G.forwardRef(function(t,n){const{className:i,disabled:o,error:s,IconComponent:f,inputRef:d,variant:h="standard",...y}=t,b={...t,disabled:o,variant:h,error:s},x=lJ(b);return xe.jsxs(G.Fragment,{children:[xe.jsx(sJ,{ownerState:b,className:Et(x.select,i),disabled:o,ref:d||n,...y}),t.multiple?null:xe.jsx(uJ,{as:f,ownerState:b,className:x.icon})]})});oJ.NODE_ENV!=="production"&&(O_.propTypes={children:p.node,classes:p.object,className:p.string,disabled:p.bool,error:p.bool,IconComponent:p.elementType.isRequired,inputRef:fo,multiple:p.bool,name:p.string,onChange:p.func,value:p.any,variant:p.oneOf(["standard","outlined","filled"])});var cJ={},M_;const fJ=at("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Sa})({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%"}),dJ=at("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Sa})(Ft(({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 R_(e){const{children:t,classes:n,className:i,label:o,notched:s,...f}=e,d=o!=null&&o!=="",h={...e,notched:s,withLabel:d};return xe.jsx(fJ,{"aria-hidden":!0,className:i,ownerState:h,...f,children:xe.jsx(dJ,{ownerState:h,children:d?xe.jsx("span",{children:o}):M_||(M_=xe.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}cJ.NODE_ENV!=="production"&&(R_.propTypes={children:p.node,classes:p.object,className:p.string,label:p.node,notched:p.bool.isRequired,style:p.object});var hJ={};const pJ=e=>{const{classes:t}=e,i=tn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},tQ,t);return{...t,...i}},mJ=at(d3,{shouldForwardProp:e=>Sa(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:c3})(Ft(({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 .${oc.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${oc.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${oc.focused} .${oc.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(qr()).map(([n])=>({props:{color:n},style:{[`&.${oc.focused} .${oc.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${oc.error} .${oc.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${oc.disabled} .${oc.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"}}]}})),gJ=at(R_,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Ft(({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}})),yJ=at(h3,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:f3})(Ft(({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}}]}))),E3=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:s=!1,inputComponent:f="input",label:d,multiline:h=!1,notched:y,slots:b={},slotProps:x={},type:T="text",...w}=i,C=pJ(i),R=cu(),_=Ld({props:i,muiFormControl:R,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),N={...i,color:_.color||"primary",disabled:_.disabled,error:_.error,focused:_.focused,formControl:R,fullWidth:s,hiddenLabel:_.hiddenLabel,multiline:h,size:_.size,type:T},z=b.root??o.Root??mJ,B=b.input??o.Input??yJ,[V,I]=rn("notchedOutline",{elementType:gJ,className:C.notchedOutline,shouldForwardComponentProp:!0,ownerState:N,externalForwardedProps:{slots:b,slotProps:x},additionalProps:{label:d!=null&&d!==""&&_.required?xe.jsxs(G.Fragment,{children:[d," ","*"]}):d}});return xe.jsx(p3,{slots:{root:z,input:B},slotProps:x,renderSuffix:P=>xe.jsx(V,{...I,notched:typeof y<"u"?y:!!(P.startAdornment||P.filled||P.focused)}),fullWidth:s,inputComponent:f,multiline:h,ref:n,type:T,...w,classes:{...C,notchedOutline:null}})});hJ.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}),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:fo,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}),E3.muiName="Input";const vJ=Ri(xe.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"),bJ=Ri(xe.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 SJ={};const xJ=at("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Sa})({position:"relative",display:"flex"}),EJ=at(vJ,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),wJ=at(bJ,{name:"MuiRadioButtonIcon"})(Ft(({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 jw(e){const{checked:t=!1,classes:n={},fontSize:i}=e,o={...e,checked:t};return xe.jsxs(xJ,{className:n.root,ownerState:o,children:[xe.jsx(EJ,{fontSize:i,className:n.background,ownerState:o}),xe.jsx(wJ,{fontSize:i,className:n.dot,ownerState:o})]})}SJ.NODE_ENV!=="production"&&(jw.propTypes={checked:p.bool,classes:p.object,fontSize:p.oneOf(["small","medium"])});var TJ={};const Hw=G.createContext(void 0);TJ.NODE_ENV!=="production"&&(Hw.displayName="RadioGroupContext");function AJ(){return G.useContext(Hw)}function CJ(e){return Kt("MuiRadio",e)}const __=Zt("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]);var OJ={};const MJ=e=>{const{classes:t,color:n,size:i}=e,o={root:["root",`color${et(n)}`,i!=="medium"&&`size${et(i)}`]};return{...t,...tn(o,CJ,t)}},RJ=at(g3,{shouldForwardProp:e=>Sa(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${et(n.size)}`],t[`color${et(n.color)}`]]}})(Ft(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${__.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(qr()).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(qr()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${__.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));function _J(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const DJ=xe.jsx(jw,{checked:!0}),kJ=xe.jsx(jw,{}),Eg=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiRadio"}),{checked:o,checkedIcon:s=DJ,color:f="primary",icon:d=kJ,name:h,onChange:y,size:b="medium",className:x,disabled:T,disableRipple:w=!1,slots:C={},slotProps:R={},inputProps:_,...N}=i,z=cu();let B=T;z&&typeof B>"u"&&(B=z.disabled),B??(B=!1);const V={...i,disabled:B,disableRipple:w,color:f,size:b},I=MJ(V),P=AJ();let Y=o;const se=w2(y,P&&P.onChange);let ue=h;P&&(typeof Y>"u"&&(Y=_J(P.value,i.value)),typeof ue>"u"&&(ue=P.name));const re=R.input??_,[le,$]=rn("root",{ref:n,elementType:RJ,className:Et(I.root,x),shouldForwardComponentProp:!0,externalForwardedProps:{slots:C,slotProps:R,...N},getSlotProps:oe=>({...oe,onChange:(W,...ie)=>{var K;(K=oe.onChange)==null||K.call(oe,W,...ie),se(W,...ie)}}),ownerState:V,additionalProps:{type:"radio",icon:G.cloneElement(d,{fontSize:d.props.fontSize??b}),checkedIcon:G.cloneElement(s,{fontSize:s.props.fontSize??b}),disabled:B,name:ue,checked:Y,slots:C,slotProps:{input:typeof re=="function"?re(V):re}}});return xe.jsx(le,{...$,classes:I})});OJ.NODE_ENV!=="production"&&(Eg.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:fo,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 NJ(e){return Kt("MuiRadioGroup",e)}Zt("MuiRadioGroup",["root","row","error"]);var zJ={};const IJ=e=>{const{classes:t,row:n,error:i}=e;return tn({root:["root",n&&"row",i&&"error"]},NJ,t)},qw=G.forwardRef(function(t,n){const{actions:i,children:o,className:s,defaultValue:f,name:d,onChange:h,value:y,...b}=t,x=G.useRef(null),T=IJ(t),[w,C]=ag({controlled:y,default:f,name:"RadioGroup"});G.useImperativeHandle(i,()=>({focus:()=>{let z=x.current.querySelector("input:not(:disabled):checked");z||(z=x.current.querySelector("input:not(:disabled)")),z&&z.focus()}}),[]);const R=ii(n,x),_=vh(d),N=G.useMemo(()=>({name:_,onChange(z){C(z.target.value),h&&h(z,z.target.value)},value:w}),[_,h,C,w]);return xe.jsx(Hw.Provider,{value:N,children:xe.jsx(ZR,{role:"radiogroup",ref:R,className:Et(T.root,s),...b,children:o})})});zJ.NODE_ENV!=="production"&&(qw.propTypes={children:p.node,className:p.string,defaultValue:p.any,name:p.string,onChange:p.func,value:p.any});const LJ={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function D_(e){return Kt("MuiSelect",e)}const pb=Zt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var w3={},k_;const BJ=at(A_,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${pb.select}`]:t.select},{[`&.${pb.select}`]:t[n.variant]},{[`&.${pb.error}`]:t.error},{[`&.${pb.multiple}`]:t.multiple}]}})({[`&.${pb.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),VJ=at(C_,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${et(n.variant)}`],n.open&&t.iconOpen]}})({}),UJ=at("input",{shouldForwardProp:e=>Wx(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function N_(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function PJ(e){return e==null||typeof e=="string"&&!e.trim()}const $J=e=>{const{classes:t,variant:n,disabled:i,multiple:o,open:s,error:f}=e,d={select:["select",n,i&&"disabled",o&&"multiple",f&&"error"],icon:["icon",`icon${et(n)}`,s&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]};return tn(d,D_,t)},z_=G.forwardRef(function(t,n){var fr,Z,Me,rt;const{"aria-describedby":i,"aria-label":o,autoFocus:s,autoWidth:f,children:d,className:h,defaultOpen:y,defaultValue:b,disabled:x,displayEmpty:T,error:w=!1,IconComponent:C,inputRef:R,labelId:_,MenuProps:N={},multiple:z,name:B,onBlur:V,onChange:I,onClose:P,onFocus:Y,onKeyDown:se,onMouseDown:ue,onOpen:re,open:le,readOnly:$,renderValue:oe,required:W,SelectDisplayProps:ie={},tabIndex:K,type:ae,value:pe,variant:Te="standard",...ee}=t,[q,J]=ag({controlled:pe,default:b,name:"Select"}),[F,Re]=ag({controlled:le,default:y,name:"Select"}),be=G.useRef(null),De=G.useRef(null),[Pe,Fe]=G.useState(null),{current:Ze}=G.useRef(le!=null),[Qe,tt]=G.useState(),$e=ii(n,R),_e=G.useCallback(Ne=>{De.current=Ne,Ne&&Fe(Ne)},[]),ut=Pe==null?void 0:Pe.parentNode;G.useImperativeHandle($e,()=>({focus:()=>{De.current.focus()},node:be.current,value:q}),[q]);const Ot=Pe!==null&&F;G.useEffect(()=>{if(!Ot||!ut||f||typeof ResizeObserver>"u")return;const Ne=new ResizeObserver(()=>{tt(ut.clientWidth)});return Ne.observe(ut),()=>{Ne.disconnect()}},[Ot,ut,f]),G.useEffect(()=>{y&&F&&Pe&&!Ze&&(tt(f?null:ut.clientWidth),De.current.focus())},[Pe,f]),G.useEffect(()=>{s&&De.current.focus()},[s]),G.useEffect(()=>{if(!_)return;const Ne=xa(De.current).getElementById(_);if(Ne){const Ke=()=>{getSelection().isCollapsed&&De.current.focus()};return Ne.addEventListener("click",Ke),()=>{Ne.removeEventListener("click",Ke)}}},[_]);const Qt=(Ne,Ke)=>{Ne?re&&re(Ke):P&&P(Ke),Ze||(tt(f?null:ut.clientWidth),Re(Ne))},vt=Ne=>{ue==null||ue(Ne),Ne.button===0&&(Ne.preventDefault(),De.current.focus(),Qt(!0,Ne))},Lt=Ne=>{Qt(!1,Ne)},un=G.Children.toArray(d),Dn=Ne=>{const Ke=un.find(At=>At.props.value===Ne.target.value);Ke!==void 0&&(J(Ke.props.value),I&&I(Ne,Ke))},lt=Ne=>Ke=>{let At;if(Ke.currentTarget.hasAttribute("tabindex")){if(z){At=Array.isArray(q)?q.slice():[];const St=q.indexOf(Ne.props.value);St===-1?At.push(Ne.props.value):At.splice(St,1)}else At=Ne.props.value;if(Ne.props.onClick&&Ne.props.onClick(Ke),q!==At&&(J(At),I)){const St=Ke.nativeEvent||Ke,Xt=new St.constructor(St.type,St);Object.defineProperty(Xt,"target",{writable:!0,value:{value:At,name:B}}),I(Xt,Ne)}z||Qt(!1,Ke)}},Mt=Ne=>{$||([" ","ArrowUp","ArrowDown","Enter"].includes(Ne.key)&&(Ne.preventDefault(),Qt(!0,Ne)),se==null||se(Ne))},$n=Ne=>{!Ot&&V&&(Object.defineProperty(Ne,"target",{writable:!0,value:{value:q,name:B}}),V(Ne))};delete ee["aria-invalid"];let $t,nt;const Ee=[];let Ue=!1,st=!1;(u3({value:q})||T)&&(oe?$t=oe(q):Ue=!0);const mt=un.map(Ne=>{if(!G.isValidElement(Ne))return null;w3.NODE_ENV!=="production"&&ph.isFragment(Ne)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
`));let Ke;if(z){if(!Array.isArray(q))throw new Error(w3.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":Jc(2));Ke=q.some(At=>N_(At,Ne.props.value)),Ke&&Ue&&Ee.push(Ne.props.children)}else Ke=N_(q,Ne.props.value),Ke&&Ue&&(nt=Ne.props.children);return Ke&&(st=!0),G.cloneElement(Ne,{"aria-selected":Ke?"true":"false",onClick:lt(Ne),onKeyUp:At=>{At.key===" "&&At.preventDefault(),Ne.props.onKeyUp&&Ne.props.onKeyUp(At)},role:"option",selected:Ke,value:void 0,"data-value":Ne.props.value})});w3.NODE_ENV!=="production"&&G.useEffect(()=>{if(!st&&!z&&q!==""){const Ne=un.map(Ke=>Ke.props.value);console.warn([`MUI: You have provided an out-of-range value \`${q}\` for the select ${B?`(name="${B}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${Ne.filter(Ke=>Ke!=null).map(Ke=>`\`${Ke}\``).join(", ")||'""'}.`].join(`
`))}},[st,un,z,B,q]),Ue&&(z?Ee.length===0?$t=null:$t=Ee.reduce((Ne,Ke,At)=>(Ne.push(Ke),At<Ee.length-1&&Ne.push(", "),Ne),[]):$t=nt);let dt=Qe;!f&&Ze&&Pe&&(dt=ut.clientWidth);let bt;typeof K<"u"?bt=K:bt=x?null:0;const pn=ie.id||(B?`mui-component-select-${B}`:void 0),kt={...t,variant:Te,value:q,open:Ot,error:w},Vt=$J(kt),Fn={...N.PaperProps,...typeof((fr=N.slotProps)==null?void 0:fr.paper)=="function"?N.slotProps.paper(kt):(Z=N.slotProps)==null?void 0:Z.paper},yn={...N.MenuListProps,...typeof((Me=N.slotProps)==null?void 0:Me.list)=="function"?N.slotProps.list(kt):(rt=N.slotProps)==null?void 0:rt.list},Yr=vh();return xe.jsxs(G.Fragment,{children:[xe.jsx(BJ,{as:"div",ref:_e,tabIndex:bt,role:"combobox","aria-controls":Ot?Yr:void 0,"aria-disabled":x?"true":void 0,"aria-expanded":Ot?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[_,pn].filter(Boolean).join(" ")||void 0,"aria-describedby":i,"aria-required":W?"true":void 0,"aria-invalid":w?"true":void 0,onKeyDown:Mt,onMouseDown:x||$?null:vt,onBlur:$n,onFocus:Y,...ie,ownerState:kt,className:Et(ie.className,Vt.select,h),id:pn,children:PJ($t)?k_||(k_=xe.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):$t}),xe.jsx(UJ,{"aria-invalid":w,value:Array.isArray(q)?q.join(","):q,name:B,ref:be,"aria-hidden":!0,onChange:Dn,tabIndex:-1,disabled:x,className:Vt.nativeInput,autoFocus:s,required:W,...ee,ownerState:kt}),xe.jsx(VJ,{as:C,className:Vt.icon,ownerState:kt}),xe.jsx(w_,{id:`menu-${B||""}`,anchorEl:ut,open:Ot,onClose:Lt,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...N,slotProps:{...N.slotProps,list:{"aria-labelledby":_,role:"listbox","aria-multiselectable":z?"true":void 0,disableListWrap:!0,id:Yr,...yn},paper:{...Fn,style:{minWidth:dt,...Fn!=null?Fn.style:null}}},children:mt})]})});w3.NODE_ENV!=="production"&&(z_.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:fo,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 jJ={};const HJ=e=>{const{classes:t}=e,i=tn({root:["root"]},D_,t);return{...t,...i}},Fw={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Sa(e)&&e!=="variant"},qJ=at(S3,Fw)(""),FJ=at(E3,Fw)(""),GJ=at(b3,Fw)(""),wg=G.forwardRef(function(t,n){const i=sn({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:s,classes:f={},className:d,defaultOpen:h=!1,displayEmpty:y=!1,IconComponent:b=rQ,id:x,input:T,inputProps:w,label:C,labelId:R,MenuProps:_,multiple:N=!1,native:z=!1,onClose:B,onOpen:V,open:I,renderValue:P,SelectDisplayProps:Y,variant:se="outlined",...ue}=i,re=z?O_:z_,le=cu(),$=Ld({props:i,muiFormControl:le,states:["variant","error"]}),oe=$.variant||se,W={...i,variant:oe,classes:f},ie=HJ(W),{root:K,...ae}=ie,pe=T||{standard:xe.jsx(qJ,{ownerState:W}),outlined:xe.jsx(FJ,{label:C,ownerState:W}),filled:xe.jsx(GJ,{ownerState:W})}[oe],Te=ii(n,mg(pe));return xe.jsx(G.Fragment,{children:G.cloneElement(pe,{inputComponent:re,inputProps:{children:s,error:$.error,IconComponent:b,variant:oe,type:void 0,multiple:N,...z?{id:x}:{autoWidth:o,defaultOpen:h,displayEmpty:y,labelId:R,MenuProps:_,onClose:B,onOpen:V,open:I,renderValue:P,SelectDisplayProps:{id:x,...Y}},...w,classes:w?Ua(ae,w.classes):ae,...T?T.props.inputProps:{}},...(N&&z||y)&&oe==="outlined"?{notched:!0}:{},ref:Te,className:Et(pe.props.className,d,ie.root),...!T&&{variant:oe},...ue})})});jJ.NODE_ENV!=="production"&&(wg.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"])}),wg.muiName="Select";function YJ(e,t,n=(i,o)=>i===o){return e.length===t.length&&e.every((i,o)=>n(i,t[o]))}const XJ=2;function Tg(e,t,n,i,o){return n===1?Math.min(e+t,o):Math.max(e-t,i)}function I_(e,t){return e-t}function L_(e,t){const{index:n}=e.reduce((i,o,s)=>{const f=Math.abs(t-o);return i===null||f<i.distance||f===i.distance?{distance:f,index:s}:i},null)??{};return n}function T3(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 A3(e,t,n){return(e-t)*100/(n-t)}function WJ(e,t,n){return(n-t)*e+t}function QJ(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 KJ(e,t,n){const i=Math.round((e-n)/t)*t+n;return Number(i.toFixed(QJ(t)))}function B_({values:e,newValue:t,index:n}){const i=e.slice();return i[n]=t,i.sort(I_)}function C3({sliderRef:e,activeIndex:t,setActive:n}){var o,s,f;const i=xa(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)&&((f=e.current)==null||f.querySelector(`[type="range"][data-index="${t}"]`).focus()),n&&n(t)}function O3(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?YJ(e,t):!1}const ZJ={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}%`})}},JJ=e=>e;let M3;function V_(){return M3===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?M3=CSS.supports("touch-action","none"):M3=!0),M3}function eee(e){const{"aria-labelledby":t,defaultValue:n,disabled:i=!1,disableSwap:o=!1,isRtl:s=!1,marks:f=!1,max:d=100,min:h=0,name:y,onChange:b,onChangeCommitted:x,orientation:T="horizontal",rootRef:w,scale:C=JJ,step:R=1,shiftStep:_=10,tabIndex:N,value:z}=e,B=G.useRef(void 0),[V,I]=G.useState(-1),[P,Y]=G.useState(-1),[se,ue]=G.useState(!1),re=G.useRef(0),le=G.useRef(null),[$,oe]=ag({controlled:z,default:n??h,name:"Slider"}),W=b&&((nt,Ee,Ue)=>{const st=nt.nativeEvent||nt,mt=new st.constructor(st.type,st);Object.defineProperty(mt,"target",{writable:!0,value:{value:Ee,name:y}}),le.current=Ee,b(mt,Ee,Ue)}),ie=Array.isArray($);let K=ie?$.slice().sort(I_):[$];K=K.map(nt=>nt==null?h:Qm(nt,h,d));const ae=f===!0&&R!==null?[...Array(Math.floor((d-h)/R)+1)].map((nt,Ee)=>({value:h+R*Ee})):f||[],pe=ae.map(nt=>nt.value),[Te,ee]=G.useState(-1),q=G.useRef(null),J=ii(w,q),F=nt=>Ee=>{var st;const Ue=Number(Ee.currentTarget.getAttribute("data-index"));ug(Ee.target)&&ee(Ue),Y(Ue),(st=nt==null?void 0:nt.onFocus)==null||st.call(nt,Ee)},Re=nt=>Ee=>{var Ue;ug(Ee.target)||ee(-1),Y(-1),(Ue=nt==null?void 0:nt.onBlur)==null||Ue.call(nt,Ee)},be=(nt,Ee)=>{const Ue=Number(nt.currentTarget.getAttribute("data-index")),st=K[Ue],mt=pe.indexOf(st);let dt=Ee;if(ae&&R==null){const bt=pe[pe.length-1];dt>=bt?dt=bt:dt<=pe[0]?dt=pe[0]:dt=dt<st?pe[mt-1]:pe[mt+1]}if(dt=Qm(dt,h,d),ie){o&&(dt=Qm(dt,K[Ue-1]||-1/0,K[Ue+1]||1/0));const bt=dt;dt=B_({values:K,newValue:dt,index:Ue});let pn=Ue;o||(pn=dt.indexOf(bt)),C3({sliderRef:q,activeIndex:pn})}oe(dt),ee(Ue),W&&!O3(dt,$)&&W(nt,dt,Ue),x&&x(nt,le.current??dt)},De=nt=>Ee=>{var Ue;if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(Ee.key)){Ee.preventDefault();const st=Number(Ee.currentTarget.getAttribute("data-index")),mt=K[st];let dt=null;if(R!=null){const bt=Ee.shiftKey?_:R;switch(Ee.key){case"ArrowUp":dt=Tg(mt,bt,1,h,d);break;case"ArrowRight":dt=Tg(mt,bt,s?-1:1,h,d);break;case"ArrowDown":dt=Tg(mt,bt,-1,h,d);break;case"ArrowLeft":dt=Tg(mt,bt,s?1:-1,h,d);break;case"PageUp":dt=Tg(mt,_,1,h,d);break;case"PageDown":dt=Tg(mt,_,-1,h,d);break;case"Home":dt=h;break;case"End":dt=d;break}}else if(ae){const bt=pe[pe.length-1],pn=pe.indexOf(mt),kt=[s?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],Vt=[s?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];kt.includes(Ee.key)?pn===0?dt=pe[0]:dt=pe[pn-1]:Vt.includes(Ee.key)&&(pn===pe.length-1?dt=bt:dt=pe[pn+1])}dt!=null&&be(Ee,dt)}(Ue=nt==null?void 0:nt.onKeyDown)==null||Ue.call(nt,Ee)};Xl(()=>{var nt;i&&q.current.contains(document.activeElement)&&((nt=document.activeElement)==null||nt.blur())},[i]),i&&V!==-1&&I(-1),i&&Te!==-1&&ee(-1);const Pe=nt=>Ee=>{var Ue;(Ue=nt.onChange)==null||Ue.call(nt,Ee),be(Ee,Ee.target.valueAsNumber)},Fe=G.useRef(void 0);let Ze=T;s&&T==="horizontal"&&(Ze+="-reverse");const Qe=({finger:nt,move:Ee=!1})=>{const{current:Ue}=q,{width:st,height:mt,bottom:dt,left:bt}=Ue.getBoundingClientRect();let pn;Ze.startsWith("vertical")?pn=(dt-nt.y)/mt:pn=(nt.x-bt)/st,Ze.includes("-reverse")&&(pn=1-pn);let kt;if(kt=WJ(pn,h,d),R)kt=KJ(kt,R,h);else{const Fn=L_(pe,kt);kt=pe[Fn]}kt=Qm(kt,h,d);let Vt=0;if(ie){Ee?Vt=Fe.current:Vt=L_(K,kt),o&&(kt=Qm(kt,K[Vt-1]||-1/0,K[Vt+1]||1/0));const Fn=kt;kt=B_({values:K,newValue:kt,index:Vt}),o&&Ee||(Vt=kt.indexOf(Fn),Fe.current=Vt)}return{newValue:kt,activeIndex:Vt}},tt=Wl(nt=>{const Ee=T3(nt,B);if(!Ee)return;if(re.current+=1,nt.type==="mousemove"&&nt.buttons===0){$e(nt);return}const{newValue:Ue,activeIndex:st}=Qe({finger:Ee,move:!0});C3({sliderRef:q,activeIndex:st,setActive:I}),oe(Ue),!se&&re.current>XJ&&ue(!0),W&&!O3(Ue,$)&&W(nt,Ue,st)}),$e=Wl(nt=>{const Ee=T3(nt,B);if(ue(!1),!Ee)return;const{newValue:Ue}=Qe({finger:Ee,move:!0});I(-1),nt.type==="touchend"&&Y(-1),x&&x(nt,le.current??Ue),B.current=void 0,ut()}),_e=Wl(nt=>{if(i)return;V_()||nt.preventDefault();const Ee=nt.changedTouches[0];Ee!=null&&(B.current=Ee.identifier);const Ue=T3(nt,B);if(Ue!==!1){const{newValue:mt,activeIndex:dt}=Qe({finger:Ue});C3({sliderRef:q,activeIndex:dt,setActive:I}),oe(mt),W&&!O3(mt,$)&&W(nt,mt,dt)}re.current=0;const st=xa(q.current);st.addEventListener("touchmove",tt,{passive:!0}),st.addEventListener("touchend",$e,{passive:!0})}),ut=G.useCallback(()=>{const nt=xa(q.current);nt.removeEventListener("mousemove",tt),nt.removeEventListener("mouseup",$e),nt.removeEventListener("touchmove",tt),nt.removeEventListener("touchend",$e)},[$e,tt]);G.useEffect(()=>{const{current:nt}=q;return nt.addEventListener("touchstart",_e,{passive:V_()}),()=>{nt.removeEventListener("touchstart",_e),ut()}},[ut,_e]),G.useEffect(()=>{i&&ut()},[i,ut]);const Ot=nt=>Ee=>{var mt;if((mt=nt.onMouseDown)==null||mt.call(nt,Ee),i||Ee.defaultPrevented||Ee.button!==0)return;Ee.preventDefault();const Ue=T3(Ee,B);if(Ue!==!1){const{newValue:dt,activeIndex:bt}=Qe({finger:Ue});C3({sliderRef:q,activeIndex:bt,setActive:I}),oe(dt),W&&!O3(dt,$)&&W(Ee,dt,bt)}re.current=0;const st=xa(q.current);st.addEventListener("mousemove",tt,{passive:!0}),st.addEventListener("mouseup",$e)},Qt=A3(ie?K[0]:h,h,d),vt=A3(K[K.length-1],h,d)-Qt,Lt=(nt={})=>{const Ee=Hv(nt),Ue={onMouseDown:Ot(Ee||{})},st={...Ee,...Ue};return{...nt,ref:J,...st}},un=nt=>Ee=>{var st;(st=nt.onMouseOver)==null||st.call(nt,Ee);const Ue=Number(Ee.currentTarget.getAttribute("data-index"));Y(Ue)},Dn=nt=>Ee=>{var Ue;(Ue=nt.onMouseLeave)==null||Ue.call(nt,Ee),Y(-1)},lt=(nt={})=>{const Ee=Hv(nt),Ue={onMouseOver:un(Ee||{}),onMouseLeave:Dn(Ee||{})};return{...nt,...Ee,...Ue}},Mt=nt=>({pointerEvents:V!==-1&&V!==nt?"none":void 0});let $n;return T==="vertical"&&($n=s?"vertical-rl":"vertical-lr"),{active:V,axis:Ze,axisProps:ZJ,dragging:se,focusedThumbIndex:Te,getHiddenInputProps:(nt={})=>{const Ee=Hv(nt),Ue={onChange:Pe(Ee||{}),onFocus:F(Ee||{}),onBlur:Re(Ee||{}),onKeyDown:De(Ee||{})},st={...Ee,...Ue};return{tabIndex:N,"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,...nt,...st,style:{...LJ,direction:s?"rtl":"ltr",width:"100%",height:"100%",writingMode:$n}}},getRootProps:Lt,getThumbProps:lt,marks:ae,open:P,range:ie,rootRef:J,trackLeap:vt,trackOffset:Qt,values:K,getThumbStyle:Mt}}const tee=e=>!e||!nc(e);function nee(e){return Kt("MuiSlider",e)}const es=Zt("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 ree={};const iee=e=>{const{open:t}=e;return{offset:Et(t&&es.valueLabelOpen),circle:es.valueLabelCircle,label:es.valueLabelLabel}};function U_(e){const{children:t,className:n,value:i}=e,o=iee(e);return t?G.cloneElement(t,{className:t.props.className},xe.jsxs(G.Fragment,{children:[t.props.children,xe.jsx("span",{className:Et(o.offset,n),"aria-hidden":!0,children:xe.jsx("span",{className:o.circle,children:xe.jsx("span",{className:o.label,children:i})})})]})):null}ree.NODE_ENV!=="production"&&(U_.propTypes={children:p.element.isRequired,className:p.string,value:p.node});var P_={};function $_(e){return e}const aee=at("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${et(n.color)}`],n.size!=="medium"&&t[`size${et(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(Ft(({theme:e})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${es.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${es.dragging}`]:{[`& .${es.thumb}, & .${es.track}`]:{transition:"none"}},variants:[...Object.entries(e.palette).filter(qr()).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}}]}))),oee=at("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}}]}),lee=at("span",{name:"MuiSlider",slot:"Track"})(Ft(({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(qr()).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)})}}}))]}))),see=at("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${et(n.color)}`],n.size!=="medium"&&t[`thumbSize${et(n.size)}`]]}})(Ft(({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%)"},[`&.${es.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(qr()).map(([t])=>({props:{color:t},style:{[`&:hover, &.${es.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${es.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),j_=at(U_,{name:"MuiSlider",slot:"ValueLabel"})(Ft(({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%"},[`&.${es.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%"},[`&.${es.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"}}]})));P_.NODE_ENV!=="production"&&(j_.propTypes={children:p.element.isRequired,index:p.number.isRequired,open:p.bool.isRequired,value:p.node});const uee=at("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Wx(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(Ft(({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}}]}))),cee=at("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Wx(e)&&e!=="markLabelActive"})(Ft(({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}}]}))),fee=e=>{const{disabled:t,dragging:n,marked:i,orientation:o,track:s,classes:f,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${et(d)}`,h&&`size${et(h)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",h&&`thumbSize${et(h)}`,d&&`thumbColor${et(d)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return tn(y,nee,f)},dee=({children:e})=>e,H_=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiSlider"}),o=qx(),{"aria-label":s,"aria-valuetext":f,"aria-labelledby":d,component:h="span",components:y={},componentsProps:b={},color:x="primary",classes:T,className:w,disableSwap:C=!1,disabled:R=!1,getAriaLabel:_,getAriaValueText:N,marks:z=!1,max:B=100,min:V=0,name:I,onChange:P,onChangeCommitted:Y,orientation:se="horizontal",shiftStep:ue=10,size:re="medium",step:le=1,scale:$=$_,slotProps:oe,slots:W,tabIndex:ie,track:K="normal",value:ae,valueLabelDisplay:pe="off",valueLabelFormat:Te=$_,...ee}=i,q={...i,isRtl:o,max:B,min:V,classes:T,disabled:R,disableSwap:C,orientation:se,marks:z,color:x,size:re,step:le,shiftStep:ue,scale:$,track:K,valueLabelDisplay:pe,valueLabelFormat:Te},{axisProps:J,getRootProps:F,getHiddenInputProps:Re,getThumbProps:be,open:De,active:Pe,axis:Fe,focusedThumbIndex:Ze,range:Qe,dragging:tt,marks:$e,values:_e,trackOffset:ut,trackLeap:Ot,getThumbStyle:Qt}=eee({...q,rootRef:n});q.marked=$e.length>0&&$e.some(Ne=>Ne.label),q.dragging=tt,q.focusedThumbIndex=Ze;const vt=fee(q),Lt=(W==null?void 0:W.root)??y.Root??aee,un=(W==null?void 0:W.rail)??y.Rail??oee,Dn=(W==null?void 0:W.track)??y.Track??lee,lt=(W==null?void 0:W.thumb)??y.Thumb??see,Mt=(W==null?void 0:W.valueLabel)??y.ValueLabel??j_,$n=(W==null?void 0:W.mark)??y.Mark??uee,$t=(W==null?void 0:W.markLabel)??y.MarkLabel??cee,nt=(W==null?void 0:W.input)??y.Input??"input",Ee=(oe==null?void 0:oe.root)??b.root,Ue=(oe==null?void 0:oe.rail)??b.rail,st=(oe==null?void 0:oe.track)??b.track,mt=(oe==null?void 0:oe.thumb)??b.thumb,dt=(oe==null?void 0:oe.valueLabel)??b.valueLabel,bt=(oe==null?void 0:oe.mark)??b.mark,pn=(oe==null?void 0:oe.markLabel)??b.markLabel,kt=(oe==null?void 0:oe.input)??b.input,Vt=ac({elementType:Lt,getSlotProps:F,externalSlotProps:Ee,externalForwardedProps:ee,additionalProps:{...tee(Lt)&&{as:h}},ownerState:{...q,...Ee==null?void 0:Ee.ownerState},className:[vt.root,w]}),Fn=ac({elementType:un,externalSlotProps:Ue,ownerState:q,className:vt.rail}),yn=ac({elementType:Dn,externalSlotProps:st,additionalProps:{style:{...J[Fe].offset(ut),...J[Fe].leap(Ot)}},ownerState:{...q,...st==null?void 0:st.ownerState},className:vt.track}),Yr=ac({elementType:lt,getSlotProps:be,externalSlotProps:mt,ownerState:{...q,...mt==null?void 0:mt.ownerState},className:vt.thumb}),fr=ac({elementType:Mt,externalSlotProps:dt,ownerState:{...q,...dt==null?void 0:dt.ownerState},className:vt.valueLabel}),Z=ac({elementType:$n,externalSlotProps:bt,ownerState:q,className:vt.mark}),Me=ac({elementType:$t,externalSlotProps:pn,ownerState:q,className:vt.markLabel}),rt=ac({elementType:nt,getSlotProps:Re,externalSlotProps:kt,ownerState:q});return xe.jsxs(Lt,{...Vt,children:[xe.jsx(un,{...Fn}),xe.jsx(Dn,{...yn}),$e.filter(Ne=>Ne.value>=V&&Ne.value<=B).map((Ne,Ke)=>{const At=A3(Ne.value,V,B),St=J[Fe].offset(At);let Xt;return K===!1?Xt=_e.includes(Ne.value):Xt=K==="normal"&&(Qe?Ne.value>=_e[0]&&Ne.value<=_e[_e.length-1]:Ne.value<=_e[0])||K==="inverted"&&(Qe?Ne.value<=_e[0]||Ne.value>=_e[_e.length-1]:Ne.value>=_e[0]),xe.jsxs(G.Fragment,{children:[xe.jsx($n,{"data-index":Ke,...Z,...!nc($n)&&{markActive:Xt},style:{...St,...Z.style},className:Et(Z.className,Xt&&vt.markActive)}),Ne.label!=null?xe.jsx($t,{"aria-hidden":!0,"data-index":Ke,...Me,...!nc($t)&&{markLabelActive:Xt},style:{...St,...Me.style},className:Et(vt.markLabel,Me.className,Xt&&vt.markLabelActive),children:Ne.label}):null]},Ke)}),_e.map((Ne,Ke)=>{const At=A3(Ne,V,B),St=J[Fe].offset(At),Xt=pe==="off"?dee:Mt;return xe.jsx(Xt,{...!nc(Xt)&&{valueLabelFormat:Te,valueLabelDisplay:pe,value:typeof Te=="function"?Te($(Ne),Ke):Te,index:Ke,open:De===Ke||Pe===Ke||pe==="on",disabled:R},...fr,children:xe.jsx(lt,{"data-index":Ke,...Yr,className:Et(vt.thumb,Yr.className,Pe===Ke&&vt.active,Ze===Ke&&vt.focusVisible),style:{...St,...Qt(Ke),...Yr.style},children:xe.jsx(nt,{"data-index":Ke,"aria-label":_?_(Ke):s,"aria-valuenow":$(Ne),"aria-labelledby":d,"aria-valuetext":N?N($(Ne),Ke):f,value:_e[Ke],...rt})})},Ke)})]})});P_.NODE_ENV!=="production"&&(H_.propTypes={"aria-label":su(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":su(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 hee(e){return Kt("MuiTooltip",e)}const di=Zt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);var R3={};function pee(e){return Math.round(e*1e5)/1e5}const mee=e=>{const{classes:t,disableInteractive:n,arrow:i,touch:o,placement:s}=e,f={popper:["popper",!n&&"popperInteractive",i&&"popperArrow"],tooltip:["tooltip",i&&"tooltipArrow",o&&"touch",`tooltipPlacement${et(s.split("-")[0])}`],arrow:["arrow"]};return tn(f,hee,t)},gee=at(Aw,{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]}})(Ft(({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"}}}]}))),yee=at("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${et(n.placement.split("-")[0])}`]]}})(Ft(({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:`${pee(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"}}}]}))),vee=at("span",{name:"MuiTooltip",slot:"Arrow"})(Ft(({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 _3=!1;const q_=new Zx;let mb={x:0,y:0};function D3(e,t){return(n,...i)=>{t&&t(n,...i),e(n,...i)}}const F_=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:s,classes:f,components:d={},componentsProps:h={},describeChild:y=!1,disableFocusListener:b=!1,disableHoverListener:x=!1,disableInteractive:T=!1,disableTouchListener:w=!1,enterDelay:C=100,enterNextDelay:R=0,enterTouchDelay:_=700,followCursor:N=!1,id:z,leaveDelay:B=0,leaveTouchDelay:V=1500,onClose:I,onOpen:P,open:Y,placement:se="bottom",PopperComponent:ue,PopperProps:re={},slotProps:le={},slots:$={},title:oe,TransitionComponent:W,TransitionProps:ie,...K}=i,ae=G.isValidElement(s)?s:xe.jsx("span",{children:s}),pe=nf(),Te=qx(),[ee,q]=G.useState(),[J,F]=G.useState(null),Re=G.useRef(!1),be=T||N,De=sg(),Pe=sg(),Fe=sg(),Ze=sg(),[Qe,tt]=ag({controlled:Y,default:!1,name:"Tooltip",state:"open"});let $e=Qe;if(R3.NODE_ENV!=="production"){const{current:pt}=G.useRef(Y!==void 0);G.useEffect(()=>{ee&&ee.disabled&&!pt&&oe!==""&&ee.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(`
`))},[oe,ee,pt])}const _e=vh(z),ut=G.useRef(),Ot=Wl(()=>{ut.current!==void 0&&(document.body.style.WebkitUserSelect=ut.current,ut.current=void 0),Ze.clear()});G.useEffect(()=>Ot,[Ot]);const Qt=pt=>{q_.clear(),_3=!0,tt(!0),P&&!$e&&P(pt)},vt=Wl(pt=>{q_.start(800+B,()=>{_3=!1}),tt(!1),I&&$e&&I(pt),De.start(pe.transitions.duration.shortest,()=>{Re.current=!1})}),Lt=pt=>{Re.current&&pt.type!=="touchstart"||(ee&&ee.removeAttribute("title"),Pe.clear(),Fe.clear(),C||_3&&R?Pe.start(_3?R:C,()=>{Qt(pt)}):Qt(pt))},un=pt=>{Pe.clear(),Fe.start(B,()=>{vt(pt)})},[,Dn]=G.useState(!1),lt=pt=>{ug(pt.target)||(Dn(!1),un(pt))},Mt=pt=>{ee||q(pt.currentTarget),ug(pt.target)&&(Dn(!0),Lt(pt))},$n=pt=>{Re.current=!0;const tr=ae.props;tr.onTouchStart&&tr.onTouchStart(pt)},$t=pt=>{$n(pt),Fe.clear(),De.clear(),Ot(),ut.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ze.start(_,()=>{document.body.style.WebkitUserSelect=ut.current,Lt(pt)})},nt=pt=>{ae.props.onTouchEnd&&ae.props.onTouchEnd(pt),Ot(),Fe.start(V,()=>{vt(pt)})};G.useEffect(()=>{if(!$e)return;function pt(tr){tr.key==="Escape"&&vt(tr)}return document.addEventListener("keydown",pt),()=>{document.removeEventListener("keydown",pt)}},[vt,$e]);const Ee=ii(mg(ae),q,n);!oe&&oe!==0&&($e=!1);const Ue=G.useRef(),st=pt=>{const tr=ae.props;tr.onMouseMove&&tr.onMouseMove(pt),mb={x:pt.clientX,y:pt.clientY},Ue.current&&Ue.current.update()},mt={},dt=typeof oe=="string";y?(mt.title=!$e&&dt&&!x?oe:null,mt["aria-describedby"]=$e?_e:null):(mt["aria-label"]=dt?oe:null,mt["aria-labelledby"]=$e&&!dt?_e:null);const bt={...mt,...K,...ae.props,className:Et(K.className,ae.props.className),onTouchStart:$n,ref:Ee,...N?{onMouseMove:st}:{}};R3.NODE_ENV!=="production"&&(bt["data-mui-internal-clone-element"]=!0,G.useEffect(()=>{ee&&!ee.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(`
`))},[ee]));const pn={};w||(bt.onTouchStart=$t,bt.onTouchEnd=nt),x||(bt.onMouseOver=D3(Lt,bt.onMouseOver),bt.onMouseLeave=D3(un,bt.onMouseLeave),be||(pn.onMouseOver=Lt,pn.onMouseLeave=un)),b||(bt.onFocus=D3(Mt,bt.onFocus),bt.onBlur=D3(lt,bt.onBlur),be||(pn.onFocus=Mt,pn.onBlur=lt)),R3.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 kt={...i,isRtl:Te,arrow:o,disableInteractive:be,placement:se,PopperComponentProp:ue,touch:Re.current},Vt=typeof le.popper=="function"?le.popper(kt):le.popper,Fn=G.useMemo(()=>{var tr,Hi;let pt=[{name:"arrow",enabled:!!J,options:{element:J,padding:4}}];return(tr=re.popperOptions)!=null&&tr.modifiers&&(pt=pt.concat(re.popperOptions.modifiers)),(Hi=Vt==null?void 0:Vt.popperOptions)!=null&&Hi.modifiers&&(pt=pt.concat(Vt.popperOptions.modifiers)),{...re.popperOptions,...Vt==null?void 0:Vt.popperOptions,modifiers:pt}},[J,re.popperOptions,Vt==null?void 0:Vt.popperOptions]),yn=mee(kt),Yr=typeof le.transition=="function"?le.transition(kt):le.transition,fr={slots:{popper:d.Popper,transition:d.Transition??W,tooltip:d.Tooltip,arrow:d.Arrow,...$},slotProps:{arrow:le.arrow??h.arrow,popper:{...re,...Vt??h.popper},tooltip:le.tooltip??h.tooltip,transition:{...ie,...Yr??h.transition}}},[Z,Me]=rn("popper",{elementType:gee,externalForwardedProps:fr,ownerState:kt,className:Et(yn.popper,re==null?void 0:re.className)}),[rt,Ne]=rn("transition",{elementType:ub,externalForwardedProps:fr,ownerState:kt}),[Ke,At]=rn("tooltip",{elementType:yee,className:yn.tooltip,externalForwardedProps:fr,ownerState:kt}),[St,Xt]=rn("arrow",{elementType:vee,className:yn.arrow,externalForwardedProps:fr,ownerState:kt,ref:F});return xe.jsxs(G.Fragment,{children:[G.cloneElement(ae,bt),xe.jsx(Z,{as:ue??Aw,placement:se,anchorEl:N?{getBoundingClientRect:()=>({top:mb.y,left:mb.x,right:mb.x,bottom:mb.y,width:0,height:0})}:ee,popperRef:Ue,open:ee?$e:!1,id:_e,transition:!0,...pn,...Me,popperOptions:Fn,children:({TransitionProps:pt})=>xe.jsx(rt,{timeout:pe.transitions.duration.shorter,...pt,...Ne,children:xe.jsxs(Ke,{...At,children:[oe,o?xe.jsx(St,{...Xt}):null]})})})]})});R3.NODE_ENV!=="production"&&(F_.propTypes={arrow:p.bool,children:yg.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 bee(e){return Kt("MuiSwitch",e)}const ho=Zt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);var See={};const xee=e=>{const{classes:t,edge:n,size:i,color:o,checked:s,disabled:f}=e,d={root:["root",n&&`edge${et(n)}`,`size${et(i)}`],switchBase:["switchBase",`color${et(o)}`,s&&"checked",f&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},h=tn(d,bee,t);return{...t,...h}},Eee=at("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${et(n.edge)}`],t[`size${et(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,[`& .${ho.thumb}`]:{width:16,height:16},[`& .${ho.switchBase}`]:{padding:4,[`&.${ho.checked}`]:{transform:"translateX(16px)"}}}}]}),wee=at(g3,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${ho.input}`]:t.input},n.color!=="default"&&t[`color${et(n.color)}`]]}})(Ft(({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}),[`&.${ho.checked}`]:{transform:"translateX(20px)"},[`&.${ho.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${ho.checked} + .${ho.track}`]:{opacity:.5},[`&.${ho.disabled} + .${ho.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${ho.input}`]:{left:"-100%",width:"300%"}})),Ft(({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(qr(["light"])).map(([t])=>({props:{color:t},style:{[`&.${ho.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"}},[`&.${ho.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)}`}},[`&.${ho.checked} + .${ho.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),Tee=at("span",{name:"MuiSwitch",slot:"Track"})(Ft(({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}`}))),Aee=at("span",{name:"MuiSwitch",slot:"Thumb"})(Ft(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),G_=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiSwitch"}),{className:o,color:s="primary",edge:f=!1,size:d="medium",sx:h,slots:y={},slotProps:b={},...x}=i,T={...i,color:s,edge:f,size:d},w=xee(T),C={slots:y,slotProps:b},[R,_]=rn("root",{className:Et(w.root,o),elementType:Eee,externalForwardedProps:C,ownerState:T,additionalProps:{sx:h}}),[N,z]=rn("thumb",{className:w.thumb,elementType:Aee,externalForwardedProps:C,ownerState:T}),B=xe.jsx(N,{...z}),[V,I]=rn("track",{className:w.track,elementType:Tee,externalForwardedProps:C,ownerState:T});return xe.jsxs(R,{..._,children:[xe.jsx(wee,{type:"checkbox",icon:B,checkedIcon:B,ref:n,ownerState:T,...x,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}}}),xe.jsx(V,{...I})]})});See.NODE_ENV!=="production"&&(G_.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:fo,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 Cee(e){return Kt("MuiTextField",e)}Zt("MuiTextField",["root"]);var Y_={};const Oee={standard:S3,filled:b3,outlined:E3},Mee=e=>{const{classes:t}=e;return tn({root:["root"]},Cee,t)},Ree=at($i,{name:"MuiTextField",slot:"Root"})({}),Sl=G.forwardRef(function(t,n){const i=sn({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:s=!1,children:f,className:d,color:h="primary",defaultValue:y,disabled:b=!1,error:x=!1,FormHelperTextProps:T,fullWidth:w=!1,helperText:C,id:R,InputLabelProps:_,inputProps:N,InputProps:z,inputRef:B,label:V,maxRows:I,minRows:P,multiline:Y=!1,name:se,onBlur:ue,onChange:re,onFocus:le,placeholder:$,required:oe=!1,rows:W,select:ie=!1,SelectProps:K,slots:ae={},slotProps:pe={},type:Te,value:ee,variant:q="outlined",...J}=i,F={...i,autoFocus:s,color:h,disabled:b,error:x,fullWidth:w,multiline:Y,required:oe,select:ie,variant:q},Re=Mee(F);Y_.NODE_ENV!=="production"&&ie&&!f&&console.error("MUI: `children` must be passed when using the `TextField` component with `select`.");const be=vh(R),De=C&&be?`${be}-helper-text`:void 0,Pe=V&&be?`${be}-label`:void 0,Fe=Oee[q],Ze={slots:ae,slotProps:{input:z,inputLabel:_,htmlInput:N,formHelperText:T,select:K,...pe}},Qe={},tt=Ze.slotProps.inputLabel;q==="outlined"&&(tt&&typeof tt.shrink<"u"&&(Qe.notched=tt.shrink),Qe.label=V),ie&&((!K||!K.native)&&(Qe.id=void 0),Qe["aria-describedby"]=void 0);const[$e,_e]=rn("root",{elementType:Ree,shouldForwardComponentProp:!0,externalForwardedProps:{...Ze,...J},ownerState:F,className:Et(Re.root,d),ref:n,additionalProps:{disabled:b,error:x,fullWidth:w,required:oe,color:h,variant:q}}),[ut,Ot]=rn("input",{elementType:Fe,externalForwardedProps:Ze,additionalProps:Qe,ownerState:F}),[Qt,vt]=rn("inputLabel",{elementType:s_,externalForwardedProps:Ze,ownerState:F}),[Lt,un]=rn("htmlInput",{elementType:"input",externalForwardedProps:Ze,ownerState:F}),[Dn,lt]=rn("formHelperText",{elementType:t_,externalForwardedProps:Ze,ownerState:F}),[Mt,$n]=rn("select",{elementType:wg,externalForwardedProps:Ze,ownerState:F}),$t=xe.jsx(ut,{"aria-describedby":De,autoComplete:o,autoFocus:s,defaultValue:y,fullWidth:w,multiline:Y,name:se,rows:W,maxRows:I,minRows:P,type:Te,value:ee,id:be,inputRef:B,onBlur:ue,onChange:re,onFocus:le,placeholder:$,inputProps:un,slots:{input:ae.htmlInput?Lt:void 0},...Ot});return xe.jsxs($e,{..._e,children:[V!=null&&V!==""&&xe.jsx(Qt,{htmlFor:be,id:Pe,...vt,children:V}),ie?xe.jsx(Mt,{"aria-describedby":De,id:be,labelId:Pe,value:ee,input:$t,...$n,children:f}):$t,C&&xe.jsx(Dn,{id:De,...lt,children:C})]})});Y_.NODE_ENV!=="production"&&(Sl.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:fo,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 _ee=({model:e,fontSize:t="small"})=>{if(!e)return ce.createElement($M,{fontSize:t});switch(e){case"OPENAI":return ce.createElement(bh,{fontSize:t,viewBox:"0 0 24 24"},ce.createElement("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 ce.createElement(bh,{fontSize:t,viewBox:"0 0 24 24"},ce.createElement("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"}),ce.createElement("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 ce.createElement(bh,{fontSize:t,viewBox:"0 0 24 24"},ce.createElement("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 ce.createElement($M,{fontSize:t})}},Dee=({enabledModels:e})=>{const t=Wu("settings"),n=Wu("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=xv[d],y=h.labels;return h.options.map(b=>{const x=b;return{label:y[x],value:x}})},f=d=>{const h=xv[d],y=i.llm.models[d].version,b=h.options;return!y||!b.includes(y)?h.default:y};return ce.createElement(Si,{sx:{mt:2,display:"flex",flexDirection:"column",gap:1}},e.map(d=>ce.createElement(Si,{key:d.modelKey,sx:{display:"flex",alignItems:"center",gap:1}},ce.createElement(Fr,{variant:"body2",sx:{minWidth:100}},d.name,":"),ce.createElement($i,{size:"small",sx:{minWidth:200}},ce.createElement(wg,{value:f(d.modelKey),onChange:h=>o(d.modelKey,h.target.value),"aria-label":`Select ${d.name} version`,MenuProps:{disablePortal:!0,PaperProps:{sx:{maxHeight:200}}}},s(d.modelKey).map(h=>ce.createElement(Mh,{key:h.value,value:h.value},h.label)))))))};function zfe(){}function Ife(){}function X_(e){const t=[],n=String(e||"");let i=n.indexOf(","),o=0,s=!1;for(;!s;){i===-1&&(i=n.length,s=!0);const f=n.slice(o,i).trim();(f||!s)&&t.push(f),o=i+1,i=n.indexOf(",",o)}return t}function kee(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Nee=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,zee=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Iee={};function W_(e,t){return(Iee.jsx?zee:Nee).test(e)}const Lee=/[ \t\n\f\r]/g;function Bee(e){return typeof e=="object"?e.type==="text"?Q_(e.value):!1:Q_(e)}function Q_(e){return e.replace(Lee,"")===""}class gb{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}gb.prototype.normal={},gb.prototype.property={},gb.prototype.space=void 0;function K_(e,t){const n={},i={};for(const o of e)Object.assign(n,o.property),Object.assign(i,o.normal);return new gb(n,i,t)}function yb(e){return e.toLowerCase()}class $o{constructor(t,n){this.attribute=n,this.property=t}}$o.prototype.attribute="",$o.prototype.booleanish=!1,$o.prototype.boolean=!1,$o.prototype.commaOrSpaceSeparated=!1,$o.prototype.commaSeparated=!1,$o.prototype.defined=!1,$o.prototype.mustUseProperty=!1,$o.prototype.number=!1,$o.prototype.overloadedBoolean=!1,$o.prototype.property="",$o.prototype.spaceSeparated=!1,$o.prototype.space=void 0;let Vee=0;const En=Rh(),_i=Rh(),Gw=Rh(),ht=Rh(),Dr=Rh(),Ag=Rh(),xl=Rh();function Rh(){return 2**++Vee}const Yw=Object.freeze(Object.defineProperty({__proto__:null,boolean:En,booleanish:_i,commaOrSpaceSeparated:xl,commaSeparated:Ag,number:ht,overloadedBoolean:Gw,spaceSeparated:Dr},Symbol.toStringTag,{value:"Module"})),Xw=Object.keys(Yw);class Ww extends $o{constructor(t,n,i,o){let s=-1;if(super(t,n),Z_(this,"space",o),typeof i=="number")for(;++s<Xw.length;){const f=Xw[s];Z_(this,Xw[s],(i&Yw[f])===Yw[f])}}}Ww.prototype.defined=!0;function Z_(e,t,n){n&&(e[t]=n)}function Cg(e){const t={},n={};for(const[i,o]of Object.entries(e.properties)){const s=new Ww(i,e.transform(e.attributes||{},i),o,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,n[yb(i)]=i,n[yb(s.attribute)]=i}return new gb(t,n,e.space)}const J_=Cg({properties:{ariaActiveDescendant:null,ariaAtomic:_i,ariaAutoComplete:null,ariaBusy:_i,ariaChecked:_i,ariaColCount:ht,ariaColIndex:ht,ariaColSpan:ht,ariaControls:Dr,ariaCurrent:null,ariaDescribedBy:Dr,ariaDetails:null,ariaDisabled:_i,ariaDropEffect:Dr,ariaErrorMessage:null,ariaExpanded:_i,ariaFlowTo:Dr,ariaGrabbed:_i,ariaHasPopup:null,ariaHidden:_i,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Dr,ariaLevel:ht,ariaLive:null,ariaModal:_i,ariaMultiLine:_i,ariaMultiSelectable:_i,ariaOrientation:null,ariaOwns:Dr,ariaPlaceholder:null,ariaPosInSet:ht,ariaPressed:_i,ariaReadOnly:_i,ariaRelevant:null,ariaRequired:_i,ariaRoleDescription:Dr,ariaRowCount:ht,ariaRowIndex:ht,ariaRowSpan:ht,ariaSelected:_i,ariaSetSize:ht,ariaSort:null,ariaValueMax:ht,ariaValueMin:ht,ariaValueNow:ht,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function eD(e,t){return t in e?e[t]:t}function tD(e,t){return eD(e,t.toLowerCase())}const Uee=Cg({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Ag,acceptCharset:Dr,accessKey:Dr,action:null,allow:null,allowFullScreen:En,allowPaymentRequest:En,allowUserMedia:En,alt:null,as:null,async:En,autoCapitalize:null,autoComplete:Dr,autoFocus:En,autoPlay:En,blocking:Dr,capture:null,charSet:null,checked:En,cite:null,className:Dr,cols:ht,colSpan:null,content:null,contentEditable:_i,controls:En,controlsList:Dr,coords:ht|Ag,crossOrigin:null,data:null,dateTime:null,decoding:null,default:En,defer:En,dir:null,dirName:null,disabled:En,download:Gw,draggable:_i,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:En,formTarget:null,headers:Dr,height:ht,hidden:Gw,high:ht,href:null,hrefLang:null,htmlFor:Dr,httpEquiv:Dr,id:null,imageSizes:null,imageSrcSet:null,inert:En,inputMode:null,integrity:null,is:null,isMap:En,itemId:null,itemProp:Dr,itemRef:Dr,itemScope:En,itemType:Dr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:En,low:ht,manifest:null,max:null,maxLength:ht,media:null,method:null,min:null,minLength:ht,multiple:En,muted:En,name:null,nonce:null,noModule:En,noValidate:En,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:En,optimum:ht,pattern:null,ping:Dr,placeholder:null,playsInline:En,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:En,referrerPolicy:null,rel:Dr,required:En,reversed:En,rows:ht,rowSpan:ht,sandbox:Dr,scope:null,scoped:En,seamless:En,selected:En,shadowRootClonable:En,shadowRootDelegatesFocus:En,shadowRootMode:null,shape:null,size:ht,sizes:null,slot:null,span:ht,spellCheck:_i,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ht,step:null,style:null,tabIndex:ht,target:null,title:null,translate:null,type:null,typeMustMatch:En,useMap:null,value:_i,width:ht,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Dr,axis:null,background:null,bgColor:null,border:ht,borderColor:null,bottomMargin:ht,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:En,declare:En,event:null,face:null,frame:null,frameBorder:null,hSpace:ht,leftMargin:ht,link:null,longDesc:null,lowSrc:null,marginHeight:ht,marginWidth:ht,noResize:En,noHref:En,noShade:En,noWrap:En,object:null,profile:null,prompt:null,rev:null,rightMargin:ht,rules:null,scheme:null,scrolling:_i,standby:null,summary:null,text:null,topMargin:ht,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ht,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:En,disableRemotePlayback:En,prefix:null,property:null,results:ht,security:null,unselectable:null},space:"html",transform:tD}),Pee=Cg({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:xl,accentHeight:ht,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ht,amplitude:ht,arabicForm:null,ascent:ht,attributeName:null,attributeType:null,azimuth:ht,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ht,by:null,calcMode:null,capHeight:ht,className:Dr,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:ht,diffuseConstant:ht,direction:null,display:null,dur:null,divisor:ht,dominantBaseline:null,download:En,dx:null,dy:null,edgeMode:null,editable:null,elevation:ht,enableBackground:null,end:null,event:null,exponent:ht,externalResourcesRequired:null,fill:null,fillOpacity:ht,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:Ag,g2:Ag,glyphName:Ag,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ht,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ht,horizOriginX:ht,horizOriginY:ht,id:null,ideographic:ht,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ht,k:ht,k1:ht,k2:ht,k3:ht,k4:ht,kernelMatrix:xl,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ht,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:ht,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:ht,overlineThickness:ht,paintOrder:null,panose1:null,path:null,pathLength:ht,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Dr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ht,pointsAtY:ht,pointsAtZ:ht,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:xl,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:xl,rev:xl,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:xl,requiredFeatures:xl,requiredFonts:xl,requiredFormats:xl,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:ht,specularExponent:ht,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ht,strikethroughThickness:ht,string:null,stroke:null,strokeDashArray:xl,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ht,strokeOpacity:ht,strokeWidth:null,style:null,surfaceScale:ht,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:xl,tabIndex:ht,tableValues:null,target:null,targetX:ht,targetY:ht,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:xl,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ht,underlineThickness:ht,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ht,values:null,vAlphabetic:ht,vMathematical:ht,vectorEffect:null,vHanging:ht,vIdeographic:ht,version:null,vertAdvY:ht,vertOriginX:ht,vertOriginY:ht,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ht,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:eD}),nD=Cg({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()}}),rD=Cg({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:tD}),iD=Cg({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),$ee={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"},jee=/[A-Z]/g,aD=/-[a-z]/g,Hee=/^data[-\w.:]+$/i;function oD(e,t){const n=yb(t);let i=t,o=$o;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Hee.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(aD,Fee);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!aD.test(s)){let f=s.replace(jee,qee);f.charAt(0)!=="-"&&(f="-"+f),t="data"+f}}o=Ww}return new o(i,t)}function qee(e){return"-"+e.toLowerCase()}function Fee(e){return e.charAt(1).toUpperCase()}const lD=K_([J_,Uee,nD,rD,iD],"html"),k3=K_([J_,Pee,nD,rD,iD],"svg");function sD(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Gee(e){return e.join(" ").trim()}var Og={},Qw,uD;function Yee(){if(uD)return Qw;uD=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,f=/^[;\s]*/,d=/^\s+|\s+$/g,h=`
`,y="/",b="*",x="",T="comment",w="declaration";function C(_,N){if(typeof _!="string")throw new TypeError("First argument must be a string");if(!_)return[];N=N||{};var z=1,B=1;function V(W){var ie=W.match(t);ie&&(z+=ie.length);var K=W.lastIndexOf(h);B=~K?W.length-K:B+W.length}function I(){var W={line:z,column:B};return function(ie){return ie.position=new P(W),ue(),ie}}function P(W){this.start=W,this.end={line:z,column:B},this.source=N.source}P.prototype.content=_;function Y(W){var ie=new Error(N.source+":"+z+":"+B+": "+W);if(ie.reason=W,ie.filename=N.source,ie.line=z,ie.column=B,ie.source=_,!N.silent)throw ie}function se(W){var ie=W.exec(_);if(ie){var K=ie[0];return V(K),_=_.slice(K.length),ie}}function ue(){se(n)}function re(W){var ie;for(W=W||[];ie=le();)ie!==!1&&W.push(ie);return W}function le(){var W=I();if(!(y!=_.charAt(0)||b!=_.charAt(1))){for(var ie=2;x!=_.charAt(ie)&&(b!=_.charAt(ie)||y!=_.charAt(ie+1));)++ie;if(ie+=2,x===_.charAt(ie-1))return Y("End of comment missing");var K=_.slice(2,ie-2);return B+=2,V(K),_=_.slice(ie),B+=2,W({type:T,comment:K})}}function $(){var W=I(),ie=se(i);if(ie){if(le(),!se(o))return Y("property missing ':'");var K=se(s),ae=W({type:w,property:R(ie[0].replace(e,x)),value:K?R(K[0].replace(e,x)):x});return se(f),ae}}function oe(){var W=[];re(W);for(var ie;ie=$();)ie!==!1&&(W.push(ie),re(W));return W}return ue(),oe()}function R(_){return _?_.replace(d,x):x}return Qw=C,Qw}var cD;function Xee(){if(cD)return Og;cD=1;var e=Og&&Og.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Og,"__esModule",{value:!0}),Og.default=n;const t=e(Yee());function n(i,o){let s=null;if(!i||typeof i!="string")return s;const f=(0,t.default)(i),d=typeof o=="function";return f.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 Og}var vb={},fD;function Wee(){if(fD)return vb;fD=1,Object.defineProperty(vb,"__esModule",{value:!0}),vb.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)},f=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,f))};return vb.camelCase=h,vb}var bb,dD;function Qee(){if(dD)return bb;dD=1;var e=bb&&bb.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(Xee()),n=Wee();function i(o,s){var f={};return!o||typeof o!="string"||(0,t.default)(o,function(d,h){d&&h&&(f[(0,n.camelCase)(d,s)]=h)}),f}return i.default=i,bb=i,bb}var Kee=Qee();const Zee=pl(Kee),hD=pD("end"),Kw=pD("start");function pD(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 mD(e){const t=Kw(e),n=hD(e);if(t&&n)return{start:t,end:n}}function Sb(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?gD(e.position):"start"in e||"end"in e?gD(e):"line"in e||"column"in e?Zw(e):""}function Zw(e){return yD(e&&e.line)+":"+yD(e&&e.column)}function gD(e){return Zw(e&&e.start)+"-"+Zw(e&&e.end)}function yD(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={},f=!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&&(f=!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=Sb(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=f&&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 Jw={}.hasOwnProperty,Jee=new Map,ete=/[A-Z]/g,tte=new Set(["table","tbody","thead","tfoot","tr"]),nte=new Set(["td","th"]),vD="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function rte(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=fte(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=cte(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"?k3:lD,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=bD(o,e,void 0);return s&&typeof s!="string"?s:o.create(e,o.Fragment,{children:s||void 0},void 0)}function bD(e,t,n){if(t.type==="element")return ite(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return ate(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return lte(e,t,n);if(t.type==="mdxjsEsm")return ote(e,t);if(t.type==="root")return ste(e,t,n);if(t.type==="text")return ute(e,t)}function ite(e,t,n){const i=e.schema;let o=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(o=k3,e.schema=o),e.ancestors.push(t);const s=xD(e,t.tagName,!1),f=dte(e,t);let d=tT(e,t);return tte.has(t.tagName)&&(d=d.filter(function(h){return typeof h=="string"?!Bee(h):!0})),SD(e,f,s,t),eT(f,d),e.ancestors.pop(),e.schema=i,e.create(t,s,f,n)}function ate(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 ote(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);xb(e,t.position)}function lte(e,t,n){const i=e.schema;let o=i;t.name==="svg"&&i.space==="html"&&(o=k3,e.schema=o),e.ancestors.push(t);const s=t.name===null?e.Fragment:xD(e,t.name,!0),f=hte(e,t),d=tT(e,t);return SD(e,f,s,t),eT(f,d),e.ancestors.pop(),e.schema=i,e.create(t,s,f,n)}function ste(e,t,n){const i={};return eT(i,tT(e,t)),e.create(t,e.Fragment,i,n)}function ute(e,t){return t.value}function SD(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function eT(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function cte(e,t,n){return i;function i(o,s,f,d){const y=Array.isArray(f.children)?n:t;return d?y(s,f,d):y(s,f)}}function fte(e,t){return n;function n(i,o,s,f){const d=Array.isArray(s.children),h=Kw(i);return t(o,s,f,d,{columnNumber:h?h.column-1:void 0,fileName:e,lineNumber:h?h.line:void 0},void 0)}}function dte(e,t){const n={};let i,o;for(o in t.properties)if(o!=="children"&&Jw.call(t.properties,o)){const s=pte(e,o,t.properties[o]);if(s){const[f,d]=s;e.tableCellAlignToStyle&&f==="align"&&typeof d=="string"&&nte.has(t.tagName)?i=d:n[f]=d}}if(i){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function hte(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 f=s.expression;f.type;const d=f.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 tT(e,t){const n=[];let i=-1;const o=e.passKeys?new Map:Jee;for(;++i<t.children.length;){const s=t.children[i];let f;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;f=h+"-"+y,o.set(h,y+1)}}const d=bD(e,s,f);d!==void 0&&n.push(d)}return n}function pte(e,t,n){const i=oD(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?kee(n):Gee(n)),i.property==="style"){let o=typeof n=="object"?n:mte(e,String(n));return e.stylePropertyNameCase==="css"&&(o=gte(o)),["style",o]}return[e.elementAttributeNameCase==="react"&&i.space?$ee[i.property]||i.property:i.attribute,n]}}function mte(e,t){try{return Zee(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=vD+"#cannot-parse-style-attribute",o}}function xD(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const o=t.split(".");let s=-1,f;for(;++s<o.length;){const d=W_(o[s])?{type:"Identifier",name:o[s]}:{type:"Literal",value:o[s]};f=f?{type:"MemberExpression",object:f,property:d,computed:!!(s&&d.type==="Literal"),optional:!1}:d}i=f}else i=W_(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const o=i.value;return Jw.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=vD+"#cannot-handle-mdx-estrees-without-createevaluater",n}function gte(e){const t={};let n;for(n in e)Jw.call(e,n)&&(t[yte(n)]=e[n]);return t}function yte(e){let t=e.replace(ete,vte);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function vte(e){return"-"+e.toLowerCase()}const nT={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"]},bte={};function rT(e,t){const n=bte,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,o=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return ED(e,i,o)}function ED(e,t,n){if(Ste(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 wD(e.children,t,n)}return Array.isArray(e)?wD(e,t,n):""}function wD(e,t,n){const i=[];let o=-1;for(;++o<e.length;)i[o]=ED(e[o],t,n);return i.join("")}function Ste(e){return!!(e&&typeof e=="object")}const TD=document.createElement("i");function iT(e){const t="&"+e+";";TD.innerHTML=t;const n=TD.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,f;if(t<0?t=-t>o?0:o+t:t=t>o?o:t,n=n>0?n:0,i.length<1e4)f=Array.from(i),f.unshift(t,n),e.splice(...f);else for(n&&e.splice(t,n);s<i.length;)f=i.slice(s,s+1e4),f.unshift(t,0),e.splice(...f),s+=1e4,t+=1e4}function ts(e,t){return e.length>0?(El(e,e.length,0,t),e):t}const AD={}.hasOwnProperty;function CD(e){const t={};let n=-1;for(;++n<e.length;)xte(t,e[n]);return t}function xte(e,t){let n;for(n in t){const o=(AD.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let f;if(s)for(f in s){AD.call(o,f)||(o[f]=[]);const d=s[f];Ete(o[f],Array.isArray(d)?d:d?[d]:[])}}}function Ete(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 OD(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 du(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const po=Bd(/[A-Za-z]/),ja=Bd(/[\dA-Za-z]/),wte=Bd(/[#-'*+\--9=?A-Z^-~]/);function N3(e){return e!==null&&(e<32||e===127)}const aT=Bd(/\d/),Tte=Bd(/[\dA-Fa-f]/),Ate=Bd(/[!-/:-@[-`{-~]/);function zt(e){return e!==null&&e<-2}function Cr(e){return e!==null&&(e<0||e===32)}function Ln(e){return e===-2||e===-1||e===32}const z3=Bd(new RegExp("\\p{P}|\\p{S}","u")),_h=Bd(/\s/);function Bd(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function Mg(e){const t=[];let n=-1,i=0,o=0;for(;++n<e.length;){const s=e.charCodeAt(n);let f="";if(s===37&&ja(e.charCodeAt(n+1))&&ja(e.charCodeAt(n+2)))o=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(f=String.fromCharCode(s));else if(s>55295&&s<57344){const d=e.charCodeAt(n+1);s<56320&&d>56319&&d<57344?(f=String.fromCharCode(s,d),o=1):f="�"}else f=String.fromCharCode(s);f&&(t.push(e.slice(i,n),encodeURIComponent(f)),i=n+o+1,f=""),o&&(n+=o,o=0)}return t.join("")+e.slice(i)}function _n(e,t,n,i){const o=i?i-1:Number.POSITIVE_INFINITY;let s=0;return f;function f(h){return Ln(h)?(e.enter(n),d(h)):t(h)}function d(h){return Ln(h)&&s++<o?(e.consume(h),d):(e.exit(n),t(h))}}const Cte={tokenize:Ote};function Ote(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"),_n(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,f(d)}function f(d){if(d===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(d);return}return zt(d)?(e.consume(d),e.exit("chunkText"),s):(e.consume(d),f)}}const Mte={tokenize:Rte},MD={tokenize:_te};function Rte(e){const t=this,n=[];let i=0,o,s,f;return d;function d(B){if(i<n.length){const V=n[i];return t.containerState=V[1],e.attempt(V[0].continuation,h,y)(B)}return y(B)}function h(B){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,o&&z();const V=t.events.length;let I=V,P;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){P=t.events[I][1].end;break}N(i);let Y=V;for(;Y<t.events.length;)t.events[Y][1].end={...P},Y++;return El(t.events,I+1,0,t.events.slice(V)),t.events.length=Y,y(B)}return d(B)}function y(B){if(i===n.length){if(!o)return T(B);if(o.currentConstruct&&o.currentConstruct.concrete)return C(B);t.interrupt=!!(o.currentConstruct&&!o._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(MD,b,x)(B)}function b(B){return o&&z(),N(i),T(B)}function x(B){return t.parser.lazy[t.now().line]=i!==n.length,f=t.now().offset,C(B)}function T(B){return t.containerState={},e.attempt(MD,w,C)(B)}function w(B){return i++,n.push([t.currentConstruct,t.containerState]),T(B)}function C(B){if(B===null){o&&z(),N(0),e.consume(B);return}return o=o||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:o,contentType:"flow",previous:s}),R(B)}function R(B){if(B===null){_(e.exit("chunkFlow"),!0),N(0),e.consume(B);return}return zt(B)?(e.consume(B),_(e.exit("chunkFlow")),i=0,t.interrupt=void 0,d):(e.consume(B),R)}function _(B,V){const I=t.sliceStream(B);if(V&&I.push(null),B.previous=s,s&&(s.next=B),s=B,o.defineSkip(B.start),o.write(I),t.parser.lazy[B.start.line]){let P=o.events.length;for(;P--;)if(o.events[P][1].start.offset<f&&(!o.events[P][1].end||o.events[P][1].end.offset>f))return;const Y=t.events.length;let se=Y,ue,re;for(;se--;)if(t.events[se][0]==="exit"&&t.events[se][1].type==="chunkFlow"){if(ue){re=t.events[se][1].end;break}ue=!0}for(N(i),P=Y;P<t.events.length;)t.events[P][1].end={...re},P++;El(t.events,se+1,0,t.events.slice(Y)),t.events.length=P}}function N(B){let V=n.length;for(;V-- >B;){const I=n[V];t.containerState=I[1],I[0].exit.call(t,e)}n.length=B}function z(){o.write([null]),s=void 0,o=void 0,t.containerState._closeFlow=void 0}}function _te(e,t,n){return _n(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Rg(e){if(e===null||Cr(e)||_h(e))return 1;if(z3(e))return 2}function I3(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 oT={name:"attention",resolveAll:Dte,tokenize:kte};function Dte(e,t){let n=-1,i,o,s,f,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 x={...e[i][1].end},T={...e[n][1].start};RD(x,-h),RD(T,h),f={type:h>1?"strongSequence":"emphasisSequence",start:x,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:{...f.start},end:{...d.end}},e[i][1].end={...f.start},e[n][1].start={...d.end},y=[],e[i][1].end.offset-e[i][1].start.offset&&(y=ts(y,[["enter",e[i][1],t],["exit",e[i][1],t]])),y=ts(y,[["enter",o,t],["enter",f,t],["exit",f,t],["enter",s,t]]),y=ts(y,I3(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),y=ts(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=ts(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 kte(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,o=Rg(i);let s;return f;function f(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=Rg(h),x=!b||b===2&&o||n.includes(h),T=!o||o===2&&b||n.includes(i);return y._open=!!(s===42?x:x&&(o||!T)),y._close=!!(s===42?T:T&&(b||!x)),t(h)}}function RD(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Nte={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 po(w)?(e.consume(w),f):w===64?n(w):y(w)}function f(w){return w===43||w===45||w===46||ja(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||ja(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||N3(w)?n(w):(e.consume(w),h)}function y(w){return w===64?(e.consume(w),b):wte(w)?(e.consume(w),y):n(w)}function b(w){return ja(w)?x(w):n(w)}function x(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||ja(w))&&i++<63){const C=w===45?T:x;return e.consume(w),C}return n(w)}}const Eb={partial:!0,tokenize:Ite};function Ite(e,t,n){return i;function i(s){return Ln(s)?_n(e,o,"linePrefix")(s):o(s)}function o(s){return s===null||zt(s)?t(s):n(s)}}const _D={continuation:{tokenize:Bte},exit:Vte,name:"blockQuote",tokenize:Lte};function Lte(e,t,n){const i=this;return o;function o(f){if(f===62){const d=i.containerState;return d.open||(e.enter("blockQuote",{_container:!0}),d.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(f),e.exit("blockQuoteMarker"),s}return n(f)}function s(f){return Ln(f)?(e.enter("blockQuotePrefixWhitespace"),e.consume(f),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(f))}}function Bte(e,t,n){const i=this;return o;function o(f){return Ln(f)?_n(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(f):s(f)}function s(f){return e.attempt(_D,t,n)(f)}}function Vte(e){e.exit("blockQuote")}const DD={name:"characterEscape",tokenize:Ute};function Ute(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 Ate(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const kD={name:"characterReference",tokenize:Pte};function Pte(e,t,n){const i=this;let o=0,s,f;return d;function d(x){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(x),e.exit("characterReferenceMarker"),h}function h(x){return x===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(x),e.exit("characterReferenceMarkerNumeric"),y):(e.enter("characterReferenceValue"),s=31,f=ja,b(x))}function y(x){return x===88||x===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(x),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,f=Tte,b):(e.enter("characterReferenceValue"),s=7,f=aT,b(x))}function b(x){if(x===59&&o){const T=e.exit("characterReferenceValue");return f===ja&&!iT(i.sliceSerialize(T))?n(x):(e.enter("characterReferenceMarker"),e.consume(x),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return f(x)&&o++<s?(e.consume(x),b):n(x)}}const ND={partial:!0,tokenize:jte},zD={concrete:!0,name:"codeFenced",tokenize:$te};function $te(e,t,n){const i=this,o={partial:!0,tokenize:I};let s=0,f=0,d;return h;function h(P){return y(P)}function y(P){const Y=i.events[i.events.length-1];return s=Y&&Y[1].type==="linePrefix"?Y[2].sliceSerialize(Y[1],!0).length:0,d=P,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),b(P)}function b(P){return P===d?(f++,e.consume(P),b):f<3?n(P):(e.exit("codeFencedFenceSequence"),Ln(P)?_n(e,x,"whitespace")(P):x(P))}function x(P){return P===null||zt(P)?(e.exit("codeFencedFence"),i.interrupt?t(P):e.check(ND,R,V)(P)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),T(P))}function T(P){return P===null||zt(P)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),x(P)):Ln(P)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),_n(e,w,"whitespace")(P)):P===96&&P===d?n(P):(e.consume(P),T)}function w(P){return P===null||zt(P)?x(P):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),C(P))}function C(P){return P===null||zt(P)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),x(P)):P===96&&P===d?n(P):(e.consume(P),C)}function R(P){return e.attempt(o,V,_)(P)}function _(P){return e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),N}function N(P){return s>0&&Ln(P)?_n(e,z,"linePrefix",s+1)(P):z(P)}function z(P){return P===null||zt(P)?e.check(ND,R,V)(P):(e.enter("codeFlowValue"),B(P))}function B(P){return P===null||zt(P)?(e.exit("codeFlowValue"),z(P)):(e.consume(P),B)}function V(P){return e.exit("codeFenced"),t(P)}function I(P,Y,se){let ue=0;return re;function re(ie){return P.enter("lineEnding"),P.consume(ie),P.exit("lineEnding"),le}function le(ie){return P.enter("codeFencedFence"),Ln(ie)?_n(P,$,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ie):$(ie)}function $(ie){return ie===d?(P.enter("codeFencedFenceSequence"),oe(ie)):se(ie)}function oe(ie){return ie===d?(ue++,P.consume(ie),oe):ue>=f?(P.exit("codeFencedFenceSequence"),Ln(ie)?_n(P,W,"whitespace")(ie):W(ie)):se(ie)}function W(ie){return ie===null||zt(ie)?(P.exit("codeFencedFence"),Y(ie)):se(ie)}}}function jte(e,t,n){const i=this;return o;function o(f){return f===null?n(f):(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s)}function s(f){return i.parser.lazy[i.now().line]?n(f):t(f)}}const lT={name:"codeIndented",tokenize:qte},Hte={partial:!0,tokenize:Fte};function qte(e,t,n){const i=this;return o;function o(y){return e.enter("codeIndented"),_n(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?f(y):n(y)}function f(y){return y===null?h(y):zt(y)?e.attempt(Hte,f,h)(y):(e.enter("codeFlowValue"),d(y))}function d(y){return y===null||zt(y)?(e.exit("codeFlowValue"),f(y)):(e.consume(y),d)}function h(y){return e.exit("codeIndented"),t(y)}}function Fte(e,t,n){const i=this;return o;function o(f){return i.parser.lazy[i.now().line]?n(f):zt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),o):_n(e,s,"linePrefix",5)(f)}function s(f){const d=i.events[i.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?t(f):zt(f)?o(f):n(f)}}const Gte={name:"codeText",previous:Xte,resolve:Yte,tokenize:Wte};function Yte(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 Xte(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Wte(e,t,n){let i=0,o,s;return f;function f(x){return e.enter("codeText"),e.enter("codeTextSequence"),d(x)}function d(x){return x===96?(e.consume(x),i++,d):(e.exit("codeTextSequence"),h(x))}function h(x){return x===null?n(x):x===32?(e.enter("space"),e.consume(x),e.exit("space"),h):x===96?(s=e.enter("codeTextSequence"),o=0,b(x)):zt(x)?(e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),h):(e.enter("codeTextData"),y(x))}function y(x){return x===null||x===32||x===96||zt(x)?(e.exit("codeTextData"),h(x)):(e.consume(x),y)}function b(x){return x===96?(e.consume(x),o++,b):o===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(x)):(s.type="codeTextData",y(x))}}class Qte{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&&wb(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),wb(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),wb(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);wb(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);wb(this.left,n.reverse())}}}function wb(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 ID(e){const t={};let n=-1,i,o,s,f,d,h,y;const b=new Qte(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,Kte(b,n)),n=t[n],y=!0);else if(i[1]._container){for(s=n,o=void 0;s--;)if(f=b.get(s),f[1].type==="lineEnding"||f[1].type==="lineEndingBlank")f[0]==="enter"&&(o&&(b.get(o)[1].type="lineEndingBlank"),f[1].type="lineEnding",o=s);else if(!(f[1].type==="linePrefix"||f[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 Kte(e,t){const n=e.get(t)[1],i=e.get(t)[2];let o=t-1;const s=[];let f=n._tokenizer;f||(f=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(f._contentTypeTextTrailing=!0));const d=f.events,h=[],y={};let b,x,T=-1,w=n,C=0,R=0;const _=[R];for(;w;){for(;e.get(++o)[1]!==w;);s.push(o),w._tokenizer||(b=i.sliceStream(w),w.next||b.push(null),x&&f.defineSkip(w.start),w._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=!0),f.write(b),w._isInFirstContentOfListItem&&(f._gfmTasklistFirstContentOfListItem=void 0)),x=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&&(R=T+1,_.push(R),w._tokenizer=void 0,w.previous=void 0,w=w.next);for(f.events=[],w?(w._tokenizer=void 0,w.previous=void 0):_.pop(),T=_.length;T--;){const N=d.slice(_[T],_[T+1]),z=s.pop();h.push([z,z+N.length-1]),e.splice(z,2,N)}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 Zte={resolve:ene,tokenize:tne},Jte={partial:!0,tokenize:nne};function ene(e){return ID(e),e}function tne(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):zt(d)?e.check(Jte,f,s)(d):(e.consume(d),o)}function s(d){return e.exit("chunkContent"),e.exit("content"),t(d)}function f(d){return e.consume(d),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,o}}function nne(e,t,n){const i=this;return o;function o(f){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),_n(e,s,"linePrefix")}function s(f){if(f===null||zt(f))return n(f);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(f):e.interrupt(i.parser.constructs.flow,n,t)(f)}}function LD(e,t,n,i,o,s,f,d,h){const y=h||Number.POSITIVE_INFINITY;let b=0;return x;function x(N){return N===60?(e.enter(i),e.enter(o),e.enter(s),e.consume(N),e.exit(s),T):N===null||N===32||N===41||N3(N)?n(N):(e.enter(i),e.enter(f),e.enter(d),e.enter("chunkString",{contentType:"string"}),R(N))}function T(N){return N===62?(e.enter(s),e.consume(N),e.exit(s),e.exit(o),e.exit(i),t):(e.enter(d),e.enter("chunkString",{contentType:"string"}),w(N))}function w(N){return N===62?(e.exit("chunkString"),e.exit(d),T(N)):N===null||N===60||zt(N)?n(N):(e.consume(N),N===92?C:w)}function C(N){return N===60||N===62||N===92?(e.consume(N),w):w(N)}function R(N){return!b&&(N===null||N===41||Cr(N))?(e.exit("chunkString"),e.exit(d),e.exit(f),e.exit(i),t(N)):b<y&&N===40?(e.consume(N),b++,R):N===41?(e.consume(N),b--,R):N===null||N===32||N===40||N3(N)?n(N):(e.consume(N),N===92?_:R)}function _(N){return N===40||N===41||N===92?(e.consume(N),R):R(N)}}function BD(e,t,n,i,o,s){const f=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 f.parser.constructs?n(w):w===93?(e.exit(s),e.enter(o),e.consume(w),e.exit(o),e.exit(i),t):zt(w)?(e.enter("lineEnding"),e.consume(w),e.exit("lineEnding"),b):(e.enter("chunkString",{contentType:"string"}),x(w))}function x(w){return w===null||w===91||w===93||zt(w)||d++>999?(e.exit("chunkString"),b(w)):(e.consume(w),h||(h=!Ln(w)),w===92?T:x)}function T(w){return w===91||w===92||w===93?(e.consume(w),d++,x):x(w)}}function VD(e,t,n,i,o,s){let f;return d;function d(T){return T===34||T===39||T===40?(e.enter(i),e.enter(o),e.consume(T),e.exit(o),f=T===40?41:T,h):n(T)}function h(T){return T===f?(e.enter(o),e.consume(T),e.exit(o),e.exit(i),t):(e.enter(s),y(T))}function y(T){return T===f?(e.exit(s),h(f)):T===null?n(T):zt(T)?(e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),_n(e,y,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),b(T))}function b(T){return T===f||T===null||zt(T)?(e.exit("chunkString"),y(T)):(e.consume(T),T===92?x:b)}function x(T){return T===f||T===92?(e.consume(T),b):b(T)}}function Tb(e,t){let n;return i;function i(o){return zt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,i):Ln(o)?_n(e,i,n?"linePrefix":"lineSuffix")(o):t(o)}}const rne={name:"definition",tokenize:ane},ine={partial:!0,tokenize:one};function ane(e,t,n){const i=this;let o;return s;function s(w){return e.enter("definition"),f(w)}function f(w){return BD.call(i,e,d,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(w)}function d(w){return o=du(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 Cr(w)?Tb(e,y)(w):y(w)}function y(w){return LD(e,b,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(w)}function b(w){return e.attempt(ine,x,x)(w)}function x(w){return Ln(w)?_n(e,T,"whitespace")(w):T(w)}function T(w){return w===null||zt(w)?(e.exit("definition"),i.parser.defined.push(o),t(w)):n(w)}}function one(e,t,n){return i;function i(d){return Cr(d)?Tb(e,o)(d):n(d)}function o(d){return VD(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(d)}function s(d){return Ln(d)?_n(e,f,"whitespace")(d):f(d)}function f(d){return d===null||zt(d)?t(d):n(d)}}const lne={name:"hardBreakEscape",tokenize:sne};function sne(e,t,n){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),o}function o(s){return zt(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const une={name:"headingAtx",resolve:cne,tokenize:fne};function cne(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 fne(e,t,n){let i=0;return o;function o(b){return e.enter("atxHeading"),s(b)}function s(b){return e.enter("atxHeadingSequence"),f(b)}function f(b){return b===35&&i++<6?(e.consume(b),f):b===null||Cr(b)?(e.exit("atxHeadingSequence"),d(b)):n(b)}function d(b){return b===35?(e.enter("atxHeadingSequence"),h(b)):b===null||zt(b)?(e.exit("atxHeading"),t(b)):Ln(b)?_n(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||Cr(b)?(e.exit("atxHeadingText"),d(b)):(e.consume(b),y)}}const dne=["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"],UD=["pre","script","style","textarea"],hne={concrete:!0,name:"htmlFlow",resolveTo:gne,tokenize:yne},pne={partial:!0,tokenize:bne},mne={partial:!0,tokenize:vne};function gne(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 yne(e,t,n){const i=this;let o,s,f,d,h;return y;function y(F){return b(F)}function b(F){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(F),x}function x(F){return F===33?(e.consume(F),T):F===47?(e.consume(F),s=!0,R):F===63?(e.consume(F),o=3,i.interrupt?t:ee):po(F)?(e.consume(F),f=String.fromCharCode(F),_):n(F)}function T(F){return F===45?(e.consume(F),o=2,w):F===91?(e.consume(F),o=5,d=0,C):po(F)?(e.consume(F),o=4,i.interrupt?t:ee):n(F)}function w(F){return F===45?(e.consume(F),i.interrupt?t:ee):n(F)}function C(F){const Re="CDATA[";return F===Re.charCodeAt(d++)?(e.consume(F),d===Re.length?i.interrupt?t:$:C):n(F)}function R(F){return po(F)?(e.consume(F),f=String.fromCharCode(F),_):n(F)}function _(F){if(F===null||F===47||F===62||Cr(F)){const Re=F===47,be=f.toLowerCase();return!Re&&!s&&UD.includes(be)?(o=1,i.interrupt?t(F):$(F)):dne.includes(f.toLowerCase())?(o=6,Re?(e.consume(F),N):i.interrupt?t(F):$(F)):(o=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(F):s?z(F):B(F))}return F===45||ja(F)?(e.consume(F),f+=String.fromCharCode(F),_):n(F)}function N(F){return F===62?(e.consume(F),i.interrupt?t:$):n(F)}function z(F){return Ln(F)?(e.consume(F),z):re(F)}function B(F){return F===47?(e.consume(F),re):F===58||F===95||po(F)?(e.consume(F),V):Ln(F)?(e.consume(F),B):re(F)}function V(F){return F===45||F===46||F===58||F===95||ja(F)?(e.consume(F),V):I(F)}function I(F){return F===61?(e.consume(F),P):Ln(F)?(e.consume(F),I):B(F)}function P(F){return F===null||F===60||F===61||F===62||F===96?n(F):F===34||F===39?(e.consume(F),h=F,Y):Ln(F)?(e.consume(F),P):se(F)}function Y(F){return F===h?(e.consume(F),h=null,ue):F===null||zt(F)?n(F):(e.consume(F),Y)}function se(F){return F===null||F===34||F===39||F===47||F===60||F===61||F===62||F===96||Cr(F)?I(F):(e.consume(F),se)}function ue(F){return F===47||F===62||Ln(F)?B(F):n(F)}function re(F){return F===62?(e.consume(F),le):n(F)}function le(F){return F===null||zt(F)?$(F):Ln(F)?(e.consume(F),le):n(F)}function $(F){return F===45&&o===2?(e.consume(F),K):F===60&&o===1?(e.consume(F),ae):F===62&&o===4?(e.consume(F),q):F===63&&o===3?(e.consume(F),ee):F===93&&o===5?(e.consume(F),Te):zt(F)&&(o===6||o===7)?(e.exit("htmlFlowData"),e.check(pne,J,oe)(F)):F===null||zt(F)?(e.exit("htmlFlowData"),oe(F)):(e.consume(F),$)}function oe(F){return e.check(mne,W,J)(F)}function W(F){return e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),ie}function ie(F){return F===null||zt(F)?oe(F):(e.enter("htmlFlowData"),$(F))}function K(F){return F===45?(e.consume(F),ee):$(F)}function ae(F){return F===47?(e.consume(F),f="",pe):$(F)}function pe(F){if(F===62){const Re=f.toLowerCase();return UD.includes(Re)?(e.consume(F),q):$(F)}return po(F)&&f.length<8?(e.consume(F),f+=String.fromCharCode(F),pe):$(F)}function Te(F){return F===93?(e.consume(F),ee):$(F)}function ee(F){return F===62?(e.consume(F),q):F===45&&o===2?(e.consume(F),ee):$(F)}function q(F){return F===null||zt(F)?(e.exit("htmlFlowData"),J(F)):(e.consume(F),q)}function J(F){return e.exit("htmlFlow"),t(F)}}function vne(e,t,n){const i=this;return o;function o(f){return zt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s):n(f)}function s(f){return i.parser.lazy[i.now().line]?n(f):t(f)}}function bne(e,t,n){return i;function i(o){return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),e.attempt(Eb,t,n)}}const Sne={name:"htmlText",tokenize:xne};function xne(e,t,n){const i=this;let o,s,f;return d;function d(ee){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(ee),h}function h(ee){return ee===33?(e.consume(ee),y):ee===47?(e.consume(ee),I):ee===63?(e.consume(ee),B):po(ee)?(e.consume(ee),se):n(ee)}function y(ee){return ee===45?(e.consume(ee),b):ee===91?(e.consume(ee),s=0,C):po(ee)?(e.consume(ee),z):n(ee)}function b(ee){return ee===45?(e.consume(ee),w):n(ee)}function x(ee){return ee===null?n(ee):ee===45?(e.consume(ee),T):zt(ee)?(f=x,ae(ee)):(e.consume(ee),x)}function T(ee){return ee===45?(e.consume(ee),w):x(ee)}function w(ee){return ee===62?K(ee):ee===45?T(ee):x(ee)}function C(ee){const q="CDATA[";return ee===q.charCodeAt(s++)?(e.consume(ee),s===q.length?R:C):n(ee)}function R(ee){return ee===null?n(ee):ee===93?(e.consume(ee),_):zt(ee)?(f=R,ae(ee)):(e.consume(ee),R)}function _(ee){return ee===93?(e.consume(ee),N):R(ee)}function N(ee){return ee===62?K(ee):ee===93?(e.consume(ee),N):R(ee)}function z(ee){return ee===null||ee===62?K(ee):zt(ee)?(f=z,ae(ee)):(e.consume(ee),z)}function B(ee){return ee===null?n(ee):ee===63?(e.consume(ee),V):zt(ee)?(f=B,ae(ee)):(e.consume(ee),B)}function V(ee){return ee===62?K(ee):B(ee)}function I(ee){return po(ee)?(e.consume(ee),P):n(ee)}function P(ee){return ee===45||ja(ee)?(e.consume(ee),P):Y(ee)}function Y(ee){return zt(ee)?(f=Y,ae(ee)):Ln(ee)?(e.consume(ee),Y):K(ee)}function se(ee){return ee===45||ja(ee)?(e.consume(ee),se):ee===47||ee===62||Cr(ee)?ue(ee):n(ee)}function ue(ee){return ee===47?(e.consume(ee),K):ee===58||ee===95||po(ee)?(e.consume(ee),re):zt(ee)?(f=ue,ae(ee)):Ln(ee)?(e.consume(ee),ue):K(ee)}function re(ee){return ee===45||ee===46||ee===58||ee===95||ja(ee)?(e.consume(ee),re):le(ee)}function le(ee){return ee===61?(e.consume(ee),$):zt(ee)?(f=le,ae(ee)):Ln(ee)?(e.consume(ee),le):ue(ee)}function $(ee){return ee===null||ee===60||ee===61||ee===62||ee===96?n(ee):ee===34||ee===39?(e.consume(ee),o=ee,oe):zt(ee)?(f=$,ae(ee)):Ln(ee)?(e.consume(ee),$):(e.consume(ee),W)}function oe(ee){return ee===o?(e.consume(ee),o=void 0,ie):ee===null?n(ee):zt(ee)?(f=oe,ae(ee)):(e.consume(ee),oe)}function W(ee){return ee===null||ee===34||ee===39||ee===60||ee===61||ee===96?n(ee):ee===47||ee===62||Cr(ee)?ue(ee):(e.consume(ee),W)}function ie(ee){return ee===47||ee===62||Cr(ee)?ue(ee):n(ee)}function K(ee){return ee===62?(e.consume(ee),e.exit("htmlTextData"),e.exit("htmlText"),t):n(ee)}function ae(ee){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(ee),e.exit("lineEnding"),pe}function pe(ee){return Ln(ee)?_n(e,Te,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(ee):Te(ee)}function Te(ee){return e.enter("htmlTextData"),f(ee)}}const sT={name:"labelEnd",resolveAll:Ane,resolveTo:Cne,tokenize:One},Ene={tokenize:Mne},wne={tokenize:Rne},Tne={tokenize:_ne};function Ane(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 Cne(e,t){let n=e.length,i=0,o,s,f,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(f){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"&&(f=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[f][1].end}},b={type:"labelText",start:{...e[s+i+2][1].end},end:{...e[f-2][1].start}};return d=[["enter",h,t],["enter",y,t]],d=ts(d,e.slice(s+1,s+i+3)),d=ts(d,[["enter",b,t]]),d=ts(d,I3(t.parser.constructs.insideSpan.null,e.slice(s+i+4,f-3),t)),d=ts(d,[["exit",b,t],e[f-2],e[f-1],["exit",y,t]]),d=ts(d,e.slice(f+1)),d=ts(d,[["exit",h,t]]),El(e,s,e.length,d),e}function One(e,t,n){const i=this;let o=i.events.length,s,f;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?x(T):(f=i.parser.defined.includes(du(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(Ene,b,f?b:x)(T):T===91?e.attempt(wne,b,f?y:x)(T):f?b(T):x(T)}function y(T){return e.attempt(Tne,b,x)(T)}function b(T){return t(T)}function x(T){return s._balanced=!0,n(T)}}function Mne(e,t,n){return i;function i(x){return e.enter("resource"),e.enter("resourceMarker"),e.consume(x),e.exit("resourceMarker"),o}function o(x){return Cr(x)?Tb(e,s)(x):s(x)}function s(x){return x===41?b(x):LD(e,f,d,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(x)}function f(x){return Cr(x)?Tb(e,h)(x):b(x)}function d(x){return n(x)}function h(x){return x===34||x===39||x===40?VD(e,y,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(x):b(x)}function y(x){return Cr(x)?Tb(e,b)(x):b(x)}function b(x){return x===41?(e.enter("resourceMarker"),e.consume(x),e.exit("resourceMarker"),e.exit("resource"),t):n(x)}}function Rne(e,t,n){const i=this;return o;function o(d){return BD.call(i,e,s,f,"reference","referenceMarker","referenceString")(d)}function s(d){return i.parser.defined.includes(du(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(d):n(d)}function f(d){return n(d)}}function _ne(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 Dne={name:"labelStartImage",resolveAll:sT.resolveAll,tokenize:kne};function kne(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"),f):n(d)}function f(d){return d===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(d):t(d)}}const Nne={name:"labelStartLink",resolveAll:sT.resolveAll,tokenize:zne};function zne(e,t,n){const i=this;return o;function o(f){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(f),e.exit("labelMarker"),e.exit("labelLink"),s}function s(f){return f===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(f):t(f)}}const uT={name:"lineEnding",tokenize:Ine};function Ine(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),_n(e,t,"linePrefix")}}const L3={name:"thematicBreak",tokenize:Lne};function Lne(e,t,n){let i=0,o;return s;function s(y){return e.enter("thematicBreak"),f(y)}function f(y){return o=y,d(y)}function d(y){return y===o?(e.enter("thematicBreakSequence"),h(y)):i>=3&&(y===null||zt(y))?(e.exit("thematicBreak"),t(y)):n(y)}function h(y){return y===o?(e.consume(y),i++,h):(e.exit("thematicBreakSequence"),Ln(y)?_n(e,d,"whitespace")(y):d(y))}}const jo={continuation:{tokenize:Pne},exit:jne,name:"list",tokenize:Une},Bne={partial:!0,tokenize:Hne},Vne={partial:!0,tokenize:$ne};function Une(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,f=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:aT(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(L3,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 aT(w)&&++f<10?(e.consume(w),h):(!i.interrupt||f<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(Eb,i.interrupt?n:b,e.attempt(Bne,T,x))}function b(w){return i.containerState.initialBlankLine=!0,s++,T(w)}function x(w){return Ln(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 Pne(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(Eb,o,s);function o(d){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,_n(e,t,"listItemIndent",i.containerState.size+1)(d)}function s(d){return i.containerState.furtherBlankLines||!Ln(d)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,f(d)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Vne,t,f)(d))}function f(d){return i.containerState._closeFlow=!0,i.interrupt=void 0,_n(e,e.attempt(jo,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(d)}}function $ne(e,t,n){const i=this;return _n(e,o,"listItemIndent",i.containerState.size+1);function o(s){const f=i.events[i.events.length-1];return f&&f[1].type==="listItemIndent"&&f[2].sliceSerialize(f[1],!0).length===i.containerState.size?t(s):n(s)}}function jne(e){e.exit(this.containerState.type)}function Hne(e,t,n){const i=this;return _n(e,o,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function o(s){const f=i.events[i.events.length-1];return!Ln(s)&&f&&f[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const PD={name:"setextUnderline",resolveTo:qne,tokenize:Fne};function qne(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 f={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",f,t]),e.splice(s+1,0,["exit",e[i][1],t]),e[i][1].end={...e[s][1].end}):e[i][1]=f,e.push(["exit",f,t]),e}function Fne(e,t,n){const i=this;let o;return s;function s(y){let b=i.events.length,x;for(;b--;)if(i.events[b][1].type!=="lineEnding"&&i.events[b][1].type!=="linePrefix"&&i.events[b][1].type!=="content"){x=i.events[b][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||x)?(e.enter("setextHeadingLine"),o=y,f(y)):n(y)}function f(y){return e.enter("setextHeadingLineSequence"),d(y)}function d(y){return y===o?(e.consume(y),d):(e.exit("setextHeadingLineSequence"),Ln(y)?_n(e,h,"lineSuffix")(y):h(y))}function h(y){return y===null||zt(y)?(e.exit("setextHeadingLine"),t(y)):n(y)}}const Gne={tokenize:Yne};function Yne(e){const t=this,n=e.attempt(Eb,i,e.attempt(this.parser.constructs.flowInitial,o,_n(e,e.attempt(this.parser.constructs.flow,o,e.attempt(Zte,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 Xne={resolveAll:jD()},Wne=$D("string"),Qne=$D("text");function $D(e){return{resolveAll:jD(e==="text"?Kne:void 0),tokenize:t};function t(n){const i=this,o=this.parser.constructs[e],s=n.attempt(o,f,d);return f;function f(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 x=o[b];let T=-1;if(x)for(;++T<x.length;){const w=x[T];if(!w.previous||w.previous.call(i,i.previous))return!0}return!1}}}function jD(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 Kne(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,f=-1,d=0,h;for(;s--;){const y=o[s];if(typeof y=="string"){for(f=y.length;y.charCodeAt(f-1)===32;)d++,f--;if(f)break;f=-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?f:i.start._bufferIndex+f,_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 Zne=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:rne},disable:{null:[]},document:{42:jo,43:jo,45:jo,48:jo,49:jo,50:jo,51:jo,52:jo,53:jo,54:jo,55:jo,56:jo,57:jo,62:_D},flow:{35:une,42:L3,45:[PD,L3],60:hne,61:PD,95:L3,96:zD,126:zD},flowInitial:{[-2]:lT,[-1]:lT,32:lT},insideSpan:{null:[oT,Xne]},string:{38:kD,92:DD},text:{[-5]:uT,[-4]:uT,[-3]:uT,33:Dne,38:kD,42:oT,60:[Nte,Sne],91:Nne,92:[lne,DD],93:sT,95:oT,96:Gte}},Symbol.toStringTag,{value:"Module"}));function Jne(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 f=[],d=[];const h={attempt:Y(I),check:Y(P),consume:z,enter:B,exit:V,interrupt:Y(P,{interrupt:!0})},y={code:null,containerState:{},defineSkip:R,events:[],now:C,parser:e,previous:null,sliceSerialize:T,sliceStream:w,write:x};let b=t.tokenize.call(y,h);return t.resolveAll&&s.push(t),y;function x(le){return f=ts(f,le),_(),f[f.length-1]!==null?[]:(se(t,0),y.events=I3(s,y.events,y),y.events)}function T(le,$){return tre(w(le),$)}function w(le){return ere(f,le)}function C(){const{_bufferIndex:le,_index:$,line:oe,column:W,offset:ie}=i;return{_bufferIndex:le,_index:$,line:oe,column:W,offset:ie}}function R(le){o[le.line]=le.column,re()}function _(){let le;for(;i._index<f.length;){const $=f[i._index];if(typeof $=="string")for(le=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===le&&i._bufferIndex<$.length;)N($.charCodeAt(i._bufferIndex));else N($)}}function N(le){b=b(le)}function z(le){zt(le)?(i.line++,i.column=1,i.offset+=le===-3?2:1,re()):le!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===f[i._index].length&&(i._bufferIndex=-1,i._index++)),y.previous=le}function B(le,$){const oe=$||{};return oe.type=le,oe.start=C(),y.events.push(["enter",oe,y]),d.push(oe),oe}function V(le){const $=d.pop();return $.end=C(),y.events.push(["exit",$,y]),$}function I(le,$){se(le,$.from)}function P(le,$){$.restore()}function Y(le,$){return oe;function oe(W,ie,K){let ae,pe,Te,ee;return Array.isArray(W)?J(W):"tokenize"in W?J([W]):q(W);function q(De){return Pe;function Pe(Fe){const Ze=Fe!==null&&De[Fe],Qe=Fe!==null&&De.null,tt=[...Array.isArray(Ze)?Ze:Ze?[Ze]:[],...Array.isArray(Qe)?Qe:Qe?[Qe]:[]];return J(tt)(Fe)}}function J(De){return ae=De,pe=0,De.length===0?K:F(De[pe])}function F(De){return Pe;function Pe(Fe){return ee=ue(),Te=De,De.partial||(y.currentConstruct=De),De.name&&y.parser.constructs.disable.null.includes(De.name)?be():De.tokenize.call($?Object.assign(Object.create(y),$):y,h,Re,be)(Fe)}}function Re(De){return le(Te,ee),ie}function be(De){return ee.restore(),++pe<ae.length?F(ae[pe]):K}}}function se(le,$){le.resolveAll&&!s.includes(le)&&s.push(le),le.resolve&&El(y.events,$,y.events.length-$,le.resolve(y.events.slice($),y)),le.resolveTo&&(y.events=le.resolveTo(y.events,y))}function ue(){const le=C(),$=y.previous,oe=y.currentConstruct,W=y.events.length,ie=Array.from(d);return{from:W,restore:K};function K(){i=le,y.previous=$,y.currentConstruct=oe,y.events.length=W,d=ie,re()}}function re(){i.line in o&&i.column<2&&(i.column=o[i.line],i.offset+=o[i.line]-1)}}function ere(e,t){const n=t.start._index,i=t.start._bufferIndex,o=t.end._index,s=t.end._bufferIndex;let f;if(n===o)f=[e[n].slice(i,s)];else{if(f=e.slice(n,o),i>-1){const d=f[0];typeof d=="string"?f[0]=d.slice(i):f.shift()}s>0&&f.push(e[o].slice(0,s))}return f}function tre(e,t){let n=-1;const i=[];let o;for(;++n<e.length;){const s=e[n];let f;if(typeof s=="string")f=s;else switch(s){case-5:{f="\r";break}case-4:{f=`
`;break}case-3:{f=`\r
`;break}case-2:{f=t?" ":"	";break}case-1:{if(!t&&o)continue;f=" ";break}default:f=String.fromCharCode(s)}o=s===-2,i.push(f)}return i.join("")}function nre(e){const i={constructs:CD([Zne,...(e||{}).extensions||[]]),content:o(Cte),defined:[],document:o(Mte),flow:o(Gne),lazy:{},string:o(Wne),text:o(Qne)};return i;function o(s){return f;function f(d){return Jne(i,s,d)}}}function rre(e){for(;!ID(e););return e}const HD=/[\0\t\n\r]/g;function ire(){let e=1,t="",n=!0,i;return o;function o(s,f,d){const h=[];let y,b,x,T,w;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(f||void 0).decode(s)),x=0,t="",n&&(s.charCodeAt(0)===65279&&x++,n=void 0);x<s.length;){if(HD.lastIndex=x,y=HD.exec(s),T=y&&y.index!==void 0?y.index:s.length,w=s.charCodeAt(T),!y){t=s.slice(x);break}if(w===10&&x===T&&i)h.push(-3),i=void 0;else switch(i&&(h.push(-5),i=void 0),x<T&&(h.push(s.slice(x,T)),e+=T-x),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}x=T+1}return d&&(i&&h.push(-5),t&&h.push(t),h.push(null)),h}}const are=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function ore(e){return e.replace(are,lre)}function lre(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const o=n.charCodeAt(1),s=o===120||o===88;return OD(n.slice(s?2:1),s?16:10)}return iT(n)||e}const qD={}.hasOwnProperty;function sre(e,t,n){return typeof t!="string"&&(n=t,t=void 0),ure(n)(rre(nre(n).document().write(ire()(e,t,!0))))}function ure(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(un),autolinkProtocol:ue,autolinkEmail:ue,atxHeading:s(Ot),blockQuote:s(Qe),characterEscape:ue,characterReference:ue,codeFenced:s(tt),codeFencedFenceInfo:f,codeFencedFenceMeta:f,codeIndented:s(tt,f),codeText:s($e,f),codeTextData:ue,data:ue,codeFlowValue:ue,definition:s(_e),definitionDestinationString:f,definitionLabelString:f,definitionTitleString:f,emphasis:s(ut),hardBreakEscape:s(Qt),hardBreakTrailing:s(Qt),htmlFlow:s(vt,f),htmlFlowData:ue,htmlText:s(vt,f),htmlTextData:ue,image:s(Lt),label:f,link:s(un),listItem:s(lt),listItemValue:T,listOrdered:s(Dn,x),listUnordered:s(Dn),paragraph:s(Mt),reference:F,referenceString:f,resourceDestinationString:f,resourceTitleString:f,setextHeading:s(Ot),strong:s($n),thematicBreak:s(nt)},exit:{atxHeading:h(),atxHeadingSequence:I,autolink:h(),autolinkEmail:Ze,autolinkProtocol:Fe,blockQuote:h(),characterEscapeValue:re,characterReferenceMarkerHexadecimal:be,characterReferenceMarkerNumeric:be,characterReferenceValue:De,characterReference:Pe,codeFenced:h(_),codeFencedFence:R,codeFencedFenceInfo:w,codeFencedFenceMeta:C,codeFlowValue:re,codeIndented:h(N),codeText:h(ie),codeTextData:re,data:re,definition:h(),definitionDestinationString:V,definitionLabelString:z,definitionTitleString:B,emphasis:h(),hardBreakEscape:h($),hardBreakTrailing:h($),htmlFlow:h(oe),htmlFlowData:re,htmlText:h(W),htmlTextData:re,image:h(ae),label:Te,labelText:pe,lineEnding:le,link:h(K),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:Re,resourceDestinationString:ee,resourceTitleString:q,resource:J,setextHeading:h(se),setextHeadingLineSequence:Y,setextHeadingText:P,strong:h(),thematicBreak:h()}};FD(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(Ee){let Ue={type:"root",children:[]};const st={stack:[Ue],tokenStack:[],config:t,enter:d,exit:y,buffer:f,resume:b,data:n},mt=[];let dt=-1;for(;++dt<Ee.length;)if(Ee[dt][1].type==="listOrdered"||Ee[dt][1].type==="listUnordered")if(Ee[dt][0]==="enter")mt.push(dt);else{const bt=mt.pop();dt=o(Ee,bt,dt)}for(dt=-1;++dt<Ee.length;){const bt=t[Ee[dt][0]];qD.call(bt,Ee[dt][1].type)&&bt[Ee[dt][1].type].call(Object.assign({sliceSerialize:Ee[dt][2].sliceSerialize},st),Ee[dt][1])}if(st.tokenStack.length>0){const bt=st.tokenStack[st.tokenStack.length-1];(bt[1]||GD).call(st,void 0,bt[0])}for(Ue.position={start:Vd(Ee.length>0?Ee[0][1].start:{line:1,column:1,offset:0}),end:Vd(Ee.length>0?Ee[Ee.length-2][1].end:{line:1,column:1,offset:0})},dt=-1;++dt<t.transforms.length;)Ue=t.transforms[dt](Ue)||Ue;return Ue}function o(Ee,Ue,st){let mt=Ue-1,dt=-1,bt=!1,pn,kt,Vt,Fn;for(;++mt<=st;){const yn=Ee[mt];switch(yn[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{yn[0]==="enter"?dt++:dt--,Fn=void 0;break}case"lineEndingBlank":{yn[0]==="enter"&&(pn&&!Fn&&!dt&&!Vt&&(Vt=mt),Fn=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Fn=void 0}if(!dt&&yn[0]==="enter"&&yn[1].type==="listItemPrefix"||dt===-1&&yn[0]==="exit"&&(yn[1].type==="listUnordered"||yn[1].type==="listOrdered")){if(pn){let Yr=mt;for(kt=void 0;Yr--;){const fr=Ee[Yr];if(fr[1].type==="lineEnding"||fr[1].type==="lineEndingBlank"){if(fr[0]==="exit")continue;kt&&(Ee[kt][1].type="lineEndingBlank",bt=!0),fr[1].type="lineEnding",kt=Yr}else if(!(fr[1].type==="linePrefix"||fr[1].type==="blockQuotePrefix"||fr[1].type==="blockQuotePrefixWhitespace"||fr[1].type==="blockQuoteMarker"||fr[1].type==="listItemIndent"))break}Vt&&(!kt||Vt<kt)&&(pn._spread=!0),pn.end=Object.assign({},kt?Ee[kt][1].start:yn[1].end),Ee.splice(kt||mt,0,["exit",pn,yn[2]]),mt++,st++}if(yn[1].type==="listItemPrefix"){const Yr={type:"listItem",_spread:!1,start:Object.assign({},yn[1].start),end:void 0};pn=Yr,Ee.splice(mt,0,["enter",Yr,yn[2]]),mt++,st++,Vt=void 0,Fn=!0}}}return Ee[Ue][1]._spread=bt,st}function s(Ee,Ue){return st;function st(mt){d.call(this,Ee(mt),mt),Ue&&Ue.call(this,mt)}}function f(){this.stack.push({type:"fragment",children:[]})}function d(Ee,Ue,st){this.stack[this.stack.length-1].children.push(Ee),this.stack.push(Ee),this.tokenStack.push([Ue,st||void 0]),Ee.position={start:Vd(Ue.start),end:void 0}}function h(Ee){return Ue;function Ue(st){Ee&&Ee.call(this,st),y.call(this,st)}}function y(Ee,Ue){const st=this.stack.pop(),mt=this.tokenStack.pop();if(mt)mt[0].type!==Ee.type&&(Ue?Ue.call(this,Ee,mt[0]):(mt[1]||GD).call(this,Ee,mt[0]));else throw new Error("Cannot close `"+Ee.type+"` ("+Sb({start:Ee.start,end:Ee.end})+"): it’s not open");st.position.end=Vd(Ee.end)}function b(){return rT(this.stack.pop())}function x(){this.data.expectingFirstListItemValue=!0}function T(Ee){if(this.data.expectingFirstListItemValue){const Ue=this.stack[this.stack.length-2];Ue.start=Number.parseInt(this.sliceSerialize(Ee),10),this.data.expectingFirstListItemValue=void 0}}function w(){const Ee=this.resume(),Ue=this.stack[this.stack.length-1];Ue.lang=Ee}function C(){const Ee=this.resume(),Ue=this.stack[this.stack.length-1];Ue.meta=Ee}function R(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){const Ee=this.resume(),Ue=this.stack[this.stack.length-1];Ue.value=Ee.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function N(){const Ee=this.resume(),Ue=this.stack[this.stack.length-1];Ue.value=Ee.replace(/(\r?\n|\r)$/g,"")}function z(Ee){const Ue=this.resume(),st=this.stack[this.stack.length-1];st.label=Ue,st.identifier=du(this.sliceSerialize(Ee)).toLowerCase()}function B(){const Ee=this.resume(),Ue=this.stack[this.stack.length-1];Ue.title=Ee}function V(){const Ee=this.resume(),Ue=this.stack[this.stack.length-1];Ue.url=Ee}function I(Ee){const Ue=this.stack[this.stack.length-1];if(!Ue.depth){const st=this.sliceSerialize(Ee).length;Ue.depth=st}}function P(){this.data.setextHeadingSlurpLineEnding=!0}function Y(Ee){const Ue=this.stack[this.stack.length-1];Ue.depth=this.sliceSerialize(Ee).codePointAt(0)===61?1:2}function se(){this.data.setextHeadingSlurpLineEnding=void 0}function ue(Ee){const st=this.stack[this.stack.length-1].children;let mt=st[st.length-1];(!mt||mt.type!=="text")&&(mt=$t(),mt.position={start:Vd(Ee.start),end:void 0},st.push(mt)),this.stack.push(mt)}function re(Ee){const Ue=this.stack.pop();Ue.value+=this.sliceSerialize(Ee),Ue.position.end=Vd(Ee.end)}function le(Ee){const Ue=this.stack[this.stack.length-1];if(this.data.atHardBreak){const st=Ue.children[Ue.children.length-1];st.position.end=Vd(Ee.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Ue.type)&&(ue.call(this,Ee),re.call(this,Ee))}function $(){this.data.atHardBreak=!0}function oe(){const Ee=this.resume(),Ue=this.stack[this.stack.length-1];Ue.value=Ee}function W(){const Ee=this.resume(),Ue=this.stack[this.stack.length-1];Ue.value=Ee}function ie(){const Ee=this.resume(),Ue=this.stack[this.stack.length-1];Ue.value=Ee}function K(){const Ee=this.stack[this.stack.length-1];if(this.data.inReference){const Ue=this.data.referenceType||"shortcut";Ee.type+="Reference",Ee.referenceType=Ue,delete Ee.url,delete Ee.title}else delete Ee.identifier,delete Ee.label;this.data.referenceType=void 0}function ae(){const Ee=this.stack[this.stack.length-1];if(this.data.inReference){const Ue=this.data.referenceType||"shortcut";Ee.type+="Reference",Ee.referenceType=Ue,delete Ee.url,delete Ee.title}else delete Ee.identifier,delete Ee.label;this.data.referenceType=void 0}function pe(Ee){const Ue=this.sliceSerialize(Ee),st=this.stack[this.stack.length-2];st.label=ore(Ue),st.identifier=du(Ue).toLowerCase()}function Te(){const Ee=this.stack[this.stack.length-1],Ue=this.resume(),st=this.stack[this.stack.length-1];if(this.data.inReference=!0,st.type==="link"){const mt=Ee.children;st.children=mt}else st.alt=Ue}function ee(){const Ee=this.resume(),Ue=this.stack[this.stack.length-1];Ue.url=Ee}function q(){const Ee=this.resume(),Ue=this.stack[this.stack.length-1];Ue.title=Ee}function J(){this.data.inReference=void 0}function F(){this.data.referenceType="collapsed"}function Re(Ee){const Ue=this.resume(),st=this.stack[this.stack.length-1];st.label=Ue,st.identifier=du(this.sliceSerialize(Ee)).toLowerCase(),this.data.referenceType="full"}function be(Ee){this.data.characterReferenceType=Ee.type}function De(Ee){const Ue=this.sliceSerialize(Ee),st=this.data.characterReferenceType;let mt;st?(mt=OD(Ue,st==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):mt=iT(Ue);const dt=this.stack[this.stack.length-1];dt.value+=mt}function Pe(Ee){const Ue=this.stack.pop();Ue.position.end=Vd(Ee.end)}function Fe(Ee){re.call(this,Ee);const Ue=this.stack[this.stack.length-1];Ue.url=this.sliceSerialize(Ee)}function Ze(Ee){re.call(this,Ee);const Ue=this.stack[this.stack.length-1];Ue.url="mailto:"+this.sliceSerialize(Ee)}function Qe(){return{type:"blockquote",children:[]}}function tt(){return{type:"code",lang:null,meta:null,value:""}}function $e(){return{type:"inlineCode",value:""}}function _e(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ut(){return{type:"emphasis",children:[]}}function Ot(){return{type:"heading",depth:0,children:[]}}function Qt(){return{type:"break"}}function vt(){return{type:"html",value:""}}function Lt(){return{type:"image",title:null,url:"",alt:null}}function un(){return{type:"link",title:null,url:"",children:[]}}function Dn(Ee){return{type:"list",ordered:Ee.type==="listOrdered",start:null,spread:Ee._spread,children:[]}}function lt(Ee){return{type:"listItem",spread:Ee._spread,checked:null,children:[]}}function Mt(){return{type:"paragraph",children:[]}}function $n(){return{type:"strong",children:[]}}function $t(){return{type:"text",value:""}}function nt(){return{type:"thematicBreak"}}}function Vd(e){return{line:e.line,column:e.column,offset:e.offset}}function FD(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?FD(e,i):cre(e,i)}}function cre(e,t){let n;for(n in t)if(qD.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 GD(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Sb({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Sb({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Sb({start:t.start,end:t.end})+") is still open")}function fre(e){const t=this;t.parser=n;function n(i){return sre(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function dre(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 hre(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
`}]}function pre(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 mre(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function gre(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function yre(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),o=Mg(i.toLowerCase()),s=e.footnoteOrder.indexOf(i);let f,d=e.footnoteCounts.get(i);d===void 0?(d=0,e.footnoteOrder.push(i),f=e.footnoteOrder.length):f=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(f)}]};e.patch(t,h);const y={type:"element",tagName:"sup",properties:{},children:[h]};return e.patch(t,y),e.applyData(t,y)}function vre(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 bre(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function YD(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 f=o[o.length-1];return f&&f.type==="text"?f.value+=i:o.push({type:"text",value:i}),o}function Sre(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return YD(e,t);const o={src:Mg(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 xre(e,t){const n={src:Mg(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 Ere(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 wre(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return YD(e,t);const o={href:Mg(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 Tre(e,t){const n={href:Mg(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 Are(e,t,n){const i=e.all(t),o=n?Cre(n):XD(t),s={},f=[];if(typeof t.checked=="boolean"){const b=i[0];let x;b&&b.type==="element"&&b.tagName==="p"?x=b:(x={type:"element",tagName:"p",properties:{},children:[]},i.unshift(x)),x.children.length>0&&x.children.unshift({type:"text",value:" "}),x.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")&&f.push({type:"text",value:`
`}),b.type==="element"&&b.tagName==="p"&&!o?f.push(...b.children):f.push(b)}const h=i[i.length-1];h&&(o||h.type!=="element"||h.tagName!=="p")&&f.push({type:"text",value:`
`});const y={type:"element",tagName:"li",properties:s,children:f};return e.patch(t,y),e.applyData(t,y)}function Cre(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=XD(n[i])}return t}function XD(e){const t=e.spread;return t??e.children.length>1}function Ore(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 f=i[o];if(f.type==="element"&&f.tagName==="li"&&f.properties&&Array.isArray(f.properties.className)&&f.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 Mre(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Rre(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function _re(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Dre(e,t){const n=e.all(t),i=n.shift(),o=[];if(i){const f={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],f),o.push(f)}if(n.length>0){const f={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},d=Kw(t.children[1]),h=hD(t.children[t.children.length-1]);d&&h&&(f.position={start:d,end:h}),o.push(f)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,s),e.applyData(t,s)}function kre(e,t,n){const i=n?n.children:void 0,s=(i?i.indexOf(t):1)===0?"th":"td",f=n&&n.type==="table"?n.align:void 0,d=f?f.length:t.children.length;let h=-1;const y=[];for(;++h<d;){const x=t.children[h],T={},w=f?f[h]:void 0;w&&(T.align=w);let C={type:"element",tagName:s,properties:T,children:[]};x&&(C.children=e.all(x),e.patch(x,C),C=e.applyData(x,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 Nre(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const WD=9,QD=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(KD(t.slice(o,i.index),o>0,!0),i[0]),o=i.index+i[0].length,i=n.exec(t);return s.push(KD(t.slice(o),o>0,!1)),s.join("")}function KD(e,t,n){let i=0,o=e.length;if(t){let s=e.codePointAt(i);for(;s===WD||s===QD;)i++,s=e.codePointAt(i)}if(n){let s=e.codePointAt(o-1);for(;s===WD||s===QD;)o--,s=e.codePointAt(o-1)}return o>i?e.slice(i,o):""}function Ire(e,t){const n={type:"text",value:zre(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Lre(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Bre={blockquote:dre,break:hre,code:pre,delete:mre,emphasis:gre,footnoteReference:yre,heading:vre,html:bre,imageReference:Sre,image:xre,inlineCode:Ere,linkReference:wre,link:Tre,listItem:Are,list:Ore,paragraph:Mre,root:Rre,strong:_re,table:Dre,tableCell:Nre,tableRow:kre,text:Ire,thematicBreak:Lre,toml:B3,yaml:B3,definition:B3,footnoteDefinition:B3};function B3(){}const ZD=-1,V3=0,Ab=1,U3=2,cT=3,fT=4,dT=5,hT=6,JD=7,ek=8,tk=typeof self=="object"?self:globalThis,Vre=(e,t)=>{const n=(o,s)=>(e.set(s,o),o),i=o=>{if(e.has(o))return e.get(o);const[s,f]=t[o];switch(s){case V3:case ZD:return n(f,o);case Ab:{const d=n([],o);for(const h of f)d.push(i(h));return d}case U3:{const d=n({},o);for(const[h,y]of f)d[i(h)]=i(y);return d}case cT:return n(new Date(f),o);case fT:{const{source:d,flags:h}=f;return n(new RegExp(d,h),o)}case dT:{const d=n(new Map,o);for(const[h,y]of f)d.set(i(h),i(y));return d}case hT:{const d=n(new Set,o);for(const h of f)d.add(i(h));return d}case JD:{const{name:d,message:h}=f;return n(new tk[d](h),o)}case ek:return n(BigInt(f),o);case"BigInt":return n(Object(BigInt(f)),o);case"ArrayBuffer":return n(new Uint8Array(f).buffer,f);case"DataView":{const{buffer:d}=new Uint8Array(f);return n(new DataView(d),f)}}return n(new tk[s](f),o)};return i},nk=e=>Vre(new Map,e)(0),_g="",{toString:Ure}={},{keys:Pre}=Object,Cb=e=>{const t=typeof e;if(t!=="object"||!e)return[V3,t];const n=Ure.call(e).slice(8,-1);switch(n){case"Array":return[Ab,_g];case"Object":return[U3,_g];case"Date":return[cT,_g];case"RegExp":return[fT,_g];case"Map":return[dT,_g];case"Set":return[hT,_g];case"DataView":return[Ab,n]}return n.includes("Array")?[Ab,n]:n.includes("Error")?[JD,n]:[U3,n]},P3=([e,t])=>e===V3&&(t==="function"||t==="symbol"),$re=(e,t,n,i)=>{const o=(f,d)=>{const h=i.push(f)-1;return n.set(d,h),h},s=f=>{if(n.has(f))return n.get(f);let[d,h]=Cb(f);switch(d){case V3:{let b=f;switch(h){case"bigint":d=ek,b=f.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+h);b=null;break;case"undefined":return o([ZD],f)}return o([d,b],f)}case Ab:{if(h){let T=f;return h==="DataView"?T=new Uint8Array(f.buffer):h==="ArrayBuffer"&&(T=new Uint8Array(f)),o([h,[...T]],f)}const b=[],x=o([d,b],f);for(const T of f)b.push(s(T));return x}case U3:{if(h)switch(h){case"BigInt":return o([h,f.toString()],f);case"Boolean":case"Number":case"String":return o([h,f.valueOf()],f)}if(t&&"toJSON"in f)return s(f.toJSON());const b=[],x=o([d,b],f);for(const T of Pre(f))(e||!P3(Cb(f[T])))&&b.push([s(T),s(f[T])]);return x}case cT:return o([d,f.toISOString()],f);case fT:{const{source:b,flags:x}=f;return o([d,{source:b,flags:x}],f)}case dT:{const b=[],x=o([d,b],f);for(const[T,w]of f)(e||!(P3(Cb(T))||P3(Cb(w))))&&b.push([s(T),s(w)]);return x}case hT:{const b=[],x=o([d,b],f);for(const T of f)(e||!P3(Cb(T)))&&b.push(s(T));return x}}const{message:y}=f;return o([d,{name:h,message:y}],f)};return s},rk=(e,{json:t,lossy:n}={})=>{const i=[];return $re(!(t||n),!!t,new Map,i)(e),i},Ob=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?nk(rk(e,t)):structuredClone(e):(e,t)=>nk(rk(e,t));function jre(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 Hre(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function qre(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||jre,i=e.options.footnoteBackLabel||Hre,o=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",f=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),x=String(y.identifier).toUpperCase(),T=Mg(x.toLowerCase());let w=0;const C=[],R=e.footnoteCounts.get(x);for(;R!==void 0&&++w<=R;){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 N={type:"element",tagName:"li",properties:{id:t+"fn-"+T},children:e.wrap(b,!0)};e.patch(y,N),d.push(N)}if(d.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...Ob(f),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 Mb=(function(e){if(e==null)return Xre;if(typeof e=="function")return $3(e);if(typeof e=="object")return Array.isArray(e)?Fre(e):Gre(e);if(typeof e=="string")return Yre(e);throw new Error("Expected function, string, or object as test")});function Fre(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Mb(e[n]);return $3(i);function i(...o){let s=-1;for(;++s<t.length;)if(t[s].apply(this,o))return!0;return!1}}function Gre(e){const t=e;return $3(n);function n(i){const o=i;let s;for(s in e)if(o[s]!==t[s])return!1;return!0}}function Yre(e){return $3(t);function t(n){return n&&n.type===e}}function $3(e){return t;function t(n,i,o){return!!(Wre(n)&&e.call(this,n,typeof i=="number"?i:void 0,o||void 0))}}function Xre(){return!0}function Wre(e){return e!==null&&typeof e=="object"&&"type"in e}function Ffe(e){return e}const ik=[],Qre=!0,pT=!1,ak="skip";function mT(e,t,n,i){let o;typeof t=="function"&&typeof n!="function"?(i=n,n=t):o=t;const s=Mb(o),f=i?-1:1;d(e,void 0,[])();function d(h,y,b){const x=h&&typeof h=="object"?h:{};if(typeof x.type=="string"){const w=typeof x.tagName=="string"?x.tagName:typeof x.name=="string"?x.name:void 0;Object.defineProperty(T,"name",{value:"node ("+(h.type+(w?"<"+w+">":""))+")"})}return T;function T(){let w=ik,C,R,_;if((!t||s(h,y,b[b.length-1]||void 0))&&(w=Kre(n(h,b)),w[0]===pT))return w;if("children"in h&&h.children){const N=h;if(N.children&&w[0]!==ak)for(R=(i?N.children.length:-1)+f,_=b.concat(N);R>-1&&R<N.children.length;){const z=N.children[R];if(C=d(z,R,_)(),C[0]===pT)return C;R=typeof C[1]=="number"?C[1]:R+f}}return w}}}function Kre(e){return Array.isArray(e)?e:typeof e=="number"?[Qre,e]:e==null?ik:[e]}function gT(e,t,n,i){let o,s,f;typeof t=="function"&&typeof n!="function"?(s=void 0,f=t,o=n):(s=t,f=n,o=i),mT(e,s,d,o);function d(h,y){const b=y[y.length-1],x=b?b.children.indexOf(h):void 0;return f(h,x,b)}}const yT={}.hasOwnProperty,Zre={};function Jre(e,t){const n=t||Zre,i=new Map,o=new Map,s=new Map,f={...Bre,...n.handlers},d={all:y,applyData:tie,definitionById:i,footnoteById:o,footnoteCounts:s,footnoteOrder:[],handlers:f,one:h,options:n,patch:eie,wrap:rie};return gT(e,function(b){if(b.type==="definition"||b.type==="footnoteDefinition"){const x=b.type==="definition"?i:o,T=String(b.identifier).toUpperCase();x.has(T)||x.set(T,b)}}),d;function h(b,x){const T=b.type,w=d.handlers[T];if(yT.call(d.handlers,T)&&w)return w(d,b,x);if(d.options.passThrough&&d.options.passThrough.includes(T)){if("children"in b){const{children:R,..._}=b,N=Ob(_);return N.children=d.all(b),N}return Ob(b)}return(d.options.unknownHandler||nie)(d,b,x)}function y(b){const x=[];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=ok(C.value)),!Array.isArray(C)&&C.type==="element")){const R=C.children[0];R&&R.type==="text"&&(R.value=ok(R.value))}Array.isArray(C)?x.push(...C):x.push(C)}}}return x}}function eie(e,t){e.position&&(t.position=mD(e))}function tie(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 f="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:f}}n.type==="element"&&s&&Object.assign(n.properties,Ob(s)),"children"in n&&n.children&&o!==null&&o!==void 0&&(n.children=o)}return n}function nie(e,t){const n=t.data||{},i="value"in t&&!(yT.call(n,"hProperties")||yT.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 rie(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 ok(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function lk(e,t){const n=Jre(e,t),i=n.one(e,void 0),o=qre(n),s=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return o&&s.children.push({type:"text",value:`
`},o),s}function iie(e,t){return e&&"run"in e?async function(n,i){const o=lk(n,{file:i,...t});await e.run(o,i)}:function(n,i){return lk(n,{file:i,...e||t})}}function sk(e){if(e)throw e}var vT,uk;function aie(){if(uk)return vT;uk=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"),x=y.constructor&&y.constructor.prototype&&e.call(y.constructor.prototype,"isPrototypeOf");if(y.constructor&&!b&&!x)return!1;var T;for(T in y);return typeof T>"u"||e.call(y,T)},f=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 vT=function h(){var y,b,x,T,w,C,R=arguments[0],_=1,N=arguments.length,z=!1;for(typeof R=="boolean"&&(z=R,R=arguments[1]||{},_=2),(R==null||typeof R!="object"&&typeof R!="function")&&(R={});_<N;++_)if(y=arguments[_],y!=null)for(b in y)x=d(R,b),T=d(y,b),R!==T&&(z&&T&&(s(T)||(w=o(T)))?(w?(w=!1,C=x&&o(x)?x:[]):C=x&&s(x)?x:{},f(R,{name:b,newValue:h(z,C,T)})):typeof T<"u"&&f(R,{name:b,newValue:T}));return R},vT}var oie=aie();const bT=pl(oie);function ST(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 lie(){const e=[],t={run:n,use:i};return t;function n(...o){let s=-1;const f=o.pop();if(typeof f!="function")throw new TypeError("Expected function as last argument, not "+f);d(null,...o);function d(h,...y){const b=e[++s];let x=-1;if(h){f(h);return}for(;++x<o.length;)(y[x]===null||y[x]===void 0)&&(y[x]=o[x]);o=y,b?sie(b,d)(...y):f(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 sie(e,t){let n;return i;function i(...f){const d=e.length>f.length;let h;d&&f.push(o);try{h=e.apply(this,f)}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(f,...d){n||(n=!0,t(f,...d))}function s(f){o(null,f)}}const lc={basename:uie,dirname:cie,extname:fie,join:die,sep:"/"};function uie(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 f=-1,d=t.length-1;for(;o--;)if(e.codePointAt(o)===47){if(s){n=o+1;break}}else f<0&&(s=!0,f=o+1),d>-1&&(e.codePointAt(o)===t.codePointAt(d--)?d<0&&(i=o):(d=-1,i=f));return n===i?i=f:i<0&&(i=e.length),e.slice(n,i)}function cie(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 fie(e){Rb(e);let t=e.length,n=-1,i=0,o=-1,s=0,f;for(;t--;){const d=e.codePointAt(t);if(d===47){if(f){i=t+1;break}continue}n<0&&(f=!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 die(...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?".":hie(n)}function hie(e){Rb(e);const t=e.codePointAt(0)===47;let n=pie(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function pie(e,t){let n="",i=0,o=-1,s=0,f=-1,d,h;for(;++f<=e.length;){if(f<e.length)d=e.codePointAt(f);else{if(d===47)break;d=47}if(d===47){if(!(o===f-1||s===1))if(o!==f-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=f,s=0;continue}}else if(n.length>0){n="",i=0,o=f,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(o+1,f):n=e.slice(o+1,f),i=f-o-1;o=f,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 mie={cwd:gie};function gie(){return"/"}function xT(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function yie(e){if(typeof e=="string")e=new URL(e);else if(!xT(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 vie(e)}function vie(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 ET=["history","path","basename","stem","extname","dirname"];class ck{constructor(t){let n;t?xT(t)?n={path:t}:typeof t=="string"||bie(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":mie.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<ET.length;){const s=ET[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)ET.includes(o)||(this[o]=n[o])}get basename(){return typeof this.path=="string"?lc.basename(this.path):void 0}set basename(t){TT(t,"basename"),wT(t,"basename"),this.path=lc.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?lc.dirname(this.path):void 0}set dirname(t){fk(this.basename,"dirname"),this.path=lc.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?lc.extname(this.path):void 0}set extname(t){if(wT(t,"extname"),fk(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=lc.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){xT(t)&&(t=yie(t)),TT(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?lc.basename(this.path,this.extname):void 0}set stem(t){TT(t,"stem"),wT(t,"stem"),this.path=lc.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 wT(e,t){if(e&&e.includes(lc.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+lc.sep+"`")}function TT(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function fk(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function bie(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Sie=(function(e){const i=this.constructor.prototype,o=i[e],s=function(){return o.apply(s,arguments)};return Object.setPrototypeOf(s,i),s}),xie={}.hasOwnProperty;class AT extends Sie{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=lie()}copy(){const t=new AT;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(bT(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(MT("data",this.frozen),this.namespace[t]=n,this):xie.call(this.namespace,t)&&this.namespace[t]||void 0:t?(MT("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=j3(t),i=this.parser||this.Parser;return CT("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),CT("process",this.parser||this.Parser),OT("process",this.compiler||this.Compiler),n?o(void 0,n):new Promise(o);function o(s,f){const d=j3(t),h=i.parse(d);i.run(h,d,function(b,x,T){if(b||!x||!T)return y(b);const w=x,C=i.stringify(w,T);Tie(C)?T.value=C:T.result=C,y(b,T)});function y(b,x){b||!x?f(b):s?s(x):n(void 0,x)}}}processSync(t){let n=!1,i;return this.freeze(),CT("processSync",this.parser||this.Parser),OT("processSync",this.compiler||this.Compiler),this.process(t,o),hk("processSync","process",n),i;function o(s,f){n=!0,sk(s),i=f}}run(t,n,i){dk(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(f,d){const h=j3(n);o.run(t,h,y);function y(b,x,T){const w=x||t;b?d(b):f?f(w):i(void 0,w,T)}}}runSync(t,n){let i=!1,o;return this.run(t,n,s),hk("runSync","run",i),o;function s(f,d){sk(f),o=d,i=!0}}stringify(t,n){this.freeze();const i=j3(n),o=this.compiler||this.Compiler;return OT("stringify",o),dk(t),o(t,i)}use(t,...n){const i=this.attachers,o=this.namespace;if(MT("use",this.frozen),t!=null)if(typeof t=="function")h(t,n);else if(typeof t=="object")Array.isArray(t)?d(t):f(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,...x]=y;h(b,x)}else f(y);else throw new TypeError("Expected usable value, not `"+y+"`")}function f(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=bT(!0,o.settings,y.settings))}function d(y){let b=-1;if(y!=null)if(Array.isArray(y))for(;++b<y.length;){const x=y[b];s(x)}else throw new TypeError("Expected a list of plugins, not `"+y+"`")}function h(y,b){let x=-1,T=-1;for(;++x<i.length;)if(i[x][0]===y){T=x;break}if(T===-1)i.push([y,...b]);else if(b.length>0){let[w,...C]=b;const R=i[T][1];ST(R)&&ST(w)&&(w=bT(!0,R,w)),i[T]=[y,w,...C]}}}}const Eie=new AT().freeze();function CT(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function OT(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function MT(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 dk(e){if(!ST(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function hk(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function j3(e){return wie(e)?e:new ck(e)}function wie(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Tie(e){return typeof e=="string"||Aie(e)}function Aie(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Cie="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",pk=[],mk={allowDangerousHtml:!0},Oie=/^(https?|ircs?|mailto|xmpp)$/i,Mie=[{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 Rie(e){const t=_ie(e),n=Die(e);return kie(t.runSync(t.parse(n),n),e)}function _ie(e){const t=e.rehypePlugins||pk,n=e.remarkPlugins||pk,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...mk}:mk;return Eie().use(fre).use(n).use(iie,i).use(t)}function Die(e){const t=e.children||"",n=new ck;return typeof t=="string"&&(n.value=t),n}function kie(e,t){const n=t.allowedElements,i=t.allowElement,o=t.components,s=t.disallowedElements,f=t.skipHtml,d=t.unwrapDisallowed,h=t.urlTransform||Nie;for(const b of Mie)Object.hasOwn(t,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+Cie+b.id,void 0);return gT(e,y),rte(e,{Fragment:xe.Fragment,components:o,ignoreInvalidStyle:!0,jsx:xe.jsx,jsxs:xe.jsxs,passKeys:!0,passNode:!0});function y(b,x,T){if(b.type==="raw"&&T&&typeof x=="number")return f?T.children.splice(x,1):T.children[x]={type:"text",value:b.value},x;if(b.type==="element"){let w;for(w in nT)if(Object.hasOwn(nT,w)&&Object.hasOwn(b.properties,w)){const C=b.properties[w],R=nT[w];(R===null||R.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 x=="number"&&(w=!i(b,x,T)),w&&T&&typeof x=="number")return d&&b.children?T.children.splice(x,1,...b.children):T.children.splice(x,1),x}}}function Nie(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||Oie.test(e.slice(0,t))?e:""}const gk=/[#.]/g;function zie(e,t){const n=e||"",i={};let o=0,s,f;for(;o<n.length;){gk.lastIndex=o;const d=gk.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]:f=h,o+=h.length),d&&(s=d[0],o++)}return{type:"element",tagName:f||t||"div",properties:i,children:[]}}function yk(e,t,n){const i=n?Vie(n):void 0;function o(s,f,...d){let h;if(s==null){h={type:"root",children:[]};const y=f;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,Iie(f))d.unshift(f);else for(const[x,T]of Object.entries(f))Lie(e,h.properties,x,T)}for(const y of d)RT(h.children,y);return h.type==="element"&&h.tagName==="template"&&(h.content={type:"root",children:h.children},h.children=[]),h}return o}function Iie(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 f of s)if(typeof f!="number"&&typeof f!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function Lie(e,t,n,i){const o=oD(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=sD(i):o.commaSeparated?s=X_(i):o.commaOrSpaceSeparated?s=sD(X_(i).join(" ")):s=vk(o,o.property,i):Array.isArray(i)?s=[...i]:s=o.property==="style"?Bie(i):String(i);if(Array.isArray(s)){const f=[];for(const d of s)f.push(vk(o,o.property,d));s=f}o.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[o.property]=s}}function RT(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)RT(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?RT(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function vk(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||yb(n)===yb(t)))return!0}return n}function Bie(e){const t=[];for(const[n,i]of Object.entries(e))t.push([n,i].join(": "));return t.join("; ")}function Vie(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Uie=["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"],Pie=yk(lD,"div"),$ie=yk(k3,"g",Uie),_T={html:"http://www.w3.org/1999/xhtml",svg:"http://www.w3.org/2000/svg"};function jie(e,t){return bk(e,{})||{type:"root",children:[]}}function bk(e,t){const n=Hie(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function Hie(e,t){switch(e.nodeType){case 1:return Yie(e,t);case 3:return Fie(e);case 8:return Gie(e);case 9:return Sk(e,t);case 10:return qie();case 11:return Sk(e,t);default:return}}function Sk(e,t){return{type:"root",children:xk(e,t)}}function qie(){return{type:"doctype"}}function Fie(e){return{type:"text",value:e.nodeValue||""}}function Gie(e){return{type:"comment",value:e.nodeValue||""}}function Yie(e,t){const n=e.namespaceURI,i=n===_T.svg?$ie:Pie,o=n===_T.html?e.tagName.toLowerCase():e.tagName,s=n===_T.html&&o==="template"?e.content:e,f=e.getAttributeNames(),d={};let h=-1;for(;++h<f.length;)d[f[h]]=e.getAttribute(f[h])||"";return i(o,d,xk(s,t))}function xk(e,t){const n=e.childNodes,i=[];let o=-1;for(;++o<n.length;){const s=bk(n[o],t);s!==void 0&&i.push(s)}return i}new DOMParser;function Xie(e,t){const n=Wie(e);return jie(n)}function Wie(e){const t=document.createElement("template");return t.innerHTML=e,t.content}const Ek=(function(e,t,n){const i=Mb(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]}),Dh=(function(e){if(e==null)return Zie;if(typeof e=="string")return Kie(e);if(typeof e=="object")return Qie(e);if(typeof e=="function")return DT(e);throw new Error("Expected function, string, or array as `test`")});function Qie(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Dh(e[n]);return DT(i);function i(...o){let s=-1;for(;++s<t.length;)if(t[s].apply(this,o))return!0;return!1}}function Kie(e){return DT(t);function t(n){return n.tagName===e}}function DT(e){return t;function t(n,i,o){return!!(Jie(n)&&e.call(this,n,typeof i=="number"?i:void 0,o||void 0))}}function Zie(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Jie(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const wk=/\n/g,Tk=/[\t ]+/g,kT=Dh("br"),Ak=Dh(lae),eae=Dh("p"),Ck=Dh("tr"),tae=Dh(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",oae,sae]),Ok=Dh(["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 nae(e,t){const n=t||{},i="children"in e?e.children:[],o=Ok(e),s=_k(e,{whitespace:n.whitespace||"normal"}),f=[];(e.type==="text"||e.type==="comment")&&f.push(...Rk(e,{breakBefore:!0,breakAfter:!0}));let d=-1;for(;++d<i.length;)f.push(...Mk(i[d],e,{whitespace:s,breakBefore:d?void 0:o,breakAfter:d<i.length-1?kT(i[d+1]):o}));const h=[];let y;for(d=-1;++d<f.length;){const b=f[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 Mk(e,t,n){return e.type==="element"?rae(e,t,n):e.type==="text"?n.whitespace==="normal"?Rk(e,n):iae(e):[]}function rae(e,t,n){const i=_k(e,n),o=e.children||[];let s=-1,f=[];if(tae(e))return f;let d,h;for(kT(e)||Ck(e)&&Ek(t,e,Ck)?h=`
`:eae(e)?(d=2,h=2):Ok(e)&&(d=1,h=1);++s<o.length;)f=f.concat(Mk(o[s],e,{whitespace:i,breakBefore:s?void 0:d,breakAfter:s<o.length-1?kT(o[s+1]):h}));return Ak(e)&&Ek(t,e,Ak)&&f.push("	"),d&&f.unshift(d),h&&f.push(h),f}function Rk(e,t){const n=String(e.value),i=[],o=[];let s=0;for(;s<=n.length;){wk.lastIndex=s;const h=wk.exec(n),y=h&&"index"in h?h.index:n.length;i.push(aae(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 f=-1,d;for(;++f<i.length;)i[f].charCodeAt(i[f].length-1)===8203||f<i.length-1&&i[f+1].charCodeAt(0)===8203?(o.push(i[f]),d=void 0):i[f]?(typeof d=="number"&&o.push(d),o.push(i[f]),d=0):(f===0||f===i.length-1)&&o.push(0);return o}function iae(e){return[String(e.value)]}function aae(e,t,n){const i=[];let o=0,s;for(;o<e.length;){Tk.lastIndex=o;const f=Tk.exec(e);s=f?f.index:e.length,!o&&!s&&f&&!t&&i.push(""),o!==s&&i.push(e.slice(o,s)),o=f?s+f[0].length:s}return o!==s&&!n&&i.push(""),i.join(" ")}function _k(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 oae(e){return!!(e.properties||{}).hidden}function lae(e){return e.tagName==="td"||e.tagName==="th"}function sae(e){return e.tagName==="dialog"&&!(e.properties||{}).open}class Ho{constructor(t,n,i){this.lexer=void 0,this.start=void 0,this.end=void 0,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 Ho(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class wl{constructor(t,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=n}range(t,n){return new wl(n,Ho.range(this,t))}}class ft{constructor(t,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var i="KaTeX parse error: "+t,o,s,f=n&&n.loc;if(f&&f.start<=f.end){var d=f.lexer.input;o=f.start,s=f.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}var x=new Error(i);return x.name="ParseError",x.__proto__=ft.prototype,x.position=o,o!=null&&s!=null&&(x.length=s-o),x.rawMessage=t,x}}ft.prototype.__proto__=Error.prototype;var uae=function(t,n){return t===void 0?n:t},cae=/([A-Z])/g,fae=function(t){return t.replace(cae,"-$1").toLowerCase()},dae={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},hae=/[&><"']/g;function pae(e){return String(e).replace(hae,t=>dae[t])}var Dk=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},mae=function(t){var n=Dk(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},gae=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},yae=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(t);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},Zn={deflt:uae,escape:pae,hyphenate:fae,getBaseElem:Dk,isCharacterBox:mae,protocolFromUrl:yae},H3={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 vae(e){if(e.default)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 NT=class{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in H3)if(H3.hasOwnProperty(n)){var i=H3[n];this[n]=t[n]!==void 0?i.processor?i.processor(t[n]):t[n]:vae(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(t.url&&!t.protocol){var n=Zn.protocolFromUrl(t.url);if(n==null)return!1;t.protocol=n}var i=typeof this.trust=="function"?this.trust(t):this.trust;return!!i}};class Ud{constructor(t,n,i){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=i}sup(){return sc[bae[this.id]]}sub(){return sc[Sae[this.id]]}fracNum(){return sc[xae[this.id]]}fracDen(){return sc[Eae[this.id]]}cramp(){return sc[wae[this.id]]}text(){return sc[Tae[this.id]]}isTight(){return this.size>=2}}var zT=0,q3=1,Dg=2,sf=3,_b=4,ns=5,kg=6,mo=7,sc=[new Ud(zT,0,!1),new Ud(q3,0,!0),new Ud(Dg,1,!1),new Ud(sf,1,!0),new Ud(_b,2,!1),new Ud(ns,2,!0),new Ud(kg,3,!1),new Ud(mo,3,!0)],bae=[_b,ns,_b,ns,kg,mo,kg,mo],Sae=[ns,ns,ns,ns,mo,mo,mo,mo],xae=[Dg,sf,_b,ns,kg,mo,kg,mo],Eae=[sf,sf,ns,ns,mo,mo,mo,mo],wae=[q3,q3,sf,sf,ns,ns,mo,mo],Tae=[zT,q3,Dg,sf,Dg,sf,Dg,sf],Gt={DISPLAY:sc[zT],TEXT:sc[Dg],SCRIPT:sc[_b],SCRIPTSCRIPT:sc[kg]},IT=[{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 Aae(e){for(var t=0;t<IT.length;t++)for(var n=IT[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=[];IT.forEach(e=>e.blocks.forEach(t=>F3.push(...t)));function kk(e){for(var t=0;t<F3.length;t+=2)if(e>=F3[t]&&e<=F3[t+1])return!0;return!1}var Ng=80,Cae=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"},Oae=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"},Mae=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"},Rae=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"},_ae=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"},Dae=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},kae=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"},Nae=function(t,n,i){n=1e3*n;var o="";switch(t){case"sqrtMain":o=Cae(n,Ng);break;case"sqrtSize1":o=Oae(n,Ng);break;case"sqrtSize2":o=Mae(n,Ng);break;case"sqrtSize3":o=Rae(n,Ng);break;case"sqrtSize4":o=_ae(n,Ng);break;case"sqrtTall":o=kae(n,Ng,i)}return o},zae=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""}},Nk={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`},Iae=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.")}};let Db=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,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 uc={"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]}},G3={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]},zk={Å:"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 Lae(e,t){uc[e]=t}function LT(e,t,n){if(!uc[t])throw new Error("Font metrics not found for font: "+t+".");var i=e.charCodeAt(0),o=uc[t][i];if(!o&&e[0]in zk&&(i=zk[e[0]].charCodeAt(0),o=uc[t][i]),!o&&n==="text"&&kk(i)&&(o=uc[t][77]),o)return{depth:o[0],height:o[1],italic:o[2],skew:o[3],width:o[4]}}var BT={};function Bae(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!BT[t]){var n=BT[t]={cssEmPerMu:G3.quad[t]/18};for(var i in G3)G3.hasOwnProperty(i)&&(n[i]=G3[i][t])}return BT[t]}var Vae=[[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]],Ik=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Lk=function(t,n){return n.size<2?t:Vae[t-1][n.size-1]};class uf{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||uf.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=Ik[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};for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return new uf(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Lk(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:Ik[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=Lk(uf.BASESIZE,t);return this.size===n&&this.textSize===uf.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!==uf.BASESIZE?["sizing","reset-size"+this.size,"size"+uf.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Bae(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}uf.BASESIZE=6;var VT={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},Uae={ex:!0,em:!0,mu:!0},Bk=function(t){return typeof t!="string"&&(t=t.unit),t in VT||t in Uae||t==="ex"},ai=function(t,n){var i;if(t.unit in VT)i=VT[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)},yt=function(t){return+t.toFixed(4)+"em"},Pd=function(t){return t.filter(n=>n).join(" ")},Vk=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)}},Uk=function(t){var n=document.createElement(t);n.className=Pd(this.classes);for(var i in this.style)this.style.hasOwnProperty(i)&&(n.style[i]=this.style[i]);for(var o in this.attributes)this.attributes.hasOwnProperty(o)&&n.setAttribute(o,this.attributes[o]);for(var s=0;s<this.children.length;s++)n.appendChild(this.children[s].toNode());return n},Pae=/[\s"'>/=\x00-\x1f]/,Pk=function(t){var n="<"+t;this.classes.length&&(n+=' class="'+Zn.escape(Pd(this.classes))+'"');var i="";for(var o in this.style)this.style.hasOwnProperty(o)&&(i+=Zn.hyphenate(o)+":"+this.style[o]+";");i&&(n+=' style="'+Zn.escape(i)+'"');for(var s in this.attributes)if(this.attributes.hasOwnProperty(s)){if(Pae.test(s))throw new ft("Invalid attribute name '"+s+"'");n+=" "+s+'="'+Zn.escape(this.attributes[s])+'"'}n+=">";for(var f=0;f<this.children.length;f++)n+=this.children[f].toMarkup();return n+="</"+t+">",n};class kb{constructor(t,n,i,o){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Vk.call(this,t,i,o),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return this.classes.includes(t)}toNode(){return Uk.call(this,"span")}toMarkup(){return Pk.call(this,"span")}}class UT{constructor(t,n,i,o){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Vk.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 Uk.call(this,"a")}toMarkup(){return Pk.call(this,"a")}}class $ae{constructor(t,n,i){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],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 in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t='<img src="'+Zn.escape(this.src)+'"'+(' alt="'+Zn.escape(this.alt)+'"'),n="";for(var i in this.style)this.style.hasOwnProperty(i)&&(n+=Zn.hyphenate(i)+":"+this.style[i]+";");return n&&(t+=' style="'+Zn.escape(n)+'"'),t+="'/>",t}}var jae={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class rs{constructor(t,n,i,o,s,f,d,h){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=t,this.height=n||0,this.depth=i||0,this.italic=o||0,this.skew=s||0,this.width=f||0,this.classes=d||[],this.style=h||{},this.maxFontSize=0;var y=Aae(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=yt(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=Pd(this.classes));for(var i in this.style)this.style.hasOwnProperty(i)&&(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+=Zn.escape(Pd(this.classes)),n+='"');var i="";this.italic>0&&(i+="margin-right:"+this.italic+"em;");for(var o in this.style)this.style.hasOwnProperty(o)&&(i+=Zn.hyphenate(o)+":"+this.style[o]+";");i&&(t=!0,n+=' style="'+Zn.escape(i)+'"');var s=Zn.escape(this.text);return t?(n+=">",n+=s,n+="</span>",n):s}}class cf{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var i in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,i)&&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 in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="'+Zn.escape(this.attributes[n])+'"');t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+="</svg>",t}}class $d{constructor(t,n){this.pathName=void 0,this.alternate=void 0,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",Nk[this.pathName]),n}toMarkup(){return this.alternate?'<path d="'+Zn.escape(this.alternate)+'"/>':'<path d="'+Zn.escape(Nk[this.pathName])+'"/>'}}class PT{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var i in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,i)&&n.setAttribute(i,this.attributes[i]);return n}toMarkup(){var t="<line";for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&(t+=" "+n+'="'+Zn.escape(this.attributes[n])+'"');return t+="/>",t}}function $k(e){if(e instanceof rs)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}function Hae(e){if(e instanceof kb)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}var qae={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Fae={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},kr={math:{},text:{}};function k(e,t,n,i,o,s){kr[e][o]={font:t,group:n,replace:i},s&&i&&(kr[e][i]=kr[e][o])}var L="math",ot="text",X="main",fe="ams",Gr="accent-token",Ct="bin",go="close",zg="inner",Yt="mathord",Di="op-token",Tl="open",Y3="punct",he="rel",ff="spacing",Oe="textord";k(L,X,he,"≡","\\equiv",!0),k(L,X,he,"≺","\\prec",!0),k(L,X,he,"≻","\\succ",!0),k(L,X,he,"∼","\\sim",!0),k(L,X,he,"⊥","\\perp"),k(L,X,he,"⪯","\\preceq",!0),k(L,X,he,"⪰","\\succeq",!0),k(L,X,he,"≃","\\simeq",!0),k(L,X,he,"∣","\\mid",!0),k(L,X,he,"≪","\\ll",!0),k(L,X,he,"≫","\\gg",!0),k(L,X,he,"≍","\\asymp",!0),k(L,X,he,"∥","\\parallel"),k(L,X,he,"⋈","\\bowtie",!0),k(L,X,he,"⌣","\\smile",!0),k(L,X,he,"⊑","\\sqsubseteq",!0),k(L,X,he,"⊒","\\sqsupseteq",!0),k(L,X,he,"≐","\\doteq",!0),k(L,X,he,"⌢","\\frown",!0),k(L,X,he,"∋","\\ni",!0),k(L,X,he,"∝","\\propto",!0),k(L,X,he,"⊢","\\vdash",!0),k(L,X,he,"⊣","\\dashv",!0),k(L,X,he,"∋","\\owns"),k(L,X,Y3,".","\\ldotp"),k(L,X,Y3,"⋅","\\cdotp"),k(L,X,Oe,"#","\\#"),k(ot,X,Oe,"#","\\#"),k(L,X,Oe,"&","\\&"),k(ot,X,Oe,"&","\\&"),k(L,X,Oe,"ℵ","\\aleph",!0),k(L,X,Oe,"∀","\\forall",!0),k(L,X,Oe,"ℏ","\\hbar",!0),k(L,X,Oe,"∃","\\exists",!0),k(L,X,Oe,"∇","\\nabla",!0),k(L,X,Oe,"♭","\\flat",!0),k(L,X,Oe,"ℓ","\\ell",!0),k(L,X,Oe,"♮","\\natural",!0),k(L,X,Oe,"♣","\\clubsuit",!0),k(L,X,Oe,"℘","\\wp",!0),k(L,X,Oe,"♯","\\sharp",!0),k(L,X,Oe,"♢","\\diamondsuit",!0),k(L,X,Oe,"ℜ","\\Re",!0),k(L,X,Oe,"♡","\\heartsuit",!0),k(L,X,Oe,"ℑ","\\Im",!0),k(L,X,Oe,"♠","\\spadesuit",!0),k(L,X,Oe,"§","\\S",!0),k(ot,X,Oe,"§","\\S"),k(L,X,Oe,"¶","\\P",!0),k(ot,X,Oe,"¶","\\P"),k(L,X,Oe,"†","\\dag"),k(ot,X,Oe,"†","\\dag"),k(ot,X,Oe,"†","\\textdagger"),k(L,X,Oe,"‡","\\ddag"),k(ot,X,Oe,"‡","\\ddag"),k(ot,X,Oe,"‡","\\textdaggerdbl"),k(L,X,go,"⎱","\\rmoustache",!0),k(L,X,Tl,"⎰","\\lmoustache",!0),k(L,X,go,"⟯","\\rgroup",!0),k(L,X,Tl,"⟮","\\lgroup",!0),k(L,X,Ct,"∓","\\mp",!0),k(L,X,Ct,"⊖","\\ominus",!0),k(L,X,Ct,"⊎","\\uplus",!0),k(L,X,Ct,"⊓","\\sqcap",!0),k(L,X,Ct,"∗","\\ast"),k(L,X,Ct,"⊔","\\sqcup",!0),k(L,X,Ct,"◯","\\bigcirc",!0),k(L,X,Ct,"∙","\\bullet",!0),k(L,X,Ct,"‡","\\ddagger"),k(L,X,Ct,"≀","\\wr",!0),k(L,X,Ct,"⨿","\\amalg"),k(L,X,Ct,"&","\\And"),k(L,X,he,"⟵","\\longleftarrow",!0),k(L,X,he,"⇐","\\Leftarrow",!0),k(L,X,he,"⟸","\\Longleftarrow",!0),k(L,X,he,"⟶","\\longrightarrow",!0),k(L,X,he,"⇒","\\Rightarrow",!0),k(L,X,he,"⟹","\\Longrightarrow",!0),k(L,X,he,"↔","\\leftrightarrow",!0),k(L,X,he,"⟷","\\longleftrightarrow",!0),k(L,X,he,"⇔","\\Leftrightarrow",!0),k(L,X,he,"⟺","\\Longleftrightarrow",!0),k(L,X,he,"↦","\\mapsto",!0),k(L,X,he,"⟼","\\longmapsto",!0),k(L,X,he,"↗","\\nearrow",!0),k(L,X,he,"↩","\\hookleftarrow",!0),k(L,X,he,"↪","\\hookrightarrow",!0),k(L,X,he,"↘","\\searrow",!0),k(L,X,he,"↼","\\leftharpoonup",!0),k(L,X,he,"⇀","\\rightharpoonup",!0),k(L,X,he,"↙","\\swarrow",!0),k(L,X,he,"↽","\\leftharpoondown",!0),k(L,X,he,"⇁","\\rightharpoondown",!0),k(L,X,he,"↖","\\nwarrow",!0),k(L,X,he,"⇌","\\rightleftharpoons",!0),k(L,fe,he,"≮","\\nless",!0),k(L,fe,he,"","\\@nleqslant"),k(L,fe,he,"","\\@nleqq"),k(L,fe,he,"⪇","\\lneq",!0),k(L,fe,he,"≨","\\lneqq",!0),k(L,fe,he,"","\\@lvertneqq"),k(L,fe,he,"⋦","\\lnsim",!0),k(L,fe,he,"⪉","\\lnapprox",!0),k(L,fe,he,"⊀","\\nprec",!0),k(L,fe,he,"⋠","\\npreceq",!0),k(L,fe,he,"⋨","\\precnsim",!0),k(L,fe,he,"⪹","\\precnapprox",!0),k(L,fe,he,"≁","\\nsim",!0),k(L,fe,he,"","\\@nshortmid"),k(L,fe,he,"∤","\\nmid",!0),k(L,fe,he,"⊬","\\nvdash",!0),k(L,fe,he,"⊭","\\nvDash",!0),k(L,fe,he,"⋪","\\ntriangleleft"),k(L,fe,he,"⋬","\\ntrianglelefteq",!0),k(L,fe,he,"⊊","\\subsetneq",!0),k(L,fe,he,"","\\@varsubsetneq"),k(L,fe,he,"⫋","\\subsetneqq",!0),k(L,fe,he,"","\\@varsubsetneqq"),k(L,fe,he,"≯","\\ngtr",!0),k(L,fe,he,"","\\@ngeqslant"),k(L,fe,he,"","\\@ngeqq"),k(L,fe,he,"⪈","\\gneq",!0),k(L,fe,he,"≩","\\gneqq",!0),k(L,fe,he,"","\\@gvertneqq"),k(L,fe,he,"⋧","\\gnsim",!0),k(L,fe,he,"⪊","\\gnapprox",!0),k(L,fe,he,"⊁","\\nsucc",!0),k(L,fe,he,"⋡","\\nsucceq",!0),k(L,fe,he,"⋩","\\succnsim",!0),k(L,fe,he,"⪺","\\succnapprox",!0),k(L,fe,he,"≆","\\ncong",!0),k(L,fe,he,"","\\@nshortparallel"),k(L,fe,he,"∦","\\nparallel",!0),k(L,fe,he,"⊯","\\nVDash",!0),k(L,fe,he,"⋫","\\ntriangleright"),k(L,fe,he,"⋭","\\ntrianglerighteq",!0),k(L,fe,he,"","\\@nsupseteqq"),k(L,fe,he,"⊋","\\supsetneq",!0),k(L,fe,he,"","\\@varsupsetneq"),k(L,fe,he,"⫌","\\supsetneqq",!0),k(L,fe,he,"","\\@varsupsetneqq"),k(L,fe,he,"⊮","\\nVdash",!0),k(L,fe,he,"⪵","\\precneqq",!0),k(L,fe,he,"⪶","\\succneqq",!0),k(L,fe,he,"","\\@nsubseteqq"),k(L,fe,Ct,"⊴","\\unlhd"),k(L,fe,Ct,"⊵","\\unrhd"),k(L,fe,he,"↚","\\nleftarrow",!0),k(L,fe,he,"↛","\\nrightarrow",!0),k(L,fe,he,"⇍","\\nLeftarrow",!0),k(L,fe,he,"⇏","\\nRightarrow",!0),k(L,fe,he,"↮","\\nleftrightarrow",!0),k(L,fe,he,"⇎","\\nLeftrightarrow",!0),k(L,fe,he,"△","\\vartriangle"),k(L,fe,Oe,"ℏ","\\hslash"),k(L,fe,Oe,"▽","\\triangledown"),k(L,fe,Oe,"◊","\\lozenge"),k(L,fe,Oe,"Ⓢ","\\circledS"),k(L,fe,Oe,"®","\\circledR"),k(ot,fe,Oe,"®","\\circledR"),k(L,fe,Oe,"∡","\\measuredangle",!0),k(L,fe,Oe,"∄","\\nexists"),k(L,fe,Oe,"℧","\\mho"),k(L,fe,Oe,"Ⅎ","\\Finv",!0),k(L,fe,Oe,"⅁","\\Game",!0),k(L,fe,Oe,"‵","\\backprime"),k(L,fe,Oe,"▲","\\blacktriangle"),k(L,fe,Oe,"▼","\\blacktriangledown"),k(L,fe,Oe,"■","\\blacksquare"),k(L,fe,Oe,"⧫","\\blacklozenge"),k(L,fe,Oe,"★","\\bigstar"),k(L,fe,Oe,"∢","\\sphericalangle",!0),k(L,fe,Oe,"∁","\\complement",!0),k(L,fe,Oe,"ð","\\eth",!0),k(ot,X,Oe,"ð","ð"),k(L,fe,Oe,"╱","\\diagup"),k(L,fe,Oe,"╲","\\diagdown"),k(L,fe,Oe,"□","\\square"),k(L,fe,Oe,"□","\\Box"),k(L,fe,Oe,"◊","\\Diamond"),k(L,fe,Oe,"¥","\\yen",!0),k(ot,fe,Oe,"¥","\\yen",!0),k(L,fe,Oe,"✓","\\checkmark",!0),k(ot,fe,Oe,"✓","\\checkmark"),k(L,fe,Oe,"ℶ","\\beth",!0),k(L,fe,Oe,"ℸ","\\daleth",!0),k(L,fe,Oe,"ℷ","\\gimel",!0),k(L,fe,Oe,"ϝ","\\digamma",!0),k(L,fe,Oe,"ϰ","\\varkappa"),k(L,fe,Tl,"┌","\\@ulcorner",!0),k(L,fe,go,"┐","\\@urcorner",!0),k(L,fe,Tl,"└","\\@llcorner",!0),k(L,fe,go,"┘","\\@lrcorner",!0),k(L,fe,he,"≦","\\leqq",!0),k(L,fe,he,"⩽","\\leqslant",!0),k(L,fe,he,"⪕","\\eqslantless",!0),k(L,fe,he,"≲","\\lesssim",!0),k(L,fe,he,"⪅","\\lessapprox",!0),k(L,fe,he,"≊","\\approxeq",!0),k(L,fe,Ct,"⋖","\\lessdot"),k(L,fe,he,"⋘","\\lll",!0),k(L,fe,he,"≶","\\lessgtr",!0),k(L,fe,he,"⋚","\\lesseqgtr",!0),k(L,fe,he,"⪋","\\lesseqqgtr",!0),k(L,fe,he,"≑","\\doteqdot"),k(L,fe,he,"≓","\\risingdotseq",!0),k(L,fe,he,"≒","\\fallingdotseq",!0),k(L,fe,he,"∽","\\backsim",!0),k(L,fe,he,"⋍","\\backsimeq",!0),k(L,fe,he,"⫅","\\subseteqq",!0),k(L,fe,he,"⋐","\\Subset",!0),k(L,fe,he,"⊏","\\sqsubset",!0),k(L,fe,he,"≼","\\preccurlyeq",!0),k(L,fe,he,"⋞","\\curlyeqprec",!0),k(L,fe,he,"≾","\\precsim",!0),k(L,fe,he,"⪷","\\precapprox",!0),k(L,fe,he,"⊲","\\vartriangleleft"),k(L,fe,he,"⊴","\\trianglelefteq"),k(L,fe,he,"⊨","\\vDash",!0),k(L,fe,he,"⊪","\\Vvdash",!0),k(L,fe,he,"⌣","\\smallsmile"),k(L,fe,he,"⌢","\\smallfrown"),k(L,fe,he,"≏","\\bumpeq",!0),k(L,fe,he,"≎","\\Bumpeq",!0),k(L,fe,he,"≧","\\geqq",!0),k(L,fe,he,"⩾","\\geqslant",!0),k(L,fe,he,"⪖","\\eqslantgtr",!0),k(L,fe,he,"≳","\\gtrsim",!0),k(L,fe,he,"⪆","\\gtrapprox",!0),k(L,fe,Ct,"⋗","\\gtrdot"),k(L,fe,he,"⋙","\\ggg",!0),k(L,fe,he,"≷","\\gtrless",!0),k(L,fe,he,"⋛","\\gtreqless",!0),k(L,fe,he,"⪌","\\gtreqqless",!0),k(L,fe,he,"≖","\\eqcirc",!0),k(L,fe,he,"≗","\\circeq",!0),k(L,fe,he,"≜","\\triangleq",!0),k(L,fe,he,"∼","\\thicksim"),k(L,fe,he,"≈","\\thickapprox"),k(L,fe,he,"⫆","\\supseteqq",!0),k(L,fe,he,"⋑","\\Supset",!0),k(L,fe,he,"⊐","\\sqsupset",!0),k(L,fe,he,"≽","\\succcurlyeq",!0),k(L,fe,he,"⋟","\\curlyeqsucc",!0),k(L,fe,he,"≿","\\succsim",!0),k(L,fe,he,"⪸","\\succapprox",!0),k(L,fe,he,"⊳","\\vartriangleright"),k(L,fe,he,"⊵","\\trianglerighteq"),k(L,fe,he,"⊩","\\Vdash",!0),k(L,fe,he,"∣","\\shortmid"),k(L,fe,he,"∥","\\shortparallel"),k(L,fe,he,"≬","\\between",!0),k(L,fe,he,"⋔","\\pitchfork",!0),k(L,fe,he,"∝","\\varpropto"),k(L,fe,he,"◀","\\blacktriangleleft"),k(L,fe,he,"∴","\\therefore",!0),k(L,fe,he,"∍","\\backepsilon"),k(L,fe,he,"▶","\\blacktriangleright"),k(L,fe,he,"∵","\\because",!0),k(L,fe,he,"⋘","\\llless"),k(L,fe,he,"⋙","\\gggtr"),k(L,fe,Ct,"⊲","\\lhd"),k(L,fe,Ct,"⊳","\\rhd"),k(L,fe,he,"≂","\\eqsim",!0),k(L,X,he,"⋈","\\Join"),k(L,fe,he,"≑","\\Doteq",!0),k(L,fe,Ct,"∔","\\dotplus",!0),k(L,fe,Ct,"∖","\\smallsetminus"),k(L,fe,Ct,"⋒","\\Cap",!0),k(L,fe,Ct,"⋓","\\Cup",!0),k(L,fe,Ct,"⩞","\\doublebarwedge",!0),k(L,fe,Ct,"⊟","\\boxminus",!0),k(L,fe,Ct,"⊞","\\boxplus",!0),k(L,fe,Ct,"⋇","\\divideontimes",!0),k(L,fe,Ct,"⋉","\\ltimes",!0),k(L,fe,Ct,"⋊","\\rtimes",!0),k(L,fe,Ct,"⋋","\\leftthreetimes",!0),k(L,fe,Ct,"⋌","\\rightthreetimes",!0),k(L,fe,Ct,"⋏","\\curlywedge",!0),k(L,fe,Ct,"⋎","\\curlyvee",!0),k(L,fe,Ct,"⊝","\\circleddash",!0),k(L,fe,Ct,"⊛","\\circledast",!0),k(L,fe,Ct,"⋅","\\centerdot"),k(L,fe,Ct,"⊺","\\intercal",!0),k(L,fe,Ct,"⋒","\\doublecap"),k(L,fe,Ct,"⋓","\\doublecup"),k(L,fe,Ct,"⊠","\\boxtimes",!0),k(L,fe,he,"⇢","\\dashrightarrow",!0),k(L,fe,he,"⇠","\\dashleftarrow",!0),k(L,fe,he,"⇇","\\leftleftarrows",!0),k(L,fe,he,"⇆","\\leftrightarrows",!0),k(L,fe,he,"⇚","\\Lleftarrow",!0),k(L,fe,he,"↞","\\twoheadleftarrow",!0),k(L,fe,he,"↢","\\leftarrowtail",!0),k(L,fe,he,"↫","\\looparrowleft",!0),k(L,fe,he,"⇋","\\leftrightharpoons",!0),k(L,fe,he,"↶","\\curvearrowleft",!0),k(L,fe,he,"↺","\\circlearrowleft",!0),k(L,fe,he,"↰","\\Lsh",!0),k(L,fe,he,"⇈","\\upuparrows",!0),k(L,fe,he,"↿","\\upharpoonleft",!0),k(L,fe,he,"⇃","\\downharpoonleft",!0),k(L,X,he,"⊶","\\origof",!0),k(L,X,he,"⊷","\\imageof",!0),k(L,fe,he,"⊸","\\multimap",!0),k(L,fe,he,"↭","\\leftrightsquigarrow",!0),k(L,fe,he,"⇉","\\rightrightarrows",!0),k(L,fe,he,"⇄","\\rightleftarrows",!0),k(L,fe,he,"↠","\\twoheadrightarrow",!0),k(L,fe,he,"↣","\\rightarrowtail",!0),k(L,fe,he,"↬","\\looparrowright",!0),k(L,fe,he,"↷","\\curvearrowright",!0),k(L,fe,he,"↻","\\circlearrowright",!0),k(L,fe,he,"↱","\\Rsh",!0),k(L,fe,he,"⇊","\\downdownarrows",!0),k(L,fe,he,"↾","\\upharpoonright",!0),k(L,fe,he,"⇂","\\downharpoonright",!0),k(L,fe,he,"⇝","\\rightsquigarrow",!0),k(L,fe,he,"⇝","\\leadsto"),k(L,fe,he,"⇛","\\Rrightarrow",!0),k(L,fe,he,"↾","\\restriction"),k(L,X,Oe,"‘","`"),k(L,X,Oe,"$","\\$"),k(ot,X,Oe,"$","\\$"),k(ot,X,Oe,"$","\\textdollar"),k(L,X,Oe,"%","\\%"),k(ot,X,Oe,"%","\\%"),k(L,X,Oe,"_","\\_"),k(ot,X,Oe,"_","\\_"),k(ot,X,Oe,"_","\\textunderscore"),k(L,X,Oe,"∠","\\angle",!0),k(L,X,Oe,"∞","\\infty",!0),k(L,X,Oe,"′","\\prime"),k(L,X,Oe,"△","\\triangle"),k(L,X,Oe,"Γ","\\Gamma",!0),k(L,X,Oe,"Δ","\\Delta",!0),k(L,X,Oe,"Θ","\\Theta",!0),k(L,X,Oe,"Λ","\\Lambda",!0),k(L,X,Oe,"Ξ","\\Xi",!0),k(L,X,Oe,"Π","\\Pi",!0),k(L,X,Oe,"Σ","\\Sigma",!0),k(L,X,Oe,"Υ","\\Upsilon",!0),k(L,X,Oe,"Φ","\\Phi",!0),k(L,X,Oe,"Ψ","\\Psi",!0),k(L,X,Oe,"Ω","\\Omega",!0),k(L,X,Oe,"A","Α"),k(L,X,Oe,"B","Β"),k(L,X,Oe,"E","Ε"),k(L,X,Oe,"Z","Ζ"),k(L,X,Oe,"H","Η"),k(L,X,Oe,"I","Ι"),k(L,X,Oe,"K","Κ"),k(L,X,Oe,"M","Μ"),k(L,X,Oe,"N","Ν"),k(L,X,Oe,"O","Ο"),k(L,X,Oe,"P","Ρ"),k(L,X,Oe,"T","Τ"),k(L,X,Oe,"X","Χ"),k(L,X,Oe,"¬","\\neg",!0),k(L,X,Oe,"¬","\\lnot"),k(L,X,Oe,"⊤","\\top"),k(L,X,Oe,"⊥","\\bot"),k(L,X,Oe,"∅","\\emptyset"),k(L,fe,Oe,"∅","\\varnothing"),k(L,X,Yt,"α","\\alpha",!0),k(L,X,Yt,"β","\\beta",!0),k(L,X,Yt,"γ","\\gamma",!0),k(L,X,Yt,"δ","\\delta",!0),k(L,X,Yt,"ϵ","\\epsilon",!0),k(L,X,Yt,"ζ","\\zeta",!0),k(L,X,Yt,"η","\\eta",!0),k(L,X,Yt,"θ","\\theta",!0),k(L,X,Yt,"ι","\\iota",!0),k(L,X,Yt,"κ","\\kappa",!0),k(L,X,Yt,"λ","\\lambda",!0),k(L,X,Yt,"μ","\\mu",!0),k(L,X,Yt,"ν","\\nu",!0),k(L,X,Yt,"ξ","\\xi",!0),k(L,X,Yt,"ο","\\omicron",!0),k(L,X,Yt,"π","\\pi",!0),k(L,X,Yt,"ρ","\\rho",!0),k(L,X,Yt,"σ","\\sigma",!0),k(L,X,Yt,"τ","\\tau",!0),k(L,X,Yt,"υ","\\upsilon",!0),k(L,X,Yt,"ϕ","\\phi",!0),k(L,X,Yt,"χ","\\chi",!0),k(L,X,Yt,"ψ","\\psi",!0),k(L,X,Yt,"ω","\\omega",!0),k(L,X,Yt,"ε","\\varepsilon",!0),k(L,X,Yt,"ϑ","\\vartheta",!0),k(L,X,Yt,"ϖ","\\varpi",!0),k(L,X,Yt,"ϱ","\\varrho",!0),k(L,X,Yt,"ς","\\varsigma",!0),k(L,X,Yt,"φ","\\varphi",!0),k(L,X,Ct,"∗","*",!0),k(L,X,Ct,"+","+"),k(L,X,Ct,"−","-",!0),k(L,X,Ct,"⋅","\\cdot",!0),k(L,X,Ct,"∘","\\circ",!0),k(L,X,Ct,"÷","\\div",!0),k(L,X,Ct,"±","\\pm",!0),k(L,X,Ct,"×","\\times",!0),k(L,X,Ct,"∩","\\cap",!0),k(L,X,Ct,"∪","\\cup",!0),k(L,X,Ct,"∖","\\setminus",!0),k(L,X,Ct,"∧","\\land"),k(L,X,Ct,"∨","\\lor"),k(L,X,Ct,"∧","\\wedge",!0),k(L,X,Ct,"∨","\\vee",!0),k(L,X,Oe,"√","\\surd"),k(L,X,Tl,"⟨","\\langle",!0),k(L,X,Tl,"∣","\\lvert"),k(L,X,Tl,"∥","\\lVert"),k(L,X,go,"?","?"),k(L,X,go,"!","!"),k(L,X,go,"⟩","\\rangle",!0),k(L,X,go,"∣","\\rvert"),k(L,X,go,"∥","\\rVert"),k(L,X,he,"=","="),k(L,X,he,":",":"),k(L,X,he,"≈","\\approx",!0),k(L,X,he,"≅","\\cong",!0),k(L,X,he,"≥","\\ge"),k(L,X,he,"≥","\\geq",!0),k(L,X,he,"←","\\gets"),k(L,X,he,">","\\gt",!0),k(L,X,he,"∈","\\in",!0),k(L,X,he,"","\\@not"),k(L,X,he,"⊂","\\subset",!0),k(L,X,he,"⊃","\\supset",!0),k(L,X,he,"⊆","\\subseteq",!0),k(L,X,he,"⊇","\\supseteq",!0),k(L,fe,he,"⊈","\\nsubseteq",!0),k(L,fe,he,"⊉","\\nsupseteq",!0),k(L,X,he,"⊨","\\models"),k(L,X,he,"←","\\leftarrow",!0),k(L,X,he,"≤","\\le"),k(L,X,he,"≤","\\leq",!0),k(L,X,he,"<","\\lt",!0),k(L,X,he,"→","\\rightarrow",!0),k(L,X,he,"→","\\to"),k(L,fe,he,"≱","\\ngeq",!0),k(L,fe,he,"≰","\\nleq",!0),k(L,X,ff," ","\\ "),k(L,X,ff," ","\\space"),k(L,X,ff," ","\\nobreakspace"),k(ot,X,ff," ","\\ "),k(ot,X,ff," "," "),k(ot,X,ff," ","\\space"),k(ot,X,ff," ","\\nobreakspace"),k(L,X,ff,null,"\\nobreak"),k(L,X,ff,null,"\\allowbreak"),k(L,X,Y3,",",","),k(L,X,Y3,";",";"),k(L,fe,Ct,"⊼","\\barwedge",!0),k(L,fe,Ct,"⊻","\\veebar",!0),k(L,X,Ct,"⊙","\\odot",!0),k(L,X,Ct,"⊕","\\oplus",!0),k(L,X,Ct,"⊗","\\otimes",!0),k(L,X,Oe,"∂","\\partial",!0),k(L,X,Ct,"⊘","\\oslash",!0),k(L,fe,Ct,"⊚","\\circledcirc",!0),k(L,fe,Ct,"⊡","\\boxdot",!0),k(L,X,Ct,"△","\\bigtriangleup"),k(L,X,Ct,"▽","\\bigtriangledown"),k(L,X,Ct,"†","\\dagger"),k(L,X,Ct,"⋄","\\diamond"),k(L,X,Ct,"⋆","\\star"),k(L,X,Ct,"◃","\\triangleleft"),k(L,X,Ct,"▹","\\triangleright"),k(L,X,Tl,"{","\\{"),k(ot,X,Oe,"{","\\{"),k(ot,X,Oe,"{","\\textbraceleft"),k(L,X,go,"}","\\}"),k(ot,X,Oe,"}","\\}"),k(ot,X,Oe,"}","\\textbraceright"),k(L,X,Tl,"{","\\lbrace"),k(L,X,go,"}","\\rbrace"),k(L,X,Tl,"[","\\lbrack",!0),k(ot,X,Oe,"[","\\lbrack",!0),k(L,X,go,"]","\\rbrack",!0),k(ot,X,Oe,"]","\\rbrack",!0),k(L,X,Tl,"(","\\lparen",!0),k(L,X,go,")","\\rparen",!0),k(ot,X,Oe,"<","\\textless",!0),k(ot,X,Oe,">","\\textgreater",!0),k(L,X,Tl,"⌊","\\lfloor",!0),k(L,X,go,"⌋","\\rfloor",!0),k(L,X,Tl,"⌈","\\lceil",!0),k(L,X,go,"⌉","\\rceil",!0),k(L,X,Oe,"\\","\\backslash"),k(L,X,Oe,"∣","|"),k(L,X,Oe,"∣","\\vert"),k(ot,X,Oe,"|","\\textbar",!0),k(L,X,Oe,"∥","\\|"),k(L,X,Oe,"∥","\\Vert"),k(ot,X,Oe,"∥","\\textbardbl"),k(ot,X,Oe,"~","\\textasciitilde"),k(ot,X,Oe,"\\","\\textbackslash"),k(ot,X,Oe,"^","\\textasciicircum"),k(L,X,he,"↑","\\uparrow",!0),k(L,X,he,"⇑","\\Uparrow",!0),k(L,X,he,"↓","\\downarrow",!0),k(L,X,he,"⇓","\\Downarrow",!0),k(L,X,he,"↕","\\updownarrow",!0),k(L,X,he,"⇕","\\Updownarrow",!0),k(L,X,Di,"∐","\\coprod"),k(L,X,Di,"⋁","\\bigvee"),k(L,X,Di,"⋀","\\bigwedge"),k(L,X,Di,"⨄","\\biguplus"),k(L,X,Di,"⋂","\\bigcap"),k(L,X,Di,"⋃","\\bigcup"),k(L,X,Di,"∫","\\int"),k(L,X,Di,"∫","\\intop"),k(L,X,Di,"∬","\\iint"),k(L,X,Di,"∭","\\iiint"),k(L,X,Di,"∏","\\prod"),k(L,X,Di,"∑","\\sum"),k(L,X,Di,"⨂","\\bigotimes"),k(L,X,Di,"⨁","\\bigoplus"),k(L,X,Di,"⨀","\\bigodot"),k(L,X,Di,"∮","\\oint"),k(L,X,Di,"∯","\\oiint"),k(L,X,Di,"∰","\\oiiint"),k(L,X,Di,"⨆","\\bigsqcup"),k(L,X,Di,"∫","\\smallint"),k(ot,X,zg,"…","\\textellipsis"),k(L,X,zg,"…","\\mathellipsis"),k(ot,X,zg,"…","\\ldots",!0),k(L,X,zg,"…","\\ldots",!0),k(L,X,zg,"⋯","\\@cdots",!0),k(L,X,zg,"⋱","\\ddots",!0),k(L,X,Oe,"⋮","\\varvdots"),k(ot,X,Oe,"⋮","\\varvdots"),k(L,X,Gr,"ˊ","\\acute"),k(L,X,Gr,"ˋ","\\grave"),k(L,X,Gr,"¨","\\ddot"),k(L,X,Gr,"~","\\tilde"),k(L,X,Gr,"ˉ","\\bar"),k(L,X,Gr,"˘","\\breve"),k(L,X,Gr,"ˇ","\\check"),k(L,X,Gr,"^","\\hat"),k(L,X,Gr,"⃗","\\vec"),k(L,X,Gr,"˙","\\dot"),k(L,X,Gr,"˚","\\mathring"),k(L,X,Yt,"","\\@imath"),k(L,X,Yt,"","\\@jmath"),k(L,X,Oe,"ı","ı"),k(L,X,Oe,"ȷ","ȷ"),k(ot,X,Oe,"ı","\\i",!0),k(ot,X,Oe,"ȷ","\\j",!0),k(ot,X,Oe,"ß","\\ss",!0),k(ot,X,Oe,"æ","\\ae",!0),k(ot,X,Oe,"œ","\\oe",!0),k(ot,X,Oe,"ø","\\o",!0),k(ot,X,Oe,"Æ","\\AE",!0),k(ot,X,Oe,"Œ","\\OE",!0),k(ot,X,Oe,"Ø","\\O",!0),k(ot,X,Gr,"ˊ","\\'"),k(ot,X,Gr,"ˋ","\\`"),k(ot,X,Gr,"ˆ","\\^"),k(ot,X,Gr,"˜","\\~"),k(ot,X,Gr,"ˉ","\\="),k(ot,X,Gr,"˘","\\u"),k(ot,X,Gr,"˙","\\."),k(ot,X,Gr,"¸","\\c"),k(ot,X,Gr,"˚","\\r"),k(ot,X,Gr,"ˇ","\\v"),k(ot,X,Gr,"¨",'\\"'),k(ot,X,Gr,"˝","\\H"),k(ot,X,Gr,"◯","\\textcircled");var jk={"--":!0,"---":!0,"``":!0,"''":!0};k(ot,X,Oe,"–","--",!0),k(ot,X,Oe,"–","\\textendash"),k(ot,X,Oe,"—","---",!0),k(ot,X,Oe,"—","\\textemdash"),k(ot,X,Oe,"‘","`",!0),k(ot,X,Oe,"‘","\\textquoteleft"),k(ot,X,Oe,"’","'",!0),k(ot,X,Oe,"’","\\textquoteright"),k(ot,X,Oe,"“","``",!0),k(ot,X,Oe,"“","\\textquotedblleft"),k(ot,X,Oe,"”","''",!0),k(ot,X,Oe,"”","\\textquotedblright"),k(L,X,Oe,"°","\\degree",!0),k(ot,X,Oe,"°","\\degree"),k(ot,X,Oe,"°","\\textdegree",!0),k(L,X,Oe,"£","\\pounds"),k(L,X,Oe,"£","\\mathsterling",!0),k(ot,X,Oe,"£","\\pounds"),k(ot,X,Oe,"£","\\textsterling",!0),k(L,fe,Oe,"✠","\\maltese"),k(ot,fe,Oe,"✠","\\maltese");for(var Hk='0123456789/@."',$T=0;$T<Hk.length;$T++){var qk=Hk.charAt($T);k(L,X,Oe,qk,qk)}for(var Fk='0123456789!@*()-=+";:?/.,',jT=0;jT<Fk.length;jT++){var Gk=Fk.charAt(jT);k(ot,X,Oe,Gk,Gk)}for(var X3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",HT=0;HT<X3.length;HT++){var W3=X3.charAt(HT);k(L,X,Yt,W3,W3),k(ot,X,Oe,W3,W3)}k(L,fe,Oe,"C","ℂ"),k(ot,fe,Oe,"C","ℂ"),k(L,fe,Oe,"H","ℍ"),k(ot,fe,Oe,"H","ℍ"),k(L,fe,Oe,"N","ℕ"),k(ot,fe,Oe,"N","ℕ"),k(L,fe,Oe,"P","ℙ"),k(ot,fe,Oe,"P","ℙ"),k(L,fe,Oe,"Q","ℚ"),k(ot,fe,Oe,"Q","ℚ"),k(L,fe,Oe,"R","ℝ"),k(ot,fe,Oe,"R","ℝ"),k(L,fe,Oe,"Z","ℤ"),k(ot,fe,Oe,"Z","ℤ"),k(L,X,Yt,"h","ℎ"),k(ot,X,Yt,"h","ℎ");for(var an="",yo=0;yo<X3.length;yo++){var hi=X3.charAt(yo);an=String.fromCharCode(55349,56320+yo),k(L,X,Yt,hi,an),k(ot,X,Oe,hi,an),an=String.fromCharCode(55349,56372+yo),k(L,X,Yt,hi,an),k(ot,X,Oe,hi,an),an=String.fromCharCode(55349,56424+yo),k(L,X,Yt,hi,an),k(ot,X,Oe,hi,an),an=String.fromCharCode(55349,56580+yo),k(L,X,Yt,hi,an),k(ot,X,Oe,hi,an),an=String.fromCharCode(55349,56684+yo),k(L,X,Yt,hi,an),k(ot,X,Oe,hi,an),an=String.fromCharCode(55349,56736+yo),k(L,X,Yt,hi,an),k(ot,X,Oe,hi,an),an=String.fromCharCode(55349,56788+yo),k(L,X,Yt,hi,an),k(ot,X,Oe,hi,an),an=String.fromCharCode(55349,56840+yo),k(L,X,Yt,hi,an),k(ot,X,Oe,hi,an),an=String.fromCharCode(55349,56944+yo),k(L,X,Yt,hi,an),k(ot,X,Oe,hi,an),yo<26&&(an=String.fromCharCode(55349,56632+yo),k(L,X,Yt,hi,an),k(ot,X,Oe,hi,an),an=String.fromCharCode(55349,56476+yo),k(L,X,Yt,hi,an),k(ot,X,Oe,hi,an))}an="𝕜",k(L,X,Yt,"k",an),k(ot,X,Oe,"k",an);for(var kh=0;kh<10;kh++){var jd=kh.toString();an=String.fromCharCode(55349,57294+kh),k(L,X,Yt,jd,an),k(ot,X,Oe,jd,an),an=String.fromCharCode(55349,57314+kh),k(L,X,Yt,jd,an),k(ot,X,Oe,jd,an),an=String.fromCharCode(55349,57324+kh),k(L,X,Yt,jd,an),k(ot,X,Oe,jd,an),an=String.fromCharCode(55349,57334+kh),k(L,X,Yt,jd,an),k(ot,X,Oe,jd,an)}for(var qT="ÐÞþ",FT=0;FT<qT.length;FT++){var Q3=qT.charAt(FT);k(L,X,Yt,Q3,Q3),k(ot,X,Oe,Q3,Q3)}var K3=[["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"]],Yk=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Gae=function(t,n){var i=t.charCodeAt(0),o=t.charCodeAt(1),s=(i-55296)*1024+(o-56320)+65536,f=n==="math"?0:1;if(119808<=s&&s<120484){var d=Math.floor((s-119808)/26);return[K3[d][2],K3[d][f]]}else if(120782<=s&&s<=120831){var h=Math.floor((s-120782)/10);return[Yk[h][2],Yk[h][f]]}else{if(s===120485||s===120486)return[K3[0][2],K3[0][f]];if(120486<s&&s<120782)return["",""];throw new ft("Unsupported character: "+t)}},Z3=function(t,n,i){return kr[i][t]&&kr[i][t].replace&&(t=kr[i][t].replace),{value:t,metrics:LT(t,n,i)}},hu=function(t,n,i,o,s){var f=Z3(t,n,i),d=f.metrics;t=f.value;var h;if(d){var y=d.italic;(i==="text"||o&&o.font==="mathit")&&(y=0),h=new rs(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 rs(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},Yae=function(t,n,i,o){return o===void 0&&(o=[]),i.font==="boldsymbol"&&Z3(t,"Main-Bold",n).metrics?hu(t,"Main-Bold",n,i,o.concat(["mathbf"])):t==="\\"||kr[n][t].font==="main"?hu(t,"Main-Regular",n,i,o):hu(t,"AMS-Regular",n,i,o.concat(["amsrm"]))},Xae=function(t,n,i,o,s){return s!=="textord"&&Z3(t,"Math-BoldItalic",n).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Wae=function(t,n,i){var o=t.mode,s=t.text,f=["mord"],d=o==="math"||o==="text"&&n.font,h=d?n.font:n.fontFamily,y="",b="";if(s.charCodeAt(0)===55349&&([y,b]=Gae(s,o)),y.length>0)return hu(s,y,o,n,f.concat(b));if(h){var x,T;if(h==="boldsymbol"){var w=Xae(s,o,n,f,i);x=w.fontName,T=[w.fontClass]}else d?(x=Qk[h].fontName,T=[h]):(x=J3(h,n.fontWeight,n.fontShape),T=[h,n.fontWeight,n.fontShape]);if(Z3(s,x,o).metrics)return hu(s,x,o,n,f.concat(T));if(jk.hasOwnProperty(s)&&x.slice(0,10)==="Typewriter"){for(var C=[],R=0;R<s.length;R++)C.push(hu(s[R],x,o,n,f.concat(T)));return Wk(C)}}if(i==="mathord")return hu(s,"Math-Italic",o,n,f.concat(["mathnormal"]));if(i==="textord"){var _=kr[o][s]&&kr[o][s].font;if(_==="ams"){var N=J3("amsrm",n.fontWeight,n.fontShape);return hu(s,N,o,n,f.concat("amsrm",n.fontWeight,n.fontShape))}else if(_==="main"||!_){var z=J3("textrm",n.fontWeight,n.fontShape);return hu(s,z,o,n,f.concat(n.fontWeight,n.fontShape))}else{var B=J3(_,n.fontWeight,n.fontShape);return hu(s,B,o,n,f.concat(B,n.fontWeight,n.fontShape))}}else throw new Error("unexpected type: "+i+" in makeOrd")},Qae=(e,t)=>{if(Pd(e.classes)!==Pd(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var i in e.style)if(e.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;for(var o in t.style)if(t.style.hasOwnProperty(o)&&e.style[o]!==t.style[o])return!1;return!0},Kae=e=>{for(var t=0;t<e.length-1;t++){var n=e[t],i=e[t+1];n instanceof rs&&i instanceof rs&&Qae(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},GT=function(t){for(var n=0,i=0,o=0,s=0;s<t.children.length;s++){var f=t.children[s];f.height>n&&(n=f.height),f.depth>i&&(i=f.depth),f.maxFontSize>o&&(o=f.maxFontSize)}t.height=n,t.depth=i,t.maxFontSize=o},qo=function(t,n,i,o){var s=new kb(t,n,i,o);return GT(s),s},Xk=(e,t,n,i)=>new kb(e,t,n,i),Zae=function(t,n,i){var o=qo([t],[],n);return o.height=Math.max(i||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),o.style.borderBottomWidth=yt(o.height),o.maxFontSize=1,o},Jae=function(t,n,i,o){var s=new UT(t,n,i,o);return GT(s),s},Wk=function(t){var n=new Db(t);return GT(n),n},eoe=function(t,n){return t instanceof Db?qo([],[t],n):t},toe=function(t){if(t.positionType==="individualShift"){for(var n=t.children,i=[n[0]],o=-n[0].shift-n[0].elem.depth,s=o,f=1;f<n.length;f++){var d=-n[f].shift-s-n[f].elem.depth,h=d-(n[f-1].elem.height+n[f-1].elem.depth);s=s+d,i.push({type:"kern",size:h}),i.push(n[f])}return{children:i,depth:o}}var y;if(t.positionType==="top"){for(var b=t.positionData,x=0;x<t.children.length;x++){var T=t.children[x];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}},noe=function(t,n){for(var{children:i,depth:o}=toe(t),s=0,f=0;f<i.length;f++){var d=i[f];if(d.type==="elem"){var h=d.elem;s=Math.max(s,h.maxFontSize,h.height)}}s+=2;var y=qo(["pstrut"],[]);y.style.height=yt(s);for(var b=[],x=o,T=o,w=o,C=0;C<i.length;C++){var R=i[C];if(R.type==="kern")w+=R.size;else{var _=R.elem,N=R.wrapperClasses||[],z=R.wrapperStyle||{},B=qo(N,[y,_],void 0,z);B.style.top=yt(-s-w-_.depth),R.marginLeft&&(B.style.marginLeft=R.marginLeft),R.marginRight&&(B.style.marginRight=R.marginRight),b.push(B),w+=_.height+_.depth}x=Math.min(x,w),T=Math.max(T,w)}var V=qo(["vlist"],b);V.style.height=yt(T);var I;if(x<0){var P=qo([],[]),Y=qo(["vlist"],[P]);Y.style.height=yt(-x);var se=qo(["vlist-s"],[new rs("​")]);I=[qo(["vlist-r"],[V,se]),qo(["vlist-r"],[Y])]}else I=[qo(["vlist-r"],[V])];var ue=qo(["vlist-t"],I);return I.length===2&&ue.classes.push("vlist-t2"),ue.height=T,ue.depth=-x,ue},roe=(e,t)=>{var n=qo(["mspace"],[],t),i=ai(e,t);return n.style.marginRight=yt(i),n},J3=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},Qk={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"}},Kk={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},ioe=function(t,n){var[i,o,s]=Kk[t],f=new $d(i),d=new cf([f],{width:yt(o),height:yt(s),style:"width:"+yt(o),viewBox:"0 0 "+1e3*o+" "+1e3*s,preserveAspectRatio:"xMinYMin"}),h=Xk(["overlay"],[d],n);return h.height=s,h.style.height=yt(s),h.style.width=yt(o),h},Le={fontMap:Qk,makeSymbol:hu,mathsym:Yae,makeSpan:qo,makeSvgSpan:Xk,makeLineSpan:Zae,makeAnchor:Jae,makeFragment:Wk,wrapFragment:eoe,makeVList:noe,makeOrd:Wae,makeGlue:roe,staticSvg:ioe,svgData:Kk,tryCombineChars:Kae},oi={number:3,unit:"mu"},Nh={number:4,unit:"mu"},df={number:5,unit:"mu"},aoe={mord:{mop:oi,mbin:Nh,mrel:df,minner:oi},mop:{mord:oi,mop:oi,mrel:df,minner:oi},mbin:{mord:Nh,mop:Nh,mopen:Nh,minner:Nh},mrel:{mord:df,mop:df,mopen:df,minner:df},mopen:{},mclose:{mop:oi,mbin:Nh,mrel:df,minner:oi},mpunct:{mord:oi,mop:oi,mrel:df,mopen:oi,mclose:oi,mpunct:oi,minner:oi},minner:{mord:oi,mop:oi,mbin:Nh,mrel:df,mopen:oi,mpunct:oi,minner:oi}},ooe={mord:{mop:oi},mop:{mord:oi,mop:oi},mbin:{},mrel:{},mopen:{},mclose:{mop:oi},mpunct:{},minner:{mop:oi}},Zk={},e6={},t6={};function Tt(e){for(var{type:t,names:n,props:i,handler:o,htmlBuilder:s,mathmlBuilder:f}=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)Zk[n[h]]=d;t&&(s&&(e6[t]=s),f&&(t6[t]=f))}function zh(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 n6=function(t){return t.type==="ordgroup"&&t.body.length===1?t.body[0]:t},xi=function(t){return t.type==="ordgroup"?t.body:[t]},hf=Le.makeSpan,loe=["leftmost","mbin","mopen","mrel","mop","mpunct"],soe=["rightmost","mrel","mclose","mpunct"],uoe={display:Gt.DISPLAY,text:Gt.TEXT,script:Gt.SCRIPT,scriptscript:Gt.SCRIPTSCRIPT},coe={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},ji=function(t,n,i,o){o===void 0&&(o=[null,null]);for(var s=[],f=0;f<t.length;f++){var d=Xn(t[f],n);if(d instanceof Db){var h=d.children;s.push(...h)}else s.push(d)}if(Le.tryCombineChars(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(uoe[b.style]))}var x=hf([o[0]||"leftmost"],[],n),T=hf([o[1]||"rightmost"],[],n),w=i==="root";return Jk(s,(C,R)=>{var _=R.classes[0],N=C.classes[0];_==="mbin"&&soe.includes(N)?R.classes[0]="mord":N==="mbin"&&loe.includes(_)&&(C.classes[0]="mord")},{node:x},T,w),Jk(s,(C,R)=>{var _=YT(R),N=YT(C),z=_&&N?C.hasClass("mtight")?ooe[_][N]:aoe[_][N]:null;if(z)return Le.makeGlue(z,y)},{node:x},T,w),s},Jk=function e(t,n,i,o,s){o&&t.push(o);for(var f=0;f<t.length;f++){var d=t[f],h=eN(d);if(h){e(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),f++))}y?i.node=d:s&&d.hasClass("newline")&&(i.node=hf(["leftmost"])),i.insertAfter=(x=>T=>{t.splice(x+1,0,T),f++})(f)}o&&t.pop()},eN=function(t){return t instanceof Db||t instanceof UT||t instanceof kb&&t.hasClass("enclosing")?t:null},foe=function e(t,n){var i=eN(t);if(i){var o=i.children;if(o.length){if(n==="right")return e(o[o.length-1],"right");if(n==="left")return e(o[0],"left")}}return t},YT=function(t,n){return t?(n&&(t=foe(t,n)),coe[t.classes[0]]||null):null},Nb=function(t,n){var i=["nulldelimiter"].concat(t.baseSizingClasses());return hf(n.concat(i))},Xn=function(t,n,i){if(!t)return hf();if(e6[t.type]){var o=e6[t.type](t,n);if(i&&n.size!==i.size){o=hf(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 r6(e,t){var n=hf(["base"],e,t),i=hf(["strut"]);return i.style.height=yt(n.height+n.depth),n.depth&&(i.style.verticalAlign=yt(-n.depth)),n.children.unshift(i),n}function XT(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var i=ji(e,t,"root"),o;i.length===2&&i[1].hasClass("tag")&&(o=i.pop());for(var s=[],f=[],d=0;d<i.length;d++)if(f.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++,f.push(i[d]),i[d].hasClass("nobreak")&&(h=!0);h||(s.push(r6(f,t)),f=[])}else i[d].hasClass("newline")&&(f.pop(),f.length>0&&(s.push(r6(f,t)),f=[]),s.push(i[d]));f.length>0&&s.push(r6(f,t));var y;n?(y=r6(ji(n,t,!0)),y.classes=["tag"],s.push(y)):o&&s.push(o);var b=hf(["katex-html"],s);if(b.setAttribute("aria-hidden","true"),y){var x=y.children[0];x.style.height=yt(b.height+b.depth),b.depth&&(x.style.verticalAlign=yt(-b.depth))}return b}function tN(e){return new Db(e)}class Al{constructor(t,n,i){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,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=Pd(this.classes));for(var i=0;i<this.children.length;i++)if(this.children[i]instanceof cc&&this.children[i+1]instanceof cc){for(var o=this.children[i].toText()+this.children[++i].toText();this.children[i+1]instanceof cc;)o+=this.children[++i].toText();t.appendChild(new cc(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+=Zn.escape(this.attributes[n]),t+='"');this.classes.length>0&&(t+=' class ="'+Zn.escape(Pd(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 cc{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Zn.escape(this.toText())}toText(){return this.text}}class doe{constructor(t){this.width=void 0,this.character=void 0,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",yt(this.width)),t}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+yt(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var ct={MathNode:Al,TextNode:cc,SpaceNode:doe,newDocumentFragment:tN},is=function(t,n,i){return kr[n][t]&&kr[n][t].replace&&t.charCodeAt(0)!==55349&&!(jk.hasOwnProperty(t)&&i&&(i.fontFamily&&i.fontFamily.slice(4,6)==="tt"||i.font&&i.font.slice(4,6)==="tt"))&&(t=kr[n][t].replace),new ct.TextNode(t)},WT=function(t){return t.length===1?t[0]:new ct.MathNode("mrow",t)},QT=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(["\\imath","\\jmath"].includes(s))return null;kr[o][s]&&kr[o][s].replace&&(s=kr[o][s].replace);var f=Le.fontMap[i].fontName;return LT(s,f,o)?Le.fontMap[i].variant:null};function KT(e){if(!e)return!1;if(e.type==="mi"&&e.children.length===1){var t=e.children[0];return t instanceof cc&&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 cc&&n.text===","}else return!1}var Fo=function(t,n,i){if(t.length===1){var o=Or(t[0],n);return i&&o instanceof Al&&o.type==="mo"&&(o.setAttribute("lspace","0em"),o.setAttribute("rspace","0em")),[o]}for(var s=[],f,d=0;d<t.length;d++){var h=Or(t[d],n);if(h instanceof Al&&f instanceof Al){if(h.type==="mtext"&&f.type==="mtext"&&h.getAttribute("mathvariant")===f.getAttribute("mathvariant")){f.children.push(...h.children);continue}else if(h.type==="mn"&&f.type==="mn"){f.children.push(...h.children);continue}else if(KT(h)&&f.type==="mn"){f.children.push(...h.children);continue}else if(h.type==="mn"&&KT(f))h.children=[...f.children,...h.children],s.pop();else if((h.type==="msup"||h.type==="msub")&&h.children.length>=1&&(f.type==="mn"||KT(f))){var y=h.children[0];y instanceof Al&&y.type==="mn"&&(y.children=[...f.children,...y.children],s.pop())}else if(f.type==="mi"&&f.children.length===1){var b=f.children[0];if(b instanceof cc&&b.text==="̸"&&(h.type==="mo"||h.type==="mi"||h.type==="mn")){var x=h.children[0];x instanceof cc&&x.text.length>0&&(x.text=x.text.slice(0,1)+"̸"+x.text.slice(1),s.pop())}}}s.push(h),f=h}return s},Hd=function(t,n,i){return WT(Fo(t,n,i))},Or=function(t,n){if(!t)return new ct.MathNode("mrow");if(t6[t.type]){var i=t6[t.type](t,n);return i}else throw new ft("Got group of unknown type: '"+t.type+"'")};function nN(e,t,n,i,o){var s=Fo(e,n),f;s.length===1&&s[0]instanceof Al&&["mrow","mtable"].includes(s[0].type)?f=s[0]:f=new ct.MathNode("mrow",s);var d=new ct.MathNode("annotation",[new ct.TextNode(t)]);d.setAttribute("encoding","application/x-tex");var h=new ct.MathNode("semantics",[f,d]),y=new ct.MathNode("math",[h]);y.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),i&&y.setAttribute("display","block");var b=o?"katex":"katex-mathml";return Le.makeSpan([b],[y])}var rN=function(t){return new uf({style:t.displayMode?Gt.DISPLAY:Gt.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},iN=function(t,n){if(n.displayMode){var i=["katex-display"];n.leqno&&i.push("leqno"),n.fleqn&&i.push("fleqn"),t=Le.makeSpan(i,[t])}return t},hoe=function(t,n,i){var o=rN(i),s;if(i.output==="mathml")return nN(t,n,o,i.displayMode,!0);if(i.output==="html"){var f=XT(t,o);s=Le.makeSpan(["katex"],[f])}else{var d=nN(t,n,o,i.displayMode,!1),h=XT(t,o);s=Le.makeSpan(["katex"],[d,h])}return iN(s,i)},poe=function(t,n,i){var o=rN(i),s=XT(t,o),f=Le.makeSpan(["katex"],[s]);return iN(f,i)},moe={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":"="},goe=function(t){var n=new ct.MathNode("mo",[new ct.TextNode(moe[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},yoe={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]},voe=function(t){return t.type==="ordgroup"?t.body.length:1},boe=function(t,n){function i(){var d=4e5,h=t.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(h)){var y=t,b=voe(y.base),x,T,w;if(b>5)h==="widehat"||h==="widecheck"?(x=420,d=2364,w=.42,T=h+"4"):(x=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],x=[0,239,300,360,420][C],w=[0,.24,.3,.3,.36,.42][C],T=h+C):(d=[0,600,1033,2339,2340][C],x=[0,260,286,306,312][C],w=[0,.26,.286,.3,.306,.34][C],T="tilde"+C)}var R=new $d(T),_=new cf([R],{width:"100%",height:yt(w),viewBox:"0 0 "+d+" "+x,preserveAspectRatio:"none"});return{span:Le.makeSvgSpan([],[_],n),minWidth:0,height:w}}else{var N=[],z=yoe[h],[B,V,I]=z,P=I/1e3,Y=B.length,se,ue;if(Y===1){var re=z[3];se=["hide-tail"],ue=[re]}else if(Y===2)se=["halfarrow-left","halfarrow-right"],ue=["xMinYMin","xMaxYMin"];else if(Y===3)se=["brace-left","brace-center","brace-right"],ue=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
                    `+Y+" children.");for(var le=0;le<Y;le++){var $=new $d(B[le]),oe=new cf([$],{width:"400em",height:yt(P),viewBox:"0 0 "+d+" "+I,preserveAspectRatio:ue[le]+" slice"}),W=Le.makeSvgSpan([se[le]],[oe],n);if(Y===1)return{span:W,minWidth:V,height:P};W.style.height=yt(P),N.push(W)}return{span:Le.makeSpan(["stretchy"],N,n),minWidth:V,height:P}}}var{span:o,minWidth:s,height:f}=i();return o.height=f,o.style.height=yt(f),s>0&&(o.style.minWidth=yt(s)),o},Soe=function(t,n,i,o,s){var f,d=t.height+t.depth+i+o;if(/fbox|color|angl/.test(n)){if(f=Le.makeSpan(["stretchy",n],[],s),n==="fbox"){var h=s.color&&s.getColor();h&&(f.style.borderColor=h)}}else{var y=[];/^[bx]cancel$/.test(n)&&y.push(new PT({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&y.push(new PT({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var b=new cf(y,{width:"100%",height:yt(d)});f=Le.makeSvgSpan([],[b],s)}return f.height=d,f.style.height=yt(d),f},pf={encloseSpan:Soe,mathMLnode:goe,svgSpan:boe};function wn(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 ZT(e){var t=i6(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 i6(e){return e&&(e.type==="atom"||Fae.hasOwnProperty(e.type))?e:null}var JT=(e,t)=>{var n,i,o;e&&e.type==="supsub"?(i=wn(e.base,"accent"),n=i.base,e.base=n,o=Hae(Xn(e,t)),e.base=i):(i=wn(e,"accent"),n=i.base);var s=Xn(n,t.havingCrampedStyle()),f=i.isShifty&&Zn.isCharacterBox(n),d=0;if(f){var h=Zn.getBaseElem(n),y=Xn(h,t.havingCrampedStyle());d=$k(y).skew}var b=i.label==="\\c",x=b?s.height+s.depth:Math.min(s.height,t.fontMetrics().xHeight),T;if(i.isStretchy)T=pf.svgSpan(i,t),T=Le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"elem",elem:T,wrapperClasses:["svg-align"],wrapperStyle:d>0?{width:"calc(100% - "+yt(2*d)+")",marginLeft:yt(2*d)}:void 0}]},t);else{var w,C;i.label==="\\vec"?(w=Le.staticSvg("vec",t),C=Le.svgData.vec[1]):(w=Le.makeOrd({mode:i.mode,text:i.label},t,"textord"),w=$k(w),w.italic=0,C=w.width,b&&(x+=w.depth)),T=Le.makeSpan(["accent-body"],[w]);var R=i.label==="\\textcircled";R&&(T.classes.push("accent-full"),x=s.height);var _=d;R||(_-=C/2),T.style.left=yt(_),i.label==="\\textcircled"&&(T.style.top=".2em"),T=Le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:-x},{type:"elem",elem:T}]},t)}var N=Le.makeSpan(["mord","accent"],[T],t);return o?(o.children[0]=N,o.height=Math.max(N.height,o.height),o.classes[0]="mord",o):N},aN=(e,t)=>{var n=e.isStretchy?pf.mathMLnode(e.label):new ct.MathNode("mo",[is(e.label,e.mode)]),i=new ct.MathNode("mover",[Or(e.base,t),n]);return i.setAttribute("accent","true"),i},xoe=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=n6(t[0]),i=!xoe.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:JT,mathmlBuilder:aN}),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:JT,mathmlBuilder:aN}),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=Xn(e.base,t),i=pf.svgSpan(e,t),o=e.label==="\\utilde"?.12:0,s=Le.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:n}]},t);return Le.makeSpan(["mord","accentunder"],[s],t)},mathmlBuilder:(e,t)=>{var n=pf.mathMLnode(e.label),i=new ct.MathNode("munder",[Or(e.base,t),n]);return i.setAttribute("accentunder","true"),i}});var a6=e=>{var t=new ct.MathNode("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=Le.wrapFragment(Xn(e.body,i,t),t),s=e.label.slice(0,2)==="\\x"?"x":"cd";o.classes.push(s+"-arrow-pad");var f;e.below&&(i=t.havingStyle(n.sub()),f=Le.wrapFragment(Xn(e.below,i,t),t),f.classes.push(s+"-arrow-pad"));var d=pf.svgSpan(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(f){var x=-t.fontMetrics().axisHeight+f.height+.5*d.height+.111;b=Le.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:y},{type:"elem",elem:d,shift:h},{type:"elem",elem:f,shift:x}]},t)}else b=Le.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:y},{type:"elem",elem:d,shift:h}]},t);return b.children[0].children[0].children[1].classes.push("svg-align"),Le.makeSpan(["mrel","x-arrow"],[b],t)},mathmlBuilder(e,t){var n=pf.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var i;if(e.body){var o=a6(Or(e.body,t));if(e.below){var s=a6(Or(e.below,t));i=new ct.MathNode("munderover",[n,s,o])}else i=new ct.MathNode("mover",[n,o])}else if(e.below){var f=a6(Or(e.below,t));i=new ct.MathNode("munder",[n,f])}else i=a6(),i=new ct.MathNode("mover",[n,i]);return i}});var Eoe=Le.makeSpan;function oN(e,t){var n=ji(e.body,t,!0);return Eoe([e.mclass],n,t)}function lN(e,t){var n,i=Fo(e.body,t);return e.mclass==="minner"?n=new ct.MathNode("mpadded",i):e.mclass==="mord"?e.isCharacterBox?(n=i[0],n.type="mi"):n=new ct.MathNode("mi",i):(e.isCharacterBox?(n=i[0],n.type="mo"):n=new ct.MathNode("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:xi(o),isCharacterBox:Zn.isCharacterBox(o)}},htmlBuilder:oN,mathmlBuilder:lN});var o6=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:o6(t[0]),body:xi(t[1]),isCharacterBox:Zn.isCharacterBox(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],f;i!=="\\stackrel"?f=o6(o):f="mrel";var d={type:"op",mode:o.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:i!=="\\stackrel",body:xi(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:f,body:[h],isCharacterBox:Zn.isCharacterBox(h)}},htmlBuilder:oN,mathmlBuilder:lN}),Tt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:o6(t[0]),body:xi(t[0])}},htmlBuilder(e,t){var n=ji(e.body,t,!0),i=Le.makeSpan([e.mclass],n,t);return i.style.textShadow="0.02em 0.01em 0.04px",i},mathmlBuilder(e,t){var n=Fo(e.body,t),i=new ct.MathNode("mstyle",n);return i.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),i}});var woe={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},sN=()=>({type:"styling",body:[],mode:"math",style:"display"}),uN=e=>e.type==="textord"&&e.text==="@",Toe=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Aoe(e,t,n){var i=woe[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"},f=n.callFunction("\\Big",[s],[]),d=n.callFunction("\\\\cdright",[t[1]],[]),h={type:"ordgroup",mode:"math",body:[o,f,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 Coe(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 f=t[s],d=sN(),h=0;h<f.length;h++)if(!uN(f[h]))d.body.push(f[h]);else{i.push(d),h+=1;var y=ZT(f[h]).text,b=new Array(2);if(b[0]={type:"ordgroup",mode:"math",body:[]},b[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(y)>-1))if("<>AV".indexOf(y)>-1)for(var x=0;x<2;x++){for(var T=!0,w=h+1;w<f.length;w++){if(Toe(f[w],y)){T=!1,h=w;break}if(uN(f[w]))throw new ft("Missing a "+y+" character to complete a CD arrow.",f[w]);b[x].body.push(f[w])}if(T)throw new ft("Missing a "+y+" character to complete a CD arrow.",f[h])}else throw new ft('Expected one of "<>AV=|." after @',f[h]);var C=Aoe(y,b,e),R={type:"styling",body:[C],mode:"math",style:"display"};i.push(R),d=sN()}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=Le.wrapFragment(Xn(e.label,n,t),t);return i.classes.push("cd-label-"+e.side),i.style.bottom=yt(.8-i.depth),i.height=0,i.depth=0,i},mathmlBuilder(e,t){var n=new ct.MathNode("mrow",[Or(e.label,t)]);return n=new ct.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new ct.MathNode("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=Le.wrapFragment(Xn(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new ct.MathNode("mrow",[Or(e.fragment,t)])}}),Tt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,i=wn(t[0],"ordgroup"),o=i.body,s="",f=0;f<o.length;f++){var d=wn(o[f],"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 cN=(e,t)=>{var n=ji(e.body,t.withColor(e.color),!1);return Le.makeFragment(n)},fN=(e,t)=>{var n=Fo(e.body,t.withColor(e.color)),i=new ct.MathNode("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=wn(t[0],"color-token").color,o=t[1];return{type:"color",mode:n.mode,color:i,body:xi(o)}},htmlBuilder:cN,mathmlBuilder:fN}),Tt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:i}=e,o=wn(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:cN,mathmlBuilder:fN}),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&&wn(o,"size").value}},htmlBuilder(e,t){var n=Le.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=yt(ai(e.size,t)))),n},mathmlBuilder(e,t){var n=new ct.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",yt(ai(e.size,t)))),n}});var e8={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},dN=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new ft("Expected a control sequence",e);return t},Ooe=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},hN=(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(e8[i.text])return(n==="\\global"||n==="\\\\globallong")&&(i.text=e8[i.text]),wn(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,f,d=[[]];t.gullet.future().text!=="{";)if(i=t.gullet.popToken(),i.text==="#"){if(t.gullet.future().text==="{"){f=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 f&&h.unshift(f),(n==="\\edef"||n==="\\xdef")&&(h=t.gullet.expandTokens(h),h.reverse()),t.gullet.macros.set(o,{tokens:h,numArgs:s,delimiters:d},n===e8[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=dN(t.gullet.popToken());t.gullet.consumeSpaces();var o=Ooe(t);return hN(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=dN(t.gullet.popToken()),o=t.gullet.popToken(),s=t.gullet.popToken();return hN(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=kr.math[t]&&kr.math[t].replace,s=LT(o||t,n,i);if(!s)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return s},t8=function(t,n,i,o){var s=i.havingBaseStyle(n),f=Le.makeSpan(o.concat(s.sizingClasses(i)),[t],i),d=s.sizeMultiplier/i.sizeMultiplier;return f.height*=d,f.depth*=d,f.maxFontSize=s.sizeMultiplier,f},pN=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=yt(s),t.height-=s,t.depth+=s},Moe=function(t,n,i,o,s,f){var d=Le.makeSymbol(t,"Main-Regular",s,o),h=t8(d,n,o,f);return i&&pN(h,o,n),h},Roe=function(t,n,i,o){return Le.makeSymbol(t,"Size"+n+"-Regular",i,o)},mN=function(t,n,i,o,s,f){var d=Roe(t,n,s,o),h=t8(Le.makeSpan(["delimsizing","size"+n],[d],o),Gt.TEXT,o,f);return i&&pN(h,o,Gt.TEXT),h},n8=function(t,n,i){var o;n==="Size1-Regular"?o="delim-size1":o="delim-size4";var s=Le.makeSpan(["delimsizinginner",o],[Le.makeSpan([],[Le.makeSymbol(t,n,i)])]);return{type:"elem",elem:s}},r8=function(t,n,i){var o=uc["Size4-Regular"][t.charCodeAt(0)]?uc["Size4-Regular"][t.charCodeAt(0)][4]:uc["Size1-Regular"][t.charCodeAt(0)][4],s=new $d("inner",zae(t,Math.round(1e3*n))),f=new cf([s],{width:yt(o),height:yt(n),style:"width:"+yt(o),viewBox:"0 0 "+1e3*o+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),d=Le.makeSvgSpan([],[f],i);return d.height=n,d.style.height=yt(n),d.style.width=yt(o),{type:"elem",elem:d}},i8=.008,l6={type:"kern",size:-1*i8},_oe=["|","\\lvert","\\rvert","\\vert"],Doe=["\\|","\\lVert","\\rVert","\\Vert"],gN=function(t,n,i,o,s,f){var d,h,y,b,x="",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"):_oe.includes(t)?(y="∣",x="vert",T=333):Doe.includes(t)?(y="∥",x="doublevert",T=556):t==="["||t==="\\lbrack"?(d="⎡",y="⎢",b="⎣",w="Size4-Regular",x="lbrack",T=667):t==="]"||t==="\\rbrack"?(d="⎤",y="⎥",b="⎦",w="Size4-Regular",x="rbrack",T=667):t==="\\lfloor"||t==="⌊"?(y=d="⎢",b="⎣",w="Size4-Regular",x="lfloor",T=667):t==="\\lceil"||t==="⌈"?(d="⎡",y=b="⎢",w="Size4-Regular",x="lceil",T=667):t==="\\rfloor"||t==="⌋"?(y=d="⎥",b="⎦",w="Size4-Regular",x="rfloor",T=667):t==="\\rceil"||t==="⌉"?(d="⎤",y=b="⎥",w="Size4-Regular",x="rceil",T=667):t==="("||t==="\\lparen"?(d="⎛",y="⎜",b="⎝",w="Size4-Regular",x="lparen",T=875):t===")"||t==="\\rparen"?(d="⎞",y="⎟",b="⎠",w="Size4-Regular",x="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),R=C.height+C.depth,_=zb(y,w,s),N=_.height+_.depth,z=zb(b,w,s),B=z.height+z.depth,V=0,I=1;if(h!==null){var P=zb(h,w,s);V=P.height+P.depth,I=2}var Y=R+B+V,se=Math.max(0,Math.ceil((n-Y)/(I*N))),ue=Y+se*I*N,re=o.fontMetrics().axisHeight;i&&(re*=o.sizeMultiplier);var le=ue/2-re,$=[];if(x.length>0){var oe=ue-R-B,W=Math.round(ue*1e3),ie=Iae(x,Math.round(oe*1e3)),K=new $d(x,ie),ae=(T/1e3).toFixed(3)+"em",pe=(W/1e3).toFixed(3)+"em",Te=new cf([K],{width:ae,height:pe,viewBox:"0 0 "+T+" "+W}),ee=Le.makeSvgSpan([],[Te],o);ee.height=W/1e3,ee.style.width=ae,ee.style.height=pe,$.push({type:"elem",elem:ee})}else{if($.push(n8(b,w,s)),$.push(l6),h===null){var q=ue-R-B+2*i8;$.push(r8(y,q,o))}else{var J=(ue-R-B-V)/2+2*i8;$.push(r8(y,J,o)),$.push(l6),$.push(n8(h,w,s)),$.push(l6),$.push(r8(y,J,o))}$.push(l6),$.push(n8(d,w,s))}var F=o.havingBaseStyle(Gt.TEXT),Re=Le.makeVList({positionType:"bottom",positionData:le,children:$},F);return t8(Le.makeSpan(["delimsizing","mult"],[Re],F),Gt.TEXT,o,f)},a8=80,o8=.08,l8=function(t,n,i,o,s){var f=Nae(t,o,i),d=new $d(t,f),h=new cf([d],{width:"400em",height:yt(n),viewBox:"0 0 400000 "+i,preserveAspectRatio:"xMinYMin slice"});return Le.makeSvgSpan(["hide-tail"],[h],s)},koe=function(t,n){var i=n.havingBaseSizing(),o=SN("\\surd",t*i.sizeMultiplier,bN,i),s=i.sizeMultiplier,f=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),d,h=0,y=0,b=0,x;return o.type==="small"?(b=1e3+1e3*f+a8,t<1?s=1:t<1.4&&(s=.7),h=(1+f+o8)/s,y=(1+f)/s,d=l8("sqrtMain",h,b,f,n),d.style.minWidth="0.853em",x=.833/s):o.type==="large"?(b=(1e3+a8)*Ib[o.size],y=(Ib[o.size]+f)/s,h=(Ib[o.size]+f+o8)/s,d=l8("sqrtSize"+o.size,h,b,f,n),d.style.minWidth="1.02em",x=1/s):(h=t+f+o8,y=t+f,b=Math.floor(1e3*t+f)+a8,d=l8("sqrtTall",h,b,f,n),d.style.minWidth="0.742em",x=1.056),d.height=y,d.style.height=yt(h),{span:d,advanceWidth:x,ruleWidth:(n.fontMetrics().sqrtRuleThickness+f)*s}},yN=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],Noe=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],vN=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Ib=[0,1.2,1.8,2.4,3],zoe=function(t,n,i,o,s){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),yN.includes(t)||vN.includes(t))return mN(t,n,!1,i,o,s);if(Noe.includes(t))return gN(t,Ib[n],!1,i,o,s);throw new ft("Illegal delimiter: '"+t+"'")},Ioe=[{type:"small",style:Gt.SCRIPTSCRIPT},{type:"small",style:Gt.SCRIPT},{type:"small",style:Gt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Loe=[{type:"small",style:Gt.SCRIPTSCRIPT},{type:"small",style:Gt.SCRIPT},{type:"small",style:Gt.TEXT},{type:"stack"}],bN=[{type:"small",style:Gt.SCRIPTSCRIPT},{type:"small",style:Gt.SCRIPT},{type:"small",style:Gt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Boe=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";throw new Error("Add support for delim type '"+t.type+"' here.")},SN=function(t,n,i,o){for(var s=Math.min(2,3-o.style.size),f=s;f<i.length&&i[f].type!=="stack";f++){var d=zb(t,Boe(i[f]),"math"),h=d.height+d.depth;if(i[f].type==="small"){var y=o.havingBaseStyle(i[f].style);h*=y.sizeMultiplier}if(h>n)return i[f]}return i[i.length-1]},xN=function(t,n,i,o,s,f){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var d;vN.includes(t)?d=Ioe:yN.includes(t)?d=bN:d=Loe;var h=SN(t,n,d,o);return h.type==="small"?Moe(t,h.style,i,o,s,f):h.type==="large"?mN(t,h.size,i,o,s,f):gN(t,n,i,o,s,f)},Voe=function(t,n,i,o,s,f){var d=o.fontMetrics().axisHeight*o.sizeMultiplier,h=901,y=5/o.fontMetrics().ptPerEm,b=Math.max(n-d,i+d),x=Math.max(b/500*h,2*b-y);return xN(t,x,!0,o,s,f)},mf={sqrtImage:koe,sizedDelim:zoe,sizeToMaxHeight:Ib,customSizedDelim:xN,leftRightDelim:Voe},EN={"\\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}},Uoe=["(","\\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 s6(e,t){var n=i6(e);if(n&&Uoe.includes(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=s6(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:EN[e.funcName].size,mclass:EN[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?Le.makeSpan([e.mclass]):mf.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(is(e.delim,e.mode));var n=new ct.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var i=yt(mf.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",i),n.setAttribute("maxsize",i),n}});function wN(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:s6(t[0],e).text,color:n}}}),Tt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=s6(t[0],e),i=e.parser;++i.leftrightDepth;var o=i.parseExpression(!1);--i.leftrightDepth,i.expect("\\right",!1);var s=wn(i.parseFunction(),"leftright-right");return{type:"leftright",mode:i.mode,body:o,left:n.text,right:s.delim,rightColor:s.color}},htmlBuilder:(e,t)=>{wN(e);for(var n=ji(e.body,t,!0,["mopen","mclose"]),i=0,o=0,s=!1,f=0;f<n.length;f++)n[f].isMiddle?s=!0:(i=Math.max(n[f].height,i),o=Math.max(n[f].depth,o));i*=t.sizeMultiplier,o*=t.sizeMultiplier;var d;if(e.left==="."?d=Nb(t,["mopen"]):d=mf.leftRightDelim(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]=mf.leftRightDelim(b.delim,i,o,b.options,e.mode,[]))}var x;if(e.right===".")x=Nb(t,["mclose"]);else{var T=e.rightColor?t.withColor(e.rightColor):t;x=mf.leftRightDelim(e.right,i,o,T,e.mode,["mclose"])}return n.push(x),Le.makeSpan(["minner"],n,t)},mathmlBuilder:(e,t)=>{wN(e);var n=Fo(e.body,t);if(e.left!=="."){var i=new ct.MathNode("mo",[is(e.left,e.mode)]);i.setAttribute("fence","true"),n.unshift(i)}if(e.right!=="."){var o=new ct.MathNode("mo",[is(e.right,e.mode)]);o.setAttribute("fence","true"),e.rightColor&&o.setAttribute("mathcolor",e.rightColor),n.push(o)}return WT(n)}}),Tt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=s6(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=Nb(t,[]);else{n=mf.sizedDelim(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==="|"?is("|","text"):is(e.delim,e.mode),i=new ct.MathNode("mo",[n]);return i.setAttribute("fence","true"),i.setAttribute("lspace","0.05em"),i.setAttribute("rspace","0.05em"),i}});var s8=(e,t)=>{var n=Le.wrapFragment(Xn(e.body,t),t),i=e.label.slice(1),o=t.sizeMultiplier,s,f=0,d=Zn.isCharacterBox(e.body);if(i==="sout")s=Le.makeSpan(["stretchy","sout"]),s.height=t.fontMetrics().defaultRuleThickness/o,f=-.5*t.fontMetrics().xHeight;else if(i==="phase"){var h=ai({number:.6,unit:"pt"},t),y=ai({number:.35,unit:"ex"},t),b=t.havingBaseSizing();o=o/b.sizeMultiplier;var x=n.height+n.depth+h+y;n.style.paddingLeft=yt(x/2+h);var T=Math.floor(1e3*x*o),w=Dae(T),C=new cf([new $d("phase",w)],{width:"400em",height:yt(T/1e3),viewBox:"0 0 400000 "+T,preserveAspectRatio:"xMinYMin slice"});s=Le.makeSvgSpan(["hide-tail"],[C],t),s.style.height=yt(x),f=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 R=0,_=0,N=0;/box/.test(i)?(N=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),R=t.fontMetrics().fboxsep+(i==="colorbox"?0:N),_=R):i==="angl"?(N=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),R=4*N,_=Math.max(0,.25-n.depth)):(R=d?.2:0,_=R),s=pf.encloseSpan(n,i,R,_,t),/fbox|boxed|fcolorbox/.test(i)?(s.style.borderStyle="solid",s.style.borderWidth=yt(N)):i==="angl"&&N!==.049&&(s.style.borderTopWidth=yt(N),s.style.borderRightWidth=yt(N)),f=n.depth+_,e.backgroundColor&&(s.style.backgroundColor=e.backgroundColor,e.borderColor&&(s.style.borderColor=e.borderColor))}var z;if(e.backgroundColor)z=Le.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:f},{type:"elem",elem:n,shift:0}]},t);else{var B=/cancel|phase/.test(i)?["svg-align"]:[];z=Le.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:s,shift:f,wrapperClasses:B}]},t)}return/cancel/.test(i)&&(z.height=n.height,z.depth=n.depth),/cancel/.test(i)&&!d?Le.makeSpan(["mord","cancel-lap"],[z],t):Le.makeSpan(["mord"],[z],t)},u8=(e,t)=>{var n=0,i=new ct.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Or(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=wn(t[0],"color-token").color,f=t[1];return{type:"enclose",mode:i.mode,label:o,backgroundColor:s,body:f}},htmlBuilder:s8,mathmlBuilder:u8}),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=wn(t[0],"color-token").color,f=wn(t[1],"color-token").color,d=t[2];return{type:"enclose",mode:i.mode,label:o,backgroundColor:f,borderColor:s,body:d}},htmlBuilder:s8,mathmlBuilder:u8}),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:s8,mathmlBuilder:u8}),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 TN={};function fc(e){for(var{type:t,names:n,props:i,handler:o,htmlBuilder:s,mathmlBuilder:f}=e,d={type:t,numArgs:i.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:o},h=0;h<n.length;++h)TN[n[h]]=d;s&&(e6[t]=s),f&&(t6[t]=f)}var AN={};function ne(e,t){AN[e]=t}function CN(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 u6=e=>{var t=e.parser.settings;if(!t.displayMode)throw new ft("{"+e.envName+"} can be used only in display mode.")};function c8(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function qd(e,t,n){var{hskipBeforeAndAfter:i,addJot:o,cols:s,arraystretch:f,colSeparationType:d,autoTag:h,singleRow:y,emptySingleRow:b,maxNumCols:x,leqno:T}=t;if(e.gullet.beginGroup(),y||e.gullet.macros.set("\\cr","\\\\\\relax"),!f){var w=e.gullet.expandMacroAsText("\\arraystretch");if(w==null)f=1;else if(f=parseFloat(w),!f||f<0)throw new ft("Invalid \\arraystretch: "+w)}e.gullet.beginGroup();var C=[],R=[C],_=[],N=[],z=h!=null?[]:void 0;function B(){h&&e.gullet.macros.set("\\@eqnsw","1",!0)}function V(){z&&(e.gullet.macros.get("\\df@tag")?(z.push(e.subparse([new wl("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):z.push(!!h&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(B(),N.push(CN(e));;){var I=e.parseExpression(!1,y?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),I={type:"ordgroup",mode:e.mode,body:I},n&&(I={type:"styling",mode:e.mode,style:n,body:[I]}),C.push(I);var P=e.fetch().text;if(P==="&"){if(x&&C.length===x){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(P==="\\end"){V(),C.length===1&&I.type==="styling"&&I.body[0].body.length===0&&(R.length>1||!b)&&R.pop(),N.length<R.length+1&&N.push([]);break}else if(P==="\\\\"){e.consume();var Y=void 0;e.gullet.future().text!==" "&&(Y=e.parseSizeGroup(!0)),_.push(Y?Y.value:null),V(),N.push(CN(e)),C=[],R.push(C),B()}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:f,body:R,cols:s,rowGaps:_,hskipBeforeAndAfter:i,hLinesBeforeRow:N,colSeparationType:d,tags:z,leqno:T}}function f8(e){return e.slice(0,1)==="d"?"display":"text"}var dc=function(t,n){var i,o,s=t.body.length,f=t.hLinesBeforeRow,d=0,h=new Array(s),y=[],b=Math.max(n.fontMetrics().arrayRuleWidth,n.minRuleThickness),x=1/n.fontMetrics().ptPerEm,T=5*x;if(t.colSeparationType&&t.colSeparationType==="small"){var w=n.havingStyle(Gt.SCRIPT).sizeMultiplier;T=.2778*(w/n.sizeMultiplier)}var C=t.colSeparationType==="CD"?ai({number:3,unit:"ex"},n):12*x,R=3*x,_=t.arraystretch*C,N=.7*_,z=.3*_,B=0;function V(Lt){for(var un=0;un<Lt.length;++un)un>0&&(B+=.25),y.push({pos:B,isDashed:Lt[un]})}for(V(f[0]),i=0;i<t.body.length;++i){var I=t.body[i],P=N,Y=z;d<I.length&&(d=I.length);var se=new Array(I.length);for(o=0;o<I.length;++o){var ue=Xn(I[o],n);Y<ue.depth&&(Y=ue.depth),P<ue.height&&(P=ue.height),se[o]=ue}var re=t.rowGaps[i],le=0;re&&(le=ai(re,n),le>0&&(le+=z,Y<le&&(Y=le),le=0)),t.addJot&&(Y+=R),se.height=P,se.depth=Y,B+=P,se.pos=B,B+=Y+le,h[i]=se,V(f[i+1])}var $=B/2+n.fontMetrics().axisHeight,oe=t.cols||[],W=[],ie,K,ae=[];if(t.tags&&t.tags.some(Lt=>Lt))for(i=0;i<s;++i){var pe=h[i],Te=pe.pos-$,ee=t.tags[i],q=void 0;ee===!0?q=Le.makeSpan(["eqn-num"],[],n):ee===!1?q=Le.makeSpan([],[],n):q=Le.makeSpan([],ji(ee,n,!0),n),q.depth=pe.depth,q.height=pe.height,ae.push({type:"elem",elem:q,shift:Te})}for(o=0,K=0;o<d||K<oe.length;++o,++K){for(var J=oe[K]||{},F=!0;J.type==="separator";){if(F||(ie=Le.makeSpan(["arraycolsep"],[]),ie.style.width=yt(n.fontMetrics().doubleRuleSep),W.push(ie)),J.separator==="|"||J.separator===":"){var Re=J.separator==="|"?"solid":"dashed",be=Le.makeSpan(["vertical-separator"],[],n);be.style.height=yt(B),be.style.borderRightWidth=yt(b),be.style.borderRightStyle=Re,be.style.margin="0 "+yt(-b/2);var De=B-$;De&&(be.style.verticalAlign=yt(-De)),W.push(be)}else throw new ft("Invalid separator type: "+J.separator);K++,J=oe[K]||{},F=!1}if(!(o>=d)){var Pe=void 0;(o>0||t.hskipBeforeAndAfter)&&(Pe=Zn.deflt(J.pregap,T),Pe!==0&&(ie=Le.makeSpan(["arraycolsep"],[]),ie.style.width=yt(Pe),W.push(ie)));var Fe=[];for(i=0;i<s;++i){var Ze=h[i],Qe=Ze[o];if(Qe){var tt=Ze.pos-$;Qe.depth=Ze.depth,Qe.height=Ze.height,Fe.push({type:"elem",elem:Qe,shift:tt})}}Fe=Le.makeVList({positionType:"individualShift",children:Fe},n),Fe=Le.makeSpan(["col-align-"+(J.align||"c")],[Fe]),W.push(Fe),(o<d-1||t.hskipBeforeAndAfter)&&(Pe=Zn.deflt(J.postgap,T),Pe!==0&&(ie=Le.makeSpan(["arraycolsep"],[]),ie.style.width=yt(Pe),W.push(ie)))}}if(h=Le.makeSpan(["mtable"],W),y.length>0){for(var $e=Le.makeLineSpan("hline",n,b),_e=Le.makeLineSpan("hdashline",n,b),ut=[{type:"elem",elem:h,shift:0}];y.length>0;){var Ot=y.pop(),Qt=Ot.pos-$;Ot.isDashed?ut.push({type:"elem",elem:_e,shift:Qt}):ut.push({type:"elem",elem:$e,shift:Qt})}h=Le.makeVList({positionType:"individualShift",children:ut},n)}if(ae.length===0)return Le.makeSpan(["mord"],[h],n);var vt=Le.makeVList({positionType:"individualShift",children:ae},n);return vt=Le.makeSpan(["tag"],[vt],n),Le.makeFragment([h,vt])},Poe={c:"center ",l:"left ",r:"right "},hc=function(t,n){for(var i=[],o=new ct.MathNode("mtd",[],["mtr-glue"]),s=new ct.MathNode("mtd",[],["mml-eqn-num"]),f=0;f<t.body.length;f++){for(var d=t.body[f],h=[],y=0;y<d.length;y++)h.push(new ct.MathNode("mtd",[Or(d[y],n)]));t.tags&&t.tags[f]&&(h.unshift(o),h.push(o),t.leqno?h.unshift(s):h.push(s)),i.push(new ct.MathNode("mtr",h))}var b=new ct.MathNode("mtable",i),x=t.arraystretch===.5?.1:.16+t.arraystretch-1+(t.addJot?.09:0);b.setAttribute("rowspacing",yt(x));var T="",w="";if(t.cols&&t.cols.length>0){var C=t.cols,R="",_=!1,N=0,z=C.length;C[0].type==="separator"&&(T+="top ",N=1),C[C.length-1].type==="separator"&&(T+="bottom ",z-=1);for(var B=N;B<z;B++)C[B].type==="align"?(w+=Poe[C[B].align],_&&(R+="none "),_=!0):C[B].type==="separator"&&_&&(R+=C[B].separator==="|"?"solid ":"dashed ",_=!1);b.setAttribute("columnalign",w.trim()),/[sd]/.test(R)&&b.setAttribute("columnlines",R.trim())}if(t.colSeparationType==="align"){for(var V=t.cols||[],I="",P=1;P<V.length;P++)I+=P%2?"0em ":"1em ";b.setAttribute("columnspacing",I.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 Y="",se=t.hLinesBeforeRow;T+=se[0].length>0?"left ":"",T+=se[se.length-1].length>0?"right ":"";for(var ue=1;ue<se.length-1;ue++)Y+=se[ue].length===0?"none ":se[ue][0]?"dashed ":"solid ";return/[sd]/.test(Y)&&b.setAttribute("rowlines",Y.trim()),T!==""&&(b=new ct.MathNode("menclose",[b]),b.setAttribute("notation",T.trim())),t.arraystretch&&t.arraystretch<1&&(b=new ct.MathNode("mstyle",[b]),b.setAttribute("scriptlevel","1")),b},ON=function(t,n){t.envName.indexOf("ed")===-1&&u6(t);var i=[],o=t.envName.indexOf("at")>-1?"alignat":"align",s=t.envName==="split",f=qd(t.parser,{cols:i,addJot:!0,autoTag:s?void 0:c8(t.envName),emptySingleRow:!0,colSeparationType:o,maxNumCols:s?2:void 0,leqno:t.parser.settings.leqno},"display"),d,h=0,y={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var b="",x=0;x<n[0].body.length;x++){var T=wn(n[0].body[x],"textord");b+=T.text}d=Number(b),h=d*2}var w=!h;f.body.forEach(function(N){for(var z=1;z<N.length;z+=2){var B=wn(N[z],"styling"),V=wn(B.body[0],"ordgroup");V.body.unshift(y)}if(w)h<N.length&&(h=N.length);else{var I=N.length/2;if(d<I)throw new ft("Too many math in a row: "+("expected "+d+", but got "+I),N[0])}});for(var C=0;C<h;++C){var R="r",_=0;C%2===1?R="l":C>0&&w&&(_=1),i[C]={type:"align",align:R,pregap:_,postgap:0}}return f.colSeparationType=w?"align":"alignat",f};fc({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=i6(t[0]),i=n?[t[0]]:wn(t[0],"ordgroup").body,o=i.map(function(f){var d=ZT(f),h=d.text;if("lcr".indexOf(h)!==-1)return{type:"align",align:h};if(h==="|")return{type:"separator",separator:"|"};if(h===":")return{type:"separator",separator:":"};throw new ft("Unknown column alignment: "+h,f)}),s={cols:o,hskipBeforeAndAfter:!0,maxNumCols:o.length};return qd(e.parser,s,f8(e.envName))},htmlBuilder:dc,mathmlBuilder:hc}),fc({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".indexOf(n)===-1)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=qd(e.parser,i,f8(e.envName)),f=Math.max(0,...s.body.map(d=>d.length));return s.cols=new Array(f).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[s],left:t[0],right:t[1],rightColor:void 0}:s},htmlBuilder:dc,mathmlBuilder:hc}),fc({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=qd(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:dc,mathmlBuilder:hc}),fc({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=i6(t[0]),i=n?[t[0]]:wn(t[0],"ordgroup").body,o=i.map(function(f){var d=ZT(f),h=d.text;if("lc".indexOf(h)!==-1)return{type:"align",align:h};throw new ft("Unknown column alignment: "+h,f)});if(o.length>1)throw new ft("{subarray} can contain only one column");var s={cols:o,hskipBeforeAndAfter:!1,arraystretch:.5};if(s=qd(e.parser,s,"script"),s.body.length>0&&s.body[0].length>1)throw new ft("{subarray} can contain only one column");return s},htmlBuilder:dc,mathmlBuilder:hc}),fc({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=qd(e.parser,t,f8(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:dc,mathmlBuilder:hc}),fc({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:ON,htmlBuilder:dc,mathmlBuilder:hc}),fc({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&u6(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:c8(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return qd(e.parser,t,"display")},htmlBuilder:dc,mathmlBuilder:hc}),fc({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:ON,htmlBuilder:dc,mathmlBuilder:hc}),fc({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){u6(e);var t={autoTag:c8(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return qd(e.parser,t,"display")},htmlBuilder:dc,mathmlBuilder:hc}),fc({type:"array",names:["CD"],props:{numArgs:0},handler(e){return u6(e),Coe(e.parser)},htmlBuilder:dc,mathmlBuilder:hc}),ne("\\nonumber","\\gdef\\@eqnsw{0}"),ne("\\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 MN=TN;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="",f=0;f<o.body.length;++f)s+=wn(o.body[f],"textord").text;if(i==="\\begin"){if(!MN.hasOwnProperty(s))throw new ft("No such environment: "+s,o);var d=MN[s],{args:h,optArgs:y}=n.parseArguments("\\begin{"+s+"}",d),b={mode:n.mode,envName:s,parser:n},x=d.handler(b,h,y);n.expect("\\end",!1);var T=n.nextToken,w=wn(n.parseFunction(),"environment");if(w.name!==s)throw new ft("Mismatch: \\begin{"+s+"} matched by \\end{"+w.name+"}",T);return x}return{type:"environment",mode:n.mode,name:s,nameGroup:o}}});var RN=(e,t)=>{var n=e.font,i=t.withFont(n);return Xn(e.body,i)},_N=(e,t)=>{var n=e.font,i=t.withFont(n);return Or(e.body,i)},DN={"\\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=n6(t[0]),s=i;return s in DN&&(s=DN[s]),{type:"font",mode:n.mode,font:s.slice(1),body:o}},htmlBuilder:RN,mathmlBuilder:_N}),Tt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,i=t[0],o=Zn.isCharacterBox(i);return{type:"mclass",mode:n.mode,mclass:o6(i),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:i}],isCharacterBox:o}}}),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,f=n.parseExpression(!0,o),d="math"+i.slice(1);return{type:"font",mode:s,font:d,body:{type:"ordgroup",mode:n.mode,body:f}}},htmlBuilder:RN,mathmlBuilder:_N});var kN=(e,t)=>{var n=t;return e==="display"?n=n.id>=Gt.SCRIPT.id?n.text():Gt.DISPLAY:e==="text"&&n.size===Gt.DISPLAY.size?n=Gt.TEXT:e==="script"?n=Gt.SCRIPT:e==="scriptscript"&&(n=Gt.SCRIPTSCRIPT),n},d8=(e,t)=>{var n=kN(e.size,t.style),i=n.fracNum(),o=n.fracDen(),s;s=t.havingStyle(i);var f=Xn(e.numer,s,t);if(e.continued){var d=8.5/t.fontMetrics().ptPerEm,h=3.5/t.fontMetrics().ptPerEm;f.height=f.height<d?d:f.height,f.depth=f.depth<h?h:f.depth}s=t.havingStyle(o);var y=Xn(e.denom,s,t),b,x,T;e.hasBarLine?(e.barSize?(x=ai(e.barSize,t),b=Le.makeLineSpan("frac-line",t,x)):b=Le.makeLineSpan("frac-line",t),x=b.height,T=b.height):(b=null,x=0,T=t.fontMetrics().defaultRuleThickness);var w,C,R;n.size===Gt.DISPLAY.size||e.size==="display"?(w=t.fontMetrics().num1,x>0?C=3*T:C=7*T,R=t.fontMetrics().denom1):(x>0?(w=t.fontMetrics().num2,C=T):(w=t.fontMetrics().num3,C=3*T),R=t.fontMetrics().denom2);var _;if(b){var z=t.fontMetrics().axisHeight;w-f.depth-(z+.5*x)<C&&(w+=C-(w-f.depth-(z+.5*x))),z-.5*x-(y.height-R)<C&&(R+=C-(z-.5*x-(y.height-R)));var B=-(z-.5*x);_=Le.makeVList({positionType:"individualShift",children:[{type:"elem",elem:y,shift:R},{type:"elem",elem:b,shift:B},{type:"elem",elem:f,shift:-w}]},t)}else{var N=w-f.depth-(y.height-R);N<C&&(w+=.5*(C-N),R+=.5*(C-N)),_=Le.makeVList({positionType:"individualShift",children:[{type:"elem",elem:y,shift:R},{type:"elem",elem:f,shift:-w}]},t)}s=t.havingStyle(n),_.height*=s.sizeMultiplier/t.sizeMultiplier,_.depth*=s.sizeMultiplier/t.sizeMultiplier;var V;n.size===Gt.DISPLAY.size?V=t.fontMetrics().delim1:n.size===Gt.SCRIPTSCRIPT.size?V=t.havingStyle(Gt.SCRIPT).fontMetrics().delim2:V=t.fontMetrics().delim2;var I,P;return e.leftDelim==null?I=Nb(t,["mopen"]):I=mf.customSizedDelim(e.leftDelim,V,!0,t.havingStyle(n),e.mode,["mopen"]),e.continued?P=Le.makeSpan([]):e.rightDelim==null?P=Nb(t,["mclose"]):P=mf.customSizedDelim(e.rightDelim,V,!0,t.havingStyle(n),e.mode,["mclose"]),Le.makeSpan(["mord"].concat(s.sizingClasses(t)),[I,Le.makeSpan(["mfrac"],[_]),P],t)},h8=(e,t)=>{var n=new ct.MathNode("mfrac",[Or(e.numer,t),Or(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var i=ai(e.barSize,t);n.setAttribute("linethickness",yt(i))}var o=kN(e.size,t.style);if(o.size!==t.style.size){n=new ct.MathNode("mstyle",[n]);var s=o.size===Gt.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",s),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var f=[];if(e.leftDelim!=null){var d=new ct.MathNode("mo",[new ct.TextNode(e.leftDelim.replace("\\",""))]);d.setAttribute("fence","true"),f.push(d)}if(f.push(n),e.rightDelim!=null){var h=new ct.MathNode("mo",[new ct.TextNode(e.rightDelim.replace("\\",""))]);h.setAttribute("fence","true"),f.push(h)}return WT(f)}return n};Tt({type:"genfrac",names:["\\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],f,d=null,h=null,y="auto";switch(i){case"\\dfrac":case"\\frac":case"\\tfrac":f=!0;break;case"\\\\atopfrac":f=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":f=!1,d="(",h=")";break;case"\\\\bracefrac":f=!1,d="\\{",h="\\}";break;case"\\\\brackfrac":f=!1,d="[",h="]";break;default:throw new Error("Unrecognized genfrac command")}switch(i){case"\\dfrac":case"\\dbinom":y="display";break;case"\\tfrac":case"\\tbinom":y="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:o,denom:s,hasBarLine:f,leftDelim:d,rightDelim:h,size:y,barSize:null}},htmlBuilder:d8,mathmlBuilder:h8}),Tt({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:i}=e,o=t[0],s=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:o,denom:s,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),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 NN=["display","text","script","scriptscript"],zN=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=n6(t[0]),f=s.type==="atom"&&s.family==="open"?zN(s.text):null,d=n6(t[1]),h=d.type==="atom"&&d.family==="close"?zN(d.text):null,y=wn(t[2],"size"),b,x=null;y.isBlank?b=!0:(x=y.value,b=x.number>0);var T="auto",w=t[3];if(w.type==="ordgroup"){if(w.body.length>0){var C=wn(w.body[0],"textord");T=NN[Number(C.text)]}}else w=wn(w,"textord"),T=NN[Number(w.text)];return{type:"genfrac",mode:n.mode,numer:i,denom:o,continued:!1,hasBarLine:b,barSize:x,leftDelim:f,rightDelim:h,size:T}},htmlBuilder:d8,mathmlBuilder:h8}),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:wn(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=gae(wn(t[1],"infix").size),f=t[2],d=s.number>0;return{type:"genfrac",mode:n.mode,numer:o,denom:f,continued:!1,hasBarLine:d,barSize:s,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:d8,mathmlBuilder:h8});var IN=(e,t)=>{var n=t.style,i,o;e.type==="supsub"?(i=e.sup?Xn(e.sup,t.havingStyle(n.sup()),t):Xn(e.sub,t.havingStyle(n.sub()),t),o=wn(e.base,"horizBrace")):o=wn(e,"horizBrace");var s=Xn(o.base,t.havingBaseStyle(Gt.DISPLAY)),f=pf.svgSpan(o,t),d;if(o.isOver?(d=Le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:f}]},t),d.children[0].children[0].children[1].classes.push("svg-align")):(d=Le.makeVList({positionType:"bottom",positionData:s.depth+.1+f.height,children:[{type:"elem",elem:f},{type:"kern",size:.1},{type:"elem",elem:s}]},t),d.children[0].children[0].children[0].classes.push("svg-align")),i){var h=Le.makeSpan(["mord",o.isOver?"mover":"munder"],[d],t);o.isOver?d=Le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:h},{type:"kern",size:.2},{type:"elem",elem:i}]},t):d=Le.makeVList({positionType:"bottom",positionData:h.depth+.2+i.height+i.depth,children:[{type:"elem",elem:i},{type:"kern",size:.2},{type:"elem",elem:h}]},t)}return Le.makeSpan(["mord",o.isOver?"mover":"munder"],[d],t)},$oe=(e,t)=>{var n=pf.mathMLnode(e.label);return new ct.MathNode(e.isOver?"mover":"munder",[Or(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:IN,mathmlBuilder:$oe}),Tt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[1],o=wn(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:n.mode,href:o,body:xi(i)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=ji(e.body,t,!1);return Le.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=Hd(e.body,t);return n instanceof Al||(n=new Al("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=wn(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 f=i[s];f==="~"&&(f="\\textasciitilde"),o.push({type:"textord",mode:"text",text:f})}var d={type:"text",mode:n.mode,font:"\\texttt",body:o};return{type:"href",mode:n.mode,href:i,body:xi(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:xi(t[0])}},htmlBuilder(e,t){var n=ji(e.body,t,!1);return Le.makeFragment(n)},mathmlBuilder(e,t){return new ct.MathNode("mrow",Fo(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=wn(t[0],"raw").string,f=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 x=y[b],T=x.indexOf("=");if(T<0)throw new ft("\\htmlData key/value '"+x+"' missing equals sign");var w=x.slice(0,T),C=x.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:xi(f)}:n.formatUnsupportedCmd(i)},htmlBuilder:(e,t)=>{var n=ji(e.body,t,!1),i=["enclosing"];e.attributes.class&&i.push(...e.attributes.class.trim().split(/\s+/));var o=Le.makeSpan(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)=>Hd(e.body,t)}),Tt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:xi(t[0]),mathml:xi(t[1])}},htmlBuilder:(e,t)=>{var n=ji(e.html,t,!1);return Le.makeFragment(n)},mathmlBuilder:(e,t)=>Hd(e.mathml,t)});var p8=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(!Bk(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"},f={number:0,unit:"em"},d="";if(n[0])for(var h=wn(n[0],"raw").string,y=h.split(","),b=0;b<y.length;b++){var x=y[b].split("=");if(x.length===2){var T=x[1].trim();switch(x[0].trim()){case"alt":d=T;break;case"width":o=p8(T);break;case"height":s=p8(T);break;case"totalheight":f=p8(T);break;default:throw new ft("Invalid key: '"+x[0]+"' in \\includegraphics.")}}}var w=wn(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:f,src:w}:i.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=ai(e.height,t),i=0;e.totalheight.number>0&&(i=ai(e.totalheight,t)-n);var o=0;e.width.number>0&&(o=ai(e.width,t));var s={height:yt(n+i)};o>0&&(s.width=yt(o)),i>0&&(s.verticalAlign=yt(-i));var f=new $ae(e.src,e.alt,s);return f.height=n,f.depth=i,f},mathmlBuilder:(e,t)=>{var n=new ct.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var i=ai(e.height,t),o=0;if(e.totalheight.number>0&&(o=ai(e.totalheight,t)-i,n.setAttribute("valign",yt(-o))),n.setAttribute("height",yt(i+o)),e.width.number>0){var s=ai(e.width,t);n.setAttribute("width",yt(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=wn(t[0],"size");if(n.settings.strict){var s=i[1]==="m",f=o.value.unit==="mu";s?(f||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")):f&&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 Le.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=ai(e.dimension,t);return new ct.SpaceNode(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=Le.makeSpan([],[Xn(e.body,t)]),n=Le.makeSpan(["inner"],[n],t)):n=Le.makeSpan(["inner"],[Xn(e.body,t)]);var i=Le.makeSpan(["fix"],[]),o=Le.makeSpan([e.alignment],[n,i],t),s=Le.makeSpan(["strut"]);return s.style.height=yt(o.height+o.depth),o.depth&&(s.style.verticalAlign=yt(-o.depth)),o.children.unshift(s),o=Le.makeSpan(["thinbox"],[o],t),Le.makeSpan(["mord","vbox"],[o],t)},mathmlBuilder:(e,t)=>{var n=new ct.MathNode("mpadded",[Or(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==="\\("?"\\)":"$",f=i.parseExpression(!1,s);return i.expect(s),i.switchMode(o),{type:"styling",mode:i.mode,style:"text",body:f}}}),Tt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new ft("Mismatched "+e.funcName)}});var LN=(e,t)=>{switch(t.style.size){case Gt.DISPLAY.size:return e.display;case Gt.TEXT.size:return e.text;case Gt.SCRIPT.size:return e.script;case Gt.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:xi(t[0]),text:xi(t[1]),script:xi(t[2]),scriptscript:xi(t[3])}},htmlBuilder:(e,t)=>{var n=LN(e,t),i=ji(n,t,!1);return Le.makeFragment(i)},mathmlBuilder:(e,t)=>{var n=LN(e,t);return Hd(n,t)}});var BN=(e,t,n,i,o,s,f)=>{e=Le.makeSpan([],[e]);var d=n&&Zn.isCharacterBox(n),h,y;if(t){var b=Xn(t,i.havingStyle(o.sup()),i);y={elem:b,kern:Math.max(i.fontMetrics().bigOpSpacing1,i.fontMetrics().bigOpSpacing3-b.depth)}}if(n){var x=Xn(n,i.havingStyle(o.sub()),i);h={elem:x,kern:Math.max(i.fontMetrics().bigOpSpacing2,i.fontMetrics().bigOpSpacing4-x.height)}}var T;if(y&&h){var w=i.fontMetrics().bigOpSpacing5+h.elem.height+h.elem.depth+h.kern+e.depth+f;T=Le.makeVList({positionType:"bottom",positionData:w,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:yt(-s)},{type:"kern",size:h.kern},{type:"elem",elem:e},{type:"kern",size:y.kern},{type:"elem",elem:y.elem,marginLeft:yt(s)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]},i)}else if(h){var C=e.height-f;T=Le.makeVList({positionType:"top",positionData:C,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:h.elem,marginLeft:yt(-s)},{type:"kern",size:h.kern},{type:"elem",elem:e}]},i)}else if(y){var R=e.depth+f;T=Le.makeVList({positionType:"bottom",positionData:R,children:[{type:"elem",elem:e},{type:"kern",size:y.kern},{type:"elem",elem:y.elem,marginLeft:yt(s)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]},i)}else return e;var _=[T];if(h&&s!==0&&!d){var N=Le.makeSpan(["mspace"],[],i);N.style.marginRight=yt(s),_.unshift(N)}return Le.makeSpan(["mop","op-limits"],_,i)},VN=["\\smallint"],Ig=(e,t)=>{var n,i,o=!1,s;e.type==="supsub"?(n=e.sup,i=e.sub,s=wn(e.base,"op"),o=!0):s=wn(e,"op");var f=t.style,d=!1;f.size===Gt.DISPLAY.size&&s.symbol&&!VN.includes(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=Le.makeSymbol(s.name,y,"math",t,["mop","op-symbol",d?"large-op":"small-op"]),b.length>0){var x=h.italic,T=Le.staticSvg(b+"Size"+(d?"2":"1"),t);h=Le.makeVList({positionType:"individualShift",children:[{type:"elem",elem:h,shift:0},{type:"elem",elem:T,shift:d?.08:0}]},t),s.name="\\"+b,h.classes.unshift("mop"),h.italic=x}}else if(s.body){var w=ji(s.body,t,!0);w.length===1&&w[0]instanceof rs?(h=w[0],h.classes[0]="mop"):h=Le.makeSpan(["mop"],w,t)}else{for(var C=[],R=1;R<s.name.length;R++)C.push(Le.mathsym(s.name[R],s.mode,t));h=Le.makeSpan(["mop"],C,t)}var _=0,N=0;return(h instanceof rs||s.name==="\\oiint"||s.name==="\\oiiint")&&!s.suppressBaseShift&&(_=(h.height-h.depth)/2-t.fontMetrics().axisHeight,N=h.italic),o?BN(h,n,i,t,f,N,_):(_&&(h.style.position="relative",h.style.top=yt(_)),h)},Lb=(e,t)=>{var n;if(e.symbol)n=new Al("mo",[is(e.name,e.mode)]),VN.includes(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new Al("mo",Fo(e.body,t));else{n=new Al("mi",[new cc(e.name.slice(1))]);var i=new Al("mo",[is("⁡","text")]);e.parentIsSupSub?n=new Al("mrow",[n,i]):n=tN([n,i])}return n},joe={"∏":"\\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=joe[o]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:o}},htmlBuilder:Ig,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:xi(i)}},htmlBuilder:Ig,mathmlBuilder:Lb});var Hoe={"∫":"\\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:Ig,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:Ig,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=Hoe[i]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:Ig,mathmlBuilder:Lb});var UN=(e,t)=>{var n,i,o=!1,s;e.type==="supsub"?(n=e.sup,i=e.sub,s=wn(e.base,"operatorname"),o=!0):s=wn(e,"operatorname");var f;if(s.body.length>0){for(var d=s.body.map(x=>{var T=x.text;return typeof T=="string"?{type:"textord",mode:x.mode,text:T}:x}),h=ji(d,t.withFont("mathrm"),!0),y=0;y<h.length;y++){var b=h[y];b instanceof rs&&(b.text=b.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}f=Le.makeSpan(["mop"],h,t)}else f=Le.makeSpan(["mop"],[],t);return o?BN(f,n,i,t,t.style,0,0):f},qoe=(e,t)=>{for(var n=Fo(e.body,t.withFont("mathrm")),i=!0,o=0;o<n.length;o++){var s=n[o];if(!(s instanceof ct.SpaceNode))if(s instanceof ct.MathNode)switch(s.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var f=s.children[0];s.children.length===1&&f instanceof ct.TextNode?f.text=f.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 ct.TextNode(d)]}var h=new ct.MathNode("mi",n);h.setAttribute("mathvariant","normal");var y=new ct.MathNode("mo",[is("⁡","text")]);return e.parentIsSupSub?new ct.MathNode("mrow",[h,y]):ct.newDocumentFragment([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:xi(o),alwaysHandleSupSub:i==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:UN,mathmlBuilder:qoe}),ne("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),zh({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Le.makeFragment(ji(e.body,t,!1)):Le.makeSpan(["mord"],ji(e.body,t,!0),t)},mathmlBuilder(e,t){return Hd(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=Xn(e.body,t.havingCrampedStyle()),i=Le.makeLineSpan("overline-line",t),o=t.fontMetrics().defaultRuleThickness,s=Le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*o},{type:"elem",elem:i},{type:"kern",size:o}]},t);return Le.makeSpan(["mord","overline"],[s],t)},mathmlBuilder(e,t){var n=new ct.MathNode("mo",[new ct.TextNode("‾")]);n.setAttribute("stretchy","true");var i=new ct.MathNode("mover",[Or(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:xi(i)}},htmlBuilder:(e,t)=>{var n=ji(e.body,t.withPhantom(),!1);return Le.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=Fo(e.body,t);return new ct.MathNode("mphantom",n)}}),Tt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"hphantom",mode:n.mode,body:i}},htmlBuilder:(e,t)=>{var n=Le.makeSpan([],[Xn(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var i=0;i<n.children.length;i++)n.children[i].height=0,n.children[i].depth=0;return n=Le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),Le.makeSpan(["mord"],[n],t)},mathmlBuilder:(e,t)=>{var n=Fo(xi(e.body),t),i=new ct.MathNode("mphantom",n),o=new ct.MathNode("mpadded",[i]);return o.setAttribute("height","0px"),o.setAttribute("depth","0px"),o}}),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=Le.makeSpan(["inner"],[Xn(e.body,t.withPhantom())]),i=Le.makeSpan(["fix"],[]);return Le.makeSpan(["mord","rlap"],[n,i],t)},mathmlBuilder:(e,t)=>{var n=Fo(xi(e.body),t),i=new ct.MathNode("mphantom",n),o=new ct.MathNode("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=wn(t[0],"size").value,o=t[1];return{type:"raisebox",mode:n.mode,dy:i,body:o}},htmlBuilder(e,t){var n=Xn(e.body,t),i=ai(e.dy,t);return Le.makeVList({positionType:"shift",positionData:-i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new ct.MathNode("mpadded",[Or(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=wn(t[0],"size"),f=wn(t[1],"size");return{type:"rule",mode:i.mode,shift:o&&wn(o,"size").value,width:s.value,height:f.value}},htmlBuilder(e,t){var n=Le.makeSpan(["mord","rule"],[],t),i=ai(e.width,t),o=ai(e.height,t),s=e.shift?ai(e.shift,t):0;return n.style.borderRightWidth=yt(i),n.style.borderTopWidth=yt(o),n.style.bottom=yt(s),n.width=i,n.height=o+s,n.depth=-s,n.maxFontSize=o*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=ai(e.width,t),i=ai(e.height,t),o=e.shift?ai(e.shift,t):0,s=t.color&&t.getColor()||"black",f=new ct.MathNode("mspace");f.setAttribute("mathbackground",s),f.setAttribute("width",yt(n)),f.setAttribute("height",yt(i));var d=new ct.MathNode("mpadded",[f]);return o>=0?d.setAttribute("height",yt(o)):(d.setAttribute("height",yt(o)),d.setAttribute("depth",yt(-o))),d.setAttribute("voffset",yt(o)),d}});function PN(e,t,n){for(var i=ji(e,t,!1),o=t.sizeMultiplier/n.sizeMultiplier,s=0;s<i.length;s++){var f=i[s].classes.indexOf("sizing");f<0?Array.prototype.push.apply(i[s].classes,t.sizingClasses(n)):i[s].classes[f+1]==="reset-size"+t.size&&(i[s].classes[f+1]="reset-size"+n.size),i[s].height*=o,i[s].depth*=o}return Le.makeFragment(i)}var $N=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Foe=(e,t)=>{var n=t.havingSize(e.size);return PN(e.body,n,t)};Tt({type:"sizing",names:$N,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:$N.indexOf(i)+1,body:s}},htmlBuilder:Foe,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),i=Fo(e.body,n),o=new ct.MathNode("mstyle",i);return o.setAttribute("mathsize",yt(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,f=n[0]&&wn(n[0],"ordgroup");if(f)for(var d="",h=0;h<f.body.length;++h){var y=f.body[h];if(d=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=Le.makeSpan([],[Xn(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var i=0;i<n.children.length;i++)n.children[i].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(var o=0;o<n.children.length;o++)n.children[o].depth=0;var s=Le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return Le.makeSpan(["mord"],[s],t)},mathmlBuilder:(e,t)=>{var n=new ct.MathNode("mpadded",[Or(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=Xn(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Le.wrapFragment(n,t);var i=t.fontMetrics(),o=i.defaultRuleThickness,s=o;t.style.id<Gt.TEXT.id&&(s=t.fontMetrics().xHeight);var f=o+s/4,d=n.height+n.depth+f+o,{span:h,ruleWidth:y,advanceWidth:b}=mf.sqrtImage(d,t),x=h.height-y;x>n.height+n.depth+f&&(f=(f+x-n.height-n.depth)/2);var T=h.height-n.height-f-y;n.style.paddingLeft=yt(b);var w=Le.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+T)},{type:"elem",elem:h},{type:"kern",size:y}]},t);if(e.index){var C=t.havingStyle(Gt.SCRIPTSCRIPT),R=Xn(e.index,C,t),_=.6*(w.height-w.depth),N=Le.makeVList({positionType:"shift",positionData:-_,children:[{type:"elem",elem:R}]},t),z=Le.makeSpan(["root"],[N]);return Le.makeSpan(["mord","sqrt"],[z,w],t)}else return Le.makeSpan(["mord","sqrt"],[w],t)},mathmlBuilder(e,t){var{body:n,index:i}=e;return i?new ct.MathNode("mroot",[Or(n,t),Or(i,t)]):new ct.MathNode("msqrt",[Or(n,t)])}});var jN={display:Gt.DISPLAY,text:Gt.TEXT,script:Gt.SCRIPT,scriptscript:Gt.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),f=i.slice(1,i.length-5);return{type:"styling",mode:o.mode,style:f,body:s}},htmlBuilder(e,t){var n=jN[e.style],i=t.havingStyle(n).withFont("");return PN(e.body,i,t)},mathmlBuilder(e,t){var n=jN[e.style],i=t.havingStyle(n),o=Fo(e.body,i),s=new ct.MathNode("mstyle",o),f={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},d=f[e.style];return s.setAttribute("scriptlevel",d[0]),s.setAttribute("displaystyle",d[1]),s}});var Goe=function(t,n){var i=t.base;if(i)if(i.type==="op"){var o=i.limits&&(n.style.size===Gt.DISPLAY.size||i.alwaysHandleSupSub);return o?Ig:null}else if(i.type==="operatorname"){var s=i.alwaysHandleSupSub&&(n.style.size===Gt.DISPLAY.size||i.limits);return s?UN:null}else{if(i.type==="accent")return Zn.isCharacterBox(i.base)?JT:null;if(i.type==="horizBrace"){var f=!t.sub;return f===i.isOver?IN:null}else return null}else return null};zh({type:"supsub",htmlBuilder(e,t){var n=Goe(e,t);if(n)return n(e,t);var{base:i,sup:o,sub:s}=e,f=Xn(i,t),d,h,y=t.fontMetrics(),b=0,x=0,T=i&&Zn.isCharacterBox(i);if(o){var w=t.havingStyle(t.style.sup());d=Xn(o,w,t),T||(b=f.height-w.fontMetrics().supDrop*w.sizeMultiplier/t.sizeMultiplier)}if(s){var C=t.havingStyle(t.style.sub());h=Xn(s,C,t),T||(x=f.depth+C.fontMetrics().subDrop*C.sizeMultiplier/t.sizeMultiplier)}var R;t.style===Gt.DISPLAY?R=y.sup1:t.style.cramped?R=y.sup3:R=y.sup2;var _=t.sizeMultiplier,N=yt(.5/y.ptPerEm/_),z=null;if(h){var B=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(f instanceof rs||B)&&(z=yt(-f.italic))}var V;if(d&&h){b=Math.max(b,R,d.depth+.25*y.xHeight),x=Math.max(x,y.sub2);var I=y.defaultRuleThickness,P=4*I;if(b-d.depth-(h.height-x)<P){x=P-(b-d.depth)+h.height;var Y=.8*y.xHeight-(b-d.depth);Y>0&&(b+=Y,x-=Y)}var se=[{type:"elem",elem:h,shift:x,marginRight:N,marginLeft:z},{type:"elem",elem:d,shift:-b,marginRight:N}];V=Le.makeVList({positionType:"individualShift",children:se},t)}else if(h){x=Math.max(x,y.sub1,h.height-.8*y.xHeight);var ue=[{type:"elem",elem:h,marginLeft:z,marginRight:N}];V=Le.makeVList({positionType:"shift",positionData:x,children:ue},t)}else if(d)b=Math.max(b,R,d.depth+.25*y.xHeight),V=Le.makeVList({positionType:"shift",positionData:-b,children:[{type:"elem",elem:d,marginRight:N}]},t);else throw new Error("supsub must have either sup or sub.");var re=YT(f,"right")||"mord";return Le.makeSpan([re],[f,Le.makeSpan(["msupsub"],[V])],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=[Or(e.base,t)];e.sub&&s.push(Or(e.sub,t)),e.sup&&s.push(Or(e.sup,t));var f;if(n)f=i?"mover":"munder";else if(e.sub)if(e.sup){var y=e.base;y&&y.type==="op"&&y.limits&&t.style===Gt.DISPLAY||y&&y.type==="operatorname"&&y.alwaysHandleSupSub&&(t.style===Gt.DISPLAY||y.limits)?f="munderover":f="msubsup"}else{var h=e.base;h&&h.type==="op"&&h.limits&&(t.style===Gt.DISPLAY||h.alwaysHandleSupSub)||h&&h.type==="operatorname"&&h.alwaysHandleSupSub&&(h.limits||t.style===Gt.DISPLAY)?f="munder":f="msub"}else{var d=e.base;d&&d.type==="op"&&d.limits&&(t.style===Gt.DISPLAY||d.alwaysHandleSupSub)||d&&d.type==="operatorname"&&d.alwaysHandleSupSub&&(d.limits||t.style===Gt.DISPLAY)?f="mover":f="msup"}return new ct.MathNode(f,s)}}),zh({type:"atom",htmlBuilder(e,t){return Le.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new ct.MathNode("mo",[is(e.text,e.mode)]);if(e.family==="bin"){var i=QT(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 HN={mi:"italic",mn:"normal",mtext:"normal"};zh({type:"mathord",htmlBuilder(e,t){return Le.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new ct.MathNode("mi",[is(e.text,e.mode,t)]),i=QT(e,t)||"italic";return i!==HN[n.type]&&n.setAttribute("mathvariant",i),n}}),zh({type:"textord",htmlBuilder(e,t){return Le.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=is(e.text,e.mode,t),i=QT(e,t)||"normal",o;return e.mode==="text"?o=new ct.MathNode("mtext",[n]):/[0-9]/.test(e.text)?o=new ct.MathNode("mn",[n]):e.text==="\\prime"?o=new ct.MathNode("mo",[n]):o=new ct.MathNode("mi",[n]),i!==HN[o.type]&&o.setAttribute("mathvariant",i),o}});var m8={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},g8={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};zh({type:"spacing",htmlBuilder(e,t){if(g8.hasOwnProperty(e.text)){var n=g8[e.text].className||"";if(e.mode==="text"){var i=Le.makeOrd(e,t,"textord");return i.classes.push(n),i}else return Le.makeSpan(["mspace",n],[Le.mathsym(e.text,e.mode,t)],t)}else{if(m8.hasOwnProperty(e.text))return Le.makeSpan(["mspace",m8[e.text]],[],t);throw new ft('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(g8.hasOwnProperty(e.text))n=new ct.MathNode("mtext",[new ct.TextNode(" ")]);else{if(m8.hasOwnProperty(e.text))return new ct.MathNode("mspace");throw new ft('Unknown type of space "'+e.text+'"')}return n}});var qN=()=>{var e=new ct.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};zh({type:"tag",mathmlBuilder(e,t){var n=new ct.MathNode("mtable",[new ct.MathNode("mtr",[qN(),new ct.MathNode("mtd",[Hd(e.body,t)]),qN(),new ct.MathNode("mtd",[Hd(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var FN={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},GN={"\\textbf":"textbf","\\textmd":"textmd"},Yoe={"\\textit":"textit","\\textup":"textup"},YN=(e,t)=>{var n=e.font;if(n){if(FN[n])return t.withTextFontFamily(FN[n]);if(GN[n])return t.withTextFontWeight(GN[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(Yoe[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:xi(o),font:i}},htmlBuilder(e,t){var n=YN(e,t),i=ji(e.body,n,!0);return Le.makeSpan(["mord","text"],i,n)},mathmlBuilder(e,t){var n=YN(e,t);return Hd(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=Xn(e.body,t),i=Le.makeLineSpan("underline-line",t),o=t.fontMetrics().defaultRuleThickness,s=Le.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:o},{type:"elem",elem:i},{type:"kern",size:3*o},{type:"elem",elem:n}]},t);return Le.makeSpan(["mord","underline"],[s],t)},mathmlBuilder(e,t){var n=new ct.MathNode("mo",[new ct.TextNode("‾")]);n.setAttribute("stretchy","true");var i=new ct.MathNode("munder",[Or(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=Xn(e.body,t),i=t.fontMetrics().axisHeight,o=.5*(n.height-i-(n.depth+i));return Le.makeVList({positionType:"shift",positionData:o,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new ct.MathNode("mpadded",[Or(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=XN(e),i=[],o=t.havingStyle(t.style.text()),s=0;s<n.length;s++){var f=n[s];f==="~"&&(f="\\textasciitilde"),i.push(Le.makeSymbol(f,"Typewriter-Regular",e.mode,o,["mord","texttt"]))}return Le.makeSpan(["mord","text"].concat(o.sizingClasses(t)),Le.tryCombineChars(i),o)},mathmlBuilder(e,t){var n=new ct.TextNode(XN(e)),i=new ct.MathNode("mtext",[n]);return i.setAttribute("mathvariant","monospace"),i}});var XN=e=>e.body.replace(/ /g,e.star?"␣":" "),Fd=Zk,WN=`[ \r
	]`,Xoe="\\\\[a-zA-Z@]+",Woe="\\\\[^\uD800-\uDFFF]",Qoe="("+Xoe+")"+WN+"*",Koe=`\\\\(
|[ \r	]+
?)[ \r	]*`,y8="[̀-ͯ]",Zoe=new RegExp(y8+"+$"),Joe="("+WN+"+)|"+(Koe+"|")+"([!-\\[\\]-‧‪-퟿豈-]"+(y8+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(y8+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Qoe)+("|"+Woe+")");class QN{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(Joe,"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 wl("EOF",new Ho(this,n,n));var i=this.tokenRegex.exec(t);if(i===null||i.index!==n)throw new ft("Unexpected character: '"+t[n]+"'",new wl(t[n],new Ho(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 wl(o,new Ho(this,n,this.tokenRegex.lastIndex))}}class ele{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,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 tle=AN;ne("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),ne("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),ne("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}}),ne("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}}),ne("\\@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}}),ne("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),ne("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var KN={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};ne("\\char",function(e){var t=e.popToken(),n,i="";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=KN[t.text],i==null||i>=n)throw new ft("Invalid base-"+n+" digit "+t.text);for(var o;(o=KN[e.future().text])!=null&&o<n;)i*=n,i+=o,e.popToken()}return"\\@char{"+i+"}"});var v8=(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,f=e.isDefined(s);if(f&&!t)throw new ft("\\newcommand{"+s+"} attempting to redefine "+(s+"; use \\renewcommand"));if(!f&&!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 f&&i||e.macros.set(s,{tokens:o,numArgs:d}),""};ne("\\newcommand",e=>v8(e,!1,!0,!1)),ne("\\renewcommand",e=>v8(e,!0,!1,!1)),ne("\\providecommand",e=>v8(e,!0,!0,!0)),ne("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""}),ne("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""}),ne("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),Fd[n],kr.math[n],kr.text[n]),""}),ne("\\bgroup","{"),ne("\\egroup","}"),ne("~","\\nobreakspace"),ne("\\lq","`"),ne("\\rq","'"),ne("\\aa","\\r a"),ne("\\AA","\\r A"),ne("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),ne("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),ne("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),ne("ℬ","\\mathscr{B}"),ne("ℰ","\\mathscr{E}"),ne("ℱ","\\mathscr{F}"),ne("ℋ","\\mathscr{H}"),ne("ℐ","\\mathscr{I}"),ne("ℒ","\\mathscr{L}"),ne("ℳ","\\mathscr{M}"),ne("ℛ","\\mathscr{R}"),ne("ℭ","\\mathfrak{C}"),ne("ℌ","\\mathfrak{H}"),ne("ℨ","\\mathfrak{Z}"),ne("\\Bbbk","\\Bbb{k}"),ne("·","\\cdotp"),ne("\\llap","\\mathllap{\\textrm{#1}}"),ne("\\rlap","\\mathrlap{\\textrm{#1}}"),ne("\\clap","\\mathclap{\\textrm{#1}}"),ne("\\mathstrut","\\vphantom{(}"),ne("\\underbar","\\underline{\\text{#1}}"),ne("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),ne("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),ne("\\ne","\\neq"),ne("≠","\\neq"),ne("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),ne("∉","\\notin"),ne("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),ne("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),ne("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),ne("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),ne("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),ne("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),ne("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),ne("⟂","\\perp"),ne("‼","\\mathclose{!\\mkern-0.8mu!}"),ne("∌","\\notni"),ne("⌜","\\ulcorner"),ne("⌝","\\urcorner"),ne("⌞","\\llcorner"),ne("⌟","\\lrcorner"),ne("©","\\copyright"),ne("®","\\textregistered"),ne("️","\\textregistered"),ne("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),ne("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),ne("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),ne("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),ne("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),ne("⋮","\\vdots"),ne("\\varGamma","\\mathit{\\Gamma}"),ne("\\varDelta","\\mathit{\\Delta}"),ne("\\varTheta","\\mathit{\\Theta}"),ne("\\varLambda","\\mathit{\\Lambda}"),ne("\\varXi","\\mathit{\\Xi}"),ne("\\varPi","\\mathit{\\Pi}"),ne("\\varSigma","\\mathit{\\Sigma}"),ne("\\varUpsilon","\\mathit{\\Upsilon}"),ne("\\varPhi","\\mathit{\\Phi}"),ne("\\varPsi","\\mathit{\\Psi}"),ne("\\varOmega","\\mathit{\\Omega}"),ne("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),ne("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),ne("\\boxed","\\fbox{$\\displaystyle{#1}$}"),ne("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),ne("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),ne("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),ne("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),ne("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var ZN={",":"\\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"};ne("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in ZN?t=ZN[n]:(n.slice(0,4)==="\\not"||n in kr.math&&["bin","rel"].includes(kr.math[n].group))&&(t="\\dotsb"),t});var b8={")":!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};ne("\\dotso",function(e){var t=e.future().text;return t in b8?"\\ldots\\,":"\\ldots"}),ne("\\dotsc",function(e){var t=e.future().text;return t in b8&&t!==","?"\\ldots\\,":"\\ldots"}),ne("\\cdots",function(e){var t=e.future().text;return t in b8?"\\@cdots\\,":"\\@cdots"}),ne("\\dotsb","\\cdots"),ne("\\dotsm","\\cdots"),ne("\\dotsi","\\!\\cdots"),ne("\\dotsx","\\ldots\\,"),ne("\\DOTSI","\\relax"),ne("\\DOTSB","\\relax"),ne("\\DOTSX","\\relax"),ne("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),ne("\\,","\\tmspace+{3mu}{.1667em}"),ne("\\thinspace","\\,"),ne("\\>","\\mskip{4mu}"),ne("\\:","\\tmspace+{4mu}{.2222em}"),ne("\\medspace","\\:"),ne("\\;","\\tmspace+{5mu}{.2777em}"),ne("\\thickspace","\\;"),ne("\\!","\\tmspace-{3mu}{.1667em}"),ne("\\negthinspace","\\!"),ne("\\negmedspace","\\tmspace-{4mu}{.2222em}"),ne("\\negthickspace","\\tmspace-{5mu}{.277em}"),ne("\\enspace","\\kern.5em "),ne("\\enskip","\\hskip.5em\\relax"),ne("\\quad","\\hskip1em\\relax"),ne("\\qquad","\\hskip2em\\relax"),ne("\\tag","\\@ifstar\\tag@literal\\tag@paren"),ne("\\tag@paren","\\tag@literal{({#1})}"),ne("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new ft("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),ne("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),ne("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),ne("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),ne("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),ne("\\newline","\\\\\\relax"),ne("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var JN=yt(uc["Main-Regular"][84][1]-.7*uc["Main-Regular"][65][1]);ne("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+JN+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),ne("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+JN+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),ne("\\hspace","\\@ifstar\\@hspacer\\@hspace"),ne("\\@hspace","\\hskip #1\\relax"),ne("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),ne("\\ordinarycolon",":"),ne("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),ne("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),ne("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),ne("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),ne("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),ne("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),ne("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),ne("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),ne("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),ne("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),ne("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),ne("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),ne("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),ne("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),ne("∷","\\dblcolon"),ne("∹","\\eqcolon"),ne("≔","\\coloneqq"),ne("≕","\\eqqcolon"),ne("⩴","\\Coloneqq"),ne("\\ratio","\\vcentcolon"),ne("\\coloncolon","\\dblcolon"),ne("\\colonequals","\\coloneqq"),ne("\\coloncolonequals","\\Coloneqq"),ne("\\equalscolon","\\eqqcolon"),ne("\\equalscoloncolon","\\Eqqcolon"),ne("\\colonminus","\\coloneq"),ne("\\coloncolonminus","\\Coloneq"),ne("\\minuscolon","\\eqcolon"),ne("\\minuscoloncolon","\\Eqcolon"),ne("\\coloncolonapprox","\\Colonapprox"),ne("\\coloncolonsim","\\Colonsim"),ne("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),ne("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),ne("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),ne("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),ne("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),ne("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),ne("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),ne("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),ne("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),ne("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),ne("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),ne("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),ne("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),ne("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),ne("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),ne("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),ne("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),ne("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),ne("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),ne("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),ne("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),ne("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),ne("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),ne("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),ne("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),ne("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),ne("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),ne("\\imath","\\html@mathml{\\@imath}{ı}"),ne("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),ne("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),ne("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),ne("⟦","\\llbracket"),ne("⟧","\\rrbracket"),ne("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),ne("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),ne("⦃","\\lBrace"),ne("⦄","\\rBrace"),ne("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),ne("⦵","\\minuso"),ne("\\darr","\\downarrow"),ne("\\dArr","\\Downarrow"),ne("\\Darr","\\Downarrow"),ne("\\lang","\\langle"),ne("\\rang","\\rangle"),ne("\\uarr","\\uparrow"),ne("\\uArr","\\Uparrow"),ne("\\Uarr","\\Uparrow"),ne("\\N","\\mathbb{N}"),ne("\\R","\\mathbb{R}"),ne("\\Z","\\mathbb{Z}"),ne("\\alef","\\aleph"),ne("\\alefsym","\\aleph"),ne("\\Alpha","\\mathrm{A}"),ne("\\Beta","\\mathrm{B}"),ne("\\bull","\\bullet"),ne("\\Chi","\\mathrm{X}"),ne("\\clubs","\\clubsuit"),ne("\\cnums","\\mathbb{C}"),ne("\\Complex","\\mathbb{C}"),ne("\\Dagger","\\ddagger"),ne("\\diamonds","\\diamondsuit"),ne("\\empty","\\emptyset"),ne("\\Epsilon","\\mathrm{E}"),ne("\\Eta","\\mathrm{H}"),ne("\\exist","\\exists"),ne("\\harr","\\leftrightarrow"),ne("\\hArr","\\Leftrightarrow"),ne("\\Harr","\\Leftrightarrow"),ne("\\hearts","\\heartsuit"),ne("\\image","\\Im"),ne("\\infin","\\infty"),ne("\\Iota","\\mathrm{I}"),ne("\\isin","\\in"),ne("\\Kappa","\\mathrm{K}"),ne("\\larr","\\leftarrow"),ne("\\lArr","\\Leftarrow"),ne("\\Larr","\\Leftarrow"),ne("\\lrarr","\\leftrightarrow"),ne("\\lrArr","\\Leftrightarrow"),ne("\\Lrarr","\\Leftrightarrow"),ne("\\Mu","\\mathrm{M}"),ne("\\natnums","\\mathbb{N}"),ne("\\Nu","\\mathrm{N}"),ne("\\Omicron","\\mathrm{O}"),ne("\\plusmn","\\pm"),ne("\\rarr","\\rightarrow"),ne("\\rArr","\\Rightarrow"),ne("\\Rarr","\\Rightarrow"),ne("\\real","\\Re"),ne("\\reals","\\mathbb{R}"),ne("\\Reals","\\mathbb{R}"),ne("\\Rho","\\mathrm{P}"),ne("\\sdot","\\cdot"),ne("\\sect","\\S"),ne("\\spades","\\spadesuit"),ne("\\sub","\\subset"),ne("\\sube","\\subseteq"),ne("\\supe","\\supseteq"),ne("\\Tau","\\mathrm{T}"),ne("\\thetasym","\\vartheta"),ne("\\weierp","\\wp"),ne("\\Zeta","\\mathrm{Z}"),ne("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),ne("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),ne("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),ne("\\bra","\\mathinner{\\langle{#1}|}"),ne("\\ket","\\mathinner{|{#1}\\rangle}"),ne("\\braket","\\mathinner{\\langle{#1}\\rangle}"),ne("\\Bra","\\left\\langle#1\\right|"),ne("\\Ket","\\left|#1\\right\\rangle");var ez=e=>t=>{var n=t.consumeArg().tokens,i=t.consumeArg().tokens,o=t.consumeArg().tokens,s=t.consumeArg().tokens,f=t.macros.get("|"),d=t.macros.get("\\|");t.macros.beginGroup();var h=x=>T=>{e&&(T.macros.set("|",f),o.length&&T.macros.set("\\|",d));var w=x;if(!x&&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}};ne("\\bra@ket",ez(!1)),ne("\\bra@set",ez(!0)),ne("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),ne("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),ne("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),ne("\\angln","{\\angl n}"),ne("\\blue","\\textcolor{##6495ed}{#1}"),ne("\\orange","\\textcolor{##ffa500}{#1}"),ne("\\pink","\\textcolor{##ff00af}{#1}"),ne("\\red","\\textcolor{##df0030}{#1}"),ne("\\green","\\textcolor{##28ae7b}{#1}"),ne("\\gray","\\textcolor{gray}{#1}"),ne("\\purple","\\textcolor{##9d38bd}{#1}"),ne("\\blueA","\\textcolor{##ccfaff}{#1}"),ne("\\blueB","\\textcolor{##80f6ff}{#1}"),ne("\\blueC","\\textcolor{##63d9ea}{#1}"),ne("\\blueD","\\textcolor{##11accd}{#1}"),ne("\\blueE","\\textcolor{##0c7f99}{#1}"),ne("\\tealA","\\textcolor{##94fff5}{#1}"),ne("\\tealB","\\textcolor{##26edd5}{#1}"),ne("\\tealC","\\textcolor{##01d1c1}{#1}"),ne("\\tealD","\\textcolor{##01a995}{#1}"),ne("\\tealE","\\textcolor{##208170}{#1}"),ne("\\greenA","\\textcolor{##b6ffb0}{#1}"),ne("\\greenB","\\textcolor{##8af281}{#1}"),ne("\\greenC","\\textcolor{##74cf70}{#1}"),ne("\\greenD","\\textcolor{##1fab54}{#1}"),ne("\\greenE","\\textcolor{##0d923f}{#1}"),ne("\\goldA","\\textcolor{##ffd0a9}{#1}"),ne("\\goldB","\\textcolor{##ffbb71}{#1}"),ne("\\goldC","\\textcolor{##ff9c39}{#1}"),ne("\\goldD","\\textcolor{##e07d10}{#1}"),ne("\\goldE","\\textcolor{##a75a05}{#1}"),ne("\\redA","\\textcolor{##fca9a9}{#1}"),ne("\\redB","\\textcolor{##ff8482}{#1}"),ne("\\redC","\\textcolor{##f9685d}{#1}"),ne("\\redD","\\textcolor{##e84d39}{#1}"),ne("\\redE","\\textcolor{##bc2612}{#1}"),ne("\\maroonA","\\textcolor{##ffbde0}{#1}"),ne("\\maroonB","\\textcolor{##ff92c6}{#1}"),ne("\\maroonC","\\textcolor{##ed5fa6}{#1}"),ne("\\maroonD","\\textcolor{##ca337c}{#1}"),ne("\\maroonE","\\textcolor{##9e034e}{#1}"),ne("\\purpleA","\\textcolor{##ddd7ff}{#1}"),ne("\\purpleB","\\textcolor{##c6b9fc}{#1}"),ne("\\purpleC","\\textcolor{##aa87ff}{#1}"),ne("\\purpleD","\\textcolor{##7854ab}{#1}"),ne("\\purpleE","\\textcolor{##543b78}{#1}"),ne("\\mintA","\\textcolor{##f5f9e8}{#1}"),ne("\\mintB","\\textcolor{##edf2df}{#1}"),ne("\\mintC","\\textcolor{##e0e5cc}{#1}"),ne("\\grayA","\\textcolor{##f6f7f7}{#1}"),ne("\\grayB","\\textcolor{##f0f1f2}{#1}"),ne("\\grayC","\\textcolor{##e3e5e6}{#1}"),ne("\\grayD","\\textcolor{##d6d8da}{#1}"),ne("\\grayE","\\textcolor{##babec2}{#1}"),ne("\\grayF","\\textcolor{##888d93}{#1}"),ne("\\grayG","\\textcolor{##626569}{#1}"),ne("\\grayH","\\textcolor{##3b3e40}{#1}"),ne("\\grayI","\\textcolor{##21242c}{#1}"),ne("\\kaBlue","\\textcolor{##314453}{#1}"),ne("\\kaGreen","\\textcolor{##71B307}{#1}");var tz={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class nle{constructor(t,n,i){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new ele(tle,n.macros),this.mode=i,this.stack=[]}feed(t){this.lexer=new QN(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 wl("EOF",i.loc)),this.pushTokens(o),new wl("",Ho.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,f=0,d=0;do{if(s=this.popToken(),n.push(s),s.text==="{")++f;else if(s.text==="}"){if(--f,f===-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((f===0||f===1&&t[d]==="{")&&s.text===t[d]){if(++d,d===t.length){n.splice(-d,d);break}}else d=0}while(f!==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 f=[],d=0;d<t;d++)f.push(this.consumeArg(n&&n[d+1]).tokens);return f}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,f=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,...f[+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}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new wl(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.indexOf("#")!==-1)for(var f=o.replace(/##/g,"");f.indexOf("#"+(s+1))!==-1;)++s;for(var d=new QN(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)||Fd.hasOwnProperty(t)||kr.math.hasOwnProperty(t)||kr.text.hasOwnProperty(t)||tz.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:Fd.hasOwnProperty(t)&&!Fd[t].primitive}}var nz=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,c6=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","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),S8={"́":{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"}},rz={á:"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 f6{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new nle(t,n,this.mode),this.settings=n,this.leftrightDepth=0}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 wl("}")),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(f6.endOfExpression.indexOf(o.text)!==-1||n&&o.text===n||t&&Fd[o.text]&&Fd[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++)if(t[o].type==="infix"){if(n!==-1)throw new ft("only one infix operator per group",t[o].token);n=o,i=t[o].replaceWith}if(n!==-1&&i){var s,f,d=t.slice(0,n),h=t.slice(n+1);d.length===1&&d[0].type==="ordgroup"?s=d[0]:s={type:"ordgroup",mode:this.mode,body:d},h.length===1&&h[0].type==="ordgroup"?f=h[0]:f={type:"ordgroup",mode:this.mode,body:h};var y;return i==="\\\\abovefrac"?y=this.callFunction(i,[s,t[n],f],[]):y=this.callFunction(i,[s,f],[]),[y]}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 f=s.text==="\\limits";n.limits=f,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(c6[s.text]){var y=nz.test(s.text),b=[];for(b.push(new wl(c6[s.text])),this.consume();;){var x=this.fetch().text;if(!c6[x]||nz.test(x)!==y)break;b.unshift(new wl(c6[x])),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=Fd[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:f,optArgs:d}=this.parseArguments(o,s);return this.callFunction(o,f,d,i,t)}callFunction(t,n,i,o,s){var f={funcName:t,parser:this,token:o,breakOnTokenText:s},d=Fd[t];if(d&&d.handler)return d.handler(f,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=[],f=0;f<i;f++){var d=n.argTypes&&n.argTypes[f],h=f<n.numOptionalArgs;(n.primitive&&d==null||n.type==="sqrt"&&f===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 f=this.parseGroup(t);if(f==null)throw new ft("Expected group as "+t,this.fetch());return f}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="",f;(f=this.fetch()).text!=="EOF"&&t.test(s+f.text);)o=f,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(!Bk(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 f={type:"ordgroup",mode:this.mode,loc:i.loc,body:s};return n&&this.switchMode(o),f}parseGroup(t,n){var i=this.fetch(),o=i.text,s;if(o==="{"||o==="\\begingroup"){this.consume();var f=o==="{"?"}":"\\endgroup";this.gullet.beginGroup();var d=this.parseExpression(!1,f),h=this.fetch();this.expect(f),this.gullet.endGroup(),s={type:"ordgroup",mode:this.mode,loc:Ho.range(i,h),body:d,semisimple:o==="\\begingroup"||void 0}}else if(s=this.parseFunction(n,t)||this.parseSymbol(),s==null&&o[0]==="\\"&&!tz.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],s=o.text;s==="-"&&t[i+1].text==="-"&&(i+1<n&&t[i+2].text==="-"?(t.splice(i,3,{type:"textord",mode:"text",loc:Ho.range(o,t[i+2]),text:"---"}),n-=2):(t.splice(i,2,{type:"textord",mode:"text",loc:Ho.range(o,t[i+1]),text:"--"}),n-=1)),(s==="'"||s==="`")&&t[i+1].text===s&&(t.splice(i,2,{type:"textord",mode:"text",loc:Ho.range(o,t[i+1]),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}}rz.hasOwnProperty(n[0])&&!kr[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=rz[n[0]]+n.slice(1));var s=Zoe.exec(n);s&&(n=n.substring(0,s.index),n==="i"?n="ı":n==="j"&&(n="ȷ"));var f;if(kr[this.mode][n]){this.settings.strict&&this.mode==="math"&&qT.indexOf(n)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var d=kr[this.mode][n].group,h=Ho.range(t),y;if(qae.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};f=y}else if(n.charCodeAt(0)>=128)this.settings.strict&&(kk(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)),f={type:"textord",mode:"text",loc:Ho.range(t),text:n};else return null;if(this.consume(),s)for(var x=0;x<s[0].length;x++){var T=s[0][x];if(!S8[T])throw new ft("Unknown accent ' "+T+"'",t);var w=S8[T][this.mode]||S8[T].text;if(!w)throw new ft("Accent "+T+" unsupported in "+this.mode+" mode",t);f={type:"accent",mode:this.mode,loc:Ho.range(t),label:w,isStretchy:!1,isShifty:!0,base:f}}return f}}f6.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var x8=function(t,n){if(!(typeof t=="string"||t instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var i=new f6(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 wl("\\df@tag")])}]}return o},iz=function(t,n,i){n.textContent="";var o=E8(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."),iz=function(){throw new ft("KaTeX doesn't work in quirks mode.")});var rle=function(t,n){var i=E8(t,n).toMarkup();return i},ile=function(t,n){var i=new NT(n);return x8(t,i)},az=function(t,n,i){if(i.throwOnError||!(t instanceof ft))throw t;var o=Le.makeSpan(["katex-error"],[new rs(n)]);return o.setAttribute("title",t.toString()),o.setAttribute("style","color:"+i.errorColor),o},E8=function(t,n){var i=new NT(n);try{var o=x8(t,i);return hoe(o,t,i)}catch(s){return az(s,t,i)}},ale=function(t,n){var i=new NT(n);try{var o=x8(t,i);return poe(o,t,i)}catch(s){return az(s,t,i)}},ole="0.16.28",lle={Span:kb,Anchor:UT,SymbolNode:rs,SvgNode:cf,PathNode:$d,LineNode:PT},oz={version:ole,render:iz,renderToString:rle,ParseError:ft,SETTINGS_SCHEMA:H3,__parse:ile,__renderToDomTree:E8,__renderToHTMLTree:ale,__setFontMetrics:Lae,__defineSymbol:k,__defineFunction:Tt,__defineMacro:ne,__domTree:lle};const sle={},ule=[];function cle(e){const t=e||sle;return function(n,i){mT(n,"element",function(o,s){const f=Array.isArray(o.properties.className)?o.properties.className:ule,d=f.includes("language-math"),h=f.includes("math-display"),y=f.includes("math-inline");let b=h;if(!d&&!h&&!y)return;let x=s[s.length-1],T=o;if(o.tagName==="code"&&d&&x&&x.type==="element"&&x.tagName==="pre"&&(T=x,x=s[s.length-2],b=!0),!x)return;const w=nae(T,{whitespace:"pre"});let C;try{C=oz.renderToString(w,{...t,displayMode:b,throwOnError:!0})}catch(_){const N=_,z=N.name.toLowerCase();i.message("Could not render math with KaTeX",{ancestors:[...s,o],cause:N,place:o.position,ruleId:z,source:"rehype-katex"});try{C=oz.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=Xie(C).children);const R=x.children.indexOf(T);return x.children.splice(R,1,...C),ak})}}const Ih=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],lz={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...Ih,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...Ih],h2:[["className","sr-only"]],img:[...Ih,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...Ih,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...Ih],table:[...Ih],ul:[...Ih,["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 fle(e,t){let n={type:"root",children:[]};const i={schema:t?{...lz,...t}:lz,stack:[]},o=sz(i,e);return o&&(Array.isArray(o)?o.length===1?n=o[0]:n.children=o:n=o),n}function sz(e,t){if(t&&typeof t=="object"){const n=t;switch(typeof n.type=="string"?n.type:""){case"comment":return dle(e,n);case"doctype":return hle(e,n);case"element":return ple(e,n);case"root":return mle(e,n);case"text":return gle(e,n)}}}function dle(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 Bb(s,t),s}}function hle(e,t){if(e.schema.allowDoctypes){const n={type:"doctype"};return Bb(n,t),n}}function ple(e,t){const n=typeof t.tagName=="string"?t.tagName:"";e.stack.push(n);const i=uz(e,t.children),o=yle(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 f={type:"element",tagName:n,properties:o,children:i};return Bb(f,t),f}function mle(e,t){const i={type:"root",children:uz(e,t.children)};return Bb(i,t),i}function gle(e,t){const i={type:"text",value:typeof t.value=="string"?t.value:""};return Bb(i,t),i}function uz(e,t){const n=[];if(Array.isArray(t)){const i=t;let o=-1;for(;++o<i.length;){const s=sz(e,i[o]);s&&(Array.isArray(s)?n.push(...s):n.push(s))}}return n}function yle(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,f=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 x=cz(e,dz(s,y),y,b);x==null&&(x=cz(e,dz(f,y),y,b)),x!=null&&(h[y]=x)}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 cz(e,t,n,i){return t?Array.isArray(i)?vle(e,t,n,i):fz(e,t,n,i):void 0}function vle(e,t,n,i){let o=-1;const s=[];for(;++o<i.length;){const f=fz(e,t,n,i[o]);(typeof f=="number"||typeof f=="string")&&s.push(f)}return s}function fz(e,t,n,i){if(!(typeof i!="boolean"&&typeof i!="number"&&typeof i!="string")&&ble(e,n,i)){if(typeof t=="object"&&t.length>1){let o=!1,s=0;for(;++s<t.length;){const f=t[s];if(f&&typeof f=="object"&&"flags"in f){if(f.test(String(i))){o=!0;break}}else if(f===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 ble(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(":"),f=o.indexOf("?"),d=o.indexOf("#"),h=o.indexOf("/");if(s<0||h>-1&&s>h||f>-1&&s>f||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 Bb(e,t){const n=mD(t);t.data&&(e.data=Ob(t.data)),n&&(e.position=n)}function dz(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 Sle(e){return function(t){return fle(t,e)}}function hz(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 xle(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Ele(e,t,n){const o=Mb((n||{}).ignore||[]),s=wle(t);let f=-1;for(;++f<s.length;)mT(e,"text",d);function d(y,b){let x=-1,T;for(;++x<b.length;){const w=b[x],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 x=b[b.length-1],T=s[f][0],w=s[f][1];let C=0;const _=x.children.indexOf(y);let N=!1,z=[];T.lastIndex=0;let B=T.exec(y.value);for(;B;){const V=B.index,I={index:B.index,input:B.input,stack:[...b,y]};let P=w(...B,I);if(typeof P=="string"&&(P=P.length>0?{type:"text",value:P}:void 0),P===!1?T.lastIndex=V+1:(C!==V&&z.push({type:"text",value:y.value.slice(C,V)}),Array.isArray(P)?z.push(...P):P&&z.push(P),C=V+B[0].length,N=!0),!T.global)break;B=T.exec(y.value)}return N?(C<y.value.length&&z.push({type:"text",value:y.value.slice(C)}),x.children.splice(_,1,...z)):z=[y],_+z.length}}function wle(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([Tle(o[0]),Ale(o[1])])}return t}function Tle(e){return typeof e=="string"?new RegExp(xle(e),"g"):e}function Ale(e){return typeof e=="function"?e:function(){return e}}const w8="phrasing",T8=["autolink","link","image","label"];function Cle(){return{transforms:[Nle],enter:{literalAutolink:Mle,literalAutolinkEmail:A8,literalAutolinkHttp:A8,literalAutolinkWww:A8},exit:{literalAutolink:kle,literalAutolinkEmail:Dle,literalAutolinkHttp:Rle,literalAutolinkWww:_le}}}function Ole(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:w8,notInConstruct:T8},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:w8,notInConstruct:T8},{character:":",before:"[ps]",after:"\\/",inConstruct:w8,notInConstruct:T8}]}}function Mle(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function A8(e){this.config.enter.autolinkProtocol.call(this,e)}function Rle(e){this.config.exit.autolinkProtocol.call(this,e)}function _le(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 Dle(e){this.config.exit.autolinkEmail.call(this,e)}function kle(e){this.exit(e)}function Nle(e){Ele(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,zle],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),Ile]],{ignore:["link","linkReference"]})}function zle(e,t,n,i,o){let s="";if(!pz(o)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!Lle(n)))return!1;const f=Ble(n+i);if(!f[0])return!1;const d={type:"link",title:null,url:s+t+f[0],children:[{type:"text",value:t+f[0]}]};return f[1]?[d,{type:"text",value:f[1]}]:d}function Ile(e,t,n,i){return!pz(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Lle(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 Ble(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=hz(e,"(");let s=hz(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 pz(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||_h(n)||z3(n))&&(!t||n!==47)}mz.peek=Gle;function Vle(){this.buffer()}function Ule(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Ple(){this.buffer()}function $le(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function jle(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=du(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Hle(e){this.exit(e)}function qle(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=du(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Fle(e){this.exit(e)}function Gle(){return"["}function mz(e,t,n,i){const o=n.createTracker(i);let s=o.move("[^");const f=n.enter("footnoteReference"),d=n.enter("reference");return s+=o.move(n.safe(n.associationId(e),{after:"]",before:s})),d(),f(),s+=o.move("]"),s}function Yle(){return{enter:{gfmFootnoteCallString:Vle,gfmFootnoteCall:Ule,gfmFootnoteDefinitionLabelString:Ple,gfmFootnoteDefinition:$le},exit:{gfmFootnoteCallString:jle,gfmFootnoteCall:Hle,gfmFootnoteDefinitionLabelString:qle,gfmFootnoteDefinition:Fle}}}function Xle(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:mz},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,o,s,f){const d=s.createTracker(f);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?gz:Wle))),y(),h}}function Wle(e,t,n){return t===0?e:gz(e,t,n)}function gz(e,t,n){return(n?"":"    ")+e}const Qle=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];yz.peek=tse;function Kle(){return{canContainEols:["delete"],enter:{strikethrough:Jle},exit:{strikethrough:ese}}}function Zle(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Qle}],handlers:{delete:yz}}}function Jle(e){this.enter({type:"delete",children:[]},e)}function ese(e){this.exit(e)}function yz(e,t,n,i){const o=n.createTracker(i),s=n.enter("strikethrough");let f=o.move("~~");return f+=n.containerPhrasing(e,{...o.current(),before:f,after:"~"}),f+=o.move("~~"),s(),f}function tse(){return"~"}function nse(e){return e.length}function rse(e,t){const n=t||{},i=(n.align||[]).concat(),o=n.stringLength||nse,s=[],f=[],d=[],h=[];let y=0,b=-1;for(;++b<e.length;){const R=[],_=[];let N=-1;for(e[b].length>y&&(y=e[b].length);++N<e[b].length;){const z=ise(e[b][N]);if(n.alignDelimiters!==!1){const B=o(z);_[N]=B,(h[N]===void 0||B>h[N])&&(h[N]=B)}R.push(z)}f[b]=R,d[b]=_}let x=-1;if(typeof i=="object"&&"length"in i)for(;++x<y;)s[x]=vz(i[x]);else{const R=vz(i);for(;++x<y;)s[x]=R}x=-1;const T=[],w=[];for(;++x<y;){const R=s[x];let _="",N="";R===99?(_=":",N=":"):R===108?_=":":R===114&&(N=":");let z=n.alignDelimiters===!1?1:Math.max(1,h[x]-_.length-N.length);const B=_+"-".repeat(z)+N;n.alignDelimiters!==!1&&(z=_.length+z+N.length,z>h[x]&&(h[x]=z),w[x]=z),T[x]=B}f.splice(1,0,T),d.splice(1,0,w),b=-1;const C=[];for(;++b<f.length;){const R=f[b],_=d[b];x=-1;const N=[];for(;++x<y;){const z=R[x]||"";let B="",V="";if(n.alignDelimiters!==!1){const I=h[x]-(_[x]||0),P=s[x];P===114?B=" ".repeat(I):P===99?I%2?(B=" ".repeat(I/2+.5),V=" ".repeat(I/2-.5)):(B=" ".repeat(I/2),V=B):V=" ".repeat(I)}n.delimiterStart!==!1&&!x&&N.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&z==="")&&(n.delimiterStart!==!1||x)&&N.push(" "),n.alignDelimiters!==!1&&N.push(B),N.push(z),n.alignDelimiters!==!1&&N.push(V),n.padding!==!1&&N.push(" "),(n.delimiterEnd!==!1||x!==y-1)&&N.push("|")}C.push(n.delimiterEnd===!1?N.join("").replace(/ +$/,""):N.join(""))}return C.join(`
`)}function ise(e){return e==null?"":String(e)}function vz(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 ase(e,t,n,i){const o=n.enter("blockquote"),s=n.createTracker(i);s.move("> "),s.shift(2);const f=n.indentLines(n.containerFlow(e,s.current()),ose);return o(),f}function ose(e,t,n){return">"+(n?"":" ")+e}function lse(e,t){return bz(e,t.inConstruct,!0)&&!bz(e,t.notInConstruct,!1)}function bz(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 Sz(e,t,n,i){let o=-1;for(;++o<n.unsafe.length;)if(n.unsafe[o].character===`
`&&lse(n.stack,n.unsafe[o]))return/[ \t]/.test(i.before)?"":" ";return`\\
`}function xz(e,t){const n=String(e);let i=n.indexOf(t),o=i,s=0,f=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===o?++s>f&&(f=s):s=1,o=i+t.length,i=n.indexOf(t,o);return f}function sse(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 use(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 cse(e,t,n,i){const o=use(n),s=e.value||"",f=o==="`"?"GraveAccent":"Tilde";if(sse(e,n)){const x=n.enter("codeIndented"),T=n.indentLines(s,fse);return x(),T}const d=n.createTracker(i),h=o.repeat(Math.max(xz(s,o)+1,3)),y=n.enter("codeFenced");let b=d.move(h);if(e.lang){const x=n.enter(`codeFencedLang${f}`);b+=d.move(n.safe(e.lang,{before:b,after:" ",encode:["`"],...d.current()})),x()}if(e.lang&&e.meta){const x=n.enter(`codeFencedMeta${f}`);b+=d.move(" "),b+=d.move(n.safe(e.meta,{before:b,after:`
`,encode:["`"],...d.current()})),x()}return b+=d.move(`
`),s&&(b+=d.move(s+`
`)),b+=d.move(h),y(),b}function fse(e,t,n){return(n?"":"    ")+e}function C8(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 dse(e,t,n,i){const o=C8(n),s=o==='"'?"Quote":"Apostrophe",f=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()),f(),y}function hse(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 Vb(e){return"&#x"+e.toString(16).toUpperCase()+";"}function d6(e,t,n){const i=Rg(e),o=Rg(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}}Ez.peek=pse;function Ez(e,t,n,i){const o=hse(n),s=n.enter("emphasis"),f=n.createTracker(i),d=f.move(o);let h=f.move(n.containerPhrasing(e,{after:o,before:d,...f.current()}));const y=h.charCodeAt(0),b=d6(i.before.charCodeAt(i.before.length-1),y,o);b.inside&&(h=Vb(y)+h.slice(1));const x=h.charCodeAt(h.length-1),T=d6(i.after.charCodeAt(0),x,o);T.inside&&(h=h.slice(0,-1)+Vb(x));const w=f.move(o);return s(),n.attentionEncodeSurroundingInfo={after:T.outside,before:b.outside},d+h+w}function pse(e,t,n){return n.options.emphasis||"*"}function mse(e,t){let n=!1;return gT(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,pT}),!!((!e.depth||e.depth<3)&&rT(e)&&(t.options.setext||n))}function gse(e,t,n,i){const o=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(i);if(mse(e,n)){const b=n.enter("headingSetext"),x=n.enter("phrasing"),T=n.containerPhrasing(e,{...s.current(),before:`
`,after:`
`});return x(),b(),T+`
`+(o===1?"=":"-").repeat(T.length-(Math.max(T.lastIndexOf("\r"),T.lastIndexOf(`
`))+1))}const f="#".repeat(o),d=n.enter("headingAtx"),h=n.enter("phrasing");s.move(f+" ");let y=n.containerPhrasing(e,{before:"# ",after:`
`,...s.current()});return/^[\t ]/.test(y)&&(y=Vb(y.charCodeAt(0))+y.slice(1)),y=y?f+" "+y:f,n.options.closeAtx&&(y+=" "+f),h(),d(),y}wz.peek=yse;function wz(e){return e.value||""}function yse(){return"<"}Tz.peek=vse;function Tz(e,t,n,i){const o=C8(n),s=o==='"'?"Quote":"Apostrophe",f=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(")"),f(),y}function vse(){return"!"}Az.peek=bse;function Az(e,t,n,i){const o=e.referenceType,s=n.enter("imageReference");let f=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+"]["),f();const b=n.stack;n.stack=[],f=n.enter("reference");const x=n.safe(n.associationId(e),{before:h,after:"]",...d.current()});return f(),n.stack=b,s(),o==="full"||!y||y!==x?h+=d.move(x+"]"):o==="shortcut"?h=h.slice(0,-1):h+=d.move("]"),h}function bse(){return"!"}Cz.peek=Sse;function Cz(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 f=n.unsafe[s],d=n.compilePattern(f);let h;if(f.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 Sse(){return"`"}function Oz(e,t){const n=rT(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))}Mz.peek=xse;function Mz(e,t,n,i){const o=C8(n),s=o==='"'?"Quote":"Apostrophe",f=n.createTracker(i);let d,h;if(Oz(e,n)){const b=n.stack;n.stack=[],d=n.enter("autolink");let x=f.move("<");return x+=f.move(n.containerPhrasing(e,{before:x,after:">",...f.current()})),x+=f.move(">"),d(),n.stack=b,x}d=n.enter("link"),h=n.enter("label");let y=f.move("[");return y+=f.move(n.containerPhrasing(e,{before:y,after:"](",...f.current()})),y+=f.move("]("),h(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(h=n.enter("destinationLiteral"),y+=f.move("<"),y+=f.move(n.safe(e.url,{before:y,after:">",...f.current()})),y+=f.move(">")):(h=n.enter("destinationRaw"),y+=f.move(n.safe(e.url,{before:y,after:e.title?" ":")",...f.current()}))),h(),e.title&&(h=n.enter(`title${s}`),y+=f.move(" "+o),y+=f.move(n.safe(e.title,{before:y,after:o,...f.current()})),y+=f.move(o),h()),y+=f.move(")"),d(),y}function xse(e,t,n){return Oz(e,n)?"<":"["}Rz.peek=Ese;function Rz(e,t,n,i){const o=e.referenceType,s=n.enter("linkReference");let f=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+"]["),f();const b=n.stack;n.stack=[],f=n.enter("reference");const x=n.safe(n.associationId(e),{before:h,after:"]",...d.current()});return f(),n.stack=b,s(),o==="full"||!y||y!==x?h+=d.move(x+"]"):o==="shortcut"?h=h.slice(0,-1):h+=d.move("]"),h}function Ese(){return"["}function O8(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 wse(e){const t=O8(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 Tse(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 _z(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 Ase(e,t,n,i){const o=n.enter("list"),s=n.bulletCurrent;let f=e.ordered?Tse(n):O8(n);const d=e.ordered?f==="."?")":".":wse(n);let h=t&&n.bulletLastUsed?f===n.bulletLastUsed:!1;if(!e.ordered){const b=e.children?e.children[0]:void 0;if((f==="*"||f==="-")&&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),_z(n)===f&&b){let x=-1;for(;++x<e.children.length;){const T=e.children[x];if(T&&T.type==="listItem"&&T.children&&T.children[0]&&T.children[0].type==="thematicBreak"){h=!0;break}}}}h&&(f=d),n.bulletCurrent=f;const y=n.containerFlow(e,i);return n.bulletLastUsed=f,n.bulletCurrent=s,o(),y}function Cse(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 Ose(e,t,n,i){const o=Cse(n);let s=n.bulletCurrent||O8(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 f=s.length+1;(o==="tab"||o==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(f=Math.ceil(f/4)*4);const d=n.createTracker(i);d.move(s+" ".repeat(f-s.length)),d.shift(f);const h=n.enter("listItem"),y=n.indentLines(n.containerFlow(e,d.current()),b);return h(),y;function b(x,T,w){return T?(w?"":" ".repeat(f))+x:(w?s:s+" ".repeat(f-s.length))+x}}function Mse(e,t,n,i){const o=n.enter("paragraph"),s=n.enter("phrasing"),f=n.containerPhrasing(e,i);return s(),o(),f}const Rse=Mb(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function _se(e,t,n,i){return(e.children.some(function(f){return Rse(f)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function Dse(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Dz.peek=kse;function Dz(e,t,n,i){const o=Dse(n),s=n.enter("strong"),f=n.createTracker(i),d=f.move(o+o);let h=f.move(n.containerPhrasing(e,{after:o,before:d,...f.current()}));const y=h.charCodeAt(0),b=d6(i.before.charCodeAt(i.before.length-1),y,o);b.inside&&(h=Vb(y)+h.slice(1));const x=h.charCodeAt(h.length-1),T=d6(i.after.charCodeAt(0),x,o);T.inside&&(h=h.slice(0,-1)+Vb(x));const w=f.move(o+o);return s(),n.attentionEncodeSurroundingInfo={after:T.outside,before:b.outside},d+h+w}function kse(e,t,n){return n.options.strong||"*"}function Nse(e,t,n,i){return n.safe(e.value,i)}function zse(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 Ise(e,t,n){const i=(_z(n)+(n.options.ruleSpaces?" ":"")).repeat(zse(n));return n.options.ruleSpaces?i.slice(0,-1):i}const kz={blockquote:ase,break:Sz,code:cse,definition:dse,emphasis:Ez,hardBreak:Sz,heading:gse,html:wz,image:Tz,imageReference:Az,inlineCode:Cz,link:Mz,linkReference:Rz,list:Ase,listItem:Ose,paragraph:Mse,root:_se,strong:Dz,text:Nse,thematicBreak:Ise};function Lse(){return{enter:{table:Bse,tableData:Nz,tableHeader:Nz,tableRow:Use},exit:{codeText:Pse,table:Vse,tableData:M8,tableHeader:M8,tableRow:M8}}}function Bse(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 Vse(e){this.exit(e),this.data.inTable=void 0}function Use(e){this.enter({type:"tableRow",children:[]},e)}function M8(e){this.exit(e)}function Nz(e){this.enter({type:"tableCell",children:[]},e)}function Pse(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,$se));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function $se(e,t){return t==="|"?t:e}function jse(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:f,tableCell:h,tableRow:d}};function f(w,C,R,_){return y(b(w,R,_),w.align)}function d(w,C,R,_){const N=x(w,R,_),z=y([N]);return z.slice(0,z.indexOf(`
`))}function h(w,C,R,_){const N=R.enter("tableCell"),z=R.enter("phrasing"),B=R.containerPhrasing(w,{..._,before:s,after:s});return z(),N(),B}function y(w,C){return rse(w,{align:C,alignDelimiters:i,padding:n,stringLength:o})}function b(w,C,R){const _=w.children;let N=-1;const z=[],B=C.enter("table");for(;++N<_.length;)z[N]=x(_[N],C,R);return B(),z}function x(w,C,R){const _=w.children;let N=-1;const z=[],B=C.enter("tableRow");for(;++N<_.length;)z[N]=h(_[N],w,C,R);return B(),z}function T(w,C,R){let _=kz.inlineCode(w,C,R);return R.stack.includes("tableCell")&&(_=_.replace(/\|/g,"\\$&")),_}}function Hse(){return{exit:{taskListCheckValueChecked:zz,taskListCheckValueUnchecked:zz,paragraph:Fse}}}function qse(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:Gse}}}function zz(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Fse(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,f;for(;++s<o.length;){const d=o[s];if(d.type==="paragraph"){f=d;break}}f===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 Gse(e,t,n,i){const o=e.children[0],s=typeof e.checked=="boolean"&&o&&o.type==="paragraph",f="["+(e.checked?"x":" ")+"] ",d=n.createTracker(i);s&&d.move(f);let h=kz.listItem(e,t,n,{...i,...d.current()});return s&&(h=h.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,y)),h;function y(b){return b+f}}function Yse(){return[Cle(),Yle(),Kle(),Lse(),Hse()]}function Xse(e){return{extensions:[Ole(),Xle(e),Zle(),jse(e),qse()]}}const Wse={tokenize:tue,partial:!0},Iz={tokenize:nue,partial:!0},Lz={tokenize:rue,partial:!0},Bz={tokenize:iue,partial:!0},Qse={tokenize:aue,partial:!0},Vz={name:"wwwAutolink",tokenize:Jse,previous:Pz},Uz={name:"protocolAutolink",tokenize:eue,previous:$z},gf={name:"emailAutolink",tokenize:Zse,previous:jz},pc={};function Kse(){return{text:pc}}let Lh=48;for(;Lh<123;)pc[Lh]=gf,Lh++,Lh===58?Lh=65:Lh===91&&(Lh=97);pc[43]=gf,pc[45]=gf,pc[46]=gf,pc[95]=gf,pc[72]=[gf,Uz],pc[104]=[gf,Uz],pc[87]=[gf,Vz],pc[119]=[gf,Vz];function Zse(e,t,n){const i=this;let o,s;return f;function f(x){return!R8(x)||!jz.call(i,i.previous)||_8(i.events)?n(x):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),d(x))}function d(x){return R8(x)?(e.consume(x),d):x===64?(e.consume(x),h):n(x)}function h(x){return x===46?e.check(Qse,b,y)(x):x===45||x===95||ja(x)?(s=!0,e.consume(x),h):b(x)}function y(x){return e.consume(x),o=!0,h}function b(x){return s&&o&&po(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(x)):n(x)}}function Jse(e,t,n){const i=this;return o;function o(f){return f!==87&&f!==119||!Pz.call(i,i.previous)||_8(i.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Wse,e.attempt(Iz,e.attempt(Lz,s),n),n)(f))}function s(f){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(f)}}function eue(e,t,n){const i=this;let o="",s=!1;return f;function f(x){return(x===72||x===104)&&$z.call(i,i.previous)&&!_8(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),o+=String.fromCodePoint(x),e.consume(x),d):n(x)}function d(x){if(po(x)&&o.length<5)return o+=String.fromCodePoint(x),e.consume(x),d;if(x===58){const T=o.toLowerCase();if(T==="http"||T==="https")return e.consume(x),h}return n(x)}function h(x){return x===47?(e.consume(x),s?y:(s=!0,h)):n(x)}function y(x){return x===null||N3(x)||Cr(x)||_h(x)||z3(x)?n(x):e.attempt(Iz,e.attempt(Lz,b),n)(x)}function b(x){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(x)}}function tue(e,t,n){let i=0;return o;function o(f){return(f===87||f===119)&&i<3?(i++,e.consume(f),o):f===46&&i===3?(e.consume(f),s):n(f)}function s(f){return f===null?n(f):t(f)}}function nue(e,t,n){let i,o,s;return f;function f(y){return y===46||y===95?e.check(Bz,h,d)(y):y===null||Cr(y)||_h(y)||y!==45&&z3(y)?h(y):(s=!0,e.consume(y),f)}function d(y){return y===95?i=!0:(o=i,i=void 0),e.consume(y),f}function h(y){return o||i||!s?n(y):t(y)}}function rue(e,t){let n=0,i=0;return o;function o(f){return f===40?(n++,e.consume(f),o):f===41&&i<n?s(f):f===33||f===34||f===38||f===39||f===41||f===42||f===44||f===46||f===58||f===59||f===60||f===63||f===93||f===95||f===126?e.check(Bz,t,s)(f):f===null||Cr(f)||_h(f)?t(f):(e.consume(f),o)}function s(f){return f===41&&i++,e.consume(f),o}}function iue(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||Cr(d)||_h(d)?t(d):n(d)}function o(d){return d===null||d===40||d===91||Cr(d)||_h(d)?t(d):i(d)}function s(d){return po(d)?f(d):n(d)}function f(d){return d===59?(e.consume(d),i):po(d)?(e.consume(d),f):n(d)}}function aue(e,t,n){return i;function i(s){return e.consume(s),o}function o(s){return ja(s)?n(s):t(s)}}function Pz(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Cr(e)}function $z(e){return!po(e)}function jz(e){return!(e===47||R8(e))}function R8(e){return e===43||e===45||e===46||e===95||ja(e)}function _8(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 oue={tokenize:pue,partial:!0};function lue(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:fue,continuation:{tokenize:due},exit:hue}},text:{91:{name:"gfmFootnoteCall",tokenize:cue},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:sue,resolveTo:uue}}}}function sue(e,t,n){const i=this;let o=i.events.length;const s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let f;for(;o--;){const h=i.events[o][1];if(h.type==="labelImage"){f=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(!f||!f._balanced)return n(h);const y=du(i.sliceSerialize({start:f.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 uue(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)},f={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",f,t],["exit",f,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 cue(e,t,n){const i=this,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s=0,f;return d;function d(x){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(x),e.exit("gfmFootnoteCallLabelMarker"),h}function h(x){return x!==94?n(x):(e.enter("gfmFootnoteCallMarker"),e.consume(x),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",y)}function y(x){if(s>999||x===93&&!f||x===null||x===91||Cr(x))return n(x);if(x===93){e.exit("chunkString");const T=e.exit("gfmFootnoteCallString");return o.includes(du(i.sliceSerialize(T)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(x),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(x)}return Cr(x)||(f=!0),s++,e.consume(x),x===92?b:y}function b(x){return x===91||x===92||x===93?(e.consume(x),s++,y):y(x)}}function fue(e,t,n){const i=this,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s,f=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(f>999||C===93&&!d||C===null||C===91||Cr(C))return n(C);if(C===93){e.exit("chunkString");const R=e.exit("gfmFootnoteDefinitionLabelString");return s=du(i.sliceSerialize(R)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(C),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),T}return Cr(C)||(d=!0),f++,e.consume(C),C===92?x:b}function x(C){return C===91||C===92||C===93?(e.consume(C),f++,b):b(C)}function T(C){return C===58?(e.enter("definitionMarker"),e.consume(C),e.exit("definitionMarker"),o.includes(s)||o.push(s),_n(e,w,"gfmFootnoteDefinitionWhitespace")):n(C)}function w(C){return t(C)}}function due(e,t,n){return e.check(Eb,t,e.attempt(oue,t,n))}function hue(e){e.exit("gfmFootnoteDefinition")}function pue(e,t,n){const i=this;return _n(e,o,"gfmFootnoteDefinitionIndent",5);function o(s){const f=i.events[i.events.length-1];return f&&f[1].type==="gfmFootnoteDefinitionIndent"&&f[2].sliceSerialize(f[1],!0).length===4?t(s):n(s)}}function mue(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(f,d){let h=-1;for(;++h<f.length;)if(f[h][0]==="enter"&&f[h][1].type==="strikethroughSequenceTemporary"&&f[h][1]._close){let y=h;for(;y--;)if(f[y][0]==="exit"&&f[y][1].type==="strikethroughSequenceTemporary"&&f[y][1]._open&&f[h][1].end.offset-f[h][1].start.offset===f[y][1].end.offset-f[y][1].start.offset){f[h][1].type="strikethroughSequence",f[y][1].type="strikethroughSequence";const b={type:"strikethrough",start:Object.assign({},f[y][1].start),end:Object.assign({},f[h][1].end)},x={type:"strikethroughText",start:Object.assign({},f[y][1].end),end:Object.assign({},f[h][1].start)},T=[["enter",b,d],["enter",f[y][1],d],["exit",f[y][1],d],["enter",x,d]],w=d.parser.constructs.insideSpan.null;w&&El(T,T.length,0,I3(w,f.slice(y+1,h),d)),El(T,T.length,0,[["exit",x,d],["enter",f[h][1],d],["exit",f[h][1],d],["exit",b,d]]),El(f,y-1,h-y+3,T),h=y+T.length-2;break}}for(h=-1;++h<f.length;)f[h][1].type==="strikethroughSequenceTemporary"&&(f[h][1].type="data");return f}function s(f,d,h){const y=this.previous,b=this.events;let x=0;return T;function T(C){return y===126&&b[b.length-1][1].type!=="characterEscape"?h(C):(f.enter("strikethroughSequenceTemporary"),w(C))}function w(C){const R=Rg(y);if(C===126)return x>1?h(C):(f.consume(C),x++,w);if(x<2&&!n)return h(C);const _=f.exit("strikethroughSequenceTemporary"),N=Rg(C);return _._open=!N||N===2&&!!R,_._close=!R||R===2&&!!N,d(C)}}}class gue{constructor(){this.map=[]}add(t,n,i){yue(this,t,n,i)}consume(t){if(this.map.sort(function(s,f){return s[0]-f[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 yue(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 vue(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 bue(){return{flow:{null:{name:"table",tokenize:Sue,resolveAll:xue}}}}function Sue(e,t,n){const i=this;let o=0,s=0,f;return d;function d(re){let le=i.events.length-1;for(;le>-1;){const W=i.events[le][1].type;if(W==="lineEnding"||W==="linePrefix")le--;else break}const $=le>-1?i.events[le][1].type:null,oe=$==="tableHead"||$==="tableRow"?P:h;return oe===P&&i.parser.lazy[i.now().line]?n(re):oe(re)}function h(re){return e.enter("tableHead"),e.enter("tableRow"),y(re)}function y(re){return re===124||(f=!0,s+=1),b(re)}function b(re){return re===null?n(re):zt(re)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(re),e.exit("lineEnding"),w):n(re):Ln(re)?_n(e,b,"whitespace")(re):(s+=1,f&&(f=!1,o+=1),re===124?(e.enter("tableCellDivider"),e.consume(re),e.exit("tableCellDivider"),f=!0,b):(e.enter("data"),x(re)))}function x(re){return re===null||re===124||Cr(re)?(e.exit("data"),b(re)):(e.consume(re),re===92?T:x)}function T(re){return re===92||re===124?(e.consume(re),x):x(re)}function w(re){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(re):(e.enter("tableDelimiterRow"),f=!1,Ln(re)?_n(e,C,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(re):C(re))}function C(re){return re===45||re===58?_(re):re===124?(f=!0,e.enter("tableCellDivider"),e.consume(re),e.exit("tableCellDivider"),R):I(re)}function R(re){return Ln(re)?_n(e,_,"whitespace")(re):_(re)}function _(re){return re===58?(s+=1,f=!0,e.enter("tableDelimiterMarker"),e.consume(re),e.exit("tableDelimiterMarker"),N):re===45?(s+=1,N(re)):re===null||zt(re)?V(re):I(re)}function N(re){return re===45?(e.enter("tableDelimiterFiller"),z(re)):I(re)}function z(re){return re===45?(e.consume(re),z):re===58?(f=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(re),e.exit("tableDelimiterMarker"),B):(e.exit("tableDelimiterFiller"),B(re))}function B(re){return Ln(re)?_n(e,V,"whitespace")(re):V(re)}function V(re){return re===124?C(re):re===null||zt(re)?!f||o!==s?I(re):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(re)):I(re)}function I(re){return n(re)}function P(re){return e.enter("tableRow"),Y(re)}function Y(re){return re===124?(e.enter("tableCellDivider"),e.consume(re),e.exit("tableCellDivider"),Y):re===null||zt(re)?(e.exit("tableRow"),t(re)):Ln(re)?_n(e,Y,"whitespace")(re):(e.enter("data"),se(re))}function se(re){return re===null||re===124||Cr(re)?(e.exit("data"),Y(re)):(e.consume(re),re===92?ue:se)}function ue(re){return re===92||re===124?(e.consume(re),se):se(re)}}function xue(e,t){let n=-1,i=!0,o=0,s=[0,0,0,0],f=[0,0,0,0],d=!1,h=0,y,b,x;const T=new gue;for(;++n<e.length;){const w=e[n],C=w[1];w[0]==="enter"?C.type==="tableHead"?(d=!1,h!==0&&(Hz(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,x=void 0,s=[0,0,0,0],f=[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,f[2]===0&&(s[1]!==0&&(f[0]=f[1],x=h6(T,t,s,o,void 0,x),s=[0,0,0,0]),f[2]=n)):C.type==="tableCellDivider"&&(i?i=!1:(s[1]!==0&&(f[0]=f[1],x=h6(T,t,s,o,void 0,x)),s=f,f=[s[1],n,0,0])):C.type==="tableHead"?(d=!0,h=n):C.type==="tableRow"||C.type==="tableDelimiterRow"?(h=n,s[1]!==0?(f[0]=f[1],x=h6(T,t,s,o,n,x)):f[1]!==0&&(x=h6(T,t,f,o,n,x)),o=0):o&&(C.type==="data"||C.type==="tableDelimiterMarker"||C.type==="tableDelimiterFiller")&&(f[3]=n)}for(h!==0&&Hz(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=vue(t.events,n))}return e}function h6(e,t,n,i,o,s){const f=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",d="tableContent";n[0]!==0&&(s.end=Object.assign({},Lg(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const h=Lg(t.events,n[1]);if(s={type:f,start:Object.assign({},h),end:Object.assign({},h)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const y=Lg(t.events,n[2]),b=Lg(t.events,n[3]),x={type:d,start:Object.assign({},y),end:Object.assign({},b)};if(e.add(n[2],0,[["enter",x,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,R=n[3]-n[2]-1;e.add(C,R,[])}}e.add(n[3]+1,0,[["exit",x,t]])}return o!==void 0&&(s.end=Object.assign({},Lg(t.events,o)),e.add(o,0,[["exit",s,t]]),s=void 0),s}function Hz(e,t,n,i,o){const s=[],f=Lg(t.events,n);o&&(o.end=Object.assign({},f),s.push(["exit",o,t])),i.end=Object.assign({},f),s.push(["exit",i,t]),e.add(n+1,0,s)}function Lg(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const Eue={name:"tasklistCheck",tokenize:Tue};function wue(){return{text:{91:Eue}}}function Tue(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 Cr(h)?(e.enter("taskListCheckValueUnchecked"),e.consume(h),e.exit("taskListCheckValueUnchecked"),f):h===88||h===120?(e.enter("taskListCheckValueChecked"),e.consume(h),e.exit("taskListCheckValueChecked"),f):n(h)}function f(h){return h===93?(e.enter("taskListCheckMarker"),e.consume(h),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),d):n(h)}function d(h){return zt(h)?t(h):Ln(h)?e.check({tokenize:Aue},t,n)(h):n(h)}}function Aue(e,t,n){return _n(e,i,"whitespace");function i(o){return o===null?n(o):t(o)}}function Cue(e){return CD([Kse(),lue(),mue(e),bue(),wue()])}const Oue={};function Mue(e){const t=this,n=e||Oue,i=t.data(),o=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),f=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);o.push(Cue(n)),s.push(Yse()),f.push(Xse(n))}function Rue(){return{enter:{mathFlow:e,mathFlowFenceMeta:t,mathText:s},exit:{mathFlow:o,mathFlowFence:i,mathFlowFenceMeta:n,mathFlowValue:d,mathText:f,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 x=b.data.hChildren[0];x.type,x.tagName,x.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 f(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 _ue(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,f,d,h){const y=s.value||"",b=d.createTracker(h),x="$".repeat(Math.max(xz(y,"$")+1,2)),T=d.enter("mathFlow");let w=b.move(x);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(x),T(),w}function i(s,f,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 x=-1;for(;++x<d.unsafe.length;){const T=d.unsafe[x];if(!T.atBreak)continue;const w=d.compilePattern(T);let C;for(;C=w.exec(h);){let R=C.index;h.codePointAt(R)===10&&h.codePointAt(R-1)===13&&R--,h=h.slice(0,R)+" "+h.slice(C.index+1)}}return b+h+b}function o(){return"$"}}const Due={tokenize:kue,concrete:!0,name:"mathFlow"},qz={tokenize:Nue,partial:!0};function kue(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 f=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),f++,h):f<2?n(z):(e.exit("mathFlowFenceSequence"),_n(e,y,"whitespace")(z))}function y(z){return z===null||zt(z)?x(z):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),b(z))}function b(z){return z===null||zt(z)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),x(z)):z===36?n(z):(e.consume(z),b)}function x(z){return e.exit("mathFlowFence"),i.interrupt?t(z):e.attempt(qz,T,_)(z)}function T(z){return e.attempt({tokenize:N,partial:!0},_,w)(z)}function w(z){return(s?_n(e,C,"linePrefix",s+1):C)(z)}function C(z){return z===null?_(z):zt(z)?e.attempt(qz,T,_)(z):(e.enter("mathFlowValue"),R(z))}function R(z){return z===null||zt(z)?(e.exit("mathFlowValue"),C(z)):(e.consume(z),R)}function _(z){return e.exit("mathFlow"),t(z)}function N(z,B,V){let I=0;return _n(z,P,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function P(ue){return z.enter("mathFlowFence"),z.enter("mathFlowFenceSequence"),Y(ue)}function Y(ue){return ue===36?(I++,z.consume(ue),Y):I<f?V(ue):(z.exit("mathFlowFenceSequence"),_n(z,se,"whitespace")(ue))}function se(ue){return ue===null||zt(ue)?(z.exit("mathFlowFence"),B(ue)):V(ue)}}}function Nue(e,t,n){const i=this;return o;function o(f){return f===null?t(f):(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),s)}function s(f){return i.parser.lazy[i.now().line]?n(f):t(f)}}function zue(e){let n=(e||{}).singleDollarTextMath;return n==null&&(n=!0),{tokenize:i,resolve:Iue,previous:Lue,name:"mathText"};function i(o,s,f){let d=0,h,y;return b;function b(R){return o.enter("mathText"),o.enter("mathTextSequence"),x(R)}function x(R){return R===36?(o.consume(R),d++,x):d<2&&!n?f(R):(o.exit("mathTextSequence"),T(R))}function T(R){return R===null?f(R):R===36?(y=o.enter("mathTextSequence"),h=0,C(R)):R===32?(o.enter("space"),o.consume(R),o.exit("space"),T):zt(R)?(o.enter("lineEnding"),o.consume(R),o.exit("lineEnding"),T):(o.enter("mathTextData"),w(R))}function w(R){return R===null||R===32||R===36||zt(R)?(o.exit("mathTextData"),T(R)):(o.consume(R),w)}function C(R){return R===36?(o.consume(R),h++,C):h===d?(o.exit("mathTextSequence"),o.exit("mathText"),s(R)):(y.type="mathTextData",w(R))}}}function Iue(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 Lue(e){return e!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Bue(e){return{flow:{36:Due},text:{36:zue(e)}}}const Vue={};function Uue(e){const t=this,n=e||Vue,i=t.data(),o=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),f=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);o.push(Bue(n)),s.push(Rue()),f.push(_ue(n))}const Pue=({text:e,isUser:t,onTypingUpdate:n})=>{const[i,o]=G.useState(""),[s,f]=G.useState(!0),d=G.useRef(null),h=lu("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),f(!1);return}let x=0;const w=setInterval(()=>{x<=e.length?(o(e.slice(0,x)),x++,n&&n()):(f(!1),clearInterval(w))},10);return()=>clearInterval(w)},[e,t,y]),G.useEffect(()=>{if(!s&&d.current){const x=d.current.textContent||"";d.current.setAttribute("aria-label",`AI message: ${x}`)}},[s]),ce.createElement(Si,{style:b},ce.createElement("div",{className:`chat-message-content ${t?"user":""}`},ce.createElement(Rie,{rehypePlugins:[cle,[Sle,{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:[Mue,Uue],components:{pre:({node:x,...T})=>ce.createElement("pre",{...T,role:"text","aria-label":"Code block"}),a:({node:x,...T})=>ce.createElement("a",{...T,"aria-label":`Link: ${T.children}`}),img:({node:x,...T})=>ce.createElement("img",{...T,alt:T.alt||"Image in message"})}},i)),ce.createElement("div",{className:"sr-only","aria-live":h.general.ariaMode,"aria-atomic":"true"},s?"":e),s&&!y&&ce.createElement("span",{className:"typing-cursor","aria-hidden":"true",role:"presentation"},"|"))};function D8(e){switch(e){case"OPENAI":return"OpenAI";case"ANTHROPIC_CLAUDE":return"Anthropic Claude";case"GOOGLE_GEMINI":return"Google Gemini";default:return"AI Assistant"}}const $ue=({message:e,disabled:t,_onOpenSettings:n,onTypingUpdate:i})=>{const o=()=>e.isUser?ce.createElement(oY,null):ce.createElement(_ee,{model:e.model}),s=()=>{const f=e.isUser?"Your message":"AI Assistant message",d=e.isUser?"":` from ${D8(e.model)}`,h=!e.isUser&&e.status==="PENDING"?" (typing)":"";return`${f}${d}${h}`};return ce.createElement(Si,{sx:{display:"flex",justifyContent:e.isUser?"flex-end":"flex-start",mb:2},role:"listitem"},ce.createElement(Si,{sx:{display:"flex",alignItems:"flex-start",gap:1.5,maxWidth:"80%",flexDirection:e.isUser?"row-reverse":"row"}},ce.createElement(UR,{className:`chat-avatar ${e.isUser?"user":""}`,"aria-hidden":"true"},o()),ce.createElement(Si,{className:`chat-bubble ${e.isUser?"user":"ai"}`,role:"article","aria-label":s()},!e.isUser&&ce.createElement(Fr,{className:"model-name",variant:"caption",fontWeight:"medium",color:"text.secondary",component:"h3",sx:{fontSize:"0.8rem",margin:0,marginBottom:.5},"aria-label":`Model: ${D8(e.model)}`},D8(e.model)),ce.createElement(Pue,{text:e.text,isUser:e.isUser,onTypingUpdate:i}),e.isWelcomeMessage&&e.modelSelections&&ce.createElement(Dee,{enabledModels:e.modelSelections}),ce.createElement(Si,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mt:.5}},t&&e.id.startsWith("system-")&&ce.createElement(vg,{variant:"text",onClick:n,"aria-label":"Open settings",style:{padding:0}},"Open Settings"),ce.createElement(Fr,{className:"timestamp",variant:"caption",color:"text.secondary",component:"time",dateTime:new Date(e.timestamp).toISOString(),"aria-label":`Sent at ${new Date(e.timestamp).toLocaleTimeString()}`},new Date(e.timestamp).toLocaleTimeString())),!e.isUser&&e.status==="PENDING"&&ce.createElement(Si,{role:"status","aria-label":"AI is typing"},ce.createElement(Fv,{size:16})))))},Fz=G.memo(({suggestion:e,onClick:t})=>{const n=nf();return ce.createElement(zR,{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}}})});Fz.displayName="SuggestionChip";const Gz=G.memo(({suggestions:e,onSuggestionClick:t})=>{const n=nf();return!e||!e.length?null:ce.createElement(Si,{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}},e.map(i=>ce.createElement(Fz,{key:i.id,suggestion:i,onClick:()=>t(i)})))});Gz.displayName="Suggestions";const jue=()=>{var B;const e=G.useId(),t=nf(),n=Wu("chat"),i=Wu("settings"),{messages:o,suggestions:s}=lu("chat"),f=!n.canSend,[d,h]=G.useState(""),y=G.useRef(null),b=G.useRef(null),x=G.useRef(0),T=G.useRef(null),w=()=>{i.toggle()},C=(V=!1)=>{if(!b.current)return;const I=b.current;(I.scrollTop+I.clientHeight>=I.scrollHeight-100||V)&&requestAnimationFrame(()=>{I.scrollTo({top:I.scrollHeight,behavior:"smooth"})})};G.useEffect(()=>{const V=setTimeout(()=>{C(!0)},200);return()=>clearTimeout(V)},[o.length]),G.useEffect(()=>{setTimeout(()=>C(!0),200)},[]),G.useEffect(()=>{if(!b.current)return;const V=b.current;return T.current&&T.current.disconnect(),T.current=new MutationObserver(I=>{let P=!1;I.forEach(Y=>{(Y.type==="childList"||Y.type==="characterData")&&V.scrollTop+V.clientHeight>=V.scrollHeight-100&&(P=!0)}),P&&requestAnimationFrame(()=>{V.scrollTo({top:V.scrollHeight,behavior:"auto"})})}),T.current.observe(V,{childList:!0,subtree:!0,characterData:!0}),()=>{T.current&&T.current.disconnect()}},[o.length]),G.useEffect(()=>{if(!b.current)return;const V=b.current,I=V.scrollHeight;I>x.current&&V.scrollTop+V.clientHeight>=x.current-100&&requestAnimationFrame(()=>{V.scrollTo({top:I,behavior:"auto"})}),x.current=I},[o]),G.useEffect(()=>{if(o.length>0){const V=o[o.length-1];if(V.status==="SUCCESS"||V.status==="FAILED"){const I=setTimeout(()=>{C(!0)},300);return()=>clearTimeout(I)}}},[o.length>0?(B=o[o.length-1])==null?void 0:B.status:""]);const R=()=>{n.toggle()},_=()=>{d.trim()&&(n.sendMessage(d),h(""),setTimeout(()=>C(!0),100))},N=V=>{h(V.text)},z=V=>{V.key==="Enter"&&!V.shiftKey&&(V.preventDefault(),_())};return ce.createElement(ab,{id:e,role:"dialog",open:!0,onClose:R,maxWidth:"md",fullWidth:!0,disablePortal:!0,sx:{"& .MuiDialog-paper":{height:"70vh",maxHeight:"90vh"}}},ce.createElement(Iw,{component:"h2",sx:{p:2}},ce.createElement(Nt,{container:!0,justifyContent:"space-between",alignItems:"center"},ce.createElement(Nt,{size:"auto"},ce.createElement(Fr,{variant:"h6",fontWeight:"bold",component:"h2",sx:{margin:0},"aria-label":"Chart Assistant - AI Chat Interface"},"Chart Assistant")),ce.createElement(Nt,{size:"auto"},ce.createElement(cg,{onClick:R,"aria-label":"Close chat dialog"},ce.createElement(PM,null))))),ce.createElement(ob,{dividers:!0,sx:{p:0,overflow:"hidden"}},ce.createElement(Nt,{container:!0,direction:"column",sx:{height:"100%"}},ce.createElement(Nt,{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"}}},o.map(V=>ce.createElement($ue,{key:V.id,message:V,disabled:f,_onOpenSettings:w,onTypingUpdate:()=>{if(b.current){const I=b.current;I.scrollTop+I.clientHeight>=I.scrollHeight-100&&requestAnimationFrame(()=>{I.scrollTo({top:I.scrollHeight,behavior:"auto"})})}}})),ce.createElement("div",{ref:y})),ce.createElement(Gz,{suggestions:s,onSuggestionClick:N}),ce.createElement(Nt,{size:12,component:"section","aria-label":"Message input",sx:{p:2,borderTop:`1px solid ${t.palette.divider}`}},ce.createElement(Nt,{container:!0,spacing:1,alignItems:"center"},ce.createElement(Nt,{size:{xs:10}},ce.createElement(Sl,{value:d,disabled:f,onChange:V=>h(V.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"})),ce.createElement(Nt,{size:{xs:2},container:!0,justifyContent:"flex-end"},ce.createElement(cg,{onClick:_,disabled:f,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}}},ce.createElement(uY,null))))))))};function Hue(){const e=co.instance.get("commandExecutor"),[t]=G.useState(e.getCurrentScope());return{executeCommand:G.useCallback(i=>{e.executeCommand(i)},[e]),currentScope:t}}const que=()=>{const e=Wu("commandPalette"),t=lu("commandPalette"),{executeCommand:n}=Hue(),[i]=G.useState(""),o=G.useRef(null),s=G.useRef(null),f=G.useRef(!1),d=G.useMemo(()=>{if(!t.search.trim())return t.commands;const x=t.search.toLowerCase();return t.commands.filter(T=>T.description.toLowerCase().includes(x)||T.key.toLowerCase().includes(x))},[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 x=s.current,T=x.children[t.selectedIndex];if(T){T.focus();const w=x.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(x=>{n(x),h()},[n,h]),b=G.useCallback(x=>{e.updateSearch(x.target.value)},[e]);return t.visible?ce.createElement(ab,{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"}}},ce.createElement(Si,{component:"h2",id:"command-palette-title",sx:{p:2,m:0}},ce.createElement(Si,{component:"span",sx:{fontSize:"1.25rem",fontWeight:600}},"Command Palette")),ce.createElement(ob,{dividers:!0,sx:{p:2,overflow:"hidden"}},ce.createElement(Si,{id:"command-palette-description",sx:{mb:2}},ce.createElement(Fr,{variant:"body2",color:"text.secondary",sx:{m:0}},"Type to search commands, use arrow keys to navigate the list, and press Enter to execute a command")),ce.createElement(Sl,{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:x=>{if(x.key==="Enter"){if(x.preventDefault(),x.stopPropagation(),d.length>0&&t.selectedIndex>=0){const T=d[t.selectedIndex];T&&y(T.commandKey)}}else x.key==="ArrowDown"?(x.preventDefault(),x.stopPropagation(),e.moveDown()):x.key==="ArrowUp"&&(x.preventDefault(),x.stopPropagation(),t.selectedIndex===0?e.moveToSearch():e.moveUp())}}}),ce.createElement(x3,{ref:s,id:"command-list",role:"listbox","aria-label":"Available commands",sx:{flex:1,overflow:"auto",maxHeight:"60vh"}},d.map((x,T)=>ce.createElement(c_,{key:x.commandKey,id:`command-${T}`,role:"option","aria-selected":T===t.selectedIndex,"aria-label":`${x.description} (${x.key})`,selected:T===t.selectedIndex,tabIndex:T===t.selectedIndex?0:-1,onClick:()=>{f.current||y(x.commandKey)},onKeyDown:w=>{w.key==="Enter"?(w.preventDefault(),w.stopPropagation(),f.current=!0,setTimeout(()=>{f.current=!1},100),y(x.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"}}},ce.createElement(Uw,{primary:x.description,secondary:`${x.key}`})))),i&&ce.createElement("div",{"aria-live":"assertive",style:{position:"absolute",left:"-10000px",width:"1px",height:"1px",overflow:"hidden"}},i))):null},Fue=({label:e,shortcut:t})=>ce.createElement(Nt,{container:!0,spacing:1,alignItems:"center",sx:{py:1}},ce.createElement(Nt,{size:{xs:12,sm:6,md:7}},ce.createElement(Fr,{variant:"body2"},e)),ce.createElement(Nt,{size:{xs:12,sm:6,md:5}},ce.createElement(Fr,{variant:"body2",fontWeight:300},t))),Gue=()=>{const e=G.useId(),t=Wu("help"),{items:n}=t.state,i=()=>{t.toggle()};return ce.createElement(ab,{id:e,role:"dialog",open:!0,onClose:i,maxWidth:"sm",fullWidth:!0,disablePortal:!0},ce.createElement(Nt,{container:!0,component:Iw},ce.createElement(Nt,{size:"grow"},ce.createElement(Fr,{variant:"h6",fontWeight:"bold"},"Keyboard Shortcuts"))),ce.createElement(ob,null,ce.createElement(Nt,{container:!0,spacing:1},n.map((o,s)=>ce.createElement(ce.Fragment,{key:s},ce.createElement(Nt,{size:12,key:s},ce.createElement(Fue,{label:o.description,shortcut:o.key})),s!==n.length-1&&ce.createElement(Nt,{size:12},ce.createElement(bg,null)))))),ce.createElement(Nt,{container:!0,component:zw},ce.createElement(Nt,{size:"grow",container:!0,spacing:1,justifyContent:"flex-end",sx:{px:2,py:1}},ce.createElement(Nt,{size:"auto"},ce.createElement(vg,{variant:"contained",color:"primary",onClick:i},"Close")))))},Yue=()=>{const e=G.useId(),{value:t}=lu("review");return ce.createElement("div",{id:e},ce.createElement("input",{id:`${ge.REVIEW_INPUT}-${e}`,defaultValue:t,onFocus:n=>n.target.setSelectionRange(0,0),size:50,type:"text",autoComplete:"off",autoFocus:!0}))};class p6{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"}}}}j(p6,"OPENAI_API_URL","https://api.openai.com/v1/models"),j(p6,"ANTHROPIC_API_URL","https://api.anthropic.com/v1/messages"),j(p6,"GEMINI_API_URL","https://generativelanguage.googleapis.com/v1beta/models");const m6=10;function Xue(e,t){const n=xv[e],i=n.options;return!t||!i.includes(t)?n.default:t}const Go=({label:e,input:t,alignLabel:n="center"})=>ce.createElement(Nt,{container:!0,spacing:1,alignItems:n,className:"settings-grid-container",sx:{py:1}},ce.createElement(Nt,{size:{xs:12,sm:6,md:4},sx:n==="flex-start"?{py:1}:void 0},ce.createElement(Fr,{variant:"body2",fontWeight:"normal"},e)),ce.createElement(Nt,{size:{xs:12,sm:6,md:8}},t)),Wue=({modelKey:e,modelSettings:t,onToggle:n,onChangeKey:i,onChangeVersion:o})=>{const s=Xue(e,t.version),[f,d]=G.useState(!1),[h,y]=G.useState(null),b=()=>t.enabled?f?"Validating API key...":h===!1?`${t.name} API key is invalid`:h===!0?`${t.name} API key is valid`:"":"",x=async w=>{if(!t.enabled||!w.trim()){y(null);return}d(!0);try{const C=await p6.validateApiKey(e,w);y(C.isValid)}catch{y(!1)}finally{d(!1)}};G.useEffect(()=>{const w=setTimeout(()=>{x(t.apiKey)},500);return()=>clearTimeout(w)},[t.apiKey,t.enabled,e]);const T=()=>{const w=xv[e];return w.options.map(C=>{const R=w.labels[C],_=t.version===C;return ce.createElement(Mh,{key:C,value:C,className:`llm-model-setting-row-menu-item ${_?"selected":""}`},_&&ce.createElement(UM,{className:"llm-model-setting-row-check-icon"}),R)})};return ce.createElement(Go,{label:t.name,input:ce.createElement(Nt,{container:!0,spacing:1,alignItems:"center"},ce.createElement(Nt,null,ce.createElement(G_,{checked:t.enabled,onChange:w=>n(e,w.target.checked),slotProps:{input:{"aria-label":`Enable ${t.name}`}}})),ce.createElement(Nt,{size:7},ce.createElement($i,{fullWidth:!0},ce.createElement(Sl,{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:ce.createElement(l_,{position:"end"},ce.createElement("div",{id:`${e}-status`,role:"status","aria-live":"polite","aria-label":f?"Validating API key":h===!0?"API key is valid":h===!1?"API key is invalid":""},f?ce.createElement(Fv,{size:20}):h===!0?ce.createElement(UM,{color:"success"}):h===!1?ce.createElement(lY,{color:"error"}):null))}}}))),ce.createElement(Nt,{size:8},ce.createElement($i,{fullWidth:!0},ce.createElement(wg,{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"}}},T()))))})},Que=()=>{const e=G.useId(),t=Wu("settings"),n=Wu("chat"),{general:i,llm:o}=t.state,[s,f]=G.useState(i),[d,h]=G.useState(o);G.useEffect(()=>{t.load()},[t]),G.useEffect(()=>{f(i),h(o)},[i,o]);const y=(z,B)=>{f(V=>({...V,[z]:B}))},b=(z,B)=>{h(V=>({...V,[z]:B}))},x=(z,B,V)=>{h(I=>({...I,models:{...I.models,[z]:{...I.models[z],[B]:B==="apiKey"&&typeof V=="string"?V.trim():V}}}))},T=()=>{t.reset();const{general:z,llm:B}=t.state;f(z),h(B)},w=()=>{t.toggle()},C=()=>{t.saveAndClose({general:s,llm:d}),n.refreshInitialMessage()},R=G.useCallback(z=>{z.stopPropagation()},[]),_=G.useCallback(z=>{z.stopPropagation(),b("expertiseLevel",z.target.value)},[b]),N=d.expertiseLevel!=="custom"||d.customInstruction.length>=m6;return ce.createElement(ab,{id:e,role:"dialog","aria-label":"Settings",open:!0,maxWidth:"sm",fullWidth:!0,disablePortal:!0,disableEnforceFocus:!0,onClick:z=>z.stopPropagation(),className:"settings-dialog"},ce.createElement(ob,{className:"settings-dialog-content"},ce.createElement(Nt,{size:"grow"},ce.createElement(Fr,{variant:"h6",fontWeight:"bold",gutterBottom:!0},"General Settings")),ce.createElement(Nt,{container:!0,spacing:.5},ce.createElement(Nt,{size:12},ce.createElement(Go,{label:"Volume",input:ce.createElement($i,{fullWidth:!0},ce.createElement(H_,{value:s.volume,onChange:(z,B)=>y("volume",Number(B)),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"}))})),ce.createElement(Nt,{size:12},ce.createElement(Go,{label:"Outline Color",input:ce.createElement($i,{fullWidth:!0},ce.createElement(Sl,{fullWidth:!0,type:"color",size:"small",value:s.highlightColor,onChange:z=>y("highlightColor",z.target.value),slotProps:{input:{inputProps:{"aria-label":"Highlight Color"}}}}))})),ce.createElement(Nt,{size:12},ce.createElement(Go,{label:"High Contrast Mode",input:ce.createElement($i,null,ce.createElement(Oh,{control:ce.createElement(FR,{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"}))})),ce.createElement(Nt,{size:12},ce.createElement(Go,{label:"High Contrast Levels",input:ce.createElement($i,{fullWidth:!0},ce.createElement(Sl,{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}}}}))})),ce.createElement(Nt,{size:12},ce.createElement(Go,{label:"High Contrast Light Color",input:ce.createElement($i,{fullWidth:!0},ce.createElement(Sl,{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"}}}}))})),ce.createElement(Nt,{size:12},ce.createElement(Go,{label:"High Contrast Dark Color",input:ce.createElement($i,{fullWidth:!0},ce.createElement(Sl,{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"}}}}))})),ce.createElement(Nt,{size:12},ce.createElement(Go,{label:"Braille Display Size",input:ce.createElement($i,{fullWidth:!0},ce.createElement(Sl,{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"}}}}))})),ce.createElement(Nt,{size:12},ce.createElement(Go,{label:"Min Frequency (Hz)",input:ce.createElement($i,{fullWidth:!0},ce.createElement(Sl,{fullWidth:!0,type:"number",size:"small",value:s.minFrequency,onChange:z=>y("minFrequency",Number(z.target.value)),slotProps:{input:{inputProps:{"aria-label":"Minimum Frequency"}}}}))})),ce.createElement(Nt,{size:12},ce.createElement(Go,{label:"Max Frequency (Hz)",input:ce.createElement($i,{fullWidth:!0},ce.createElement(Sl,{fullWidth:!0,type:"number",size:"small",value:s.maxFrequency,onChange:z=>y("maxFrequency",Number(z.target.value)),slotProps:{input:{inputProps:{"aria-label":"Maximum Frequency"}}}}))})),ce.createElement(Nt,{size:12},ce.createElement(Go,{label:"Autoplay Duration (ms)",input:ce.createElement($i,{fullWidth:!0},ce.createElement(Sl,{fullWidth:!0,type:"number",size:"small",value:s.autoplayDuration,onChange:z=>y("autoplayDuration",Number(z.target.value)),slotProps:{input:{inputProps:{"aria-label":"Autoplay Duration"}}}}))})),ce.createElement(Nt,{size:12},ce.createElement(Go,{label:"ARIA Mode",input:ce.createElement($i,null,ce.createElement(qw,{row:!0,value:s.ariaMode,onChange:z=>y("ariaMode",z.target.value),"aria-label":"ARIA Mode"},ce.createElement(Oh,{value:"assertive",control:ce.createElement(Eg,{size:"small"}),label:"Assertive"}),ce.createElement(Oh,{value:"polite",control:ce.createElement(Eg,{size:"small"}),label:"Polite"})))})),ce.createElement(Nt,{size:12},ce.createElement(Go,{label:"Hover Mode",input:ce.createElement($i,null,ce.createElement(qw,{row:!0,value:s.hoverMode,onChange:z=>y("hoverMode",z.target.value),"aria-label":"Hover Mode"},ce.createElement(Oh,{value:"off",control:ce.createElement(Eg,{size:"small"}),label:"Off"}),ce.createElement(Oh,{value:"pointermove",control:ce.createElement(Eg,{size:"small"}),label:"Hover"}),ce.createElement(Oh,{value:"click",control:ce.createElement(Eg,{size:"small"}),label:"Click"})))}))),ce.createElement(Nt,{size:12},ce.createElement(bg,{className:"settings-divider"})),ce.createElement(Nt,{container:!0,spacing:.5,className:"settings-section"},ce.createElement(Nt,{size:12},ce.createElement(Fr,{variant:"h6",fontWeight:"bold",gutterBottom:!0,className:"settings-section-title"},"LLM Settings")),Object.keys(d.models).map(z=>{const B=d.models[z];return ce.createElement(Nt,{size:12,key:z,className:"settings-model-row"},ce.createElement(Wue,{modelKey:z,modelSettings:B,onToggle:(V,I)=>x(V,"enabled",I),onChangeKey:(V,I)=>x(V,"apiKey",I),onChangeVersion:(V,I)=>x(V,"version",I)}))}),ce.createElement(Nt,{size:12,className:"settings-row"},ce.createElement($i,{fullWidth:!0,size:"small",className:"settings-model-select"},ce.createElement(Go,{label:"Expertise Level",input:ce.createElement(wg,{value:d.expertiseLevel,onChange:_,onClick:R,slotProps:{input:{"aria-label":"Expertise Level"}},MenuProps:{disablePortal:!0,PaperProps:{className:"llm-model-setting-select-menu"}}},ce.createElement(Mh,{value:"basic"},"Basic"),ce.createElement(Mh,{value:"intermediate"},"Intermediate"),ce.createElement(Mh,{value:"advanced"},"Advanced"),ce.createElement(Mh,{value:"custom"},"Custom"))}))),d.expertiseLevel==="custom"&&ce.createElement(Nt,{size:12},ce.createElement(Nt,{container:!0,spacing:1,alignItems:"flex-start",sx:{py:1}},ce.createElement(Nt,{size:12,sx:{py:1}},ce.createElement(Fr,{variant:"body2",fontWeight:"normal"},"Custom Instructions")),ce.createElement(Nt,{size:12},ce.createElement($i,{fullWidth:!0},ce.createElement(Cw,{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<m6&&ce.createElement(Nt,{size:12,sx:{mt:1}},ce.createElement(uR,{severity:"warning"},"Custom instructions must be at least"," ",m6," ","characters long"))))),ce.createElement(Nt,{size:12},ce.createElement(bg,{className:"settings-divider"}))),ce.createElement(Nt,{container:!0,component:zw,alignItems:"center",className:"settings-footer"},ce.createElement(Nt,{size:"auto",className:"settings-grid-padding"},ce.createElement(vg,{variant:"text",color:"inherit",onClick:T,"aria-label":"Reset Settings"},"Reset")),ce.createElement(Nt,{size:"grow",container:!0,spacing:1,justifyContent:"flex-end",className:"settings-footer-actions"},ce.createElement(Nt,{size:"auto"},ce.createElement(vg,{variant:"outlined",color:"inherit",onClick:w,"aria-label":"Close Settings with no changes"},"Close")),ce.createElement(Nt,{size:"auto"},ce.createElement(vg,{variant:"contained",color:"primary",onClick:C,disabled:!N,title:N?"":`Custom instructions must be at least ${m6} characters long`,"aria-label":"Save & Close Settings"},"Save & Close")))))},Kue=()=>{const{enabled:e,announce:t,value:n,message:i}=lu("text"),{rotor_value:o}=lu("rotor"),s=lu("settings"),f=e&&n||"",d=typeof i=="string"?i:"",h=d.trim().length>0?d:t&&f?f:"",y=d.trim().length>0?d:f;return ce.createElement("div",null,ce.createElement("div",{id:ge.TEXT_CONTAINER,...h&&{role:"alert"}},y&&y.trim().length>0&&ce.createElement("p",null,y)),ce.createElement("div",{id:ge.ROTOR_AREA,"aria-live":s.general.ariaMode},o))},Zue=({plot:e})=>{const{tooltip:t}=lu("display"),[n,i]=G.useState(!1),o=G.useRef({x:0,y:0}),s=G.useRef(null),f=G.useMemo(()=>({getBoundingClientRect:()=>new DOMRect(o.current.x,o.current.y,0,0)}),[]);return G.useEffect(()=>{if(!e)return;const d=b=>{var x,T;o.current={x:b.clientX,y:b.clientY},(T=(x=s.current)==null?void 0:x.update)==null||T.call(x),i(!0)},h=()=>i(!0),y=()=>i(!1);return e.addEventListener(Bo.MOUSE_MOVE,d),e.addEventListener(Bo.MOUSE_ENTER,h),e.addEventListener(Bo.MOUSE_LEAVE,y),()=>{e.removeEventListener(Bo.MOUSE_MOVE,d),e.removeEventListener(Bo.MOUSE_ENTER,h),e.removeEventListener(Bo.MOUSE_LEAVE,y)}},[e]),ce.createElement(F_,{title:t.value,open:n,placement:"top",arrow:!0,slotProps:{popper:{popperRef:s,anchorEl:f}}},ce.createElement(Si,{sx:{display:"none"}},"TooltipAnchor"))};function Jue(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 ece=()=>{const e=Wu("goToExtrema"),t=lu("goToExtrema"),n=G.useRef(null),i=G.useRef(null),o=G.useRef(null),s=G.useRef(null),[f,d]=G.useState(""),[h,y]=G.useState(!1),[b,x]=G.useState([]),[T,w]=G.useState(-1),C=G.useRef(null),R=G.useRef(null),_=G.useRef(null),N=G.useRef(null);G.useEffect(()=>{o.current&&o.current.focus()},[]);const z=G.useMemo(()=>e.getAvailableXValues(),[e]);G.useEffect(()=>{if(f.trim()==="")x(z);else{const W=f.toLowerCase();x(z.filter(ie=>String(ie).toLowerCase().includes(W)))}h&&w(W=>W<0?0:Math.min(W,Math.max(0,z.length-1)))},[f,z,h]);const B=T>=0&&b[T]!==void 0?String(b[T]):void 0,V={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":B,"aria-label":"Search and select X value",endAdornment:ce.createElement(cg,{"aria-label":h?"Close dropdown":"Open dropdown",size:"small",onClick:W=>{W.stopPropagation(),y(!h)}},ce.createElement(sY,null))}};G.useEffect(()=>{if(N.current){const W=B??"";N.current.textContent=W}},[T,B]),G.useEffect(()=>{if(n.current&&i.current){const W=i.current,ie=n.current;ie.focus();const K=W.getBoundingClientRect(),ae=ie.getBoundingClientRect();ae.bottom>K.bottom?ie.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"}):ae.top<K.top&&ie.scrollIntoView({behavior:"smooth",block:"start",inline:"nearest"})}},[t.selectedIndex]),G.useEffect(()=>{if(h&&T>=0&&_.current){const W=_.current.querySelector(`#option-${T}`);W&&W.scrollIntoView({block:"nearest"})}},[T,h]);const I=W=>{var K;const ie=(K=e.activeContext)==null?void 0:K.active;ie&&P(ie)&&ie.navigateToExtrema(W),e.hide()};function P(W){return W!==null&&typeof W=="object"&&"navigateToExtrema"in W&&typeof W.navigateToExtrema=="function"}const Y=()=>{N.current&&(N.current.textContent=""),e.hide()},se=W=>{var K;const ie=(K=e.activeContext)==null?void 0:K.active;ie&&ue(ie)&&(ie.moveToXValue(W),y(!1),w(-1),d(""),e.hide())};function ue(W){return W!==null&&typeof W=="object"&&"moveToXValue"in W&&typeof W.moveToXValue=="function"}const re=()=>{R.current?R.current.focus():C.current&&C.current.focus()},le=W=>{N.current&&(N.current.textContent=W)},$=W=>{if(W.key==="ArrowDown")if(W.preventDefault(),W.stopPropagation(),t.selectedIndex===t.targets.length-1)re(),y(!0),w(0),le("Moved to search. Type to filter X values.");else{e.moveDown();const ie=t.targets[t.selectedIndex+1];le(`Selected: ${ie.label}`)}else if(W.key==="ArrowUp")if(W.preventDefault(),W.stopPropagation(),t.selectedIndex===0)le("At first extrema option");else{e.moveUp();const ie=t.targets[t.selectedIndex-1];le(`Selected: ${ie.label}`)}else if(W.key==="Enter"&&(W.preventDefault(),W.stopPropagation(),t.selectedIndex<t.targets.length)){const ie=t.targets[t.selectedIndex];ie&&I(ie)}},oe=W=>{if(W.key==="Enter")W.preventDefault(),W.stopPropagation(),T>=0&&b[T]!==void 0&&se(b[T]);else if(W.key==="ArrowDown")W.preventDefault(),W.stopPropagation(),T===b.length-1?le("At last search result"):(w(ie=>Math.min(ie+1,b.length-1)),b[T+1]&&le(`Selected: ${b[T+1]}`));else if(W.key==="ArrowUp")if(W.preventDefault(),W.stopPropagation(),T===0){y(!1),w(-1);const ie=t.targets[t.selectedIndex];le(`Returning to extrema options: ${ie.label}`),n.current&&n.current.focus()}else w(ie=>Math.max(0,ie-1)),b[T-1]&&le(`Selected: ${b[T-1]}`)};return t.visible&&t.targets.length>0?ce.createElement(ce.Fragment,null,ce.createElement(Si,{sx:{position:"fixed",top:0,left:0,right:0,bottom:0,bgcolor:"rgba(0, 0, 0, 0.5)",zIndex:9999},onClick:Y,"aria-hidden":"true"}),ce.createElement(Si,{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"}},ce.createElement(Si,{id:"go-to-extrema-title",sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2}},ce.createElement(Fr,{variant:"h6",component:"h3",sx:{m:0,fontWeight:600}},"Go To Extrema"),ce.createElement(cg,{onClick:Y,"aria-label":"Close dialog",size:"small"},ce.createElement(PM,null))),ce.createElement(Si,{id:"go-to-extrema-description",sx:{mb:2}},ce.createElement(Fr,{variant:"body2",color:"text.secondary",sx:{m:0}},t.description||"Navigate to statistical extremes")),ce.createElement(Si,{ref:i,role:"listbox","aria-label":"Extrema targets",onKeyDown:$,sx:{maxHeight:300,overflowY:"auto",border:1,borderColor:"divider",borderRadius:1,p:1}},t.targets.map((W,ie)=>ce.createElement(Si,{key:`${W.segment}-${W.type}-${W.pointIndex}`,ref:ie===t.selectedIndex?n:null,id:`extrema-target-${ie}`,onClick:()=>I(W),role:"option","aria-selected":t.selectedIndex===ie,"aria-label":`${W.label.split(" at ")[0]} Value: ${W.value.toFixed(2)} at ${W.label.split(" at ")[1]}`,tabIndex:0,sx:Jue(t.selectedIndex===ie)},ce.createElement(Fr,{variant:"body2",sx:{fontWeight:600}},`${W.label.split(" at ")[0]} Value: ${W.value.toFixed(2)} at ${W.label.split(" at ")[1]}`))),z.length>0&&ce.createElement(Si,{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:()=>{re(),y(!0),w(0)}},ce.createElement(Sl,{ref:C,inputRef:R,label:"Search X values",placeholder:`Type to search ${z.length} values`,fullWidth:!0,variant:"outlined",size:"small",value:f,onChange:W=>{d(W.target.value),y(!0),T<0&&w(0)},onFocus:()=>{y(!0),T<0&&w(0)},onKeyDown:oe,slotProps:V}),h&&b.length>0&&ce.createElement(x3,{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}},b.map((W,ie)=>ce.createElement(f_,{key:`${W}-${ie}`,id:`option-${ie}`,role:"option","aria-selected":T===ie,"aria-label":String(W),tabIndex:0,onClick:()=>se(W),onKeyDown:K=>{K.key==="Enter"?(K.preventDefault(),K.stopPropagation(),se(W)):K.key==="ArrowDown"?(K.preventDefault(),K.stopPropagation(),w(ae=>Math.min(ae+1,b.length-1))):K.key==="ArrowUp"&&(K.preventDefault(),K.stopPropagation(),w(ae=>Math.max(ae-1,0)))},sx:{cursor:"pointer",py:1,px:2,bgcolor:T===ie?"action.selected":"transparent","&:hover":{bgcolor:"action.hover"}}},ce.createElement(Uw,{primary:String(W)})))),ce.createElement("div",{ref:N,id:"sr-active-option-announcer","aria-live":"assertive","aria-atomic":"true",style:{position:"absolute",left:"-10000px",width:"1px",height:"1px",overflow:"hidden"}}))))):null},tce=({plot:e})=>{const{focus:t,tooltip:n}=lu("display"),i=o=>{switch(o){case"BRAILLE":return ce.createElement(jj,null);case"CHAT":return ce.createElement(jue,null);case"COMMAND_PALETTE":return ce.createElement(que,null);case"GO_TO_EXTREMA":return ce.createElement(ece,null);case"HELP":return ce.createElement(Gue,null);case"REVIEW":return ce.createElement(Yue,null);case"SETTINGS":return ce.createElement(Que,null);default:return null}};return ce.createElement(ce.Fragment,null,n.visible&&ce.createElement(Zue,{plot:e}),ce.createElement(Kue,null),i(t))};function nce(e){return ce.createElement(Lj,{store:ou},ce.createElement(tce,{plot:e}))}document.readyState==="loading"?document.addEventListener(Bo.DOM_LOADED,Xz):Xz();function Yz(e,t,n){try{const i=JSON.parse(t);Wz(i,e)}catch(i){console.error(`Error parsing ${n} attribute:`,i)}}function Xz(){const e=document.querySelectorAll(ge.MAIDR_JSON_SELECTOR);if(e.length>0){e.forEach(o=>{const s=o.getAttribute(ge.MAIDR);s&&Yz(o,s,"maidr")});return}const t=document.querySelectorAll(`[${ge.MAIDR_DATA}]`);if(t.forEach(o=>{const s=o.getAttribute(ge.MAIDR_DATA);s&&Yz(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}Wz(n,i)}function Wz(e,t){let n=null,i=null,o=!1;const s=()=>{setTimeout(()=>{if(!n)return;const T=document.activeElement;n.contains(T)||(i&&(i.suspendHighContrast(),i.dispose()),i=null,o=!1)},0)},f=()=>{setTimeout(()=>{if(n){if(!i){const T=JSON.parse(JSON.stringify(e));i=new y2(T,t),i.initializeHighContrast()}o||(o=!0,i.showInitialInstructionInText())}},0)},d=()=>{if(document.visibilityState==="visible"){i&&(i.suspendHighContrast(),i.dispose(),i=null);const T=JSON.parse(JSON.stringify(e));i=new y2(T,t),i.initializeHighContrast(),o=!1}},h=document.createElement(ge.FIGURE);h.id=`${ge.MAIDR_FIGURE}-${e.id}`,t.parentNode.replaceChild(h,t),h.appendChild(t);const y=document.createElement(ge.ARTICLE);y.id=`${ge.MAIDR_ARTICLE}-${e.id}`,h.parentNode.replaceChild(y,h),y.appendChild(h);const b=document.createElement(ge.DIV);b.id=`${ge.REACT_CONTAINER}-${e.id}`,h.appendChild(b),n=h,t.addEventListener(Bo.FOCUS_IN,f),n.addEventListener(Bo.FOCUS_OUT,s),document.addEventListener(Bo.VISIBILITY_CHANGE,d),t.addEventListener(Bo.CLICK,f),gB.createRoot(b,{identifierPrefix:e.id}).render(nce(t)),(()=>{const T=JSON.parse(JSON.stringify(e));new y2(T,t).dispose()})()}}));
//# sourceMappingURL=maidr.js.map
