locust 2.37.13.dev17__py3-none-any.whl → 2.37.14.dev3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,212 +0,0 @@
1
- var A4=Object.defineProperty;var D4=(e,t,r)=>t in e?A4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var B0=(e,t,r)=>D4(e,typeof t!="symbol"?t+"":t,r);function L4(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(n,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(i){if(i.ep)return;i.ep=!0;const o=r(i);fetch(i.href,o)}})();function si(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function O4(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var j0={exports:{}},of={},H0={exports:{}},mt={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Ik;function N4(){if(Ik)return mt;Ik=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.iterator;function v(U){return U===null||typeof U!="object"?null:(U=p&&U[p]||U["@@iterator"],typeof U=="function"?U:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,x={};function y(U,Q,H){this.props=U,this.context=Q,this.refs=x,this.updater=H||h}y.prototype.isReactComponent={},y.prototype.setState=function(U,Q){if(typeof U!="object"&&typeof U!="function"&&U!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,U,Q,"setState")},y.prototype.forceUpdate=function(U){this.updater.enqueueForceUpdate(this,U,"forceUpdate")};function b(){}b.prototype=y.prototype;function S(U,Q,H){this.props=U,this.context=Q,this.refs=x,this.updater=H||h}var _=S.prototype=new b;_.constructor=S,g(_,y.prototype),_.isPureReactComponent=!0;var C=Array.isArray,k=Object.prototype.hasOwnProperty,T={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function I(U,Q,H){var oe,ve={},te=null,ge=null;if(Q!=null)for(oe in Q.ref!==void 0&&(ge=Q.ref),Q.key!==void 0&&(te=""+Q.key),Q)k.call(Q,oe)&&!E.hasOwnProperty(oe)&&(ve[oe]=Q[oe]);var de=arguments.length-2;if(de===1)ve.children=H;else if(1<de){for(var xe=Array(de),Me=0;Me<de;Me++)xe[Me]=arguments[Me+2];ve.children=xe}if(U&&U.defaultProps)for(oe in de=U.defaultProps,de)ve[oe]===void 0&&(ve[oe]=de[oe]);return{$$typeof:e,type:U,key:te,ref:ge,props:ve,_owner:T.current}}function D(U,Q){return{$$typeof:e,type:U.type,key:Q,ref:U.ref,props:U.props,_owner:U._owner}}function A(U){return typeof U=="object"&&U!==null&&U.$$typeof===e}function L(U){var Q={"=":"=0",":":"=2"};return"$"+U.replace(/[=:]/g,function(H){return Q[H]})}var $=/\/+/g;function B(U,Q){return typeof U=="object"&&U!==null&&U.key!=null?L(""+U.key):Q.toString(36)}function j(U,Q,H,oe,ve){var te=typeof U;(te==="undefined"||te==="boolean")&&(U=null);var ge=!1;if(U===null)ge=!0;else switch(te){case"string":case"number":ge=!0;break;case"object":switch(U.$$typeof){case e:case t:ge=!0}}if(ge)return ge=U,ve=ve(ge),U=oe===""?"."+B(ge,0):oe,C(ve)?(H="",U!=null&&(H=U.replace($,"$&/")+"/"),j(ve,Q,H,"",function(Me){return Me})):ve!=null&&(A(ve)&&(ve=D(ve,H+(!ve.key||ge&&ge.key===ve.key?"":(""+ve.key).replace($,"$&/")+"/")+U)),Q.push(ve)),1;if(ge=0,oe=oe===""?".":oe+":",C(U))for(var de=0;de<U.length;de++){te=U[de];var xe=oe+B(te,de);ge+=j(te,Q,H,xe,ve)}else if(xe=v(U),typeof xe=="function")for(U=xe.call(U),de=0;!(te=U.next()).done;)te=te.value,xe=oe+B(te,de++),ge+=j(te,Q,H,xe,ve);else if(te==="object")throw Q=String(U),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.");return ge}function W(U,Q,H){if(U==null)return U;var oe=[],ve=0;return j(U,oe,"","",function(te){return Q.call(H,te,ve++)}),oe}function q(U){if(U._status===-1){var Q=U._result;Q=Q(),Q.then(function(H){(U._status===0||U._status===-1)&&(U._status=1,U._result=H)},function(H){(U._status===0||U._status===-1)&&(U._status=2,U._result=H)}),U._status===-1&&(U._status=0,U._result=Q)}if(U._status===1)return U._result.default;throw U._result}var Z={current:null},V={transition:null},G={ReactCurrentDispatcher:Z,ReactCurrentBatchConfig:V,ReactCurrentOwner:T};function N(){throw Error("act(...) is not supported in production builds of React.")}return mt.Children={map:W,forEach:function(U,Q,H){W(U,function(){Q.apply(this,arguments)},H)},count:function(U){var Q=0;return W(U,function(){Q++}),Q},toArray:function(U){return W(U,function(Q){return Q})||[]},only:function(U){if(!A(U))throw Error("React.Children.only expected to receive a single React element child.");return U}},mt.Component=y,mt.Fragment=r,mt.Profiler=i,mt.PureComponent=S,mt.StrictMode=n,mt.Suspense=l,mt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=G,mt.act=N,mt.cloneElement=function(U,Q,H){if(U==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+U+".");var oe=g({},U.props),ve=U.key,te=U.ref,ge=U._owner;if(Q!=null){if(Q.ref!==void 0&&(te=Q.ref,ge=T.current),Q.key!==void 0&&(ve=""+Q.key),U.type&&U.type.defaultProps)var de=U.type.defaultProps;for(xe in Q)k.call(Q,xe)&&!E.hasOwnProperty(xe)&&(oe[xe]=Q[xe]===void 0&&de!==void 0?de[xe]:Q[xe])}var xe=arguments.length-2;if(xe===1)oe.children=H;else if(1<xe){de=Array(xe);for(var Me=0;Me<xe;Me++)de[Me]=arguments[Me+2];oe.children=de}return{$$typeof:e,type:U.type,key:ve,ref:te,props:oe,_owner:ge}},mt.createContext=function(U){return U={$$typeof:a,_currentValue:U,_currentValue2:U,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},U.Provider={$$typeof:o,_context:U},U.Consumer=U},mt.createElement=I,mt.createFactory=function(U){var Q=I.bind(null,U);return Q.type=U,Q},mt.createRef=function(){return{current:null}},mt.forwardRef=function(U){return{$$typeof:s,render:U}},mt.isValidElement=A,mt.lazy=function(U){return{$$typeof:f,_payload:{_status:-1,_result:U},_init:q}},mt.memo=function(U,Q){return{$$typeof:c,type:U,compare:Q===void 0?null:Q}},mt.startTransition=function(U){var Q=V.transition;V.transition={};try{U()}finally{V.transition=Q}},mt.unstable_act=N,mt.useCallback=function(U,Q){return Z.current.useCallback(U,Q)},mt.useContext=function(U){return Z.current.useContext(U)},mt.useDebugValue=function(){},mt.useDeferredValue=function(U){return Z.current.useDeferredValue(U)},mt.useEffect=function(U,Q){return Z.current.useEffect(U,Q)},mt.useId=function(){return Z.current.useId()},mt.useImperativeHandle=function(U,Q,H){return Z.current.useImperativeHandle(U,Q,H)},mt.useInsertionEffect=function(U,Q){return Z.current.useInsertionEffect(U,Q)},mt.useLayoutEffect=function(U,Q){return Z.current.useLayoutEffect(U,Q)},mt.useMemo=function(U,Q){return Z.current.useMemo(U,Q)},mt.useReducer=function(U,Q,H){return Z.current.useReducer(U,Q,H)},mt.useRef=function(U){return Z.current.useRef(U)},mt.useState=function(U){return Z.current.useState(U)},mt.useSyncExternalStore=function(U,Q,H){return Z.current.useSyncExternalStore(U,Q,H)},mt.useTransition=function(){return Z.current.useTransition()},mt.version="18.3.1",mt}var Ak;function qg(){return Ak||(Ak=1,H0.exports=N4()),H0.exports}/**
10
- * @license React
11
- * react-jsx-runtime.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Dk;function z4(){if(Dk)return of;Dk=1;var e=qg(),t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(s,l,c){var f,p={},v=null,h=null;c!==void 0&&(v=""+c),l.key!==void 0&&(v=""+l.key),l.ref!==void 0&&(h=l.ref);for(f in l)n.call(l,f)&&!o.hasOwnProperty(f)&&(p[f]=l[f]);if(s&&s.defaultProps)for(f in l=s.defaultProps,l)p[f]===void 0&&(p[f]=l[f]);return{$$typeof:t,type:s,key:v,ref:h,props:p,_owner:i.current}}return of.Fragment=r,of.jsx=a,of.jsxs=a,of}var Lk;function _a(){return Lk||(Lk=1,j0.exports=z4()),j0.exports}var M=_a(),Fh={},W0={exports:{}},En={},V0={exports:{}},U0={};/**
18
- * @license React
19
- * scheduler.production.min.js
20
- *
21
- * Copyright (c) Facebook, Inc. and its affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var Ok;function $4(){return Ok||(Ok=1,function(e){function t(V,G){var N=V.length;V.push(G);e:for(;0<N;){var U=N-1>>>1,Q=V[U];if(0<i(Q,G))V[U]=G,V[N]=Q,N=U;else break e}}function r(V){return V.length===0?null:V[0]}function n(V){if(V.length===0)return null;var G=V[0],N=V.pop();if(N!==G){V[0]=N;e:for(var U=0,Q=V.length,H=Q>>>1;U<H;){var oe=2*(U+1)-1,ve=V[oe],te=oe+1,ge=V[te];if(0>i(ve,N))te<Q&&0>i(ge,ve)?(V[U]=ge,V[te]=N,U=te):(V[U]=ve,V[oe]=N,U=oe);else if(te<Q&&0>i(ge,N))V[U]=ge,V[te]=N,U=te;else break e}}return G}function i(V,G){var N=V.sortIndex-G.sortIndex;return N!==0?N:V.id-G.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],c=[],f=1,p=null,v=3,h=!1,g=!1,x=!1,y=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,S=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(V){for(var G=r(c);G!==null;){if(G.callback===null)n(c);else if(G.startTime<=V)n(c),G.sortIndex=G.expirationTime,t(l,G);else break;G=r(c)}}function C(V){if(x=!1,_(V),!g)if(r(l)!==null)g=!0,q(k);else{var G=r(c);G!==null&&Z(C,G.startTime-V)}}function k(V,G){g=!1,x&&(x=!1,b(I),I=-1),h=!0;var N=v;try{for(_(G),p=r(l);p!==null&&(!(p.expirationTime>G)||V&&!L());){var U=p.callback;if(typeof U=="function"){p.callback=null,v=p.priorityLevel;var Q=U(p.expirationTime<=G);G=e.unstable_now(),typeof Q=="function"?p.callback=Q:p===r(l)&&n(l),_(G)}else n(l);p=r(l)}if(p!==null)var H=!0;else{var oe=r(c);oe!==null&&Z(C,oe.startTime-G),H=!1}return H}finally{p=null,v=N,h=!1}}var T=!1,E=null,I=-1,D=5,A=-1;function L(){return!(e.unstable_now()-A<D)}function $(){if(E!==null){var V=e.unstable_now();A=V;var G=!0;try{G=E(!0,V)}finally{G?B():(T=!1,E=null)}}else T=!1}var B;if(typeof S=="function")B=function(){S($)};else if(typeof MessageChannel<"u"){var j=new MessageChannel,W=j.port2;j.port1.onmessage=$,B=function(){W.postMessage(null)}}else B=function(){y($,0)};function q(V){E=V,T||(T=!0,B())}function Z(V,G){I=y(function(){V(e.unstable_now())},G)}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(V){V.callback=null},e.unstable_continueExecution=function(){g||h||(g=!0,q(k))},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):D=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(V){switch(v){case 1:case 2:case 3:var G=3;break;default:G=v}var N=v;v=G;try{return V()}finally{v=N}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(V,G){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var N=v;v=V;try{return G()}finally{v=N}},e.unstable_scheduleCallback=function(V,G,N){var U=e.unstable_now();switch(typeof N=="object"&&N!==null?(N=N.delay,N=typeof N=="number"&&0<N?U+N:U):N=U,V){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=N+Q,V={id:f++,callback:G,priorityLevel:V,startTime:N,expirationTime:Q,sortIndex:-1},N>U?(V.sortIndex=N,t(c,V),r(l)===null&&V===r(c)&&(x?(b(I),I=-1):x=!0,Z(C,N-U))):(V.sortIndex=Q,t(l,V),g||h||(g=!0,q(k))),V},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(V){var G=v;return function(){var N=v;v=G;try{return V.apply(this,arguments)}finally{v=N}}}}(U0)),U0}var Nk;function F4(){return Nk||(Nk=1,V0.exports=$4()),V0.exports}/**
26
- * @license React
27
- * react-dom.production.min.js
28
- *
29
- * Copyright (c) Facebook, Inc. and its affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var zk;function B4(){if(zk)return En;zk=1;var e=qg(),t=F4();function r(u){for(var d="https://reactjs.org/docs/error-decoder.html?invariant="+u,m=1;m<arguments.length;m++)d+="&args[]="+encodeURIComponent(arguments[m]);return"Minified React error #"+u+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,i={};function o(u,d){a(u,d),a(u+"Capture",d)}function a(u,d){for(i[u]=d,u=0;u<d.length;u++)n.add(d[u])}var s=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l=Object.prototype.hasOwnProperty,c=/^[: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]*$/,f={},p={};function v(u){return l.call(p,u)?!0:l.call(f,u)?!1:c.test(u)?p[u]=!0:(f[u]=!0,!1)}function h(u,d,m,w){if(m!==null&&m.type===0)return!1;switch(typeof d){case"function":case"symbol":return!0;case"boolean":return w?!1:m!==null?!m.acceptsBooleans:(u=u.toLowerCase().slice(0,5),u!=="data-"&&u!=="aria-");default:return!1}}function g(u,d,m,w){if(d===null||typeof d>"u"||h(u,d,m,w))return!0;if(w)return!1;if(m!==null)switch(m.type){case 3:return!d;case 4:return d===!1;case 5:return isNaN(d);case 6:return isNaN(d)||1>d}return!1}function x(u,d,m,w,R,P,F){this.acceptsBooleans=d===2||d===3||d===4,this.attributeName=w,this.attributeNamespace=R,this.mustUseProperty=m,this.propertyName=u,this.type=d,this.sanitizeURL=P,this.removeEmptyString=F}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(u){y[u]=new x(u,0,!1,u,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(u){var d=u[0];y[d]=new x(d,1,!1,u[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(u){y[u]=new x(u,2,!1,u.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(u){y[u]=new x(u,2,!1,u,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(u){y[u]=new x(u,3,!1,u.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(u){y[u]=new x(u,3,!0,u,null,!1,!1)}),["capture","download"].forEach(function(u){y[u]=new x(u,4,!1,u,null,!1,!1)}),["cols","rows","size","span"].forEach(function(u){y[u]=new x(u,6,!1,u,null,!1,!1)}),["rowSpan","start"].forEach(function(u){y[u]=new x(u,5,!1,u.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function S(u){return u[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(u){var d=u.replace(b,S);y[d]=new x(d,1,!1,u,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(u){var d=u.replace(b,S);y[d]=new x(d,1,!1,u,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(u){var d=u.replace(b,S);y[d]=new x(d,1,!1,u,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(u){y[u]=new x(u,1,!1,u.toLowerCase(),null,!1,!1)}),y.xlinkHref=new x("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(u){y[u]=new x(u,1,!1,u.toLowerCase(),null,!0,!0)});function _(u,d,m,w){var R=y.hasOwnProperty(d)?y[d]:null;(R!==null?R.type!==0:w||!(2<d.length)||d[0]!=="o"&&d[0]!=="O"||d[1]!=="n"&&d[1]!=="N")&&(g(d,m,R,w)&&(m=null),w||R===null?v(d)&&(m===null?u.removeAttribute(d):u.setAttribute(d,""+m)):R.mustUseProperty?u[R.propertyName]=m===null?R.type===3?!1:"":m:(d=R.attributeName,w=R.attributeNamespace,m===null?u.removeAttribute(d):(R=R.type,m=R===3||R===4&&m===!0?"":""+m,w?u.setAttributeNS(w,d,m):u.setAttribute(d,m))))}var C=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=Symbol.for("react.element"),T=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),L=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),Z=Symbol.for("react.offscreen"),V=Symbol.iterator;function G(u){return u===null||typeof u!="object"?null:(u=V&&u[V]||u["@@iterator"],typeof u=="function"?u:null)}var N=Object.assign,U;function Q(u){if(U===void 0)try{throw Error()}catch(m){var d=m.stack.trim().match(/\n( *(at )?)/);U=d&&d[1]||""}return`
34
- `+U+u}var H=!1;function oe(u,d){if(!u||H)return"";H=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(d)if(d=function(){throw Error()},Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(ie){var w=ie}Reflect.construct(u,[],d)}else{try{d.call()}catch(ie){w=ie}u.call(d.prototype)}else{try{throw Error()}catch(ie){w=ie}u()}}catch(ie){if(ie&&w&&typeof ie.stack=="string"){for(var R=ie.stack.split(`
35
- `),P=w.stack.split(`
36
- `),F=R.length-1,Y=P.length-1;1<=F&&0<=Y&&R[F]!==P[Y];)Y--;for(;1<=F&&0<=Y;F--,Y--)if(R[F]!==P[Y]){if(F!==1||Y!==1)do if(F--,Y--,0>Y||R[F]!==P[Y]){var K=`
37
- `+R[F].replace(" at new "," at ");return u.displayName&&K.includes("<anonymous>")&&(K=K.replace("<anonymous>",u.displayName)),K}while(1<=F&&0<=Y);break}}}finally{H=!1,Error.prepareStackTrace=m}return(u=u?u.displayName||u.name:"")?Q(u):""}function ve(u){switch(u.tag){case 5:return Q(u.type);case 16:return Q("Lazy");case 13:return Q("Suspense");case 19:return Q("SuspenseList");case 0:case 2:case 15:return u=oe(u.type,!1),u;case 11:return u=oe(u.type.render,!1),u;case 1:return u=oe(u.type,!0),u;default:return""}}function te(u){if(u==null)return null;if(typeof u=="function")return u.displayName||u.name||null;if(typeof u=="string")return u;switch(u){case E:return"Fragment";case T:return"Portal";case D:return"Profiler";case I:return"StrictMode";case B:return"Suspense";case j:return"SuspenseList"}if(typeof u=="object")switch(u.$$typeof){case L:return(u.displayName||"Context")+".Consumer";case A:return(u._context.displayName||"Context")+".Provider";case $:var d=u.render;return u=u.displayName,u||(u=d.displayName||d.name||"",u=u!==""?"ForwardRef("+u+")":"ForwardRef"),u;case W:return d=u.displayName||null,d!==null?d:te(u.type)||"Memo";case q:d=u._payload,u=u._init;try{return te(u(d))}catch{}}return null}function ge(u){var d=u.type;switch(u.tag){case 24:return"Cache";case 9:return(d.displayName||"Context")+".Consumer";case 10:return(d._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return u=d.render,u=u.displayName||u.name||"",d.displayName||(u!==""?"ForwardRef("+u+")":"ForwardRef");case 7:return"Fragment";case 5:return d;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return te(d);case 8:return d===I?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d}return null}function de(u){switch(typeof u){case"boolean":case"number":case"string":case"undefined":return u;case"object":return u;default:return""}}function xe(u){var d=u.type;return(u=u.nodeName)&&u.toLowerCase()==="input"&&(d==="checkbox"||d==="radio")}function Me(u){var d=xe(u)?"checked":"value",m=Object.getOwnPropertyDescriptor(u.constructor.prototype,d),w=""+u[d];if(!u.hasOwnProperty(d)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var R=m.get,P=m.set;return Object.defineProperty(u,d,{configurable:!0,get:function(){return R.call(this)},set:function(F){w=""+F,P.call(this,F)}}),Object.defineProperty(u,d,{enumerable:m.enumerable}),{getValue:function(){return w},setValue:function(F){w=""+F},stopTracking:function(){u._valueTracker=null,delete u[d]}}}}function ue(u){u._valueTracker||(u._valueTracker=Me(u))}function Te(u){if(!u)return!1;var d=u._valueTracker;if(!d)return!0;var m=d.getValue(),w="";return u&&(w=xe(u)?u.checked?"true":"false":u.value),u=w,u!==m?(d.setValue(u),!0):!1}function Oe(u){if(u=u||(typeof document<"u"?document:void 0),typeof u>"u")return null;try{return u.activeElement||u.body}catch{return u.body}}function Ae(u,d){var m=d.checked;return N({},d,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:m??u._wrapperState.initialChecked})}function we(u,d){var m=d.defaultValue==null?"":d.defaultValue,w=d.checked!=null?d.checked:d.defaultChecked;m=de(d.value!=null?d.value:m),u._wrapperState={initialChecked:w,initialValue:m,controlled:d.type==="checkbox"||d.type==="radio"?d.checked!=null:d.value!=null}}function Mt(u,d){d=d.checked,d!=null&&_(u,"checked",d,!1)}function We(u,d){Mt(u,d);var m=de(d.value),w=d.type;if(m!=null)w==="number"?(m===0&&u.value===""||u.value!=m)&&(u.value=""+m):u.value!==""+m&&(u.value=""+m);else if(w==="submit"||w==="reset"){u.removeAttribute("value");return}d.hasOwnProperty("value")?bt(u,d.type,m):d.hasOwnProperty("defaultValue")&&bt(u,d.type,de(d.defaultValue)),d.checked==null&&d.defaultChecked!=null&&(u.defaultChecked=!!d.defaultChecked)}function dt(u,d,m){if(d.hasOwnProperty("value")||d.hasOwnProperty("defaultValue")){var w=d.type;if(!(w!=="submit"&&w!=="reset"||d.value!==void 0&&d.value!==null))return;d=""+u._wrapperState.initialValue,m||d===u.value||(u.value=d),u.defaultValue=d}m=u.name,m!==""&&(u.name=""),u.defaultChecked=!!u._wrapperState.initialChecked,m!==""&&(u.name=m)}function bt(u,d,m){(d!=="number"||Oe(u.ownerDocument)!==u)&&(m==null?u.defaultValue=""+u._wrapperState.initialValue:u.defaultValue!==""+m&&(u.defaultValue=""+m))}var st=Array.isArray;function et(u,d,m,w){if(u=u.options,d){d={};for(var R=0;R<m.length;R++)d["$"+m[R]]=!0;for(m=0;m<u.length;m++)R=d.hasOwnProperty("$"+u[m].value),u[m].selected!==R&&(u[m].selected=R),R&&w&&(u[m].defaultSelected=!0)}else{for(m=""+de(m),d=null,R=0;R<u.length;R++){if(u[R].value===m){u[R].selected=!0,w&&(u[R].defaultSelected=!0);return}d!==null||u[R].disabled||(d=u[R])}d!==null&&(d.selected=!0)}}function _t(u,d){if(d.dangerouslySetInnerHTML!=null)throw Error(r(91));return N({},d,{value:void 0,defaultValue:void 0,children:""+u._wrapperState.initialValue})}function Tt(u,d){var m=d.value;if(m==null){if(m=d.children,d=d.defaultValue,m!=null){if(d!=null)throw Error(r(92));if(st(m)){if(1<m.length)throw Error(r(93));m=m[0]}d=m}d==null&&(d=""),m=d}u._wrapperState={initialValue:de(m)}}function lt(u,d){var m=de(d.value),w=de(d.defaultValue);m!=null&&(m=""+m,m!==u.value&&(u.value=m),d.defaultValue==null&&u.defaultValue!==m&&(u.defaultValue=m)),w!=null&&(u.defaultValue=""+w)}function Nt(u){var d=u.textContent;d===u._wrapperState.initialValue&&d!==""&&d!==null&&(u.value=d)}function ne(u){switch(u){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(u,d){return u==null||u==="http://www.w3.org/1999/xhtml"?ne(d):u==="http://www.w3.org/2000/svg"&&d==="foreignObject"?"http://www.w3.org/1999/xhtml":u}var he,pe=function(u){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(d,m,w,R){MSApp.execUnsafeLocalFunction(function(){return u(d,m,w,R)})}:u}(function(u,d){if(u.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in u)u.innerHTML=d;else{for(he=he||document.createElement("div"),he.innerHTML="<svg>"+d.valueOf().toString()+"</svg>",d=he.firstChild;u.firstChild;)u.removeChild(u.firstChild);for(;d.firstChild;)u.appendChild(d.firstChild)}});function je(u,d){if(d){var m=u.firstChild;if(m&&m===u.lastChild&&m.nodeType===3){m.nodeValue=d;return}}u.textContent=d}var ht={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},De=["Webkit","ms","Moz","O"];Object.keys(ht).forEach(function(u){De.forEach(function(d){d=d+u.charAt(0).toUpperCase()+u.substring(1),ht[d]=ht[u]})});function Ue(u,d,m){return d==null||typeof d=="boolean"||d===""?"":m||typeof d!="number"||d===0||ht.hasOwnProperty(u)&&ht[u]?(""+d).trim():d+"px"}function ot(u,d){u=u.style;for(var m in d)if(d.hasOwnProperty(m)){var w=m.indexOf("--")===0,R=Ue(m,d[m],w);m==="float"&&(m="cssFloat"),w?u.setProperty(m,R):u[m]=R}}var Ee=N({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Pe(u,d){if(d){if(Ee[u]&&(d.children!=null||d.dangerouslySetInnerHTML!=null))throw Error(r(137,u));if(d.dangerouslySetInnerHTML!=null){if(d.children!=null)throw Error(r(60));if(typeof d.dangerouslySetInnerHTML!="object"||!("__html"in d.dangerouslySetInnerHTML))throw Error(r(61))}if(d.style!=null&&typeof d.style!="object")throw Error(r(62))}}function tt(u,d){if(u.indexOf("-")===-1)return typeof d.is=="string";switch(u){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 Ge=null;function Et(u){return u=u.target||u.srcElement||window,u.correspondingUseElement&&(u=u.correspondingUseElement),u.nodeType===3?u.parentNode:u}var er=null,hr=null,kr=null;function ui(u){if(u=Wc(u)){if(typeof er!="function")throw Error(r(280));var d=u.stateNode;d&&(d=eh(d),er(u.stateNode,u.type,d))}}function on(u){hr?kr?kr.push(u):kr=[u]:hr=u}function ao(){if(hr){var u=hr,d=kr;if(kr=hr=null,ui(u),d)for(u=0;u<d.length;u++)ui(d[u])}}function Yo(u,d){return u(d)}function Ko(){}var Xo=!1;function so(u,d,m){if(Xo)return u(d,m);Xo=!0;try{return Yo(u,d,m)}finally{Xo=!1,(hr!==null||kr!==null)&&(Ko(),ao())}}function nr(u,d){var m=u.stateNode;if(m===null)return null;var w=eh(m);if(w===null)return null;m=w[d];e:switch(d){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(w=!w.disabled)||(u=u.type,w=!(u==="button"||u==="input"||u==="select"||u==="textarea")),u=!w;break e;default:u=!1}if(u)return null;if(m&&typeof m!="function")throw Error(r(231,d,typeof m));return m}var Xt=!1;if(s)try{var Rr={};Object.defineProperty(Rr,"passive",{get:function(){Xt=!0}}),window.addEventListener("test",Rr,Rr),window.removeEventListener("test",Rr,Rr)}catch{Xt=!1}function lo(u,d,m,w,R,P,F,Y,K){var ie=Array.prototype.slice.call(arguments,3);try{d.apply(m,ie)}catch(ye){this.onError(ye)}}var _n=!1,Er=null,Sn=!1,uo=null,an={onError:function(u){_n=!0,Er=u}};function ci(u,d,m,w,R,P,F,Y,K){_n=!1,Er=null,lo.apply(an,arguments)}function se(u,d,m,w,R,P,F,Y,K){if(ci.apply(this,arguments),_n){if(_n){var ie=Er;_n=!1,Er=null}else throw Error(r(198));Sn||(Sn=!0,uo=ie)}}function ae(u){var d=u,m=u;if(u.alternate)for(;d.return;)d=d.return;else{u=d;do d=u,(d.flags&4098)!==0&&(m=d.return),u=d.return;while(u)}return d.tag===3?m:null}function be(u){if(u.tag===13){var d=u.memoizedState;if(d===null&&(u=u.alternate,u!==null&&(d=u.memoizedState)),d!==null)return d.dehydrated}return null}function Ne(u){if(ae(u)!==u)throw Error(r(188))}function vt(u){var d=u.alternate;if(!d){if(d=ae(u),d===null)throw Error(r(188));return d!==u?null:u}for(var m=u,w=d;;){var R=m.return;if(R===null)break;var P=R.alternate;if(P===null){if(w=R.return,w!==null){m=w;continue}break}if(R.child===P.child){for(P=R.child;P;){if(P===m)return Ne(R),u;if(P===w)return Ne(R),d;P=P.sibling}throw Error(r(188))}if(m.return!==w.return)m=R,w=P;else{for(var F=!1,Y=R.child;Y;){if(Y===m){F=!0,m=R,w=P;break}if(Y===w){F=!0,w=R,m=P;break}Y=Y.sibling}if(!F){for(Y=P.child;Y;){if(Y===m){F=!0,m=P,w=R;break}if(Y===w){F=!0,w=P,m=R;break}Y=Y.sibling}if(!F)throw Error(r(189))}}if(m.alternate!==w)throw Error(r(190))}if(m.tag!==3)throw Error(r(188));return m.stateNode.current===m?u:d}function ir(u){return u=vt(u),u!==null?or(u):null}function or(u){if(u.tag===5||u.tag===6)return u;for(u=u.child;u!==null;){var d=or(u);if(d!==null)return d;u=u.sibling}return null}var sn=t.unstable_scheduleCallback,ct=t.unstable_cancelCallback,ln=t.unstable_shouldYield,V3=t.unstable_requestPaint,xr=t.unstable_now,U3=t.unstable_getCurrentPriorityLevel,ay=t.unstable_ImmediatePriority,aC=t.unstable_UserBlockingPriority,Lp=t.unstable_NormalPriority,G3=t.unstable_LowPriority,sC=t.unstable_IdlePriority,Op=null,co=null;function q3(u){if(co&&typeof co.onCommitFiberRoot=="function")try{co.onCommitFiberRoot(Op,u,void 0,(u.current.flags&128)===128)}catch{}}var zi=Math.clz32?Math.clz32:X3,Y3=Math.log,K3=Math.LN2;function X3(u){return u>>>=0,u===0?32:31-(Y3(u)/K3|0)|0}var Np=64,zp=4194304;function Tc(u){switch(u&-u){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return u&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return u&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return u}}function $p(u,d){var m=u.pendingLanes;if(m===0)return 0;var w=0,R=u.suspendedLanes,P=u.pingedLanes,F=m&268435455;if(F!==0){var Y=F&~R;Y!==0?w=Tc(Y):(P&=F,P!==0&&(w=Tc(P)))}else F=m&~R,F!==0?w=Tc(F):P!==0&&(w=Tc(P));if(w===0)return 0;if(d!==0&&d!==w&&(d&R)===0&&(R=w&-w,P=d&-d,R>=P||R===16&&(P&4194240)!==0))return d;if((w&4)!==0&&(w|=m&16),d=u.entangledLanes,d!==0)for(u=u.entanglements,d&=w;0<d;)m=31-zi(d),R=1<<m,w|=u[m],d&=~R;return w}function Q3(u,d){switch(u){case 1:case 2:case 4:return d+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return d+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Z3(u,d){for(var m=u.suspendedLanes,w=u.pingedLanes,R=u.expirationTimes,P=u.pendingLanes;0<P;){var F=31-zi(P),Y=1<<F,K=R[F];K===-1?((Y&m)===0||(Y&w)!==0)&&(R[F]=Q3(Y,d)):K<=d&&(u.expiredLanes|=Y),P&=~Y}}function sy(u){return u=u.pendingLanes&-1073741825,u!==0?u:u&1073741824?1073741824:0}function lC(){var u=Np;return Np<<=1,(Np&4194240)===0&&(Np=64),u}function ly(u){for(var d=[],m=0;31>m;m++)d.push(u);return d}function kc(u,d,m){u.pendingLanes|=d,d!==536870912&&(u.suspendedLanes=0,u.pingedLanes=0),u=u.eventTimes,d=31-zi(d),u[d]=m}function J3(u,d){var m=u.pendingLanes&~d;u.pendingLanes=d,u.suspendedLanes=0,u.pingedLanes=0,u.expiredLanes&=d,u.mutableReadLanes&=d,u.entangledLanes&=d,d=u.entanglements;var w=u.eventTimes;for(u=u.expirationTimes;0<m;){var R=31-zi(m),P=1<<R;d[R]=0,w[R]=-1,u[R]=-1,m&=~P}}function uy(u,d){var m=u.entangledLanes|=d;for(u=u.entanglements;m;){var w=31-zi(m),R=1<<w;R&d|u[w]&d&&(u[w]|=d),m&=~R}}var Wt=0;function uC(u){return u&=-u,1<u?4<u?(u&268435455)!==0?16:536870912:4:1}var cC,cy,fC,dC,pC,fy=!1,Fp=[],Ta=null,ka=null,Ra=null,Rc=new Map,Ec=new Map,Ea=[],ez="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function hC(u,d){switch(u){case"focusin":case"focusout":Ta=null;break;case"dragenter":case"dragleave":ka=null;break;case"mouseover":case"mouseout":Ra=null;break;case"pointerover":case"pointerout":Rc.delete(d.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ec.delete(d.pointerId)}}function Pc(u,d,m,w,R,P){return u===null||u.nativeEvent!==P?(u={blockedOn:d,domEventName:m,eventSystemFlags:w,nativeEvent:P,targetContainers:[R]},d!==null&&(d=Wc(d),d!==null&&cy(d)),u):(u.eventSystemFlags|=w,d=u.targetContainers,R!==null&&d.indexOf(R)===-1&&d.push(R),u)}function tz(u,d,m,w,R){switch(d){case"focusin":return Ta=Pc(Ta,u,d,m,w,R),!0;case"dragenter":return ka=Pc(ka,u,d,m,w,R),!0;case"mouseover":return Ra=Pc(Ra,u,d,m,w,R),!0;case"pointerover":var P=R.pointerId;return Rc.set(P,Pc(Rc.get(P)||null,u,d,m,w,R)),!0;case"gotpointercapture":return P=R.pointerId,Ec.set(P,Pc(Ec.get(P)||null,u,d,m,w,R)),!0}return!1}function vC(u){var d=Rs(u.target);if(d!==null){var m=ae(d);if(m!==null){if(d=m.tag,d===13){if(d=be(m),d!==null){u.blockedOn=d,pC(u.priority,function(){fC(m)});return}}else if(d===3&&m.stateNode.current.memoizedState.isDehydrated){u.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}u.blockedOn=null}function Bp(u){if(u.blockedOn!==null)return!1;for(var d=u.targetContainers;0<d.length;){var m=py(u.domEventName,u.eventSystemFlags,d[0],u.nativeEvent);if(m===null){m=u.nativeEvent;var w=new m.constructor(m.type,m);Ge=w,m.target.dispatchEvent(w),Ge=null}else return d=Wc(m),d!==null&&cy(d),u.blockedOn=m,!1;d.shift()}return!0}function gC(u,d,m){Bp(u)&&m.delete(d)}function rz(){fy=!1,Ta!==null&&Bp(Ta)&&(Ta=null),ka!==null&&Bp(ka)&&(ka=null),Ra!==null&&Bp(Ra)&&(Ra=null),Rc.forEach(gC),Ec.forEach(gC)}function Mc(u,d){u.blockedOn===d&&(u.blockedOn=null,fy||(fy=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,rz)))}function Ic(u){function d(R){return Mc(R,u)}if(0<Fp.length){Mc(Fp[0],u);for(var m=1;m<Fp.length;m++){var w=Fp[m];w.blockedOn===u&&(w.blockedOn=null)}}for(Ta!==null&&Mc(Ta,u),ka!==null&&Mc(ka,u),Ra!==null&&Mc(Ra,u),Rc.forEach(d),Ec.forEach(d),m=0;m<Ea.length;m++)w=Ea[m],w.blockedOn===u&&(w.blockedOn=null);for(;0<Ea.length&&(m=Ea[0],m.blockedOn===null);)vC(m),m.blockedOn===null&&Ea.shift()}var Bl=C.ReactCurrentBatchConfig,jp=!0;function nz(u,d,m,w){var R=Wt,P=Bl.transition;Bl.transition=null;try{Wt=1,dy(u,d,m,w)}finally{Wt=R,Bl.transition=P}}function iz(u,d,m,w){var R=Wt,P=Bl.transition;Bl.transition=null;try{Wt=4,dy(u,d,m,w)}finally{Wt=R,Bl.transition=P}}function dy(u,d,m,w){if(jp){var R=py(u,d,m,w);if(R===null)My(u,d,w,Hp,m),hC(u,w);else if(tz(R,u,d,m,w))w.stopPropagation();else if(hC(u,w),d&4&&-1<ez.indexOf(u)){for(;R!==null;){var P=Wc(R);if(P!==null&&cC(P),P=py(u,d,m,w),P===null&&My(u,d,w,Hp,m),P===R)break;R=P}R!==null&&w.stopPropagation()}else My(u,d,w,null,m)}}var Hp=null;function py(u,d,m,w){if(Hp=null,u=Et(w),u=Rs(u),u!==null)if(d=ae(u),d===null)u=null;else if(m=d.tag,m===13){if(u=be(d),u!==null)return u;u=null}else if(m===3){if(d.stateNode.current.memoizedState.isDehydrated)return d.tag===3?d.stateNode.containerInfo:null;u=null}else d!==u&&(u=null);return Hp=u,null}function mC(u){switch(u){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(U3()){case ay:return 1;case aC:return 4;case Lp:case G3:return 16;case sC:return 536870912;default:return 16}default:return 16}}var Pa=null,hy=null,Wp=null;function yC(){if(Wp)return Wp;var u,d=hy,m=d.length,w,R="value"in Pa?Pa.value:Pa.textContent,P=R.length;for(u=0;u<m&&d[u]===R[u];u++);var F=m-u;for(w=1;w<=F&&d[m-w]===R[P-w];w++);return Wp=R.slice(u,1<w?1-w:void 0)}function Vp(u){var d=u.keyCode;return"charCode"in u?(u=u.charCode,u===0&&d===13&&(u=13)):u=d,u===10&&(u=13),32<=u||u===13?u:0}function Up(){return!0}function xC(){return!1}function Gn(u){function d(m,w,R,P,F){this._reactName=m,this._targetInst=R,this.type=w,this.nativeEvent=P,this.target=F,this.currentTarget=null;for(var Y in u)u.hasOwnProperty(Y)&&(m=u[Y],this[Y]=m?m(P):P[Y]);return this.isDefaultPrevented=(P.defaultPrevented!=null?P.defaultPrevented:P.returnValue===!1)?Up:xC,this.isPropagationStopped=xC,this}return N(d.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=Up)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=Up)},persist:function(){},isPersistent:Up}),d}var jl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(u){return u.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vy=Gn(jl),Ac=N({},jl,{view:0,detail:0}),oz=Gn(Ac),gy,my,Dc,Gp=N({},Ac,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xy,button:0,buttons:0,relatedTarget:function(u){return u.relatedTarget===void 0?u.fromElement===u.srcElement?u.toElement:u.fromElement:u.relatedTarget},movementX:function(u){return"movementX"in u?u.movementX:(u!==Dc&&(Dc&&u.type==="mousemove"?(gy=u.screenX-Dc.screenX,my=u.screenY-Dc.screenY):my=gy=0,Dc=u),gy)},movementY:function(u){return"movementY"in u?u.movementY:my}}),bC=Gn(Gp),az=N({},Gp,{dataTransfer:0}),sz=Gn(az),lz=N({},Ac,{relatedTarget:0}),yy=Gn(lz),uz=N({},jl,{animationName:0,elapsedTime:0,pseudoElement:0}),cz=Gn(uz),fz=N({},jl,{clipboardData:function(u){return"clipboardData"in u?u.clipboardData:window.clipboardData}}),dz=Gn(fz),pz=N({},jl,{data:0}),_C=Gn(pz),hz={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vz={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"},gz={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mz(u){var d=this.nativeEvent;return d.getModifierState?d.getModifierState(u):(u=gz[u])?!!d[u]:!1}function xy(){return mz}var yz=N({},Ac,{key:function(u){if(u.key){var d=hz[u.key]||u.key;if(d!=="Unidentified")return d}return u.type==="keypress"?(u=Vp(u),u===13?"Enter":String.fromCharCode(u)):u.type==="keydown"||u.type==="keyup"?vz[u.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xy,charCode:function(u){return u.type==="keypress"?Vp(u):0},keyCode:function(u){return u.type==="keydown"||u.type==="keyup"?u.keyCode:0},which:function(u){return u.type==="keypress"?Vp(u):u.type==="keydown"||u.type==="keyup"?u.keyCode:0}}),xz=Gn(yz),bz=N({},Gp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),SC=Gn(bz),_z=N({},Ac,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xy}),Sz=Gn(_z),wz=N({},jl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Cz=Gn(wz),Tz=N({},Gp,{deltaX:function(u){return"deltaX"in u?u.deltaX:"wheelDeltaX"in u?-u.wheelDeltaX:0},deltaY:function(u){return"deltaY"in u?u.deltaY:"wheelDeltaY"in u?-u.wheelDeltaY:"wheelDelta"in u?-u.wheelDelta:0},deltaZ:0,deltaMode:0}),kz=Gn(Tz),Rz=[9,13,27,32],by=s&&"CompositionEvent"in window,Lc=null;s&&"documentMode"in document&&(Lc=document.documentMode);var Ez=s&&"TextEvent"in window&&!Lc,wC=s&&(!by||Lc&&8<Lc&&11>=Lc),CC=" ",TC=!1;function kC(u,d){switch(u){case"keyup":return Rz.indexOf(d.keyCode)!==-1;case"keydown":return d.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function RC(u){return u=u.detail,typeof u=="object"&&"data"in u?u.data:null}var Hl=!1;function Pz(u,d){switch(u){case"compositionend":return RC(d);case"keypress":return d.which!==32?null:(TC=!0,CC);case"textInput":return u=d.data,u===CC&&TC?null:u;default:return null}}function Mz(u,d){if(Hl)return u==="compositionend"||!by&&kC(u,d)?(u=yC(),Wp=hy=Pa=null,Hl=!1,u):null;switch(u){case"paste":return null;case"keypress":if(!(d.ctrlKey||d.altKey||d.metaKey)||d.ctrlKey&&d.altKey){if(d.char&&1<d.char.length)return d.char;if(d.which)return String.fromCharCode(d.which)}return null;case"compositionend":return wC&&d.locale!=="ko"?null:d.data;default:return null}}var Iz={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 EC(u){var d=u&&u.nodeName&&u.nodeName.toLowerCase();return d==="input"?!!Iz[u.type]:d==="textarea"}function PC(u,d,m,w){on(w),d=Qp(d,"onChange"),0<d.length&&(m=new vy("onChange","change",null,m,w),u.push({event:m,listeners:d}))}var Oc=null,Nc=null;function Az(u){qC(u,0)}function qp(u){var d=ql(u);if(Te(d))return u}function Dz(u,d){if(u==="change")return d}var MC=!1;if(s){var _y;if(s){var Sy="oninput"in document;if(!Sy){var IC=document.createElement("div");IC.setAttribute("oninput","return;"),Sy=typeof IC.oninput=="function"}_y=Sy}else _y=!1;MC=_y&&(!document.documentMode||9<document.documentMode)}function AC(){Oc&&(Oc.detachEvent("onpropertychange",DC),Nc=Oc=null)}function DC(u){if(u.propertyName==="value"&&qp(Nc)){var d=[];PC(d,Nc,u,Et(u)),so(Az,d)}}function Lz(u,d,m){u==="focusin"?(AC(),Oc=d,Nc=m,Oc.attachEvent("onpropertychange",DC)):u==="focusout"&&AC()}function Oz(u){if(u==="selectionchange"||u==="keyup"||u==="keydown")return qp(Nc)}function Nz(u,d){if(u==="click")return qp(d)}function zz(u,d){if(u==="input"||u==="change")return qp(d)}function $z(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var $i=typeof Object.is=="function"?Object.is:$z;function zc(u,d){if($i(u,d))return!0;if(typeof u!="object"||u===null||typeof d!="object"||d===null)return!1;var m=Object.keys(u),w=Object.keys(d);if(m.length!==w.length)return!1;for(w=0;w<m.length;w++){var R=m[w];if(!l.call(d,R)||!$i(u[R],d[R]))return!1}return!0}function LC(u){for(;u&&u.firstChild;)u=u.firstChild;return u}function OC(u,d){var m=LC(u);u=0;for(var w;m;){if(m.nodeType===3){if(w=u+m.textContent.length,u<=d&&w>=d)return{node:m,offset:d-u};u=w}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=LC(m)}}function NC(u,d){return u&&d?u===d?!0:u&&u.nodeType===3?!1:d&&d.nodeType===3?NC(u,d.parentNode):"contains"in u?u.contains(d):u.compareDocumentPosition?!!(u.compareDocumentPosition(d)&16):!1:!1}function zC(){for(var u=window,d=Oe();d instanceof u.HTMLIFrameElement;){try{var m=typeof d.contentWindow.location.href=="string"}catch{m=!1}if(m)u=d.contentWindow;else break;d=Oe(u.document)}return d}function wy(u){var d=u&&u.nodeName&&u.nodeName.toLowerCase();return d&&(d==="input"&&(u.type==="text"||u.type==="search"||u.type==="tel"||u.type==="url"||u.type==="password")||d==="textarea"||u.contentEditable==="true")}function Fz(u){var d=zC(),m=u.focusedElem,w=u.selectionRange;if(d!==m&&m&&m.ownerDocument&&NC(m.ownerDocument.documentElement,m)){if(w!==null&&wy(m)){if(d=w.start,u=w.end,u===void 0&&(u=d),"selectionStart"in m)m.selectionStart=d,m.selectionEnd=Math.min(u,m.value.length);else if(u=(d=m.ownerDocument||document)&&d.defaultView||window,u.getSelection){u=u.getSelection();var R=m.textContent.length,P=Math.min(w.start,R);w=w.end===void 0?P:Math.min(w.end,R),!u.extend&&P>w&&(R=w,w=P,P=R),R=OC(m,P);var F=OC(m,w);R&&F&&(u.rangeCount!==1||u.anchorNode!==R.node||u.anchorOffset!==R.offset||u.focusNode!==F.node||u.focusOffset!==F.offset)&&(d=d.createRange(),d.setStart(R.node,R.offset),u.removeAllRanges(),P>w?(u.addRange(d),u.extend(F.node,F.offset)):(d.setEnd(F.node,F.offset),u.addRange(d)))}}for(d=[],u=m;u=u.parentNode;)u.nodeType===1&&d.push({element:u,left:u.scrollLeft,top:u.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<d.length;m++)u=d[m],u.element.scrollLeft=u.left,u.element.scrollTop=u.top}}var Bz=s&&"documentMode"in document&&11>=document.documentMode,Wl=null,Cy=null,$c=null,Ty=!1;function $C(u,d,m){var w=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;Ty||Wl==null||Wl!==Oe(w)||(w=Wl,"selectionStart"in w&&wy(w)?w={start:w.selectionStart,end:w.selectionEnd}:(w=(w.ownerDocument&&w.ownerDocument.defaultView||window).getSelection(),w={anchorNode:w.anchorNode,anchorOffset:w.anchorOffset,focusNode:w.focusNode,focusOffset:w.focusOffset}),$c&&zc($c,w)||($c=w,w=Qp(Cy,"onSelect"),0<w.length&&(d=new vy("onSelect","select",null,d,m),u.push({event:d,listeners:w}),d.target=Wl)))}function Yp(u,d){var m={};return m[u.toLowerCase()]=d.toLowerCase(),m["Webkit"+u]="webkit"+d,m["Moz"+u]="moz"+d,m}var Vl={animationend:Yp("Animation","AnimationEnd"),animationiteration:Yp("Animation","AnimationIteration"),animationstart:Yp("Animation","AnimationStart"),transitionend:Yp("Transition","TransitionEnd")},ky={},FC={};s&&(FC=document.createElement("div").style,"AnimationEvent"in window||(delete Vl.animationend.animation,delete Vl.animationiteration.animation,delete Vl.animationstart.animation),"TransitionEvent"in window||delete Vl.transitionend.transition);function Kp(u){if(ky[u])return ky[u];if(!Vl[u])return u;var d=Vl[u],m;for(m in d)if(d.hasOwnProperty(m)&&m in FC)return ky[u]=d[m];return u}var BC=Kp("animationend"),jC=Kp("animationiteration"),HC=Kp("animationstart"),WC=Kp("transitionend"),VC=new Map,UC="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Ma(u,d){VC.set(u,d),o(d,[u])}for(var Ry=0;Ry<UC.length;Ry++){var Ey=UC[Ry],jz=Ey.toLowerCase(),Hz=Ey[0].toUpperCase()+Ey.slice(1);Ma(jz,"on"+Hz)}Ma(BC,"onAnimationEnd"),Ma(jC,"onAnimationIteration"),Ma(HC,"onAnimationStart"),Ma("dblclick","onDoubleClick"),Ma("focusin","onFocus"),Ma("focusout","onBlur"),Ma(WC,"onTransitionEnd"),a("onMouseEnter",["mouseout","mouseover"]),a("onMouseLeave",["mouseout","mouseover"]),a("onPointerEnter",["pointerout","pointerover"]),a("onPointerLeave",["pointerout","pointerover"]),o("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),o("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),o("onBeforeInput",["compositionend","keypress","textInput","paste"]),o("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),o("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Fc="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(" "),Wz=new Set("cancel close invalid load scroll toggle".split(" ").concat(Fc));function GC(u,d,m){var w=u.type||"unknown-event";u.currentTarget=m,se(w,d,void 0,u),u.currentTarget=null}function qC(u,d){d=(d&4)!==0;for(var m=0;m<u.length;m++){var w=u[m],R=w.event;w=w.listeners;e:{var P=void 0;if(d)for(var F=w.length-1;0<=F;F--){var Y=w[F],K=Y.instance,ie=Y.currentTarget;if(Y=Y.listener,K!==P&&R.isPropagationStopped())break e;GC(R,Y,ie),P=K}else for(F=0;F<w.length;F++){if(Y=w[F],K=Y.instance,ie=Y.currentTarget,Y=Y.listener,K!==P&&R.isPropagationStopped())break e;GC(R,Y,ie),P=K}}}if(Sn)throw u=uo,Sn=!1,uo=null,u}function tr(u,d){var m=d[Ny];m===void 0&&(m=d[Ny]=new Set);var w=u+"__bubble";m.has(w)||(YC(d,u,2,!1),m.add(w))}function Py(u,d,m){var w=0;d&&(w|=4),YC(m,u,w,d)}var Xp="_reactListening"+Math.random().toString(36).slice(2);function Bc(u){if(!u[Xp]){u[Xp]=!0,n.forEach(function(m){m!=="selectionchange"&&(Wz.has(m)||Py(m,!1,u),Py(m,!0,u))});var d=u.nodeType===9?u:u.ownerDocument;d===null||d[Xp]||(d[Xp]=!0,Py("selectionchange",!1,d))}}function YC(u,d,m,w){switch(mC(d)){case 1:var R=nz;break;case 4:R=iz;break;default:R=dy}m=R.bind(null,d,m,u),R=void 0,!Xt||d!=="touchstart"&&d!=="touchmove"&&d!=="wheel"||(R=!0),w?R!==void 0?u.addEventListener(d,m,{capture:!0,passive:R}):u.addEventListener(d,m,!0):R!==void 0?u.addEventListener(d,m,{passive:R}):u.addEventListener(d,m,!1)}function My(u,d,m,w,R){var P=w;if((d&1)===0&&(d&2)===0&&w!==null)e:for(;;){if(w===null)return;var F=w.tag;if(F===3||F===4){var Y=w.stateNode.containerInfo;if(Y===R||Y.nodeType===8&&Y.parentNode===R)break;if(F===4)for(F=w.return;F!==null;){var K=F.tag;if((K===3||K===4)&&(K=F.stateNode.containerInfo,K===R||K.nodeType===8&&K.parentNode===R))return;F=F.return}for(;Y!==null;){if(F=Rs(Y),F===null)return;if(K=F.tag,K===5||K===6){w=P=F;continue e}Y=Y.parentNode}}w=w.return}so(function(){var ie=P,ye=Et(m),_e=[];e:{var me=VC.get(u);if(me!==void 0){var Le=vy,Fe=u;switch(u){case"keypress":if(Vp(m)===0)break e;case"keydown":case"keyup":Le=xz;break;case"focusin":Fe="focus",Le=yy;break;case"focusout":Fe="blur",Le=yy;break;case"beforeblur":case"afterblur":Le=yy;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":Le=bC;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Le=sz;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Le=Sz;break;case BC:case jC:case HC:Le=cz;break;case WC:Le=Cz;break;case"scroll":Le=oz;break;case"wheel":Le=kz;break;case"copy":case"cut":case"paste":Le=dz;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Le=SC}var He=(d&4)!==0,br=!He&&u==="scroll",ee=He?me!==null?me+"Capture":null:me;He=[];for(var J=ie,re;J!==null;){re=J;var ke=re.stateNode;if(re.tag===5&&ke!==null&&(re=ke,ee!==null&&(ke=nr(J,ee),ke!=null&&He.push(jc(J,ke,re)))),br)break;J=J.return}0<He.length&&(me=new Le(me,Fe,null,m,ye),_e.push({event:me,listeners:He}))}}if((d&7)===0){e:{if(me=u==="mouseover"||u==="pointerover",Le=u==="mouseout"||u==="pointerout",me&&m!==Ge&&(Fe=m.relatedTarget||m.fromElement)&&(Rs(Fe)||Fe[Qo]))break e;if((Le||me)&&(me=ye.window===ye?ye:(me=ye.ownerDocument)?me.defaultView||me.parentWindow:window,Le?(Fe=m.relatedTarget||m.toElement,Le=ie,Fe=Fe?Rs(Fe):null,Fe!==null&&(br=ae(Fe),Fe!==br||Fe.tag!==5&&Fe.tag!==6)&&(Fe=null)):(Le=null,Fe=ie),Le!==Fe)){if(He=bC,ke="onMouseLeave",ee="onMouseEnter",J="mouse",(u==="pointerout"||u==="pointerover")&&(He=SC,ke="onPointerLeave",ee="onPointerEnter",J="pointer"),br=Le==null?me:ql(Le),re=Fe==null?me:ql(Fe),me=new He(ke,J+"leave",Le,m,ye),me.target=br,me.relatedTarget=re,ke=null,Rs(ye)===ie&&(He=new He(ee,J+"enter",Fe,m,ye),He.target=re,He.relatedTarget=br,ke=He),br=ke,Le&&Fe)t:{for(He=Le,ee=Fe,J=0,re=He;re;re=Ul(re))J++;for(re=0,ke=ee;ke;ke=Ul(ke))re++;for(;0<J-re;)He=Ul(He),J--;for(;0<re-J;)ee=Ul(ee),re--;for(;J--;){if(He===ee||ee!==null&&He===ee.alternate)break t;He=Ul(He),ee=Ul(ee)}He=null}else He=null;Le!==null&&KC(_e,me,Le,He,!1),Fe!==null&&br!==null&&KC(_e,br,Fe,He,!0)}}e:{if(me=ie?ql(ie):window,Le=me.nodeName&&me.nodeName.toLowerCase(),Le==="select"||Le==="input"&&me.type==="file")var Ve=Dz;else if(EC(me))if(MC)Ve=zz;else{Ve=Oz;var Ze=Lz}else(Le=me.nodeName)&&Le.toLowerCase()==="input"&&(me.type==="checkbox"||me.type==="radio")&&(Ve=Nz);if(Ve&&(Ve=Ve(u,ie))){PC(_e,Ve,m,ye);break e}Ze&&Ze(u,me,ie),u==="focusout"&&(Ze=me._wrapperState)&&Ze.controlled&&me.type==="number"&&bt(me,"number",me.value)}switch(Ze=ie?ql(ie):window,u){case"focusin":(EC(Ze)||Ze.contentEditable==="true")&&(Wl=Ze,Cy=ie,$c=null);break;case"focusout":$c=Cy=Wl=null;break;case"mousedown":Ty=!0;break;case"contextmenu":case"mouseup":case"dragend":Ty=!1,$C(_e,m,ye);break;case"selectionchange":if(Bz)break;case"keydown":case"keyup":$C(_e,m,ye)}var Je;if(by)e:{switch(u){case"compositionstart":var nt="onCompositionStart";break e;case"compositionend":nt="onCompositionEnd";break e;case"compositionupdate":nt="onCompositionUpdate";break e}nt=void 0}else Hl?kC(u,m)&&(nt="onCompositionEnd"):u==="keydown"&&m.keyCode===229&&(nt="onCompositionStart");nt&&(wC&&m.locale!=="ko"&&(Hl||nt!=="onCompositionStart"?nt==="onCompositionEnd"&&Hl&&(Je=yC()):(Pa=ye,hy="value"in Pa?Pa.value:Pa.textContent,Hl=!0)),Ze=Qp(ie,nt),0<Ze.length&&(nt=new _C(nt,u,null,m,ye),_e.push({event:nt,listeners:Ze}),Je?nt.data=Je:(Je=RC(m),Je!==null&&(nt.data=Je)))),(Je=Ez?Pz(u,m):Mz(u,m))&&(ie=Qp(ie,"onBeforeInput"),0<ie.length&&(ye=new _C("onBeforeInput","beforeinput",null,m,ye),_e.push({event:ye,listeners:ie}),ye.data=Je))}qC(_e,d)})}function jc(u,d,m){return{instance:u,listener:d,currentTarget:m}}function Qp(u,d){for(var m=d+"Capture",w=[];u!==null;){var R=u,P=R.stateNode;R.tag===5&&P!==null&&(R=P,P=nr(u,m),P!=null&&w.unshift(jc(u,P,R)),P=nr(u,d),P!=null&&w.push(jc(u,P,R))),u=u.return}return w}function Ul(u){if(u===null)return null;do u=u.return;while(u&&u.tag!==5);return u||null}function KC(u,d,m,w,R){for(var P=d._reactName,F=[];m!==null&&m!==w;){var Y=m,K=Y.alternate,ie=Y.stateNode;if(K!==null&&K===w)break;Y.tag===5&&ie!==null&&(Y=ie,R?(K=nr(m,P),K!=null&&F.unshift(jc(m,K,Y))):R||(K=nr(m,P),K!=null&&F.push(jc(m,K,Y)))),m=m.return}F.length!==0&&u.push({event:d,listeners:F})}var Vz=/\r\n?/g,Uz=/\u0000|\uFFFD/g;function XC(u){return(typeof u=="string"?u:""+u).replace(Vz,`
38
- `).replace(Uz,"")}function Zp(u,d,m){if(d=XC(d),XC(u)!==d&&m)throw Error(r(425))}function Jp(){}var Iy=null,Ay=null;function Dy(u,d){return u==="textarea"||u==="noscript"||typeof d.children=="string"||typeof d.children=="number"||typeof d.dangerouslySetInnerHTML=="object"&&d.dangerouslySetInnerHTML!==null&&d.dangerouslySetInnerHTML.__html!=null}var Ly=typeof setTimeout=="function"?setTimeout:void 0,Gz=typeof clearTimeout=="function"?clearTimeout:void 0,QC=typeof Promise=="function"?Promise:void 0,qz=typeof queueMicrotask=="function"?queueMicrotask:typeof QC<"u"?function(u){return QC.resolve(null).then(u).catch(Yz)}:Ly;function Yz(u){setTimeout(function(){throw u})}function Oy(u,d){var m=d,w=0;do{var R=m.nextSibling;if(u.removeChild(m),R&&R.nodeType===8)if(m=R.data,m==="/$"){if(w===0){u.removeChild(R),Ic(d);return}w--}else m!=="$"&&m!=="$?"&&m!=="$!"||w++;m=R}while(m);Ic(d)}function Ia(u){for(;u!=null;u=u.nextSibling){var d=u.nodeType;if(d===1||d===3)break;if(d===8){if(d=u.data,d==="$"||d==="$!"||d==="$?")break;if(d==="/$")return null}}return u}function ZC(u){u=u.previousSibling;for(var d=0;u;){if(u.nodeType===8){var m=u.data;if(m==="$"||m==="$!"||m==="$?"){if(d===0)return u;d--}else m==="/$"&&d++}u=u.previousSibling}return null}var Gl=Math.random().toString(36).slice(2),fo="__reactFiber$"+Gl,Hc="__reactProps$"+Gl,Qo="__reactContainer$"+Gl,Ny="__reactEvents$"+Gl,Kz="__reactListeners$"+Gl,Xz="__reactHandles$"+Gl;function Rs(u){var d=u[fo];if(d)return d;for(var m=u.parentNode;m;){if(d=m[Qo]||m[fo]){if(m=d.alternate,d.child!==null||m!==null&&m.child!==null)for(u=ZC(u);u!==null;){if(m=u[fo])return m;u=ZC(u)}return d}u=m,m=u.parentNode}return null}function Wc(u){return u=u[fo]||u[Qo],!u||u.tag!==5&&u.tag!==6&&u.tag!==13&&u.tag!==3?null:u}function ql(u){if(u.tag===5||u.tag===6)return u.stateNode;throw Error(r(33))}function eh(u){return u[Hc]||null}var zy=[],Yl=-1;function Aa(u){return{current:u}}function rr(u){0>Yl||(u.current=zy[Yl],zy[Yl]=null,Yl--)}function Qt(u,d){Yl++,zy[Yl]=u.current,u.current=d}var Da={},Gr=Aa(Da),wn=Aa(!1),Es=Da;function Kl(u,d){var m=u.type.contextTypes;if(!m)return Da;var w=u.stateNode;if(w&&w.__reactInternalMemoizedUnmaskedChildContext===d)return w.__reactInternalMemoizedMaskedChildContext;var R={},P;for(P in m)R[P]=d[P];return w&&(u=u.stateNode,u.__reactInternalMemoizedUnmaskedChildContext=d,u.__reactInternalMemoizedMaskedChildContext=R),R}function Cn(u){return u=u.childContextTypes,u!=null}function th(){rr(wn),rr(Gr)}function JC(u,d,m){if(Gr.current!==Da)throw Error(r(168));Qt(Gr,d),Qt(wn,m)}function eT(u,d,m){var w=u.stateNode;if(d=d.childContextTypes,typeof w.getChildContext!="function")return m;w=w.getChildContext();for(var R in w)if(!(R in d))throw Error(r(108,ge(u)||"Unknown",R));return N({},m,w)}function rh(u){return u=(u=u.stateNode)&&u.__reactInternalMemoizedMergedChildContext||Da,Es=Gr.current,Qt(Gr,u),Qt(wn,wn.current),!0}function tT(u,d,m){var w=u.stateNode;if(!w)throw Error(r(169));m?(u=eT(u,d,Es),w.__reactInternalMemoizedMergedChildContext=u,rr(wn),rr(Gr),Qt(Gr,u)):rr(wn),Qt(wn,m)}var Zo=null,nh=!1,$y=!1;function rT(u){Zo===null?Zo=[u]:Zo.push(u)}function Qz(u){nh=!0,rT(u)}function La(){if(!$y&&Zo!==null){$y=!0;var u=0,d=Wt;try{var m=Zo;for(Wt=1;u<m.length;u++){var w=m[u];do w=w(!0);while(w!==null)}Zo=null,nh=!1}catch(R){throw Zo!==null&&(Zo=Zo.slice(u+1)),sn(ay,La),R}finally{Wt=d,$y=!1}}return null}var Xl=[],Ql=0,ih=null,oh=0,fi=[],di=0,Ps=null,Jo=1,ea="";function Ms(u,d){Xl[Ql++]=oh,Xl[Ql++]=ih,ih=u,oh=d}function nT(u,d,m){fi[di++]=Jo,fi[di++]=ea,fi[di++]=Ps,Ps=u;var w=Jo;u=ea;var R=32-zi(w)-1;w&=~(1<<R),m+=1;var P=32-zi(d)+R;if(30<P){var F=R-R%5;P=(w&(1<<F)-1).toString(32),w>>=F,R-=F,Jo=1<<32-zi(d)+R|m<<R|w,ea=P+u}else Jo=1<<P|m<<R|w,ea=u}function Fy(u){u.return!==null&&(Ms(u,1),nT(u,1,0))}function By(u){for(;u===ih;)ih=Xl[--Ql],Xl[Ql]=null,oh=Xl[--Ql],Xl[Ql]=null;for(;u===Ps;)Ps=fi[--di],fi[di]=null,ea=fi[--di],fi[di]=null,Jo=fi[--di],fi[di]=null}var qn=null,Yn=null,ar=!1,Fi=null;function iT(u,d){var m=gi(5,null,null,0);m.elementType="DELETED",m.stateNode=d,m.return=u,d=u.deletions,d===null?(u.deletions=[m],u.flags|=16):d.push(m)}function oT(u,d){switch(u.tag){case 5:var m=u.type;return d=d.nodeType!==1||m.toLowerCase()!==d.nodeName.toLowerCase()?null:d,d!==null?(u.stateNode=d,qn=u,Yn=Ia(d.firstChild),!0):!1;case 6:return d=u.pendingProps===""||d.nodeType!==3?null:d,d!==null?(u.stateNode=d,qn=u,Yn=null,!0):!1;case 13:return d=d.nodeType!==8?null:d,d!==null?(m=Ps!==null?{id:Jo,overflow:ea}:null,u.memoizedState={dehydrated:d,treeContext:m,retryLane:1073741824},m=gi(18,null,null,0),m.stateNode=d,m.return=u,u.child=m,qn=u,Yn=null,!0):!1;default:return!1}}function jy(u){return(u.mode&1)!==0&&(u.flags&128)===0}function Hy(u){if(ar){var d=Yn;if(d){var m=d;if(!oT(u,d)){if(jy(u))throw Error(r(418));d=Ia(m.nextSibling);var w=qn;d&&oT(u,d)?iT(w,m):(u.flags=u.flags&-4097|2,ar=!1,qn=u)}}else{if(jy(u))throw Error(r(418));u.flags=u.flags&-4097|2,ar=!1,qn=u}}}function aT(u){for(u=u.return;u!==null&&u.tag!==5&&u.tag!==3&&u.tag!==13;)u=u.return;qn=u}function ah(u){if(u!==qn)return!1;if(!ar)return aT(u),ar=!0,!1;var d;if((d=u.tag!==3)&&!(d=u.tag!==5)&&(d=u.type,d=d!=="head"&&d!=="body"&&!Dy(u.type,u.memoizedProps)),d&&(d=Yn)){if(jy(u))throw sT(),Error(r(418));for(;d;)iT(u,d),d=Ia(d.nextSibling)}if(aT(u),u.tag===13){if(u=u.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));e:{for(u=u.nextSibling,d=0;u;){if(u.nodeType===8){var m=u.data;if(m==="/$"){if(d===0){Yn=Ia(u.nextSibling);break e}d--}else m!=="$"&&m!=="$!"&&m!=="$?"||d++}u=u.nextSibling}Yn=null}}else Yn=qn?Ia(u.stateNode.nextSibling):null;return!0}function sT(){for(var u=Yn;u;)u=Ia(u.nextSibling)}function Zl(){Yn=qn=null,ar=!1}function Wy(u){Fi===null?Fi=[u]:Fi.push(u)}var Zz=C.ReactCurrentBatchConfig;function Vc(u,d,m){if(u=m.ref,u!==null&&typeof u!="function"&&typeof u!="object"){if(m._owner){if(m=m._owner,m){if(m.tag!==1)throw Error(r(309));var w=m.stateNode}if(!w)throw Error(r(147,u));var R=w,P=""+u;return d!==null&&d.ref!==null&&typeof d.ref=="function"&&d.ref._stringRef===P?d.ref:(d=function(F){var Y=R.refs;F===null?delete Y[P]:Y[P]=F},d._stringRef=P,d)}if(typeof u!="string")throw Error(r(284));if(!m._owner)throw Error(r(290,u))}return u}function sh(u,d){throw u=Object.prototype.toString.call(d),Error(r(31,u==="[object Object]"?"object with keys {"+Object.keys(d).join(", ")+"}":u))}function lT(u){var d=u._init;return d(u._payload)}function uT(u){function d(ee,J){if(u){var re=ee.deletions;re===null?(ee.deletions=[J],ee.flags|=16):re.push(J)}}function m(ee,J){if(!u)return null;for(;J!==null;)d(ee,J),J=J.sibling;return null}function w(ee,J){for(ee=new Map;J!==null;)J.key!==null?ee.set(J.key,J):ee.set(J.index,J),J=J.sibling;return ee}function R(ee,J){return ee=Ha(ee,J),ee.index=0,ee.sibling=null,ee}function P(ee,J,re){return ee.index=re,u?(re=ee.alternate,re!==null?(re=re.index,re<J?(ee.flags|=2,J):re):(ee.flags|=2,J)):(ee.flags|=1048576,J)}function F(ee){return u&&ee.alternate===null&&(ee.flags|=2),ee}function Y(ee,J,re,ke){return J===null||J.tag!==6?(J=L0(re,ee.mode,ke),J.return=ee,J):(J=R(J,re),J.return=ee,J)}function K(ee,J,re,ke){var Ve=re.type;return Ve===E?ye(ee,J,re.props.children,ke,re.key):J!==null&&(J.elementType===Ve||typeof Ve=="object"&&Ve!==null&&Ve.$$typeof===q&&lT(Ve)===J.type)?(ke=R(J,re.props),ke.ref=Vc(ee,J,re),ke.return=ee,ke):(ke=Ih(re.type,re.key,re.props,null,ee.mode,ke),ke.ref=Vc(ee,J,re),ke.return=ee,ke)}function ie(ee,J,re,ke){return J===null||J.tag!==4||J.stateNode.containerInfo!==re.containerInfo||J.stateNode.implementation!==re.implementation?(J=O0(re,ee.mode,ke),J.return=ee,J):(J=R(J,re.children||[]),J.return=ee,J)}function ye(ee,J,re,ke,Ve){return J===null||J.tag!==7?(J=$s(re,ee.mode,ke,Ve),J.return=ee,J):(J=R(J,re),J.return=ee,J)}function _e(ee,J,re){if(typeof J=="string"&&J!==""||typeof J=="number")return J=L0(""+J,ee.mode,re),J.return=ee,J;if(typeof J=="object"&&J!==null){switch(J.$$typeof){case k:return re=Ih(J.type,J.key,J.props,null,ee.mode,re),re.ref=Vc(ee,null,J),re.return=ee,re;case T:return J=O0(J,ee.mode,re),J.return=ee,J;case q:var ke=J._init;return _e(ee,ke(J._payload),re)}if(st(J)||G(J))return J=$s(J,ee.mode,re,null),J.return=ee,J;sh(ee,J)}return null}function me(ee,J,re,ke){var Ve=J!==null?J.key:null;if(typeof re=="string"&&re!==""||typeof re=="number")return Ve!==null?null:Y(ee,J,""+re,ke);if(typeof re=="object"&&re!==null){switch(re.$$typeof){case k:return re.key===Ve?K(ee,J,re,ke):null;case T:return re.key===Ve?ie(ee,J,re,ke):null;case q:return Ve=re._init,me(ee,J,Ve(re._payload),ke)}if(st(re)||G(re))return Ve!==null?null:ye(ee,J,re,ke,null);sh(ee,re)}return null}function Le(ee,J,re,ke,Ve){if(typeof ke=="string"&&ke!==""||typeof ke=="number")return ee=ee.get(re)||null,Y(J,ee,""+ke,Ve);if(typeof ke=="object"&&ke!==null){switch(ke.$$typeof){case k:return ee=ee.get(ke.key===null?re:ke.key)||null,K(J,ee,ke,Ve);case T:return ee=ee.get(ke.key===null?re:ke.key)||null,ie(J,ee,ke,Ve);case q:var Ze=ke._init;return Le(ee,J,re,Ze(ke._payload),Ve)}if(st(ke)||G(ke))return ee=ee.get(re)||null,ye(J,ee,ke,Ve,null);sh(J,ke)}return null}function Fe(ee,J,re,ke){for(var Ve=null,Ze=null,Je=J,nt=J=0,Lr=null;Je!==null&&nt<re.length;nt++){Je.index>nt?(Lr=Je,Je=null):Lr=Je.sibling;var It=me(ee,Je,re[nt],ke);if(It===null){Je===null&&(Je=Lr);break}u&&Je&&It.alternate===null&&d(ee,Je),J=P(It,J,nt),Ze===null?Ve=It:Ze.sibling=It,Ze=It,Je=Lr}if(nt===re.length)return m(ee,Je),ar&&Ms(ee,nt),Ve;if(Je===null){for(;nt<re.length;nt++)Je=_e(ee,re[nt],ke),Je!==null&&(J=P(Je,J,nt),Ze===null?Ve=Je:Ze.sibling=Je,Ze=Je);return ar&&Ms(ee,nt),Ve}for(Je=w(ee,Je);nt<re.length;nt++)Lr=Le(Je,ee,nt,re[nt],ke),Lr!==null&&(u&&Lr.alternate!==null&&Je.delete(Lr.key===null?nt:Lr.key),J=P(Lr,J,nt),Ze===null?Ve=Lr:Ze.sibling=Lr,Ze=Lr);return u&&Je.forEach(function(Wa){return d(ee,Wa)}),ar&&Ms(ee,nt),Ve}function He(ee,J,re,ke){var Ve=G(re);if(typeof Ve!="function")throw Error(r(150));if(re=Ve.call(re),re==null)throw Error(r(151));for(var Ze=Ve=null,Je=J,nt=J=0,Lr=null,It=re.next();Je!==null&&!It.done;nt++,It=re.next()){Je.index>nt?(Lr=Je,Je=null):Lr=Je.sibling;var Wa=me(ee,Je,It.value,ke);if(Wa===null){Je===null&&(Je=Lr);break}u&&Je&&Wa.alternate===null&&d(ee,Je),J=P(Wa,J,nt),Ze===null?Ve=Wa:Ze.sibling=Wa,Ze=Wa,Je=Lr}if(It.done)return m(ee,Je),ar&&Ms(ee,nt),Ve;if(Je===null){for(;!It.done;nt++,It=re.next())It=_e(ee,It.value,ke),It!==null&&(J=P(It,J,nt),Ze===null?Ve=It:Ze.sibling=It,Ze=It);return ar&&Ms(ee,nt),Ve}for(Je=w(ee,Je);!It.done;nt++,It=re.next())It=Le(Je,ee,nt,It.value,ke),It!==null&&(u&&It.alternate!==null&&Je.delete(It.key===null?nt:It.key),J=P(It,J,nt),Ze===null?Ve=It:Ze.sibling=It,Ze=It);return u&&Je.forEach(function(I4){return d(ee,I4)}),ar&&Ms(ee,nt),Ve}function br(ee,J,re,ke){if(typeof re=="object"&&re!==null&&re.type===E&&re.key===null&&(re=re.props.children),typeof re=="object"&&re!==null){switch(re.$$typeof){case k:e:{for(var Ve=re.key,Ze=J;Ze!==null;){if(Ze.key===Ve){if(Ve=re.type,Ve===E){if(Ze.tag===7){m(ee,Ze.sibling),J=R(Ze,re.props.children),J.return=ee,ee=J;break e}}else if(Ze.elementType===Ve||typeof Ve=="object"&&Ve!==null&&Ve.$$typeof===q&&lT(Ve)===Ze.type){m(ee,Ze.sibling),J=R(Ze,re.props),J.ref=Vc(ee,Ze,re),J.return=ee,ee=J;break e}m(ee,Ze);break}else d(ee,Ze);Ze=Ze.sibling}re.type===E?(J=$s(re.props.children,ee.mode,ke,re.key),J.return=ee,ee=J):(ke=Ih(re.type,re.key,re.props,null,ee.mode,ke),ke.ref=Vc(ee,J,re),ke.return=ee,ee=ke)}return F(ee);case T:e:{for(Ze=re.key;J!==null;){if(J.key===Ze)if(J.tag===4&&J.stateNode.containerInfo===re.containerInfo&&J.stateNode.implementation===re.implementation){m(ee,J.sibling),J=R(J,re.children||[]),J.return=ee,ee=J;break e}else{m(ee,J);break}else d(ee,J);J=J.sibling}J=O0(re,ee.mode,ke),J.return=ee,ee=J}return F(ee);case q:return Ze=re._init,br(ee,J,Ze(re._payload),ke)}if(st(re))return Fe(ee,J,re,ke);if(G(re))return He(ee,J,re,ke);sh(ee,re)}return typeof re=="string"&&re!==""||typeof re=="number"?(re=""+re,J!==null&&J.tag===6?(m(ee,J.sibling),J=R(J,re),J.return=ee,ee=J):(m(ee,J),J=L0(re,ee.mode,ke),J.return=ee,ee=J),F(ee)):m(ee,J)}return br}var Jl=uT(!0),cT=uT(!1),lh=Aa(null),uh=null,eu=null,Vy=null;function Uy(){Vy=eu=uh=null}function Gy(u){var d=lh.current;rr(lh),u._currentValue=d}function qy(u,d,m){for(;u!==null;){var w=u.alternate;if((u.childLanes&d)!==d?(u.childLanes|=d,w!==null&&(w.childLanes|=d)):w!==null&&(w.childLanes&d)!==d&&(w.childLanes|=d),u===m)break;u=u.return}}function tu(u,d){uh=u,Vy=eu=null,u=u.dependencies,u!==null&&u.firstContext!==null&&((u.lanes&d)!==0&&(Tn=!0),u.firstContext=null)}function pi(u){var d=u._currentValue;if(Vy!==u)if(u={context:u,memoizedValue:d,next:null},eu===null){if(uh===null)throw Error(r(308));eu=u,uh.dependencies={lanes:0,firstContext:u}}else eu=eu.next=u;return d}var Is=null;function Yy(u){Is===null?Is=[u]:Is.push(u)}function fT(u,d,m,w){var R=d.interleaved;return R===null?(m.next=m,Yy(d)):(m.next=R.next,R.next=m),d.interleaved=m,ta(u,w)}function ta(u,d){u.lanes|=d;var m=u.alternate;for(m!==null&&(m.lanes|=d),m=u,u=u.return;u!==null;)u.childLanes|=d,m=u.alternate,m!==null&&(m.childLanes|=d),m=u,u=u.return;return m.tag===3?m.stateNode:null}var Oa=!1;function Ky(u){u.updateQueue={baseState:u.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function dT(u,d){u=u.updateQueue,d.updateQueue===u&&(d.updateQueue={baseState:u.baseState,firstBaseUpdate:u.firstBaseUpdate,lastBaseUpdate:u.lastBaseUpdate,shared:u.shared,effects:u.effects})}function ra(u,d){return{eventTime:u,lane:d,tag:0,payload:null,callback:null,next:null}}function Na(u,d,m){var w=u.updateQueue;if(w===null)return null;if(w=w.shared,(Pt&2)!==0){var R=w.pending;return R===null?d.next=d:(d.next=R.next,R.next=d),w.pending=d,ta(u,m)}return R=w.interleaved,R===null?(d.next=d,Yy(w)):(d.next=R.next,R.next=d),w.interleaved=d,ta(u,m)}function ch(u,d,m){if(d=d.updateQueue,d!==null&&(d=d.shared,(m&4194240)!==0)){var w=d.lanes;w&=u.pendingLanes,m|=w,d.lanes=m,uy(u,m)}}function pT(u,d){var m=u.updateQueue,w=u.alternate;if(w!==null&&(w=w.updateQueue,m===w)){var R=null,P=null;if(m=m.firstBaseUpdate,m!==null){do{var F={eventTime:m.eventTime,lane:m.lane,tag:m.tag,payload:m.payload,callback:m.callback,next:null};P===null?R=P=F:P=P.next=F,m=m.next}while(m!==null);P===null?R=P=d:P=P.next=d}else R=P=d;m={baseState:w.baseState,firstBaseUpdate:R,lastBaseUpdate:P,shared:w.shared,effects:w.effects},u.updateQueue=m;return}u=m.lastBaseUpdate,u===null?m.firstBaseUpdate=d:u.next=d,m.lastBaseUpdate=d}function fh(u,d,m,w){var R=u.updateQueue;Oa=!1;var P=R.firstBaseUpdate,F=R.lastBaseUpdate,Y=R.shared.pending;if(Y!==null){R.shared.pending=null;var K=Y,ie=K.next;K.next=null,F===null?P=ie:F.next=ie,F=K;var ye=u.alternate;ye!==null&&(ye=ye.updateQueue,Y=ye.lastBaseUpdate,Y!==F&&(Y===null?ye.firstBaseUpdate=ie:Y.next=ie,ye.lastBaseUpdate=K))}if(P!==null){var _e=R.baseState;F=0,ye=ie=K=null,Y=P;do{var me=Y.lane,Le=Y.eventTime;if((w&me)===me){ye!==null&&(ye=ye.next={eventTime:Le,lane:0,tag:Y.tag,payload:Y.payload,callback:Y.callback,next:null});e:{var Fe=u,He=Y;switch(me=d,Le=m,He.tag){case 1:if(Fe=He.payload,typeof Fe=="function"){_e=Fe.call(Le,_e,me);break e}_e=Fe;break e;case 3:Fe.flags=Fe.flags&-65537|128;case 0:if(Fe=He.payload,me=typeof Fe=="function"?Fe.call(Le,_e,me):Fe,me==null)break e;_e=N({},_e,me);break e;case 2:Oa=!0}}Y.callback!==null&&Y.lane!==0&&(u.flags|=64,me=R.effects,me===null?R.effects=[Y]:me.push(Y))}else Le={eventTime:Le,lane:me,tag:Y.tag,payload:Y.payload,callback:Y.callback,next:null},ye===null?(ie=ye=Le,K=_e):ye=ye.next=Le,F|=me;if(Y=Y.next,Y===null){if(Y=R.shared.pending,Y===null)break;me=Y,Y=me.next,me.next=null,R.lastBaseUpdate=me,R.shared.pending=null}}while(!0);if(ye===null&&(K=_e),R.baseState=K,R.firstBaseUpdate=ie,R.lastBaseUpdate=ye,d=R.shared.interleaved,d!==null){R=d;do F|=R.lane,R=R.next;while(R!==d)}else P===null&&(R.shared.lanes=0);Ls|=F,u.lanes=F,u.memoizedState=_e}}function hT(u,d,m){if(u=d.effects,d.effects=null,u!==null)for(d=0;d<u.length;d++){var w=u[d],R=w.callback;if(R!==null){if(w.callback=null,w=m,typeof R!="function")throw Error(r(191,R));R.call(w)}}}var Uc={},po=Aa(Uc),Gc=Aa(Uc),qc=Aa(Uc);function As(u){if(u===Uc)throw Error(r(174));return u}function Xy(u,d){switch(Qt(qc,d),Qt(Gc,u),Qt(po,Uc),u=d.nodeType,u){case 9:case 11:d=(d=d.documentElement)?d.namespaceURI:le(null,"");break;default:u=u===8?d.parentNode:d,d=u.namespaceURI||null,u=u.tagName,d=le(d,u)}rr(po),Qt(po,d)}function ru(){rr(po),rr(Gc),rr(qc)}function vT(u){As(qc.current);var d=As(po.current),m=le(d,u.type);d!==m&&(Qt(Gc,u),Qt(po,m))}function Qy(u){Gc.current===u&&(rr(po),rr(Gc))}var fr=Aa(0);function dh(u){for(var d=u;d!==null;){if(d.tag===13){var m=d.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||m.data==="$?"||m.data==="$!"))return d}else if(d.tag===19&&d.memoizedProps.revealOrder!==void 0){if((d.flags&128)!==0)return d}else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===u)break;for(;d.sibling===null;){if(d.return===null||d.return===u)return null;d=d.return}d.sibling.return=d.return,d=d.sibling}return null}var Zy=[];function Jy(){for(var u=0;u<Zy.length;u++)Zy[u]._workInProgressVersionPrimary=null;Zy.length=0}var ph=C.ReactCurrentDispatcher,e0=C.ReactCurrentBatchConfig,Ds=0,dr=null,Pr=null,Ar=null,hh=!1,Yc=!1,Kc=0,Jz=0;function qr(){throw Error(r(321))}function t0(u,d){if(d===null)return!1;for(var m=0;m<d.length&&m<u.length;m++)if(!$i(u[m],d[m]))return!1;return!0}function r0(u,d,m,w,R,P){if(Ds=P,dr=d,d.memoizedState=null,d.updateQueue=null,d.lanes=0,ph.current=u===null||u.memoizedState===null?n4:i4,u=m(w,R),Yc){P=0;do{if(Yc=!1,Kc=0,25<=P)throw Error(r(301));P+=1,Ar=Pr=null,d.updateQueue=null,ph.current=o4,u=m(w,R)}while(Yc)}if(ph.current=mh,d=Pr!==null&&Pr.next!==null,Ds=0,Ar=Pr=dr=null,hh=!1,d)throw Error(r(300));return u}function n0(){var u=Kc!==0;return Kc=0,u}function ho(){var u={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ar===null?dr.memoizedState=Ar=u:Ar=Ar.next=u,Ar}function hi(){if(Pr===null){var u=dr.alternate;u=u!==null?u.memoizedState:null}else u=Pr.next;var d=Ar===null?dr.memoizedState:Ar.next;if(d!==null)Ar=d,Pr=u;else{if(u===null)throw Error(r(310));Pr=u,u={memoizedState:Pr.memoizedState,baseState:Pr.baseState,baseQueue:Pr.baseQueue,queue:Pr.queue,next:null},Ar===null?dr.memoizedState=Ar=u:Ar=Ar.next=u}return Ar}function Xc(u,d){return typeof d=="function"?d(u):d}function i0(u){var d=hi(),m=d.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=u;var w=Pr,R=w.baseQueue,P=m.pending;if(P!==null){if(R!==null){var F=R.next;R.next=P.next,P.next=F}w.baseQueue=R=P,m.pending=null}if(R!==null){P=R.next,w=w.baseState;var Y=F=null,K=null,ie=P;do{var ye=ie.lane;if((Ds&ye)===ye)K!==null&&(K=K.next={lane:0,action:ie.action,hasEagerState:ie.hasEagerState,eagerState:ie.eagerState,next:null}),w=ie.hasEagerState?ie.eagerState:u(w,ie.action);else{var _e={lane:ye,action:ie.action,hasEagerState:ie.hasEagerState,eagerState:ie.eagerState,next:null};K===null?(Y=K=_e,F=w):K=K.next=_e,dr.lanes|=ye,Ls|=ye}ie=ie.next}while(ie!==null&&ie!==P);K===null?F=w:K.next=Y,$i(w,d.memoizedState)||(Tn=!0),d.memoizedState=w,d.baseState=F,d.baseQueue=K,m.lastRenderedState=w}if(u=m.interleaved,u!==null){R=u;do P=R.lane,dr.lanes|=P,Ls|=P,R=R.next;while(R!==u)}else R===null&&(m.lanes=0);return[d.memoizedState,m.dispatch]}function o0(u){var d=hi(),m=d.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=u;var w=m.dispatch,R=m.pending,P=d.memoizedState;if(R!==null){m.pending=null;var F=R=R.next;do P=u(P,F.action),F=F.next;while(F!==R);$i(P,d.memoizedState)||(Tn=!0),d.memoizedState=P,d.baseQueue===null&&(d.baseState=P),m.lastRenderedState=P}return[P,w]}function gT(){}function mT(u,d){var m=dr,w=hi(),R=d(),P=!$i(w.memoizedState,R);if(P&&(w.memoizedState=R,Tn=!0),w=w.queue,a0(bT.bind(null,m,w,u),[u]),w.getSnapshot!==d||P||Ar!==null&&Ar.memoizedState.tag&1){if(m.flags|=2048,Qc(9,xT.bind(null,m,w,R,d),void 0,null),Dr===null)throw Error(r(349));(Ds&30)!==0||yT(m,d,R)}return R}function yT(u,d,m){u.flags|=16384,u={getSnapshot:d,value:m},d=dr.updateQueue,d===null?(d={lastEffect:null,stores:null},dr.updateQueue=d,d.stores=[u]):(m=d.stores,m===null?d.stores=[u]:m.push(u))}function xT(u,d,m,w){d.value=m,d.getSnapshot=w,_T(d)&&ST(u)}function bT(u,d,m){return m(function(){_T(d)&&ST(u)})}function _T(u){var d=u.getSnapshot;u=u.value;try{var m=d();return!$i(u,m)}catch{return!0}}function ST(u){var d=ta(u,1);d!==null&&Wi(d,u,1,-1)}function wT(u){var d=ho();return typeof u=="function"&&(u=u()),d.memoizedState=d.baseState=u,u={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xc,lastRenderedState:u},d.queue=u,u=u.dispatch=r4.bind(null,dr,u),[d.memoizedState,u]}function Qc(u,d,m,w){return u={tag:u,create:d,destroy:m,deps:w,next:null},d=dr.updateQueue,d===null?(d={lastEffect:null,stores:null},dr.updateQueue=d,d.lastEffect=u.next=u):(m=d.lastEffect,m===null?d.lastEffect=u.next=u:(w=m.next,m.next=u,u.next=w,d.lastEffect=u)),u}function CT(){return hi().memoizedState}function vh(u,d,m,w){var R=ho();dr.flags|=u,R.memoizedState=Qc(1|d,m,void 0,w===void 0?null:w)}function gh(u,d,m,w){var R=hi();w=w===void 0?null:w;var P=void 0;if(Pr!==null){var F=Pr.memoizedState;if(P=F.destroy,w!==null&&t0(w,F.deps)){R.memoizedState=Qc(d,m,P,w);return}}dr.flags|=u,R.memoizedState=Qc(1|d,m,P,w)}function TT(u,d){return vh(8390656,8,u,d)}function a0(u,d){return gh(2048,8,u,d)}function kT(u,d){return gh(4,2,u,d)}function RT(u,d){return gh(4,4,u,d)}function ET(u,d){if(typeof d=="function")return u=u(),d(u),function(){d(null)};if(d!=null)return u=u(),d.current=u,function(){d.current=null}}function PT(u,d,m){return m=m!=null?m.concat([u]):null,gh(4,4,ET.bind(null,d,u),m)}function s0(){}function MT(u,d){var m=hi();d=d===void 0?null:d;var w=m.memoizedState;return w!==null&&d!==null&&t0(d,w[1])?w[0]:(m.memoizedState=[u,d],u)}function IT(u,d){var m=hi();d=d===void 0?null:d;var w=m.memoizedState;return w!==null&&d!==null&&t0(d,w[1])?w[0]:(u=u(),m.memoizedState=[u,d],u)}function AT(u,d,m){return(Ds&21)===0?(u.baseState&&(u.baseState=!1,Tn=!0),u.memoizedState=m):($i(m,d)||(m=lC(),dr.lanes|=m,Ls|=m,u.baseState=!0),d)}function e4(u,d){var m=Wt;Wt=m!==0&&4>m?m:4,u(!0);var w=e0.transition;e0.transition={};try{u(!1),d()}finally{Wt=m,e0.transition=w}}function DT(){return hi().memoizedState}function t4(u,d,m){var w=Ba(u);if(m={lane:w,action:m,hasEagerState:!1,eagerState:null,next:null},LT(u))OT(d,m);else if(m=fT(u,d,m,w),m!==null){var R=cn();Wi(m,u,w,R),NT(m,d,w)}}function r4(u,d,m){var w=Ba(u),R={lane:w,action:m,hasEagerState:!1,eagerState:null,next:null};if(LT(u))OT(d,R);else{var P=u.alternate;if(u.lanes===0&&(P===null||P.lanes===0)&&(P=d.lastRenderedReducer,P!==null))try{var F=d.lastRenderedState,Y=P(F,m);if(R.hasEagerState=!0,R.eagerState=Y,$i(Y,F)){var K=d.interleaved;K===null?(R.next=R,Yy(d)):(R.next=K.next,K.next=R),d.interleaved=R;return}}catch{}finally{}m=fT(u,d,R,w),m!==null&&(R=cn(),Wi(m,u,w,R),NT(m,d,w))}}function LT(u){var d=u.alternate;return u===dr||d!==null&&d===dr}function OT(u,d){Yc=hh=!0;var m=u.pending;m===null?d.next=d:(d.next=m.next,m.next=d),u.pending=d}function NT(u,d,m){if((m&4194240)!==0){var w=d.lanes;w&=u.pendingLanes,m|=w,d.lanes=m,uy(u,m)}}var mh={readContext:pi,useCallback:qr,useContext:qr,useEffect:qr,useImperativeHandle:qr,useInsertionEffect:qr,useLayoutEffect:qr,useMemo:qr,useReducer:qr,useRef:qr,useState:qr,useDebugValue:qr,useDeferredValue:qr,useTransition:qr,useMutableSource:qr,useSyncExternalStore:qr,useId:qr,unstable_isNewReconciler:!1},n4={readContext:pi,useCallback:function(u,d){return ho().memoizedState=[u,d===void 0?null:d],u},useContext:pi,useEffect:TT,useImperativeHandle:function(u,d,m){return m=m!=null?m.concat([u]):null,vh(4194308,4,ET.bind(null,d,u),m)},useLayoutEffect:function(u,d){return vh(4194308,4,u,d)},useInsertionEffect:function(u,d){return vh(4,2,u,d)},useMemo:function(u,d){var m=ho();return d=d===void 0?null:d,u=u(),m.memoizedState=[u,d],u},useReducer:function(u,d,m){var w=ho();return d=m!==void 0?m(d):d,w.memoizedState=w.baseState=d,u={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:u,lastRenderedState:d},w.queue=u,u=u.dispatch=t4.bind(null,dr,u),[w.memoizedState,u]},useRef:function(u){var d=ho();return u={current:u},d.memoizedState=u},useState:wT,useDebugValue:s0,useDeferredValue:function(u){return ho().memoizedState=u},useTransition:function(){var u=wT(!1),d=u[0];return u=e4.bind(null,u[1]),ho().memoizedState=u,[d,u]},useMutableSource:function(){},useSyncExternalStore:function(u,d,m){var w=dr,R=ho();if(ar){if(m===void 0)throw Error(r(407));m=m()}else{if(m=d(),Dr===null)throw Error(r(349));(Ds&30)!==0||yT(w,d,m)}R.memoizedState=m;var P={value:m,getSnapshot:d};return R.queue=P,TT(bT.bind(null,w,P,u),[u]),w.flags|=2048,Qc(9,xT.bind(null,w,P,m,d),void 0,null),m},useId:function(){var u=ho(),d=Dr.identifierPrefix;if(ar){var m=ea,w=Jo;m=(w&~(1<<32-zi(w)-1)).toString(32)+m,d=":"+d+"R"+m,m=Kc++,0<m&&(d+="H"+m.toString(32)),d+=":"}else m=Jz++,d=":"+d+"r"+m.toString(32)+":";return u.memoizedState=d},unstable_isNewReconciler:!1},i4={readContext:pi,useCallback:MT,useContext:pi,useEffect:a0,useImperativeHandle:PT,useInsertionEffect:kT,useLayoutEffect:RT,useMemo:IT,useReducer:i0,useRef:CT,useState:function(){return i0(Xc)},useDebugValue:s0,useDeferredValue:function(u){var d=hi();return AT(d,Pr.memoizedState,u)},useTransition:function(){var u=i0(Xc)[0],d=hi().memoizedState;return[u,d]},useMutableSource:gT,useSyncExternalStore:mT,useId:DT,unstable_isNewReconciler:!1},o4={readContext:pi,useCallback:MT,useContext:pi,useEffect:a0,useImperativeHandle:PT,useInsertionEffect:kT,useLayoutEffect:RT,useMemo:IT,useReducer:o0,useRef:CT,useState:function(){return o0(Xc)},useDebugValue:s0,useDeferredValue:function(u){var d=hi();return Pr===null?d.memoizedState=u:AT(d,Pr.memoizedState,u)},useTransition:function(){var u=o0(Xc)[0],d=hi().memoizedState;return[u,d]},useMutableSource:gT,useSyncExternalStore:mT,useId:DT,unstable_isNewReconciler:!1};function Bi(u,d){if(u&&u.defaultProps){d=N({},d),u=u.defaultProps;for(var m in u)d[m]===void 0&&(d[m]=u[m]);return d}return d}function l0(u,d,m,w){d=u.memoizedState,m=m(w,d),m=m==null?d:N({},d,m),u.memoizedState=m,u.lanes===0&&(u.updateQueue.baseState=m)}var yh={isMounted:function(u){return(u=u._reactInternals)?ae(u)===u:!1},enqueueSetState:function(u,d,m){u=u._reactInternals;var w=cn(),R=Ba(u),P=ra(w,R);P.payload=d,m!=null&&(P.callback=m),d=Na(u,P,R),d!==null&&(Wi(d,u,R,w),ch(d,u,R))},enqueueReplaceState:function(u,d,m){u=u._reactInternals;var w=cn(),R=Ba(u),P=ra(w,R);P.tag=1,P.payload=d,m!=null&&(P.callback=m),d=Na(u,P,R),d!==null&&(Wi(d,u,R,w),ch(d,u,R))},enqueueForceUpdate:function(u,d){u=u._reactInternals;var m=cn(),w=Ba(u),R=ra(m,w);R.tag=2,d!=null&&(R.callback=d),d=Na(u,R,w),d!==null&&(Wi(d,u,w,m),ch(d,u,w))}};function zT(u,d,m,w,R,P,F){return u=u.stateNode,typeof u.shouldComponentUpdate=="function"?u.shouldComponentUpdate(w,P,F):d.prototype&&d.prototype.isPureReactComponent?!zc(m,w)||!zc(R,P):!0}function $T(u,d,m){var w=!1,R=Da,P=d.contextType;return typeof P=="object"&&P!==null?P=pi(P):(R=Cn(d)?Es:Gr.current,w=d.contextTypes,P=(w=w!=null)?Kl(u,R):Da),d=new d(m,P),u.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=yh,u.stateNode=d,d._reactInternals=u,w&&(u=u.stateNode,u.__reactInternalMemoizedUnmaskedChildContext=R,u.__reactInternalMemoizedMaskedChildContext=P),d}function FT(u,d,m,w){u=d.state,typeof d.componentWillReceiveProps=="function"&&d.componentWillReceiveProps(m,w),typeof d.UNSAFE_componentWillReceiveProps=="function"&&d.UNSAFE_componentWillReceiveProps(m,w),d.state!==u&&yh.enqueueReplaceState(d,d.state,null)}function u0(u,d,m,w){var R=u.stateNode;R.props=m,R.state=u.memoizedState,R.refs={},Ky(u);var P=d.contextType;typeof P=="object"&&P!==null?R.context=pi(P):(P=Cn(d)?Es:Gr.current,R.context=Kl(u,P)),R.state=u.memoizedState,P=d.getDerivedStateFromProps,typeof P=="function"&&(l0(u,d,P,m),R.state=u.memoizedState),typeof d.getDerivedStateFromProps=="function"||typeof R.getSnapshotBeforeUpdate=="function"||typeof R.UNSAFE_componentWillMount!="function"&&typeof R.componentWillMount!="function"||(d=R.state,typeof R.componentWillMount=="function"&&R.componentWillMount(),typeof R.UNSAFE_componentWillMount=="function"&&R.UNSAFE_componentWillMount(),d!==R.state&&yh.enqueueReplaceState(R,R.state,null),fh(u,m,R,w),R.state=u.memoizedState),typeof R.componentDidMount=="function"&&(u.flags|=4194308)}function nu(u,d){try{var m="",w=d;do m+=ve(w),w=w.return;while(w);var R=m}catch(P){R=`
39
- Error generating stack: `+P.message+`
40
- `+P.stack}return{value:u,source:d,stack:R,digest:null}}function c0(u,d,m){return{value:u,source:null,stack:m??null,digest:d??null}}function f0(u,d){try{console.error(d.value)}catch(m){setTimeout(function(){throw m})}}var a4=typeof WeakMap=="function"?WeakMap:Map;function BT(u,d,m){m=ra(-1,m),m.tag=3,m.payload={element:null};var w=d.value;return m.callback=function(){Th||(Th=!0,k0=w),f0(u,d)},m}function jT(u,d,m){m=ra(-1,m),m.tag=3;var w=u.type.getDerivedStateFromError;if(typeof w=="function"){var R=d.value;m.payload=function(){return w(R)},m.callback=function(){f0(u,d)}}var P=u.stateNode;return P!==null&&typeof P.componentDidCatch=="function"&&(m.callback=function(){f0(u,d),typeof w!="function"&&($a===null?$a=new Set([this]):$a.add(this));var F=d.stack;this.componentDidCatch(d.value,{componentStack:F!==null?F:""})}),m}function HT(u,d,m){var w=u.pingCache;if(w===null){w=u.pingCache=new a4;var R=new Set;w.set(d,R)}else R=w.get(d),R===void 0&&(R=new Set,w.set(d,R));R.has(m)||(R.add(m),u=b4.bind(null,u,d,m),d.then(u,u))}function WT(u){do{var d;if((d=u.tag===13)&&(d=u.memoizedState,d=d!==null?d.dehydrated!==null:!0),d)return u;u=u.return}while(u!==null);return null}function VT(u,d,m,w,R){return(u.mode&1)===0?(u===d?u.flags|=65536:(u.flags|=128,m.flags|=131072,m.flags&=-52805,m.tag===1&&(m.alternate===null?m.tag=17:(d=ra(-1,1),d.tag=2,Na(m,d,1))),m.lanes|=1),u):(u.flags|=65536,u.lanes=R,u)}var s4=C.ReactCurrentOwner,Tn=!1;function un(u,d,m,w){d.child=u===null?cT(d,null,m,w):Jl(d,u.child,m,w)}function UT(u,d,m,w,R){m=m.render;var P=d.ref;return tu(d,R),w=r0(u,d,m,w,P,R),m=n0(),u!==null&&!Tn?(d.updateQueue=u.updateQueue,d.flags&=-2053,u.lanes&=~R,na(u,d,R)):(ar&&m&&Fy(d),d.flags|=1,un(u,d,w,R),d.child)}function GT(u,d,m,w,R){if(u===null){var P=m.type;return typeof P=="function"&&!D0(P)&&P.defaultProps===void 0&&m.compare===null&&m.defaultProps===void 0?(d.tag=15,d.type=P,qT(u,d,P,w,R)):(u=Ih(m.type,null,w,d,d.mode,R),u.ref=d.ref,u.return=d,d.child=u)}if(P=u.child,(u.lanes&R)===0){var F=P.memoizedProps;if(m=m.compare,m=m!==null?m:zc,m(F,w)&&u.ref===d.ref)return na(u,d,R)}return d.flags|=1,u=Ha(P,w),u.ref=d.ref,u.return=d,d.child=u}function qT(u,d,m,w,R){if(u!==null){var P=u.memoizedProps;if(zc(P,w)&&u.ref===d.ref)if(Tn=!1,d.pendingProps=w=P,(u.lanes&R)!==0)(u.flags&131072)!==0&&(Tn=!0);else return d.lanes=u.lanes,na(u,d,R)}return d0(u,d,m,w,R)}function YT(u,d,m){var w=d.pendingProps,R=w.children,P=u!==null?u.memoizedState:null;if(w.mode==="hidden")if((d.mode&1)===0)d.memoizedState={baseLanes:0,cachePool:null,transitions:null},Qt(ou,Kn),Kn|=m;else{if((m&1073741824)===0)return u=P!==null?P.baseLanes|m:m,d.lanes=d.childLanes=1073741824,d.memoizedState={baseLanes:u,cachePool:null,transitions:null},d.updateQueue=null,Qt(ou,Kn),Kn|=u,null;d.memoizedState={baseLanes:0,cachePool:null,transitions:null},w=P!==null?P.baseLanes:m,Qt(ou,Kn),Kn|=w}else P!==null?(w=P.baseLanes|m,d.memoizedState=null):w=m,Qt(ou,Kn),Kn|=w;return un(u,d,R,m),d.child}function KT(u,d){var m=d.ref;(u===null&&m!==null||u!==null&&u.ref!==m)&&(d.flags|=512,d.flags|=2097152)}function d0(u,d,m,w,R){var P=Cn(m)?Es:Gr.current;return P=Kl(d,P),tu(d,R),m=r0(u,d,m,w,P,R),w=n0(),u!==null&&!Tn?(d.updateQueue=u.updateQueue,d.flags&=-2053,u.lanes&=~R,na(u,d,R)):(ar&&w&&Fy(d),d.flags|=1,un(u,d,m,R),d.child)}function XT(u,d,m,w,R){if(Cn(m)){var P=!0;rh(d)}else P=!1;if(tu(d,R),d.stateNode===null)bh(u,d),$T(d,m,w),u0(d,m,w,R),w=!0;else if(u===null){var F=d.stateNode,Y=d.memoizedProps;F.props=Y;var K=F.context,ie=m.contextType;typeof ie=="object"&&ie!==null?ie=pi(ie):(ie=Cn(m)?Es:Gr.current,ie=Kl(d,ie));var ye=m.getDerivedStateFromProps,_e=typeof ye=="function"||typeof F.getSnapshotBeforeUpdate=="function";_e||typeof F.UNSAFE_componentWillReceiveProps!="function"&&typeof F.componentWillReceiveProps!="function"||(Y!==w||K!==ie)&&FT(d,F,w,ie),Oa=!1;var me=d.memoizedState;F.state=me,fh(d,w,F,R),K=d.memoizedState,Y!==w||me!==K||wn.current||Oa?(typeof ye=="function"&&(l0(d,m,ye,w),K=d.memoizedState),(Y=Oa||zT(d,m,Y,w,me,K,ie))?(_e||typeof F.UNSAFE_componentWillMount!="function"&&typeof F.componentWillMount!="function"||(typeof F.componentWillMount=="function"&&F.componentWillMount(),typeof F.UNSAFE_componentWillMount=="function"&&F.UNSAFE_componentWillMount()),typeof F.componentDidMount=="function"&&(d.flags|=4194308)):(typeof F.componentDidMount=="function"&&(d.flags|=4194308),d.memoizedProps=w,d.memoizedState=K),F.props=w,F.state=K,F.context=ie,w=Y):(typeof F.componentDidMount=="function"&&(d.flags|=4194308),w=!1)}else{F=d.stateNode,dT(u,d),Y=d.memoizedProps,ie=d.type===d.elementType?Y:Bi(d.type,Y),F.props=ie,_e=d.pendingProps,me=F.context,K=m.contextType,typeof K=="object"&&K!==null?K=pi(K):(K=Cn(m)?Es:Gr.current,K=Kl(d,K));var Le=m.getDerivedStateFromProps;(ye=typeof Le=="function"||typeof F.getSnapshotBeforeUpdate=="function")||typeof F.UNSAFE_componentWillReceiveProps!="function"&&typeof F.componentWillReceiveProps!="function"||(Y!==_e||me!==K)&&FT(d,F,w,K),Oa=!1,me=d.memoizedState,F.state=me,fh(d,w,F,R);var Fe=d.memoizedState;Y!==_e||me!==Fe||wn.current||Oa?(typeof Le=="function"&&(l0(d,m,Le,w),Fe=d.memoizedState),(ie=Oa||zT(d,m,ie,w,me,Fe,K)||!1)?(ye||typeof F.UNSAFE_componentWillUpdate!="function"&&typeof F.componentWillUpdate!="function"||(typeof F.componentWillUpdate=="function"&&F.componentWillUpdate(w,Fe,K),typeof F.UNSAFE_componentWillUpdate=="function"&&F.UNSAFE_componentWillUpdate(w,Fe,K)),typeof F.componentDidUpdate=="function"&&(d.flags|=4),typeof F.getSnapshotBeforeUpdate=="function"&&(d.flags|=1024)):(typeof F.componentDidUpdate!="function"||Y===u.memoizedProps&&me===u.memoizedState||(d.flags|=4),typeof F.getSnapshotBeforeUpdate!="function"||Y===u.memoizedProps&&me===u.memoizedState||(d.flags|=1024),d.memoizedProps=w,d.memoizedState=Fe),F.props=w,F.state=Fe,F.context=K,w=ie):(typeof F.componentDidUpdate!="function"||Y===u.memoizedProps&&me===u.memoizedState||(d.flags|=4),typeof F.getSnapshotBeforeUpdate!="function"||Y===u.memoizedProps&&me===u.memoizedState||(d.flags|=1024),w=!1)}return p0(u,d,m,w,P,R)}function p0(u,d,m,w,R,P){KT(u,d);var F=(d.flags&128)!==0;if(!w&&!F)return R&&tT(d,m,!1),na(u,d,P);w=d.stateNode,s4.current=d;var Y=F&&typeof m.getDerivedStateFromError!="function"?null:w.render();return d.flags|=1,u!==null&&F?(d.child=Jl(d,u.child,null,P),d.child=Jl(d,null,Y,P)):un(u,d,Y,P),d.memoizedState=w.state,R&&tT(d,m,!0),d.child}function QT(u){var d=u.stateNode;d.pendingContext?JC(u,d.pendingContext,d.pendingContext!==d.context):d.context&&JC(u,d.context,!1),Xy(u,d.containerInfo)}function ZT(u,d,m,w,R){return Zl(),Wy(R),d.flags|=256,un(u,d,m,w),d.child}var h0={dehydrated:null,treeContext:null,retryLane:0};function v0(u){return{baseLanes:u,cachePool:null,transitions:null}}function JT(u,d,m){var w=d.pendingProps,R=fr.current,P=!1,F=(d.flags&128)!==0,Y;if((Y=F)||(Y=u!==null&&u.memoizedState===null?!1:(R&2)!==0),Y?(P=!0,d.flags&=-129):(u===null||u.memoizedState!==null)&&(R|=1),Qt(fr,R&1),u===null)return Hy(d),u=d.memoizedState,u!==null&&(u=u.dehydrated,u!==null)?((d.mode&1)===0?d.lanes=1:u.data==="$!"?d.lanes=8:d.lanes=1073741824,null):(F=w.children,u=w.fallback,P?(w=d.mode,P=d.child,F={mode:"hidden",children:F},(w&1)===0&&P!==null?(P.childLanes=0,P.pendingProps=F):P=Ah(F,w,0,null),u=$s(u,w,m,null),P.return=d,u.return=d,P.sibling=u,d.child=P,d.child.memoizedState=v0(m),d.memoizedState=h0,u):g0(d,F));if(R=u.memoizedState,R!==null&&(Y=R.dehydrated,Y!==null))return l4(u,d,F,w,Y,R,m);if(P){P=w.fallback,F=d.mode,R=u.child,Y=R.sibling;var K={mode:"hidden",children:w.children};return(F&1)===0&&d.child!==R?(w=d.child,w.childLanes=0,w.pendingProps=K,d.deletions=null):(w=Ha(R,K),w.subtreeFlags=R.subtreeFlags&14680064),Y!==null?P=Ha(Y,P):(P=$s(P,F,m,null),P.flags|=2),P.return=d,w.return=d,w.sibling=P,d.child=w,w=P,P=d.child,F=u.child.memoizedState,F=F===null?v0(m):{baseLanes:F.baseLanes|m,cachePool:null,transitions:F.transitions},P.memoizedState=F,P.childLanes=u.childLanes&~m,d.memoizedState=h0,w}return P=u.child,u=P.sibling,w=Ha(P,{mode:"visible",children:w.children}),(d.mode&1)===0&&(w.lanes=m),w.return=d,w.sibling=null,u!==null&&(m=d.deletions,m===null?(d.deletions=[u],d.flags|=16):m.push(u)),d.child=w,d.memoizedState=null,w}function g0(u,d){return d=Ah({mode:"visible",children:d},u.mode,0,null),d.return=u,u.child=d}function xh(u,d,m,w){return w!==null&&Wy(w),Jl(d,u.child,null,m),u=g0(d,d.pendingProps.children),u.flags|=2,d.memoizedState=null,u}function l4(u,d,m,w,R,P,F){if(m)return d.flags&256?(d.flags&=-257,w=c0(Error(r(422))),xh(u,d,F,w)):d.memoizedState!==null?(d.child=u.child,d.flags|=128,null):(P=w.fallback,R=d.mode,w=Ah({mode:"visible",children:w.children},R,0,null),P=$s(P,R,F,null),P.flags|=2,w.return=d,P.return=d,w.sibling=P,d.child=w,(d.mode&1)!==0&&Jl(d,u.child,null,F),d.child.memoizedState=v0(F),d.memoizedState=h0,P);if((d.mode&1)===0)return xh(u,d,F,null);if(R.data==="$!"){if(w=R.nextSibling&&R.nextSibling.dataset,w)var Y=w.dgst;return w=Y,P=Error(r(419)),w=c0(P,w,void 0),xh(u,d,F,w)}if(Y=(F&u.childLanes)!==0,Tn||Y){if(w=Dr,w!==null){switch(F&-F){case 4:R=2;break;case 16:R=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:R=32;break;case 536870912:R=268435456;break;default:R=0}R=(R&(w.suspendedLanes|F))!==0?0:R,R!==0&&R!==P.retryLane&&(P.retryLane=R,ta(u,R),Wi(w,u,R,-1))}return A0(),w=c0(Error(r(421))),xh(u,d,F,w)}return R.data==="$?"?(d.flags|=128,d.child=u.child,d=_4.bind(null,u),R._reactRetry=d,null):(u=P.treeContext,Yn=Ia(R.nextSibling),qn=d,ar=!0,Fi=null,u!==null&&(fi[di++]=Jo,fi[di++]=ea,fi[di++]=Ps,Jo=u.id,ea=u.overflow,Ps=d),d=g0(d,w.children),d.flags|=4096,d)}function ek(u,d,m){u.lanes|=d;var w=u.alternate;w!==null&&(w.lanes|=d),qy(u.return,d,m)}function m0(u,d,m,w,R){var P=u.memoizedState;P===null?u.memoizedState={isBackwards:d,rendering:null,renderingStartTime:0,last:w,tail:m,tailMode:R}:(P.isBackwards=d,P.rendering=null,P.renderingStartTime=0,P.last=w,P.tail=m,P.tailMode=R)}function tk(u,d,m){var w=d.pendingProps,R=w.revealOrder,P=w.tail;if(un(u,d,w.children,m),w=fr.current,(w&2)!==0)w=w&1|2,d.flags|=128;else{if(u!==null&&(u.flags&128)!==0)e:for(u=d.child;u!==null;){if(u.tag===13)u.memoizedState!==null&&ek(u,m,d);else if(u.tag===19)ek(u,m,d);else if(u.child!==null){u.child.return=u,u=u.child;continue}if(u===d)break e;for(;u.sibling===null;){if(u.return===null||u.return===d)break e;u=u.return}u.sibling.return=u.return,u=u.sibling}w&=1}if(Qt(fr,w),(d.mode&1)===0)d.memoizedState=null;else switch(R){case"forwards":for(m=d.child,R=null;m!==null;)u=m.alternate,u!==null&&dh(u)===null&&(R=m),m=m.sibling;m=R,m===null?(R=d.child,d.child=null):(R=m.sibling,m.sibling=null),m0(d,!1,R,m,P);break;case"backwards":for(m=null,R=d.child,d.child=null;R!==null;){if(u=R.alternate,u!==null&&dh(u)===null){d.child=R;break}u=R.sibling,R.sibling=m,m=R,R=u}m0(d,!0,m,null,P);break;case"together":m0(d,!1,null,null,void 0);break;default:d.memoizedState=null}return d.child}function bh(u,d){(d.mode&1)===0&&u!==null&&(u.alternate=null,d.alternate=null,d.flags|=2)}function na(u,d,m){if(u!==null&&(d.dependencies=u.dependencies),Ls|=d.lanes,(m&d.childLanes)===0)return null;if(u!==null&&d.child!==u.child)throw Error(r(153));if(d.child!==null){for(u=d.child,m=Ha(u,u.pendingProps),d.child=m,m.return=d;u.sibling!==null;)u=u.sibling,m=m.sibling=Ha(u,u.pendingProps),m.return=d;m.sibling=null}return d.child}function u4(u,d,m){switch(d.tag){case 3:QT(d),Zl();break;case 5:vT(d);break;case 1:Cn(d.type)&&rh(d);break;case 4:Xy(d,d.stateNode.containerInfo);break;case 10:var w=d.type._context,R=d.memoizedProps.value;Qt(lh,w._currentValue),w._currentValue=R;break;case 13:if(w=d.memoizedState,w!==null)return w.dehydrated!==null?(Qt(fr,fr.current&1),d.flags|=128,null):(m&d.child.childLanes)!==0?JT(u,d,m):(Qt(fr,fr.current&1),u=na(u,d,m),u!==null?u.sibling:null);Qt(fr,fr.current&1);break;case 19:if(w=(m&d.childLanes)!==0,(u.flags&128)!==0){if(w)return tk(u,d,m);d.flags|=128}if(R=d.memoizedState,R!==null&&(R.rendering=null,R.tail=null,R.lastEffect=null),Qt(fr,fr.current),w)break;return null;case 22:case 23:return d.lanes=0,YT(u,d,m)}return na(u,d,m)}var rk,y0,nk,ik;rk=function(u,d){for(var m=d.child;m!==null;){if(m.tag===5||m.tag===6)u.appendChild(m.stateNode);else if(m.tag!==4&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===d)break;for(;m.sibling===null;){if(m.return===null||m.return===d)return;m=m.return}m.sibling.return=m.return,m=m.sibling}},y0=function(){},nk=function(u,d,m,w){var R=u.memoizedProps;if(R!==w){u=d.stateNode,As(po.current);var P=null;switch(m){case"input":R=Ae(u,R),w=Ae(u,w),P=[];break;case"select":R=N({},R,{value:void 0}),w=N({},w,{value:void 0}),P=[];break;case"textarea":R=_t(u,R),w=_t(u,w),P=[];break;default:typeof R.onClick!="function"&&typeof w.onClick=="function"&&(u.onclick=Jp)}Pe(m,w);var F;m=null;for(ie in R)if(!w.hasOwnProperty(ie)&&R.hasOwnProperty(ie)&&R[ie]!=null)if(ie==="style"){var Y=R[ie];for(F in Y)Y.hasOwnProperty(F)&&(m||(m={}),m[F]="")}else ie!=="dangerouslySetInnerHTML"&&ie!=="children"&&ie!=="suppressContentEditableWarning"&&ie!=="suppressHydrationWarning"&&ie!=="autoFocus"&&(i.hasOwnProperty(ie)?P||(P=[]):(P=P||[]).push(ie,null));for(ie in w){var K=w[ie];if(Y=R!=null?R[ie]:void 0,w.hasOwnProperty(ie)&&K!==Y&&(K!=null||Y!=null))if(ie==="style")if(Y){for(F in Y)!Y.hasOwnProperty(F)||K&&K.hasOwnProperty(F)||(m||(m={}),m[F]="");for(F in K)K.hasOwnProperty(F)&&Y[F]!==K[F]&&(m||(m={}),m[F]=K[F])}else m||(P||(P=[]),P.push(ie,m)),m=K;else ie==="dangerouslySetInnerHTML"?(K=K?K.__html:void 0,Y=Y?Y.__html:void 0,K!=null&&Y!==K&&(P=P||[]).push(ie,K)):ie==="children"?typeof K!="string"&&typeof K!="number"||(P=P||[]).push(ie,""+K):ie!=="suppressContentEditableWarning"&&ie!=="suppressHydrationWarning"&&(i.hasOwnProperty(ie)?(K!=null&&ie==="onScroll"&&tr("scroll",u),P||Y===K||(P=[])):(P=P||[]).push(ie,K))}m&&(P=P||[]).push("style",m);var ie=P;(d.updateQueue=ie)&&(d.flags|=4)}},ik=function(u,d,m,w){m!==w&&(d.flags|=4)};function Zc(u,d){if(!ar)switch(u.tailMode){case"hidden":d=u.tail;for(var m=null;d!==null;)d.alternate!==null&&(m=d),d=d.sibling;m===null?u.tail=null:m.sibling=null;break;case"collapsed":m=u.tail;for(var w=null;m!==null;)m.alternate!==null&&(w=m),m=m.sibling;w===null?d||u.tail===null?u.tail=null:u.tail.sibling=null:w.sibling=null}}function Yr(u){var d=u.alternate!==null&&u.alternate.child===u.child,m=0,w=0;if(d)for(var R=u.child;R!==null;)m|=R.lanes|R.childLanes,w|=R.subtreeFlags&14680064,w|=R.flags&14680064,R.return=u,R=R.sibling;else for(R=u.child;R!==null;)m|=R.lanes|R.childLanes,w|=R.subtreeFlags,w|=R.flags,R.return=u,R=R.sibling;return u.subtreeFlags|=w,u.childLanes=m,d}function c4(u,d,m){var w=d.pendingProps;switch(By(d),d.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yr(d),null;case 1:return Cn(d.type)&&th(),Yr(d),null;case 3:return w=d.stateNode,ru(),rr(wn),rr(Gr),Jy(),w.pendingContext&&(w.context=w.pendingContext,w.pendingContext=null),(u===null||u.child===null)&&(ah(d)?d.flags|=4:u===null||u.memoizedState.isDehydrated&&(d.flags&256)===0||(d.flags|=1024,Fi!==null&&(P0(Fi),Fi=null))),y0(u,d),Yr(d),null;case 5:Qy(d);var R=As(qc.current);if(m=d.type,u!==null&&d.stateNode!=null)nk(u,d,m,w,R),u.ref!==d.ref&&(d.flags|=512,d.flags|=2097152);else{if(!w){if(d.stateNode===null)throw Error(r(166));return Yr(d),null}if(u=As(po.current),ah(d)){w=d.stateNode,m=d.type;var P=d.memoizedProps;switch(w[fo]=d,w[Hc]=P,u=(d.mode&1)!==0,m){case"dialog":tr("cancel",w),tr("close",w);break;case"iframe":case"object":case"embed":tr("load",w);break;case"video":case"audio":for(R=0;R<Fc.length;R++)tr(Fc[R],w);break;case"source":tr("error",w);break;case"img":case"image":case"link":tr("error",w),tr("load",w);break;case"details":tr("toggle",w);break;case"input":we(w,P),tr("invalid",w);break;case"select":w._wrapperState={wasMultiple:!!P.multiple},tr("invalid",w);break;case"textarea":Tt(w,P),tr("invalid",w)}Pe(m,P),R=null;for(var F in P)if(P.hasOwnProperty(F)){var Y=P[F];F==="children"?typeof Y=="string"?w.textContent!==Y&&(P.suppressHydrationWarning!==!0&&Zp(w.textContent,Y,u),R=["children",Y]):typeof Y=="number"&&w.textContent!==""+Y&&(P.suppressHydrationWarning!==!0&&Zp(w.textContent,Y,u),R=["children",""+Y]):i.hasOwnProperty(F)&&Y!=null&&F==="onScroll"&&tr("scroll",w)}switch(m){case"input":ue(w),dt(w,P,!0);break;case"textarea":ue(w),Nt(w);break;case"select":case"option":break;default:typeof P.onClick=="function"&&(w.onclick=Jp)}w=R,d.updateQueue=w,w!==null&&(d.flags|=4)}else{F=R.nodeType===9?R:R.ownerDocument,u==="http://www.w3.org/1999/xhtml"&&(u=ne(m)),u==="http://www.w3.org/1999/xhtml"?m==="script"?(u=F.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild)):typeof w.is=="string"?u=F.createElement(m,{is:w.is}):(u=F.createElement(m),m==="select"&&(F=u,w.multiple?F.multiple=!0:w.size&&(F.size=w.size))):u=F.createElementNS(u,m),u[fo]=d,u[Hc]=w,rk(u,d,!1,!1),d.stateNode=u;e:{switch(F=tt(m,w),m){case"dialog":tr("cancel",u),tr("close",u),R=w;break;case"iframe":case"object":case"embed":tr("load",u),R=w;break;case"video":case"audio":for(R=0;R<Fc.length;R++)tr(Fc[R],u);R=w;break;case"source":tr("error",u),R=w;break;case"img":case"image":case"link":tr("error",u),tr("load",u),R=w;break;case"details":tr("toggle",u),R=w;break;case"input":we(u,w),R=Ae(u,w),tr("invalid",u);break;case"option":R=w;break;case"select":u._wrapperState={wasMultiple:!!w.multiple},R=N({},w,{value:void 0}),tr("invalid",u);break;case"textarea":Tt(u,w),R=_t(u,w),tr("invalid",u);break;default:R=w}Pe(m,R),Y=R;for(P in Y)if(Y.hasOwnProperty(P)){var K=Y[P];P==="style"?ot(u,K):P==="dangerouslySetInnerHTML"?(K=K?K.__html:void 0,K!=null&&pe(u,K)):P==="children"?typeof K=="string"?(m!=="textarea"||K!=="")&&je(u,K):typeof K=="number"&&je(u,""+K):P!=="suppressContentEditableWarning"&&P!=="suppressHydrationWarning"&&P!=="autoFocus"&&(i.hasOwnProperty(P)?K!=null&&P==="onScroll"&&tr("scroll",u):K!=null&&_(u,P,K,F))}switch(m){case"input":ue(u),dt(u,w,!1);break;case"textarea":ue(u),Nt(u);break;case"option":w.value!=null&&u.setAttribute("value",""+de(w.value));break;case"select":u.multiple=!!w.multiple,P=w.value,P!=null?et(u,!!w.multiple,P,!1):w.defaultValue!=null&&et(u,!!w.multiple,w.defaultValue,!0);break;default:typeof R.onClick=="function"&&(u.onclick=Jp)}switch(m){case"button":case"input":case"select":case"textarea":w=!!w.autoFocus;break e;case"img":w=!0;break e;default:w=!1}}w&&(d.flags|=4)}d.ref!==null&&(d.flags|=512,d.flags|=2097152)}return Yr(d),null;case 6:if(u&&d.stateNode!=null)ik(u,d,u.memoizedProps,w);else{if(typeof w!="string"&&d.stateNode===null)throw Error(r(166));if(m=As(qc.current),As(po.current),ah(d)){if(w=d.stateNode,m=d.memoizedProps,w[fo]=d,(P=w.nodeValue!==m)&&(u=qn,u!==null))switch(u.tag){case 3:Zp(w.nodeValue,m,(u.mode&1)!==0);break;case 5:u.memoizedProps.suppressHydrationWarning!==!0&&Zp(w.nodeValue,m,(u.mode&1)!==0)}P&&(d.flags|=4)}else w=(m.nodeType===9?m:m.ownerDocument).createTextNode(w),w[fo]=d,d.stateNode=w}return Yr(d),null;case 13:if(rr(fr),w=d.memoizedState,u===null||u.memoizedState!==null&&u.memoizedState.dehydrated!==null){if(ar&&Yn!==null&&(d.mode&1)!==0&&(d.flags&128)===0)sT(),Zl(),d.flags|=98560,P=!1;else if(P=ah(d),w!==null&&w.dehydrated!==null){if(u===null){if(!P)throw Error(r(318));if(P=d.memoizedState,P=P!==null?P.dehydrated:null,!P)throw Error(r(317));P[fo]=d}else Zl(),(d.flags&128)===0&&(d.memoizedState=null),d.flags|=4;Yr(d),P=!1}else Fi!==null&&(P0(Fi),Fi=null),P=!0;if(!P)return d.flags&65536?d:null}return(d.flags&128)!==0?(d.lanes=m,d):(w=w!==null,w!==(u!==null&&u.memoizedState!==null)&&w&&(d.child.flags|=8192,(d.mode&1)!==0&&(u===null||(fr.current&1)!==0?Mr===0&&(Mr=3):A0())),d.updateQueue!==null&&(d.flags|=4),Yr(d),null);case 4:return ru(),y0(u,d),u===null&&Bc(d.stateNode.containerInfo),Yr(d),null;case 10:return Gy(d.type._context),Yr(d),null;case 17:return Cn(d.type)&&th(),Yr(d),null;case 19:if(rr(fr),P=d.memoizedState,P===null)return Yr(d),null;if(w=(d.flags&128)!==0,F=P.rendering,F===null)if(w)Zc(P,!1);else{if(Mr!==0||u!==null&&(u.flags&128)!==0)for(u=d.child;u!==null;){if(F=dh(u),F!==null){for(d.flags|=128,Zc(P,!1),w=F.updateQueue,w!==null&&(d.updateQueue=w,d.flags|=4),d.subtreeFlags=0,w=m,m=d.child;m!==null;)P=m,u=w,P.flags&=14680066,F=P.alternate,F===null?(P.childLanes=0,P.lanes=u,P.child=null,P.subtreeFlags=0,P.memoizedProps=null,P.memoizedState=null,P.updateQueue=null,P.dependencies=null,P.stateNode=null):(P.childLanes=F.childLanes,P.lanes=F.lanes,P.child=F.child,P.subtreeFlags=0,P.deletions=null,P.memoizedProps=F.memoizedProps,P.memoizedState=F.memoizedState,P.updateQueue=F.updateQueue,P.type=F.type,u=F.dependencies,P.dependencies=u===null?null:{lanes:u.lanes,firstContext:u.firstContext}),m=m.sibling;return Qt(fr,fr.current&1|2),d.child}u=u.sibling}P.tail!==null&&xr()>au&&(d.flags|=128,w=!0,Zc(P,!1),d.lanes=4194304)}else{if(!w)if(u=dh(F),u!==null){if(d.flags|=128,w=!0,m=u.updateQueue,m!==null&&(d.updateQueue=m,d.flags|=4),Zc(P,!0),P.tail===null&&P.tailMode==="hidden"&&!F.alternate&&!ar)return Yr(d),null}else 2*xr()-P.renderingStartTime>au&&m!==1073741824&&(d.flags|=128,w=!0,Zc(P,!1),d.lanes=4194304);P.isBackwards?(F.sibling=d.child,d.child=F):(m=P.last,m!==null?m.sibling=F:d.child=F,P.last=F)}return P.tail!==null?(d=P.tail,P.rendering=d,P.tail=d.sibling,P.renderingStartTime=xr(),d.sibling=null,m=fr.current,Qt(fr,w?m&1|2:m&1),d):(Yr(d),null);case 22:case 23:return I0(),w=d.memoizedState!==null,u!==null&&u.memoizedState!==null!==w&&(d.flags|=8192),w&&(d.mode&1)!==0?(Kn&1073741824)!==0&&(Yr(d),d.subtreeFlags&6&&(d.flags|=8192)):Yr(d),null;case 24:return null;case 25:return null}throw Error(r(156,d.tag))}function f4(u,d){switch(By(d),d.tag){case 1:return Cn(d.type)&&th(),u=d.flags,u&65536?(d.flags=u&-65537|128,d):null;case 3:return ru(),rr(wn),rr(Gr),Jy(),u=d.flags,(u&65536)!==0&&(u&128)===0?(d.flags=u&-65537|128,d):null;case 5:return Qy(d),null;case 13:if(rr(fr),u=d.memoizedState,u!==null&&u.dehydrated!==null){if(d.alternate===null)throw Error(r(340));Zl()}return u=d.flags,u&65536?(d.flags=u&-65537|128,d):null;case 19:return rr(fr),null;case 4:return ru(),null;case 10:return Gy(d.type._context),null;case 22:case 23:return I0(),null;case 24:return null;default:return null}}var _h=!1,Kr=!1,d4=typeof WeakSet=="function"?WeakSet:Set,ze=null;function iu(u,d){var m=u.ref;if(m!==null)if(typeof m=="function")try{m(null)}catch(w){vr(u,d,w)}else m.current=null}function x0(u,d,m){try{m()}catch(w){vr(u,d,w)}}var ok=!1;function p4(u,d){if(Iy=jp,u=zC(),wy(u)){if("selectionStart"in u)var m={start:u.selectionStart,end:u.selectionEnd};else e:{m=(m=u.ownerDocument)&&m.defaultView||window;var w=m.getSelection&&m.getSelection();if(w&&w.rangeCount!==0){m=w.anchorNode;var R=w.anchorOffset,P=w.focusNode;w=w.focusOffset;try{m.nodeType,P.nodeType}catch{m=null;break e}var F=0,Y=-1,K=-1,ie=0,ye=0,_e=u,me=null;t:for(;;){for(var Le;_e!==m||R!==0&&_e.nodeType!==3||(Y=F+R),_e!==P||w!==0&&_e.nodeType!==3||(K=F+w),_e.nodeType===3&&(F+=_e.nodeValue.length),(Le=_e.firstChild)!==null;)me=_e,_e=Le;for(;;){if(_e===u)break t;if(me===m&&++ie===R&&(Y=F),me===P&&++ye===w&&(K=F),(Le=_e.nextSibling)!==null)break;_e=me,me=_e.parentNode}_e=Le}m=Y===-1||K===-1?null:{start:Y,end:K}}else m=null}m=m||{start:0,end:0}}else m=null;for(Ay={focusedElem:u,selectionRange:m},jp=!1,ze=d;ze!==null;)if(d=ze,u=d.child,(d.subtreeFlags&1028)!==0&&u!==null)u.return=d,ze=u;else for(;ze!==null;){d=ze;try{var Fe=d.alternate;if((d.flags&1024)!==0)switch(d.tag){case 0:case 11:case 15:break;case 1:if(Fe!==null){var He=Fe.memoizedProps,br=Fe.memoizedState,ee=d.stateNode,J=ee.getSnapshotBeforeUpdate(d.elementType===d.type?He:Bi(d.type,He),br);ee.__reactInternalSnapshotBeforeUpdate=J}break;case 3:var re=d.stateNode.containerInfo;re.nodeType===1?re.textContent="":re.nodeType===9&&re.documentElement&&re.removeChild(re.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(ke){vr(d,d.return,ke)}if(u=d.sibling,u!==null){u.return=d.return,ze=u;break}ze=d.return}return Fe=ok,ok=!1,Fe}function Jc(u,d,m){var w=d.updateQueue;if(w=w!==null?w.lastEffect:null,w!==null){var R=w=w.next;do{if((R.tag&u)===u){var P=R.destroy;R.destroy=void 0,P!==void 0&&x0(d,m,P)}R=R.next}while(R!==w)}}function Sh(u,d){if(d=d.updateQueue,d=d!==null?d.lastEffect:null,d!==null){var m=d=d.next;do{if((m.tag&u)===u){var w=m.create;m.destroy=w()}m=m.next}while(m!==d)}}function b0(u){var d=u.ref;if(d!==null){var m=u.stateNode;switch(u.tag){case 5:u=m;break;default:u=m}typeof d=="function"?d(u):d.current=u}}function ak(u){var d=u.alternate;d!==null&&(u.alternate=null,ak(d)),u.child=null,u.deletions=null,u.sibling=null,u.tag===5&&(d=u.stateNode,d!==null&&(delete d[fo],delete d[Hc],delete d[Ny],delete d[Kz],delete d[Xz])),u.stateNode=null,u.return=null,u.dependencies=null,u.memoizedProps=null,u.memoizedState=null,u.pendingProps=null,u.stateNode=null,u.updateQueue=null}function sk(u){return u.tag===5||u.tag===3||u.tag===4}function lk(u){e:for(;;){for(;u.sibling===null;){if(u.return===null||sk(u.return))return null;u=u.return}for(u.sibling.return=u.return,u=u.sibling;u.tag!==5&&u.tag!==6&&u.tag!==18;){if(u.flags&2||u.child===null||u.tag===4)continue e;u.child.return=u,u=u.child}if(!(u.flags&2))return u.stateNode}}function _0(u,d,m){var w=u.tag;if(w===5||w===6)u=u.stateNode,d?m.nodeType===8?m.parentNode.insertBefore(u,d):m.insertBefore(u,d):(m.nodeType===8?(d=m.parentNode,d.insertBefore(u,m)):(d=m,d.appendChild(u)),m=m._reactRootContainer,m!=null||d.onclick!==null||(d.onclick=Jp));else if(w!==4&&(u=u.child,u!==null))for(_0(u,d,m),u=u.sibling;u!==null;)_0(u,d,m),u=u.sibling}function S0(u,d,m){var w=u.tag;if(w===5||w===6)u=u.stateNode,d?m.insertBefore(u,d):m.appendChild(u);else if(w!==4&&(u=u.child,u!==null))for(S0(u,d,m),u=u.sibling;u!==null;)S0(u,d,m),u=u.sibling}var $r=null,ji=!1;function za(u,d,m){for(m=m.child;m!==null;)uk(u,d,m),m=m.sibling}function uk(u,d,m){if(co&&typeof co.onCommitFiberUnmount=="function")try{co.onCommitFiberUnmount(Op,m)}catch{}switch(m.tag){case 5:Kr||iu(m,d);case 6:var w=$r,R=ji;$r=null,za(u,d,m),$r=w,ji=R,$r!==null&&(ji?(u=$r,m=m.stateNode,u.nodeType===8?u.parentNode.removeChild(m):u.removeChild(m)):$r.removeChild(m.stateNode));break;case 18:$r!==null&&(ji?(u=$r,m=m.stateNode,u.nodeType===8?Oy(u.parentNode,m):u.nodeType===1&&Oy(u,m),Ic(u)):Oy($r,m.stateNode));break;case 4:w=$r,R=ji,$r=m.stateNode.containerInfo,ji=!0,za(u,d,m),$r=w,ji=R;break;case 0:case 11:case 14:case 15:if(!Kr&&(w=m.updateQueue,w!==null&&(w=w.lastEffect,w!==null))){R=w=w.next;do{var P=R,F=P.destroy;P=P.tag,F!==void 0&&((P&2)!==0||(P&4)!==0)&&x0(m,d,F),R=R.next}while(R!==w)}za(u,d,m);break;case 1:if(!Kr&&(iu(m,d),w=m.stateNode,typeof w.componentWillUnmount=="function"))try{w.props=m.memoizedProps,w.state=m.memoizedState,w.componentWillUnmount()}catch(Y){vr(m,d,Y)}za(u,d,m);break;case 21:za(u,d,m);break;case 22:m.mode&1?(Kr=(w=Kr)||m.memoizedState!==null,za(u,d,m),Kr=w):za(u,d,m);break;default:za(u,d,m)}}function ck(u){var d=u.updateQueue;if(d!==null){u.updateQueue=null;var m=u.stateNode;m===null&&(m=u.stateNode=new d4),d.forEach(function(w){var R=S4.bind(null,u,w);m.has(w)||(m.add(w),w.then(R,R))})}}function Hi(u,d){var m=d.deletions;if(m!==null)for(var w=0;w<m.length;w++){var R=m[w];try{var P=u,F=d,Y=F;e:for(;Y!==null;){switch(Y.tag){case 5:$r=Y.stateNode,ji=!1;break e;case 3:$r=Y.stateNode.containerInfo,ji=!0;break e;case 4:$r=Y.stateNode.containerInfo,ji=!0;break e}Y=Y.return}if($r===null)throw Error(r(160));uk(P,F,R),$r=null,ji=!1;var K=R.alternate;K!==null&&(K.return=null),R.return=null}catch(ie){vr(R,d,ie)}}if(d.subtreeFlags&12854)for(d=d.child;d!==null;)fk(d,u),d=d.sibling}function fk(u,d){var m=u.alternate,w=u.flags;switch(u.tag){case 0:case 11:case 14:case 15:if(Hi(d,u),vo(u),w&4){try{Jc(3,u,u.return),Sh(3,u)}catch(He){vr(u,u.return,He)}try{Jc(5,u,u.return)}catch(He){vr(u,u.return,He)}}break;case 1:Hi(d,u),vo(u),w&512&&m!==null&&iu(m,m.return);break;case 5:if(Hi(d,u),vo(u),w&512&&m!==null&&iu(m,m.return),u.flags&32){var R=u.stateNode;try{je(R,"")}catch(He){vr(u,u.return,He)}}if(w&4&&(R=u.stateNode,R!=null)){var P=u.memoizedProps,F=m!==null?m.memoizedProps:P,Y=u.type,K=u.updateQueue;if(u.updateQueue=null,K!==null)try{Y==="input"&&P.type==="radio"&&P.name!=null&&Mt(R,P),tt(Y,F);var ie=tt(Y,P);for(F=0;F<K.length;F+=2){var ye=K[F],_e=K[F+1];ye==="style"?ot(R,_e):ye==="dangerouslySetInnerHTML"?pe(R,_e):ye==="children"?je(R,_e):_(R,ye,_e,ie)}switch(Y){case"input":We(R,P);break;case"textarea":lt(R,P);break;case"select":var me=R._wrapperState.wasMultiple;R._wrapperState.wasMultiple=!!P.multiple;var Le=P.value;Le!=null?et(R,!!P.multiple,Le,!1):me!==!!P.multiple&&(P.defaultValue!=null?et(R,!!P.multiple,P.defaultValue,!0):et(R,!!P.multiple,P.multiple?[]:"",!1))}R[Hc]=P}catch(He){vr(u,u.return,He)}}break;case 6:if(Hi(d,u),vo(u),w&4){if(u.stateNode===null)throw Error(r(162));R=u.stateNode,P=u.memoizedProps;try{R.nodeValue=P}catch(He){vr(u,u.return,He)}}break;case 3:if(Hi(d,u),vo(u),w&4&&m!==null&&m.memoizedState.isDehydrated)try{Ic(d.containerInfo)}catch(He){vr(u,u.return,He)}break;case 4:Hi(d,u),vo(u);break;case 13:Hi(d,u),vo(u),R=u.child,R.flags&8192&&(P=R.memoizedState!==null,R.stateNode.isHidden=P,!P||R.alternate!==null&&R.alternate.memoizedState!==null||(T0=xr())),w&4&&ck(u);break;case 22:if(ye=m!==null&&m.memoizedState!==null,u.mode&1?(Kr=(ie=Kr)||ye,Hi(d,u),Kr=ie):Hi(d,u),vo(u),w&8192){if(ie=u.memoizedState!==null,(u.stateNode.isHidden=ie)&&!ye&&(u.mode&1)!==0)for(ze=u,ye=u.child;ye!==null;){for(_e=ze=ye;ze!==null;){switch(me=ze,Le=me.child,me.tag){case 0:case 11:case 14:case 15:Jc(4,me,me.return);break;case 1:iu(me,me.return);var Fe=me.stateNode;if(typeof Fe.componentWillUnmount=="function"){w=me,m=me.return;try{d=w,Fe.props=d.memoizedProps,Fe.state=d.memoizedState,Fe.componentWillUnmount()}catch(He){vr(w,m,He)}}break;case 5:iu(me,me.return);break;case 22:if(me.memoizedState!==null){hk(_e);continue}}Le!==null?(Le.return=me,ze=Le):hk(_e)}ye=ye.sibling}e:for(ye=null,_e=u;;){if(_e.tag===5){if(ye===null){ye=_e;try{R=_e.stateNode,ie?(P=R.style,typeof P.setProperty=="function"?P.setProperty("display","none","important"):P.display="none"):(Y=_e.stateNode,K=_e.memoizedProps.style,F=K!=null&&K.hasOwnProperty("display")?K.display:null,Y.style.display=Ue("display",F))}catch(He){vr(u,u.return,He)}}}else if(_e.tag===6){if(ye===null)try{_e.stateNode.nodeValue=ie?"":_e.memoizedProps}catch(He){vr(u,u.return,He)}}else if((_e.tag!==22&&_e.tag!==23||_e.memoizedState===null||_e===u)&&_e.child!==null){_e.child.return=_e,_e=_e.child;continue}if(_e===u)break e;for(;_e.sibling===null;){if(_e.return===null||_e.return===u)break e;ye===_e&&(ye=null),_e=_e.return}ye===_e&&(ye=null),_e.sibling.return=_e.return,_e=_e.sibling}}break;case 19:Hi(d,u),vo(u),w&4&&ck(u);break;case 21:break;default:Hi(d,u),vo(u)}}function vo(u){var d=u.flags;if(d&2){try{e:{for(var m=u.return;m!==null;){if(sk(m)){var w=m;break e}m=m.return}throw Error(r(160))}switch(w.tag){case 5:var R=w.stateNode;w.flags&32&&(je(R,""),w.flags&=-33);var P=lk(u);S0(u,P,R);break;case 3:case 4:var F=w.stateNode.containerInfo,Y=lk(u);_0(u,Y,F);break;default:throw Error(r(161))}}catch(K){vr(u,u.return,K)}u.flags&=-3}d&4096&&(u.flags&=-4097)}function h4(u,d,m){ze=u,dk(u)}function dk(u,d,m){for(var w=(u.mode&1)!==0;ze!==null;){var R=ze,P=R.child;if(R.tag===22&&w){var F=R.memoizedState!==null||_h;if(!F){var Y=R.alternate,K=Y!==null&&Y.memoizedState!==null||Kr;Y=_h;var ie=Kr;if(_h=F,(Kr=K)&&!ie)for(ze=R;ze!==null;)F=ze,K=F.child,F.tag===22&&F.memoizedState!==null?vk(R):K!==null?(K.return=F,ze=K):vk(R);for(;P!==null;)ze=P,dk(P),P=P.sibling;ze=R,_h=Y,Kr=ie}pk(u)}else(R.subtreeFlags&8772)!==0&&P!==null?(P.return=R,ze=P):pk(u)}}function pk(u){for(;ze!==null;){var d=ze;if((d.flags&8772)!==0){var m=d.alternate;try{if((d.flags&8772)!==0)switch(d.tag){case 0:case 11:case 15:Kr||Sh(5,d);break;case 1:var w=d.stateNode;if(d.flags&4&&!Kr)if(m===null)w.componentDidMount();else{var R=d.elementType===d.type?m.memoizedProps:Bi(d.type,m.memoizedProps);w.componentDidUpdate(R,m.memoizedState,w.__reactInternalSnapshotBeforeUpdate)}var P=d.updateQueue;P!==null&&hT(d,P,w);break;case 3:var F=d.updateQueue;if(F!==null){if(m=null,d.child!==null)switch(d.child.tag){case 5:m=d.child.stateNode;break;case 1:m=d.child.stateNode}hT(d,F,m)}break;case 5:var Y=d.stateNode;if(m===null&&d.flags&4){m=Y;var K=d.memoizedProps;switch(d.type){case"button":case"input":case"select":case"textarea":K.autoFocus&&m.focus();break;case"img":K.src&&(m.src=K.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(d.memoizedState===null){var ie=d.alternate;if(ie!==null){var ye=ie.memoizedState;if(ye!==null){var _e=ye.dehydrated;_e!==null&&Ic(_e)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Kr||d.flags&512&&b0(d)}catch(me){vr(d,d.return,me)}}if(d===u){ze=null;break}if(m=d.sibling,m!==null){m.return=d.return,ze=m;break}ze=d.return}}function hk(u){for(;ze!==null;){var d=ze;if(d===u){ze=null;break}var m=d.sibling;if(m!==null){m.return=d.return,ze=m;break}ze=d.return}}function vk(u){for(;ze!==null;){var d=ze;try{switch(d.tag){case 0:case 11:case 15:var m=d.return;try{Sh(4,d)}catch(K){vr(d,m,K)}break;case 1:var w=d.stateNode;if(typeof w.componentDidMount=="function"){var R=d.return;try{w.componentDidMount()}catch(K){vr(d,R,K)}}var P=d.return;try{b0(d)}catch(K){vr(d,P,K)}break;case 5:var F=d.return;try{b0(d)}catch(K){vr(d,F,K)}}}catch(K){vr(d,d.return,K)}if(d===u){ze=null;break}var Y=d.sibling;if(Y!==null){Y.return=d.return,ze=Y;break}ze=d.return}}var v4=Math.ceil,wh=C.ReactCurrentDispatcher,w0=C.ReactCurrentOwner,vi=C.ReactCurrentBatchConfig,Pt=0,Dr=null,Sr=null,Fr=0,Kn=0,ou=Aa(0),Mr=0,ef=null,Ls=0,Ch=0,C0=0,tf=null,kn=null,T0=0,au=1/0,ia=null,Th=!1,k0=null,$a=null,kh=!1,Fa=null,Rh=0,rf=0,R0=null,Eh=-1,Ph=0;function cn(){return(Pt&6)!==0?xr():Eh!==-1?Eh:Eh=xr()}function Ba(u){return(u.mode&1)===0?1:(Pt&2)!==0&&Fr!==0?Fr&-Fr:Zz.transition!==null?(Ph===0&&(Ph=lC()),Ph):(u=Wt,u!==0||(u=window.event,u=u===void 0?16:mC(u.type)),u)}function Wi(u,d,m,w){if(50<rf)throw rf=0,R0=null,Error(r(185));kc(u,m,w),((Pt&2)===0||u!==Dr)&&(u===Dr&&((Pt&2)===0&&(Ch|=m),Mr===4&&ja(u,Fr)),Rn(u,w),m===1&&Pt===0&&(d.mode&1)===0&&(au=xr()+500,nh&&La()))}function Rn(u,d){var m=u.callbackNode;Z3(u,d);var w=$p(u,u===Dr?Fr:0);if(w===0)m!==null&&ct(m),u.callbackNode=null,u.callbackPriority=0;else if(d=w&-w,u.callbackPriority!==d){if(m!=null&&ct(m),d===1)u.tag===0?Qz(mk.bind(null,u)):rT(mk.bind(null,u)),qz(function(){(Pt&6)===0&&La()}),m=null;else{switch(uC(w)){case 1:m=ay;break;case 4:m=aC;break;case 16:m=Lp;break;case 536870912:m=sC;break;default:m=Lp}m=Tk(m,gk.bind(null,u))}u.callbackPriority=d,u.callbackNode=m}}function gk(u,d){if(Eh=-1,Ph=0,(Pt&6)!==0)throw Error(r(327));var m=u.callbackNode;if(su()&&u.callbackNode!==m)return null;var w=$p(u,u===Dr?Fr:0);if(w===0)return null;if((w&30)!==0||(w&u.expiredLanes)!==0||d)d=Mh(u,w);else{d=w;var R=Pt;Pt|=2;var P=xk();(Dr!==u||Fr!==d)&&(ia=null,au=xr()+500,Ns(u,d));do try{y4();break}catch(Y){yk(u,Y)}while(!0);Uy(),wh.current=P,Pt=R,Sr!==null?d=0:(Dr=null,Fr=0,d=Mr)}if(d!==0){if(d===2&&(R=sy(u),R!==0&&(w=R,d=E0(u,R))),d===1)throw m=ef,Ns(u,0),ja(u,w),Rn(u,xr()),m;if(d===6)ja(u,w);else{if(R=u.current.alternate,(w&30)===0&&!g4(R)&&(d=Mh(u,w),d===2&&(P=sy(u),P!==0&&(w=P,d=E0(u,P))),d===1))throw m=ef,Ns(u,0),ja(u,w),Rn(u,xr()),m;switch(u.finishedWork=R,u.finishedLanes=w,d){case 0:case 1:throw Error(r(345));case 2:zs(u,kn,ia);break;case 3:if(ja(u,w),(w&130023424)===w&&(d=T0+500-xr(),10<d)){if($p(u,0)!==0)break;if(R=u.suspendedLanes,(R&w)!==w){cn(),u.pingedLanes|=u.suspendedLanes&R;break}u.timeoutHandle=Ly(zs.bind(null,u,kn,ia),d);break}zs(u,kn,ia);break;case 4:if(ja(u,w),(w&4194240)===w)break;for(d=u.eventTimes,R=-1;0<w;){var F=31-zi(w);P=1<<F,F=d[F],F>R&&(R=F),w&=~P}if(w=R,w=xr()-w,w=(120>w?120:480>w?480:1080>w?1080:1920>w?1920:3e3>w?3e3:4320>w?4320:1960*v4(w/1960))-w,10<w){u.timeoutHandle=Ly(zs.bind(null,u,kn,ia),w);break}zs(u,kn,ia);break;case 5:zs(u,kn,ia);break;default:throw Error(r(329))}}}return Rn(u,xr()),u.callbackNode===m?gk.bind(null,u):null}function E0(u,d){var m=tf;return u.current.memoizedState.isDehydrated&&(Ns(u,d).flags|=256),u=Mh(u,d),u!==2&&(d=kn,kn=m,d!==null&&P0(d)),u}function P0(u){kn===null?kn=u:kn.push.apply(kn,u)}function g4(u){for(var d=u;;){if(d.flags&16384){var m=d.updateQueue;if(m!==null&&(m=m.stores,m!==null))for(var w=0;w<m.length;w++){var R=m[w],P=R.getSnapshot;R=R.value;try{if(!$i(P(),R))return!1}catch{return!1}}}if(m=d.child,d.subtreeFlags&16384&&m!==null)m.return=d,d=m;else{if(d===u)break;for(;d.sibling===null;){if(d.return===null||d.return===u)return!0;d=d.return}d.sibling.return=d.return,d=d.sibling}}return!0}function ja(u,d){for(d&=~C0,d&=~Ch,u.suspendedLanes|=d,u.pingedLanes&=~d,u=u.expirationTimes;0<d;){var m=31-zi(d),w=1<<m;u[m]=-1,d&=~w}}function mk(u){if((Pt&6)!==0)throw Error(r(327));su();var d=$p(u,0);if((d&1)===0)return Rn(u,xr()),null;var m=Mh(u,d);if(u.tag!==0&&m===2){var w=sy(u);w!==0&&(d=w,m=E0(u,w))}if(m===1)throw m=ef,Ns(u,0),ja(u,d),Rn(u,xr()),m;if(m===6)throw Error(r(345));return u.finishedWork=u.current.alternate,u.finishedLanes=d,zs(u,kn,ia),Rn(u,xr()),null}function M0(u,d){var m=Pt;Pt|=1;try{return u(d)}finally{Pt=m,Pt===0&&(au=xr()+500,nh&&La())}}function Os(u){Fa!==null&&Fa.tag===0&&(Pt&6)===0&&su();var d=Pt;Pt|=1;var m=vi.transition,w=Wt;try{if(vi.transition=null,Wt=1,u)return u()}finally{Wt=w,vi.transition=m,Pt=d,(Pt&6)===0&&La()}}function I0(){Kn=ou.current,rr(ou)}function Ns(u,d){u.finishedWork=null,u.finishedLanes=0;var m=u.timeoutHandle;if(m!==-1&&(u.timeoutHandle=-1,Gz(m)),Sr!==null)for(m=Sr.return;m!==null;){var w=m;switch(By(w),w.tag){case 1:w=w.type.childContextTypes,w!=null&&th();break;case 3:ru(),rr(wn),rr(Gr),Jy();break;case 5:Qy(w);break;case 4:ru();break;case 13:rr(fr);break;case 19:rr(fr);break;case 10:Gy(w.type._context);break;case 22:case 23:I0()}m=m.return}if(Dr=u,Sr=u=Ha(u.current,null),Fr=Kn=d,Mr=0,ef=null,C0=Ch=Ls=0,kn=tf=null,Is!==null){for(d=0;d<Is.length;d++)if(m=Is[d],w=m.interleaved,w!==null){m.interleaved=null;var R=w.next,P=m.pending;if(P!==null){var F=P.next;P.next=R,w.next=F}m.pending=w}Is=null}return u}function yk(u,d){do{var m=Sr;try{if(Uy(),ph.current=mh,hh){for(var w=dr.memoizedState;w!==null;){var R=w.queue;R!==null&&(R.pending=null),w=w.next}hh=!1}if(Ds=0,Ar=Pr=dr=null,Yc=!1,Kc=0,w0.current=null,m===null||m.return===null){Mr=1,ef=d,Sr=null;break}e:{var P=u,F=m.return,Y=m,K=d;if(d=Fr,Y.flags|=32768,K!==null&&typeof K=="object"&&typeof K.then=="function"){var ie=K,ye=Y,_e=ye.tag;if((ye.mode&1)===0&&(_e===0||_e===11||_e===15)){var me=ye.alternate;me?(ye.updateQueue=me.updateQueue,ye.memoizedState=me.memoizedState,ye.lanes=me.lanes):(ye.updateQueue=null,ye.memoizedState=null)}var Le=WT(F);if(Le!==null){Le.flags&=-257,VT(Le,F,Y,P,d),Le.mode&1&&HT(P,ie,d),d=Le,K=ie;var Fe=d.updateQueue;if(Fe===null){var He=new Set;He.add(K),d.updateQueue=He}else Fe.add(K);break e}else{if((d&1)===0){HT(P,ie,d),A0();break e}K=Error(r(426))}}else if(ar&&Y.mode&1){var br=WT(F);if(br!==null){(br.flags&65536)===0&&(br.flags|=256),VT(br,F,Y,P,d),Wy(nu(K,Y));break e}}P=K=nu(K,Y),Mr!==4&&(Mr=2),tf===null?tf=[P]:tf.push(P),P=F;do{switch(P.tag){case 3:P.flags|=65536,d&=-d,P.lanes|=d;var ee=BT(P,K,d);pT(P,ee);break e;case 1:Y=K;var J=P.type,re=P.stateNode;if((P.flags&128)===0&&(typeof J.getDerivedStateFromError=="function"||re!==null&&typeof re.componentDidCatch=="function"&&($a===null||!$a.has(re)))){P.flags|=65536,d&=-d,P.lanes|=d;var ke=jT(P,Y,d);pT(P,ke);break e}}P=P.return}while(P!==null)}_k(m)}catch(Ve){d=Ve,Sr===m&&m!==null&&(Sr=m=m.return);continue}break}while(!0)}function xk(){var u=wh.current;return wh.current=mh,u===null?mh:u}function A0(){(Mr===0||Mr===3||Mr===2)&&(Mr=4),Dr===null||(Ls&268435455)===0&&(Ch&268435455)===0||ja(Dr,Fr)}function Mh(u,d){var m=Pt;Pt|=2;var w=xk();(Dr!==u||Fr!==d)&&(ia=null,Ns(u,d));do try{m4();break}catch(R){yk(u,R)}while(!0);if(Uy(),Pt=m,wh.current=w,Sr!==null)throw Error(r(261));return Dr=null,Fr=0,Mr}function m4(){for(;Sr!==null;)bk(Sr)}function y4(){for(;Sr!==null&&!ln();)bk(Sr)}function bk(u){var d=Ck(u.alternate,u,Kn);u.memoizedProps=u.pendingProps,d===null?_k(u):Sr=d,w0.current=null}function _k(u){var d=u;do{var m=d.alternate;if(u=d.return,(d.flags&32768)===0){if(m=c4(m,d,Kn),m!==null){Sr=m;return}}else{if(m=f4(m,d),m!==null){m.flags&=32767,Sr=m;return}if(u!==null)u.flags|=32768,u.subtreeFlags=0,u.deletions=null;else{Mr=6,Sr=null;return}}if(d=d.sibling,d!==null){Sr=d;return}Sr=d=u}while(d!==null);Mr===0&&(Mr=5)}function zs(u,d,m){var w=Wt,R=vi.transition;try{vi.transition=null,Wt=1,x4(u,d,m,w)}finally{vi.transition=R,Wt=w}return null}function x4(u,d,m,w){do su();while(Fa!==null);if((Pt&6)!==0)throw Error(r(327));m=u.finishedWork;var R=u.finishedLanes;if(m===null)return null;if(u.finishedWork=null,u.finishedLanes=0,m===u.current)throw Error(r(177));u.callbackNode=null,u.callbackPriority=0;var P=m.lanes|m.childLanes;if(J3(u,P),u===Dr&&(Sr=Dr=null,Fr=0),(m.subtreeFlags&2064)===0&&(m.flags&2064)===0||kh||(kh=!0,Tk(Lp,function(){return su(),null})),P=(m.flags&15990)!==0,(m.subtreeFlags&15990)!==0||P){P=vi.transition,vi.transition=null;var F=Wt;Wt=1;var Y=Pt;Pt|=4,w0.current=null,p4(u,m),fk(m,u),Fz(Ay),jp=!!Iy,Ay=Iy=null,u.current=m,h4(m),V3(),Pt=Y,Wt=F,vi.transition=P}else u.current=m;if(kh&&(kh=!1,Fa=u,Rh=R),P=u.pendingLanes,P===0&&($a=null),q3(m.stateNode),Rn(u,xr()),d!==null)for(w=u.onRecoverableError,m=0;m<d.length;m++)R=d[m],w(R.value,{componentStack:R.stack,digest:R.digest});if(Th)throw Th=!1,u=k0,k0=null,u;return(Rh&1)!==0&&u.tag!==0&&su(),P=u.pendingLanes,(P&1)!==0?u===R0?rf++:(rf=0,R0=u):rf=0,La(),null}function su(){if(Fa!==null){var u=uC(Rh),d=vi.transition,m=Wt;try{if(vi.transition=null,Wt=16>u?16:u,Fa===null)var w=!1;else{if(u=Fa,Fa=null,Rh=0,(Pt&6)!==0)throw Error(r(331));var R=Pt;for(Pt|=4,ze=u.current;ze!==null;){var P=ze,F=P.child;if((ze.flags&16)!==0){var Y=P.deletions;if(Y!==null){for(var K=0;K<Y.length;K++){var ie=Y[K];for(ze=ie;ze!==null;){var ye=ze;switch(ye.tag){case 0:case 11:case 15:Jc(8,ye,P)}var _e=ye.child;if(_e!==null)_e.return=ye,ze=_e;else for(;ze!==null;){ye=ze;var me=ye.sibling,Le=ye.return;if(ak(ye),ye===ie){ze=null;break}if(me!==null){me.return=Le,ze=me;break}ze=Le}}}var Fe=P.alternate;if(Fe!==null){var He=Fe.child;if(He!==null){Fe.child=null;do{var br=He.sibling;He.sibling=null,He=br}while(He!==null)}}ze=P}}if((P.subtreeFlags&2064)!==0&&F!==null)F.return=P,ze=F;else e:for(;ze!==null;){if(P=ze,(P.flags&2048)!==0)switch(P.tag){case 0:case 11:case 15:Jc(9,P,P.return)}var ee=P.sibling;if(ee!==null){ee.return=P.return,ze=ee;break e}ze=P.return}}var J=u.current;for(ze=J;ze!==null;){F=ze;var re=F.child;if((F.subtreeFlags&2064)!==0&&re!==null)re.return=F,ze=re;else e:for(F=J;ze!==null;){if(Y=ze,(Y.flags&2048)!==0)try{switch(Y.tag){case 0:case 11:case 15:Sh(9,Y)}}catch(Ve){vr(Y,Y.return,Ve)}if(Y===F){ze=null;break e}var ke=Y.sibling;if(ke!==null){ke.return=Y.return,ze=ke;break e}ze=Y.return}}if(Pt=R,La(),co&&typeof co.onPostCommitFiberRoot=="function")try{co.onPostCommitFiberRoot(Op,u)}catch{}w=!0}return w}finally{Wt=m,vi.transition=d}}return!1}function Sk(u,d,m){d=nu(m,d),d=BT(u,d,1),u=Na(u,d,1),d=cn(),u!==null&&(kc(u,1,d),Rn(u,d))}function vr(u,d,m){if(u.tag===3)Sk(u,u,m);else for(;d!==null;){if(d.tag===3){Sk(d,u,m);break}else if(d.tag===1){var w=d.stateNode;if(typeof d.type.getDerivedStateFromError=="function"||typeof w.componentDidCatch=="function"&&($a===null||!$a.has(w))){u=nu(m,u),u=jT(d,u,1),d=Na(d,u,1),u=cn(),d!==null&&(kc(d,1,u),Rn(d,u));break}}d=d.return}}function b4(u,d,m){var w=u.pingCache;w!==null&&w.delete(d),d=cn(),u.pingedLanes|=u.suspendedLanes&m,Dr===u&&(Fr&m)===m&&(Mr===4||Mr===3&&(Fr&130023424)===Fr&&500>xr()-T0?Ns(u,0):C0|=m),Rn(u,d)}function wk(u,d){d===0&&((u.mode&1)===0?d=1:(d=zp,zp<<=1,(zp&130023424)===0&&(zp=4194304)));var m=cn();u=ta(u,d),u!==null&&(kc(u,d,m),Rn(u,m))}function _4(u){var d=u.memoizedState,m=0;d!==null&&(m=d.retryLane),wk(u,m)}function S4(u,d){var m=0;switch(u.tag){case 13:var w=u.stateNode,R=u.memoizedState;R!==null&&(m=R.retryLane);break;case 19:w=u.stateNode;break;default:throw Error(r(314))}w!==null&&w.delete(d),wk(u,m)}var Ck;Ck=function(u,d,m){if(u!==null)if(u.memoizedProps!==d.pendingProps||wn.current)Tn=!0;else{if((u.lanes&m)===0&&(d.flags&128)===0)return Tn=!1,u4(u,d,m);Tn=(u.flags&131072)!==0}else Tn=!1,ar&&(d.flags&1048576)!==0&&nT(d,oh,d.index);switch(d.lanes=0,d.tag){case 2:var w=d.type;bh(u,d),u=d.pendingProps;var R=Kl(d,Gr.current);tu(d,m),R=r0(null,d,w,u,R,m);var P=n0();return d.flags|=1,typeof R=="object"&&R!==null&&typeof R.render=="function"&&R.$$typeof===void 0?(d.tag=1,d.memoizedState=null,d.updateQueue=null,Cn(w)?(P=!0,rh(d)):P=!1,d.memoizedState=R.state!==null&&R.state!==void 0?R.state:null,Ky(d),R.updater=yh,d.stateNode=R,R._reactInternals=d,u0(d,w,u,m),d=p0(null,d,w,!0,P,m)):(d.tag=0,ar&&P&&Fy(d),un(null,d,R,m),d=d.child),d;case 16:w=d.elementType;e:{switch(bh(u,d),u=d.pendingProps,R=w._init,w=R(w._payload),d.type=w,R=d.tag=C4(w),u=Bi(w,u),R){case 0:d=d0(null,d,w,u,m);break e;case 1:d=XT(null,d,w,u,m);break e;case 11:d=UT(null,d,w,u,m);break e;case 14:d=GT(null,d,w,Bi(w.type,u),m);break e}throw Error(r(306,w,""))}return d;case 0:return w=d.type,R=d.pendingProps,R=d.elementType===w?R:Bi(w,R),d0(u,d,w,R,m);case 1:return w=d.type,R=d.pendingProps,R=d.elementType===w?R:Bi(w,R),XT(u,d,w,R,m);case 3:e:{if(QT(d),u===null)throw Error(r(387));w=d.pendingProps,P=d.memoizedState,R=P.element,dT(u,d),fh(d,w,null,m);var F=d.memoizedState;if(w=F.element,P.isDehydrated)if(P={element:w,isDehydrated:!1,cache:F.cache,pendingSuspenseBoundaries:F.pendingSuspenseBoundaries,transitions:F.transitions},d.updateQueue.baseState=P,d.memoizedState=P,d.flags&256){R=nu(Error(r(423)),d),d=ZT(u,d,w,m,R);break e}else if(w!==R){R=nu(Error(r(424)),d),d=ZT(u,d,w,m,R);break e}else for(Yn=Ia(d.stateNode.containerInfo.firstChild),qn=d,ar=!0,Fi=null,m=cT(d,null,w,m),d.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling;else{if(Zl(),w===R){d=na(u,d,m);break e}un(u,d,w,m)}d=d.child}return d;case 5:return vT(d),u===null&&Hy(d),w=d.type,R=d.pendingProps,P=u!==null?u.memoizedProps:null,F=R.children,Dy(w,R)?F=null:P!==null&&Dy(w,P)&&(d.flags|=32),KT(u,d),un(u,d,F,m),d.child;case 6:return u===null&&Hy(d),null;case 13:return JT(u,d,m);case 4:return Xy(d,d.stateNode.containerInfo),w=d.pendingProps,u===null?d.child=Jl(d,null,w,m):un(u,d,w,m),d.child;case 11:return w=d.type,R=d.pendingProps,R=d.elementType===w?R:Bi(w,R),UT(u,d,w,R,m);case 7:return un(u,d,d.pendingProps,m),d.child;case 8:return un(u,d,d.pendingProps.children,m),d.child;case 12:return un(u,d,d.pendingProps.children,m),d.child;case 10:e:{if(w=d.type._context,R=d.pendingProps,P=d.memoizedProps,F=R.value,Qt(lh,w._currentValue),w._currentValue=F,P!==null)if($i(P.value,F)){if(P.children===R.children&&!wn.current){d=na(u,d,m);break e}}else for(P=d.child,P!==null&&(P.return=d);P!==null;){var Y=P.dependencies;if(Y!==null){F=P.child;for(var K=Y.firstContext;K!==null;){if(K.context===w){if(P.tag===1){K=ra(-1,m&-m),K.tag=2;var ie=P.updateQueue;if(ie!==null){ie=ie.shared;var ye=ie.pending;ye===null?K.next=K:(K.next=ye.next,ye.next=K),ie.pending=K}}P.lanes|=m,K=P.alternate,K!==null&&(K.lanes|=m),qy(P.return,m,d),Y.lanes|=m;break}K=K.next}}else if(P.tag===10)F=P.type===d.type?null:P.child;else if(P.tag===18){if(F=P.return,F===null)throw Error(r(341));F.lanes|=m,Y=F.alternate,Y!==null&&(Y.lanes|=m),qy(F,m,d),F=P.sibling}else F=P.child;if(F!==null)F.return=P;else for(F=P;F!==null;){if(F===d){F=null;break}if(P=F.sibling,P!==null){P.return=F.return,F=P;break}F=F.return}P=F}un(u,d,R.children,m),d=d.child}return d;case 9:return R=d.type,w=d.pendingProps.children,tu(d,m),R=pi(R),w=w(R),d.flags|=1,un(u,d,w,m),d.child;case 14:return w=d.type,R=Bi(w,d.pendingProps),R=Bi(w.type,R),GT(u,d,w,R,m);case 15:return qT(u,d,d.type,d.pendingProps,m);case 17:return w=d.type,R=d.pendingProps,R=d.elementType===w?R:Bi(w,R),bh(u,d),d.tag=1,Cn(w)?(u=!0,rh(d)):u=!1,tu(d,m),$T(d,w,R),u0(d,w,R,m),p0(null,d,w,!0,u,m);case 19:return tk(u,d,m);case 22:return YT(u,d,m)}throw Error(r(156,d.tag))};function Tk(u,d){return sn(u,d)}function w4(u,d,m,w){this.tag=u,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=d,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=w,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gi(u,d,m,w){return new w4(u,d,m,w)}function D0(u){return u=u.prototype,!(!u||!u.isReactComponent)}function C4(u){if(typeof u=="function")return D0(u)?1:0;if(u!=null){if(u=u.$$typeof,u===$)return 11;if(u===W)return 14}return 2}function Ha(u,d){var m=u.alternate;return m===null?(m=gi(u.tag,d,u.key,u.mode),m.elementType=u.elementType,m.type=u.type,m.stateNode=u.stateNode,m.alternate=u,u.alternate=m):(m.pendingProps=d,m.type=u.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=u.flags&14680064,m.childLanes=u.childLanes,m.lanes=u.lanes,m.child=u.child,m.memoizedProps=u.memoizedProps,m.memoizedState=u.memoizedState,m.updateQueue=u.updateQueue,d=u.dependencies,m.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext},m.sibling=u.sibling,m.index=u.index,m.ref=u.ref,m}function Ih(u,d,m,w,R,P){var F=2;if(w=u,typeof u=="function")D0(u)&&(F=1);else if(typeof u=="string")F=5;else e:switch(u){case E:return $s(m.children,R,P,d);case I:F=8,R|=8;break;case D:return u=gi(12,m,d,R|2),u.elementType=D,u.lanes=P,u;case B:return u=gi(13,m,d,R),u.elementType=B,u.lanes=P,u;case j:return u=gi(19,m,d,R),u.elementType=j,u.lanes=P,u;case Z:return Ah(m,R,P,d);default:if(typeof u=="object"&&u!==null)switch(u.$$typeof){case A:F=10;break e;case L:F=9;break e;case $:F=11;break e;case W:F=14;break e;case q:F=16,w=null;break e}throw Error(r(130,u==null?u:typeof u,""))}return d=gi(F,m,d,R),d.elementType=u,d.type=w,d.lanes=P,d}function $s(u,d,m,w){return u=gi(7,u,w,d),u.lanes=m,u}function Ah(u,d,m,w){return u=gi(22,u,w,d),u.elementType=Z,u.lanes=m,u.stateNode={isHidden:!1},u}function L0(u,d,m){return u=gi(6,u,null,d),u.lanes=m,u}function O0(u,d,m){return d=gi(4,u.children!==null?u.children:[],u.key,d),d.lanes=m,d.stateNode={containerInfo:u.containerInfo,pendingChildren:null,implementation:u.implementation},d}function T4(u,d,m,w,R){this.tag=d,this.containerInfo=u,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ly(0),this.expirationTimes=ly(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ly(0),this.identifierPrefix=w,this.onRecoverableError=R,this.mutableSourceEagerHydrationData=null}function N0(u,d,m,w,R,P,F,Y,K){return u=new T4(u,d,m,Y,K),d===1?(d=1,P===!0&&(d|=8)):d=0,P=gi(3,null,null,d),u.current=P,P.stateNode=u,P.memoizedState={element:w,isDehydrated:m,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ky(P),u}function k4(u,d,m){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:w==null?null:""+w,children:u,containerInfo:d,implementation:m}}function kk(u){if(!u)return Da;u=u._reactInternals;e:{if(ae(u)!==u||u.tag!==1)throw Error(r(170));var d=u;do{switch(d.tag){case 3:d=d.stateNode.context;break e;case 1:if(Cn(d.type)){d=d.stateNode.__reactInternalMemoizedMergedChildContext;break e}}d=d.return}while(d!==null);throw Error(r(171))}if(u.tag===1){var m=u.type;if(Cn(m))return eT(u,m,d)}return d}function Rk(u,d,m,w,R,P,F,Y,K){return u=N0(m,w,!0,u,R,P,F,Y,K),u.context=kk(null),m=u.current,w=cn(),R=Ba(m),P=ra(w,R),P.callback=d??null,Na(m,P,R),u.current.lanes=R,kc(u,R,w),Rn(u,w),u}function Dh(u,d,m,w){var R=d.current,P=cn(),F=Ba(R);return m=kk(m),d.context===null?d.context=m:d.pendingContext=m,d=ra(P,F),d.payload={element:u},w=w===void 0?null:w,w!==null&&(d.callback=w),u=Na(R,d,F),u!==null&&(Wi(u,R,F,P),ch(u,R,F)),F}function Lh(u){if(u=u.current,!u.child)return null;switch(u.child.tag){case 5:return u.child.stateNode;default:return u.child.stateNode}}function Ek(u,d){if(u=u.memoizedState,u!==null&&u.dehydrated!==null){var m=u.retryLane;u.retryLane=m!==0&&m<d?m:d}}function z0(u,d){Ek(u,d),(u=u.alternate)&&Ek(u,d)}function R4(){return null}var Pk=typeof reportError=="function"?reportError:function(u){console.error(u)};function $0(u){this._internalRoot=u}Oh.prototype.render=$0.prototype.render=function(u){var d=this._internalRoot;if(d===null)throw Error(r(409));Dh(u,d,null,null)},Oh.prototype.unmount=$0.prototype.unmount=function(){var u=this._internalRoot;if(u!==null){this._internalRoot=null;var d=u.containerInfo;Os(function(){Dh(null,u,null,null)}),d[Qo]=null}};function Oh(u){this._internalRoot=u}Oh.prototype.unstable_scheduleHydration=function(u){if(u){var d=dC();u={blockedOn:null,target:u,priority:d};for(var m=0;m<Ea.length&&d!==0&&d<Ea[m].priority;m++);Ea.splice(m,0,u),m===0&&vC(u)}};function F0(u){return!(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)}function Nh(u){return!(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11&&(u.nodeType!==8||u.nodeValue!==" react-mount-point-unstable "))}function Mk(){}function E4(u,d,m,w,R){if(R){if(typeof w=="function"){var P=w;w=function(){var ie=Lh(F);P.call(ie)}}var F=Rk(d,w,u,0,null,!1,!1,"",Mk);return u._reactRootContainer=F,u[Qo]=F.current,Bc(u.nodeType===8?u.parentNode:u),Os(),F}for(;R=u.lastChild;)u.removeChild(R);if(typeof w=="function"){var Y=w;w=function(){var ie=Lh(K);Y.call(ie)}}var K=N0(u,0,!1,null,null,!1,!1,"",Mk);return u._reactRootContainer=K,u[Qo]=K.current,Bc(u.nodeType===8?u.parentNode:u),Os(function(){Dh(d,K,m,w)}),K}function zh(u,d,m,w,R){var P=m._reactRootContainer;if(P){var F=P;if(typeof R=="function"){var Y=R;R=function(){var K=Lh(F);Y.call(K)}}Dh(d,F,u,R)}else F=E4(m,d,u,R,w);return Lh(F)}cC=function(u){switch(u.tag){case 3:var d=u.stateNode;if(d.current.memoizedState.isDehydrated){var m=Tc(d.pendingLanes);m!==0&&(uy(d,m|1),Rn(d,xr()),(Pt&6)===0&&(au=xr()+500,La()))}break;case 13:Os(function(){var w=ta(u,1);if(w!==null){var R=cn();Wi(w,u,1,R)}}),z0(u,1)}},cy=function(u){if(u.tag===13){var d=ta(u,134217728);if(d!==null){var m=cn();Wi(d,u,134217728,m)}z0(u,134217728)}},fC=function(u){if(u.tag===13){var d=Ba(u),m=ta(u,d);if(m!==null){var w=cn();Wi(m,u,d,w)}z0(u,d)}},dC=function(){return Wt},pC=function(u,d){var m=Wt;try{return Wt=u,d()}finally{Wt=m}},er=function(u,d,m){switch(d){case"input":if(We(u,m),d=m.name,m.type==="radio"&&d!=null){for(m=u;m.parentNode;)m=m.parentNode;for(m=m.querySelectorAll("input[name="+JSON.stringify(""+d)+'][type="radio"]'),d=0;d<m.length;d++){var w=m[d];if(w!==u&&w.form===u.form){var R=eh(w);if(!R)throw Error(r(90));Te(w),We(w,R)}}}break;case"textarea":lt(u,m);break;case"select":d=m.value,d!=null&&et(u,!!m.multiple,d,!1)}},Yo=M0,Ko=Os;var P4={usingClientEntryPoint:!1,Events:[Wc,ql,eh,on,ao,M0]},nf={findFiberByHostInstance:Rs,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},M4={bundleType:nf.bundleType,version:nf.version,rendererPackageName:nf.rendererPackageName,rendererConfig:nf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(u){return u=ir(u),u===null?null:u.stateNode},findFiberByHostInstance:nf.findFiberByHostInstance||R4,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var $h=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!$h.isDisabled&&$h.supportsFiber)try{Op=$h.inject(M4),co=$h}catch{}}return En.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P4,En.createPortal=function(u,d){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!F0(d))throw Error(r(200));return k4(u,d,null,m)},En.createRoot=function(u,d){if(!F0(u))throw Error(r(299));var m=!1,w="",R=Pk;return d!=null&&(d.unstable_strictMode===!0&&(m=!0),d.identifierPrefix!==void 0&&(w=d.identifierPrefix),d.onRecoverableError!==void 0&&(R=d.onRecoverableError)),d=N0(u,1,!1,null,null,m,!1,w,R),u[Qo]=d.current,Bc(u.nodeType===8?u.parentNode:u),new $0(d)},En.findDOMNode=function(u){if(u==null)return null;if(u.nodeType===1)return u;var d=u._reactInternals;if(d===void 0)throw typeof u.render=="function"?Error(r(188)):(u=Object.keys(u).join(","),Error(r(268,u)));return u=ir(d),u=u===null?null:u.stateNode,u},En.flushSync=function(u){return Os(u)},En.hydrate=function(u,d,m){if(!Nh(d))throw Error(r(200));return zh(null,u,d,!0,m)},En.hydrateRoot=function(u,d,m){if(!F0(u))throw Error(r(405));var w=m!=null&&m.hydratedSources||null,R=!1,P="",F=Pk;if(m!=null&&(m.unstable_strictMode===!0&&(R=!0),m.identifierPrefix!==void 0&&(P=m.identifierPrefix),m.onRecoverableError!==void 0&&(F=m.onRecoverableError)),d=Rk(d,null,u,1,m??null,R,!1,P,F),u[Qo]=d.current,Bc(u),w)for(u=0;u<w.length;u++)m=w[u],R=m._getVersion,R=R(m._source),d.mutableSourceEagerHydrationData==null?d.mutableSourceEagerHydrationData=[m,R]:d.mutableSourceEagerHydrationData.push(m,R);return new Oh(d)},En.render=function(u,d,m){if(!Nh(d))throw Error(r(200));return zh(null,u,d,!1,m)},En.unmountComponentAtNode=function(u){if(!Nh(u))throw Error(r(40));return u._reactRootContainer?(Os(function(){zh(null,null,u,!1,function(){u._reactRootContainer=null,u[Qo]=null})}),!0):!1},En.unstable_batchedUpdates=M0,En.unstable_renderSubtreeIntoContainer=function(u,d,m,w){if(!Nh(m))throw Error(r(200));if(u==null||u._reactInternals===void 0)throw Error(r(38));return zh(u,d,m,!1,w)},En.version="18.3.1-next-f1338f8080-20240426",En}var $k;function xA(){if($k)return W0.exports;$k=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),W0.exports=B4(),W0.exports}var Fk;function j4(){if(Fk)return Fh;Fk=1;var e=xA();return Fh.createRoot=e.createRoot,Fh.hydrateRoot=e.hydrateRoot,Fh}var H4=j4();const W4=si(H4);var O=qg();const Ki=si(O),Ad=L4({__proto__:null,default:Ki},[O]),V4=O.createContext(null),G0={didCatch:!1,error:null};class U4 extends O.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=G0}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:o,reason:"imperative-api"}),this.setState(G0)}}componentDidCatch(t,r){var n,i;(n=(i=this.props).onError)===null||n===void 0||n.call(i,t,r)}componentDidUpdate(t,r){const{didCatch:n}=this.state,{resetKeys:i}=this.props;if(n&&r.error!==null&&G4(t.resetKeys,i)){var o,a;(o=(a=this.props).onReset)===null||o===void 0||o.call(a,{next:i,prev:t.resetKeys,reason:"keys"}),this.setState(G0)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:i}=this.props,{didCatch:o,error:a}=this.state;let s=t;if(o){const l={error:a,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")s=r(l);else if(n)s=O.createElement(n,l);else if(i===null||O.isValidElement(i))s=i;else throw a}return O.createElement(V4.Provider,{value:{didCatch:o,error:a,resetErrorBoundary:this.resetErrorBoundary}},s)}}function G4(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}function Br(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 q4=typeof Symbol=="function"&&Symbol.observable||"@@observable",Bk=q4,q0=()=>Math.random().toString(36).substring(7).split("").join("."),Y4={INIT:`@@redux/INIT${q0()}`,REPLACE:`@@redux/REPLACE${q0()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${q0()}`},lg=Y4;function zo(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 bA(e,t,r){if(typeof e!="function")throw new Error(Br(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Br(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Br(1));return r(bA)(e,t)}let n=e,i=t,o=new Map,a=o,s=0,l=!1;function c(){a===o&&(a=new Map,o.forEach((y,b)=>{a.set(b,y)}))}function f(){if(l)throw new Error(Br(3));return i}function p(y){if(typeof y!="function")throw new Error(Br(4));if(l)throw new Error(Br(5));let b=!0;c();const S=s++;return a.set(S,y),function(){if(b){if(l)throw new Error(Br(6));b=!1,c(),a.delete(S),o=null}}}function v(y){if(!zo(y))throw new Error(Br(7));if(typeof y.type>"u")throw new Error(Br(8));if(typeof y.type!="string")throw new Error(Br(17));if(l)throw new Error(Br(9));try{l=!0,i=n(i,y)}finally{l=!1}return(o=a).forEach(S=>{S()}),y}function h(y){if(typeof y!="function")throw new Error(Br(10));n=y,v({type:lg.REPLACE})}function g(){const y=p;return{subscribe(b){if(typeof b!="object"||b===null)throw new Error(Br(11));function S(){const C=b;C.next&&C.next(f())}return S(),{unsubscribe:y(S)}},[Bk](){return this}}}return v({type:lg.INIT}),{dispatch:v,subscribe:p,getState:f,replaceReducer:h,[Bk]:g}}function K4(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:lg.INIT})>"u")throw new Error(Br(12));if(typeof r(void 0,{type:lg.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Br(13))})}function Yg(e){const t=Object.keys(e),r={};for(let o=0;o<t.length;o++){const a=t[o];typeof e[a]=="function"&&(r[a]=e[a])}const n=Object.keys(r);let i;try{K4(r)}catch(o){i=o}return function(a={},s){if(i)throw i;let l=!1;const c={};for(let f=0;f<n.length;f++){const p=n[f],v=r[p],h=a[p],g=v(h,s);if(typeof g>"u")throw s&&s.type,new Error(Br(14));c[p]=g,l=l||g!==h}return l=l||n.length!==Object.keys(a).length,l?c:a}}function ug(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function X4(...e){return t=>(r,n)=>{const i=t(r,n);let o=()=>{throw new Error(Br(15))};const a={getState:i.getState,dispatch:(l,...c)=>o(l,...c)},s=e.map(l=>l(a));return o=ug(...s)(i.dispatch),{...i,dispatch:o}}}function _A(e){return zo(e)&&"type"in e&&typeof e.type=="string"}var $_=Symbol.for("immer-nothing"),od=Symbol.for("immer-draftable"),Bn=Symbol.for("immer-state");function Wr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var kl=Object.getPrototypeOf;function Qi(e){return!!e&&!!e[Bn]}function Zi(e){var t;return e?SA(e)||Array.isArray(e)||!!e[od]||!!((t=e.constructor)!=null&&t[od])||dp(e)||pp(e):!1}var Q4=Object.prototype.constructor.toString();function SA(e){if(!e||typeof e!="object")return!1;const t=kl(e);if(t===null)return!0;const r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object?!0:typeof r=="function"&&Function.toString.call(r)===Q4}function Z4(e){return Qi(e)||Wr(15,e),e[Bn].base_}function Dd(e,t){Rl(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function Rl(e){const t=e[Bn];return t?t.type_:Array.isArray(e)?1:dp(e)?2:pp(e)?3:0}function Ld(e,t){return Rl(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Y0(e,t){return Rl(e)===2?e.get(t):e[t]}function wA(e,t,r){const n=Rl(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function J4(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function dp(e){return e instanceof Map}function pp(e){return e instanceof Set}function ll(e){return e.copy_||e.base_}function Xx(e,t){if(dp(e))return new Map(e);if(pp(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=SA(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[Bn];let i=Reflect.ownKeys(n);for(let o=0;o<i.length;o++){const a=i[o],s=n[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(kl(e),n)}else{const n=kl(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function F_(e,t=!1){return Kg(e)||Qi(e)||!Zi(e)||(Rl(e)>1&&(e.set=e.add=e.clear=e.delete=e$),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>F_(n,!0))),e}function e$(){Wr(2)}function Kg(e){return Object.isFrozen(e)}var Qx={};function El(e){const t=Qx[e];return t||Wr(0,e),t}function t$(e,t){Qx[e]||(Qx[e]=t)}var Od;function CA(){return Od}function r$(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function jk(e,t){t&&(El("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Zx(e){Jx(e),e.drafts_.forEach(n$),e.drafts_=null}function Jx(e){e===Od&&(Od=e.parent_)}function Hk(e){return Od=r$(Od,e)}function n$(e){const t=e[Bn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Wk(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[Bn].modified_&&(Zx(t),Wr(4)),Zi(e)&&(e=cg(t,e),t.parent_||fg(t,e)),t.patches_&&El("Patches").generateReplacementPatches_(r[Bn].base_,e,t.patches_,t.inversePatches_)):e=cg(t,r,[]),Zx(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==$_?e:void 0}function cg(e,t,r){if(Kg(t))return t;const n=t[Bn];if(!n)return Dd(t,(i,o)=>Vk(e,n,t,i,o,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return fg(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const i=n.copy_;let o=i,a=!1;n.type_===3&&(o=new Set(i),i.clear(),a=!0),Dd(o,(s,l)=>Vk(e,n,i,s,l,r,a)),fg(e,i,!1),r&&e.patches_&&El("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function Vk(e,t,r,n,i,o,a){if(Qi(i)){const s=o&&t&&t.type_!==3&&!Ld(t.assigned_,n)?o.concat(n):void 0,l=cg(e,i,s);if(wA(r,n,l),Qi(l))e.canAutoFreeze_=!1;else return}else a&&r.add(i);if(Zi(i)&&!Kg(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;cg(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&fg(e,i)}}function fg(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&F_(t,r)}function i$(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:CA(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,o=B_;r&&(i=[n],o=Nd);const{revoke:a,proxy:s}=Proxy.revocable(i,o);return n.draft_=s,n.revoke_=a,s}var B_={get(e,t){if(t===Bn)return e;const r=ll(e);if(!Ld(r,t))return o$(e,r,t);const n=r[t];return e.finalized_||!Zi(n)?n:n===K0(e.base_,t)?(X0(e),e.copy_[t]=tb(n,e)):n},has(e,t){return t in ll(e)},ownKeys(e){return Reflect.ownKeys(ll(e))},set(e,t,r){const n=TA(ll(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=K0(ll(e),t),o=i==null?void 0:i[Bn];if(o&&o.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(J4(r,i)&&(r!==void 0||Ld(e.base_,t)))return!0;X0(e),eb(e)}return e.copy_[t]===r&&(r!==void 0||t in e.copy_)||Number.isNaN(r)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=r,e.assigned_[t]=!0),!0},deleteProperty(e,t){return K0(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,X0(e),eb(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=ll(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){Wr(11)},getPrototypeOf(e){return kl(e.base_)},setPrototypeOf(){Wr(12)}},Nd={};Dd(B_,(e,t)=>{Nd[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Nd.deleteProperty=function(e,t){return Nd.set.call(this,e,t,void 0)};Nd.set=function(e,t,r){return B_.set.call(this,e[0],t,r,e[0])};function K0(e,t){const r=e[Bn];return(r?ll(r):e)[t]}function o$(e,t,r){var i;const n=TA(t,r);return n?"value"in n?n.value:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function TA(e,t){if(!(t in e))return;let r=kl(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=kl(r)}}function eb(e){e.modified_||(e.modified_=!0,e.parent_&&eb(e.parent_))}function X0(e){e.copy_||(e.copy_=Xx(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var a$=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const o=r;r=t;const a=this;return function(l=o,...c){return a.produce(l,f=>r.call(this,f,...c))}}typeof r!="function"&&Wr(6),n!==void 0&&typeof n!="function"&&Wr(7);let i;if(Zi(t)){const o=Hk(this),a=tb(t,void 0);let s=!0;try{i=r(a),s=!1}finally{s?Zx(o):Jx(o)}return jk(o,n),Wk(i,o)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===$_&&(i=void 0),this.autoFreeze_&&F_(i,!0),n){const o=[],a=[];El("Patches").generateReplacementPatches_(t,i,o,a),n(o,a)}return i}else Wr(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let n,i;return[this.produce(t,r,(a,s)=>{n=a,i=s}),n,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Zi(e)||Wr(8),Qi(e)&&(e=kA(e));const t=Hk(this),r=tb(e,void 0);return r[Bn].isManual_=!0,Jx(t),r}finishDraft(e,t){const r=e&&e[Bn];(!r||!r.isManual_)&&Wr(9);const{scope_:n}=r;return jk(n,t),Wk(void 0,n)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let r;for(r=t.length-1;r>=0;r--){const i=t[r];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}r>-1&&(t=t.slice(r+1));const n=El("Patches").applyPatches_;return Qi(e)?n(e,t):this.produce(e,i=>n(i,t))}};function tb(e,t){const r=dp(e)?El("MapSet").proxyMap_(e,t):pp(e)?El("MapSet").proxySet_(e,t):i$(e,t);return(t?t.scope_:CA()).drafts_.push(r),r}function kA(e){return Qi(e)||Wr(10,e),RA(e)}function RA(e){if(!Zi(e)||Kg(e))return e;const t=e[Bn];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=Xx(e,t.scope_.immer_.useStrictShallowCopy_)}else r=Xx(e,!0);return Dd(r,(n,i)=>{wA(r,n,RA(i))}),t&&(t.finalized_=!1),r}function s$(){const t="replace",r="add",n="remove";function i(v,h,g,x){switch(v.type_){case 0:case 2:return a(v,h,g,x);case 1:return o(v,h,g,x);case 3:return s(v,h,g,x)}}function o(v,h,g,x){let{base_:y,assigned_:b}=v,S=v.copy_;S.length<y.length&&([y,S]=[S,y],[g,x]=[x,g]);for(let _=0;_<y.length;_++)if(b[_]&&S[_]!==y[_]){const C=h.concat([_]);g.push({op:t,path:C,value:p(S[_])}),x.push({op:t,path:C,value:p(y[_])})}for(let _=y.length;_<S.length;_++){const C=h.concat([_]);g.push({op:r,path:C,value:p(S[_])})}for(let _=S.length-1;y.length<=_;--_){const C=h.concat([_]);x.push({op:n,path:C})}}function a(v,h,g,x){const{base_:y,copy_:b}=v;Dd(v.assigned_,(S,_)=>{const C=Y0(y,S),k=Y0(b,S),T=_?Ld(y,S)?t:r:n;if(C===k&&T===t)return;const E=h.concat(S);g.push(T===n?{op:T,path:E}:{op:T,path:E,value:k}),x.push(T===r?{op:n,path:E}:T===n?{op:r,path:E,value:p(C)}:{op:t,path:E,value:p(C)})})}function s(v,h,g,x){let{base_:y,copy_:b}=v,S=0;y.forEach(_=>{if(!b.has(_)){const C=h.concat([S]);g.push({op:n,path:C,value:_}),x.unshift({op:r,path:C,value:_})}S++}),S=0,b.forEach(_=>{if(!y.has(_)){const C=h.concat([S]);g.push({op:r,path:C,value:_}),x.unshift({op:n,path:C,value:_})}S++})}function l(v,h,g,x){g.push({op:t,path:[],value:h===$_?void 0:h}),x.push({op:t,path:[],value:v})}function c(v,h){return h.forEach(g=>{const{path:x,op:y}=g;let b=v;for(let k=0;k<x.length-1;k++){const T=Rl(b);let E=x[k];typeof E!="string"&&typeof E!="number"&&(E=""+E),(T===0||T===1)&&(E==="__proto__"||E==="constructor")&&Wr(19),typeof b=="function"&&E==="prototype"&&Wr(19),b=Y0(b,E),typeof b!="object"&&Wr(18,x.join("/"))}const S=Rl(b),_=f(g.value),C=x[x.length-1];switch(y){case t:switch(S){case 2:return b.set(C,_);case 3:Wr(16);default:return b[C]=_}case r:switch(S){case 1:return C==="-"?b.push(_):b.splice(C,0,_);case 2:return b.set(C,_);case 3:return b.add(_);default:return b[C]=_}case n:switch(S){case 1:return b.splice(C,1);case 2:return b.delete(C);case 3:return b.delete(g.value);default:return delete b[C]}default:Wr(17,y)}}),v}function f(v){if(!Zi(v))return v;if(Array.isArray(v))return v.map(f);if(dp(v))return new Map(Array.from(v.entries()).map(([g,x])=>[g,f(x)]));if(pp(v))return new Set(Array.from(v).map(f));const h=Object.create(kl(v));for(const g in v)h[g]=f(v[g]);return Ld(v,od)&&(h[od]=v[od]),h}function p(v){return Qi(v)?f(v):v}t$("Patches",{applyPatches_:c,generatePatches_:i,generateReplacementPatches_:l})}var oi=new a$,hp=oi.produce,EA=oi.produceWithPatches.bind(oi);oi.setAutoFreeze.bind(oi);oi.setUseStrictShallowCopy.bind(oi);var Uk=oi.applyPatches.bind(oi);oi.createDraft.bind(oi);oi.finishDraft.bind(oi);function l$(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function u$(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function c$(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var Gk=e=>Array.isArray(e)?e:[e];function f$(e){const t=Array.isArray(e[0])?e[0]:e;return c$(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function d$(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var p$=class{constructor(e){this.value=e}deref(){return this.value}},h$=typeof WeakRef<"u"?WeakRef:p$,v$=0,qk=1;function Bh(){return{s:v$,v:void 0,o:null,p:null}}function zd(e,t={}){let r=Bh();const{resultEqualityCheck:n}=t;let i,o=0;function a(){var p;let s=r;const{length:l}=arguments;for(let v=0,h=l;v<h;v++){const g=arguments[v];if(typeof g=="function"||typeof g=="object"&&g!==null){let x=s.o;x===null&&(s.o=x=new WeakMap);const y=x.get(g);y===void 0?(s=Bh(),x.set(g,s)):s=y}else{let x=s.p;x===null&&(s.p=x=new Map);const y=x.get(g);y===void 0?(s=Bh(),x.set(g,s)):s=y}}const c=s;let f;if(s.s===qk)f=s.v;else if(f=e.apply(null,arguments),o++,n){const v=((p=i==null?void 0:i.deref)==null?void 0:p.call(i))??i;v!=null&&n(v,f)&&(f=v,o!==0&&o--),i=typeof f=="object"&&f!==null||typeof f=="function"?new h$(f):f}return c.s=qk,c.v=f,f}return a.clearCache=()=>{r=Bh(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function PA(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let o=0,a=0,s,l={},c=i.pop();typeof c=="object"&&(l=c,c=i.pop()),l$(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const f={...r,...l},{memoize:p,memoizeOptions:v=[],argsMemoize:h=zd,argsMemoizeOptions:g=[]}=f,x=Gk(v),y=Gk(g),b=f$(i),S=p(function(){return o++,c.apply(null,arguments)},...x),_=h(function(){a++;const k=d$(b,arguments);return s=S.apply(null,k),s},...y);return Object.assign(_,{resultFunc:c,memoizedResultFunc:S,dependencies:b,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:p,argsMemoize:h})};return Object.assign(n,{withTypes:()=>n}),n}var j_=PA(zd),g$=Object.assign((e,t=j_)=>{u$(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(o=>e[o]);return t(n,(...o)=>o.reduce((a,s,l)=>(a[r[l]]=s,a),{}))},{withTypes:()=>g$});function MA(e){return({dispatch:r,getState:n})=>i=>o=>typeof o=="function"?o(r,n,e):i(o)}var m$=MA(),y$=MA,x$=(...e)=>{const t=PA(...e),r=Object.assign((...n)=>{const i=t(...n),o=(a,...s)=>i(Qi(a)?kA(a):a,...s);return Object.assign(o,i),o},{withTypes:()=>r});return r};x$(zd);var b$=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ug:ug.apply(null,arguments)},_$=e=>e&&typeof e.match=="function";function mn(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(en(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:n[0]}}return r.toString=()=>`${e}`,r.type=e,r.match=n=>_A(n)&&n.type===e,r}var IA=class qf extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,qf.prototype)}static get[Symbol.species](){return qf}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new qf(...t[0].concat(this)):new qf(...t.concat(this))}};function Yk(e){return Zi(e)?hp(e,()=>{}):e}function Kk(e,t,r){if(e.has(t)){let i=e.get(t);return r.update&&(i=r.update(i,t,e),e.set(t,i)),i}if(!r.insert)throw new Error(en(10));const n=r.insert(t,e);return e.set(t,n),n}function S$(e){return typeof e=="boolean"}var w$=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let a=new IA;return r&&(S$(r)?a.push(m$):a.push(y$(r.extraArgument))),a},Nu="RTK_autoBatch",af=()=>e=>({payload:e,meta:{[Nu]:!0}}),AA=e=>t=>{setTimeout(t,e)},C$=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:AA(10),T$=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,o=!1,a=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?C$:e.type==="callback"?e.queueNotification:AA(e.timeout),c=()=>{a=!1,o&&(o=!1,s.forEach(f=>f()))};return Object.assign({},n,{subscribe(f){const p=()=>i&&f(),v=n.subscribe(p);return s.add(f),()=>{v(),s.delete(f)}},dispatch(f){var p;try{return i=!((p=f==null?void 0:f.meta)!=null&&p[Nu]),o=!i,o&&(a||(a=!0,l(c))),n.dispatch(f)}finally{i=!0}}})},k$=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new IA(e);return n&&i.push(T$(typeof n=="object"?n:void 0)),i};function DA(e){const t=w$(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{};let s;if(typeof r=="function")s=r;else if(zo(r))s=Yg(r);else throw new Error(en(1));let l;typeof n=="function"?l=n(t):l=t();let c=ug;i&&(c=b$({trace:!1,...typeof i=="object"&&i}));const f=X4(...l),p=k$(f);let v=typeof a=="function"?a(p):p();const h=c(...v);return bA(s,o,h)}function LA(e){const t={},r=[];let n;const i={addCase(o,a){const s=typeof o=="string"?o:o.type;if(!s)throw new Error(en(28));if(s in t)throw new Error(en(29));return t[s]=a,i},addMatcher(o,a){return r.push({matcher:o,reducer:a}),i},addDefaultCase(o){return n=o,i}};return e(i),[t,r,n]}function R$(e){return typeof e=="function"}function E$(e,t){let[r,n,i]=LA(t),o;if(R$(e))o=()=>Yk(e());else{const s=Yk(e);o=()=>s}function a(s=o(),l){let c=[r[l.type],...n.filter(({matcher:f})=>f(l)).map(({reducer:f})=>f)];return c.filter(f=>!!f).length===0&&(c=[i]),c.reduce((f,p)=>{if(p)if(Qi(f)){const h=p(f,l);return h===void 0?f:h}else{if(Zi(f))return hp(f,v=>p(v,l));{const v=p(f,l);if(v===void 0){if(f===null)return f;throw new Error(en(9))}return v}}return f},s)}return a.getInitialState=o,a}var P$="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",H_=(e=21)=>{let t="",r=e;for(;r--;)t+=P$[Math.random()*64|0];return t},OA=(e,t)=>_$(e)?e.match(t):e(t);function va(...e){return t=>e.some(r=>OA(r,t))}function ad(...e){return t=>e.every(r=>OA(r,t))}function Xg(e,t){if(!e||!e.meta)return!1;const r=typeof e.meta.requestId=="string",n=t.indexOf(e.meta.requestStatus)>-1;return r&&n}function vp(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function W_(...e){return e.length===0?t=>Xg(t,["pending"]):vp(e)?va(...e.map(t=>t.pending)):W_()(e[0])}function rc(...e){return e.length===0?t=>Xg(t,["rejected"]):vp(e)?va(...e.map(t=>t.rejected)):rc()(e[0])}function Qg(...e){const t=r=>r&&r.meta&&r.meta.rejectedWithValue;return e.length===0?ad(rc(...e),t):vp(e)?ad(rc(...e),t):Qg()(e[0])}function ps(...e){return e.length===0?t=>Xg(t,["fulfilled"]):vp(e)?va(...e.map(t=>t.fulfilled)):ps()(e[0])}function rb(...e){return e.length===0?t=>Xg(t,["pending","fulfilled","rejected"]):vp(e)?va(...e.flatMap(t=>[t.pending,t.rejected,t.fulfilled])):rb()(e[0])}var M$=["name","message","stack","code"],Q0=class{constructor(e,t){B0(this,"_type");this.payload=e,this.meta=t}},Xk=class{constructor(e,t){B0(this,"_type");this.payload=e,this.meta=t}},I$=e=>{if(typeof e=="object"&&e!==null){const t={};for(const r of M$)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},Qk=(()=>{function e(t,r,n){const i=mn(t+"/fulfilled",(l,c,f,p)=>({payload:l,meta:{...p||{},arg:f,requestId:c,requestStatus:"fulfilled"}})),o=mn(t+"/pending",(l,c,f)=>({payload:void 0,meta:{...f||{},arg:c,requestId:l,requestStatus:"pending"}})),a=mn(t+"/rejected",(l,c,f,p,v)=>({payload:p,error:(n&&n.serializeError||I$)(l||"Rejected"),meta:{...v||{},arg:f,requestId:c,rejectedWithValue:!!p,requestStatus:"rejected",aborted:(l==null?void 0:l.name)==="AbortError",condition:(l==null?void 0:l.name)==="ConditionError"}}));function s(l){return(c,f,p)=>{const v=n!=null&&n.idGenerator?n.idGenerator(l):H_(),h=new AbortController;let g,x;function y(S){x=S,h.abort()}const b=async function(){var C,k;let S;try{let T=(C=n==null?void 0:n.condition)==null?void 0:C.call(n,l,{getState:f,extra:p});if(D$(T)&&(T=await T),T===!1||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const E=new Promise((I,D)=>{g=()=>{D({name:"AbortError",message:x||"Aborted"})},h.signal.addEventListener("abort",g)});c(o(v,l,(k=n==null?void 0:n.getPendingMeta)==null?void 0:k.call(n,{requestId:v,arg:l},{getState:f,extra:p}))),S=await Promise.race([E,Promise.resolve(r(l,{dispatch:c,getState:f,extra:p,requestId:v,signal:h.signal,abort:y,rejectWithValue:(I,D)=>new Q0(I,D),fulfillWithValue:(I,D)=>new Xk(I,D)})).then(I=>{if(I instanceof Q0)throw I;return I instanceof Xk?i(I.payload,v,l,I.meta):i(I,v,l)})])}catch(T){S=T instanceof Q0?a(null,v,l,T.payload,T.meta):a(T,v,l)}finally{g&&h.signal.removeEventListener("abort",g)}return n&&!n.dispatchConditionRejection&&a.match(S)&&S.meta.condition||c(S),S}();return Object.assign(b,{abort:y,requestId:v,arg:l,unwrap(){return b.then(A$)}})}}return Object.assign(s,{pending:o,rejected:a,fulfilled:i,settled:va(a,i),typePrefix:t})}return e.withTypes=()=>e,e})();function A$(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function D$(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var L$=Symbol.for("rtk-slice-createasyncthunk");function O$(e,t){return`${e}/${t}`}function N$({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[L$];return function(i){const{name:o,reducerPath:a=o}=i;if(!o)throw new Error(en(11));const s=(typeof i.reducers=="function"?i.reducers($$()):i.reducers)||{},l=Object.keys(s),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(_,C){const k=typeof _=="string"?_:_.type;if(!k)throw new Error(en(12));if(k in c.sliceCaseReducersByType)throw new Error(en(13));return c.sliceCaseReducersByType[k]=C,f},addMatcher(_,C){return c.sliceMatchers.push({matcher:_,reducer:C}),f},exposeAction(_,C){return c.actionCreators[_]=C,f},exposeCaseReducer(_,C){return c.sliceCaseReducersByName[_]=C,f}};l.forEach(_=>{const C=s[_],k={reducerName:_,type:O$(o,_),createNotation:typeof i.reducers=="function"};B$(C)?H$(k,C,f,t):F$(k,C,f)});function p(){const[_={},C=[],k=void 0]=typeof i.extraReducers=="function"?LA(i.extraReducers):[i.extraReducers],T={..._,...c.sliceCaseReducersByType};return E$(i.initialState,E=>{for(let I in T)E.addCase(I,T[I]);for(let I of c.sliceMatchers)E.addMatcher(I.matcher,I.reducer);for(let I of C)E.addMatcher(I.matcher,I.reducer);k&&E.addDefaultCase(k)})}const v=_=>_,h=new Map;let g;function x(_,C){return g||(g=p()),g(_,C)}function y(){return g||(g=p()),g.getInitialState()}function b(_,C=!1){function k(E){let I=E[_];return typeof I>"u"&&C&&(I=y()),I}function T(E=v){const I=Kk(h,C,{insert:()=>new WeakMap});return Kk(I,E,{insert:()=>{const D={};for(const[A,L]of Object.entries(i.selectors??{}))D[A]=z$(L,E,y,C);return D}})}return{reducerPath:_,getSelectors:T,get selectors(){return T(k)},selectSlice:k}}const S={name:o,reducer:x,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:y,...b(a),injectInto(_,{reducerPath:C,...k}={}){const T=C??a;return _.inject({reducerPath:T,reducer:x},k),{...S,...b(T,!0)}}};return S}}function z$(e,t,r,n){function i(o,...a){let s=t(o);return typeof s>"u"&&n&&(s=r()),e(s,...a)}return i.unwrapped=e,i}var Ci=N$();function $$(){function e(t,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...r}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...r){return t(...r)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:r}},asyncThunk:e}}function F$({type:e,reducerName:t,createNotation:r},n,i){let o,a;if("reducer"in n){if(r&&!j$(n))throw new Error(en(17));o=n.reducer,a=n.prepare}else o=n;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?mn(e,a):mn(e))}function B$(e){return e._reducerDefinitionType==="asyncThunk"}function j$(e){return e._reducerDefinitionType==="reducerWithPrepare"}function H$({type:e,reducerName:t},r,n,i){if(!i)throw new Error(en(18));const{payloadCreator:o,fulfilled:a,pending:s,rejected:l,settled:c,options:f}=r,p=i(e,o,f);n.exposeAction(t,p),a&&n.addCase(p.fulfilled,a),s&&n.addCase(p.pending,s),l&&n.addCase(p.rejected,l),c&&n.addMatcher(p.settled,c),n.exposeCaseReducer(t,{fulfilled:a||jh,pending:s||jh,rejected:l||jh,settled:c||jh})}function jh(){}var W$=(e,t)=>{if(typeof e!="function")throw new Error(en(32))},V_="listenerMiddleware",V$=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:o}=e;if(t)i=mn(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(en(21));return W$(o),{predicate:i,type:t,effect:o}},U$=Object.assign(e=>{const{type:t,predicate:r,effect:n}=V$(e);return{id:H_(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(en(22))}}},{withTypes:()=>U$}),G$=Object.assign(mn(`${V_}/add`),{withTypes:()=>G$});mn(`${V_}/removeAll`);var q$=Object.assign(mn(`${V_}/remove`),{withTypes:()=>q$});function en(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. `}var Z0={exports:{}},J0={};/**
41
- * @license React
42
- * use-sync-external-store-with-selector.production.min.js
43
- *
44
- * Copyright (c) Facebook, Inc. and its affiliates.
45
- *
46
- * This source code is licensed under the MIT license found in the
47
- * LICENSE file in the root directory of this source tree.
48
- */var Zk;function Y$(){if(Zk)return J0;Zk=1;var e=qg();function t(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,i=e.useRef,o=e.useEffect,a=e.useMemo,s=e.useDebugValue;return J0.useSyncExternalStoreWithSelector=function(l,c,f,p,v){var h=i(null);if(h.current===null){var g={hasValue:!1,value:null};h.current=g}else g=h.current;h=a(function(){function y(k){if(!b){if(b=!0,S=k,k=p(k),v!==void 0&&g.hasValue){var T=g.value;if(v(T,k))return _=T}return _=k}if(T=_,r(S,k))return T;var E=p(k);return v!==void 0&&v(T,E)?T:(S=k,_=E)}var b=!1,S,_,C=f===void 0?null:f;return[function(){return y(c())},C===null?void 0:function(){return y(C())}]},[c,f,p,v]);var x=n(l,h[0],h[1]);return o(function(){g.hasValue=!0,g.value=x},[x]),s(x),x},J0}var Jk;function K$(){return Jk||(Jk=1,Z0.exports=Y$()),Z0.exports}var X$=K$(),kt="default"in Ad?Ki:Ad,e2=Symbol.for("react-redux-context"),t2=typeof globalThis<"u"?globalThis:{};function Q$(){if(!kt.createContext)return{};const e=t2[e2]??(t2[e2]=new Map);let t=e.get(kt.createContext);return t||(t=kt.createContext(null),e.set(kt.createContext,t)),t}var ga=Q$(),NA=()=>{throw new Error("uSES not initialized!")};function U_(e=ga){return function(){return kt.useContext(e)}}var zA=U_(),$A=NA,Z$=e=>{$A=e},J$=(e,t)=>e===t;function eF(e=ga){const t=e===ga?zA:U_(e),r=(n,i={})=>{const{equalityFn:o=J$,devModeChecks:a={}}=typeof i=="function"?{equalityFn:i}:i,{store:s,subscription:l,getServerState:c,stabilityCheck:f,identityFunctionCheck:p}=t();kt.useRef(!0);const v=kt.useCallback({[n.name](g){return n(g)}}[n.name],[n,f,a.stabilityCheck]),h=$A(l.addNestedSub,s.getState,c||s.getState,v,o);return kt.useDebugValue(h),h};return Object.assign(r,{withTypes:()=>r}),r}var FA=eF(),tF=Symbol.for("react.element"),rF=Symbol.for("react.portal"),nF=Symbol.for("react.fragment"),iF=Symbol.for("react.strict_mode"),oF=Symbol.for("react.profiler"),aF=Symbol.for("react.provider"),sF=Symbol.for("react.context"),lF=Symbol.for("react.server_context"),BA=Symbol.for("react.forward_ref"),uF=Symbol.for("react.suspense"),cF=Symbol.for("react.suspense_list"),G_=Symbol.for("react.memo"),fF=Symbol.for("react.lazy"),dF=BA,pF=G_;function hF(e){if(typeof e=="object"&&e!==null){const t=e.$$typeof;switch(t){case tF:{const r=e.type;switch(r){case nF:case oF:case iF:case uF:case cF:return r;default:{const n=r&&r.$$typeof;switch(n){case lF:case sF:case BA:case fF:case G_:case aF:return n;default:return t}}}}case rF:return t}}}function vF(e){return hF(e)===G_}function gF(e,t,r,n,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:a}){let s=!1,l,c,f,p,v;function h(S,_){return l=S,c=_,f=e(l,c),p=t(n,c),v=r(f,p,c),s=!0,v}function g(){return f=e(l,c),t.dependsOnOwnProps&&(p=t(n,c)),v=r(f,p,c),v}function x(){return e.dependsOnOwnProps&&(f=e(l,c)),t.dependsOnOwnProps&&(p=t(n,c)),v=r(f,p,c),v}function y(){const S=e(l,c),_=!a(S,f);return f=S,_&&(v=r(f,p,c)),v}function b(S,_){const C=!o(_,c),k=!i(S,l,_,c);return l=S,c=_,C&&k?g():C?x():k?y():v}return function(_,C){return s?b(_,C):h(_,C)}}function mF(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:n,...i}){const o=t(e,i),a=r(e,i),s=n(e,i);return gF(o,a,s,e,i)}function yF(e,t){const r={};for(const n in e){const i=e[n];typeof i=="function"&&(r[n]=(...o)=>t(i(...o)))}return r}function nb(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function r2(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function jA(e,t){return function(n,{displayName:i}){const o=function(s,l){return o.dependsOnOwnProps?o.mapToProps(s,l):o.mapToProps(s,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(s,l){o.mapToProps=e,o.dependsOnOwnProps=r2(e);let c=o(s,l);return typeof c=="function"&&(o.mapToProps=c,o.dependsOnOwnProps=r2(c),c=o(s,l)),c},o}}function q_(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function xF(e){return e&&typeof e=="object"?nb(t=>yF(e,t)):e?typeof e=="function"?jA(e):q_(e,"mapDispatchToProps"):nb(t=>({dispatch:t}))}function bF(e){return e?typeof e=="function"?jA(e):q_(e,"mapStateToProps"):nb(()=>({}))}function _F(e,t,r){return{...r,...e,...t}}function SF(e){return function(r,{displayName:n,areMergedPropsEqual:i}){let o=!1,a;return function(l,c,f){const p=e(l,c,f);return o?i(p,a)||(a=p):(o=!0,a=p),a}}}function wF(e){return e?typeof e=="function"?SF(e):q_(e,"mergeProps"):()=>_F}function HA(e){e()}function CF(){let e=null,t=null;return{clear(){e=null,t=null},notify(){HA(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var n2={notify(){},get:()=>[]};function WA(e,t){let r,n=n2,i=0,o=!1;function a(x){f();const y=n.subscribe(x);let b=!1;return()=>{b||(b=!0,y(),p())}}function s(){n.notify()}function l(){g.onStateChange&&g.onStateChange()}function c(){return o}function f(){i++,r||(r=t?t.addNestedSub(l):e.subscribe(l),n=CF())}function p(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=n2)}function v(){o||(o=!0,f())}function h(){o&&(o=!1,p())}const g={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:c,trySubscribe:v,tryUnsubscribe:h,getListeners:()=>n};return g}var TF=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",kF=typeof navigator<"u"&&navigator.product==="ReactNative",dg=TF||kF?kt.useLayoutEffect:kt.useEffect;function i2(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function ls(e,t){if(i2(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!i2(e[r[i]],t[r[i]]))return!1;return!0}var RF={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},EF={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},PF={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},VA={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},MF={[dF]:PF,[pF]:VA};function o2(e){return vF(e)?VA:MF[e.$$typeof]||RF}var IF=Object.defineProperty,AF=Object.getOwnPropertyNames,a2=Object.getOwnPropertySymbols,DF=Object.getOwnPropertyDescriptor,LF=Object.getPrototypeOf,s2=Object.prototype;function ib(e,t){if(typeof t!="string"){if(s2){const o=LF(t);o&&o!==s2&&ib(e,o)}let r=AF(t);a2&&(r=r.concat(a2(t)));const n=o2(e),i=o2(t);for(let o=0;o<r.length;++o){const a=r[o];if(!EF[a]&&!(i&&i[a])&&!(n&&n[a])){const s=DF(t,a);try{IF(e,a,s)}catch{}}}}return e}var UA=NA,OF=e=>{UA=e},NF=[null,null];function zF(e,t,r){dg(()=>e(...t),r)}function $F(e,t,r,n,i,o){e.current=n,r.current=!1,i.current&&(i.current=null,o())}function FF(e,t,r,n,i,o,a,s,l,c,f){if(!e)return()=>{};let p=!1,v=null;const h=()=>{if(p||!s.current)return;const x=t.getState();let y,b;try{y=n(x,i.current)}catch(S){b=S,v=S}b||(v=null),y===o.current?a.current||c():(o.current=y,l.current=y,a.current=!0,f())};return r.onStateChange=h,r.trySubscribe(),h(),()=>{if(p=!0,r.tryUnsubscribe(),r.onStateChange=null,v)throw v}}function BF(e,t){return e===t}function jF(e,t,r,{pure:n,areStatesEqual:i=BF,areOwnPropsEqual:o=ls,areStatePropsEqual:a=ls,areMergedPropsEqual:s=ls,forwardRef:l=!1,context:c=ga}={}){const f=c,p=bF(e),v=xF(t),h=wF(r),g=!!e;return y=>{const b=y.displayName||y.name||"Component",S=`Connect(${b})`,_={shouldHandleStateChanges:g,displayName:S,wrappedComponentName:b,WrappedComponent:y,initMapStateToProps:p,initMapDispatchToProps:v,initMergeProps:h,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:o,areMergedPropsEqual:s};function C(E){const[I,D,A]=kt.useMemo(()=>{const{reactReduxForwardedRef:Te,...Oe}=E;return[E.context,Te,Oe]},[E]),L=kt.useMemo(()=>{let Te=f;return I!=null&&I.Consumer,Te},[I,f]),$=kt.useContext(L),B=!!E.store&&!!E.store.getState&&!!E.store.dispatch,j=!!$&&!!$.store,W=B?E.store:$.store,q=j?$.getServerState:W.getState,Z=kt.useMemo(()=>mF(W.dispatch,_),[W]),[V,G]=kt.useMemo(()=>{if(!g)return NF;const Te=WA(W,B?void 0:$.subscription),Oe=Te.notifyNestedSubs.bind(Te);return[Te,Oe]},[W,B,$]),N=kt.useMemo(()=>B?$:{...$,subscription:V},[B,$,V]),U=kt.useRef(void 0),Q=kt.useRef(A),H=kt.useRef(void 0),oe=kt.useRef(!1),ve=kt.useRef(!1),te=kt.useRef(void 0);dg(()=>(ve.current=!0,()=>{ve.current=!1}),[]);const ge=kt.useMemo(()=>()=>H.current&&A===Q.current?H.current:Z(W.getState(),A),[W,A]),de=kt.useMemo(()=>Oe=>V?FF(g,W,V,Z,Q,U,oe,ve,H,G,Oe):()=>{},[V]);zF($F,[Q,U,oe,A,H,G]);let xe;try{xe=UA(de,ge,q?()=>Z(q(),A):ge)}catch(Te){throw te.current&&(Te.message+=`
49
- The error may be correlated with this previous error:
50
- ${te.current.stack}
51
-
52
- `),Te}dg(()=>{te.current=void 0,H.current=void 0,U.current=xe});const Me=kt.useMemo(()=>kt.createElement(y,{...xe,ref:D}),[D,y,xe]);return kt.useMemo(()=>g?kt.createElement(L.Provider,{value:N},Me):Me,[L,Me,N])}const T=kt.memo(C);if(T.WrappedComponent=y,T.displayName=C.displayName=S,l){const I=kt.forwardRef(function(A,L){return kt.createElement(T,{...A,reactReduxForwardedRef:L})});return I.displayName=S,I.WrappedComponent=y,ib(I,y)}return ib(T,y)}}var li=jF;function HF({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",identityFunctionCheck:o="once"}){const a=kt.useMemo(()=>{const c=WA(e);return{store:e,subscription:c,getServerState:n?()=>n:void 0,stabilityCheck:i,identityFunctionCheck:o}},[e,n,i,o]),s=kt.useMemo(()=>e.getState(),[e]);dg(()=>{const{subscription:c}=a;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),s!==e.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[a,s]);const l=t||ga;return kt.createElement(l.Provider,{value:a},r)}var l2=HF;function GA(e=ga){const t=e===ga?zA:U_(e),r=()=>{const{store:n}=t();return n};return Object.assign(r,{withTypes:()=>r}),r}var qA=GA();function WF(e=ga){const t=e===ga?qA:GA(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var YA=WF(),VF=HA;Z$(X$.useSyncExternalStoreWithSelector);OF(O.useSyncExternalStore);function KA(e,t,r){return t&&(Array.isArray(t)?t.map(n=>KA(e,n,r)):typeof t=="object"?Y_(t,r):t)}const Y_=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[t(n)]:KA(e,i,t)}),{}),XA=e=>e.replace(/_([a-z0-9])/g,(t,r)=>r.toUpperCase()),UF=e=>e[0]===e[0].toUpperCase()?e:e.replace(/([a-z0-9])([A-Z0-9])/g,"$1_$2").toLowerCase(),dl=e=>Y_(e,XA),u2=e=>Y_(e,UF),ob=e=>e.replace(/([a-z0-9])([A-Z0-9])/g,"$1 $2").replace(/^./,t=>t.toUpperCase()),GF=e=>Object.fromEntries(new URLSearchParams(e).entries()),qF=(e,t=2)=>{if(e===0)return"0 Bytes";if(e===0)return"N/A";const r=1024,n=t<0?0:t,i=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,o)).toFixed(n))+" "+i[o]},c2=!!window.authArgs&&dl(window.authArgs),$d={black:"#000",white:"#fff"},ns={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828",900:"#b71c1c"},lu={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ul={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},uu={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},cu={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},YF={900:"#ff6f00"},sf={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},KF={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"};function z(){return z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},z.apply(null,arguments)}function pl(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function QA(e){if(!pl(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=QA(e[r])}),t}function On(e,t,r={clone:!0}){const n=r.clone?z({},e):e;return pl(e)&&pl(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(pl(t[i])&&i in e&&pl(e[i])?n[i]=On(e[i],t[i],r):r.clone?n[i]=pl(t[i])?QA(t[i]):t[i]:n[i]=t[i])}),n}function hs(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function ce(e){if(typeof e!="string")throw new Error(hs(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ab(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function hc(e,t=166){let r;function n(...i){const o=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(o,t)}return n.clear=()=>{clearTimeout(r)},n}function XF(e,t){return()=>null}function sd(e,t){return O.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function Ur(e){return e&&e.ownerDocument||document}function Ai(e){return Ur(e).defaultView||window}function QF(e,t){return()=>null}function Fd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Ji=typeof window<"u"?O.useLayoutEffect:O.useEffect;let f2=0;function ZF(e){const[t,r]=O.useState(e),n=e||t;return O.useEffect(()=>{t==null&&(f2+=1,r(`mui-${f2}`))},[t]),n}const d2=Ad.useId;function Zg(e){if(d2!==void 0){const t=d2();return e??t}return ZF(e)}function JF(e,t,r,n,i){return null}function da({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=O.useRef(e!==void 0),[o,a]=O.useState(t),s=i?e:o,l=O.useCallback(c=>{i||a(c)},[]);return[s,l]}function gn(e){const t=O.useRef(e);return Ji(()=>{t.current=e}),O.useCallback((...r)=>(0,t.current)(...r),[])}function cr(...e){return O.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Fd(r,t)})},e)}let Jg=!0,sb=!1,p2;const eB={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function tB(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&eB[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function rB(e){e.metaKey||e.altKey||e.ctrlKey||(Jg=!0)}function e1(){Jg=!1}function nB(){this.visibilityState==="hidden"&&sb&&(Jg=!0)}function iB(e){e.addEventListener("keydown",rB,!0),e.addEventListener("mousedown",e1,!0),e.addEventListener("pointerdown",e1,!0),e.addEventListener("touchstart",e1,!0),e.addEventListener("visibilitychange",nB,!0)}function oB(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Jg||tB(t)}function em(){const e=O.useCallback(i=>{i!=null&&iB(i.ownerDocument)},[]),t=O.useRef(!1);function r(){return t.current?(sb=!0,window.clearTimeout(p2),p2=window.setTimeout(()=>{sb=!1},100),t.current=!1,!0):!1}function n(i){return oB(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function ZA(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let fu;function JA(){if(fu)return fu;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),fu="reverse",e.scrollLeft>0?fu="default":(e.scrollLeft=1,e.scrollLeft===0&&(fu="negative")),document.body.removeChild(e),fu}function aB(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(JA()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}const sB=e=>{const t=O.useRef({});return O.useEffect(()=>{t.current=e}),t.current};function K_(e,t){const r=z({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=z({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},o=t[n];r[n]={},!o||!Object.keys(o)?r[n]=i:!i||!Object.keys(i)?r[n]=o:(r[n]=z({},o),Object.keys(i).forEach(a=>{r[n][a]=K_(i[a],o[a])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function Ke(e,t,r=void 0){const n={};return Object.keys(e).forEach(i=>{n[i]=e[i].reduce((o,a)=>{if(a){const s=t(a);s!==""&&o.push(s),r&&r[a]&&o.push(r[a])}return o},[]).join(" ")}),n}const h2=e=>e,lB=()=>{let e=h2;return{configure(t){e=t},generate(t){return e(t)},reset(){e=h2}}},X_=lB(),uB={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 Ye(e,t,r="Mui"){const n=uB[t];return n?`${r}-${n}`:`${X_.generate(e)}-${t}`}function Xe(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=Ye(e,i,r)}),n}const Pl="$$material";function Re(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function eD(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var cB=/^((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|download|draggable|encType|enterKeyHint|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|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)-.*))$/,fB=eD(function(e){return cB.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function dB(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 pB(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 hB=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(pB(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var o=dB(i);try{o.insertRule(n,o.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Zr="-ms-",pg="-moz-",Dt="-webkit-",tD="comm",Q_="rule",Z_="decl",vB="@import",rD="@keyframes",gB="@layer",mB=Math.abs,tm=String.fromCharCode,yB=Object.assign;function xB(e,t){return jr(e,0)^45?(((t<<2^jr(e,0))<<2^jr(e,1))<<2^jr(e,2))<<2^jr(e,3):0}function nD(e){return e.trim()}function bB(e,t){return(e=t.exec(e))?e[0]:e}function Lt(e,t,r){return e.replace(t,r)}function lb(e,t){return e.indexOf(t)}function jr(e,t){return e.charCodeAt(t)|0}function Bd(e,t,r){return e.slice(t,r)}function So(e){return e.length}function J_(e){return e.length}function Hh(e,t){return t.push(e),e}function _B(e,t){return e.map(t).join("")}var rm=1,nc=1,iD=0,jn=0,Cr=0,vc="";function nm(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:rm,column:nc,length:a,return:""}}function lf(e,t){return yB(nm("",null,null,"",null,null,0),e,{length:-e.length},t)}function SB(){return Cr}function wB(){return Cr=jn>0?jr(vc,--jn):0,nc--,Cr===10&&(nc=1,rm--),Cr}function ni(){return Cr=jn<iD?jr(vc,jn++):0,nc++,Cr===10&&(nc=1,rm++),Cr}function Mo(){return jr(vc,jn)}function Hv(){return jn}function gp(e,t){return Bd(vc,e,t)}function jd(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 oD(e){return rm=nc=1,iD=So(vc=e),jn=0,[]}function aD(e){return vc="",e}function Wv(e){return nD(gp(jn-1,ub(e===91?e+2:e===40?e+1:e)))}function CB(e){for(;(Cr=Mo())&&Cr<33;)ni();return jd(e)>2||jd(Cr)>3?"":" "}function TB(e,t){for(;--t&&ni()&&!(Cr<48||Cr>102||Cr>57&&Cr<65||Cr>70&&Cr<97););return gp(e,Hv()+(t<6&&Mo()==32&&ni()==32))}function ub(e){for(;ni();)switch(Cr){case e:return jn;case 34:case 39:e!==34&&e!==39&&ub(Cr);break;case 40:e===41&&ub(e);break;case 92:ni();break}return jn}function kB(e,t){for(;ni()&&e+Cr!==57;)if(e+Cr===84&&Mo()===47)break;return"/*"+gp(t,jn-1)+"*"+tm(e===47?e:ni())}function RB(e){for(;!jd(Mo());)ni();return gp(e,jn)}function EB(e){return aD(Vv("",null,null,null,[""],e=oD(e),0,[0],e))}function Vv(e,t,r,n,i,o,a,s,l){for(var c=0,f=0,p=a,v=0,h=0,g=0,x=1,y=1,b=1,S=0,_="",C=i,k=o,T=n,E=_;y;)switch(g=S,S=ni()){case 40:if(g!=108&&jr(E,p-1)==58){lb(E+=Lt(Wv(S),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:E+=Wv(S);break;case 9:case 10:case 13:case 32:E+=CB(g);break;case 92:E+=TB(Hv()-1,7);continue;case 47:switch(Mo()){case 42:case 47:Hh(PB(kB(ni(),Hv()),t,r),l);break;default:E+="/"}break;case 123*x:s[c++]=So(E)*b;case 125*x:case 59:case 0:switch(S){case 0:case 125:y=0;case 59+f:b==-1&&(E=Lt(E,/\f/g,"")),h>0&&So(E)-p&&Hh(h>32?g2(E+";",n,r,p-1):g2(Lt(E," ","")+";",n,r,p-2),l);break;case 59:E+=";";default:if(Hh(T=v2(E,t,r,c,f,i,s,_,C=[],k=[],p),o),S===123)if(f===0)Vv(E,t,T,T,C,o,p,s,k);else switch(v===99&&jr(E,3)===110?100:v){case 100:case 108:case 109:case 115:Vv(e,T,T,n&&Hh(v2(e,T,T,0,0,i,s,_,i,C=[],p),k),i,k,p,s,n?C:k);break;default:Vv(E,T,T,T,[""],k,0,s,k)}}c=f=h=0,x=b=1,_=E="",p=a;break;case 58:p=1+So(E),h=g;default:if(x<1){if(S==123)--x;else if(S==125&&x++==0&&wB()==125)continue}switch(E+=tm(S),S*x){case 38:b=f>0?1:(E+="\f",-1);break;case 44:s[c++]=(So(E)-1)*b,b=1;break;case 64:Mo()===45&&(E+=Wv(ni())),v=Mo(),f=p=So(_=E+=RB(Hv())),S++;break;case 45:g===45&&So(E)==2&&(x=0)}}return o}function v2(e,t,r,n,i,o,a,s,l,c,f){for(var p=i-1,v=i===0?o:[""],h=J_(v),g=0,x=0,y=0;g<n;++g)for(var b=0,S=Bd(e,p+1,p=mB(x=a[g])),_=e;b<h;++b)(_=nD(x>0?v[b]+" "+S:Lt(S,/&\f/g,v[b])))&&(l[y++]=_);return nm(e,t,r,i===0?Q_:s,l,c,f)}function PB(e,t,r){return nm(e,t,r,tD,tm(SB()),Bd(e,2,-2),0)}function g2(e,t,r,n){return nm(e,t,r,Z_,Bd(e,0,n),Bd(e,n+1,-1),n)}function Wu(e,t){for(var r="",n=J_(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function MB(e,t,r,n){switch(e.type){case gB:if(e.children.length)break;case vB:case Z_:return e.return=e.return||e.value;case tD:return"";case rD:return e.return=e.value+"{"+Wu(e.children,n)+"}";case Q_:e.value=e.props.join(",")}return So(r=Wu(e.children,n))?e.return=e.value+"{"+r+"}":""}function IB(e){var t=J_(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function AB(e){return function(t){t.root||(t=t.return)&&e(t)}}var DB=function(t,r,n){for(var i=0,o=0;i=o,o=Mo(),i===38&&o===12&&(r[n]=1),!jd(o);)ni();return gp(t,jn)},LB=function(t,r){var n=-1,i=44;do switch(jd(i)){case 0:i===38&&Mo()===12&&(r[n]=1),t[n]+=DB(jn-1,r,n);break;case 2:t[n]+=Wv(i);break;case 4:if(i===44){t[++n]=Mo()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=tm(i)}while(i=ni());return t},OB=function(t,r){return aD(LB(oD(t),r))},m2=new WeakMap,NB=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!m2.get(n))&&!i){m2.set(t,!0);for(var o=[],a=OB(r,o),s=n.props,l=0,c=0;l<a.length;l++)for(var f=0;f<s.length;f++,c++)t.props[c]=o[l]?a[l].replace(/&\f/g,s[f]):s[f]+" "+a[l]}}},zB=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function sD(e,t){switch(xB(e,t)){case 5103:return Dt+"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 Dt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Dt+e+pg+e+Zr+e+e;case 6828:case 4268:return Dt+e+Zr+e+e;case 6165:return Dt+e+Zr+"flex-"+e+e;case 5187:return Dt+e+Lt(e,/(\w+).+(:[^]+)/,Dt+"box-$1$2"+Zr+"flex-$1$2")+e;case 5443:return Dt+e+Zr+"flex-item-"+Lt(e,/flex-|-self/,"")+e;case 4675:return Dt+e+Zr+"flex-line-pack"+Lt(e,/align-content|flex-|-self/,"")+e;case 5548:return Dt+e+Zr+Lt(e,"shrink","negative")+e;case 5292:return Dt+e+Zr+Lt(e,"basis","preferred-size")+e;case 6060:return Dt+"box-"+Lt(e,"-grow","")+Dt+e+Zr+Lt(e,"grow","positive")+e;case 4554:return Dt+Lt(e,/([^-])(transform)/g,"$1"+Dt+"$2")+e;case 6187:return Lt(Lt(Lt(e,/(zoom-|grab)/,Dt+"$1"),/(image-set)/,Dt+"$1"),e,"")+e;case 5495:case 3959:return Lt(e,/(image-set\([^]*)/,Dt+"$1$`$1");case 4968:return Lt(Lt(e,/(.+:)(flex-)?(.*)/,Dt+"box-pack:$3"+Zr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Dt+e+e;case 4095:case 3583:case 4068:case 2532:return Lt(e,/(.+)-inline(.+)/,Dt+"$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(So(e)-1-t>6)switch(jr(e,t+1)){case 109:if(jr(e,t+4)!==45)break;case 102:return Lt(e,/(.+:)(.+)-([^]+)/,"$1"+Dt+"$2-$3$1"+pg+(jr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~lb(e,"stretch")?sD(Lt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(jr(e,t+1)!==115)break;case 6444:switch(jr(e,So(e)-3-(~lb(e,"!important")&&10))){case 107:return Lt(e,":",":"+Dt)+e;case 101:return Lt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Dt+(jr(e,14)===45?"inline-":"")+"box$3$1"+Dt+"$2$3$1"+Zr+"$2box$3")+e}break;case 5936:switch(jr(e,t+11)){case 114:return Dt+e+Zr+Lt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Dt+e+Zr+Lt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Dt+e+Zr+Lt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Dt+e+Zr+e+e}return e}var $B=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case Z_:t.return=sD(t.value,t.length);break;case rD:return Wu([lf(t,{value:Lt(t.value,"@","@"+Dt)})],i);case Q_:if(t.length)return _B(t.props,function(o){switch(bB(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Wu([lf(t,{props:[Lt(o,/:(read-\w+)/,":"+pg+"$1")]})],i);case"::placeholder":return Wu([lf(t,{props:[Lt(o,/:(plac\w+)/,":"+Dt+"input-$1")]}),lf(t,{props:[Lt(o,/:(plac\w+)/,":"+pg+"$1")]}),lf(t,{props:[Lt(o,/:(plac\w+)/,Zr+"input-$1")]})],i)}return""})}},FB=[$B],BB=function(t){var r=t.key;if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(x){var y=x.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(x),x.setAttribute("data-s",""))})}var i=t.stylisPlugins||FB,o={},a,s=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(x){for(var y=x.getAttribute("data-emotion").split(" "),b=1;b<y.length;b++)o[y[b]]=!0;s.push(x)});var l,c=[NB,zB];{var f,p=[MB,AB(function(x){f.insert(x)})],v=IB(c.concat(i,p)),h=function(y){return Wu(EB(y),v)};l=function(y,b,S,_){f=S,h(y?y+"{"+b.styles+"}":b.styles),_&&(g.inserted[b.name]=!0)}}var g={key:r,sheet:new hB({key:r,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:o,registered:{},insert:l};return g.sheet.hydrate(s),g},t1={exports:{}},zt={};/** @license React v16.13.1
53
- * react-is.production.min.js
54
- *
55
- * Copyright (c) Facebook, Inc. and its affiliates.
56
- *
57
- * This source code is licensed under the MIT license found in the
58
- * LICENSE file in the root directory of this source tree.
59
- */var y2;function jB(){if(y2)return zt;y2=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,v=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,b=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function _(k){if(typeof k=="object"&&k!==null){var T=k.$$typeof;switch(T){case t:switch(k=k.type,k){case l:case c:case n:case o:case i:case p:return k;default:switch(k=k&&k.$$typeof,k){case s:case f:case g:case h:case a:return k;default:return T}}case r:return T}}}function C(k){return _(k)===c}return zt.AsyncMode=l,zt.ConcurrentMode=c,zt.ContextConsumer=s,zt.ContextProvider=a,zt.Element=t,zt.ForwardRef=f,zt.Fragment=n,zt.Lazy=g,zt.Memo=h,zt.Portal=r,zt.Profiler=o,zt.StrictMode=i,zt.Suspense=p,zt.isAsyncMode=function(k){return C(k)||_(k)===l},zt.isConcurrentMode=C,zt.isContextConsumer=function(k){return _(k)===s},zt.isContextProvider=function(k){return _(k)===a},zt.isElement=function(k){return typeof k=="object"&&k!==null&&k.$$typeof===t},zt.isForwardRef=function(k){return _(k)===f},zt.isFragment=function(k){return _(k)===n},zt.isLazy=function(k){return _(k)===g},zt.isMemo=function(k){return _(k)===h},zt.isPortal=function(k){return _(k)===r},zt.isProfiler=function(k){return _(k)===o},zt.isStrictMode=function(k){return _(k)===i},zt.isSuspense=function(k){return _(k)===p},zt.isValidElementType=function(k){return typeof k=="string"||typeof k=="function"||k===n||k===c||k===o||k===i||k===p||k===v||typeof k=="object"&&k!==null&&(k.$$typeof===g||k.$$typeof===h||k.$$typeof===a||k.$$typeof===s||k.$$typeof===f||k.$$typeof===y||k.$$typeof===b||k.$$typeof===S||k.$$typeof===x)},zt.typeOf=_,zt}var x2;function HB(){return x2||(x2=1,t1.exports=jB()),t1.exports}var r1,b2;function WB(){if(b2)return r1;b2=1;var e=HB(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};o[e.ForwardRef]=n,o[e.Memo]=i;function a(g){return e.isMemo(g)?i:o[g.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,v=Object.prototype;function h(g,x,y){if(typeof x!="string"){if(v){var b=p(x);b&&b!==v&&h(g,b,y)}var S=l(x);c&&(S=S.concat(c(x)));for(var _=a(g),C=a(x),k=0;k<S.length;++k){var T=S[k];if(!r[T]&&!(y&&y[T])&&!(C&&C[T])&&!(_&&_[T])){var E=f(x,T);try{s(g,T,E)}catch{}}}}return g}return r1=h,r1}WB();var VB=!0;function UB(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):n+=i+" "}),n}var lD=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||VB===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},uD=function(t,r,n){lD(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var o=r;do t.insert(r===o?"."+i:"",o,t.sheet,!0),o=o.next;while(o!==void 0)}};function GB(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&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 qB={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,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},YB=/[A-Z]|^ms/g,KB=/_EMO_([^_]+?)_([^]*?)_EMO_/g,cD=function(t){return t.charCodeAt(1)===45},_2=function(t){return t!=null&&typeof t!="boolean"},n1=eD(function(e){return cD(e)?e:e.replace(YB,"-$&").toLowerCase()}),S2=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(KB,function(n,i,o){return wo={name:i,styles:o,next:wo},i})}return qB[t]!==1&&!cD(t)&&typeof r=="number"&&r!==0?r+"px":r};function Hd(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0)return r;switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return wo={name:r.name,styles:r.styles,next:wo},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)wo={name:n.name,styles:n.styles,next:wo},n=n.next;var i=r.styles+";";return i}return XB(e,t,r)}case"function":{if(e!==void 0){var o=wo,a=r(e);return wo=o,Hd(e,t,a)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function XB(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Hd(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object")t!=null&&t[a]!==void 0?n+=o+"{"+t[a]+"}":_2(a)&&(n+=n1(o)+":"+S2(o,a)+";");else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var s=0;s<a.length;s++)_2(a[s])&&(n+=n1(o)+":"+S2(o,a[s])+";");else{var l=Hd(e,t,a);switch(o){case"animation":case"animationName":{n+=n1(o)+":"+l+";";break}default:n+=o+"{"+l+"}"}}}return n}var w2=/label:\s*([^\s;\n{]+)\s*(;|$)/g,wo,eS=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,o="";wo=void 0;var a=t[0];a==null||a.raw===void 0?(i=!1,o+=Hd(n,r,a)):o+=a[0];for(var s=1;s<t.length;s++)o+=Hd(n,r,t[s]),i&&(o+=a[s]);w2.lastIndex=0;for(var l="",c;(c=w2.exec(o))!==null;)l+="-"+c[1];var f=GB(o)+l;return{name:f,styles:o,next:wo}},QB=function(t){return t()},fD=Ad.useInsertionEffect?Ad.useInsertionEffect:!1,ZB=fD||QB,C2=fD||O.useLayoutEffect,dD=O.createContext(typeof HTMLElement<"u"?BB({key:"css"}):null);dD.Provider;var pD=function(t){return O.forwardRef(function(r,n){var i=O.useContext(dD);return t(r,i,n)})},im=O.createContext({}),JB=pD(function(e,t){var r=e.styles,n=eS([r],void 0,O.useContext(im)),i=O.useRef();return C2(function(){var o=t.key+"-global",a=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",o),a.hydrate([l])),i.current=[a,s],function(){a.flush()}},[t]),C2(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&uD(t,n.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});function e6(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return eS(t)}var tS=function(){var t=e6.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},t6=fB,r6=function(t){return t!=="theme"},T2=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?t6:r6},k2=function(t,r,n){var i;if(r){var o=r.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(a){return t.__emotion_forwardProp(a)&&o(a)}:o}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},n6=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return lD(r,n,i),ZB(function(){return uD(r,n,i)}),null},i6=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,o,a;r!==void 0&&(o=r.label,a=r.target);var s=k2(t,r,n),l=s||T2(i),c=!l("as");return function(){var f=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&p.push("label:"+o+";"),f[0]==null||f[0].raw===void 0)p.push.apply(p,f);else{p.push(f[0][0]);for(var v=f.length,h=1;h<v;h++)p.push(f[h],f[0][h])}var g=pD(function(x,y,b){var S=c&&x.as||i,_="",C=[],k=x;if(x.theme==null){k={};for(var T in x)k[T]=x[T];k.theme=O.useContext(im)}typeof x.className=="string"?_=UB(y.registered,C,x.className):x.className!=null&&(_=x.className+" ");var E=eS(p.concat(C),y.registered,k);_+=y.key+"-"+E.name,a!==void 0&&(_+=" "+a);var I=c&&s===void 0?T2(S):l,D={};for(var A in x)c&&A==="as"||I(A)&&(D[A]=x[A]);return D.className=_,D.ref=b,O.createElement(O.Fragment,null,O.createElement(n6,{cache:y,serialized:E,isStringTag:typeof S=="string"}),O.createElement(S,D))});return g.displayName=o!==void 0?o:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",g.defaultProps=t.defaultProps,g.__emotion_real=g,g.__emotion_base=i,g.__emotion_styles=p,g.__emotion_forwardProp=s,Object.defineProperty(g,"toString",{value:function(){return"."+a}}),g.withComponent=function(x,y){return e(x,z({},r,y,{shouldForwardProp:k2(g,y,!0)})).apply(void 0,p)},g}},o6=["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"],cb=i6.bind();o6.forEach(function(e){cb[e]=cb(e)});function a6(e){return e==null||Object.keys(e).length===0}function s6(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?i=>t(a6(i)?r:i):t;return M.jsx(JB,{styles:n})}function hD(e,t){return cb(e,t)}const l6=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},u6=["values","unit","step"],c6=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>z({},r,{[n.key]:n.val}),{})};function f6(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=Re(e,u6),o=c6(t),a=Object.keys(o);function s(v){return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${r})`}function l(v){return`@media (max-width:${(typeof t[v]=="number"?t[v]:v)-n/100}${r})`}function c(v,h){const g=a.indexOf(h);return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${r}) and (max-width:${(g!==-1&&typeof t[a[g]]=="number"?t[a[g]]:h)-n/100}${r})`}function f(v){return a.indexOf(v)+1<a.length?c(v,a[a.indexOf(v)+1]):s(v)}function p(v){const h=a.indexOf(v);return h===0?s(a[1]):h===a.length-1?l(a[h]):c(v,a[a.indexOf(v)+1]).replace("@media","@media not all and")}return z({keys:a,values:o,up:s,down:l,between:c,only:f,not:p,unit:r},i)}const d6={borderRadius:4};function ld(e,t){return t?On(e,t,{clone:!1}):e}const rS={xs:0,sm:600,md:900,lg:1200,xl:1536},R2={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${rS[e]}px)`};function eo(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const o=n.breakpoints||R2;return t.reduce((a,s,l)=>(a[o.up(o.keys[l])]=r(t[l]),a),{})}if(typeof t=="object"){const o=n.breakpoints||R2;return Object.keys(t).reduce((a,s)=>{if(Object.keys(o.values||rS).indexOf(s)!==-1){const l=o.up(s);a[l]=r(t[s],s)}else{const l=s;a[l]=t[l]}return a},{})}return r(t)}function vD(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const o=e.up(i);return n[o]={},n},{}))||{}}function gD(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function p6(e,...t){const r=vD(e),n=[r,...t].reduce((i,o)=>On(i,o),{});return gD(Object.keys(r),n)}function h6(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((i,o)=>{o<e.length&&(r[i]=!0)}):n.forEach(i=>{e[i]!=null&&(r[i]=!0)}),r}function i1({values:e,breakpoints:t,base:r}){const n=r||h6(e,t),i=Object.keys(n);if(i.length===0)return e;let o;return i.reduce((a,s,l)=>(Array.isArray(e)?(a[s]=e[l]!=null?e[l]:e[o],o=l):typeof e=="object"?(a[s]=e[s]!=null?e[s]:e[o],o=s):a[s]=e,a),{})}function ic(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function hg(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=ic(e,r)||n,t&&(i=t(i,n,e)),i}function Ht(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,o=a=>{if(a[t]==null)return null;const s=a[t],l=a.theme,c=ic(l,n)||{};return eo(a,s,p=>{let v=hg(c,i,p);return p===v&&typeof p=="string"&&(v=hg(c,i,`${t}${p==="default"?"":ce(p)}`,p)),r===!1?v:{[r]:v}})};return o.propTypes={},o.filterProps=[t],o}function v6(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const g6={m:"margin",p:"padding"},m6={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},E2={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},y6=v6(e=>{if(e.length>2)if(E2[e])e=E2[e];else return[e];const[t,r]=e.split(""),n=g6[t],i=m6[r]||"";return Array.isArray(i)?i.map(o=>n+o):[n+i]}),nS=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],iS=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...nS,...iS];function mp(e,t,r,n){var i;const o=(i=ic(e,t,!1))!=null?i:r;return typeof o=="number"?a=>typeof a=="string"?a:o*a:Array.isArray(o)?a=>typeof a=="string"?a:o[a]:typeof o=="function"?o:()=>{}}function oS(e){return mp(e,"spacing",8)}function Ml(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function x6(e,t){return r=>e.reduce((n,i)=>(n[i]=Ml(t,r),n),{})}function b6(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=y6(r),o=x6(i,n),a=e[r];return eo(e,a,o)}function mD(e,t){const r=oS(e.theme);return Object.keys(e).map(n=>b6(e,t,n,r)).reduce(ld,{})}function gr(e){return mD(e,nS)}gr.propTypes={};gr.filterProps=nS;function mr(e){return mD(e,iS)}mr.propTypes={};mr.filterProps=iS;function _6(e=8){if(e.mui)return e;const t=oS({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(o=>{const a=t(o);return typeof a=="number"?`${a}px`:a}).join(" ");return r.mui=!0,r}function om(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(o=>{n[o]=i}),n),{}),r=n=>Object.keys(n).reduce((i,o)=>t[o]?ld(i,t[o](n)):i,{});return r.propTypes={},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function Co(e){return typeof e!="number"?e:`${e}px solid`}const S6=Ht({prop:"border",themeKey:"borders",transform:Co}),w6=Ht({prop:"borderTop",themeKey:"borders",transform:Co}),C6=Ht({prop:"borderRight",themeKey:"borders",transform:Co}),T6=Ht({prop:"borderBottom",themeKey:"borders",transform:Co}),k6=Ht({prop:"borderLeft",themeKey:"borders",transform:Co}),R6=Ht({prop:"borderColor",themeKey:"palette"}),E6=Ht({prop:"borderTopColor",themeKey:"palette"}),P6=Ht({prop:"borderRightColor",themeKey:"palette"}),M6=Ht({prop:"borderBottomColor",themeKey:"palette"}),I6=Ht({prop:"borderLeftColor",themeKey:"palette"}),am=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=mp(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Ml(t,n)});return eo(e,e.borderRadius,r)}return null};am.propTypes={};am.filterProps=["borderRadius"];om(S6,w6,C6,T6,k6,R6,E6,P6,M6,I6,am);const sm=e=>{if(e.gap!==void 0&&e.gap!==null){const t=mp(e.theme,"spacing",8),r=n=>({gap:Ml(t,n)});return eo(e,e.gap,r)}return null};sm.propTypes={};sm.filterProps=["gap"];const lm=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=mp(e.theme,"spacing",8),r=n=>({columnGap:Ml(t,n)});return eo(e,e.columnGap,r)}return null};lm.propTypes={};lm.filterProps=["columnGap"];const um=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=mp(e.theme,"spacing",8),r=n=>({rowGap:Ml(t,n)});return eo(e,e.rowGap,r)}return null};um.propTypes={};um.filterProps=["rowGap"];const A6=Ht({prop:"gridColumn"}),D6=Ht({prop:"gridRow"}),L6=Ht({prop:"gridAutoFlow"}),O6=Ht({prop:"gridAutoColumns"}),N6=Ht({prop:"gridAutoRows"}),z6=Ht({prop:"gridTemplateColumns"}),$6=Ht({prop:"gridTemplateRows"}),F6=Ht({prop:"gridTemplateAreas"}),B6=Ht({prop:"gridArea"});om(sm,lm,um,A6,D6,L6,O6,N6,z6,$6,F6,B6);function Vu(e,t){return t==="grey"?t:e}const j6=Ht({prop:"color",themeKey:"palette",transform:Vu}),H6=Ht({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Vu}),W6=Ht({prop:"backgroundColor",themeKey:"palette",transform:Vu});om(j6,H6,W6);function ti(e){return e<=1&&e!==0?`${e*100}%`:e}const V6=Ht({prop:"width",transform:ti}),aS=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,i;const o=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||rS[r];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:ti(r)}};return eo(e,e.maxWidth,t)}return null};aS.filterProps=["maxWidth"];const U6=Ht({prop:"minWidth",transform:ti}),G6=Ht({prop:"height",transform:ti}),q6=Ht({prop:"maxHeight",transform:ti}),Y6=Ht({prop:"minHeight",transform:ti});Ht({prop:"size",cssProperty:"width",transform:ti});Ht({prop:"size",cssProperty:"height",transform:ti});const K6=Ht({prop:"boxSizing"});om(V6,aS,U6,G6,q6,Y6,K6);const cm={border:{themeKey:"borders",transform:Co},borderTop:{themeKey:"borders",transform:Co},borderRight:{themeKey:"borders",transform:Co},borderBottom:{themeKey:"borders",transform:Co},borderLeft:{themeKey:"borders",transform:Co},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:am},color:{themeKey:"palette",transform:Vu},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Vu},backgroundColor:{themeKey:"palette",transform:Vu},p:{style:mr},pt:{style:mr},pr:{style:mr},pb:{style:mr},pl:{style:mr},px:{style:mr},py:{style:mr},padding:{style:mr},paddingTop:{style:mr},paddingRight:{style:mr},paddingBottom:{style:mr},paddingLeft:{style:mr},paddingX:{style:mr},paddingY:{style:mr},paddingInline:{style:mr},paddingInlineStart:{style:mr},paddingInlineEnd:{style:mr},paddingBlock:{style:mr},paddingBlockStart:{style:mr},paddingBlockEnd:{style:mr},m:{style:gr},mt:{style:gr},mr:{style:gr},mb:{style:gr},ml:{style:gr},mx:{style:gr},my:{style:gr},margin:{style:gr},marginTop:{style:gr},marginRight:{style:gr},marginBottom:{style:gr},marginLeft:{style:gr},marginX:{style:gr},marginY:{style:gr},marginInline:{style:gr},marginInlineStart:{style:gr},marginInlineEnd:{style:gr},marginBlock:{style:gr},marginBlockStart:{style:gr},marginBlockEnd:{style:gr},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:sm},rowGap:{style:um},columnGap:{style:lm},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ti},maxWidth:{style:aS},minWidth:{transform:ti},height:{transform:ti},maxHeight:{transform:ti},minHeight:{transform:ti},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function X6(...e){const t=e.reduce((n,i)=>n.concat(Object.keys(i)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function Q6(e,t){return typeof e=="function"?e(t):e}function Z6(){function e(r,n,i,o){const a={[r]:n,theme:i},s=o[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:c,transform:f,style:p}=s;if(n==null)return null;if(c==="typography"&&n==="inherit")return{[r]:n};const v=ic(i,c)||{};return p?p(a):eo(a,n,g=>{let x=hg(v,f,g);return g===x&&typeof g=="string"&&(x=hg(v,f,`${r}${g==="default"?"":ce(g)}`,g)),l===!1?x:{[l]:x}})}function t(r){var n;const{sx:i,theme:o={}}=r||{};if(!i)return null;const a=(n=o.unstable_sxConfig)!=null?n:cm;function s(l){let c=l;if(typeof l=="function")c=l(o);else if(typeof l!="object")return l;if(!c)return null;const f=vD(o.breakpoints),p=Object.keys(f);let v=f;return Object.keys(c).forEach(h=>{const g=Q6(c[h],o);if(g!=null)if(typeof g=="object")if(a[h])v=ld(v,e(h,g,o,a));else{const x=eo({theme:o},g,y=>({[h]:y}));X6(x,g)?v[h]=t({sx:g,theme:o}):v=ld(v,x)}else v=ld(v,e(h,g,o,a))}),gD(p,v)}return Array.isArray(i)?i.map(s):s(i)}return t}const yp=Z6();yp.filterProps=["sx"];const J6=["breakpoints","palette","spacing","shape"];function xp(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:o={}}=e,a=Re(e,J6),s=f6(r),l=_6(i);let c=On({breakpoints:s,direction:"ltr",components:{},palette:z({mode:"light"},n),spacing:l,shape:z({},d6,o)},a);return c=t.reduce((f,p)=>On(f,p),c),c.unstable_sxConfig=z({},cm,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(p){return yp({sx:p,theme:this})},c}function ej(e){return Object.keys(e).length===0}function sS(e=null){const t=O.useContext(im);return!t||ej(t)?e:t}const tj=xp();function fm(e=tj){return sS(e)}function rj({styles:e,themeId:t,defaultTheme:r={}}){const n=fm(r),i=typeof e=="function"?e(t&&n[t]||n):e;return M.jsx(s6,{styles:i})}const nj=["sx"],ij=e=>{var t,r;const n={systemProps:{},otherProps:{}},i=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:cm;return Object.keys(e).forEach(o=>{i[o]?n.systemProps[o]=e[o]:n.otherProps[o]=e[o]}),n};function lS(e){const{sx:t}=e,r=Re(e,nj),{systemProps:n,otherProps:i}=ij(r);let o;return Array.isArray(t)?o=[n,...t]:typeof t=="function"?o=(...a)=>{const s=t(...a);return pl(s)?z({},n,s):n}:o=z({},n,t),z({},i,{sx:o})}function yD(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=yD(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Se(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=yD(e))&&(n&&(n+=" "),n+=t);return n}const oj=["className","component"];function aj(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:i}=e,o=hD("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(yp);return O.forwardRef(function(l,c){const f=fm(r),p=lS(l),{className:v,component:h="div"}=p,g=Re(p,oj);return M.jsx(o,z({as:h,ref:c,className:Se(v,i?i(n):n),theme:t&&f[t]||f},g))})}const sj=["variant"];function P2(e){return e.length===0}function xD(e){const{variant:t}=e,r=Re(e,sj);let n=t||"";return Object.keys(r).sort().forEach(i=>{i==="color"?n+=P2(n)?e[i]:ce(e[i]):n+=`${P2(n)?i:ce(i)}${ce(e[i].toString())}`}),n}const lj=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function uj(e){return Object.keys(e).length===0}function cj(e){return typeof e=="string"&&e.charCodeAt(0)>96}const fj=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,dj=(e,t)=>{let r=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(r=t.components[e].variants);const n={};return r.forEach(i=>{const o=xD(i.props);n[o]=i.style}),n},pj=(e,t,r,n)=>{var i;const{ownerState:o={}}=e,a=[],s=r==null||(i=r.components)==null||(i=i[n])==null?void 0:i.variants;return s&&s.forEach(l=>{let c=!0;Object.keys(l.props).forEach(f=>{o[f]!==l.props[f]&&e[f]!==l.props[f]&&(c=!1)}),c&&a.push(t[xD(l.props)])}),a};function ud(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const hj=xp(),vj=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function uf({defaultTheme:e,theme:t,themeId:r}){return uj(t)?e:t[r]||t}function gj(e){return e?(t,r)=>r[e]:null}function bD(e={}){const{themeId:t,defaultTheme:r=hj,rootShouldForwardProp:n=ud,slotShouldForwardProp:i=ud}=e,o=a=>yp(z({},a,{theme:uf(z({},a,{defaultTheme:r,themeId:t}))}));return o.__mui_systemSx=!0,(a,s={})=>{l6(a,C=>C.filter(k=>!(k!=null&&k.__mui_systemSx)));const{name:l,slot:c,skipVariantsResolver:f,skipSx:p,overridesResolver:v=gj(vj(c))}=s,h=Re(s,lj),g=f!==void 0?f:c&&c!=="Root"&&c!=="root"||!1,x=p||!1;let y,b=ud;c==="Root"||c==="root"?b=n:c?b=i:cj(a)&&(b=void 0);const S=hD(a,z({shouldForwardProp:b,label:y},h)),_=(C,...k)=>{const T=k?k.map(A=>typeof A=="function"&&A.__emotion_real!==A?L=>A(z({},L,{theme:uf(z({},L,{defaultTheme:r,themeId:t}))})):A):[];let E=C;l&&v&&T.push(A=>{const L=uf(z({},A,{defaultTheme:r,themeId:t})),$=fj(l,L);if($){const B={};return Object.entries($).forEach(([j,W])=>{B[j]=typeof W=="function"?W(z({},A,{theme:L})):W}),v(A,B)}return null}),l&&!g&&T.push(A=>{const L=uf(z({},A,{defaultTheme:r,themeId:t}));return pj(A,dj(l,L),L,l)}),x||T.push(o);const I=T.length-k.length;if(Array.isArray(C)&&I>0){const A=new Array(I).fill("");E=[...C,...A],E.raw=[...C.raw,...A]}else typeof C=="function"&&C.__emotion_real!==C&&(E=A=>C(z({},A,{theme:uf(z({},A,{defaultTheme:r,themeId:t}))})));const D=S(E,...T);return a.muiName&&(D.muiName=a.muiName),D};return S.withConfig&&(_.withConfig=S.withConfig),_}}const _D=bD();function mj(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:K_(t.components[r].defaultProps,n)}function uS({props:e,name:t,defaultTheme:r,themeId:n}){let i=fm(r);return n&&(i=i[n]||i),mj({theme:i,name:t,props:e})}function cS(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function yj(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,i)=>i<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function Il(e){if(e.type)return e;if(e.charAt(0)==="#")return Il(yj(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(hs(9,e));let n=e.substring(t+1,e.length-1),i;if(r==="color"){if(n=n.split(" "),i=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(hs(10,i))}else n=n.split(",");return n=n.map(o=>parseFloat(o)),{type:r,values:n,colorSpace:i}}function dm(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function xj(e){e=Il(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,o=n*Math.min(i,1-i),a=(c,f=(c+r/30)%12)=>i-o*Math.max(Math.min(f-3,9-f,1),-1);let s="rgb";const l=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),dm({type:s,values:l})}function M2(e){e=Il(e);let t=e.type==="hsl"||e.type==="hsla"?Il(xj(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function bj(e,t){const r=M2(e),n=M2(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function St(e,t){return e=Il(e),t=cS(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,dm(e)}function Wd(e,t){if(e=Il(e),t=cS(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return dm(e)}function Vd(e,t){if(e=Il(e),t=cS(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return dm(e)}const SD=O.createContext(null);function wD(){return O.useContext(SD)}const _j=typeof Symbol=="function"&&Symbol.for,Sj=_j?Symbol.for("mui.nested"):"__THEME_NESTED__";function wj(e,t){return typeof t=="function"?t(e):z({},e,t)}function Cj(e){const{children:t,theme:r}=e,n=wD(),i=O.useMemo(()=>{const o=n===null?r:wj(n,r);return o!=null&&(o[Sj]=n!==null),o},[r,n]);return M.jsx(SD.Provider,{value:i,children:t})}const I2={};function A2(e,t,r,n=!1){return O.useMemo(()=>{const i=e&&t[e]||t;if(typeof r=="function"){const o=r(i),a=e?z({},t,{[e]:o}):o;return n?()=>a:a}return e?z({},t,{[e]:r}):z({},t,r)},[e,t,r,n])}function Tj(e){const{children:t,theme:r,themeId:n}=e,i=sS(I2),o=wD()||I2,a=A2(n,i,r),s=A2(n,o,r,!0);return M.jsx(Cj,{theme:s,children:M.jsx(im.Provider,{value:a,children:t})})}const kj=["className","component","disableGutters","fixed","maxWidth","classes"],Rj=xp(),Ej=_D("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${ce(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),Pj=e=>uS({props:e,name:"MuiContainer",defaultTheme:Rj}),Mj=(e,t)=>{const r=l=>Ye(t,l),{classes:n,fixed:i,disableGutters:o,maxWidth:a}=e,s={root:["root",a&&`maxWidth${ce(String(a))}`,i&&"fixed",o&&"disableGutters"]};return Ke(s,r,n)};function Ij(e={}){const{createStyledComponent:t=Ej,useThemeProps:r=Pj,componentName:n="MuiContainer"}=e,i=t(({theme:a,ownerState:s})=>z({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}),({theme:a,ownerState:s})=>s.fixed&&Object.keys(a.breakpoints.values).reduce((l,c)=>{const f=c,p=a.breakpoints.values[f];return p!==0&&(l[a.breakpoints.up(f)]={maxWidth:`${p}${a.breakpoints.unit}`}),l},{}),({theme:a,ownerState:s})=>z({},s.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[a.breakpoints.up(s.maxWidth)]:{maxWidth:`${a.breakpoints.values[s.maxWidth]}${a.breakpoints.unit}`}}));return O.forwardRef(function(s,l){const c=r(s),{className:f,component:p="div",disableGutters:v=!1,fixed:h=!1,maxWidth:g="lg"}=c,x=Re(c,kj),y=z({},c,{component:p,disableGutters:v,fixed:h,maxWidth:g}),b=Mj(y,n);return M.jsx(i,z({as:p,ownerState:y,className:Se(b.root,f),ref:l},x))})}const Aj=["component","direction","spacing","divider","children","className","useFlexGap"],Dj=xp(),Lj=_D("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Oj(e){return uS({props:e,name:"MuiStack",defaultTheme:Dj})}function Nj(e,t){const r=O.Children.toArray(e).filter(Boolean);return r.reduce((n,i,o)=>(n.push(i),o<r.length-1&&n.push(O.cloneElement(t,{key:`separator-${o}`})),n),[])}const zj=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],$j=({ownerState:e,theme:t})=>{let r=z({display:"flex",flexDirection:"column"},eo({theme:t},i1({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=oS(t),i=Object.keys(t.breakpoints.values).reduce((l,c)=>((typeof e.spacing=="object"&&e.spacing[c]!=null||typeof e.direction=="object"&&e.direction[c]!=null)&&(l[c]=!0),l),{}),o=i1({values:e.direction,base:i}),a=i1({values:e.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((l,c,f)=>{if(!o[l]){const v=c>0?o[f[c-1]]:"column";o[l]=v}}),r=On(r,eo({theme:t},a,(l,c)=>e.useFlexGap?{gap:Ml(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${zj(c?o[c]:e.direction)}`]:Ml(n,l)}}))}return r=p6(t.breakpoints,r),r};function Fj(e={}){const{createStyledComponent:t=Lj,useThemeProps:r=Oj,componentName:n="MuiStack"}=e,i=()=>Ke({root:["root"]},l=>Ye(n,l),{}),o=t($j);return O.forwardRef(function(l,c){const f=r(l),p=lS(f),{component:v="div",direction:h="column",spacing:g=0,divider:x,children:y,className:b,useFlexGap:S=!1}=p,_=Re(p,Aj),C={direction:h,spacing:g,useFlexGap:S},k=i();return M.jsx(o,z({as:v,ownerState:C,ref:c,className:Se(k.root,b)},_,{children:x?Nj(y,x):y}))})}function Bj(e,t){return z({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const jj=["mode","contrastThreshold","tonalOffset"],D2={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:$d.white,default:$d.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}},o1={text:{primary:$d.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:$d.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}};function L2(e,t,r,n){const i=n.light||n,o=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Vd(e.main,i):t==="dark"&&(e.dark=Wd(e.main,o)))}function Hj(e="light"){return e==="dark"?{main:ul[200],light:ul[50],dark:ul[400]}:{main:ul[700],light:ul[400],dark:ul[800]}}function Wj(e="light"){return e==="dark"?{main:lu[200],light:lu[50],dark:lu[400]}:{main:lu[500],light:lu[300],dark:lu[700]}}function Vj(e="light"){return e==="dark"?{main:ns[500],light:ns[300],dark:ns[700]}:{main:ns[700],light:ns[400],dark:ns[800]}}function Uj(e="light"){return e==="dark"?{main:uu[400],light:uu[300],dark:uu[700]}:{main:uu[700],light:uu[500],dark:uu[900]}}function Gj(e="light"){return e==="dark"?{main:cu[400],light:cu[300],dark:cu[700]}:{main:cu[800],light:cu[500],dark:cu[900]}}function qj(e="light"){return e==="dark"?{main:sf[400],light:sf[300],dark:sf[700]}:{main:"#ed6c02",light:sf[500],dark:sf[900]}}function Yj(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=Re(e,jj),o=e.primary||Hj(t),a=e.secondary||Wj(t),s=e.error||Vj(t),l=e.info||Uj(t),c=e.success||Gj(t),f=e.warning||qj(t);function p(x){return bj(x,o1.text.primary)>=r?o1.text.primary:D2.text.primary}const v=({color:x,name:y,mainShade:b=500,lightShade:S=300,darkShade:_=700})=>{if(x=z({},x),!x.main&&x[b]&&(x.main=x[b]),!x.hasOwnProperty("main"))throw new Error(hs(11,y?` (${y})`:"",b));if(typeof x.main!="string")throw new Error(hs(12,y?` (${y})`:"",JSON.stringify(x.main)));return L2(x,"light",S,n),L2(x,"dark",_,n),x.contrastText||(x.contrastText=p(x.main)),x},h={dark:o1,light:D2};return On(z({common:z({},$d),mode:t,primary:v({color:o,name:"primary"}),secondary:v({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:s,name:"error"}),warning:v({color:f,name:"warning"}),info:v({color:l,name:"info"}),success:v({color:c,name:"success"}),grey:KF,contrastThreshold:r,getContrastText:p,augmentColor:v,tonalOffset:n},h[t]),i)}const Kj=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Xj(e){return Math.round(e*1e5)/1e5}const O2={textTransform:"uppercase"},N2='"Roboto", "Helvetica", "Arial", sans-serif';function Qj(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=N2,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:c=16,allVariants:f,pxToRem:p}=r,v=Re(r,Kj),h=i/14,g=p||(b=>`${b/c*h}rem`),x=(b,S,_,C,k)=>z({fontFamily:n,fontWeight:b,fontSize:g(S),lineHeight:_},n===N2?{letterSpacing:`${Xj(C/S)}em`}:{},k,f),y={h1:x(o,96,1.167,-1.5),h2:x(o,60,1.2,-.5),h3:x(a,48,1.167,0),h4:x(a,34,1.235,.25),h5:x(a,24,1.334,0),h6:x(s,20,1.6,.15),subtitle1:x(a,16,1.75,.15),subtitle2:x(s,14,1.57,.1),body1:x(a,16,1.5,.15),body2:x(a,14,1.43,.15),button:x(s,14,1.75,.4,O2),caption:x(a,12,1.66,.4),overline:x(a,12,2.66,1,O2),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return On(z({htmlFontSize:c,pxToRem:g,fontFamily:n,fontSize:i,fontWeightLight:o,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:l},y),v,{clone:!1})}const Zj=.2,Jj=.14,eH=.12;function sr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Zj})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Jj})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${eH})`].join(",")}const tH=["none",sr(0,2,1,-1,0,1,1,0,0,1,3,0),sr(0,3,1,-2,0,2,2,0,0,1,5,0),sr(0,3,3,-2,0,3,4,0,0,1,8,0),sr(0,2,4,-1,0,4,5,0,0,1,10,0),sr(0,3,5,-1,0,5,8,0,0,1,14,0),sr(0,3,5,-1,0,6,10,0,0,1,18,0),sr(0,4,5,-2,0,7,10,1,0,2,16,1),sr(0,5,5,-3,0,8,10,1,0,3,14,2),sr(0,5,6,-3,0,9,12,1,0,3,16,2),sr(0,6,6,-3,0,10,14,1,0,4,18,3),sr(0,6,7,-4,0,11,15,1,0,4,20,3),sr(0,7,8,-4,0,12,17,2,0,5,22,4),sr(0,7,8,-4,0,13,19,2,0,5,24,4),sr(0,7,9,-4,0,14,21,2,0,5,26,4),sr(0,8,9,-5,0,15,22,2,0,6,28,5),sr(0,8,10,-5,0,16,24,2,0,6,30,5),sr(0,8,11,-5,0,17,26,2,0,6,32,5),sr(0,9,11,-5,0,18,28,2,0,7,34,6),sr(0,9,12,-6,0,19,29,2,0,7,36,6),sr(0,10,13,-6,0,20,31,3,0,8,38,7),sr(0,10,13,-6,0,21,33,3,0,8,40,7),sr(0,10,14,-6,0,22,35,3,0,8,42,7),sr(0,11,14,-7,0,23,36,3,0,9,44,8),sr(0,11,15,-7,0,24,38,3,0,9,46,8)],rH=["duration","easing","delay"],nH={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)"},CD={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function z2(e){return`${Math.round(e)}ms`}function iH(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function oH(e){const t=z({},nH,e.easing),r=z({},CD,e.duration);return z({getAutoHeightDuration:iH,create:(i=["all"],o={})=>{const{duration:a=r.standard,easing:s=t.easeInOut,delay:l=0}=o;return Re(o,rH),(Array.isArray(i)?i:[i]).map(c=>`${c} ${typeof a=="string"?a:z2(a)} ${s} ${typeof l=="string"?l:z2(l)}`).join(",")}},e,{easing:t,duration:r})}const aH={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},sH=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function fS(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:o={}}=e,a=Re(e,sH);if(e.vars)throw new Error(hs(18));const s=Yj(n),l=xp(e);let c=On(l,{mixins:Bj(l.breakpoints,r),palette:s,shadows:tH.slice(),typography:Qj(s,o),transitions:oH(i),zIndex:z({},aH)});return c=On(c,a),c=t.reduce((f,p)=>On(f,p),c),c.unstable_sxConfig=z({},cm,a==null?void 0:a.unstable_sxConfig),c.unstable_sx=function(p){return yp({sx:p,theme:this})},c}const pm=fS();function Ho(){const e=fm(pm);return e[Pl]||e}function Qe({props:e,name:t}){return uS({props:e,name:t,defaultTheme:pm,themeId:Pl})}const no=e=>ud(e)&&e!=="classes",lH=ud,fe=bD({themeId:Pl,defaultTheme:pm,rootShouldForwardProp:no}),uH=["theme"];function TD(e){let{theme:t}=e,r=Re(e,uH);const n=t[Pl];return M.jsx(Tj,z({},r,{themeId:n?Pl:void 0,theme:n||t}))}const $2=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function cH(e){return Ye("MuiSvgIcon",e)}Xe("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const fH=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],dH=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${ce(t)}`,`fontSize${ce(r)}`]};return Ke(i,cH,n)},pH=fe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${ce(r.color)}`],t[`fontSize${ce(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,i,o,a,s,l,c,f,p,v,h,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(a=o.pxToRem)==null?void 0:a.call(o,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((c=e.typography)==null||(f=c.pxToRem)==null?void 0:f.call(c,35))||"2.1875rem"}[t.fontSize],color:(p=(v=(e.vars||e).palette)==null||(v=v[t.color])==null?void 0:v.main)!=null?p:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.disabled,inherit:void 0}[t.color]}}),fb=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:a="inherit",component:s="svg",fontSize:l="medium",htmlColor:c,inheritViewBox:f=!1,titleAccess:p,viewBox:v="0 0 24 24"}=n,h=Re(n,fH),g=O.isValidElement(i)&&i.type==="svg",x=z({},n,{color:a,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:v,hasSvgAsChild:g}),y={};f||(y.viewBox=v);const b=dH(x);return M.jsxs(pH,z({as:s,className:Se(b.root,o),focusable:"false",color:c,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:r},y,h,g&&i.props,{ownerState:x,children:[g?i.props.children:i,p?M.jsx("title",{children:p}):null]}))});fb.muiName="SvgIcon";function xn(e,t){function r(n,i){return M.jsx(fb,z({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return r.muiName=fb.muiName,O.memo(O.forwardRef(r))}const hH={configure:e=>{X_.configure(e)}},vH=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ce,createChainedFunction:ab,createSvgIcon:xn,debounce:hc,deprecatedPropType:XF,isMuiElement:sd,ownerDocument:Ur,ownerWindow:Ai,requirePropFactory:QF,setRef:Fd,unstable_ClassNameGenerator:hH,unstable_useEnhancedEffect:Ji,unstable_useId:Zg,unsupportedProp:JF,useControlled:da,useEventCallback:gn,useForkRef:cr,useIsFocusVisible:em},Symbol.toStringTag,{value:"Module"}));var a1={exports:{}},$t={};/**
60
- * @license React
61
- * react-is.production.min.js
62
- *
63
- * Copyright (c) Facebook, Inc. and its affiliates.
64
- *
65
- * This source code is licensed under the MIT license found in the
66
- * LICENSE file in the root directory of this source tree.
67
- */var F2;function gH(){if(F2)return $t;F2=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),g;g=Symbol.for("react.module.reference");function x(y){if(typeof y=="object"&&y!==null){var b=y.$$typeof;switch(b){case e:switch(y=y.type,y){case r:case i:case n:case c:case f:return y;default:switch(y=y&&y.$$typeof,y){case s:case a:case l:case v:case p:case o:return y;default:return b}}case t:return b}}}return $t.ContextConsumer=a,$t.ContextProvider=o,$t.Element=e,$t.ForwardRef=l,$t.Fragment=r,$t.Lazy=v,$t.Memo=p,$t.Portal=t,$t.Profiler=i,$t.StrictMode=n,$t.Suspense=c,$t.SuspenseList=f,$t.isAsyncMode=function(){return!1},$t.isConcurrentMode=function(){return!1},$t.isContextConsumer=function(y){return x(y)===a},$t.isContextProvider=function(y){return x(y)===o},$t.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},$t.isForwardRef=function(y){return x(y)===l},$t.isFragment=function(y){return x(y)===r},$t.isLazy=function(y){return x(y)===v},$t.isMemo=function(y){return x(y)===p},$t.isPortal=function(y){return x(y)===t},$t.isProfiler=function(y){return x(y)===i},$t.isStrictMode=function(y){return x(y)===n},$t.isSuspense=function(y){return x(y)===c},$t.isSuspenseList=function(y){return x(y)===f},$t.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===i||y===n||y===c||y===f||y===h||typeof y=="object"&&y!==null&&(y.$$typeof===v||y.$$typeof===p||y.$$typeof===o||y.$$typeof===a||y.$$typeof===l||y.$$typeof===g||y.getModuleId!==void 0)},$t.typeOf=x,$t}var B2;function mH(){return B2||(B2=1,a1.exports=gH()),a1.exports}mH();function db(e,t){return db=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},db(e,t)}function kD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,db(e,t)}var dS=xA();const Wh=si(dS),j2={disabled:!1},vg=Ki.createContext(null);var yH=function(t){return t.scrollTop},Yf="unmounted",cl="exited",fl="entering",Au="entered",pb="exiting",Oi=function(e){kD(t,e);function t(n,i){var o;o=e.call(this,n,i)||this;var a=i,s=a&&!a.isMounting?n.enter:n.appear,l;return o.appearStatus=null,n.in?s?(l=cl,o.appearStatus=fl):l=Au:n.unmountOnExit||n.mountOnEnter?l=Yf:l=cl,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var a=i.in;return a&&o.status===Yf?{status:cl}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var o=null;if(i!==this.props){var a=this.state.status;this.props.in?a!==fl&&a!==Au&&(o=fl):(a===fl||a===Au)&&(o=pb)}this.updateStatus(!1,o)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,o,a,s;return o=a=s=i,i!=null&&typeof i!="number"&&(o=i.exit,a=i.enter,s=i.appear!==void 0?i.appear:a),{exit:o,enter:a,appear:s}},r.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===fl){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:Wh.findDOMNode(this);a&&yH(a)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===cl&&this.setState({status:Yf})},r.performEnter=function(i){var o=this,a=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[Wh.findDOMNode(this),s],c=l[0],f=l[1],p=this.getTimeouts(),v=s?p.appear:p.enter;if(!i&&!a||j2.disabled){this.safeSetState({status:Au},function(){o.props.onEntered(c)});return}this.props.onEnter(c,f),this.safeSetState({status:fl},function(){o.props.onEntering(c,f),o.onTransitionEnd(v,function(){o.safeSetState({status:Au},function(){o.props.onEntered(c,f)})})})},r.performExit=function(){var i=this,o=this.props.exit,a=this.getTimeouts(),s=this.props.nodeRef?void 0:Wh.findDOMNode(this);if(!o||j2.disabled){this.safeSetState({status:cl},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:pb},function(){i.props.onExiting(s),i.onTransitionEnd(a.exit,function(){i.safeSetState({status:cl},function(){i.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},r.setNextCallback=function(i){var o=this,a=!0;return this.nextCallback=function(s){a&&(a=!1,o.nextCallback=null,i(s))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},r.onTransitionEnd=function(i,o){this.setNextCallback(o);var a=this.props.nodeRef?this.props.nodeRef.current:Wh.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!a||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],c=l[0],f=l[1];this.props.addEndListener(c,f)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===Yf)return null;var o=this.props,a=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var s=Re(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ki.createElement(vg.Provider,{value:null},typeof a=="function"?a(i,s):Ki.cloneElement(Ki.Children.only(a),s))},t}(Ki.Component);Oi.contextType=vg;Oi.propTypes={};function du(){}Oi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:du,onEntering:du,onEntered:du,onExit:du,onExiting:du,onExited:du};Oi.UNMOUNTED=Yf;Oi.EXITED=cl;Oi.ENTERING=fl;Oi.ENTERED=Au;Oi.EXITING=pb;function xH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pS(e,t){var r=function(o){return t&&O.isValidElement(o)?t(o):o},n=Object.create(null);return e&&O.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function bH(e,t){e=e||{},t=t||{};function r(f){return f in t?t[f]:e[f]}var n=Object.create(null),i=[];for(var o in e)o in t?i.length&&(n[o]=i,i=[]):i.push(o);var a,s={};for(var l in t){if(n[l])for(a=0;a<n[l].length;a++){var c=n[l][a];s[n[l][a]]=r(c)}s[l]=r(l)}for(a=0;a<i.length;a++)s[i[a]]=r(i[a]);return s}function gl(e,t,r){return r[t]!=null?r[t]:e.props[t]}function _H(e,t){return pS(e.children,function(r){return O.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:gl(r,"appear",e),enter:gl(r,"enter",e),exit:gl(r,"exit",e)})})}function SH(e,t,r){var n=pS(e.children),i=bH(t,n);return Object.keys(i).forEach(function(o){var a=i[o];if(O.isValidElement(a)){var s=o in t,l=o in n,c=t[o],f=O.isValidElement(c)&&!c.props.in;l&&(!s||f)?i[o]=O.cloneElement(a,{onExited:r.bind(null,a),in:!0,exit:gl(a,"exit",e),enter:gl(a,"enter",e)}):!l&&s&&!f?i[o]=O.cloneElement(a,{in:!1}):l&&s&&O.isValidElement(c)&&(i[o]=O.cloneElement(a,{onExited:r.bind(null,a),in:c.props.in,exit:gl(a,"exit",e),enter:gl(a,"enter",e)}))}}),i}var wH=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},CH={component:"div",childFactory:function(t){return t}},hS=function(e){kD(t,e);function t(n,i){var o;o=e.call(this,n,i)||this;var a=o.handleExited.bind(xH(o));return o.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},o}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,o){var a=o.children,s=o.handleExited,l=o.firstRender;return{children:l?_H(i,s):SH(i,a,s),firstRender:!1}},r.handleExited=function(i,o){var a=pS(this.props.children);i.key in a||(i.props.onExited&&i.props.onExited(o),this.mounted&&this.setState(function(s){var l=z({},s.children);return delete l[i.key],{children:l}}))},r.render=function(){var i=this.props,o=i.component,a=i.childFactory,s=Re(i,["component","childFactory"]),l=this.state.contextValue,c=wH(this.state.children).map(a);return delete s.appear,delete s.enter,delete s.exit,o===null?Ki.createElement(vg.Provider,{value:l},c):Ki.createElement(vg.Provider,{value:l},Ki.createElement(o,s,c))},t}(Ki.Component);hS.propTypes={};hS.defaultProps=CH;const vS=e=>e.scrollTop;function vs(e,t){var r,n;const{timeout:i,easing:o,style:a={}}=e;return{duration:(r=a.transitionDuration)!=null?r:typeof i=="number"?i:i[t.mode]||0,easing:(n=a.transitionTimingFunction)!=null?n:typeof o=="object"?o[t.mode]:o,delay:a.transitionDelay}}function TH(e){return Ye("MuiCollapse",e)}Xe("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const kH=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],RH=e=>{const{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Ke(n,TH,r)},EH=fe("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.orientation],r.state==="entered"&&t.entered,r.state==="exited"&&!r.in&&r.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>z({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&z({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),PH=fe("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>z({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),MH=fe("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>z({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),RD=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:a,collapsedSize:s="0px",component:l,easing:c,in:f,onEnter:p,onEntered:v,onEntering:h,onExit:g,onExited:x,onExiting:y,orientation:b="vertical",style:S,timeout:_=CD.standard,TransitionComponent:C=Oi}=n,k=Re(n,kH),T=z({},n,{orientation:b,collapsedSize:s}),E=RH(T),I=Ho(),D=O.useRef(),A=O.useRef(null),L=O.useRef(),$=typeof s=="number"?`${s}px`:s,B=b==="horizontal",j=B?"width":"height";O.useEffect(()=>()=>{clearTimeout(D.current)},[]);const W=O.useRef(null),q=cr(r,W),Z=te=>ge=>{if(te){const de=W.current;ge===void 0?te(de):te(de,ge)}},V=()=>A.current?A.current[B?"clientWidth":"clientHeight"]:0,G=Z((te,ge)=>{A.current&&B&&(A.current.style.position="absolute"),te.style[j]=$,p&&p(te,ge)}),N=Z((te,ge)=>{const de=V();A.current&&B&&(A.current.style.position="");const{duration:xe,easing:Me}=vs({style:S,timeout:_,easing:c},{mode:"enter"});if(_==="auto"){const ue=I.transitions.getAutoHeightDuration(de);te.style.transitionDuration=`${ue}ms`,L.current=ue}else te.style.transitionDuration=typeof xe=="string"?xe:`${xe}ms`;te.style[j]=`${de}px`,te.style.transitionTimingFunction=Me,h&&h(te,ge)}),U=Z((te,ge)=>{te.style[j]="auto",v&&v(te,ge)}),Q=Z(te=>{te.style[j]=`${V()}px`,g&&g(te)}),H=Z(x),oe=Z(te=>{const ge=V(),{duration:de,easing:xe}=vs({style:S,timeout:_,easing:c},{mode:"exit"});if(_==="auto"){const Me=I.transitions.getAutoHeightDuration(ge);te.style.transitionDuration=`${Me}ms`,L.current=Me}else te.style.transitionDuration=typeof de=="string"?de:`${de}ms`;te.style[j]=$,te.style.transitionTimingFunction=xe,y&&y(te)}),ve=te=>{_==="auto"&&(D.current=setTimeout(te,L.current||0)),i&&i(W.current,te)};return M.jsx(C,z({in:f,onEnter:G,onEntered:U,onEntering:N,onExit:Q,onExited:H,onExiting:oe,addEndListener:ve,nodeRef:W,timeout:_==="auto"?null:_},k,{children:(te,ge)=>M.jsx(EH,z({as:l,className:Se(E.root,a,{entered:E.entered,exited:!f&&$==="0px"&&E.hidden}[te]),style:z({[B?"minWidth":"minHeight"]:$},S),ownerState:z({},T,{state:te}),ref:q},ge,{children:M.jsx(PH,{ownerState:z({},T,{state:te}),className:E.wrapper,ref:A,children:M.jsx(MH,{ownerState:z({},T,{state:te}),className:E.wrapperInner,children:o})})}))}))});RD.muiSupportAuto=!0;function IH(e){return Ye("MuiPaper",e)}Xe("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"]);const AH=["className","component","elevation","square","variant"],DH=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,o={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return Ke(o,IH,i)},LH=fe("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return z({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&z({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${St("#fff",$2(t.elevation))}, ${St("#fff",$2(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),io=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:a=1,square:s=!1,variant:l="elevation"}=n,c=Re(n,AH),f=z({},n,{component:o,elevation:a,square:s,variant:l}),p=DH(f);return M.jsx(LH,z({as:o,ownerState:f,className:Se(p.root,i),ref:r},c))}),ED=O.createContext({});function OH(e){return Ye("MuiAccordion",e)}const Vh=Xe("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),NH=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],zH=e=>{const{classes:t,square:r,expanded:n,disabled:i,disableGutters:o}=e;return Ke({root:["root",!r&&"rounded",n&&"expanded",i&&"disabled",!o&&"gutters"],region:["region"]},OH,t)},$H=fe(io,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Vh.region}`]:t.region},t.root,!r.square&&t.rounded,!r.disableGutters&&t.gutters]}})(({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${Vh.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${Vh.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>z({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${Vh.expanded}`]:{margin:"16px 0"}})),gS=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiAccordion"}),{children:i,className:o,defaultExpanded:a=!1,disabled:s=!1,disableGutters:l=!1,expanded:c,onChange:f,square:p=!1,TransitionComponent:v=RD,TransitionProps:h}=n,g=Re(n,NH),[x,y]=da({controlled:c,default:a,name:"Accordion",state:"expanded"}),b=O.useCallback(E=>{y(!x),f&&f(E,!x)},[x,f,y]),[S,..._]=O.Children.toArray(i),C=O.useMemo(()=>({expanded:x,disabled:s,disableGutters:l,toggle:b}),[x,s,l,b]),k=z({},n,{square:p,disabled:s,disableGutters:l,expanded:x}),T=zH(k);return M.jsxs($H,z({className:Se(T.root,o),ref:r,ownerState:k,square:p},g,{children:[M.jsx(ED.Provider,{value:C,children:S}),M.jsx(v,z({in:x,timeout:"auto"},h,{children:M.jsx("div",{"aria-labelledby":S.props.id,id:S.props["aria-controls"],role:"region",className:T.region,children:_})}))]}))});function FH(e){return Ye("MuiAccordionDetails",e)}Xe("MuiAccordionDetails",["root"]);const BH=["className"],jH=e=>{const{classes:t}=e;return Ke({root:["root"]},FH,t)},HH=fe("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),mS=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiAccordionDetails"}),{className:i}=n,o=Re(n,BH),a=n,s=jH(a);return M.jsx(HH,z({className:Se(s.root,i),ref:r,ownerState:a},o))});function WH(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:o,rippleSize:a,in:s,onExited:l,timeout:c}=e,[f,p]=O.useState(!1),v=Se(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:a,height:a,top:-(a/2)+o,left:-(a/2)+i},g=Se(r.child,f&&r.childLeaving,n&&r.childPulsate);return!s&&!f&&p(!0),O.useEffect(()=>{if(!s&&l!=null){const x=setTimeout(l,c);return()=>{clearTimeout(x)}}},[l,s,c]),M.jsx("span",{className:v,style:h,children:M.jsx("span",{className:g})})}const wi=Xe("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),VH=["center","classes","className"];let hm=e=>e,H2,W2,V2,U2;const hb=550,UH=80,GH=tS(H2||(H2=hm`
68
- 0% {
69
- transform: scale(0);
70
- opacity: 0.1;
71
- }
72
-
73
- 100% {
74
- transform: scale(1);
75
- opacity: 0.3;
76
- }
77
- `)),qH=tS(W2||(W2=hm`
78
- 0% {
79
- opacity: 1;
80
- }
81
-
82
- 100% {
83
- opacity: 0;
84
- }
85
- `)),YH=tS(V2||(V2=hm`
86
- 0% {
87
- transform: scale(1);
88
- }
89
-
90
- 50% {
91
- transform: scale(0.92);
92
- }
93
-
94
- 100% {
95
- transform: scale(1);
96
- }
97
- `)),KH=fe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),XH=fe(WH,{name:"MuiTouchRipple",slot:"Ripple"})(U2||(U2=hm`
98
- opacity: 0;
99
- position: absolute;
100
-
101
- &.${0} {
102
- opacity: 0.3;
103
- transform: scale(1);
104
- animation-name: ${0};
105
- animation-duration: ${0}ms;
106
- animation-timing-function: ${0};
107
- }
108
-
109
- &.${0} {
110
- animation-duration: ${0}ms;
111
- }
112
-
113
- & .${0} {
114
- opacity: 1;
115
- display: block;
116
- width: 100%;
117
- height: 100%;
118
- border-radius: 50%;
119
- background-color: currentColor;
120
- }
121
-
122
- & .${0} {
123
- opacity: 0;
124
- animation-name: ${0};
125
- animation-duration: ${0}ms;
126
- animation-timing-function: ${0};
127
- }
128
-
129
- & .${0} {
130
- position: absolute;
131
- /* @noflip */
132
- left: 0px;
133
- top: 0;
134
- animation-name: ${0};
135
- animation-duration: 2500ms;
136
- animation-timing-function: ${0};
137
- animation-iteration-count: infinite;
138
- animation-delay: 200ms;
139
- }
140
- `),wi.rippleVisible,GH,hb,({theme:e})=>e.transitions.easing.easeInOut,wi.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,wi.child,wi.childLeaving,qH,hb,({theme:e})=>e.transitions.easing.easeInOut,wi.childPulsate,YH,({theme:e})=>e.transitions.easing.easeInOut),QH=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:a}=n,s=Re(n,VH),[l,c]=O.useState([]),f=O.useRef(0),p=O.useRef(null);O.useEffect(()=>{p.current&&(p.current(),p.current=null)},[l]);const v=O.useRef(!1),h=O.useRef(0),g=O.useRef(null),x=O.useRef(null);O.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const y=O.useCallback(C=>{const{pulsate:k,rippleX:T,rippleY:E,rippleSize:I,cb:D}=C;c(A=>[...A,M.jsx(XH,{classes:{ripple:Se(o.ripple,wi.ripple),rippleVisible:Se(o.rippleVisible,wi.rippleVisible),ripplePulsate:Se(o.ripplePulsate,wi.ripplePulsate),child:Se(o.child,wi.child),childLeaving:Se(o.childLeaving,wi.childLeaving),childPulsate:Se(o.childPulsate,wi.childPulsate)},timeout:hb,pulsate:k,rippleX:T,rippleY:E,rippleSize:I},f.current)]),f.current+=1,p.current=D},[o]),b=O.useCallback((C={},k={},T=()=>{})=>{const{pulsate:E=!1,center:I=i||k.pulsate,fakeElement:D=!1}=k;if((C==null?void 0:C.type)==="mousedown"&&v.current){v.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(v.current=!0);const A=D?null:x.current,L=A?A.getBoundingClientRect():{width:0,height:0,left:0,top:0};let $,B,j;if(I||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)$=Math.round(L.width/2),B=Math.round(L.height/2);else{const{clientX:W,clientY:q}=C.touches&&C.touches.length>0?C.touches[0]:C;$=Math.round(W-L.left),B=Math.round(q-L.top)}if(I)j=Math.sqrt((2*L.width**2+L.height**2)/3),j%2===0&&(j+=1);else{const W=Math.max(Math.abs((A?A.clientWidth:0)-$),$)*2+2,q=Math.max(Math.abs((A?A.clientHeight:0)-B),B)*2+2;j=Math.sqrt(W**2+q**2)}C!=null&&C.touches?g.current===null&&(g.current=()=>{y({pulsate:E,rippleX:$,rippleY:B,rippleSize:j,cb:T})},h.current=setTimeout(()=>{g.current&&(g.current(),g.current=null)},UH)):y({pulsate:E,rippleX:$,rippleY:B,rippleSize:j,cb:T})},[i,y]),S=O.useCallback(()=>{b({},{pulsate:!0})},[b]),_=O.useCallback((C,k)=>{if(clearTimeout(h.current),(C==null?void 0:C.type)==="touchend"&&g.current){g.current(),g.current=null,h.current=setTimeout(()=>{_(C,k)});return}g.current=null,c(T=>T.length>0?T.slice(1):T),p.current=k},[]);return O.useImperativeHandle(r,()=>({pulsate:S,start:b,stop:_}),[S,b,_]),M.jsx(KH,z({className:Se(wi.root,o.root,a),ref:x},s,{children:M.jsx(hS,{component:null,exit:!0,children:l})}))});function ZH(e){return Ye("MuiButtonBase",e)}const JH=Xe("MuiButtonBase",["root","disabled","focusVisible"]),e9=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],t9=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,a=Ke({root:["root",t&&"disabled",r&&"focusVisible"]},ZH,i);return r&&n&&(a.root+=` ${n}`),a},r9=fe("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${JH.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ma=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:a,className:s,component:l="button",disabled:c=!1,disableRipple:f=!1,disableTouchRipple:p=!1,focusRipple:v=!1,LinkComponent:h="a",onBlur:g,onClick:x,onContextMenu:y,onDragLeave:b,onFocus:S,onFocusVisible:_,onKeyDown:C,onKeyUp:k,onMouseDown:T,onMouseLeave:E,onMouseUp:I,onTouchEnd:D,onTouchMove:A,onTouchStart:L,tabIndex:$=0,TouchRippleProps:B,touchRippleRef:j,type:W}=n,q=Re(n,e9),Z=O.useRef(null),V=O.useRef(null),G=cr(V,j),{isFocusVisibleRef:N,onFocus:U,onBlur:Q,ref:H}=em(),[oe,ve]=O.useState(!1);c&&oe&&ve(!1),O.useImperativeHandle(i,()=>({focusVisible:()=>{ve(!0),Z.current.focus()}}),[]);const[te,ge]=O.useState(!1);O.useEffect(()=>{ge(!0)},[]);const de=te&&!f&&!c;O.useEffect(()=>{oe&&v&&!f&&te&&V.current.pulsate()},[f,v,oe,te]);function xe(pe,je,ht=p){return gn(De=>(je&&je(De),!ht&&V.current&&V.current[pe](De),!0))}const Me=xe("start",T),ue=xe("stop",y),Te=xe("stop",b),Oe=xe("stop",I),Ae=xe("stop",pe=>{oe&&pe.preventDefault(),E&&E(pe)}),we=xe("start",L),Mt=xe("stop",D),We=xe("stop",A),dt=xe("stop",pe=>{Q(pe),N.current===!1&&ve(!1),g&&g(pe)},!1),bt=gn(pe=>{Z.current||(Z.current=pe.currentTarget),U(pe),N.current===!0&&(ve(!0),_&&_(pe)),S&&S(pe)}),st=()=>{const pe=Z.current;return l&&l!=="button"&&!(pe.tagName==="A"&&pe.href)},et=O.useRef(!1),_t=gn(pe=>{v&&!et.current&&oe&&V.current&&pe.key===" "&&(et.current=!0,V.current.stop(pe,()=>{V.current.start(pe)})),pe.target===pe.currentTarget&&st()&&pe.key===" "&&pe.preventDefault(),C&&C(pe),pe.target===pe.currentTarget&&st()&&pe.key==="Enter"&&!c&&(pe.preventDefault(),x&&x(pe))}),Tt=gn(pe=>{v&&pe.key===" "&&V.current&&oe&&!pe.defaultPrevented&&(et.current=!1,V.current.stop(pe,()=>{V.current.pulsate(pe)})),k&&k(pe),x&&pe.target===pe.currentTarget&&st()&&pe.key===" "&&!pe.defaultPrevented&&x(pe)});let lt=l;lt==="button"&&(q.href||q.to)&&(lt=h);const Nt={};lt==="button"?(Nt.type=W===void 0?"button":W,Nt.disabled=c):(!q.href&&!q.to&&(Nt.role="button"),c&&(Nt["aria-disabled"]=c));const ne=cr(r,H,Z),le=z({},n,{centerRipple:o,component:l,disabled:c,disableRipple:f,disableTouchRipple:p,focusRipple:v,tabIndex:$,focusVisible:oe}),he=t9(le);return M.jsxs(r9,z({as:lt,className:Se(he.root,s),ownerState:le,onBlur:dt,onClick:x,onContextMenu:ue,onFocus:bt,onKeyDown:_t,onKeyUp:Tt,onMouseDown:Me,onMouseLeave:Ae,onMouseUp:Oe,onDragLeave:Te,onTouchEnd:Mt,onTouchMove:We,onTouchStart:we,ref:ne,tabIndex:c?-1:$,type:W},Nt,q,{children:[a,de?M.jsx(QH,z({ref:G,center:o},B)):null]}))});function n9(e){return Ye("MuiAccordionSummary",e)}const zu=Xe("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),i9=["children","className","expandIcon","focusVisibleClassName","onClick"],o9=e=>{const{classes:t,expanded:r,disabled:n,disableGutters:i}=e;return Ke({root:["root",r&&"expanded",n&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]},n9,t)},a9=fe(ma,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={duration:e.transitions.duration.shortest};return z({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],r),[`&.${zu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${zu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${zu.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${zu.expanded}`]:{minHeight:64}})}),s9=fe("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>z({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${zu.expanded}`]:{margin:"20px 0"}})),l9=fe("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})(({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${zu.expanded}`]:{transform:"rotate(180deg)"}})),yS=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiAccordionSummary"}),{children:i,className:o,expandIcon:a,focusVisibleClassName:s,onClick:l}=n,c=Re(n,i9),{disabled:f=!1,disableGutters:p,expanded:v,toggle:h}=O.useContext(ED),g=b=>{h&&h(b),l&&l(b)},x=z({},n,{expanded:v,disabled:f,disableGutters:p}),y=o9(x);return M.jsxs(a9,z({focusRipple:!1,disableRipple:!0,disabled:f,component:"div","aria-expanded":v,className:Se(y.root,o),focusVisibleClassName:Se(y.focusVisible,s),onClick:g,ref:r,ownerState:x},c,{children:[M.jsx(s9,{className:y.content,ownerState:x,children:i}),a&&M.jsx(l9,{className:y.expandIconWrapper,ownerState:x,children:a})]}))});function u9(e){return Ye("MuiAlert",e)}const G2=Xe("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function c9(e){return Ye("MuiIconButton",e)}const f9=Xe("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),d9=["edge","children","className","color","disabled","disableFocusRipple","size"],p9=e=>{const{classes:t,disabled:r,color:n,edge:i,size:o}=e,a={root:["root",r&&"disabled",n!=="default"&&`color${ce(n)}`,i&&`edge${ce(i)}`,`size${ce(o)}`]};return Ke(a,c9,t)},h9=fe(ma,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${ce(r.color)}`],r.edge&&t[`edge${ce(r.edge)}`],t[`size${ce(r.size)}`]]}})(({theme:e,ownerState:t})=>z({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:St(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return z({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&z({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":z({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:St(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${f9.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Sa=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:a,color:s="default",disabled:l=!1,disableFocusRipple:c=!1,size:f="medium"}=n,p=Re(n,d9),v=z({},n,{edge:i,color:s,disabled:l,disableFocusRipple:c,size:f}),h=p9(v);return M.jsx(h9,z({className:Se(h.root,a),centerRipple:!0,focusRipple:!c,disabled:l,ref:r,ownerState:v},p,{children:o}))}),v9=xn(M.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"),g9=xn(M.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),m9=xn(M.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"),y9=xn(M.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"),PD=xn(M.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"),x9=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],b9=e=>{const{variant:t,color:r,severity:n,classes:i}=e,o={root:["root",`${t}${ce(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return Ke(o,u9,i)},_9=fe(io,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ce(r.color||r.severity)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?Wd:Vd,n=e.palette.mode==="light"?Vd:Wd,i=t.color||t.severity;return z({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},i&&t.variant==="standard"&&{color:e.vars?e.vars.palette.Alert[`${i}Color`]:r(e.palette[i].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${i}StandardBg`]:n(e.palette[i].light,.9),[`& .${G2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}},i&&t.variant==="outlined"&&{color:e.vars?e.vars.palette.Alert[`${i}Color`]:r(e.palette[i].light,.6),border:`1px solid ${(e.vars||e).palette[i].light}`,[`& .${G2.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}},i&&t.variant==="filled"&&z({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)}))}),S9=fe("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),w9=fe("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),q2=fe("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Y2={success:M.jsx(v9,{fontSize:"inherit"}),warning:M.jsx(g9,{fontSize:"inherit"}),error:M.jsx(m9,{fontSize:"inherit"}),info:M.jsx(y9,{fontSize:"inherit"})},ua=O.forwardRef(function(t,r){var n,i,o,a,s,l;const c=Qe({props:t,name:"MuiAlert"}),{action:f,children:p,className:v,closeText:h="Close",color:g,components:x={},componentsProps:y={},icon:b,iconMapping:S=Y2,onClose:_,role:C="alert",severity:k="success",slotProps:T={},slots:E={},variant:I="standard"}=c,D=Re(c,x9),A=z({},c,{color:g,severity:k,variant:I}),L=b9(A),$=(n=(i=E.closeButton)!=null?i:x.CloseButton)!=null?n:Sa,B=(o=(a=E.closeIcon)!=null?a:x.CloseIcon)!=null?o:PD,j=(s=T.closeButton)!=null?s:y.closeButton,W=(l=T.closeIcon)!=null?l:y.closeIcon;return M.jsxs(_9,z({role:C,elevation:0,ownerState:A,className:Se(L.root,v),ref:r},D,{children:[b!==!1?M.jsx(S9,{ownerState:A,className:L.icon,children:b||S[k]||Y2[k]}):null,M.jsx(w9,{ownerState:A,className:L.message,children:p}),f!=null?M.jsx(q2,{ownerState:A,className:L.action,children:f}):null,f==null&&_?M.jsx(q2,{ownerState:A,className:L.action,children:M.jsx($,z({size:"small","aria-label":h,title:h,color:"inherit",onClick:_},j,{children:M.jsx(B,z({fontSize:"small"},W))}))}):null]}))});function C9(e){return Ye("MuiTypography",e)}Xe("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const T9=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],k9=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:o,classes:a}=e,s={root:["root",o,e.align!=="inherit"&&`align${ce(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return Ke(s,C9,a)},R9=fe("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${ce(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>z({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),K2={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},E9={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},P9=e=>E9[e]||e,gt=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTypography"}),i=P9(n.color),o=lS(z({},n,{color:i})),{align:a="inherit",className:s,component:l,gutterBottom:c=!1,noWrap:f=!1,paragraph:p=!1,variant:v="body1",variantMapping:h=K2}=o,g=Re(o,T9),x=z({},o,{align:a,color:i,className:s,component:l,gutterBottom:c,noWrap:f,paragraph:p,variant:v,variantMapping:h}),y=l||(p?"p":h[v]||K2[v])||"span",b=k9(x);return M.jsx(R9,z({as:y,ref:r,ownerState:x,className:Se(b.root,s)},g))});function M9(e){return Ye("MuiAppBar",e)}Xe("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const I9=["className","color","enableColorOnDark","position"],A9=e=>{const{color:t,position:r,classes:n}=e,i={root:["root",`color${ce(t)}`,`position${ce(r)}`]};return Ke(i,M9,n)},Uh=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,D9=fe(io,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ce(r.position)}`],t[`color${ce(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return z({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&z({},t.color==="default"&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&z({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&z({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Uh(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Uh(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Uh(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Uh(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),L9=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:a=!1,position:s="fixed"}=n,l=Re(n,I9),c=z({},n,{color:o,position:s,enableColorOnDark:a}),f=A9(c);return M.jsx(D9,z({square:!0,component:"header",ownerState:c,elevation:4,className:Se(f.root,i,s==="fixed"&&"mui-fixed"),ref:r},l))});function oc(e){return typeof e=="string"}function Kf(e,t,r){return e===void 0||oc(e)?t:z({},t,{ownerState:z({},t.ownerState,r)})}const O9={disableDefaultClasses:!1},N9=O.createContext(O9);function z9(e){const{disableDefaultClasses:t}=O.useContext(N9);return r=>t?"":e(r)}function MD(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function $9(e,t,r){return typeof e=="function"?e(t,r):e}function X2(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function F9(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:o}=e;if(!t){const h=Se(i==null?void 0:i.className,n==null?void 0:n.className,o,r==null?void 0:r.className),g=z({},r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),x=z({},r,i,n);return h.length>0&&(x.className=h),Object.keys(g).length>0&&(x.style=g),{props:x,internalRef:void 0}}const a=MD(z({},i,n)),s=X2(n),l=X2(i),c=t(a),f=Se(c==null?void 0:c.className,r==null?void 0:r.className,o,i==null?void 0:i.className,n==null?void 0:n.className),p=z({},c==null?void 0:c.style,r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),v=z({},c,r,l,s);return f.length>0&&(v.className=f),Object.keys(p).length>0&&(v.style=p),{props:v,internalRef:c.ref}}const B9=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function to(e){var t;const{elementType:r,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:o=!1}=e,a=Re(e,B9),s=o?{}:$9(n,i),{props:l,internalRef:c}=F9(z({},a,{externalSlotProps:s})),f=cr(c,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Kf(r,z({},l,{ref:f}),i)}const j9=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function H9(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 W9(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function V9(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||W9(e))}function U9(e){const t=[],r=[];return Array.from(e.querySelectorAll(j9)).forEach((n,i)=>{const o=H9(n);o===-1||!V9(n)||(o===0?t.push(n):r.push({documentOrder:i,tabIndex:o,node:n}))}),r.sort((n,i)=>n.tabIndex===i.tabIndex?n.documentOrder-i.documentOrder:n.tabIndex-i.tabIndex).map(n=>n.node).concat(t)}function G9(){return!0}function q9(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:o=U9,isEnabled:a=G9,open:s}=e,l=O.useRef(!1),c=O.useRef(null),f=O.useRef(null),p=O.useRef(null),v=O.useRef(null),h=O.useRef(!1),g=O.useRef(null),x=cr(t.ref,g),y=O.useRef(null);O.useEffect(()=>{!s||!g.current||(h.current=!r)},[r,s]),O.useEffect(()=>{if(!s||!g.current)return;const _=Ur(g.current);return g.current.contains(_.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),h.current&&g.current.focus()),()=>{i||(p.current&&p.current.focus&&(l.current=!0,p.current.focus()),p.current=null)}},[s]),O.useEffect(()=>{if(!s||!g.current)return;const _=Ur(g.current),C=E=>{y.current=E,!(n||!a()||E.key!=="Tab")&&_.activeElement===g.current&&E.shiftKey&&(l.current=!0,f.current&&f.current.focus())},k=()=>{const E=g.current;if(E===null)return;if(!_.hasFocus()||!a()||l.current){l.current=!1;return}if(E.contains(_.activeElement)||n&&_.activeElement!==c.current&&_.activeElement!==f.current)return;if(_.activeElement!==v.current)v.current=null;else if(v.current!==null)return;if(!h.current)return;let I=[];if((_.activeElement===c.current||_.activeElement===f.current)&&(I=o(g.current)),I.length>0){var D,A;const L=!!((D=y.current)!=null&&D.shiftKey&&((A=y.current)==null?void 0:A.key)==="Tab"),$=I[0],B=I[I.length-1];typeof $!="string"&&typeof B!="string"&&(L?B.focus():$.focus())}else E.focus()};_.addEventListener("focusin",k),_.addEventListener("keydown",C,!0);const T=setInterval(()=>{_.activeElement&&_.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(T),_.removeEventListener("focusin",k),_.removeEventListener("keydown",C,!0)}},[r,n,i,a,s,o]);const b=_=>{p.current===null&&(p.current=_.relatedTarget),h.current=!0,v.current=_.target;const C=t.props.onFocus;C&&C(_)},S=_=>{p.current===null&&(p.current=_.relatedTarget),h.current=!0};return M.jsxs(O.Fragment,{children:[M.jsx("div",{tabIndex:s?0:-1,onFocus:S,ref:c,"data-testid":"sentinelStart"}),O.cloneElement(t,{ref:x,onFocus:b}),M.jsx("div",{tabIndex:s?0:-1,onFocus:S,ref:f,"data-testid":"sentinelEnd"})]})}var Nn="top",Di="bottom",Li="right",zn="left",xS="auto",bp=[Nn,Di,Li,zn],ac="start",Ud="end",Y9="clippingParents",ID="viewport",cf="popper",K9="reference",Q2=bp.reduce(function(e,t){return e.concat([t+"-"+ac,t+"-"+Ud])},[]),AD=[].concat(bp,[xS]).reduce(function(e,t){return e.concat([t,t+"-"+ac,t+"-"+Ud])},[]),X9="beforeRead",Q9="read",Z9="afterRead",J9="beforeMain",e8="main",t8="afterMain",r8="beforeWrite",n8="write",i8="afterWrite",o8=[X9,Q9,Z9,J9,e8,t8,r8,n8,i8];function $o(e){return e?(e.nodeName||"").toLowerCase():null}function ai(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Al(e){var t=ai(e).Element;return e instanceof t||e instanceof Element}function Mi(e){var t=ai(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function bS(e){if(typeof ShadowRoot>"u")return!1;var t=ai(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function a8(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},o=t.elements[r];!Mi(o)||!$o(o)||(Object.assign(o.style,n),Object.keys(i).forEach(function(a){var s=i[a];s===!1?o.removeAttribute(a):o.setAttribute(a,s===!0?"":s)}))})}function s8(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],o=t.attributes[n]||{},a=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=a.reduce(function(l,c){return l[c]="",l},{});!Mi(i)||!$o(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const l8={name:"applyStyles",enabled:!0,phase:"write",fn:a8,effect:s8,requires:["computeStyles"]};function Io(e){return e.split("-")[0]}var _l=Math.max,gg=Math.min,sc=Math.round;function vb(){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 DD(){return!/^((?!chrome|android).)*safari/i.test(vb())}function lc(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,o=1;t&&Mi(e)&&(i=e.offsetWidth>0&&sc(n.width)/e.offsetWidth||1,o=e.offsetHeight>0&&sc(n.height)/e.offsetHeight||1);var a=Al(e)?ai(e):window,s=a.visualViewport,l=!DD()&&r,c=(n.left+(l&&s?s.offsetLeft:0))/i,f=(n.top+(l&&s?s.offsetTop:0))/o,p=n.width/i,v=n.height/o;return{width:p,height:v,top:f,right:c+p,bottom:f+v,left:c,x:c,y:f}}function _S(e){var t=lc(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function LD(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&bS(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function ya(e){return ai(e).getComputedStyle(e)}function u8(e){return["table","td","th"].indexOf($o(e))>=0}function _s(e){return((Al(e)?e.ownerDocument:e.document)||window.document).documentElement}function vm(e){return $o(e)==="html"?e:e.assignedSlot||e.parentNode||(bS(e)?e.host:null)||_s(e)}function Z2(e){return!Mi(e)||ya(e).position==="fixed"?null:e.offsetParent}function c8(e){var t=/firefox/i.test(vb()),r=/Trident/i.test(vb());if(r&&Mi(e)){var n=ya(e);if(n.position==="fixed")return null}var i=vm(e);for(bS(i)&&(i=i.host);Mi(i)&&["html","body"].indexOf($o(i))<0;){var o=ya(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function _p(e){for(var t=ai(e),r=Z2(e);r&&u8(r)&&ya(r).position==="static";)r=Z2(r);return r&&($o(r)==="html"||$o(r)==="body"&&ya(r).position==="static")?t:r||c8(e)||t}function SS(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function cd(e,t,r){return _l(e,gg(t,r))}function f8(e,t,r){var n=cd(e,t,r);return n>r?r:n}function OD(){return{top:0,right:0,bottom:0,left:0}}function ND(e){return Object.assign({},OD(),e)}function zD(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var d8=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,ND(typeof t!="number"?t:zD(t,bp))};function p8(e){var t,r=e.state,n=e.name,i=e.options,o=r.elements.arrow,a=r.modifiersData.popperOffsets,s=Io(r.placement),l=SS(s),c=[zn,Li].indexOf(s)>=0,f=c?"height":"width";if(!(!o||!a)){var p=d8(i.padding,r),v=_S(o),h=l==="y"?Nn:zn,g=l==="y"?Di:Li,x=r.rects.reference[f]+r.rects.reference[l]-a[l]-r.rects.popper[f],y=a[l]-r.rects.reference[l],b=_p(o),S=b?l==="y"?b.clientHeight||0:b.clientWidth||0:0,_=x/2-y/2,C=p[h],k=S-v[f]-p[g],T=S/2-v[f]/2+_,E=cd(C,T,k),I=l;r.modifiersData[n]=(t={},t[I]=E,t.centerOffset=E-T,t)}}function h8(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||LD(t.elements.popper,i)&&(t.elements.arrow=i))}const v8={name:"arrow",enabled:!0,phase:"main",fn:p8,effect:h8,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function uc(e){return e.split("-")[1]}var g8={top:"auto",right:"auto",bottom:"auto",left:"auto"};function m8(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:sc(r*i)/i||0,y:sc(n*i)/i||0}}function J2(e){var t,r=e.popper,n=e.popperRect,i=e.placement,o=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,f=e.roundOffsets,p=e.isFixed,v=a.x,h=v===void 0?0:v,g=a.y,x=g===void 0?0:g,y=typeof f=="function"?f({x:h,y:x}):{x:h,y:x};h=y.x,x=y.y;var b=a.hasOwnProperty("x"),S=a.hasOwnProperty("y"),_=zn,C=Nn,k=window;if(c){var T=_p(r),E="clientHeight",I="clientWidth";if(T===ai(r)&&(T=_s(r),ya(T).position!=="static"&&s==="absolute"&&(E="scrollHeight",I="scrollWidth")),T=T,i===Nn||(i===zn||i===Li)&&o===Ud){C=Di;var D=p&&T===k&&k.visualViewport?k.visualViewport.height:T[E];x-=D-n.height,x*=l?1:-1}if(i===zn||(i===Nn||i===Di)&&o===Ud){_=Li;var A=p&&T===k&&k.visualViewport?k.visualViewport.width:T[I];h-=A-n.width,h*=l?1:-1}}var L=Object.assign({position:s},c&&g8),$=f===!0?m8({x:h,y:x},ai(r)):{x:h,y:x};if(h=$.x,x=$.y,l){var B;return Object.assign({},L,(B={},B[C]=S?"0":"",B[_]=b?"0":"",B.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+x+"px)":"translate3d("+h+"px, "+x+"px, 0)",B))}return Object.assign({},L,(t={},t[C]=S?x+"px":"",t[_]=b?h+"px":"",t.transform="",t))}function y8(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,o=r.adaptive,a=o===void 0?!0:o,s=r.roundOffsets,l=s===void 0?!0:s,c={placement:Io(t.placement),variation:uc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,J2(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,J2(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const x8={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:y8,data:{}};var Gh={passive:!0};function b8(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,o=i===void 0?!0:i,a=n.resize,s=a===void 0?!0:a,l=ai(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach(function(f){f.addEventListener("scroll",r.update,Gh)}),s&&l.addEventListener("resize",r.update,Gh),function(){o&&c.forEach(function(f){f.removeEventListener("scroll",r.update,Gh)}),s&&l.removeEventListener("resize",r.update,Gh)}}const _8={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:b8,data:{}};var S8={left:"right",right:"left",bottom:"top",top:"bottom"};function Uv(e){return e.replace(/left|right|bottom|top/g,function(t){return S8[t]})}var w8={start:"end",end:"start"};function eR(e){return e.replace(/start|end/g,function(t){return w8[t]})}function wS(e){var t=ai(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function CS(e){return lc(_s(e)).left+wS(e).scrollLeft}function C8(e,t){var r=ai(e),n=_s(e),i=r.visualViewport,o=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;var c=DD();(c||!c&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s+CS(e),y:l}}function T8(e){var t,r=_s(e),n=wS(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=_l(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=_l(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+CS(e),l=-n.scrollTop;return ya(i||r).direction==="rtl"&&(s+=_l(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function TS(e){var t=ya(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function $D(e){return["html","body","#document"].indexOf($o(e))>=0?e.ownerDocument.body:Mi(e)&&TS(e)?e:$D(vm(e))}function fd(e,t){var r;t===void 0&&(t=[]);var n=$D(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=ai(n),a=i?[o].concat(o.visualViewport||[],TS(n)?n:[]):n,s=t.concat(a);return i?s:s.concat(fd(vm(a)))}function gb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function k8(e,t){var r=lc(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function tR(e,t,r){return t===ID?gb(C8(e,r)):Al(t)?k8(t,r):gb(T8(_s(e)))}function R8(e){var t=fd(vm(e)),r=["absolute","fixed"].indexOf(ya(e).position)>=0,n=r&&Mi(e)?_p(e):e;return Al(n)?t.filter(function(i){return Al(i)&&LD(i,n)&&$o(i)!=="body"}):[]}function E8(e,t,r,n){var i=t==="clippingParents"?R8(e):[].concat(t),o=[].concat(i,[r]),a=o[0],s=o.reduce(function(l,c){var f=tR(e,c,n);return l.top=_l(f.top,l.top),l.right=gg(f.right,l.right),l.bottom=gg(f.bottom,l.bottom),l.left=_l(f.left,l.left),l},tR(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function FD(e){var t=e.reference,r=e.element,n=e.placement,i=n?Io(n):null,o=n?uc(n):null,a=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(i){case Nn:l={x:a,y:t.y-r.height};break;case Di:l={x:a,y:t.y+t.height};break;case Li:l={x:t.x+t.width,y:s};break;case zn:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var c=i?SS(i):null;if(c!=null){var f=c==="y"?"height":"width";switch(o){case ac:l[c]=l[c]-(t[f]/2-r[f]/2);break;case Ud:l[c]=l[c]+(t[f]/2-r[f]/2);break}}return l}function Gd(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,o=r.strategy,a=o===void 0?e.strategy:o,s=r.boundary,l=s===void 0?Y9:s,c=r.rootBoundary,f=c===void 0?ID:c,p=r.elementContext,v=p===void 0?cf:p,h=r.altBoundary,g=h===void 0?!1:h,x=r.padding,y=x===void 0?0:x,b=ND(typeof y!="number"?y:zD(y,bp)),S=v===cf?K9:cf,_=e.rects.popper,C=e.elements[g?S:v],k=E8(Al(C)?C:C.contextElement||_s(e.elements.popper),l,f,a),T=lc(e.elements.reference),E=FD({reference:T,element:_,placement:i}),I=gb(Object.assign({},_,E)),D=v===cf?I:T,A={top:k.top-D.top+b.top,bottom:D.bottom-k.bottom+b.bottom,left:k.left-D.left+b.left,right:D.right-k.right+b.right},L=e.modifiersData.offset;if(v===cf&&L){var $=L[i];Object.keys(A).forEach(function(B){var j=[Li,Di].indexOf(B)>=0?1:-1,W=[Nn,Di].indexOf(B)>=0?"y":"x";A[B]+=$[W]*j})}return A}function P8(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,o=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=l===void 0?AD:l,f=uc(n),p=f?s?Q2:Q2.filter(function(g){return uc(g)===f}):bp,v=p.filter(function(g){return c.indexOf(g)>=0});v.length===0&&(v=p);var h=v.reduce(function(g,x){return g[x]=Gd(e,{placement:x,boundary:i,rootBoundary:o,padding:a})[Io(x)],g},{});return Object.keys(h).sort(function(g,x){return h[g]-h[x]})}function M8(e){if(Io(e)===xS)return[];var t=Uv(e);return[eR(e),t,eR(t)]}function I8(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,s=a===void 0?!0:a,l=r.fallbackPlacements,c=r.padding,f=r.boundary,p=r.rootBoundary,v=r.altBoundary,h=r.flipVariations,g=h===void 0?!0:h,x=r.allowedAutoPlacements,y=t.options.placement,b=Io(y),S=b===y,_=l||(S||!g?[Uv(y)]:M8(y)),C=[y].concat(_).reduce(function(oe,ve){return oe.concat(Io(ve)===xS?P8(t,{placement:ve,boundary:f,rootBoundary:p,padding:c,flipVariations:g,allowedAutoPlacements:x}):ve)},[]),k=t.rects.reference,T=t.rects.popper,E=new Map,I=!0,D=C[0],A=0;A<C.length;A++){var L=C[A],$=Io(L),B=uc(L)===ac,j=[Nn,Di].indexOf($)>=0,W=j?"width":"height",q=Gd(t,{placement:L,boundary:f,rootBoundary:p,altBoundary:v,padding:c}),Z=j?B?Li:zn:B?Di:Nn;k[W]>T[W]&&(Z=Uv(Z));var V=Uv(Z),G=[];if(o&&G.push(q[$]<=0),s&&G.push(q[Z]<=0,q[V]<=0),G.every(function(oe){return oe})){D=L,I=!1;break}E.set(L,G)}if(I)for(var N=g?3:1,U=function(ve){var te=C.find(function(ge){var de=E.get(ge);if(de)return de.slice(0,ve).every(function(xe){return xe})});if(te)return D=te,"break"},Q=N;Q>0;Q--){var H=U(Q);if(H==="break")break}t.placement!==D&&(t.modifiersData[n]._skip=!0,t.placement=D,t.reset=!0)}}const A8={name:"flip",enabled:!0,phase:"main",fn:I8,requiresIfExists:["offset"],data:{_skip:!1}};function rR(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function nR(e){return[Nn,Li,Di,zn].some(function(t){return e[t]>=0})}function D8(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,a=Gd(t,{elementContext:"reference"}),s=Gd(t,{altBoundary:!0}),l=rR(a,n),c=rR(s,i,o),f=nR(l),p=nR(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}const L8={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:D8};function O8(e,t,r){var n=Io(e),i=[zn,Nn].indexOf(n)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[zn,Li].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}function N8(e){var t=e.state,r=e.options,n=e.name,i=r.offset,o=i===void 0?[0,0]:i,a=AD.reduce(function(f,p){return f[p]=O8(p,t.rects,o),f},{}),s=a[t.placement],l=s.x,c=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}const z8={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:N8};function $8(e){var t=e.state,r=e.name;t.modifiersData[r]=FD({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const F8={name:"popperOffsets",enabled:!0,phase:"read",fn:$8,data:{}};function B8(e){return e==="x"?"y":"x"}function j8(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,o=i===void 0?!0:i,a=r.altAxis,s=a===void 0?!1:a,l=r.boundary,c=r.rootBoundary,f=r.altBoundary,p=r.padding,v=r.tether,h=v===void 0?!0:v,g=r.tetherOffset,x=g===void 0?0:g,y=Gd(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:f}),b=Io(t.placement),S=uc(t.placement),_=!S,C=SS(b),k=B8(C),T=t.modifiersData.popperOffsets,E=t.rects.reference,I=t.rects.popper,D=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,A=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,$={x:0,y:0};if(T){if(o){var B,j=C==="y"?Nn:zn,W=C==="y"?Di:Li,q=C==="y"?"height":"width",Z=T[C],V=Z+y[j],G=Z-y[W],N=h?-I[q]/2:0,U=S===ac?E[q]:I[q],Q=S===ac?-I[q]:-E[q],H=t.elements.arrow,oe=h&&H?_S(H):{width:0,height:0},ve=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:OD(),te=ve[j],ge=ve[W],de=cd(0,E[q],oe[q]),xe=_?E[q]/2-N-de-te-A.mainAxis:U-de-te-A.mainAxis,Me=_?-E[q]/2+N+de+ge+A.mainAxis:Q+de+ge+A.mainAxis,ue=t.elements.arrow&&_p(t.elements.arrow),Te=ue?C==="y"?ue.clientTop||0:ue.clientLeft||0:0,Oe=(B=L==null?void 0:L[C])!=null?B:0,Ae=Z+xe-Oe-Te,we=Z+Me-Oe,Mt=cd(h?gg(V,Ae):V,Z,h?_l(G,we):G);T[C]=Mt,$[C]=Mt-Z}if(s){var We,dt=C==="x"?Nn:zn,bt=C==="x"?Di:Li,st=T[k],et=k==="y"?"height":"width",_t=st+y[dt],Tt=st-y[bt],lt=[Nn,zn].indexOf(b)!==-1,Nt=(We=L==null?void 0:L[k])!=null?We:0,ne=lt?_t:st-E[et]-I[et]-Nt+A.altAxis,le=lt?st+E[et]+I[et]-Nt-A.altAxis:Tt,he=h&&lt?f8(ne,st,le):cd(h?ne:_t,st,h?le:Tt);T[k]=he,$[k]=he-st}t.modifiersData[n]=$}}const H8={name:"preventOverflow",enabled:!0,phase:"main",fn:j8,requiresIfExists:["offset"]};function W8(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function V8(e){return e===ai(e)||!Mi(e)?wS(e):W8(e)}function U8(e){var t=e.getBoundingClientRect(),r=sc(t.width)/e.offsetWidth||1,n=sc(t.height)/e.offsetHeight||1;return r!==1||n!==1}function G8(e,t,r){r===void 0&&(r=!1);var n=Mi(t),i=Mi(t)&&U8(t),o=_s(t),a=lc(e,i,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&(($o(t)!=="body"||TS(o))&&(s=V8(t)),Mi(t)?(l=lc(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=CS(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function q8(e){var t=new Map,r=new Set,n=[];e.forEach(function(o){t.set(o.name,o)});function i(o){r.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&i(l)}}),n.push(o)}return e.forEach(function(o){r.has(o.name)||i(o)}),n}function Y8(e){var t=q8(e);return o8.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function K8(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function X8(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var iR={placement:"bottom",modifiers:[],strategy:"absolute"};function oR(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function Q8(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,o=i===void 0?iR:i;return function(s,l,c){c===void 0&&(c=o);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},iR,o),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},p=[],v=!1,h={state:f,setOptions:function(b){var S=typeof b=="function"?b(f.options):b;x(),f.options=Object.assign({},o,f.options,S),f.scrollParents={reference:Al(s)?fd(s):s.contextElement?fd(s.contextElement):[],popper:fd(l)};var _=Y8(X8([].concat(n,f.options.modifiers)));return f.orderedModifiers=_.filter(function(C){return C.enabled}),g(),h.update()},forceUpdate:function(){if(!v){var b=f.elements,S=b.reference,_=b.popper;if(oR(S,_)){f.rects={reference:G8(S,_p(_),f.options.strategy==="fixed"),popper:_S(_)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(A){return f.modifiersData[A.name]=Object.assign({},A.data)});for(var C=0;C<f.orderedModifiers.length;C++){if(f.reset===!0){f.reset=!1,C=-1;continue}var k=f.orderedModifiers[C],T=k.fn,E=k.options,I=E===void 0?{}:E,D=k.name;typeof T=="function"&&(f=T({state:f,options:I,name:D,instance:h})||f)}}}},update:K8(function(){return new Promise(function(y){h.forceUpdate(),y(f)})}),destroy:function(){x(),v=!0}};if(!oR(s,l))return h;h.setOptions(c).then(function(y){!v&&c.onFirstUpdate&&c.onFirstUpdate(y)});function g(){f.orderedModifiers.forEach(function(y){var b=y.name,S=y.options,_=S===void 0?{}:S,C=y.effect;if(typeof C=="function"){var k=C({state:f,name:b,instance:h,options:_}),T=function(){};p.push(k||T)}})}function x(){p.forEach(function(y){return y()}),p=[]}return h}}var Z8=[_8,F8,x8,l8,z8,A8,H8,v8,L8],J8=Q8({defaultModifiers:Z8});function eW(e){return typeof e=="function"?e():e}const BD=O.forwardRef(function(t,r){const{children:n,container:i,disablePortal:o=!1}=t,[a,s]=O.useState(null),l=cr(O.isValidElement(n)?n.ref:null,r);if(Ji(()=>{o||s(eW(i)||document.body)},[i,o]),Ji(()=>{if(a&&!o)return Fd(r,a),()=>{Fd(r,null)}},[r,a,o]),o){if(O.isValidElement(n)){const c={ref:l};return O.cloneElement(n,c)}return M.jsx(O.Fragment,{children:n})}return M.jsx(O.Fragment,{children:a&&dS.createPortal(n,a)})});function tW(e){return Ye("MuiPopper",e)}Xe("MuiPopper",["root"]);const rW=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],nW=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];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 mb(e){return typeof e=="function"?e():e}function oW(e){return e.nodeType!==void 0}const aW=()=>Ke({root:["root"]},z9(tW)),sW={},lW=O.forwardRef(function(t,r){var n;const{anchorEl:i,children:o,direction:a,disablePortal:s,modifiers:l,open:c,placement:f,popperOptions:p,popperRef:v,slotProps:h={},slots:g={},TransitionProps:x}=t,y=Re(t,rW),b=O.useRef(null),S=cr(b,r),_=O.useRef(null),C=cr(_,v),k=O.useRef(C);Ji(()=>{k.current=C},[C]),O.useImperativeHandle(v,()=>_.current,[]);const T=iW(f,a),[E,I]=O.useState(T),[D,A]=O.useState(mb(i));O.useEffect(()=>{_.current&&_.current.forceUpdate()}),O.useEffect(()=>{i&&A(mb(i))},[i]),Ji(()=>{if(!D||!c)return;const W=V=>{I(V.placement)};let q=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:V})=>{W(V)}}];l!=null&&(q=q.concat(l)),p&&p.modifiers!=null&&(q=q.concat(p.modifiers));const Z=J8(D,b.current,z({placement:T},p,{modifiers:q}));return k.current(Z),()=>{Z.destroy(),k.current(null)}},[D,s,l,c,p,T]);const L={placement:E};x!==null&&(L.TransitionProps=x);const $=aW(),B=(n=g.root)!=null?n:"div",j=to({elementType:B,externalSlotProps:h.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:S},ownerState:t,className:$.root});return M.jsx(B,z({},j,{children:typeof o=="function"?o(L):o}))}),uW=O.forwardRef(function(t,r){const{anchorEl:n,children:i,container:o,direction:a="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:c,open:f,placement:p="bottom",popperOptions:v=sW,popperRef:h,style:g,transition:x=!1,slotProps:y={},slots:b={}}=t,S=Re(t,nW),[_,C]=O.useState(!0),k=()=>{C(!1)},T=()=>{C(!0)};if(!l&&!f&&(!x||_))return null;let E;if(o)E=o;else if(n){const A=mb(n);E=A&&oW(A)?Ur(A).body:Ur(null).body}const I=!f&&l&&(!x||_)?"none":void 0,D=x?{in:f,onEnter:k,onExited:T}:void 0;return M.jsx(BD,{disablePortal:s,container:E,children:M.jsx(lW,z({anchorEl:n,direction:a,disablePortal:s,modifiers:c,ref:r,open:x?!_:f,placement:p,popperOptions:v,popperRef:h,slotProps:y,slots:b},S,{style:z({position:"fixed",top:0,left:0,display:I},g),TransitionProps:D,children:i}))})});function cW(e){const t=Ur(e);return t.body===e?Ai(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function dd(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function aR(e){return parseInt(Ai(e).getComputedStyle(e).paddingRight,10)||0}function fW(e){const r=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return r||n}function sR(e,t,r,n,i){const o=[t,r,...n];[].forEach.call(e.children,a=>{const s=o.indexOf(a)===-1,l=!fW(a);s&&l&&dd(a,i)})}function s1(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function dW(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(cW(n)){const a=ZA(Ur(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${aR(n)+a}px`;const s=Ur(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${aR(l)+a}px`})}let o;if(n.parentNode instanceof DocumentFragment)o=Ur(n).body;else{const a=n.parentElement,s=Ai(n);o=(a==null?void 0:a.nodeName)==="HTML"&&s.getComputedStyle(a).overflowY==="scroll"?a:n}r.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{r.forEach(({value:o,el:a,property:s})=>{o?a.style.setProperty(s,o):a.style.removeProperty(s)})}}function pW(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class hW{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&dd(t.modalRef,!1);const i=pW(r);sR(r,t.mount,t.modalRef,i,!0);const o=s1(this.containers,a=>a.container===r);return o!==-1?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=s1(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[n];i.restore||(i.restore=dW(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=s1(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(n,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&dd(t.modalRef,r),sR(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const a=o.modals[o.modals.length-1];a.modalRef&&dd(a.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function vW(e){return typeof e=="function"?e():e}function gW(e){return e?e.props.hasOwnProperty("in"):!1}const mW=new hW;function yW(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=mW,closeAfterTransition:o=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:f,rootRef:p}=e,v=O.useRef({}),h=O.useRef(null),g=O.useRef(null),x=cr(g,p),[y,b]=O.useState(!f),S=gW(l);let _=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(_=!1);const C=()=>Ur(h.current),k=()=>(v.current.modalRef=g.current,v.current.mount=h.current,v.current),T=()=>{i.mount(k(),{disableScrollLock:n}),g.current&&(g.current.scrollTop=0)},E=gn(()=>{const q=vW(t)||C().body;i.add(k(),q),g.current&&T()}),I=O.useCallback(()=>i.isTopModal(k()),[i]),D=gn(q=>{h.current=q,q&&(f&&I()?T():g.current&&dd(g.current,_))}),A=O.useCallback(()=>{i.remove(k(),_)},[_,i]);O.useEffect(()=>()=>{A()},[A]),O.useEffect(()=>{f?E():(!S||!o)&&A()},[f,A,S,o,E]);const L=q=>Z=>{var V;(V=q.onKeyDown)==null||V.call(q,Z),!(Z.key!=="Escape"||!I())&&(r||(Z.stopPropagation(),c&&c(Z,"escapeKeyDown")))},$=q=>Z=>{var V;(V=q.onClick)==null||V.call(q,Z),Z.target===Z.currentTarget&&c&&c(Z,"backdropClick")};return{getRootProps:(q={})=>{const Z=MD(e);delete Z.onTransitionEnter,delete Z.onTransitionExited;const V=z({},Z,q);return z({role:"presentation"},V,{onKeyDown:L(V),ref:x})},getBackdropProps:(q={})=>{const Z=q;return z({"aria-hidden":!0},Z,{onClick:$(Z),open:f})},getTransitionProps:()=>{const q=()=>{b(!1),a&&a()},Z=()=>{b(!0),s&&s(),o&&A()};return{onEnter:ab(q,l==null?void 0:l.props.onEnter),onExited:ab(Z,l==null?void 0:l.props.onExited)}},rootRef:x,portalRef:D,isTopModal:I,exited:y,hasTransition:S}}const xW=["onChange","maxRows","minRows","style","value"];function qh(e){return parseInt(e,10)||0}const bW={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function lR(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const _W=O.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:o=1,style:a,value:s}=t,l=Re(t,xW),{current:c}=O.useRef(s!=null),f=O.useRef(null),p=cr(r,f),v=O.useRef(null),h=O.useRef(0),[g,x]=O.useState({outerHeightStyle:0}),y=O.useCallback(()=>{const k=f.current,E=Ai(k).getComputedStyle(k);if(E.width==="0px")return{outerHeightStyle:0};const I=v.current;I.style.width=E.width,I.value=k.value||t.placeholder||"x",I.value.slice(-1)===`
141
- `&&(I.value+=" ");const D=E.boxSizing,A=qh(E.paddingBottom)+qh(E.paddingTop),L=qh(E.borderBottomWidth)+qh(E.borderTopWidth),$=I.scrollHeight;I.value="x";const B=I.scrollHeight;let j=$;o&&(j=Math.max(Number(o)*B,j)),i&&(j=Math.min(Number(i)*B,j)),j=Math.max(j,B);const W=j+(D==="border-box"?A+L:0),q=Math.abs(j-$)<=1;return{outerHeightStyle:W,overflow:q}},[i,o,t.placeholder]),b=(k,T)=>{const{outerHeightStyle:E,overflow:I}=T;return h.current<20&&(E>0&&Math.abs((k.outerHeightStyle||0)-E)>1||k.overflow!==I)?(h.current+=1,{overflow:I,outerHeightStyle:E}):k},S=O.useCallback(()=>{const k=y();lR(k)||x(T=>b(T,k))},[y]),_=()=>{const k=y();lR(k)||dS.flushSync(()=>{x(T=>b(T,k))})};O.useEffect(()=>{const k=()=>{h.current=0,f.current&&_()},T=hc(()=>{h.current=0,f.current&&_()});let E;const I=f.current,D=Ai(I);return D.addEventListener("resize",T),typeof ResizeObserver<"u"&&(E=new ResizeObserver(k),E.observe(I)),()=>{T.clear(),D.removeEventListener("resize",T),E&&E.disconnect()}}),Ji(()=>{S()}),O.useEffect(()=>{h.current=0},[s]);const C=k=>{h.current=0,c||S(),n&&n(k)};return M.jsxs(O.Fragment,{children:[M.jsx("textarea",z({value:s,onChange:C,ref:p,rows:o,style:z({height:g.outerHeightStyle,overflow:g.overflow?"hidden":void 0},a)},l)),M.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:v,tabIndex:-1,style:z({},bW.shadow,a,{paddingTop:0,paddingBottom:0})})]})});function uR(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function SW(e={}){const{ignoreAccents:t=!0,ignoreCase:r=!0,limit:n,matchFrom:i="any",stringify:o,trim:a=!1}=e;return(s,{inputValue:l,getOptionLabel:c})=>{let f=a?l.trim():l;r&&(f=f.toLowerCase()),t&&(f=uR(f));const p=f?s.filter(v=>{let h=(o||c)(v);return r&&(h=h.toLowerCase()),t&&(h=uR(h)),i==="start"?h.indexOf(f)===0:h.indexOf(f)>-1}):s;return typeof n=="number"?p.slice(0,n):p}}function l1(e,t){for(let r=0;r<e.length;r+=1)if(t(e[r]))return r;return-1}const wW=SW(),CW=5,TW=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function kW(e){const{unstable_isActiveElementInListbox:t=TW,unstable_classNamePrefix:r="Mui",autoComplete:n=!1,autoHighlight:i=!1,autoSelect:o=!1,blurOnSelect:a=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:c="useAutocomplete",defaultValue:f=e.multiple?[]:null,disableClearable:p=!1,disableCloseOnSelect:v=!1,disabled:h,disabledItemsFocusable:g=!1,disableListWrap:x=!1,filterOptions:y=wW,filterSelectedOptions:b=!1,freeSolo:S=!1,getOptionDisabled:_,getOptionLabel:C=se=>{var ae;return(ae=se.label)!=null?ae:se},groupBy:k,handleHomeEndKeys:T=!e.freeSolo,id:E,includeInputInList:I=!1,inputValue:D,isOptionEqualToValue:A=(se,ae)=>se===ae,multiple:L=!1,onChange:$,onClose:B,onHighlightChange:j,onInputChange:W,onOpen:q,open:Z,openOnFocus:V=!1,options:G,readOnly:N=!1,selectOnFocus:U=!e.freeSolo,value:Q}=e,H=Zg(E);let oe=C;oe=se=>{const ae=C(se);return typeof ae!="string"?String(ae):ae};const ve=O.useRef(!1),te=O.useRef(!0),ge=O.useRef(null),de=O.useRef(null),[xe,Me]=O.useState(null),[ue,Te]=O.useState(-1),Oe=i?0:-1,Ae=O.useRef(Oe),[we,Mt]=da({controlled:Q,default:f,name:c}),[We,dt]=da({controlled:D,default:"",name:c,state:"inputValue"}),[bt,st]=O.useState(!1),et=O.useCallback((se,ae)=>{if(!(L?we.length<ae.length:ae!==null)&&!s)return;let Ne;if(L)Ne="";else if(ae==null)Ne="";else{const vt=oe(ae);Ne=typeof vt=="string"?vt:""}We!==Ne&&(dt(Ne),W&&W(se,Ne,"reset"))},[oe,We,L,W,dt,s,we]),[_t,Tt]=da({controlled:Z,default:!1,name:c,state:"open"}),[lt,Nt]=O.useState(!0),ne=!L&&we!=null&&We===oe(we),le=_t&&!N,he=le?y(G.filter(se=>!(b&&(L?we:[we]).some(ae=>ae!==null&&A(se,ae)))),{inputValue:ne&&lt?"":We,getOptionLabel:oe}):[],pe=sB({filteredOptions:he,value:we,inputValue:We});O.useEffect(()=>{const se=we!==pe.value;bt&&!se||S&&!se||et(null,we)},[we,et,bt,pe.value,S]);const je=_t&&he.length>0&&!N,ht=gn(se=>{se===-1?ge.current.focus():xe.querySelector(`[data-tag-index="${se}"]`).focus()});O.useEffect(()=>{L&&ue>we.length-1&&(Te(-1),ht(-1))},[we,L,ue,ht]);function De(se,ae){if(!de.current||se===-1)return-1;let be=se;for(;;){if(ae==="next"&&be===he.length||ae==="previous"&&be===-1)return-1;const Ne=de.current.querySelector(`[data-option-index="${be}"]`),vt=g?!1:!Ne||Ne.disabled||Ne.getAttribute("aria-disabled")==="true";if(Ne&&!Ne.hasAttribute("tabindex")||vt)be+=ae==="next"?1:-1;else return be}}const Ue=gn(({event:se,index:ae,reason:be="auto"})=>{if(Ae.current=ae,ae===-1?ge.current.removeAttribute("aria-activedescendant"):ge.current.setAttribute("aria-activedescendant",`${H}-option-${ae}`),j&&j(se,ae===-1?null:he[ae],be),!de.current)return;const Ne=de.current.querySelector(`[role="option"].${r}-focused`);Ne&&(Ne.classList.remove(`${r}-focused`),Ne.classList.remove(`${r}-focusVisible`));let vt=de.current;if(de.current.getAttribute("role")!=="listbox"&&(vt=de.current.parentElement.querySelector('[role="listbox"]')),!vt)return;if(ae===-1){vt.scrollTop=0;return}const ir=de.current.querySelector(`[data-option-index="${ae}"]`);if(ir&&(ir.classList.add(`${r}-focused`),be==="keyboard"&&ir.classList.add(`${r}-focusVisible`),vt.scrollHeight>vt.clientHeight&&be!=="mouse"&&be!=="touch")){const or=ir,sn=vt.clientHeight+vt.scrollTop,ct=or.offsetTop+or.offsetHeight;ct>sn?vt.scrollTop=ct-vt.clientHeight:or.offsetTop-or.offsetHeight*(k?1.3:0)<vt.scrollTop&&(vt.scrollTop=or.offsetTop-or.offsetHeight*(k?1.3:0))}}),ot=gn(({event:se,diff:ae,direction:be="next",reason:Ne="auto"})=>{if(!le)return;const ir=De((()=>{const or=he.length-1;if(ae==="reset")return Oe;if(ae==="start")return 0;if(ae==="end")return or;const sn=Ae.current+ae;return sn<0?sn===-1&&I?-1:x&&Ae.current!==-1||Math.abs(ae)>1?0:or:sn>or?sn===or+1&&I?-1:x||Math.abs(ae)>1?or:0:sn})(),be);if(Ue({index:ir,reason:Ne,event:se}),n&&ae!=="reset")if(ir===-1)ge.current.value=We;else{const or=oe(he[ir]);ge.current.value=or,or.toLowerCase().indexOf(We.toLowerCase())===0&&We.length>0&&ge.current.setSelectionRange(We.length,or.length)}}),Ee=()=>{const se=(ae,be)=>{const Ne=ae?oe(ae):"",vt=be?oe(be):"";return Ne===vt};if(Ae.current!==-1&&pe.filteredOptions&&pe.filteredOptions.length!==he.length&&pe.inputValue===We&&(L?we.length===pe.value.length&&pe.value.every((ae,be)=>oe(we[be])===oe(ae)):se(pe.value,we))){const ae=pe.filteredOptions[Ae.current];if(ae&&he.some(Ne=>oe(Ne)===oe(ae)))return!0}return!1},Pe=O.useCallback(()=>{if(!le||Ee())return;const se=L?we[0]:we;if(he.length===0||se==null){ot({diff:"reset"});return}if(de.current){if(se!=null){const ae=he[Ae.current];if(L&&ae&&l1(we,Ne=>A(ae,Ne))!==-1)return;const be=l1(he,Ne=>A(Ne,se));be===-1?ot({diff:"reset"}):Ue({index:be});return}if(Ae.current>=he.length-1){Ue({index:he.length-1});return}Ue({index:Ae.current})}},[he.length,L?!1:we,b,ot,Ue,le,We,L]),tt=gn(se=>{Fd(de,se),se&&Pe()});O.useEffect(()=>{Pe()},[Pe]);const Ge=se=>{_t||(Tt(!0),Nt(!0),q&&q(se))},Et=(se,ae)=>{_t&&(Tt(!1),B&&B(se,ae))},er=(se,ae,be,Ne)=>{if(L){if(we.length===ae.length&&we.every((vt,ir)=>vt===ae[ir]))return}else if(we===ae)return;$&&$(se,ae,be,Ne),Mt(ae)},hr=O.useRef(!1),kr=(se,ae,be="selectOption",Ne="options")=>{let vt=be,ir=ae;if(L){ir=Array.isArray(we)?we.slice():[];const or=l1(ir,sn=>A(ae,sn));or===-1?ir.push(ae):Ne!=="freeSolo"&&(ir.splice(or,1),vt="removeOption")}et(se,ir),er(se,ir,vt,{option:ae}),!v&&(!se||!se.ctrlKey&&!se.metaKey)&&Et(se,vt),(a===!0||a==="touch"&&hr.current||a==="mouse"&&!hr.current)&&ge.current.blur()};function ui(se,ae){if(se===-1)return-1;let be=se;for(;;){if(ae==="next"&&be===we.length||ae==="previous"&&be===-1)return-1;const Ne=xe.querySelector(`[data-tag-index="${be}"]`);if(!Ne||!Ne.hasAttribute("tabindex")||Ne.disabled||Ne.getAttribute("aria-disabled")==="true")be+=ae==="next"?1:-1;else return be}}const on=(se,ae)=>{if(!L)return;We===""&&Et(se,"toggleInput");let be=ue;ue===-1?We===""&&ae==="previous"&&(be=we.length-1):(be+=ae==="next"?1:-1,be<0&&(be=0),be===we.length&&(be=-1)),be=ui(be,ae),Te(be),ht(be)},ao=se=>{ve.current=!0,dt(""),W&&W(se,"","clear"),er(se,L?[]:null,"clear")},Yo=se=>ae=>{if(se.onKeyDown&&se.onKeyDown(ae),!ae.defaultMuiPrevented&&(ue!==-1&&["ArrowLeft","ArrowRight"].indexOf(ae.key)===-1&&(Te(-1),ht(-1)),ae.which!==229))switch(ae.key){case"Home":le&&T&&(ae.preventDefault(),ot({diff:"start",direction:"next",reason:"keyboard",event:ae}));break;case"End":le&&T&&(ae.preventDefault(),ot({diff:"end",direction:"previous",reason:"keyboard",event:ae}));break;case"PageUp":ae.preventDefault(),ot({diff:-5,direction:"previous",reason:"keyboard",event:ae}),Ge(ae);break;case"PageDown":ae.preventDefault(),ot({diff:CW,direction:"next",reason:"keyboard",event:ae}),Ge(ae);break;case"ArrowDown":ae.preventDefault(),ot({diff:1,direction:"next",reason:"keyboard",event:ae}),Ge(ae);break;case"ArrowUp":ae.preventDefault(),ot({diff:-1,direction:"previous",reason:"keyboard",event:ae}),Ge(ae);break;case"ArrowLeft":on(ae,"previous");break;case"ArrowRight":on(ae,"next");break;case"Enter":if(Ae.current!==-1&&le){const be=he[Ae.current],Ne=_?_(be):!1;if(ae.preventDefault(),Ne)return;kr(ae,be,"selectOption"),n&&ge.current.setSelectionRange(ge.current.value.length,ge.current.value.length)}else S&&We!==""&&ne===!1&&(L&&ae.preventDefault(),kr(ae,We,"createOption","freeSolo"));break;case"Escape":le?(ae.preventDefault(),ae.stopPropagation(),Et(ae,"escape")):l&&(We!==""||L&&we.length>0)&&(ae.preventDefault(),ae.stopPropagation(),ao(ae));break;case"Backspace":if(L&&!N&&We===""&&we.length>0){const be=ue===-1?we.length-1:ue,Ne=we.slice();Ne.splice(be,1),er(ae,Ne,"removeOption",{option:we[be]})}break;case"Delete":if(L&&!N&&We===""&&we.length>0&&ue!==-1){const be=ue,Ne=we.slice();Ne.splice(be,1),er(ae,Ne,"removeOption",{option:we[be]})}break}},Ko=se=>{st(!0),V&&!ve.current&&Ge(se)},Xo=se=>{if(t(de)){ge.current.focus();return}st(!1),te.current=!0,ve.current=!1,o&&Ae.current!==-1&&le?kr(se,he[Ae.current],"blur"):o&&S&&We!==""?kr(se,We,"blur","freeSolo"):s&&et(se,we),Et(se,"blur")},so=se=>{const ae=se.target.value;We!==ae&&(dt(ae),Nt(!1),W&&W(se,ae,"input")),ae===""?!p&&!L&&er(se,null,"clear"):Ge(se)},nr=se=>{const ae=Number(se.currentTarget.getAttribute("data-option-index"));Ae.current!==ae&&Ue({event:se,index:ae,reason:"mouse"})},Xt=se=>{Ue({event:se,index:Number(se.currentTarget.getAttribute("data-option-index")),reason:"touch"}),hr.current=!0},Rr=se=>{const ae=Number(se.currentTarget.getAttribute("data-option-index"));kr(se,he[ae],"selectOption"),hr.current=!1},lo=se=>ae=>{const be=we.slice();be.splice(se,1),er(ae,be,"removeOption",{option:we[se]})},_n=se=>{_t?Et(se,"toggleInput"):Ge(se)},Er=se=>{se.currentTarget.contains(se.target)&&se.target.getAttribute("id")!==H&&se.preventDefault()},Sn=se=>{se.currentTarget.contains(se.target)&&(ge.current.focus(),U&&te.current&&ge.current.selectionEnd-ge.current.selectionStart===0&&ge.current.select(),te.current=!1)},uo=se=>{!h&&(We===""||!_t)&&_n(se)};let an=S&&We.length>0;an=an||(L?we.length>0:we!==null);let ci=he;return k&&(ci=he.reduce((se,ae,be)=>{const Ne=k(ae);return se.length>0&&se[se.length-1].group===Ne?se[se.length-1].options.push(ae):se.push({key:be,index:be,group:Ne,options:[ae]}),se},[])),h&&bt&&Xo(),{getRootProps:(se={})=>z({"aria-owns":je?`${H}-listbox`:null},se,{onKeyDown:Yo(se),onMouseDown:Er,onClick:Sn}),getInputLabelProps:()=>({id:`${H}-label`,htmlFor:H}),getInputProps:()=>({id:H,value:We,onBlur:Xo,onFocus:Ko,onChange:so,onMouseDown:uo,"aria-activedescendant":le?"":null,"aria-autocomplete":n?"both":"list","aria-controls":je?`${H}-listbox`:void 0,"aria-expanded":je,autoComplete:"off",ref:ge,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,onClick:ao}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:_n}),getTagProps:({index:se})=>z({key:se,"data-tag-index":se,tabIndex:-1},!N&&{onDelete:lo(se)}),getListboxProps:()=>({role:"listbox",id:`${H}-listbox`,"aria-labelledby":`${H}-label`,ref:tt,onMouseDown:se=>{se.preventDefault()}}),getOptionProps:({index:se,option:ae})=>{const be=(L?we:[we]).some(vt=>vt!=null&&A(ae,vt)),Ne=_?_(ae):!1;return{key:oe(ae),tabIndex:-1,role:"option",id:`${H}-option-${se}`,onMouseMove:nr,onClick:Rr,onTouchStart:Xt,"data-option-index":se,"aria-disabled":Ne,"aria-selected":be}},id:H,inputValue:We,value:we,dirty:an,expanded:le&&xe,popupOpen:le,focused:bt||ue!==-1,anchorEl:xe,setAnchorEl:Me,focusedTag:ue,groupedOptions:ci}}const RW=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],EW=fe(uW,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gm=O.forwardRef(function(t,r){var n;const i=sS(),o=Qe({props:t,name:"MuiPopper"}),{anchorEl:a,component:s,components:l,componentsProps:c,container:f,disablePortal:p,keepMounted:v,modifiers:h,open:g,placement:x,popperOptions:y,popperRef:b,transition:S,slots:_,slotProps:C}=o,k=Re(o,RW),T=(n=_==null?void 0:_.root)!=null?n:l==null?void 0:l.Root,E=z({anchorEl:a,container:f,disablePortal:p,keepMounted:v,modifiers:h,open:g,placement:x,popperOptions:y,popperRef:b,transition:S},k);return M.jsx(EW,z({as:s,direction:i==null?void 0:i.direction,slots:{root:T},slotProps:C??c},E,{ref:r}))});function PW(e){return Ye("MuiListSubheader",e)}Xe("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const MW=["className","color","component","disableGutters","disableSticky","inset"],IW=e=>{const{classes:t,color:r,disableGutters:n,inset:i,disableSticky:o}=e,a={root:["root",r!=="default"&&`color${ce(r)}`,!n&&"gutters",i&&"inset",!o&&"sticky"]};return Ke(a,PW,t)},AW=fe("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${ce(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>z({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),jD=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:a="li",disableGutters:s=!1,disableSticky:l=!1,inset:c=!1}=n,f=Re(n,MW),p=z({},n,{color:o,component:a,disableGutters:s,disableSticky:l,inset:c}),v=IW(p);return M.jsx(AW,z({as:a,className:Se(v.root,i),ref:r,ownerState:p},f))});jD.muiSkipListHighlight=!0;const DW=xn(M.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 LW(e){return Ye("MuiChip",e)}const At=Xe("MuiChip",["root","sizeSmall","sizeMedium","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"]),OW=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],NW=e=>{const{classes:t,disabled:r,size:n,color:i,iconColor:o,onDelete:a,clickable:s,variant:l}=e,c={root:["root",l,r&&"disabled",`size${ce(n)}`,`color${ce(i)}`,s&&"clickable",s&&`clickableColor${ce(i)}`,a&&"deletable",a&&`deletableColor${ce(i)}`,`${l}${ce(i)}`],label:["label",`label${ce(n)}`],avatar:["avatar",`avatar${ce(n)}`,`avatarColor${ce(i)}`],icon:["icon",`icon${ce(n)}`,`iconColor${ce(o)}`],deleteIcon:["deleteIcon",`deleteIcon${ce(n)}`,`deleteIconColor${ce(i)}`,`deleteIcon${ce(l)}Color${ce(i)}`]};return Ke(c,LW,t)},zW=fe("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:i,clickable:o,onDelete:a,size:s,variant:l}=r;return[{[`& .${At.avatar}`]:t.avatar},{[`& .${At.avatar}`]:t[`avatar${ce(s)}`]},{[`& .${At.avatar}`]:t[`avatarColor${ce(n)}`]},{[`& .${At.icon}`]:t.icon},{[`& .${At.icon}`]:t[`icon${ce(s)}`]},{[`& .${At.icon}`]:t[`iconColor${ce(i)}`]},{[`& .${At.deleteIcon}`]:t.deleteIcon},{[`& .${At.deleteIcon}`]:t[`deleteIcon${ce(s)}`]},{[`& .${At.deleteIcon}`]:t[`deleteIconColor${ce(n)}`]},{[`& .${At.deleteIcon}`]:t[`deleteIcon${ce(l)}Color${ce(n)}`]},t.root,t[`size${ce(s)}`],t[`color${ce(n)}`],o&&t.clickable,o&&n!=="default"&&t[`clickableColor${ce(n)})`],a&&t.deletable,a&&n!=="default"&&t[`deletableColor${ce(n)}`],t[l],t[`${l}${ce(n)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return z({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,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",[`&.${At.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${At.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${At.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${At.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${At.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${At.icon}`]:z({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&z({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${At.deleteIcon}`]:z({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:St(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:St(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:St(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${At.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:St(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${At.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>z({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:St(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${At.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:St(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${At.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>z({},t.variant==="outlined"&&{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]}`,[`&.${At.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${At.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${At.avatar}`]:{marginLeft:4},[`& .${At.avatarSmall}`]:{marginLeft:2},[`& .${At.icon}`]:{marginLeft:4},[`& .${At.iconSmall}`]:{marginLeft:2},[`& .${At.deleteIcon}`]:{marginRight:5},[`& .${At.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:St(e.palette[t.color].main,.7)}`,[`&.${At.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:St(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${At.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:St(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${At.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:St(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),$W=fe("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${ce(n)}`]]}})(({ownerState:e})=>z({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function cR(e){return e.key==="Backspace"||e.key==="Delete"}const FW=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiChip"}),{avatar:i,className:o,clickable:a,color:s="default",component:l,deleteIcon:c,disabled:f=!1,icon:p,label:v,onClick:h,onDelete:g,onKeyDown:x,onKeyUp:y,size:b="medium",variant:S="filled",tabIndex:_,skipFocusWhenDisabled:C=!1}=n,k=Re(n,OW),T=O.useRef(null),E=cr(T,r),I=G=>{G.stopPropagation(),g&&g(G)},D=G=>{G.currentTarget===G.target&&cR(G)&&G.preventDefault(),x&&x(G)},A=G=>{G.currentTarget===G.target&&(g&&cR(G)?g(G):G.key==="Escape"&&T.current&&T.current.blur()),y&&y(G)},L=a!==!1&&h?!0:a,$=L||g?ma:l||"div",B=z({},n,{component:$,disabled:f,size:b,color:s,iconColor:O.isValidElement(p)&&p.props.color||s,onDelete:!!g,clickable:L,variant:S}),j=NW(B),W=$===ma?z({component:l||"div",focusVisibleClassName:j.focusVisible},g&&{disableRipple:!0}):{};let q=null;g&&(q=c&&O.isValidElement(c)?O.cloneElement(c,{className:Se(c.props.className,j.deleteIcon),onClick:I}):M.jsx(DW,{className:Se(j.deleteIcon),onClick:I}));let Z=null;i&&O.isValidElement(i)&&(Z=O.cloneElement(i,{className:Se(j.avatar,i.props.className)}));let V=null;return p&&O.isValidElement(p)&&(V=O.cloneElement(p,{className:Se(j.icon,p.props.className)})),M.jsxs(zW,z({as:$,className:Se(j.root,o),disabled:L&&f?!0:void 0,onClick:h,onKeyDown:D,onKeyUp:A,ref:E,tabIndex:C&&f?-1:_,ownerState:B},W,k,{children:[Z||V,M.jsx($W,{className:Se(j.label),ownerState:B,children:v}),q]}))});function Ss({props:e,states:t,muiFormControl:r}){return t.reduce((n,i)=>(n[i]=e[i],r&&typeof e[i]>"u"&&(n[i]=r[i]),n),{})}const mm=O.createContext(void 0);function Wo(){return O.useContext(mm)}function HD(e){return M.jsx(rj,z({},e,{defaultTheme:pm,themeId:Pl}))}function fR(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function mg(e,t=!1){return e&&(fR(e.value)&&e.value!==""||t&&fR(e.defaultValue)&&e.defaultValue!=="")}function BW(e){return e.startAdornment}function jW(e){return Ye("MuiInputBase",e)}const Zn=Xe("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),HW=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],ym=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,r.size==="small"&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${ce(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},xm=(e,t)=>{const{ownerState:r}=e;return[t.input,r.size==="small"&&t.inputSizeSmall,r.multiline&&t.inputMultiline,r.type==="search"&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},WW=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:o,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:f,readOnly:p,size:v,startAdornment:h,type:g}=e,x={root:["root",`color${ce(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",v&&v!=="medium"&&`size${ce(v)}`,f&&"multiline",h&&"adornedStart",o&&"adornedEnd",c&&"hiddenLabel",p&&"readOnly"],input:["input",n&&"disabled",g==="search"&&"inputTypeSearch",f&&"inputMultiline",v==="small"&&"inputSizeSmall",c&&"inputHiddenLabel",h&&"inputAdornedStart",o&&"inputAdornedEnd",p&&"readOnly"]};return Ke(x,jW,t)},bm=fe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ym})(({theme:e,ownerState:t})=>z({},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",[`&.${Zn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&z({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),_m=fe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:xm})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=z({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.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:r?.42:.5};return z({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%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Zn.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Zn.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),VW=M.jsx(HD,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),kS=O.forwardRef(function(t,r){var n;const i=Qe({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:s,className:l,components:c={},componentsProps:f={},defaultValue:p,disabled:v,disableInjectingGlobalStyles:h,endAdornment:g,fullWidth:x=!1,id:y,inputComponent:b="input",inputProps:S={},inputRef:_,maxRows:C,minRows:k,multiline:T=!1,name:E,onBlur:I,onChange:D,onClick:A,onFocus:L,onKeyDown:$,onKeyUp:B,placeholder:j,readOnly:W,renderSuffix:q,rows:Z,slotProps:V={},slots:G={},startAdornment:N,type:U="text",value:Q}=i,H=Re(i,HW),oe=S.value!=null?S.value:Q,{current:ve}=O.useRef(oe!=null),te=O.useRef(),ge=O.useCallback(he=>{},[]),de=cr(te,_,S.ref,ge),[xe,Me]=O.useState(!1),ue=Wo(),Te=Ss({props:i,muiFormControl:ue,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Te.focused=ue?ue.focused:xe,O.useEffect(()=>{!ue&&v&&xe&&(Me(!1),I&&I())},[ue,v,xe,I]);const Oe=ue&&ue.onFilled,Ae=ue&&ue.onEmpty,we=O.useCallback(he=>{mg(he)?Oe&&Oe():Ae&&Ae()},[Oe,Ae]);Ji(()=>{ve&&we({value:oe})},[oe,we,ve]);const Mt=he=>{if(Te.disabled){he.stopPropagation();return}L&&L(he),S.onFocus&&S.onFocus(he),ue&&ue.onFocus?ue.onFocus(he):Me(!0)},We=he=>{I&&I(he),S.onBlur&&S.onBlur(he),ue&&ue.onBlur?ue.onBlur(he):Me(!1)},dt=(he,...pe)=>{if(!ve){const je=he.target||te.current;if(je==null)throw new Error(hs(1));we({value:je.value})}S.onChange&&S.onChange(he,...pe),D&&D(he,...pe)};O.useEffect(()=>{we(te.current)},[]);const bt=he=>{te.current&&he.currentTarget===he.target&&te.current.focus(),A&&A(he)};let st=b,et=S;T&&st==="input"&&(Z?et=z({type:void 0,minRows:Z,maxRows:Z},et):et=z({type:void 0,maxRows:C,minRows:k},et),st=_W);const _t=he=>{we(he.animationName==="mui-auto-fill-cancel"?te.current:{value:"x"})};O.useEffect(()=>{ue&&ue.setAdornedStart(!!N)},[ue,N]);const Tt=z({},i,{color:Te.color||"primary",disabled:Te.disabled,endAdornment:g,error:Te.error,focused:Te.focused,formControl:ue,fullWidth:x,hiddenLabel:Te.hiddenLabel,multiline:T,size:Te.size,startAdornment:N,type:U}),lt=WW(Tt),Nt=G.root||c.Root||bm,ne=V.root||f.root||{},le=G.input||c.Input||_m;return et=z({},et,(n=V.input)!=null?n:f.input),M.jsxs(O.Fragment,{children:[!h&&VW,M.jsxs(Nt,z({},ne,!oc(Nt)&&{ownerState:z({},Tt,ne.ownerState)},{ref:r,onClick:bt},H,{className:Se(lt.root,ne.className,l,W&&"MuiInputBase-readOnly"),children:[N,M.jsx(mm.Provider,{value:null,children:M.jsx(le,z({ownerState:Tt,"aria-invalid":Te.error,"aria-describedby":o,autoComplete:a,autoFocus:s,defaultValue:p,disabled:Te.disabled,id:y,onAnimationStart:_t,name:E,placeholder:j,readOnly:W,required:Te.required,rows:Z,value:oe,onKeyDown:$,onKeyUp:B,type:U},et,!oc(le)&&{as:st,ownerState:z({},Tt,et.ownerState)},{ref:de,className:Se(lt.input,et.className,W&&"MuiInputBase-readOnly"),onBlur:We,onChange:dt,onFocus:Mt}))}),g,q?q(z({},Te,{startAdornment:N})):null]}))]})});function UW(e){return Ye("MuiInput",e)}const is=z({},Zn,Xe("MuiInput",["root","underline","input"]));function GW(e){return Ye("MuiOutlinedInput",e)}const bo=z({},Zn,Xe("MuiOutlinedInput",["root","notchedOutline","input"]));function qW(e){return Ye("MuiFilledInput",e)}const Jn=z({},Zn,Xe("MuiFilledInput",["root","underline","input"])),WD=xn(M.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function YW(e){return Ye("MuiAutocomplete",e)}const xt=Xe("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var dR,pR;const KW=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],XW=["ref"],QW=e=>{const{classes:t,disablePortal:r,expanded:n,focused:i,fullWidth:o,hasClearIcon:a,hasPopupIcon:s,inputFocused:l,popupOpen:c,size:f}=e,p={root:["root",n&&"expanded",i&&"focused",o&&"fullWidth",a&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${ce(f)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Ke(p,YW,t)},ZW=fe("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{fullWidth:n,hasClearIcon:i,hasPopupIcon:o,inputFocused:a,size:s}=r;return[{[`& .${xt.tag}`]:t.tag},{[`& .${xt.tag}`]:t[`tagSize${ce(s)}`]},{[`& .${xt.inputRoot}`]:t.inputRoot},{[`& .${xt.input}`]:t.input},{[`& .${xt.input}`]:a&&t.inputFocused},t.root,n&&t.fullWidth,o&&t.hasPopupIcon,i&&t.hasClearIcon]}})(({ownerState:e})=>z({[`&.${xt.focused} .${xt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${xt.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${xt.tag}`]:z({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${xt.inputRoot}`]:{flexWrap:"wrap",[`.${xt.hasPopupIcon}&, .${xt.hasClearIcon}&`]:{paddingRight:30},[`.${xt.hasPopupIcon}.${xt.hasClearIcon}&`]:{paddingRight:56},[`& .${xt.input}`]:{width:0,minWidth:30}},[`& .${is.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${is.root}.${Zn.sizeSmall}`]:{[`& .${is.input}`]:{padding:"2px 4px 3px 0"}},[`& .${bo.root}`]:{padding:9,[`.${xt.hasPopupIcon}&, .${xt.hasClearIcon}&`]:{paddingRight:39},[`.${xt.hasPopupIcon}.${xt.hasClearIcon}&`]:{paddingRight:65},[`& .${xt.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${xt.endAdornment}`]:{right:9}},[`& .${bo.root}.${Zn.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${xt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Jn.root}`]:{paddingTop:19,paddingLeft:8,[`.${xt.hasPopupIcon}&, .${xt.hasClearIcon}&`]:{paddingRight:39},[`.${xt.hasPopupIcon}.${xt.hasClearIcon}&`]:{paddingRight:65},[`& .${Jn.input}`]:{padding:"7px 4px"},[`& .${xt.endAdornment}`]:{right:9}},[`& .${Jn.root}.${Zn.sizeSmall}`]:{paddingBottom:1,[`& .${Jn.input}`]:{padding:"2.5px 4px"}},[`& .${Zn.hiddenLabel}`]:{paddingTop:8},[`& .${Jn.root}.${Zn.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${xt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Jn.root}.${Zn.hiddenLabel}.${Zn.sizeSmall}`]:{[`& .${xt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${xt.input}`]:z({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),JW=fe("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),eV=fe(Sa,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),tV=fe(Sa,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>z({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>z({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),rV=fe(gm,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${xt.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>z({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),nV=fe(io,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>z({},e.typography.body1,{overflow:"auto"})),iV=fe("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),oV=fe("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),aV=fe("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${xt.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${xt.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${xt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:St(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${xt.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:St(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${xt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:St(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),sV=fe(jD,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),lV=fe("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${xt.option}`]:{paddingLeft:24}}),uV=O.forwardRef(function(t,r){var n,i,o,a;const s=Qe({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:c=!1,autoSelect:f=!1,blurOnSelect:p=!1,ChipProps:v,className:h,clearIcon:g=dR||(dR=M.jsx(PD,{fontSize:"small"})),clearOnBlur:x=!s.freeSolo,clearOnEscape:y=!1,clearText:b="Clear",closeText:S="Close",componentsProps:_={},defaultValue:C=s.multiple?[]:null,disableClearable:k=!1,disableCloseOnSelect:T=!1,disabled:E=!1,disabledItemsFocusable:I=!1,disableListWrap:D=!1,disablePortal:A=!1,filterSelectedOptions:L=!1,forcePopupIcon:$="auto",freeSolo:B=!1,fullWidth:j=!1,getLimitTagsText:W=be=>`+${be}`,getOptionLabel:q,groupBy:Z,handleHomeEndKeys:V=!s.freeSolo,includeInputInList:G=!1,limitTags:N=-1,ListboxComponent:U="ul",ListboxProps:Q,loading:H=!1,loadingText:oe="Loading…",multiple:ve=!1,noOptionsText:te="No options",openOnFocus:ge=!1,openText:de="Open",PaperComponent:xe=io,PopperComponent:Me=gm,popupIcon:ue=pR||(pR=M.jsx(WD,{})),readOnly:Te=!1,renderGroup:Oe,renderInput:Ae,renderOption:we,renderTags:Mt,selectOnFocus:We=!s.freeSolo,size:dt="medium",slotProps:bt={}}=s,st=Re(s,KW),{getRootProps:et,getInputProps:_t,getInputLabelProps:Tt,getPopupIndicatorProps:lt,getClearProps:Nt,getTagProps:ne,getListboxProps:le,getOptionProps:he,value:pe,dirty:je,expanded:ht,id:De,popupOpen:Ue,focused:ot,focusedTag:Ee,anchorEl:Pe,setAnchorEl:tt,inputValue:Ge,groupedOptions:Et}=kW(z({},s,{componentName:"Autocomplete"})),er=!k&&!E&&je&&!Te,hr=(!B||$===!0)&&$!==!1,{onMouseDown:kr}=_t(),{ref:ui}=Q??{},on=le(),{ref:ao}=on,Yo=Re(on,XW),Ko=cr(ao,ui),so=q||(be=>{var Ne;return(Ne=be.label)!=null?Ne:be}),nr=z({},s,{disablePortal:A,expanded:ht,focused:ot,fullWidth:j,getOptionLabel:so,hasClearIcon:er,hasPopupIcon:hr,inputFocused:Ee===-1,popupOpen:Ue,size:dt}),Xt=QW(nr);let Rr;if(ve&&pe.length>0){const be=Ne=>z({className:Xt.tag,disabled:E},ne(Ne));Mt?Rr=Mt(pe,be,nr):Rr=pe.map((Ne,vt)=>M.jsx(FW,z({label:so(Ne),size:dt},be({index:vt}),v)))}if(N>-1&&Array.isArray(Rr)){const be=Rr.length-N;!ot&&be>0&&(Rr=Rr.splice(0,N),Rr.push(M.jsx("span",{className:Xt.tag,children:W(be)},Rr.length)))}const _n=Oe||(be=>M.jsxs("li",{children:[M.jsx(sV,{className:Xt.groupLabel,ownerState:nr,component:"div",children:be.group}),M.jsx(lV,{className:Xt.groupUl,ownerState:nr,children:be.children})]},be.key)),Sn=we||((be,Ne)=>M.jsx("li",z({},be,{children:so(Ne)}))),uo=(be,Ne)=>{const vt=he({option:be,index:Ne});return Sn(z({},vt,{className:Xt.option}),be,{selected:vt["aria-selected"],index:Ne,inputValue:Ge},nr)},an=(n=bt.clearIndicator)!=null?n:_.clearIndicator,ci=(i=bt.paper)!=null?i:_.paper,se=(o=bt.popper)!=null?o:_.popper,ae=(a=bt.popupIndicator)!=null?a:_.popupIndicator;return M.jsxs(O.Fragment,{children:[M.jsx(ZW,z({ref:r,className:Se(Xt.root,h),ownerState:nr},et(st),{children:Ae({id:De,disabled:E,fullWidth:!0,size:dt==="small"?"small":void 0,InputLabelProps:Tt(),InputProps:z({ref:tt,className:Xt.inputRoot,startAdornment:Rr,onClick:be=>{be.target===be.currentTarget&&kr(be)}},(er||hr)&&{endAdornment:M.jsxs(JW,{className:Xt.endAdornment,ownerState:nr,children:[er?M.jsx(eV,z({},Nt(),{"aria-label":b,title:b,ownerState:nr},an,{className:Se(Xt.clearIndicator,an==null?void 0:an.className),children:g})):null,hr?M.jsx(tV,z({},lt(),{disabled:E,"aria-label":Ue?S:de,title:Ue?S:de,ownerState:nr},ae,{className:Se(Xt.popupIndicator,ae==null?void 0:ae.className),children:ue})):null]})}),inputProps:z({className:Xt.input,disabled:E,readOnly:Te},_t())})})),Pe?M.jsx(rV,z({as:Me,disablePortal:A,style:{width:Pe?Pe.clientWidth:null},ownerState:nr,role:"presentation",anchorEl:Pe,open:Ue},se,{className:Se(Xt.popper,se==null?void 0:se.className),children:M.jsxs(nV,z({ownerState:nr,as:xe},ci,{className:Se(Xt.paper,ci==null?void 0:ci.className),children:[H&&Et.length===0?M.jsx(iV,{className:Xt.loading,ownerState:nr,children:oe}):null,Et.length===0&&!B&&!H?M.jsx(oV,{className:Xt.noOptions,ownerState:nr,role:"presentation",onMouseDown:be=>{be.preventDefault()},children:te}):null,Et.length>0?M.jsx(aV,z({as:U,className:Xt.listbox,ownerState:nr},Yo,Q,{ref:Ko,children:Et.map((be,Ne)=>Z?_n({key:be.key,group:be.group,children:be.options.map((vt,ir)=>uo(vt,be.index+ir))}):uo(be,Ne))})):null]}))})):null]})}),cV=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],fV={entering:{opacity:1},entered:{opacity:1}},dV=O.forwardRef(function(t,r){const n=Ho(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:s,easing:l,in:c,onEnter:f,onEntered:p,onEntering:v,onExit:h,onExited:g,onExiting:x,style:y,timeout:b=i,TransitionComponent:S=Oi}=t,_=Re(t,cV),C=O.useRef(null),k=cr(C,s.ref,r),T=j=>W=>{if(j){const q=C.current;W===void 0?j(q):j(q,W)}},E=T(v),I=T((j,W)=>{vS(j);const q=vs({style:y,timeout:b,easing:l},{mode:"enter"});j.style.webkitTransition=n.transitions.create("opacity",q),j.style.transition=n.transitions.create("opacity",q),f&&f(j,W)}),D=T(p),A=T(x),L=T(j=>{const W=vs({style:y,timeout:b,easing:l},{mode:"exit"});j.style.webkitTransition=n.transitions.create("opacity",W),j.style.transition=n.transitions.create("opacity",W),h&&h(j)}),$=T(g),B=j=>{o&&o(C.current,j)};return M.jsx(S,z({appear:a,in:c,nodeRef:C,onEnter:I,onEntered:D,onEntering:E,onExit:L,onExited:$,onExiting:A,addEndListener:B,timeout:b},_,{children:(j,W)=>O.cloneElement(s,z({style:z({opacity:0,visibility:j==="exited"&&!c?"hidden":void 0},fV[j],y,s.props.style),ref:k},W))}))});function pV(e){return Ye("MuiBackdrop",e)}Xe("MuiBackdrop",["root","invisible"]);const hV=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],vV=e=>{const{classes:t,invisible:r}=e;return Ke({root:["root",r&&"invisible"]},pV,t)},gV=fe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>z({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"},e.invisible&&{backgroundColor:"transparent"})),mV=O.forwardRef(function(t,r){var n,i,o;const a=Qe({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:c="div",components:f={},componentsProps:p={},invisible:v=!1,open:h,slotProps:g={},slots:x={},TransitionComponent:y=dV,transitionDuration:b}=a,S=Re(a,hV),_=z({},a,{component:c,invisible:v}),C=vV(_),k=(n=g.root)!=null?n:p.root;return M.jsx(y,z({in:h,timeout:b},S,{children:M.jsx(gV,z({"aria-hidden":!0},k,{as:(i=(o=x.root)!=null?o:f.Root)!=null?i:c,className:Se(C.root,l,k==null?void 0:k.className),ownerState:z({},_,k==null?void 0:k.ownerState),classes:C,ref:r,children:s}))}))}),yV=fS(),Ct=aj({themeId:Pl,defaultTheme:yV,defaultClassName:"MuiBox-root",generateClassName:X_.generate});function xV(e){return Ye("MuiButton",e)}const Yh=Xe("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),bV=O.createContext({}),_V=O.createContext(void 0),SV=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],wV=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:o,classes:a}=e,s={root:["root",o,`${o}${ce(t)}`,`size${ce(i)}`,`${o}Size${ce(i)}`,t==="inherit"&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${ce(i)}`],endIcon:["endIcon",`iconSize${ce(i)}`]},l=Ke(s,xV,a);return z({},a,l)},VD=e=>z({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),CV=fe(ma,{shouldForwardProp:e=>no(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${ce(r.color)}`],t[`size${ce(r.size)}`],t[`${r.variant}Size${ce(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return z({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":z({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:St(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:St(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:St(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":z({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Yh.focusVisible}`]:z({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Yh.disabled}`]:z({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${St(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Yh.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Yh.disabled}`]:{boxShadow:"none"}}),TV=fe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${ce(r.size)}`]]}})(({ownerState:e})=>z({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},VD(e))),kV=fe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${ce(r.size)}`]]}})(({ownerState:e})=>z({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},VD(e))),Fo=O.forwardRef(function(t,r){const n=O.useContext(bV),i=O.useContext(_V),o=K_(n,t),a=Qe({props:o,name:"MuiButton"}),{children:s,color:l="primary",component:c="button",className:f,disabled:p=!1,disableElevation:v=!1,disableFocusRipple:h=!1,endIcon:g,focusVisibleClassName:x,fullWidth:y=!1,size:b="medium",startIcon:S,type:_,variant:C="text"}=a,k=Re(a,SV),T=z({},a,{color:l,component:c,disabled:p,disableElevation:v,disableFocusRipple:h,fullWidth:y,size:b,type:_,variant:C}),E=wV(T),I=S&&M.jsx(TV,{className:E.startIcon,ownerState:T,children:S}),D=g&&M.jsx(kV,{className:E.endIcon,ownerState:T,children:g}),A=i||"";return M.jsxs(CV,z({ownerState:T,className:Se(n.className,E.root,f,A),component:c,disabled:p,focusRipple:!h,focusVisibleClassName:Se(E.focusVisible,x),ref:r,type:_},k,{classes:E,children:[I,s,D]}))});function RV(e){return Ye("PrivateSwitchBase",e)}Xe("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const EV=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],PV=e=>{const{classes:t,checked:r,disabled:n,edge:i}=e,o={root:["root",r&&"checked",n&&"disabled",i&&`edge${ce(i)}`],input:["input"]};return Ke(o,RV,t)},MV=fe(ma)(({ownerState:e})=>z({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),IV=fe("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),UD=O.forwardRef(function(t,r){const{autoFocus:n,checked:i,checkedIcon:o,className:a,defaultChecked:s,disabled:l,disableFocusRipple:c=!1,edge:f=!1,icon:p,id:v,inputProps:h,inputRef:g,name:x,onBlur:y,onChange:b,onFocus:S,readOnly:_,required:C=!1,tabIndex:k,type:T,value:E}=t,I=Re(t,EV),[D,A]=da({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),L=Wo(),$=G=>{S&&S(G),L&&L.onFocus&&L.onFocus(G)},B=G=>{y&&y(G),L&&L.onBlur&&L.onBlur(G)},j=G=>{if(G.nativeEvent.defaultPrevented)return;const N=G.target.checked;A(N),b&&b(G,N)};let W=l;L&&typeof W>"u"&&(W=L.disabled);const q=T==="checkbox"||T==="radio",Z=z({},t,{checked:D,disabled:W,disableFocusRipple:c,edge:f}),V=PV(Z);return M.jsxs(MV,z({component:"span",className:Se(V.root,a),centerRipple:!0,focusRipple:!c,disabled:W,tabIndex:null,role:void 0,onFocus:$,onBlur:B,ownerState:Z,ref:r},I,{children:[M.jsx(IV,z({autoFocus:n,checked:i,defaultChecked:s,className:V.input,disabled:W,id:q?v:void 0,name:x,onChange:j,readOnly:_,ref:g,required:C,ownerState:Z,tabIndex:k,type:T},T==="checkbox"&&E===void 0?{}:{value:E},h)),D?o:p]}))}),AV=xn(M.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"),DV=xn(M.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"),LV=xn(M.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 OV(e){return Ye("MuiCheckbox",e)}const u1=Xe("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),NV=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],zV=e=>{const{classes:t,indeterminate:r,color:n,size:i}=e,o={root:["root",r&&"indeterminate",`color${ce(n)}`,`size${ce(i)}`]},a=Ke(o,OV,t);return z({},t,a)},$V=fe(UD,{shouldForwardProp:e=>no(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,r.color!=="default"&&t[`color${ce(r.color)}`]]}})(({theme:e,ownerState:t})=>z({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:St(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${u1.checked}, &.${u1.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${u1.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),FV=M.jsx(DV,{}),BV=M.jsx(AV,{}),jV=M.jsx(LV,{}),yb=O.forwardRef(function(t,r){var n,i;const o=Qe({props:t,name:"MuiCheckbox"}),{checkedIcon:a=FV,color:s="primary",icon:l=BV,indeterminate:c=!1,indeterminateIcon:f=jV,inputProps:p,size:v="medium",className:h}=o,g=Re(o,NV),x=c?f:l,y=c?f:a,b=z({},o,{color:s,indeterminate:c,size:v}),S=zV(b);return M.jsx($V,z({type:"checkbox",inputProps:z({"data-indeterminate":c},p),icon:O.cloneElement(x,{fontSize:(n=x.props.fontSize)!=null?n:v}),checkedIcon:O.cloneElement(y,{fontSize:(i=y.props.fontSize)!=null?i:v}),ownerState:b,ref:r,className:Se(S.root,h)},g,{classes:S}))}),Sp=Ij({createStyledComponent:fe("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${ce(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>Qe({props:e,name:"MuiContainer"})}),HV=(e,t)=>z({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),WV=e=>z({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),VV=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([a,s])=>{var l;n[e.getColorSchemeSelector(a).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let i=z({html:HV(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:z({margin:0},WV(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const o=(r=e.components)==null||(r=r.MuiCssBaseline)==null?void 0:r.styleOverrides;return o&&(i=[i,o]),i};function GD(e){const t=Qe({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return M.jsxs(O.Fragment,{children:[M.jsx(HD,{styles:i=>VV(i,n)}),r]})}function UV(e){return Ye("MuiModal",e)}Xe("MuiModal",["root","hidden","backdrop"]);const GV=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],qV=e=>{const{open:t,exited:r,classes:n}=e;return Ke({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},UV,n)},YV=fe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>z({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),KV=fe(mV,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),RS=O.forwardRef(function(t,r){var n,i,o,a,s,l;const c=Qe({name:"MuiModal",props:t}),{BackdropComponent:f=KV,BackdropProps:p,className:v,closeAfterTransition:h=!1,children:g,container:x,component:y,components:b={},componentsProps:S={},disableAutoFocus:_=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:k=!1,disablePortal:T=!1,disableRestoreFocus:E=!1,disableScrollLock:I=!1,hideBackdrop:D=!1,keepMounted:A=!1,onBackdropClick:L,open:$,slotProps:B,slots:j}=c,W=Re(c,GV),q=z({},c,{closeAfterTransition:h,disableAutoFocus:_,disableEnforceFocus:C,disableEscapeKeyDown:k,disablePortal:T,disableRestoreFocus:E,disableScrollLock:I,hideBackdrop:D,keepMounted:A}),{getRootProps:Z,getBackdropProps:V,getTransitionProps:G,portalRef:N,isTopModal:U,exited:Q,hasTransition:H}=yW(z({},q,{rootRef:r})),oe=z({},q,{exited:Q}),ve=qV(oe),te={};if(g.props.tabIndex===void 0&&(te.tabIndex="-1"),H){const{onEnter:Oe,onExited:Ae}=G();te.onEnter=Oe,te.onExited=Ae}const ge=(n=(i=j==null?void 0:j.root)!=null?i:b.Root)!=null?n:YV,de=(o=(a=j==null?void 0:j.backdrop)!=null?a:b.Backdrop)!=null?o:f,xe=(s=B==null?void 0:B.root)!=null?s:S.root,Me=(l=B==null?void 0:B.backdrop)!=null?l:S.backdrop,ue=to({elementType:ge,externalSlotProps:xe,externalForwardedProps:W,getSlotProps:Z,additionalProps:{ref:r,as:y},ownerState:oe,className:Se(v,xe==null?void 0:xe.className,ve==null?void 0:ve.root,!oe.open&&oe.exited&&(ve==null?void 0:ve.hidden))}),Te=to({elementType:de,externalSlotProps:Me,additionalProps:p,getSlotProps:Oe=>V(z({},Oe,{onClick:Ae=>{L&&L(Ae),Oe!=null&&Oe.onClick&&Oe.onClick(Ae)}})),className:Se(Me==null?void 0:Me.className,p==null?void 0:p.className,ve==null?void 0:ve.backdrop),ownerState:oe});return!A&&!$&&(!H||Q)?null:M.jsx(BD,{ref:N,container:x,disablePortal:T,children:M.jsxs(ge,z({},ue,{children:[!D&&f?M.jsx(de,z({},Te)):null,M.jsx(q9,{disableEnforceFocus:C,disableAutoFocus:_,disableRestoreFocus:E,isEnabled:U,open:$,children:O.cloneElement(g,te)})]}))})});function XV(e){return Ye("MuiDivider",e)}Xe("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const QV=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],ZV=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:o,orientation:a,textAlign:s,variant:l}=e;return Ke({root:["root",t&&"absolute",l,o&&"light",a==="vertical"&&"vertical",i&&"flexItem",r&&"withChildren",r&&a==="vertical"&&"withChildrenVertical",s==="right"&&a!=="vertical"&&"textAlignRight",s==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},XV,n)},JV=fe("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>z({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:St(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>z({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>z({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>z({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>z({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),e7=fe("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>z({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Du=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:a,component:s=o?"div":"hr",flexItem:l=!1,light:c=!1,orientation:f="horizontal",role:p=s!=="hr"?"separator":void 0,textAlign:v="center",variant:h="fullWidth"}=n,g=Re(n,QV),x=z({},n,{absolute:i,component:s,flexItem:l,light:c,orientation:f,role:p,textAlign:v,variant:h}),y=ZV(x);return M.jsx(JV,z({as:s,className:Se(y.root,a),role:p,ref:r,ownerState:x},g,{children:o?M.jsx(e7,{className:y.wrapper,ownerState:x,children:o}):null}))});Du.muiSkipListHighlight=!0;const t7=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function r7(e,t,r){const n=t.getBoundingClientRect(),i=r&&r.getBoundingClientRect(),o=Ai(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const c=o.getComputedStyle(t);a=c.getPropertyValue("-webkit-transform")||c.getPropertyValue("transform")}let s=0,l=0;if(a&&a!=="none"&&typeof a=="string"){const c=a.split("(")[1].split(")")[0].split(",");s=parseInt(c[4],10),l=parseInt(c[5],10)}return e==="left"?i?`translateX(${i.right+s-n.left}px)`:`translateX(${o.innerWidth+s-n.left}px)`:e==="right"?i?`translateX(-${n.right-i.left-s}px)`:`translateX(-${n.left+n.width-s}px)`:e==="up"?i?`translateY(${i.bottom+l-n.top}px)`:`translateY(${o.innerHeight+l-n.top}px)`:i?`translateY(-${n.top-i.top+n.height-l}px)`:`translateY(-${n.top+n.height-l}px)`}function n7(e){return typeof e=="function"?e():e}function Kh(e,t,r){const n=n7(r),i=r7(e,t,n);i&&(t.style.webkitTransform=i,t.style.transform=i)}const i7=O.forwardRef(function(t,r){const n=Ho(),i={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:l,container:c,direction:f="down",easing:p=i,in:v,onEnter:h,onEntered:g,onEntering:x,onExit:y,onExited:b,onExiting:S,style:_,timeout:C=o,TransitionComponent:k=Oi}=t,T=Re(t,t7),E=O.useRef(null),I=cr(l.ref,E,r),D=V=>G=>{V&&(G===void 0?V(E.current):V(E.current,G))},A=D((V,G)=>{Kh(f,V,c),vS(V),h&&h(V,G)}),L=D((V,G)=>{const N=vs({timeout:C,style:_,easing:p},{mode:"enter"});V.style.webkitTransition=n.transitions.create("-webkit-transform",z({},N)),V.style.transition=n.transitions.create("transform",z({},N)),V.style.webkitTransform="none",V.style.transform="none",x&&x(V,G)}),$=D(g),B=D(S),j=D(V=>{const G=vs({timeout:C,style:_,easing:p},{mode:"exit"});V.style.webkitTransition=n.transitions.create("-webkit-transform",G),V.style.transition=n.transitions.create("transform",G),Kh(f,V,c),y&&y(V)}),W=D(V=>{V.style.webkitTransition="",V.style.transition="",b&&b(V)}),q=V=>{a&&a(E.current,V)},Z=O.useCallback(()=>{E.current&&Kh(f,E.current,c)},[f,c]);return O.useEffect(()=>{if(v||f==="down"||f==="right")return;const V=hc(()=>{E.current&&Kh(f,E.current,c)}),G=Ai(E.current);return G.addEventListener("resize",V),()=>{V.clear(),G.removeEventListener("resize",V)}},[f,v,c]),O.useEffect(()=>{v||Z()},[v,Z]),M.jsx(k,z({nodeRef:E,onEnter:A,onEntered:$,onEntering:L,onExit:j,onExited:W,onExiting:B,addEndListener:q,appear:s,in:v,timeout:C},T,{children:(V,G)=>O.cloneElement(l,z({ref:I,style:z({visibility:V==="exited"&&!v?"hidden":void 0},_,l.props.style)},G))}))});function o7(e){return Ye("MuiDrawer",e)}Xe("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const a7=["BackdropProps"],s7=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],qD=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},l7=e=>{const{classes:t,anchor:r,variant:n}=e,i={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ce(r)}`,n!=="temporary"&&`paperAnchorDocked${ce(r)}`]};return Ke(i,o7,t)},u7=fe(RS,{name:"MuiDrawer",slot:"Root",overridesResolver:qD})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),hR=fe("div",{shouldForwardProp:no,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:qD})({flex:"0 0 auto"}),c7=fe(io,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${ce(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${ce(r.anchor)}`]]}})(({theme:e,ownerState:t})=>z({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},t.anchor==="left"&&{left:0},t.anchor==="top"&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="right"&&{right:0},t.anchor==="bottom"&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},t.anchor==="left"&&t.variant!=="temporary"&&{borderRight:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="top"&&t.variant!=="temporary"&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="right"&&t.variant!=="temporary"&&{borderLeft:`1px solid ${(e.vars||e).palette.divider}`},t.anchor==="bottom"&&t.variant!=="temporary"&&{borderTop:`1px solid ${(e.vars||e).palette.divider}`})),YD={left:"right",right:"left",top:"down",bottom:"up"};function f7(e){return["left","right"].indexOf(e)!==-1}function d7(e,t){return e.direction==="rtl"&&f7(t)?YD[t]:t}const p7=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiDrawer"}),i=Ho(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:s,children:l,className:c,elevation:f=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:v}={},onClose:h,open:g=!1,PaperProps:x={},SlideProps:y,TransitionComponent:b=i7,transitionDuration:S=o,variant:_="temporary"}=n,C=Re(n.ModalProps,a7),k=Re(n,s7),T=O.useRef(!1);O.useEffect(()=>{T.current=!0},[]);const E=d7(i,a),D=z({},n,{anchor:a,elevation:f,open:g,variant:_},k),A=l7(D),L=M.jsx(c7,z({elevation:_==="temporary"?f:0,square:!0},x,{className:Se(A.paper,x.className),ownerState:D,children:l}));if(_==="permanent")return M.jsx(hR,z({className:Se(A.root,A.docked,c),ownerState:D,ref:r},k,{children:L}));const $=M.jsx(b,z({in:g,direction:YD[E],timeout:S,appear:T.current},y,{children:L}));return _==="persistent"?M.jsx(hR,z({className:Se(A.root,A.docked,c),ownerState:D,ref:r},k,{children:$})):M.jsx(u7,z({BackdropProps:z({},s,v,{transitionDuration:S}),className:Se(A.root,A.modal,c),open:g,ownerState:D,onClose:h,hideBackdrop:p,ref:r},k,C,{children:$}))}),h7=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],v7=e=>{const{classes:t,disableUnderline:r}=e,i=Ke({root:["root",!r&&"underline"],input:["input"]},qW,t);return z({},t,i)},g7=fe(bm,{shouldForwardProp:e=>no(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ym(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n=e.palette.mode==="light",i=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return z({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,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:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${Jn.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Jn.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(r=(e.vars||e).palette[t.color||"primary"])==null?void 0:r.main}`,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"},[`&.${Jn.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Jn.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:i}`,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(.${Jn.disabled}, .${Jn.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Jn.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&z({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),m7=fe(_m,{name:"MuiFilledInput",slot:"Input",overridesResolver:xm})(({theme:e,ownerState:t})=>z({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"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),ES=O.forwardRef(function(t,r){var n,i,o,a;const s=Qe({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:c,fullWidth:f=!1,inputComponent:p="input",multiline:v=!1,slotProps:h,slots:g={},type:x="text"}=s,y=Re(s,h7),b=z({},s,{fullWidth:f,inputComponent:p,multiline:v,type:x}),S=v7(s),_={root:{ownerState:b},input:{ownerState:b}},C=h??c?On(h??c,_):_,k=(n=(i=g.root)!=null?i:l.Root)!=null?n:g7,T=(o=(a=g.input)!=null?a:l.Input)!=null?o:m7;return M.jsx(kS,z({slots:{root:k,input:T},componentsProps:C,fullWidth:f,inputComponent:p,multiline:v,ref:r,type:x},y,{classes:S}))});ES.muiName="Input";function y7(e){return Ye("MuiFormControl",e)}Xe("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const x7=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],b7=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${ce(r)}`,n&&"fullWidth"]};return Ke(i,y7,t)},_7=fe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>z({},t.root,t[`margin${ce(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>z({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),PS=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiFormControl"}),{children:i,className:o,color:a="primary",component:s="div",disabled:l=!1,error:c=!1,focused:f,fullWidth:p=!1,hiddenLabel:v=!1,margin:h="none",required:g=!1,size:x="medium",variant:y="outlined"}=n,b=Re(n,x7),S=z({},n,{color:a,component:s,disabled:l,error:c,fullWidth:p,hiddenLabel:v,margin:h,required:g,size:x,variant:y}),_=b7(S),[C,k]=O.useState(()=>{let B=!1;return i&&O.Children.forEach(i,j=>{if(!sd(j,["Input","Select"]))return;const W=sd(j,["Select"])?j.props.input:j;W&&BW(W.props)&&(B=!0)}),B}),[T,E]=O.useState(()=>{let B=!1;return i&&O.Children.forEach(i,j=>{sd(j,["Input","Select"])&&(mg(j.props,!0)||mg(j.props.inputProps,!0))&&(B=!0)}),B}),[I,D]=O.useState(!1);l&&I&&D(!1);const A=f!==void 0&&!l?f:I;let L;const $=O.useMemo(()=>({adornedStart:C,setAdornedStart:k,color:a,disabled:l,error:c,filled:T,focused:A,fullWidth:p,hiddenLabel:v,size:x,onBlur:()=>{D(!1)},onEmpty:()=>{E(!1)},onFilled:()=>{E(!0)},onFocus:()=>{D(!0)},registerEffect:L,required:g,variant:y}),[C,a,l,c,T,A,p,v,L,g,x,y]);return M.jsx(mm.Provider,{value:$,children:M.jsx(_7,z({as:s,ownerState:S,className:Se(_.root,o),ref:r},b,{children:i}))})}),KD=Fj({createStyledComponent:fe("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Qe({props:e,name:"MuiStack"})});function S7(e){return Ye("MuiFormControlLabel",e)}const Xf=Xe("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),w7=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],C7=e=>{const{classes:t,disabled:r,labelPlacement:n,error:i,required:o}=e,a={root:["root",r&&"disabled",`labelPlacement${ce(n)}`,i&&"error",o&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return Ke(a,S7,t)},T7=fe("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Xf.label}`]:t.label},t.root,t[`labelPlacement${ce(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>z({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Xf.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Xf.label}`]:{[`&.${Xf.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),k7=fe("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Xf.error}`]:{color:(e.vars||e).palette.error.main}})),XD=O.forwardRef(function(t,r){var n,i;const o=Qe({props:t,name:"MuiFormControlLabel"}),{className:a,componentsProps:s={},control:l,disabled:c,disableTypography:f,label:p,labelPlacement:v="end",required:h,slotProps:g={}}=o,x=Re(o,w7),y=Wo(),b=(n=c??l.props.disabled)!=null?n:y==null?void 0:y.disabled,S=h??l.props.required,_={disabled:b,required:S};["checked","name","onChange","value","inputRef"].forEach(D=>{typeof l.props[D]>"u"&&typeof o[D]<"u"&&(_[D]=o[D])});const C=Ss({props:o,muiFormControl:y,states:["error"]}),k=z({},o,{disabled:b,labelPlacement:v,required:S,error:C.error}),T=C7(k),E=(i=g.typography)!=null?i:s.typography;let I=p;return I!=null&&I.type!==gt&&!f&&(I=M.jsx(gt,z({component:"span"},E,{className:Se(T.label,E==null?void 0:E.className),children:I}))),M.jsxs(T7,z({className:Se(T.root,a),ownerState:k,ref:r},x,{children:[O.cloneElement(l,_),S?M.jsxs(KD,{direction:"row",alignItems:"center",children:[I,M.jsxs(k7,{ownerState:k,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]}):I]}))});function R7(e){return Ye("MuiFormGroup",e)}Xe("MuiFormGroup",["root","row","error"]);const E7=["className","row"],P7=e=>{const{classes:t,row:r,error:n}=e;return Ke({root:["root",r&&"row",n&&"error"]},R7,t)},M7=fe("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>z({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),QD=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiFormGroup"}),{className:i,row:o=!1}=n,a=Re(n,E7),s=Wo(),l=Ss({props:n,muiFormControl:s,states:["error"]}),c=z({},n,{row:o,error:l.error}),f=P7(c);return M.jsx(M7,z({className:Se(f.root,i),ownerState:c,ref:r},a))});function I7(e){return Ye("MuiFormHelperText",e)}const vR=Xe("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var gR;const A7=["children","className","component","disabled","error","filled","focused","margin","required","variant"],D7=e=>{const{classes:t,contained:r,size:n,disabled:i,error:o,filled:a,focused:s,required:l}=e,c={root:["root",i&&"disabled",o&&"error",n&&`size${ce(n)}`,r&&"contained",s&&"focused",a&&"filled",l&&"required"]};return Ke(c,I7,t)},L7=fe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${ce(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>z({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${vR.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${vR.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),O7=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:a="p"}=n,s=Re(n,A7),l=Wo(),c=Ss({props:n,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),f=z({},n,{component:a,contained:c.variant==="filled"||c.variant==="outlined",variant:c.variant,size:c.size,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),p=D7(f);return M.jsx(L7,z({as:a,ownerState:f,className:Se(p.root,o),ref:r},s,{children:i===" "?gR||(gR=M.jsx("span",{className:"notranslate",children:"​"})):i}))});function N7(e){return Ye("MuiFormLabel",e)}const pd=Xe("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),z7=["children","className","color","component","disabled","error","filled","focused","required"],$7=e=>{const{classes:t,color:r,focused:n,disabled:i,error:o,filled:a,required:s}=e,l={root:["root",`color${ce(r)}`,i&&"disabled",o&&"error",a&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",o&&"error"]};return Ke(l,N7,t)},F7=fe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>z({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>z({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${pd.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${pd.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${pd.error}`]:{color:(e.vars||e).palette.error.main}})),B7=fe("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${pd.error}`]:{color:(e.vars||e).palette.error.main}})),j7=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiFormLabel"}),{children:i,className:o,component:a="label"}=n,s=Re(n,z7),l=Wo(),c=Ss({props:n,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),f=z({},n,{color:c.color||"primary",component:a,disabled:c.disabled,error:c.error,filled:c.filled,focused:c.focused,required:c.required}),p=$7(f);return M.jsxs(F7,z({as:a,ownerState:f,className:Se(p.root,o),ref:r},s,{children:[i,c.required&&M.jsxs(B7,{ownerState:f,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}))}),H7=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function xb(e){return`scale(${e}, ${e**2})`}const W7={entering:{opacity:1,transform:xb(1)},entered:{opacity:1,transform:"none"}},c1=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),yg=O.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:o,easing:a,in:s,onEnter:l,onEntered:c,onEntering:f,onExit:p,onExited:v,onExiting:h,style:g,timeout:x="auto",TransitionComponent:y=Oi}=t,b=Re(t,H7),S=O.useRef(),_=O.useRef(),C=Ho(),k=O.useRef(null),T=cr(k,o.ref,r),E=W=>q=>{if(W){const Z=k.current;q===void 0?W(Z):W(Z,q)}},I=E(f),D=E((W,q)=>{vS(W);const{duration:Z,delay:V,easing:G}=vs({style:g,timeout:x,easing:a},{mode:"enter"});let N;x==="auto"?(N=C.transitions.getAutoHeightDuration(W.clientHeight),_.current=N):N=Z,W.style.transition=[C.transitions.create("opacity",{duration:N,delay:V}),C.transitions.create("transform",{duration:c1?N:N*.666,delay:V,easing:G})].join(","),l&&l(W,q)}),A=E(c),L=E(h),$=E(W=>{const{duration:q,delay:Z,easing:V}=vs({style:g,timeout:x,easing:a},{mode:"exit"});let G;x==="auto"?(G=C.transitions.getAutoHeightDuration(W.clientHeight),_.current=G):G=q,W.style.transition=[C.transitions.create("opacity",{duration:G,delay:Z}),C.transitions.create("transform",{duration:c1?G:G*.666,delay:c1?Z:Z||G*.333,easing:V})].join(","),W.style.opacity=0,W.style.transform=xb(.75),p&&p(W)}),B=E(v),j=W=>{x==="auto"&&(S.current=setTimeout(W,_.current||0)),n&&n(k.current,W)};return O.useEffect(()=>()=>{clearTimeout(S.current)},[]),M.jsx(y,z({appear:i,in:s,nodeRef:k,onEnter:D,onEntered:A,onEntering:I,onExit:$,onExited:B,onExiting:L,addEndListener:j,timeout:x==="auto"?null:x},b,{children:(W,q)=>O.cloneElement(o,z({style:z({opacity:0,transform:xb(.75),visibility:W==="exited"&&!s?"hidden":void 0},W7[W],g,o.props.style),ref:T},q))}))});yg.muiSupportAuto=!0;const V7=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],U7=e=>{const{classes:t,disableUnderline:r}=e,i=Ke({root:["root",!r&&"underline"],input:["input"]},UW,t);return z({},t,i)},G7=fe(bm,{shouldForwardProp:e=>no(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...ym(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),z({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,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"},[`&.${is.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${is.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(.${is.disabled}, .${is.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${is.disabled}:before`]:{borderBottomStyle:"dotted"}})}),q7=fe(_m,{name:"MuiInput",slot:"Input",overridesResolver:xm})({}),MS=O.forwardRef(function(t,r){var n,i,o,a;const s=Qe({props:t,name:"MuiInput"}),{disableUnderline:l,components:c={},componentsProps:f,fullWidth:p=!1,inputComponent:v="input",multiline:h=!1,slotProps:g,slots:x={},type:y="text"}=s,b=Re(s,V7),S=U7(s),C={root:{ownerState:{disableUnderline:l}}},k=g??f?On(g??f,C):C,T=(n=(i=x.root)!=null?i:c.Root)!=null?n:G7,E=(o=(a=x.input)!=null?a:c.Input)!=null?o:q7;return M.jsx(kS,z({slots:{root:T,input:E},slotProps:k,fullWidth:p,inputComponent:v,multiline:h,ref:r,type:y},b,{classes:S}))});MS.muiName="Input";function Y7(e){return Ye("MuiInputAdornment",e)}const mR=Xe("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var yR;const K7=["children","className","component","disablePointerEvents","disableTypography","position","variant"],X7=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${ce(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},Q7=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:i,size:o,variant:a}=e,s={root:["root",r&&"disablePointerEvents",i&&`position${ce(i)}`,a,n&&"hiddenLabel",o&&`size${ce(o)}`]};return Ke(s,Y7,t)},Z7=fe("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:X7})(({theme:e,ownerState:t})=>z({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${mR.positionStart}&:not(.${mR.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),J7=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiInputAdornment"}),{children:i,className:o,component:a="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:c,variant:f}=n,p=Re(n,K7),v=Wo()||{};let h=f;f&&v.variant,v&&!h&&(h=v.variant);const g=z({},n,{hiddenLabel:v.hiddenLabel,size:v.size,disablePointerEvents:s,position:c,variant:h}),x=Q7(g);return M.jsx(mm.Provider,{value:null,children:M.jsx(Z7,z({as:a,ownerState:g,className:Se(x.root,o),ref:r},p,{children:typeof i=="string"&&!l?M.jsx(gt,{color:"text.secondary",children:i}):M.jsxs(O.Fragment,{children:[c==="start"?yR||(yR=M.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})});function eU(e){return Ye("MuiInputLabel",e)}Xe("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const tU=["disableAnimation","margin","shrink","variant","className"],rU=e=>{const{classes:t,formControl:r,size:n,shrink:i,disableAnimation:o,variant:a,required:s}=e,l={root:["root",r&&"formControl",!o&&"animated",i&&"shrink",n&&n!=="normal"&&`size${ce(n)}`,a],asterisk:[s&&"asterisk"]},c=Ke(l,eU,t);return z({},t,c)},nU=fe(j7,{shouldForwardProp:e=>no(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${pd.asterisk}`]:t.asterisk},t.root,r.formControl&&t.formControl,r.size==="small"&&t.sizeSmall,r.shrink&&t.shrink,!r.disableAnimation&&t.animated,t[r.variant]]}})(({theme:e,ownerState:t})=>z({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&z({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&z({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&z({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Sm=O.forwardRef(function(t,r){const n=Qe({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:o,className:a}=n,s=Re(n,tU),l=Wo();let c=o;typeof c>"u"&&l&&(c=l.filled||l.focused||l.adornedStart);const f=Ss({props:n,muiFormControl:l,states:["size","variant","required"]}),p=z({},n,{disableAnimation:i,formControl:l,shrink:c,size:f.size,variant:f.variant,required:f.required}),v=rU(p);return M.jsx(nU,z({"data-shrink":c,ownerState:p,ref:r,className:Se(v.root,a)},s,{classes:v}))});function iU(e){return Ye("MuiLink",e)}const oU=Xe("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),ZD={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},aU=e=>ZD[e]||e,sU=({theme:e,ownerState:t})=>{const r=aU(t.color),n=ic(e,`palette.${r}`,!1)||t.color,i=ic(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:St(n,.4)},lU=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],uU=e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e,o={root:["root",`underline${ce(i)}`,r==="button"&&"button",n&&"focusVisible"]};return Ke(o,iU,t)},cU=fe(gt,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${ce(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>z({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&z({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:sU({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${oU.focusVisible}`]:{outline:"auto"}})),Or=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiLink"}),{className:i,color:o="primary",component:a="a",onBlur:s,onFocus:l,TypographyClasses:c,underline:f="always",variant:p="inherit",sx:v}=n,h=Re(n,lU),{isFocusVisibleRef:g,onBlur:x,onFocus:y,ref:b}=em(),[S,_]=O.useState(!1),C=cr(r,b),k=D=>{x(D),g.current===!1&&_(!1),s&&s(D)},T=D=>{y(D),g.current===!0&&_(!0),l&&l(D)},E=z({},n,{color:o,component:a,focusVisible:S,underline:f,variant:p}),I=uU(E);return M.jsx(cU,z({color:o,className:Se(I.root,i),classes:c,component:a,onBlur:k,onFocus:T,ref:C,ownerState:E,variant:p,sx:[...Object.keys(ZD).includes(o)?[]:[{color:o}],...Array.isArray(v)?v:[v]]},h))}),hd=O.createContext({});function fU(e){return Ye("MuiList",e)}Xe("MuiList",["root","padding","dense","subheader"]);const dU=["children","className","component","dense","disablePadding","subheader"],pU=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return Ke({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},fU,t)},hU=fe("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>z({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),JD=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiList"}),{children:i,className:o,component:a="ul",dense:s=!1,disablePadding:l=!1,subheader:c}=n,f=Re(n,dU),p=O.useMemo(()=>({dense:s}),[s]),v=z({},n,{component:a,dense:s,disablePadding:l}),h=pU(v);return M.jsx(hd.Provider,{value:p,children:M.jsxs(hU,z({as:a,className:Se(h.root,o),ref:r,ownerState:v},f,{children:[c,i]}))})});function vU(e){return Ye("MuiListItem",e)}const Lu=Xe("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),gU=Xe("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function mU(e){return Ye("MuiListItemSecondaryAction",e)}Xe("MuiListItemSecondaryAction",["root","disableGutters"]);const yU=["className"],xU=e=>{const{disableGutters:t,classes:r}=e;return Ke({root:["root",t&&"disableGutters"]},mU,r)},bU=fe("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>z({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),eL=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=n,o=Re(n,yU),a=O.useContext(hd),s=z({},n,{disableGutters:a.disableGutters}),l=xU(s);return M.jsx(bU,z({className:Se(l.root,i),ownerState:s,ref:r},o))});eL.muiName="ListItemSecondaryAction";const _U=["className"],SU=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],wU=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.alignItems==="flex-start"&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]},CU=e=>{const{alignItems:t,button:r,classes:n,dense:i,disabled:o,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:f}=e;return Ke({root:["root",i&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",o&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",c&&"secondaryAction",f&&"selected"],container:["container"]},vU,n)},TU=fe("div",{name:"MuiListItem",slot:"Root",overridesResolver:wU})(({theme:e,ownerState:t})=>z({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&z({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${gU.root}`]:{paddingRight:48}},{[`&.${Lu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Lu.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:St(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Lu.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:St(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Lu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{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"}},[`&.${Lu.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:St(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:St(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),kU=fe("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),pu=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:o=!1,button:a=!1,children:s,className:l,component:c,components:f={},componentsProps:p={},ContainerComponent:v="li",ContainerProps:{className:h}={},dense:g=!1,disabled:x=!1,disableGutters:y=!1,disablePadding:b=!1,divider:S=!1,focusVisibleClassName:_,secondaryAction:C,selected:k=!1,slotProps:T={},slots:E={}}=n,I=Re(n.ContainerProps,_U),D=Re(n,SU),A=O.useContext(hd),L=O.useMemo(()=>({dense:g||A.dense||!1,alignItems:i,disableGutters:y}),[i,A.dense,g,y]),$=O.useRef(null);Ji(()=>{o&&$.current&&$.current.focus()},[o]);const B=O.Children.toArray(s),j=B.length&&sd(B[B.length-1],["ListItemSecondaryAction"]),W=z({},n,{alignItems:i,autoFocus:o,button:a,dense:L.dense,disabled:x,disableGutters:y,disablePadding:b,divider:S,hasSecondaryAction:j,selected:k}),q=CU(W),Z=cr($,r),V=E.root||f.Root||TU,G=T.root||p.root||{},N=z({className:Se(q.root,G.className,l),disabled:x},D);let U=c||"li";return a&&(N.component=c||"div",N.focusVisibleClassName=Se(Lu.focusVisible,_),U=ma),j?(U=!N.component&&!c?"div":U,v==="li"&&(U==="li"?U="div":N.component==="li"&&(N.component="div")),M.jsx(hd.Provider,{value:L,children:M.jsxs(kU,z({as:v,className:Se(q.container,h),ref:Z,ownerState:W},I,{children:[M.jsx(V,z({},G,!oc(V)&&{as:U,ownerState:z({},W,G.ownerState)},N,{children:B})),B.pop()]}))})):M.jsx(hd.Provider,{value:L,children:M.jsxs(V,z({},G,{as:U,ref:Z},!oc(V)&&{ownerState:z({},W,G.ownerState)},N,{children:[B,C&&M.jsx(eL,{children:C})]}))})}),RU=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function f1(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function xR(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function tL(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function ff(e,t,r,n,i,o){let a=!1,s=i(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!tL(s,o)||l)s=i(e,s,r);else return s.focus(),!0}return!1}const EU=O.forwardRef(function(t,r){const{actions:n,autoFocus:i=!1,autoFocusItem:o=!1,children:a,className:s,disabledItemsFocusable:l=!1,disableListWrap:c=!1,onKeyDown:f,variant:p="selectedMenu"}=t,v=Re(t,RU),h=O.useRef(null),g=O.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ji(()=>{i&&h.current.focus()},[i]),O.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(_,C)=>{const k=!h.current.style.width;if(_.clientHeight<h.current.clientHeight&&k){const T=`${ZA(Ur(_))}px`;h.current.style[C.direction==="rtl"?"paddingLeft":"paddingRight"]=T,h.current.style.width=`calc(100% + ${T})`}return h.current}}),[]);const x=_=>{const C=h.current,k=_.key,T=Ur(C).activeElement;if(k==="ArrowDown")_.preventDefault(),ff(C,T,c,l,f1);else if(k==="ArrowUp")_.preventDefault(),ff(C,T,c,l,xR);else if(k==="Home")_.preventDefault(),ff(C,null,c,l,f1);else if(k==="End")_.preventDefault(),ff(C,null,c,l,xR);else if(k.length===1){const E=g.current,I=k.toLowerCase(),D=performance.now();E.keys.length>0&&(D-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&I!==E.keys[0]&&(E.repeating=!1)),E.lastTime=D,E.keys.push(I);const A=T&&!E.repeating&&tL(T,E);E.previousKeyMatched&&(A||ff(C,T,!1,l,f1,E))?_.preventDefault():E.previousKeyMatched=!1}f&&f(_)},y=cr(h,r);let b=-1;O.Children.forEach(a,(_,C)=>{if(!O.isValidElement(_)){b===C&&(b+=1,b>=a.length&&(b=-1));return}_.props.disabled||(p==="selectedMenu"&&_.props.selected||b===-1)&&(b=C),b===C&&(_.props.disabled||_.props.muiSkipListHighlight||_.type.muiSkipListHighlight)&&(b+=1,b>=a.length&&(b=-1))});const S=O.Children.map(a,(_,C)=>{if(C===b){const k={};return o&&(k.autoFocus=!0),_.props.tabIndex===void 0&&p==="selectedMenu"&&(k.tabIndex=0),O.cloneElement(_,k)}return _});return M.jsx(JD,z({role:"menu",ref:y,className:s,onKeyDown:x,tabIndex:i?0:-1},v,{children:S}))});function PU(e){return Ye("MuiPopover",e)}Xe("MuiPopover",["root","paper"]);const MU=["onEntering"],IU=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],AU=["slotProps"];function bR(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function _R(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function SR(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function d1(e){return typeof e=="function"?e():e}const DU=e=>{const{classes:t}=e;return Ke({root:["root"],paper:["paper"]},PU,t)},LU=fe(RS,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rL=fe(io,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),nL=O.forwardRef(function(t,r){var n,i,o;const a=Qe({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:p="anchorEl",children:v,className:h,container:g,elevation:x=8,marginThreshold:y=16,open:b,PaperProps:S={},slots:_,slotProps:C,transformOrigin:k={vertical:"top",horizontal:"left"},TransitionComponent:T=yg,transitionDuration:E="auto",TransitionProps:{onEntering:I}={},disableScrollLock:D=!1}=a,A=Re(a.TransitionProps,MU),L=Re(a,IU),$=(n=C==null?void 0:C.paper)!=null?n:S,B=O.useRef(),j=cr(B,$.ref),W=z({},a,{anchorOrigin:c,anchorReference:p,elevation:x,marginThreshold:y,externalPaperSlotProps:$,transformOrigin:k,TransitionComponent:T,transitionDuration:E,TransitionProps:A}),q=DU(W),Z=O.useCallback(()=>{if(p==="anchorPosition")return f;const Oe=d1(l),we=(Oe&&Oe.nodeType===1?Oe:Ur(B.current).body).getBoundingClientRect();return{top:we.top+bR(we,c.vertical),left:we.left+_R(we,c.horizontal)}},[l,c.horizontal,c.vertical,f,p]),V=O.useCallback(Oe=>({vertical:bR(Oe,k.vertical),horizontal:_R(Oe,k.horizontal)}),[k.horizontal,k.vertical]),G=O.useCallback(Oe=>{const Ae={width:Oe.offsetWidth,height:Oe.offsetHeight},we=V(Ae);if(p==="none")return{top:null,left:null,transformOrigin:SR(we)};const Mt=Z();let We=Mt.top-we.vertical,dt=Mt.left-we.horizontal;const bt=We+Ae.height,st=dt+Ae.width,et=Ai(d1(l)),_t=et.innerHeight-y,Tt=et.innerWidth-y;if(y!==null&&We<y){const lt=We-y;We-=lt,we.vertical+=lt}else if(y!==null&&bt>_t){const lt=bt-_t;We-=lt,we.vertical+=lt}if(y!==null&&dt<y){const lt=dt-y;dt-=lt,we.horizontal+=lt}else if(st>Tt){const lt=st-Tt;dt-=lt,we.horizontal+=lt}return{top:`${Math.round(We)}px`,left:`${Math.round(dt)}px`,transformOrigin:SR(we)}},[l,p,Z,V,y]),[N,U]=O.useState(b),Q=O.useCallback(()=>{const Oe=B.current;if(!Oe)return;const Ae=G(Oe);Ae.top!==null&&(Oe.style.top=Ae.top),Ae.left!==null&&(Oe.style.left=Ae.left),Oe.style.transformOrigin=Ae.transformOrigin,U(!0)},[G]);O.useEffect(()=>(D&&window.addEventListener("scroll",Q),()=>window.removeEventListener("scroll",Q)),[l,D,Q]);const H=(Oe,Ae)=>{I&&I(Oe,Ae),Q()},oe=()=>{U(!1)};O.useEffect(()=>{b&&Q()}),O.useImperativeHandle(s,()=>b?{updatePosition:()=>{Q()}}:null,[b,Q]),O.useEffect(()=>{if(!b)return;const Oe=hc(()=>{Q()}),Ae=Ai(l);return Ae.addEventListener("resize",Oe),()=>{Oe.clear(),Ae.removeEventListener("resize",Oe)}},[l,b,Q]);let ve=E;E==="auto"&&!T.muiSupportAuto&&(ve=void 0);const te=g||(l?Ur(d1(l)).body:void 0),ge=(i=_==null?void 0:_.root)!=null?i:LU,de=(o=_==null?void 0:_.paper)!=null?o:rL,xe=to({elementType:de,externalSlotProps:z({},$,{style:N?$.style:z({},$.style,{opacity:0})}),additionalProps:{elevation:x,ref:j},ownerState:W,className:Se(q.paper,$==null?void 0:$.className)}),Me=to({elementType:ge,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:L,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:te,open:b},ownerState:W,className:Se(q.root,h)}),{slotProps:ue}=Me,Te=Re(Me,AU);return M.jsx(ge,z({},Te,!oc(ge)&&{slotProps:ue,disableScrollLock:D},{children:M.jsx(T,z({appear:!0,in:b,onEntering:H,onExited:oe,timeout:ve},A,{children:M.jsx(de,z({},xe,{children:v}))}))}))});function OU(e){return Ye("MuiMenu",e)}Xe("MuiMenu",["root","paper","list"]);const NU=["onEntering"],zU=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],$U={vertical:"top",horizontal:"right"},FU={vertical:"top",horizontal:"left"},BU=e=>{const{classes:t}=e;return Ke({root:["root"],paper:["paper"],list:["list"]},OU,t)},jU=fe(nL,{shouldForwardProp:e=>no(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),HU=fe(rL,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),WU=fe(EU,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),VU=O.forwardRef(function(t,r){var n,i;const o=Qe({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:c=!1,MenuListProps:f={},onClose:p,open:v,PaperProps:h={},PopoverClasses:g,transitionDuration:x="auto",TransitionProps:{onEntering:y}={},variant:b="selectedMenu",slots:S={},slotProps:_={}}=o,C=Re(o.TransitionProps,NU),k=Re(o,zU),T=Ho(),E=T.direction==="rtl",I=z({},o,{autoFocus:a,disableAutoFocusItem:c,MenuListProps:f,onEntering:y,PaperProps:h,transitionDuration:x,TransitionProps:C,variant:b}),D=BU(I),A=a&&!c&&v,L=O.useRef(null),$=(G,N)=>{L.current&&L.current.adjustStyleForScrollbar(G,T),y&&y(G,N)},B=G=>{G.key==="Tab"&&(G.preventDefault(),p&&p(G,"tabKeyDown"))};let j=-1;O.Children.map(s,(G,N)=>{O.isValidElement(G)&&(G.props.disabled||(b==="selectedMenu"&&G.props.selected||j===-1)&&(j=N))});const W=(n=S.paper)!=null?n:HU,q=(i=_.paper)!=null?i:h,Z=to({elementType:S.root,externalSlotProps:_.root,ownerState:I,className:[D.root,l]}),V=to({elementType:W,externalSlotProps:q,ownerState:I,className:D.paper});return M.jsx(jU,z({onClose:p,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?$U:FU,slots:{paper:W,root:S.root},slotProps:{root:Z,paper:V},open:v,ref:r,transitionDuration:x,TransitionProps:z({onEntering:$},C),ownerState:I},k,{classes:g,children:M.jsx(WU,z({onKeyDown:B,actions:L,autoFocus:a&&(j===-1||c),autoFocusItem:A,variant:b},f,{className:Se(D.list,f.className),children:s}))}))});function UU(e){return Ye("MuiNativeSelect",e)}const IS=Xe("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),GU=["className","disabled","error","IconComponent","inputRef","variant"],qU=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:o,error:a}=e,s={select:["select",r,n&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ce(r)}`,o&&"iconOpen",n&&"disabled"]};return Ke(s,UU,t)},iL=({ownerState:e,theme:t})=>z({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":z({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${IS.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),YU=fe("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:no,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${IS.multiple}`]:t.multiple}]}})(iL),oL=({ownerState:e,theme:t})=>z({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${IS.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),KU=fe("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ce(r.variant)}`],r.open&&t.iconOpen]}})(oL),XU=O.forwardRef(function(t,r){const{className:n,disabled:i,error:o,IconComponent:a,inputRef:s,variant:l="standard"}=t,c=Re(t,GU),f=z({},t,{disabled:i,variant:l,error:o}),p=qU(f);return M.jsxs(O.Fragment,{children:[M.jsx(YU,z({ownerState:f,className:Se(p.select,n),disabled:i,ref:s||r},c)),t.multiple?null:M.jsx(KU,{as:a,ownerState:f,className:p.icon})]})});var wR;const QU=["children","classes","className","label","notched"],ZU=fe("fieldset")({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%"}),JU=fe("legend")(({ownerState:e,theme:t})=>z({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&z({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function eG(e){const{className:t,label:r,notched:n}=e,i=Re(e,QU),o=r!=null&&r!=="",a=z({},e,{notched:n,withLabel:o});return M.jsx(ZU,z({"aria-hidden":!0,className:t,ownerState:a},i,{children:M.jsx(JU,{ownerState:a,children:o?M.jsx("span",{children:r}):wR||(wR=M.jsx("span",{className:"notranslate",children:"​"}))})}))}const tG=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],rG=e=>{const{classes:t}=e,n=Ke({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},GW,t);return z({},t,n)},nG=fe(bm,{shouldForwardProp:e=>no(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ym})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return z({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${bo.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${bo.focused} .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${bo.error} .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${bo.disabled} .${bo.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&z({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),iG=fe(eG,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),oG=fe(_m,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:xm})(({theme:e,ownerState:t})=>z({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"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),wm=O.forwardRef(function(t,r){var n,i,o,a,s;const l=Qe({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:f=!1,inputComponent:p="input",label:v,multiline:h=!1,notched:g,slots:x={},type:y="text"}=l,b=Re(l,tG),S=rG(l),_=Wo(),C=Ss({props:l,muiFormControl:_,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k=z({},l,{color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:_,fullWidth:f,hiddenLabel:C.hiddenLabel,multiline:h,size:C.size,type:y}),T=(n=(i=x.root)!=null?i:c.Root)!=null?n:nG,E=(o=(a=x.input)!=null?a:c.Input)!=null?o:oG;return M.jsx(kS,z({slots:{root:T,input:E},renderSuffix:I=>M.jsx(iG,{ownerState:k,className:S.notchedOutline,label:v!=null&&v!==""&&C.required?s||(s=M.jsxs(O.Fragment,{children:[v," ","*"]})):v,notched:typeof g<"u"?g:!!(I.startAdornment||I.filled||I.focused)}),fullWidth:f,inputComponent:p,multiline:h,ref:r,type:y},b,{classes:z({},S,{notchedOutline:null})}))});wm.muiName="Input";function aG(e){return Ye("MuiSelect",e)}const df=Xe("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var CR;const sG=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],lG=fe("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${df.select}`]:t.select},{[`&.${df.select}`]:t[r.variant]},{[`&.${df.error}`]:t.error},{[`&.${df.multiple}`]:t.multiple}]}})(iL,{[`&.${df.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),uG=fe("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${ce(r.variant)}`],r.open&&t.iconOpen]}})(oL),cG=fe("input",{shouldForwardProp:e=>lH(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function TR(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function fG(e){return e==null||typeof e=="string"&&!e.trim()}const dG=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:o,error:a}=e,s={select:["select",r,n&&"disabled",i&&"multiple",a&&"error"],icon:["icon",`icon${ce(r)}`,o&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return Ke(s,aG,t)},pG=O.forwardRef(function(t,r){var n;const{"aria-describedby":i,"aria-label":o,autoFocus:a,autoWidth:s,children:l,className:c,defaultOpen:f,defaultValue:p,disabled:v,displayEmpty:h,error:g=!1,IconComponent:x,inputRef:y,labelId:b,MenuProps:S={},multiple:_,name:C,onBlur:k,onChange:T,onClose:E,onFocus:I,onOpen:D,open:A,readOnly:L,renderValue:$,SelectDisplayProps:B={},tabIndex:j,value:W,variant:q="standard"}=t,Z=Re(t,sG),[V,G]=da({controlled:W,default:p,name:"Select"}),[N,U]=da({controlled:A,default:f,name:"Select"}),Q=O.useRef(null),H=O.useRef(null),[oe,ve]=O.useState(null),{current:te}=O.useRef(A!=null),[ge,de]=O.useState(),xe=cr(r,y),Me=O.useCallback(De=>{H.current=De,De&&ve(De)},[]),ue=oe==null?void 0:oe.parentNode;O.useImperativeHandle(xe,()=>({focus:()=>{H.current.focus()},node:Q.current,value:V}),[V]),O.useEffect(()=>{f&&N&&oe&&!te&&(de(s?null:ue.clientWidth),H.current.focus())},[oe,s]),O.useEffect(()=>{a&&H.current.focus()},[a]),O.useEffect(()=>{if(!b)return;const De=Ur(H.current).getElementById(b);if(De){const Ue=()=>{getSelection().isCollapsed&&H.current.focus()};return De.addEventListener("click",Ue),()=>{De.removeEventListener("click",Ue)}}},[b]);const Te=(De,Ue)=>{De?D&&D(Ue):E&&E(Ue),te||(de(s?null:ue.clientWidth),U(De))},Oe=De=>{De.button===0&&(De.preventDefault(),H.current.focus(),Te(!0,De))},Ae=De=>{Te(!1,De)},we=O.Children.toArray(l),Mt=De=>{const Ue=we.find(ot=>ot.props.value===De.target.value);Ue!==void 0&&(G(Ue.props.value),T&&T(De,Ue))},We=De=>Ue=>{let ot;if(Ue.currentTarget.hasAttribute("tabindex")){if(_){ot=Array.isArray(V)?V.slice():[];const Ee=V.indexOf(De.props.value);Ee===-1?ot.push(De.props.value):ot.splice(Ee,1)}else ot=De.props.value;if(De.props.onClick&&De.props.onClick(Ue),V!==ot&&(G(ot),T)){const Ee=Ue.nativeEvent||Ue,Pe=new Ee.constructor(Ee.type,Ee);Object.defineProperty(Pe,"target",{writable:!0,value:{value:ot,name:C}}),T(Pe,De)}_||Te(!1,Ue)}},dt=De=>{L||[" ","ArrowUp","ArrowDown","Enter"].indexOf(De.key)!==-1&&(De.preventDefault(),Te(!0,De))},bt=oe!==null&&N,st=De=>{!bt&&k&&(Object.defineProperty(De,"target",{writable:!0,value:{value:V,name:C}}),k(De))};delete Z["aria-invalid"];let et,_t;const Tt=[];let lt=!1;(mg({value:V})||h)&&($?et=$(V):lt=!0);const Nt=we.map(De=>{if(!O.isValidElement(De))return null;let Ue;if(_){if(!Array.isArray(V))throw new Error(hs(2));Ue=V.some(ot=>TR(ot,De.props.value)),Ue&&lt&&Tt.push(De.props.children)}else Ue=TR(V,De.props.value),Ue&&lt&&(_t=De.props.children);return O.cloneElement(De,{"aria-selected":Ue?"true":"false",onClick:We(De),onKeyUp:ot=>{ot.key===" "&&ot.preventDefault(),De.props.onKeyUp&&De.props.onKeyUp(ot)},role:"option",selected:Ue,value:void 0,"data-value":De.props.value})});lt&&(_?Tt.length===0?et=null:et=Tt.reduce((De,Ue,ot)=>(De.push(Ue),ot<Tt.length-1&&De.push(", "),De),[]):et=_t);let ne=ge;!s&&te&&oe&&(ne=ue.clientWidth);let le;typeof j<"u"?le=j:le=v?null:0;const he=B.id||(C?`mui-component-select-${C}`:void 0),pe=z({},t,{variant:q,value:V,open:bt,error:g}),je=dG(pe),ht=z({},S.PaperProps,(n=S.slotProps)==null?void 0:n.paper);return M.jsxs(O.Fragment,{children:[M.jsx(lG,z({ref:Me,tabIndex:le,role:"button","aria-disabled":v?"true":void 0,"aria-expanded":bt?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[b,he].filter(Boolean).join(" ")||void 0,"aria-describedby":i,onKeyDown:dt,onMouseDown:v||L?null:Oe,onBlur:st,onFocus:I},B,{ownerState:pe,className:Se(B.className,je.select,c),id:he,children:fG(et)?CR||(CR=M.jsx("span",{className:"notranslate",children:"​"})):et})),M.jsx(cG,z({"aria-invalid":g,value:Array.isArray(V)?V.join(","):V,name:C,ref:Q,"aria-hidden":!0,onChange:Mt,tabIndex:-1,disabled:v,className:je.nativeInput,autoFocus:a,ownerState:pe},Z)),M.jsx(uG,{as:x,className:je.icon,ownerState:pe}),M.jsx(VU,z({id:`menu-${C||""}`,anchorEl:ue,open:bt,onClose:Ae,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},S,{MenuListProps:z({"aria-labelledby":b,role:"listbox",disableListWrap:!0},S.MenuListProps),slotProps:{paper:z({},ht,{style:z({minWidth:ne},ht!=null?ht.style:null)})},children:Nt}))]})}),hG=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],vG=["root"],gG=e=>{const{classes:t}=e;return t},AS={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>no(e)&&e!=="variant",slot:"Root"},mG=fe(MS,AS)(""),yG=fe(wm,AS)(""),xG=fe(ES,AS)(""),DS=O.forwardRef(function(t,r){const n=Qe({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:a={},className:s,defaultOpen:l=!1,displayEmpty:c=!1,IconComponent:f=WD,id:p,input:v,inputProps:h,label:g,labelId:x,MenuProps:y,multiple:b=!1,native:S=!1,onClose:_,onOpen:C,open:k,renderValue:T,SelectDisplayProps:E,variant:I="outlined"}=n,D=Re(n,hG),A=S?XU:pG,L=Wo(),$=Ss({props:n,muiFormControl:L,states:["variant","error"]}),B=$.variant||I,j=z({},n,{variant:B,classes:a}),W=gG(j),q=Re(W,vG),Z=v||{standard:M.jsx(mG,{ownerState:j}),outlined:M.jsx(yG,{label:g,ownerState:j}),filled:M.jsx(xG,{ownerState:j})}[B],V=cr(r,Z.ref);return M.jsx(O.Fragment,{children:O.cloneElement(Z,z({inputComponent:A,inputProps:z({children:o,error:$.error,IconComponent:f,variant:B,type:void 0,multiple:b},S?{id:p}:{autoWidth:i,defaultOpen:l,displayEmpty:c,labelId:x,MenuProps:y,onClose:_,onOpen:C,open:k,renderValue:T,SelectDisplayProps:z({id:p},E)},h,{classes:h?On(q,h.classes):q},v?v.props.inputProps:{})},b&&S&&B==="outlined"?{notched:!0}:{},{ref:V,className:Se(Z.props.className,s,W.root)},!v&&{variant:B},D))})});DS.muiName="Select";function bG(e){return Ye("MuiTooltip",e)}const os=Xe("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),_G=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function SG(e){return Math.round(e*1e5)/1e5}const wG=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:i,placement:o}=e,a={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",i&&"touch",`tooltipPlacement${ce(o.split("-")[0])}`],arrow:["arrow"]};return Ke(a,bG,t)},CG=fe(gm,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>z({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${os.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${os.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${os.arrow}`]:z({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${os.arrow}`]:z({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),TG=fe("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${ce(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>z({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:St(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},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${SG(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${os.popper}[data-popper-placement*="left"] &`]:z({transformOrigin:"right center"},t.isRtl?z({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):z({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${os.popper}[data-popper-placement*="right"] &`]:z({transformOrigin:"left center"},t.isRtl?z({marginRight:"14px"},t.touch&&{marginRight:"24px"}):z({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${os.popper}[data-popper-placement*="top"] &`]:z({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${os.popper}[data-popper-placement*="bottom"] &`]:z({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),kG=fe("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:St(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Xh=!1,p1=null,pf={x:0,y:0};function Qh(e,t){return r=>{t&&t(r),e(r)}}const aL=O.forwardRef(function(t,r){var n,i,o,a,s,l,c,f,p,v,h,g,x,y,b,S,_,C,k;const T=Qe({props:t,name:"MuiTooltip"}),{arrow:E=!1,children:I,components:D={},componentsProps:A={},describeChild:L=!1,disableFocusListener:$=!1,disableHoverListener:B=!1,disableInteractive:j=!1,disableTouchListener:W=!1,enterDelay:q=100,enterNextDelay:Z=0,enterTouchDelay:V=700,followCursor:G=!1,id:N,leaveDelay:U=0,leaveTouchDelay:Q=1500,onClose:H,onOpen:oe,open:ve,placement:te="bottom",PopperComponent:ge,PopperProps:de={},slotProps:xe={},slots:Me={},title:ue,TransitionComponent:Te=yg,TransitionProps:Oe}=T,Ae=Re(T,_G),we=O.isValidElement(I)?I:M.jsx("span",{children:I}),Mt=Ho(),We=Mt.direction==="rtl",[dt,bt]=O.useState(),[st,et]=O.useState(null),_t=O.useRef(!1),Tt=j||G,lt=O.useRef(),Nt=O.useRef(),ne=O.useRef(),le=O.useRef(),[he,pe]=da({controlled:ve,default:!1,name:"Tooltip",state:"open"});let je=he;const ht=Zg(N),De=O.useRef(),Ue=O.useCallback(()=>{De.current!==void 0&&(document.body.style.WebkitUserSelect=De.current,De.current=void 0),clearTimeout(le.current)},[]);O.useEffect(()=>()=>{clearTimeout(lt.current),clearTimeout(Nt.current),clearTimeout(ne.current),Ue()},[Ue]);const ot=ct=>{clearTimeout(p1),Xh=!0,pe(!0),oe&&!je&&oe(ct)},Ee=gn(ct=>{clearTimeout(p1),p1=setTimeout(()=>{Xh=!1},800+U),pe(!1),H&&je&&H(ct),clearTimeout(lt.current),lt.current=setTimeout(()=>{_t.current=!1},Mt.transitions.duration.shortest)}),Pe=ct=>{_t.current&&ct.type!=="touchstart"||(dt&&dt.removeAttribute("title"),clearTimeout(Nt.current),clearTimeout(ne.current),q||Xh&&Z?Nt.current=setTimeout(()=>{ot(ct)},Xh?Z:q):ot(ct))},tt=ct=>{clearTimeout(Nt.current),clearTimeout(ne.current),ne.current=setTimeout(()=>{Ee(ct)},U)},{isFocusVisibleRef:Ge,onBlur:Et,onFocus:er,ref:hr}=em(),[,kr]=O.useState(!1),ui=ct=>{Et(ct),Ge.current===!1&&(kr(!1),tt(ct))},on=ct=>{dt||bt(ct.currentTarget),er(ct),Ge.current===!0&&(kr(!0),Pe(ct))},ao=ct=>{_t.current=!0;const ln=we.props;ln.onTouchStart&&ln.onTouchStart(ct)},Yo=Pe,Ko=tt,Xo=ct=>{ao(ct),clearTimeout(ne.current),clearTimeout(lt.current),Ue(),De.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",le.current=setTimeout(()=>{document.body.style.WebkitUserSelect=De.current,Pe(ct)},V)},so=ct=>{we.props.onTouchEnd&&we.props.onTouchEnd(ct),Ue(),clearTimeout(ne.current),ne.current=setTimeout(()=>{Ee(ct)},Q)};O.useEffect(()=>{if(!je)return;function ct(ln){(ln.key==="Escape"||ln.key==="Esc")&&Ee(ln)}return document.addEventListener("keydown",ct),()=>{document.removeEventListener("keydown",ct)}},[Ee,je]);const nr=cr(we.ref,hr,bt,r);!ue&&ue!==0&&(je=!1);const Xt=O.useRef(),Rr=ct=>{const ln=we.props;ln.onMouseMove&&ln.onMouseMove(ct),pf={x:ct.clientX,y:ct.clientY},Xt.current&&Xt.current.update()},lo={},_n=typeof ue=="string";L?(lo.title=!je&&_n&&!B?ue:null,lo["aria-describedby"]=je?ht:null):(lo["aria-label"]=_n?ue:null,lo["aria-labelledby"]=je&&!_n?ht:null);const Er=z({},lo,Ae,we.props,{className:Se(Ae.className,we.props.className),onTouchStart:ao,ref:nr},G?{onMouseMove:Rr}:{}),Sn={};W||(Er.onTouchStart=Xo,Er.onTouchEnd=so),B||(Er.onMouseOver=Qh(Yo,Er.onMouseOver),Er.onMouseLeave=Qh(Ko,Er.onMouseLeave),Tt||(Sn.onMouseOver=Yo,Sn.onMouseLeave=Ko)),$||(Er.onFocus=Qh(on,Er.onFocus),Er.onBlur=Qh(ui,Er.onBlur),Tt||(Sn.onFocus=on,Sn.onBlur=ui));const uo=O.useMemo(()=>{var ct;let ln=[{name:"arrow",enabled:!!st,options:{element:st,padding:4}}];return(ct=de.popperOptions)!=null&&ct.modifiers&&(ln=ln.concat(de.popperOptions.modifiers)),z({},de.popperOptions,{modifiers:ln})},[st,de]),an=z({},T,{isRtl:We,arrow:E,disableInteractive:Tt,placement:te,PopperComponentProp:ge,touch:_t.current}),ci=wG(an),se=(n=(i=Me.popper)!=null?i:D.Popper)!=null?n:CG,ae=(o=(a=(s=Me.transition)!=null?s:D.Transition)!=null?a:Te)!=null?o:yg,be=(l=(c=Me.tooltip)!=null?c:D.Tooltip)!=null?l:TG,Ne=(f=(p=Me.arrow)!=null?p:D.Arrow)!=null?f:kG,vt=Kf(se,z({},de,(v=xe.popper)!=null?v:A.popper,{className:Se(ci.popper,de==null?void 0:de.className,(h=(g=xe.popper)!=null?g:A.popper)==null?void 0:h.className)}),an),ir=Kf(ae,z({},Oe,(x=xe.transition)!=null?x:A.transition),an),or=Kf(be,z({},(y=xe.tooltip)!=null?y:A.tooltip,{className:Se(ci.tooltip,(b=(S=xe.tooltip)!=null?S:A.tooltip)==null?void 0:b.className)}),an),sn=Kf(Ne,z({},(_=xe.arrow)!=null?_:A.arrow,{className:Se(ci.arrow,(C=(k=xe.arrow)!=null?k:A.arrow)==null?void 0:C.className)}),an);return M.jsxs(O.Fragment,{children:[O.cloneElement(we,Er),M.jsx(se,z({as:ge??gm,placement:te,anchorEl:G?{getBoundingClientRect:()=>({top:pf.y,left:pf.x,right:pf.x,bottom:pf.y,width:0,height:0})}:dt,popperRef:Xt,open:dt?je:!1,id:ht,transition:!0},Sn,vt,{popperOptions:uo,children:({TransitionProps:ct})=>M.jsx(ae,z({timeout:Mt.transitions.duration.shorter},ct,ir,{children:M.jsxs(be,z({},or,{children:[ue,E?M.jsx(Ne,z({},sn,{ref:et})):null]}))}))}))]})});function RG(e){return Ye("MuiSwitch",e)}const dn=Xe("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),EG=["className","color","edge","size","sx"],PG=e=>{const{classes:t,edge:r,size:n,color:i,checked:o,disabled:a}=e,s={root:["root",r&&`edge${ce(r)}`,`size${ce(n)}`],switchBase:["switchBase",`color${ce(i)}`,o&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Ke(s,RG,t);return z({},t,l)},MG=fe("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${ce(r.edge)}`],t[`size${ce(r.size)}`]]}})(({ownerState:e})=>z({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${dn.thumb}`]:{width:16,height:16},[`& .${dn.switchBase}`]:{padding:4,[`&.${dn.checked}`]:{transform:"translateX(16px)"}}})),IG=fe(UD,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${dn.input}`]:t.input},r.color!=="default"&&t[`color${ce(r.color)}`]]}})(({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}),[`&.${dn.checked}`]:{transform:"translateX(20px)"},[`&.${dn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${dn.checked} + .${dn.track}`]:{opacity:.5},[`&.${dn.disabled} + .${dn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${dn.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>z({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:St(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${dn.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:St(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${dn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Vd(e.palette[t.color].main,.62):Wd(e.palette[t.color].main,.55)}`}},[`&.${dn.checked} + .${dn.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),AG=fe("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({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}`})),DG=fe("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),LG=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:a=!1,size:s="medium",sx:l}=n,c=Re(n,EG),f=z({},n,{color:o,edge:a,size:s}),p=PG(f),v=M.jsx(DG,{className:p.thumb,ownerState:f});return M.jsxs(MG,{className:Se(p.root,i),sx:l,ownerState:f,children:[M.jsx(IG,z({type:"checkbox",icon:v,checkedIcon:v,ref:r,ownerState:f},c,{classes:z({},p,{root:p.switchBase})})),M.jsx(AG,{className:p.track,ownerState:f})]})});function OG(e){return Ye("MuiTab",e)}const Fs=Xe("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),NG=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],zG=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:i,icon:o,label:a,selected:s,disabled:l}=e,c={root:["root",o&&a&&"labelIcon",`textColor${ce(r)}`,n&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Ke(c,OG,t)},$G=fe(ma,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${ce(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>z({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Fs.iconWrapper}`]:z({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Fs.selected}`]:{opacity:1},[`&.${Fs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Fs.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Fs.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Fs.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Fs.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),FG=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTab"}),{className:i,disabled:o=!1,disableFocusRipple:a=!1,fullWidth:s,icon:l,iconPosition:c="top",indicator:f,label:p,onChange:v,onClick:h,onFocus:g,selected:x,selectionFollowsFocus:y,textColor:b="inherit",value:S,wrapped:_=!1}=n,C=Re(n,NG),k=z({},n,{disabled:o,disableFocusRipple:a,selected:x,icon:!!l,iconPosition:c,label:!!p,fullWidth:s,textColor:b,wrapped:_}),T=zG(k),E=l&&p&&O.isValidElement(l)?O.cloneElement(l,{className:Se(T.iconWrapper,l.props.className)}):l,I=A=>{!x&&v&&v(A,S),h&&h(A)},D=A=>{y&&!x&&v&&v(A,S),g&&g(A)};return M.jsxs($G,z({focusRipple:!a,className:Se(T.root,i),ref:r,role:"tab","aria-selected":x,disabled:o,onClick:I,onFocus:D,ownerState:k,tabIndex:x?0:-1},C,{children:[c==="top"||c==="start"?M.jsxs(O.Fragment,{children:[E,p]}):M.jsxs(O.Fragment,{children:[p,E]}),f]}))}),sL=O.createContext();function BG(e){return Ye("MuiTable",e)}Xe("MuiTable",["root","stickyHeader"]);const jG=["className","component","padding","size","stickyHeader"],HG=e=>{const{classes:t,stickyHeader:r}=e;return Ke({root:["root",r&&"stickyHeader"]},BG,t)},WG=fe("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>z({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":z({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),kR="table",lL=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTable"}),{className:i,component:o=kR,padding:a="normal",size:s="medium",stickyHeader:l=!1}=n,c=Re(n,jG),f=z({},n,{component:o,padding:a,size:s,stickyHeader:l}),p=HG(f),v=O.useMemo(()=>({padding:a,size:s,stickyHeader:l}),[a,s,l]);return M.jsx(sL.Provider,{value:v,children:M.jsx(WG,z({as:o,role:o===kR?null:"table",ref:r,className:Se(p.root,i),ownerState:f},c))})}),Cm=O.createContext();function VG(e){return Ye("MuiTableBody",e)}Xe("MuiTableBody",["root"]);const UG=["className","component"],GG=e=>{const{classes:t}=e;return Ke({root:["root"]},VG,t)},qG=fe("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),YG={variant:"body"},RR="tbody",uL=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTableBody"}),{className:i,component:o=RR}=n,a=Re(n,UG),s=z({},n,{component:o}),l=GG(s);return M.jsx(Cm.Provider,{value:YG,children:M.jsx(qG,z({className:Se(l.root,i),as:o,ref:r,role:o===RR?null:"rowgroup",ownerState:s},a))})});function KG(e){return Ye("MuiTableCell",e)}const XG=Xe("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),QG=["align","className","component","padding","scope","size","sortDirection","variant"],ZG=e=>{const{classes:t,variant:r,align:n,padding:i,size:o,stickyHeader:a}=e,s={root:["root",r,a&&"stickyHeader",n!=="inherit"&&`align${ce(n)}`,i!=="normal"&&`padding${ce(i)}`,`size${ce(o)}`]};return Ke(s,KG,t)},JG=fe("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${ce(r.size)}`],r.padding!=="normal"&&t[`padding${ce(r.padding)}`],r.align!=="inherit"&&t[`align${ce(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>z({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
142
- ${e.palette.mode==="light"?Vd(St(e.palette.divider,1),.88):Wd(St(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${XG.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),hl=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTableCell"}),{align:i="inherit",className:o,component:a,padding:s,scope:l,size:c,sortDirection:f,variant:p}=n,v=Re(n,QG),h=O.useContext(sL),g=O.useContext(Cm),x=g&&g.variant==="head";let y;a?y=a:y=x?"th":"td";let b=l;y==="td"?b=void 0:!b&&x&&(b="col");const S=p||g&&g.variant,_=z({},n,{align:i,component:y,padding:s||(h&&h.padding?h.padding:"normal"),size:c||(h&&h.size?h.size:"medium"),sortDirection:f,stickyHeader:S==="head"&&h&&h.stickyHeader,variant:S}),C=ZG(_);let k=null;return f&&(k=f==="asc"?"ascending":"descending"),M.jsx(JG,z({as:y,ref:r,className:Se(C.root,o),"aria-sort":k,scope:b,ownerState:_},v))});function eq(e){return Ye("MuiTableContainer",e)}Xe("MuiTableContainer",["root"]);const tq=["className","component"],rq=e=>{const{classes:t}=e;return Ke({root:["root"]},eq,t)},nq=fe("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),cL=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTableContainer"}),{className:i,component:o="div"}=n,a=Re(n,tq),s=z({},n,{component:o}),l=rq(s);return M.jsx(nq,z({ref:r,as:o,className:Se(l.root,i),ownerState:s},a))});function iq(e){return Ye("MuiTableHead",e)}Xe("MuiTableHead",["root"]);const oq=["className","component"],aq=e=>{const{classes:t}=e;return Ke({root:["root"]},iq,t)},sq=fe("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),lq={variant:"head"},ER="thead",fL=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTableHead"}),{className:i,component:o=ER}=n,a=Re(n,oq),s=z({},n,{component:o}),l=aq(s);return M.jsx(Cm.Provider,{value:lq,children:M.jsx(sq,z({as:o,className:Se(l.root,i),ref:r,role:o===ER?null:"rowgroup",ownerState:s},a))})});function uq(e){return Ye("MuiToolbar",e)}Xe("MuiToolbar",["root","gutters","regular","dense"]);const cq=["className","component","disableGutters","variant"],fq=e=>{const{classes:t,disableGutters:r,variant:n}=e;return Ke({root:["root",!r&&"gutters",n]},uq,t)},dq=fe("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disableGutters&&t.gutters,t[r.variant]]}})(({theme:e,ownerState:t})=>z({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),pq=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:a=!1,variant:s="regular"}=n,l=Re(n,cq),c=z({},n,{component:o,disableGutters:a,variant:s}),f=fq(c);return M.jsx(dq,z({as:o,className:Se(f.root,i),ref:r,ownerState:c},l))}),hq=xn(M.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),vq=xn(M.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function gq(e){return Ye("MuiTableRow",e)}const PR=Xe("MuiTableRow",["root","selected","hover","head","footer"]),mq=["className","component","hover","selected"],yq=e=>{const{classes:t,selected:r,hover:n,head:i,footer:o}=e;return Ke({root:["root",r&&"selected",n&&"hover",i&&"head",o&&"footer"]},gq,t)},xq=fe("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${PR.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${PR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:St(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:St(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),MR="tr",xg=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTableRow"}),{className:i,component:o=MR,hover:a=!1,selected:s=!1}=n,l=Re(n,mq),c=O.useContext(Cm),f=z({},n,{component:o,hover:a,selected:s,head:c&&c.variant==="head",footer:c&&c.variant==="footer"}),p=yq(f);return M.jsx(xq,z({as:o,ref:r,className:Se(p.root,i),role:o===MR?null:"row",ownerState:f},l))});function bq(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function _q(e,t,r,n={},i=()=>{}){const{ease:o=bq,duration:a=300}=n;let s=null;const l=t[e];let c=!1;const f=()=>{c=!0},p=v=>{if(c){i(new Error("Animation cancelled"));return}s===null&&(s=v);const h=Math.min(1,(v-s)/a);if(t[e]=o(h)*(r-l)+l,h>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(p)};return l===r?(i(new Error("Element already at target position")),f):(requestAnimationFrame(p),f)}const Sq=["onChange"],wq={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Cq(e){const{onChange:t}=e,r=Re(e,Sq),n=O.useRef(),i=O.useRef(null),o=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return Ji(()=>{const a=hc(()=>{const l=n.current;o(),l!==n.current&&t(n.current)}),s=Ai(i.current);return s.addEventListener("resize",a),()=>{a.clear(),s.removeEventListener("resize",a)}},[t]),O.useEffect(()=>{o(),t(n.current)},[t]),M.jsx("div",z({style:wq,ref:i},r))}function Tq(e){return Ye("MuiTabScrollButton",e)}const kq=Xe("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Rq=["className","slots","slotProps","direction","orientation","disabled"],Eq=e=>{const{classes:t,orientation:r,disabled:n}=e;return Ke({root:["root",r,n&&"disabled"]},Tq,t)},Pq=fe(ma,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>z({width:40,flexShrink:0,opacity:.8,[`&.${kq.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Mq=O.forwardRef(function(t,r){var n,i;const o=Qe({props:t,name:"MuiTabScrollButton"}),{className:a,slots:s={},slotProps:l={},direction:c}=o,f=Re(o,Rq),v=Ho().direction==="rtl",h=z({isRtl:v},o),g=Eq(h),x=(n=s.StartScrollButtonIcon)!=null?n:hq,y=(i=s.EndScrollButtonIcon)!=null?i:vq,b=to({elementType:x,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),S=to({elementType:y,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return M.jsx(Pq,z({component:"div",className:Se(g.root,a),ref:r,role:null,ownerState:h,tabIndex:null},f,{children:c==="left"?M.jsx(x,z({},b)):M.jsx(y,z({},S))}))});function Iq(e){return Ye("MuiTabs",e)}const h1=Xe("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Aq=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],IR=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,AR=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Zh=(e,t,r)=>{let n=!1,i=r(e,t);for(;i;){if(i===e.firstChild){if(n)return;n=!0}const o=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||o)i=r(e,i);else{i.focus();return}}},Dq=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:o,centered:a,scrollButtonsHideMobile:s,classes:l}=e;return Ke({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},Iq,l)},Lq=fe("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${h1.scrollButtons}`]:t.scrollButtons},{[`& .${h1.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>z({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${h1.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Oq=fe("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.scroller,r.fixed&&t.fixed,r.hideScrollbar&&t.hideScrollbar,r.scrollableX&&t.scrollableX,r.scrollableY&&t.scrollableY]}})(({ownerState:e})=>z({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Nq=fe("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.flexContainer,r.vertical&&t.flexContainerVertical,r.centered&&t.centered]}})(({ownerState:e})=>z({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),zq=fe("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>z({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),$q=fe(Cq)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),DR={},Fq=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTabs"}),i=Ho(),o=i.direction==="rtl",{"aria-label":a,"aria-labelledby":s,action:l,centered:c=!1,children:f,className:p,component:v="div",allowScrollButtonsMobile:h=!1,indicatorColor:g="primary",onChange:x,orientation:y="horizontal",ScrollButtonComponent:b=Mq,scrollButtons:S="auto",selectionFollowsFocus:_,slots:C={},slotProps:k={},TabIndicatorProps:T={},TabScrollButtonProps:E={},textColor:I="primary",value:D,variant:A="standard",visibleScrollbar:L=!1}=n,$=Re(n,Aq),B=A==="scrollable",j=y==="vertical",W=j?"scrollTop":"scrollLeft",q=j?"top":"left",Z=j?"bottom":"right",V=j?"clientHeight":"clientWidth",G=j?"height":"width",N=z({},n,{component:v,allowScrollButtonsMobile:h,indicatorColor:g,orientation:y,vertical:j,scrollButtons:S,textColor:I,variant:A,visibleScrollbar:L,fixed:!B,hideScrollbar:B&&!L,scrollableX:B&&!j,scrollableY:B&&j,centered:c&&!B,scrollButtonsHideMobile:!h}),U=Dq(N),Q=to({elementType:C.StartScrollButtonIcon,externalSlotProps:k.startScrollButtonIcon,ownerState:N}),H=to({elementType:C.EndScrollButtonIcon,externalSlotProps:k.endScrollButtonIcon,ownerState:N}),[oe,ve]=O.useState(!1),[te,ge]=O.useState(DR),[de,xe]=O.useState(!1),[Me,ue]=O.useState(!1),[Te,Oe]=O.useState(!1),[Ae,we]=O.useState({overflow:"hidden",scrollbarWidth:0}),Mt=new Map,We=O.useRef(null),dt=O.useRef(null),bt=()=>{const Ee=We.current;let Pe;if(Ee){const Ge=Ee.getBoundingClientRect();Pe={clientWidth:Ee.clientWidth,scrollLeft:Ee.scrollLeft,scrollTop:Ee.scrollTop,scrollLeftNormalized:aB(Ee,i.direction),scrollWidth:Ee.scrollWidth,top:Ge.top,bottom:Ge.bottom,left:Ge.left,right:Ge.right}}let tt;if(Ee&&D!==!1){const Ge=dt.current.children;if(Ge.length>0){const Et=Ge[Mt.get(D)];tt=Et?Et.getBoundingClientRect():null}}return{tabsMeta:Pe,tabMeta:tt}},st=gn(()=>{const{tabsMeta:Ee,tabMeta:Pe}=bt();let tt=0,Ge;if(j)Ge="top",Pe&&Ee&&(tt=Pe.top-Ee.top+Ee.scrollTop);else if(Ge=o?"right":"left",Pe&&Ee){const er=o?Ee.scrollLeftNormalized+Ee.clientWidth-Ee.scrollWidth:Ee.scrollLeft;tt=(o?-1:1)*(Pe[Ge]-Ee[Ge]+er)}const Et={[Ge]:tt,[G]:Pe?Pe[G]:0};if(isNaN(te[Ge])||isNaN(te[G]))ge(Et);else{const er=Math.abs(te[Ge]-Et[Ge]),hr=Math.abs(te[G]-Et[G]);(er>=1||hr>=1)&&ge(Et)}}),et=(Ee,{animation:Pe=!0}={})=>{Pe?_q(W,We.current,Ee,{duration:i.transitions.duration.standard}):We.current[W]=Ee},_t=Ee=>{let Pe=We.current[W];j?Pe+=Ee:(Pe+=Ee*(o?-1:1),Pe*=o&&JA()==="reverse"?-1:1),et(Pe)},Tt=()=>{const Ee=We.current[V];let Pe=0;const tt=Array.from(dt.current.children);for(let Ge=0;Ge<tt.length;Ge+=1){const Et=tt[Ge];if(Pe+Et[V]>Ee){Ge===0&&(Pe=Ee);break}Pe+=Et[V]}return Pe},lt=()=>{_t(-1*Tt())},Nt=()=>{_t(Tt())},ne=O.useCallback(Ee=>{we({overflow:null,scrollbarWidth:Ee})},[]),le=()=>{const Ee={};Ee.scrollbarSizeListener=B?M.jsx($q,{onChange:ne,className:Se(U.scrollableX,U.hideScrollbar)}):null;const tt=B&&(S==="auto"&&(de||Me)||S===!0);return Ee.scrollButtonStart=tt?M.jsx(b,z({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Q},orientation:y,direction:o?"right":"left",onClick:lt,disabled:!de},E,{className:Se(U.scrollButtons,E.className)})):null,Ee.scrollButtonEnd=tt?M.jsx(b,z({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:H},orientation:y,direction:o?"left":"right",onClick:Nt,disabled:!Me},E,{className:Se(U.scrollButtons,E.className)})):null,Ee},he=gn(Ee=>{const{tabsMeta:Pe,tabMeta:tt}=bt();if(!(!tt||!Pe)){if(tt[q]<Pe[q]){const Ge=Pe[W]+(tt[q]-Pe[q]);et(Ge,{animation:Ee})}else if(tt[Z]>Pe[Z]){const Ge=Pe[W]+(tt[Z]-Pe[Z]);et(Ge,{animation:Ee})}}}),pe=gn(()=>{B&&S!==!1&&Oe(!Te)});O.useEffect(()=>{const Ee=hc(()=>{We.current&&st()}),Pe=Ai(We.current);Pe.addEventListener("resize",Ee);let tt;return typeof ResizeObserver<"u"&&(tt=new ResizeObserver(Ee),Array.from(dt.current.children).forEach(Ge=>{tt.observe(Ge)})),()=>{Ee.clear(),Pe.removeEventListener("resize",Ee),tt&&tt.disconnect()}},[st]),O.useEffect(()=>{const Ee=Array.from(dt.current.children),Pe=Ee.length;if(typeof IntersectionObserver<"u"&&Pe>0&&B&&S!==!1){const tt=Ee[0],Ge=Ee[Pe-1],Et={root:We.current,threshold:.99},er=on=>{xe(!on[0].isIntersecting)},hr=new IntersectionObserver(er,Et);hr.observe(tt);const kr=on=>{ue(!on[0].isIntersecting)},ui=new IntersectionObserver(kr,Et);return ui.observe(Ge),()=>{hr.disconnect(),ui.disconnect()}}},[B,S,Te,f==null?void 0:f.length]),O.useEffect(()=>{ve(!0)},[]),O.useEffect(()=>{st()}),O.useEffect(()=>{he(DR!==te)},[he,te]),O.useImperativeHandle(l,()=>({updateIndicator:st,updateScrollButtons:pe}),[st,pe]);const je=M.jsx(zq,z({},T,{className:Se(U.indicator,T.className),ownerState:N,style:z({},te,T.style)}));let ht=0;const De=O.Children.map(f,Ee=>{if(!O.isValidElement(Ee))return null;const Pe=Ee.props.value===void 0?ht:Ee.props.value;Mt.set(Pe,ht);const tt=Pe===D;return ht+=1,O.cloneElement(Ee,z({fullWidth:A==="fullWidth",indicator:tt&&!oe&&je,selected:tt,selectionFollowsFocus:_,onChange:x,textColor:I,value:Pe},ht===1&&D===!1&&!Ee.props.tabIndex?{tabIndex:0}:{}))}),Ue=Ee=>{const Pe=dt.current,tt=Ur(Pe).activeElement;if(tt.getAttribute("role")!=="tab")return;let Et=y==="horizontal"?"ArrowLeft":"ArrowUp",er=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&o&&(Et="ArrowRight",er="ArrowLeft"),Ee.key){case Et:Ee.preventDefault(),Zh(Pe,tt,AR);break;case er:Ee.preventDefault(),Zh(Pe,tt,IR);break;case"Home":Ee.preventDefault(),Zh(Pe,null,IR);break;case"End":Ee.preventDefault(),Zh(Pe,null,AR);break}},ot=le();return M.jsxs(Lq,z({className:Se(U.root,p),ownerState:N,ref:r,as:v},$,{children:[ot.scrollButtonStart,ot.scrollbarSizeListener,M.jsxs(Oq,{className:U.scroller,ownerState:N,style:{overflow:Ae.overflow,[j?`margin${o?"Left":"Right"}`:"marginBottom"]:L?void 0:-Ae.scrollbarWidth},ref:We,children:[M.jsx(Nq,{"aria-label":a,"aria-labelledby":s,"aria-orientation":y==="vertical"?"vertical":null,className:U.flexContainer,ownerState:N,onKeyDown:Ue,ref:dt,role:"tablist",children:De}),oe&&je]}),ot.scrollButtonEnd]}))});function Bq(e){return Ye("MuiTextField",e)}Xe("MuiTextField",["root"]);const jq=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],Hq={standard:MS,filled:ES,outlined:wm},Wq=e=>{const{classes:t}=e;return Ke({root:["root"]},Bq,t)},Vq=fe(PS,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Sl=O.forwardRef(function(t,r){const n=Qe({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:a,className:s,color:l="primary",defaultValue:c,disabled:f=!1,error:p=!1,FormHelperTextProps:v,fullWidth:h=!1,helperText:g,id:x,InputLabelProps:y,inputProps:b,InputProps:S,inputRef:_,label:C,maxRows:k,minRows:T,multiline:E=!1,name:I,onBlur:D,onChange:A,onFocus:L,placeholder:$,required:B=!1,rows:j,select:W=!1,SelectProps:q,type:Z,value:V,variant:G="outlined"}=n,N=Re(n,jq),U=z({},n,{autoFocus:o,color:l,disabled:f,error:p,fullWidth:h,multiline:E,required:B,select:W,variant:G}),Q=Wq(U),H={};G==="outlined"&&(y&&typeof y.shrink<"u"&&(H.notched=y.shrink),H.label=C),W&&((!q||!q.native)&&(H.id=void 0),H["aria-describedby"]=void 0);const oe=Zg(x),ve=g&&oe?`${oe}-helper-text`:void 0,te=C&&oe?`${oe}-label`:void 0,ge=Hq[G],de=M.jsx(ge,z({"aria-describedby":ve,autoComplete:i,autoFocus:o,defaultValue:c,fullWidth:h,multiline:E,name:I,rows:j,maxRows:k,minRows:T,type:Z,value:V,id:oe,inputRef:_,onBlur:D,onChange:A,onFocus:L,placeholder:$,inputProps:b},H,S));return M.jsxs(Vq,z({className:Se(Q.root,s),disabled:f,error:p,fullWidth:h,ref:r,required:B,color:l,variant:G,ownerState:U},N,{children:[C!=null&&C!==""&&M.jsx(Sm,z({htmlFor:oe,id:te},y,{children:C})),W?M.jsx(DS,z({"aria-describedby":ve,id:oe,labelId:te,value:V,input:de},q,{children:a})):de,g&&M.jsx(O7,z({id:ve},v,{children:g}))]}))});function dL(){return M.jsxs("svg",{clipRule:"evenodd",fillRule:"evenodd",height:"35",strokeLinejoin:"round",strokeMiterlimit:"2",version:"1.1",viewBox:"0 0 183 35",width:"183",xmlSpace:"preserve",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",children:[M.jsx("title",{children:"Locust"}),M.jsx("path",{d:"M36.694,18.975L48.943,6.626L47.341,5.012L35.092,17.361L36.694,18.975Z",fill:"rgb(184,238,75)"}),M.jsx("path",{d:"M40.954,20.093L53.03,8.017L51.416,6.403L39.34,18.479L40.954,20.093Z",fill:"rgb(184,238,75)"}),M.jsx("rect",{fill:"rgb(184,238,75)",height:"7.152",width:"2.459",x:"37.215",y:"17.411"}),M.jsx("path",{d:"M14.632,4.173L11.279,5.804L10.932,5.973L4.446,30.826L10.881,30.826L15.383,13.594L32.616,30.826L41.285,30.826L14.632,4.173Z",fill:"rgb(184,238,75)",fillRule:"nonzero"}),M.jsx("path",{d:"M4.722,26.007L3.683,29.988L0,29.988L0,28.176L4.722,26.007ZM27.385,15.595L39.945,9.824L43.705,9.824L47.464,13.583L47.464,19.963L43.819,23.608L39.201,18.928L38.025,20.088L47.793,29.988L41.778,29.988L27.385,15.595ZM14.232,21.637L19.644,19.151L27.609,27.116L20.962,29.988L12.05,29.988L14.232,21.637Z",fill:"rgb(184,238,75)"}),M.jsx("path",{d:"M64.001,30L64.001,11.009L68.501,11.009L68.501,26.224L79.443,26.224L79.443,30L64.001,30ZM90.405,30.633C84.211,30.633 79.983,26.473 79.983,20.505C79.983,14.536 84.211,10.376 90.405,10.376C96.623,10.376 100.85,14.536 100.85,20.505C100.85,26.473 96.623,30.633 90.405,30.633ZM90.405,26.722C93.796,26.722 96.374,24.235 96.374,20.505C96.374,16.774 93.796,14.287 90.405,14.287C87.037,14.287 84.437,16.774 84.437,20.505C84.437,24.235 87.037,26.722 90.405,26.722ZM112.638,30.633C106.488,30.633 102.238,26.473 102.238,20.505C102.238,14.536 106.488,10.376 112.638,10.376C116.798,10.376 121.071,12.23 121.997,17.814L117.679,17.814C116.865,15.372 114.989,14.287 112.638,14.287C109.269,14.287 106.692,16.842 106.692,20.505C106.692,24.144 109.269,26.722 112.638,26.722C114.989,26.722 116.865,25.637 117.679,23.172L121.997,23.172C121.071,28.779 116.843,30.633 112.638,30.633ZM132.77,30.633C126.914,30.633 123.613,27.875 123.613,22.087L123.613,11.009L128.158,11.009L128.158,21.974C128.158,25.004 129.672,26.835 132.77,26.835C135.867,26.835 137.404,25.004 137.404,21.974L137.404,11.009L141.926,11.009L141.926,22.087C141.926,27.875 138.625,30.633 132.77,30.633ZM152.22,30.633C146.432,30.633 143.38,28.576 143.403,24.122L147.472,24.122C147.63,25.908 149.1,27.038 152.22,27.061C155.159,27.061 156.764,26.066 156.764,24.574C156.764,23.263 155.702,22.607 153.441,22.223L151.089,21.816C147.495,21.183 143.923,20.233 143.923,16.096C143.923,12.501 146.952,10.376 152.265,10.376C157.216,10.376 160.653,12.117 160.698,16.819L156.651,16.819C156.357,15.101 155.023,13.948 152.175,13.948C149.597,13.948 148.241,14.83 148.241,16.299C148.241,17.452 149.168,18.176 151.112,18.538L153.169,18.899C156.787,19.555 161.241,20.165 161.241,24.71C161.241,28.485 158.143,30.633 152.22,30.633ZM180.394,11.009L180.394,14.785L173.272,14.785L173.272,30L168.751,30L168.751,14.785L161.652,14.785L161.652,11.009L180.394,11.009Z",fill:"currentcolor"})]})}const Uq=xn(M.jsx("path",{d:"M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"}),"Visibility"),Gq=xn(M.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"}),"VisibilityOff");function pL({name:e="password",label:t="Password",defaultValue:r,isRequired:n}){const[i,o]=O.useState(!1),a=()=>o(!i);return M.jsxs(PS,{variant:"outlined",children:[M.jsx(Sm,{htmlFor:`${t}-${e}-field`,children:t}),M.jsx(wm,{defaultValue:r,endAdornment:M.jsx(J7,{position:"end",children:M.jsx(Sa,{edge:"end",onClick:a,children:i?M.jsx(Gq,{}):M.jsx(Uq,{})})}),id:`${t}-${e}-field`,label:t,name:e,required:n,type:i?"text":"password"})]})}function LS({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,size:o="medium",sx:a,...s}){return M.jsxs(PS,{size:o,sx:a,children:[M.jsx(Sm,{htmlFor:t,shrink:!0,children:e}),M.jsx(DS,{...s,defaultValue:s.value?void 0:i||n&&r||r[0],id:t,label:e,multiple:n,name:t,native:!0,children:r.map((l,c)=>M.jsx("option",{value:l,children:l},`option-${l}-${c}`))})]})}function OS({name:e,label:t,type:r="text",defaultValue:n,choices:i,isSecret:o,isRequired:a}){return i?M.jsx(LS,{defaultValue:n,label:t,name:e,options:i,required:a,sx:{width:"100%"}}):typeof n=="boolean"?M.jsx(XD,{control:M.jsx(yb,{defaultChecked:n,required:a}),label:t,name:e}):o?M.jsx(pL,{defaultValue:n,isRequired:a,label:t,name:e}):M.jsx(Sl,{defaultValue:n,label:t,name:e,required:a,sx:{width:"100%"},type:r})}var hf={},v1={exports:{}},LR;function ws(){return LR||(LR=1,function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(v1)),v1.exports}var g1={};const qq=O4(vH);var OR;function Cs(){return OR||(OR=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=qq}(g1)),g1}var NR;function Yq(){if(NR)return hf;NR=1;var e=ws();Object.defineProperty(hf,"__esModule",{value:!0}),hf.default=void 0;var t=e(Cs()),r=_a(),n=(0,t.default)((0,r.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6z"}),"Brightness4");return hf.default=n,hf}var Kq=Yq();const Xq=si(Kq);var vf={},zR;function Qq(){if(zR)return vf;zR=1;var e=ws();Object.defineProperty(vf,"__esModule",{value:!0}),vf.default=void 0;var t=e(Cs()),r=_a(),n=(0,t.default)((0,r.jsx)("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zm0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4z"}),"Brightness7");return vf.default=n,vf}var Zq=Qq();const Jq=si(Zq),Ao={DARK:"dark",LIGHT:"light"},eY=localStorage.theme===Ao.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?Ao.DARK:Ao.LIGHT,bn=FA,tY=YA;function Ro(e,t){const r=tY();return O.useCallback(n=>{r(e(n))},[e,r])}const rY={isDarkMode:!1},hL=Ci({name:"theme",initialState:rY,reducers:{setIsDarkMode:(e,{payload:t})=>{e.isDarkMode=t}}}),nY=hL.actions,vL=hL.reducer;function bb(){const e=bn(({theme:{isDarkMode:n}})=>n),t=Ro(nY.setIsDarkMode);O.useEffect(()=>{t(eY===Ao.DARK)},[]);const r=()=>{localStorage.theme=e?Ao.LIGHT:Ao.DARK,t(!e)};return M.jsx(Sa,{color:"inherit",onClick:r,children:e?M.jsx(Jq,{}):M.jsx(Xq,{})})}const iY=e=>fS({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}},components:{MuiCssBaseline:{styleOverrides:{":root":{"--footer-height":"40px"},p:{margin:0},ul:{paddingLeft:"16px"}}}}});function gL(){const e=bn(({theme:{isDarkMode:r}})=>r);return O.useMemo(()=>iY(e?Ao.DARK:Ao.LIGHT),[e])}function oY({authProviders:e,customForm:t,error:r,info:n,usernamePasswordCallback:i}){const o=gL();return M.jsxs(TD,{theme:o,children:[M.jsx(GD,{}),M.jsx(Ct,{sx:{position:"absolute",top:4,right:4},children:M.jsx(bb,{})}),M.jsxs(Ct,{component:"main",sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",display:"flex",flexDirection:"column",rowGap:4,boxShadow:24,borderRadius:4,width:400,border:"3px solid black",p:4},children:[M.jsx(Ct,{sx:{display:"flex",justifyContent:"center",columnGap:2},children:M.jsx(dL,{})}),i&&!t&&M.jsx("form",{action:i,method:"POST",children:M.jsxs(Ct,{sx:{display:"flex",flexDirection:"column",rowGap:2},children:[M.jsx(Sl,{label:"Username",name:"username"}),M.jsx(pL,{}),n&&M.jsx(ua,{severity:"info",children:n}),r&&M.jsx(ua,{severity:"error",children:r}),M.jsx(Fo,{size:"large",type:"submit",variant:"contained",children:"Login"})]})}),t&&M.jsx("form",{action:t.callbackUrl,method:"POST",children:M.jsxs(Ct,{sx:{display:"flex",flexDirection:"column",rowGap:2},children:[t.inputs.map((a,s)=>M.jsx(OS,{...a},`custom-form-input-${s}`)),n&&M.jsx(ua,{severity:"info",children:n}),r&&M.jsx(ua,{severity:"error",children:r}),M.jsx(Fo,{size:"large",type:"submit",variant:"contained",children:t.submitButtonText||"Login"})]})}),n&&!t&&!i&&M.jsx(ua,{severity:"info",children:n}),r&&!t&&!i&&M.jsx(ua,{severity:"error",children:r}),e&&M.jsx(Ct,{sx:{display:"flex",flexDirection:"column",rowGap:1},children:e.map(({label:a,callbackUrl:s,iconUrl:l},c)=>M.jsxs(Sa,{href:s,sx:{display:"flex",justifyContent:"center",alignItems:"center",columnGap:2,borderRadius:2,borderWidth:"1px",borderStyle:"solid",borderColor:"primary"},children:[M.jsx("img",{height:"32",src:l}),M.jsx(gt,{height:"32",variant:"button",children:a})]},`auth-provider-${c}`))})]})]})}var gf={},$R;function aY(){if($R)return gf;$R=1;var e=ws();Object.defineProperty(gf,"__esModule",{value:!0}),gf.default=void 0;var t=e(Cs()),r=_a(),n=(0,t.default)((0,r.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");return gf.default=n,gf}var sY=aY();const lY=si(sY);function Tm({open:e,onClose:t,children:r}){return M.jsx(RS,{onClose:t,open:e,children:M.jsxs(Sp,{maxWidth:"md",sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",maxHeight:"90vh",overflowY:"auto",display:"flex",flexDirection:"column",rowGap:2,bgcolor:"background.paper",boxShadow:24,borderRadius:4,border:"3px solid black",p:4},children:[M.jsx(Sa,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:M.jsx(lY,{})}),r]})})}function uY(){const[e,t]=O.useState(!1),r=bn(({swarm:n})=>n.version);return M.jsxs(M.Fragment,{children:[M.jsx(Ct,{sx:{display:"flex",justifyContent:"flex-end"},children:M.jsx(Fo,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),M.jsxs(Tm,{onClose:()=>t(!1),open:e,children:[M.jsxs("div",{children:[M.jsx(gt,{component:"h2",mb:1,variant:"h4",children:"About"}),M.jsxs(gt,{component:"p",variant:"subtitle1",children:["Locust is free and open source software released under the"," ",M.jsx(Or,{href:"https://github.com/locustio/locust/blob/master/LICENSE",children:"MIT License"})]}),M.jsxs(gt,{component:"p",sx:{mt:2},variant:"subtitle1",children:["It was originally developed by Carl Byström and"," ",M.jsx(Or,{href:"https://twitter.com/jonatanheyman",children:"Jonatan Heyman"}),". Since 2019, it is primarily maintained by ",M.jsx(Or,{href:"https://github.com/cyberw",children:"Lars Holmberg"}),"."]}),M.jsxs(gt,{component:"p",sx:{mt:2},variant:"subtitle1",children:["Many thanks to all our wonderful"," ",M.jsx(Or,{href:"https://github.com/locustio/locust/graphs/contributors",children:"contributors"}),"!"]})]}),M.jsxs("div",{children:[M.jsx(gt,{component:"h2",mb:1,variant:"h4",children:"Need help getting started?"}),M.jsx(Or,{href:"https://locust.cloud",children:"Locust Cloud"})," gives you access to hosted, easily scalable, and distributed load generation, as well as advanced reporting — all while preserving the flexible “it’s just Python” approach to load test scripting that Locust provides"]}),M.jsxs("div",{children:[M.jsx(gt,{component:"h2",mb:1,variant:"h4",children:"Version"}),M.jsx(Or,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),M.jsxs("div",{children:[M.jsx(gt,{component:"h2",mb:1,variant:"h4",children:"Links"}),M.jsx(gt,{component:"p",variant:"subtitle1",children:M.jsx(Or,{href:"https://github.com/locustio/locust",children:"GitHub"})}),M.jsx(gt,{component:"p",variant:"subtitle1",children:M.jsx(Or,{href:"https://docs.locust.io/en/stable",children:"Documentation"})}),M.jsx(gt,{component:"p",variant:"subtitle1",children:M.jsx(Or,{href:"https://medium.com/locust-cloud",children:"Blog"})})]})]})]})}function cY(){return M.jsx(Sp,{maxWidth:"xl",sx:{display:"flex",height:"var(--footer-height)",alignItems:"center",justifyContent:"flex-end"},children:M.jsx(uY,{})})}var mf={},FR;function fY(){if(FR)return mf;FR=1;var e=ws();Object.defineProperty(mf,"__esModule",{value:!0}),mf.default=void 0;var t=e(Cs()),r=_a(),n=(0,t.default)((0,r.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");return mf.default=n,mf}var dY=fY();const pY=si(dY),mL=e=>(Array.isArray(e)?e.length:Object.keys(e).length)===0;function hY(e,t){return{...e,...t}}const vY=e=>{const t=new URLSearchParams;for(const[r,n]of Object.entries(e))if(Array.isArray(n))for(const i of n)t.append(r,i);else t.append(r,n);return t},km=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e),Vr={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning"},Do=window.templateArgs?dl(window.templateArgs):{};Do.isReport&&{...Do,charts:(Do.history||[]).reduce((e,{currentResponseTimePercentiles:t,...r})=>km(e,{...t,...r}),{})};function gY({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:o,workerCount:a}){return M.jsxs(Ct,{sx:{display:"flex",columnGap:2,rowGap:1,flexDirection:{xs:"column",md:"row"}},children:[M.jsxs(Ct,{sx:{display:"flex",flexDirection:"column"},children:[M.jsx(gt,{sx:{fontWeight:"bold"},children:"Host"}),M.jsx(aL,{title:r,children:M.jsx(gt,{noWrap:!0,sx:{overflow:"hidden",textOverflow:"ellipsis",maxWidth:{xs:"180px",lg:"400px"}},children:r})})]}),M.jsx(Du,{flexItem:!0,orientation:"vertical"}),M.jsxs(Ct,{sx:{display:"flex",flexDirection:"column"},children:[M.jsx(gt,{sx:{fontWeight:"bold"},children:"Status"}),M.jsx(gt,{variant:"button",children:t})]}),(t===Vr.RUNNING||t===Vr.SPAWNING)&&M.jsxs(M.Fragment,{children:[M.jsx(Du,{flexItem:!0,orientation:"vertical"}),M.jsxs(Ct,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[M.jsx(gt,{sx:{fontWeight:"bold"},children:"Users"}),M.jsx(gt,{noWrap:!0,variant:"button",children:o})]})]}),e&&M.jsxs(M.Fragment,{children:[M.jsx(Du,{flexItem:!0,orientation:"vertical"}),M.jsxs(Ct,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[M.jsx(gt,{sx:{fontWeight:"bold"},children:"Workers"}),M.jsx(gt,{noWrap:!0,variant:"button",children:a})]})]}),M.jsx(Du,{flexItem:!0,orientation:"vertical"}),M.jsxs(Ct,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[M.jsx(gt,{sx:{fontWeight:"bold"},children:"RPS"}),M.jsx(gt,{noWrap:!0,variant:"button",children:n})]}),M.jsx(Du,{flexItem:!0,orientation:"vertical"}),M.jsxs(Ct,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[M.jsx(gt,{sx:{fontWeight:"bold"},children:"Failures"}),M.jsx(gt,{noWrap:!0,variant:"button",children:`${i}%`})]})]})}const mY=({swarm:{isDistributed:e,state:t,host:r,workerCount:n},ui:{totalRps:i,failRatio:o,userCount:a}})=>({isDistributed:e,state:t,host:r,totalRps:i,failRatio:o,userCount:a,workerCount:n}),BR=li(mY)(gY);var yf={},jR;function yY(){if(jR)return yf;jR=1;var e=ws();Object.defineProperty(yf,"__esModule",{value:!0}),yf.default=void 0;var t=e(Cs()),r=_a(),n=(0,t.default)((0,r.jsx)("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");return yf.default=n,yf}var xY=yY();const NS=si(xY),bY="input, select, textarea",_Y=e=>e instanceof HTMLInputElement&&e.getAttribute("data-type")==="number"?Number(e.value):e instanceof HTMLInputElement&&e.type==="checkbox"?e.checked:e instanceof HTMLSelectElement&&e.multiple?Array.from(e.selectedOptions).map(t=>t.value):e.value;function yL({children:e,onSubmit:t,onChange:r}){const n=O.useCallback(async i=>{i.preventDefault();const a=[...i.target.querySelectorAll(bY)].reduce((s,l)=>l.name?{...s,[l.name]:_Y(l)}:s,{});t(a)},[t]);return M.jsx("form",{onChange:r,onSubmit:n,children:e})}function HR({defaultValue:e,...t}){const[r,n]=O.useState(e||""),i=o=>{t.onChange&&t.onChange(o),!((o.target.value.match(/\./g)||[]).length>1)&&n(o.target.value.replace(/[^0-9.]/g,""))};return O.useEffect(()=>{e&&n(e)},[e]),M.jsx(Sl,{...t,onChange:i,value:r})}function SY({extraOptions:e}){return M.jsxs(gS,{children:[M.jsx(yS,{expandIcon:M.jsx(NS,{}),children:M.jsx(gt,{children:"Custom parameters"})}),M.jsx(mS,{children:M.jsx(Ct,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:Object.entries(e).map(([t,r],n)=>O.createElement(OS,{...r,key:`valid-parameter-${n}`,label:r.helpText?`${ob(t)} (${r.helpText})`:ob(t),name:t}))})})]})}var xf={},WR;function wY(){if(WR)return xf;WR=1;var e=ws();Object.defineProperty(xf,"__esModule",{value:!0}),xf.default=void 0;var t=e(Cs()),r=_a(),n=(0,t.default)((0,r.jsx)("path",{d:"M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z"}),"Settings");return xf.default=n,xf}var CY=wY();const TY=si(CY);var xL=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(xL||{});function kY(e){return{status:e,isUninitialized:e==="uninitialized",isLoading:e==="pending",isSuccess:e==="fulfilled",isError:e==="rejected"}}function RY(e){return new RegExp("(^|:)//").test(e)}var EY=e=>e.replace(/\/$/,""),PY=e=>e.replace(/^\//,"");function MY(e,t){if(!e)return t;if(!t)return e;if(RY(t))return t;const r=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=EY(e),t=PY(t),`${e}${r}${t}`}var VR=e=>[].concat(...e);function IY(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function AY(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var UR=zo;function bL(e,t){if(e===t||!(UR(e)&&UR(t)||Array.isArray(e)&&Array.isArray(t)))return t;const r=Object.keys(t),n=Object.keys(e);let i=r.length===n.length;const o=Array.isArray(t)?[]:{};for(const a of r)o[a]=bL(e[a],t[a]),i&&(i=e[a]===o[a]);return i?e:o}var GR=(...e)=>fetch(...e),DY=e=>e.status>=200&&e.status<=299,LY=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function qR(e){if(!zo(e))return e;const t={...e};for(const[r,n]of Object.entries(t))n===void 0&&delete t[r];return t}function OY({baseUrl:e,prepareHeaders:t=p=>p,fetchFn:r=GR,paramsSerializer:n,isJsonContentType:i=LY,jsonContentType:o="application/json",jsonReplacer:a,timeout:s,responseHandler:l,validateStatus:c,...f}={}){return typeof fetch>"u"&&r===GR&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(v,h)=>{const{signal:g,getState:x,extra:y,endpoint:b,forced:S,type:_}=h;let C,{url:k,headers:T=new Headers(f.headers),params:E=void 0,responseHandler:I=l??"json",validateStatus:D=c??DY,timeout:A=s,...L}=typeof v=="string"?{url:v}:v,$={...f,signal:g,...L};T=new Headers(qR(T)),$.headers=await t(T,{getState:x,extra:y,endpoint:b,forced:S,type:_})||T;const B=Q=>typeof Q=="object"&&(zo(Q)||Array.isArray(Q)||typeof Q.toJSON=="function");if(!$.headers.has("content-type")&&B($.body)&&$.headers.set("content-type",o),B($.body)&&i($.headers)&&($.body=JSON.stringify($.body,a)),E){const Q=~k.indexOf("?")?"&":"?",H=n?n(E):new URLSearchParams(qR(E));k+=Q+H}k=MY(e,k);const j=new Request(k,$);C={request:new Request(k,$)};let q,Z=!1,V=A&&setTimeout(()=>{Z=!0,h.abort()},A);try{q=await r(j)}catch(Q){return{error:{status:Z?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(Q)},meta:C}}finally{V&&clearTimeout(V)}const G=q.clone();C.response=G;let N,U="";try{let Q;if(await Promise.all([p(q,I).then(H=>N=H,H=>Q=H),G.text().then(H=>U=H,()=>{})]),Q)throw Q}catch(Q){return{error:{status:"PARSING_ERROR",originalStatus:q.status,data:U,error:String(Q)},meta:C}}return D(q,N)?{data:N,meta:C}:{error:{status:q.status,data:N},meta:C}};async function p(v,h){if(typeof h=="function")return h(v);if(h==="content-type"&&(h=i(v.headers)?"json":"text"),h==="json"){const g=await v.text();return g.length?JSON.parse(g):null}return v.text()}}var YR=class{constructor(e,t=void 0){this.value=e,this.meta=t}},zS=mn("__rtkq/focused"),_L=mn("__rtkq/unfocused"),$S=mn("__rtkq/online"),SL=mn("__rtkq/offline");function wL(e){return e.type==="query"}function NY(e){return e.type==="mutation"}function FS(e,t,r,n,i,o){return zY(e)?e(t,r,n,i).map(_b).map(o):Array.isArray(e)?e.map(_b).map(o):[]}function zY(e){return typeof e=="function"}function _b(e){return typeof e=="string"?{type:e}:e}function KR(e){return e!=null}function Uu(e){let t=0;for(const r in e)t++;return t}function $Y(e,t){return e.catch(t)}var qd=Symbol("forceQueryFn"),Sb=e=>typeof e[qd]=="function";function FY({serializeQueryArgs:e,queryThunk:t,mutationThunk:r,api:n,context:i}){const o=new Map,a=new Map,{unsubscribeQueryResult:s,removeMutationResult:l,updateSubscriptionOptions:c}=n.internalActions;return{buildInitiateQuery:g,buildInitiateMutation:x,getRunningQueryThunk:f,getRunningMutationThunk:p,getRunningQueriesThunk:v,getRunningMutationsThunk:h};function f(y,b){return S=>{var k;const _=i.endpointDefinitions[y],C=e({queryArgs:b,endpointDefinition:_,endpointName:y});return(k=o.get(S))==null?void 0:k[C]}}function p(y,b){return S=>{var _;return(_=a.get(S))==null?void 0:_[b]}}function v(){return y=>Object.values(o.get(y)||{}).filter(KR)}function h(){return y=>Object.values(a.get(y)||{}).filter(KR)}function g(y,b){const S=(_,{subscribe:C=!0,forceRefetch:k,subscriptionOptions:T,[qd]:E,...I}={})=>(D,A)=>{var Q;const L=e({queryArgs:_,endpointDefinition:b,endpointName:y}),$=t({...I,type:"query",subscribe:C,forceRefetch:k,subscriptionOptions:T,endpointName:y,originalArgs:_,queryCacheKey:L,[qd]:E}),B=n.endpoints[y].select(_),j=D($),W=B(A()),{requestId:q,abort:Z}=j,V=W.requestId!==q,G=(Q=o.get(D))==null?void 0:Q[L],N=()=>B(A()),U=Object.assign(E?j.then(N):V&&!G?Promise.resolve(W):Promise.all([G,j]).then(N),{arg:_,requestId:q,subscriptionOptions:T,queryCacheKey:L,abort:Z,async unwrap(){const H=await U;if(H.isError)throw H.error;return H.data},refetch:()=>D(S(_,{subscribe:!1,forceRefetch:!0})),unsubscribe(){C&&D(s({queryCacheKey:L,requestId:q}))},updateSubscriptionOptions(H){U.subscriptionOptions=H,D(c({endpointName:y,requestId:q,queryCacheKey:L,options:H}))}});if(!G&&!V&&!E){const H=o.get(D)||{};H[L]=U,o.set(D,H),U.then(()=>{delete H[L],Uu(H)||o.delete(D)})}return U};return S}function x(y){return(b,{track:S=!0,fixedCacheKey:_}={})=>(C,k)=>{const T=r({type:"mutation",endpointName:y,originalArgs:b,track:S,fixedCacheKey:_}),E=C(T),{requestId:I,abort:D,unwrap:A}=E,L=$Y(E.unwrap().then(W=>({data:W})),W=>({error:W})),$=()=>{C(l({requestId:I,fixedCacheKey:_}))},B=Object.assign(L,{arg:E.arg,requestId:I,abort:D,unwrap:A,reset:$}),j=a.get(C)||{};return a.set(C,j),j[I]=B,B.then(()=>{delete j[I],Uu(j)||a.delete(C)}),_&&(j[_]=B,B.then(()=>{j[_]===B&&(delete j[_],Uu(j)||a.delete(C))})),B}}}function XR(e){return e}function BY({reducerPath:e,baseQuery:t,context:{endpointDefinitions:r},serializeQueryArgs:n,api:i,assertTagType:o}){const a=(S,_,C,k)=>(T,E)=>{const I=r[S],D=n({queryArgs:_,endpointDefinition:I,endpointName:S});if(T(i.internalActions.queryResultPatched({queryCacheKey:D,patches:C})),!k)return;const A=i.endpoints[S].select(_)(E()),L=FS(I.providesTags,A.data,void 0,_,{},o);T(i.internalActions.updateProvidedBy({queryCacheKey:D,providedTags:L}))},s=(S,_,C,k=!0)=>(T,E)=>{const D=i.endpoints[S].select(_)(E());let A={patches:[],inversePatches:[],undo:()=>T(i.util.patchQueryData(S,_,A.inversePatches,k))};if(D.status==="uninitialized")return A;let L;if("data"in D)if(Zi(D.data)){const[$,B,j]=EA(D.data,C);A.patches.push(...B),A.inversePatches.push(...j),L=$}else L=C(D.data),A.patches.push({op:"replace",path:[],value:L}),A.inversePatches.push({op:"replace",path:[],value:D.data});return A.patches.length===0||T(i.util.patchQueryData(S,_,A.patches,k)),A},l=(S,_,C)=>k=>k(i.endpoints[S].initiate(_,{subscribe:!1,forceRefetch:!0,[qd]:()=>({data:C})})),c=async(S,{signal:_,abort:C,rejectWithValue:k,fulfillWithValue:T,dispatch:E,getState:I,extra:D})=>{const A=r[S.endpointName];try{let L=XR,$;const B={signal:_,abort:C,dispatch:E,getState:I,extra:D,endpoint:S.endpointName,type:S.type,forced:S.type==="query"?f(S,I()):void 0},j=S.type==="query"?S[qd]:void 0;if(j?$=j():A.query?($=await t(A.query(S.originalArgs),B,A.extraOptions),A.transformResponse&&(L=A.transformResponse)):$=await A.queryFn(S.originalArgs,B,A.extraOptions,W=>t(W,B,A.extraOptions)),typeof process<"u",$.error)throw new YR($.error,$.meta);return T(await L($.data,$.meta,S.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:$.meta,[Nu]:!0})}catch(L){let $=L;if($ instanceof YR){let B=XR;A.query&&A.transformErrorResponse&&(B=A.transformErrorResponse);try{return k(await B($.value,$.meta,S.originalArgs),{baseQueryMeta:$.meta,[Nu]:!0})}catch(j){$=j}}throw console.error($),$}};function f(S,_){var I,D,A;const C=(D=(I=_[e])==null?void 0:I.queries)==null?void 0:D[S.queryCacheKey],k=(A=_[e])==null?void 0:A.config.refetchOnMountOrArgChange,T=C==null?void 0:C.fulfilledTimeStamp,E=S.forceRefetch??(S.subscribe&&k);return E?E===!0||(Number(new Date)-Number(T))/1e3>=E:!1}const p=Qk(`${e}/executeQuery`,c,{getPendingMeta(){return{startedTimeStamp:Date.now(),[Nu]:!0}},condition(S,{getState:_}){var A,L,$;const C=_(),k=(L=(A=C[e])==null?void 0:A.queries)==null?void 0:L[S.queryCacheKey],T=k==null?void 0:k.fulfilledTimeStamp,E=S.originalArgs,I=k==null?void 0:k.originalArgs,D=r[S.endpointName];return Sb(S)?!0:(k==null?void 0:k.status)==="pending"?!1:f(S,C)||wL(D)&&(($=D==null?void 0:D.forceRefetch)!=null&&$.call(D,{currentArg:E,previousArg:I,endpointState:k,state:C}))?!0:!T},dispatchConditionRejection:!0}),v=Qk(`${e}/executeMutation`,c,{getPendingMeta(){return{startedTimeStamp:Date.now(),[Nu]:!0}}}),h=S=>"force"in S,g=S=>"ifOlderThan"in S,x=(S,_,C)=>(k,T)=>{const E=h(C)&&C.force,I=g(C)&&C.ifOlderThan,D=(L=!0)=>{const $={forceRefetch:L,isPrefetch:!0};return i.endpoints[S].initiate(_,$)},A=i.endpoints[S].select(_)(T());if(E)k(D());else if(I){const L=A==null?void 0:A.fulfilledTimeStamp;if(!L){k(D());return}(Number(new Date)-Number(new Date(L)))/1e3>=I&&k(D())}else k(D(!1))};function y(S){return _=>{var C,k;return((k=(C=_==null?void 0:_.meta)==null?void 0:C.arg)==null?void 0:k.endpointName)===S}}function b(S,_){return{matchPending:ad(W_(S),y(_)),matchFulfilled:ad(ps(S),y(_)),matchRejected:ad(rc(S),y(_))}}return{queryThunk:p,mutationThunk:v,prefetch:x,updateQueryData:s,upsertQueryData:l,patchQueryData:a,buildMatchThunkActions:b}}function CL(e,t,r,n){return FS(r[e.meta.arg.endpointName][t],ps(e)?e.payload:void 0,Qg(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function Jh(e,t,r){const n=e[t];n&&r(n)}function Yd(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function QR(e,t,r){const n=e[Yd(t)];n&&r(n)}var bf={};function jY({reducerPath:e,queryThunk:t,mutationThunk:r,context:{endpointDefinitions:n,apiUid:i,extractRehydrationInfo:o,hasRehydrationInfo:a},assertTagType:s,config:l}){const c=mn(`${e}/resetApiState`),f=Ci({name:`${e}/queries`,initialState:bf,reducers:{removeQueryResult:{reducer(_,{payload:{queryCacheKey:C}}){delete _[C]},prepare:af()},queryResultPatched:{reducer(_,{payload:{queryCacheKey:C,patches:k}}){Jh(_,C,T=>{T.data=Uk(T.data,k.concat())})},prepare:af()}},extraReducers(_){_.addCase(t.pending,(C,{meta:k,meta:{arg:T}})=>{var I;const E=Sb(T);C[I=T.queryCacheKey]??(C[I]={status:"uninitialized",endpointName:T.endpointName}),Jh(C,T.queryCacheKey,D=>{D.status="pending",D.requestId=E&&D.requestId?D.requestId:k.requestId,T.originalArgs!==void 0&&(D.originalArgs=T.originalArgs),D.startedTimeStamp=k.startedTimeStamp})}).addCase(t.fulfilled,(C,{meta:k,payload:T})=>{Jh(C,k.arg.queryCacheKey,E=>{if(E.requestId!==k.requestId&&!Sb(k.arg))return;const{merge:I}=n[k.arg.endpointName];if(E.status="fulfilled",I)if(E.data!==void 0){const{fulfilledTimeStamp:D,arg:A,baseQueryMeta:L,requestId:$}=k;let B=hp(E.data,j=>I(j,T,{arg:A.originalArgs,baseQueryMeta:L,fulfilledTimeStamp:D,requestId:$}));E.data=B}else E.data=T;else E.data=n[k.arg.endpointName].structuralSharing??!0?bL(Qi(E.data)?Z4(E.data):E.data,T):T;delete E.error,E.fulfilledTimeStamp=k.fulfilledTimeStamp})}).addCase(t.rejected,(C,{meta:{condition:k,arg:T,requestId:E},error:I,payload:D})=>{Jh(C,T.queryCacheKey,A=>{if(!k){if(A.requestId!==E)return;A.status="rejected",A.error=D??I}})}).addMatcher(a,(C,k)=>{const{queries:T}=o(k);for(const[E,I]of Object.entries(T))((I==null?void 0:I.status)==="fulfilled"||(I==null?void 0:I.status)==="rejected")&&(C[E]=I)})}}),p=Ci({name:`${e}/mutations`,initialState:bf,reducers:{removeMutationResult:{reducer(_,{payload:C}){const k=Yd(C);k in _&&delete _[k]},prepare:af()}},extraReducers(_){_.addCase(r.pending,(C,{meta:k,meta:{requestId:T,arg:E,startedTimeStamp:I}})=>{E.track&&(C[Yd(k)]={requestId:T,status:"pending",endpointName:E.endpointName,startedTimeStamp:I})}).addCase(r.fulfilled,(C,{payload:k,meta:T})=>{T.arg.track&&QR(C,T,E=>{E.requestId===T.requestId&&(E.status="fulfilled",E.data=k,E.fulfilledTimeStamp=T.fulfilledTimeStamp)})}).addCase(r.rejected,(C,{payload:k,error:T,meta:E})=>{E.arg.track&&QR(C,E,I=>{I.requestId===E.requestId&&(I.status="rejected",I.error=k??T)})}).addMatcher(a,(C,k)=>{const{mutations:T}=o(k);for(const[E,I]of Object.entries(T))((I==null?void 0:I.status)==="fulfilled"||(I==null?void 0:I.status)==="rejected")&&E!==(I==null?void 0:I.requestId)&&(C[E]=I)})}}),v=Ci({name:`${e}/invalidation`,initialState:bf,reducers:{updateProvidedBy:{reducer(_,C){var E,I;const{queryCacheKey:k,providedTags:T}=C.payload;for(const D of Object.values(_))for(const A of Object.values(D)){const L=A.indexOf(k);L!==-1&&A.splice(L,1)}for(const{type:D,id:A}of T){const L=(E=_[D]??(_[D]={}))[I=A||"__internal_without_id"]??(E[I]=[]);L.includes(k)||L.push(k)}},prepare:af()}},extraReducers(_){_.addCase(f.actions.removeQueryResult,(C,{payload:{queryCacheKey:k}})=>{for(const T of Object.values(C))for(const E of Object.values(T)){const I=E.indexOf(k);I!==-1&&E.splice(I,1)}}).addMatcher(a,(C,k)=>{var E,I;const{provided:T}=o(k);for(const[D,A]of Object.entries(T))for(const[L,$]of Object.entries(A)){const B=(E=C[D]??(C[D]={}))[I=L||"__internal_without_id"]??(E[I]=[]);for(const j of $)B.includes(j)||B.push(j)}}).addMatcher(va(ps(t),Qg(t)),(C,k)=>{const T=CL(k,"providesTags",n,s),{queryCacheKey:E}=k.meta.arg;v.caseReducers.updateProvidedBy(C,v.actions.updateProvidedBy({queryCacheKey:E,providedTags:T}))})}}),h=Ci({name:`${e}/subscriptions`,initialState:bf,reducers:{updateSubscriptionOptions(_,C){},unsubscribeQueryResult(_,C){},internal_getRTKQSubscriptions(){}}}),g=Ci({name:`${e}/internalSubscriptions`,initialState:bf,reducers:{subscriptionsUpdated:{reducer(_,C){return Uk(_,C.payload)},prepare:af()}}}),x=Ci({name:`${e}/config`,initialState:{online:IY(),focused:AY(),middlewareRegistered:!1,...l},reducers:{middlewareRegistered(_,{payload:C}){_.middlewareRegistered=_.middlewareRegistered==="conflict"||i!==C?"conflict":!0}},extraReducers:_=>{_.addCase($S,C=>{C.online=!0}).addCase(SL,C=>{C.online=!1}).addCase(zS,C=>{C.focused=!0}).addCase(_L,C=>{C.focused=!1}).addMatcher(a,C=>({...C}))}}),y=Yg({queries:f.reducer,mutations:p.reducer,provided:v.reducer,subscriptions:g.reducer,config:x.reducer}),b=(_,C)=>y(c.match(C)?void 0:_,C),S={...x.actions,...f.actions,...h.actions,...g.actions,...p.actions,...v.actions,resetApiState:c};return{reducer:b,actions:S}}var ml=Symbol.for("RTKQ/skipToken"),TL={status:"uninitialized"},ZR=hp(TL,()=>{}),JR=hp(TL,()=>{});function HY({serializeQueryArgs:e,reducerPath:t,createSelector:r}){const n=p=>ZR,i=p=>JR;return{buildQuerySelector:s,buildMutationSelector:l,selectInvalidatedBy:c,selectCachedArgsForQuery:f};function o(p){return{...p,...kY(p.status)}}function a(p){return p[t]}function s(p,v){return h=>{const g=e({queryArgs:h,endpointDefinition:v,endpointName:p});return r(h===ml?n:b=>{var S,_;return((_=(S=a(b))==null?void 0:S.queries)==null?void 0:_[g])??ZR},o)}}function l(){return p=>{let v;return typeof p=="object"?v=Yd(p)??ml:v=p,r(v===ml?i:x=>{var y,b;return((b=(y=a(x))==null?void 0:y.mutations)==null?void 0:b[v])??JR},o)}}function c(p,v){const h=p[t],g=new Set;for(const x of v.map(_b)){const y=h.provided[x.type];if(!y)continue;let b=(x.id!==void 0?y[x.id]:VR(Object.values(y)))??[];for(const S of b)g.add(S)}return VR(Array.from(g.values()).map(x=>{const y=h.queries[x];return y?[{queryCacheKey:x,endpointName:y.endpointName,originalArgs:y.originalArgs}]:[]}))}function f(p,v){return Object.values(p[t].queries).filter(h=>(h==null?void 0:h.endpointName)===v&&h.status!=="uninitialized").map(h=>h.originalArgs)}}var hu=WeakMap?new WeakMap:void 0,eE=({endpointName:e,queryArgs:t})=>{let r="";const n=hu==null?void 0:hu.get(t);if(typeof n=="string")r=n;else{const i=JSON.stringify(t,(o,a)=>(a=typeof a=="bigint"?{$bigint:a.toString()}:a,a=zo(a)?Object.keys(a).sort().reduce((s,l)=>(s[l]=a[l],s),{}):a,a));zo(t)&&(hu==null||hu.set(t,i)),r=i}return`${e}(${r})`};function kL(...e){return function(r){const n=zd(c=>{var f;return(f=r.extractRehydrationInfo)==null?void 0:f.call(r,c,{reducerPath:r.reducerPath??"api"})}),i={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...r,extractRehydrationInfo:n,serializeQueryArgs(c){let f=eE;if("serializeQueryArgs"in c.endpointDefinition){const p=c.endpointDefinition.serializeQueryArgs;f=v=>{const h=p(v);return typeof h=="string"?h:eE({...v,queryArgs:h})}}else r.serializeQueryArgs&&(f=r.serializeQueryArgs);return f(c)},tagTypes:[...r.tagTypes||[]]},o={endpointDefinitions:{},batch(c){c()},apiUid:H_(),extractRehydrationInfo:n,hasRehydrationInfo:zd(c=>n(c)!=null)},a={injectEndpoints:l,enhanceEndpoints({addTagTypes:c,endpoints:f}){if(c)for(const p of c)i.tagTypes.includes(p)||i.tagTypes.push(p);if(f)for(const[p,v]of Object.entries(f))typeof v=="function"?v(o.endpointDefinitions[p]):Object.assign(o.endpointDefinitions[p]||{},v);return a}},s=e.map(c=>c.init(a,i,o));function l(c){const f=c.endpoints({query:p=>({...p,type:"query"}),mutation:p=>({...p,type:"mutation"})});for(const[p,v]of Object.entries(f)){if(c.overrideExisting!==!0&&p in o.endpointDefinitions){if(c.overrideExisting==="throw")throw new Error(en(39));continue}o.endpointDefinitions[p]=v;for(const h of s)h.injectEndpoint(p,v)}return a}return a.injectEndpoints({endpoints:r.endpoints})}}function WY(e){for(let t in e)return!1;return!0}var VY=2147483647/1e3-1,UY=({reducerPath:e,api:t,queryThunk:r,context:n,internalState:i})=>{const{removeQueryResult:o,unsubscribeQueryResult:a}=t.internalActions,s=va(a.match,r.fulfilled,r.rejected);function l(v){const h=i.currentSubscriptions[v];return!!h&&!WY(h)}const c={},f=(v,h,g)=>{var x;if(s(v)){const y=h.getState()[e],{queryCacheKey:b}=a.match(v)?v.payload:v.meta.arg;p(b,(x=y.queries[b])==null?void 0:x.endpointName,h,y.config)}if(t.util.resetApiState.match(v))for(const[y,b]of Object.entries(c))b&&clearTimeout(b),delete c[y];if(n.hasRehydrationInfo(v)){const y=h.getState()[e],{queries:b}=n.extractRehydrationInfo(v);for(const[S,_]of Object.entries(b))p(S,_==null?void 0:_.endpointName,h,y.config)}};function p(v,h,g,x){const y=n.endpointDefinitions[h],b=(y==null?void 0:y.keepUnusedDataFor)??x.keepUnusedDataFor;if(b===1/0)return;const S=Math.max(0,Math.min(b,VY));if(!l(v)){const _=c[v];_&&clearTimeout(_),c[v]=setTimeout(()=>{l(v)||g.dispatch(o({queryCacheKey:v})),delete c[v]},S*1e3)}}return f},GY=({reducerPath:e,context:t,context:{endpointDefinitions:r},mutationThunk:n,queryThunk:i,api:o,assertTagType:a,refetchQuery:s,internalState:l})=>{const{removeQueryResult:c}=o.internalActions,f=va(ps(n),Qg(n)),p=va(ps(n,i),rc(n,i));let v=[];const h=(y,b)=>{f(y)?x(CL(y,"invalidatesTags",r,a),b):p(y)?x([],b):o.util.invalidateTags.match(y)&&x(FS(y.payload,void 0,void 0,void 0,void 0,a),b)};function g(y){var b,S;for(const _ in y.queries)if(((b=y.queries[_])==null?void 0:b.status)==="pending")return!0;for(const _ in y.mutations)if(((S=y.mutations[_])==null?void 0:S.status)==="pending")return!0;return!1}function x(y,b){const S=b.getState(),_=S[e];if(v.push(...y),_.config.invalidationBehavior==="delayed"&&g(_))return;const C=v;if(v=[],C.length===0)return;const k=o.util.selectInvalidatedBy(S,C);t.batch(()=>{const T=Array.from(k.values());for(const{queryCacheKey:E}of T){const I=_.queries[E],D=l.currentSubscriptions[E]??{};I&&(Uu(D)===0?b.dispatch(c({queryCacheKey:E})):I.status!=="uninitialized"&&b.dispatch(s(I,E)))}})}return h},qY=({reducerPath:e,queryThunk:t,api:r,refetchQuery:n,internalState:i})=>{const o={},a=(v,h)=>{(r.internalActions.updateSubscriptionOptions.match(v)||r.internalActions.unsubscribeQueryResult.match(v))&&l(v.payload,h),(t.pending.match(v)||t.rejected.match(v)&&v.meta.condition)&&l(v.meta.arg,h),(t.fulfilled.match(v)||t.rejected.match(v)&&!v.meta.condition)&&s(v.meta.arg,h),r.util.resetApiState.match(v)&&f()};function s({queryCacheKey:v},h){const g=h.getState()[e],x=g.queries[v],y=i.currentSubscriptions[v];if(!x||x.status==="uninitialized")return;const{lowestPollingInterval:b,skipPollingIfUnfocused:S}=p(y);if(!Number.isFinite(b))return;const _=o[v];_!=null&&_.timeout&&(clearTimeout(_.timeout),_.timeout=void 0);const C=Date.now()+b;o[v]={nextPollTimestamp:C,pollingInterval:b,timeout:setTimeout(()=>{(g.config.focused||!S)&&h.dispatch(n(x,v)),s({queryCacheKey:v},h)},b)}}function l({queryCacheKey:v},h){const x=h.getState()[e].queries[v],y=i.currentSubscriptions[v];if(!x||x.status==="uninitialized")return;const{lowestPollingInterval:b}=p(y);if(!Number.isFinite(b)){c(v);return}const S=o[v],_=Date.now()+b;(!S||_<S.nextPollTimestamp)&&s({queryCacheKey:v},h)}function c(v){const h=o[v];h!=null&&h.timeout&&clearTimeout(h.timeout),delete o[v]}function f(){for(const v of Object.keys(o))c(v)}function p(v={}){let h=!1,g=Number.POSITIVE_INFINITY;for(let x in v)v[x].pollingInterval&&(g=Math.min(v[x].pollingInterval,g),h=v[x].skipPollingIfUnfocused||h);return{lowestPollingInterval:g,skipPollingIfUnfocused:h}}return a},YY=({reducerPath:e,context:t,api:r,refetchQuery:n,internalState:i})=>{const{removeQueryResult:o}=r.internalActions,a=(l,c)=>{zS.match(l)&&s(c,"refetchOnFocus"),$S.match(l)&&s(c,"refetchOnReconnect")};function s(l,c){const f=l.getState()[e],p=f.queries,v=i.currentSubscriptions;t.batch(()=>{for(const h of Object.keys(v)){const g=p[h],x=v[h];if(!x||!g)continue;(Object.values(x).some(b=>b[c]===!0)||Object.values(x).every(b=>b[c]===void 0)&&f.config[c])&&(Uu(x)===0?l.dispatch(o({queryCacheKey:h})):g.status!=="uninitialized"&&l.dispatch(n(g,h)))}})}return a},tE=new Error("Promise never resolved before cacheEntryRemoved."),KY=({api:e,reducerPath:t,context:r,queryThunk:n,mutationThunk:i,internalState:o})=>{const a=rb(n),s=rb(i),l=ps(n,i),c={},f=(h,g,x)=>{const y=p(h);if(n.pending.match(h)){const b=x[t].queries[y],S=g.getState()[t].queries[y];!b&&S&&v(h.meta.arg.endpointName,h.meta.arg.originalArgs,y,g,h.meta.requestId)}else if(i.pending.match(h))g.getState()[t].mutations[y]&&v(h.meta.arg.endpointName,h.meta.arg.originalArgs,y,g,h.meta.requestId);else if(l(h)){const b=c[y];b!=null&&b.valueResolved&&(b.valueResolved({data:h.payload,meta:h.meta.baseQueryMeta}),delete b.valueResolved)}else if(e.internalActions.removeQueryResult.match(h)||e.internalActions.removeMutationResult.match(h)){const b=c[y];b&&(delete c[y],b.cacheEntryRemoved())}else if(e.util.resetApiState.match(h))for(const[b,S]of Object.entries(c))delete c[b],S.cacheEntryRemoved()};function p(h){return a(h)?h.meta.arg.queryCacheKey:s(h)?h.meta.arg.fixedCacheKey??h.meta.requestId:e.internalActions.removeQueryResult.match(h)?h.payload.queryCacheKey:e.internalActions.removeMutationResult.match(h)?Yd(h.payload):""}function v(h,g,x,y,b){const S=r.endpointDefinitions[h],_=S==null?void 0:S.onCacheEntryAdded;if(!_)return;let C={};const k=new Promise(L=>{C.cacheEntryRemoved=L}),T=Promise.race([new Promise(L=>{C.valueResolved=L}),k.then(()=>{throw tE})]);T.catch(()=>{}),c[x]=C;const E=e.endpoints[h].select(S.type==="query"?g:x),I=y.dispatch((L,$,B)=>B),D={...y,getCacheEntry:()=>E(y.getState()),requestId:b,extra:I,updateCachedData:S.type==="query"?L=>y.dispatch(e.util.updateQueryData(h,g,L)):void 0,cacheDataLoaded:T,cacheEntryRemoved:k},A=_(g,D);Promise.resolve(A).catch(L=>{if(L!==tE)throw L})}return f},XY=({api:e,context:t,queryThunk:r,mutationThunk:n})=>{const i=W_(r,n),o=rc(r,n),a=ps(r,n),s={};return(c,f)=>{var p,v;if(i(c)){const{requestId:h,arg:{endpointName:g,originalArgs:x}}=c.meta,y=t.endpointDefinitions[g],b=y==null?void 0:y.onQueryStarted;if(b){const S={},_=new Promise((E,I)=>{S.resolve=E,S.reject=I});_.catch(()=>{}),s[h]=S;const C=e.endpoints[g].select(y.type==="query"?x:h),k=f.dispatch((E,I,D)=>D),T={...f,getCacheEntry:()=>C(f.getState()),requestId:h,extra:k,updateCachedData:y.type==="query"?E=>f.dispatch(e.util.updateQueryData(g,x,E)):void 0,queryFulfilled:_};b(x,T)}}else if(a(c)){const{requestId:h,baseQueryMeta:g}=c.meta;(p=s[h])==null||p.resolve({data:c.payload,meta:g}),delete s[h]}else if(o(c)){const{requestId:h,rejectedWithValue:g,baseQueryMeta:x}=c.meta;(v=s[h])==null||v.reject({error:c.payload??c.error,isUnhandledError:!g,meta:x}),delete s[h]}}},QY=({api:e,context:{apiUid:t},reducerPath:r})=>(n,i)=>{e.util.resetApiState.match(n)&&i.dispatch(e.internalActions.middlewareRegistered(t))},ZY=({api:e,queryThunk:t,internalState:r})=>{const n=`${e.reducerPath}/subscriptions`;let i=null,o=null;const{updateSubscriptionOptions:a,unsubscribeQueryResult:s}=e.internalActions,l=(h,g)=>{var y,b,S;if(a.match(g)){const{queryCacheKey:_,requestId:C,options:k}=g.payload;return(y=h==null?void 0:h[_])!=null&&y[C]&&(h[_][C]=k),!0}if(s.match(g)){const{queryCacheKey:_,requestId:C}=g.payload;return h[_]&&delete h[_][C],!0}if(e.internalActions.removeQueryResult.match(g))return delete h[g.payload.queryCacheKey],!0;if(t.pending.match(g)){const{meta:{arg:_,requestId:C}}=g,k=h[b=_.queryCacheKey]??(h[b]={});return k[`${C}_running`]={},_.subscribe&&(k[C]=_.subscriptionOptions??k[C]??{}),!0}let x=!1;if(t.fulfilled.match(g)||t.rejected.match(g)){const _=h[g.meta.arg.queryCacheKey]||{},C=`${g.meta.requestId}_running`;x||(x=!!_[C]),delete _[C]}if(t.rejected.match(g)){const{meta:{condition:_,arg:C,requestId:k}}=g;if(_&&C.subscribe){const T=h[S=C.queryCacheKey]??(h[S]={});T[k]=C.subscriptionOptions??T[k]??{},x=!0}}return x},c=()=>r.currentSubscriptions,v={getSubscriptions:c,getSubscriptionCount:h=>{const x=c()[h]??{};return Uu(x)},isRequestSubscribed:(h,g)=>{var y;const x=c();return!!((y=x==null?void 0:x[h])!=null&&y[g])}};return(h,g)=>{if(i||(i=JSON.parse(JSON.stringify(r.currentSubscriptions))),e.util.resetApiState.match(h))return i=r.currentSubscriptions={},o=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(h))return[!1,v];const x=l(r.currentSubscriptions,h);let y=!0;if(x){o||(o=setTimeout(()=>{const _=JSON.parse(JSON.stringify(r.currentSubscriptions)),[,C]=EA(i,()=>_);g.next(e.internalActions.subscriptionsUpdated(C)),i=_,o=null},500));const b=typeof h.type=="string"&&!!h.type.startsWith(n),S=t.rejected.match(h)&&h.meta.condition&&!!h.meta.arg.subscribe;y=!b&&!S}return[y,!1]}};function JY(e){const{reducerPath:t,queryThunk:r,api:n,context:i}=e,{apiUid:o}=i,a={invalidateTags:mn(`${t}/invalidateTags`)},s=p=>p.type.startsWith(`${t}/`),l=[QY,UY,GY,qY,KY,XY];return{middleware:p=>{let v=!1;const g={...e,internalState:{currentSubscriptions:{}},refetchQuery:f,isThisApiSliceAction:s},x=l.map(S=>S(g)),y=ZY(g),b=YY(g);return S=>_=>{if(!_A(_))return S(_);v||(v=!0,p.dispatch(n.internalActions.middlewareRegistered(o)));const C={...p,next:S},k=p.getState(),[T,E]=y(_,C,k);let I;if(T?I=S(_):I=E,p.getState()[t]&&(b(_,C,k),s(_)||i.hasRehydrationInfo(_)))for(let D of x)D(_,C,k);return I}},actions:a};function f(p,v,h={}){return r({type:"query",endpointName:p.endpointName,originalArgs:p.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:v,...h})}}function Va(e,...t){return Object.assign(e,...t)}var rE=Symbol(),RL=({createSelector:e=j_}={})=>({name:rE,init(t,{baseQuery:r,tagTypes:n,reducerPath:i,serializeQueryArgs:o,keepUnusedDataFor:a,refetchOnMountOrArgChange:s,refetchOnFocus:l,refetchOnReconnect:c,invalidationBehavior:f},p){s$();const v=V=>V;Object.assign(t,{reducerPath:i,endpoints:{},internalActions:{onOnline:$S,onOffline:SL,onFocus:zS,onFocusLost:_L},util:{}});const{queryThunk:h,mutationThunk:g,patchQueryData:x,updateQueryData:y,upsertQueryData:b,prefetch:S,buildMatchThunkActions:_}=BY({baseQuery:r,reducerPath:i,context:p,api:t,serializeQueryArgs:o,assertTagType:v}),{reducer:C,actions:k}=jY({context:p,queryThunk:h,mutationThunk:g,reducerPath:i,assertTagType:v,config:{refetchOnFocus:l,refetchOnReconnect:c,refetchOnMountOrArgChange:s,keepUnusedDataFor:a,reducerPath:i,invalidationBehavior:f}});Va(t.util,{patchQueryData:x,updateQueryData:y,upsertQueryData:b,prefetch:S,resetApiState:k.resetApiState}),Va(t.internalActions,k);const{middleware:T,actions:E}=JY({reducerPath:i,context:p,queryThunk:h,mutationThunk:g,api:t,assertTagType:v});Va(t.util,E),Va(t,{reducer:C,middleware:T});const{buildQuerySelector:I,buildMutationSelector:D,selectInvalidatedBy:A,selectCachedArgsForQuery:L}=HY({serializeQueryArgs:o,reducerPath:i,createSelector:e});Va(t.util,{selectInvalidatedBy:A,selectCachedArgsForQuery:L});const{buildInitiateQuery:$,buildInitiateMutation:B,getRunningMutationThunk:j,getRunningMutationsThunk:W,getRunningQueriesThunk:q,getRunningQueryThunk:Z}=FY({queryThunk:h,mutationThunk:g,api:t,serializeQueryArgs:o,context:p});return Va(t.util,{getRunningMutationThunk:j,getRunningMutationsThunk:W,getRunningQueryThunk:Z,getRunningQueriesThunk:q}),{name:rE,injectEndpoint(V,G){var U;const N=t;(U=N.endpoints)[V]??(U[V]={}),wL(G)?Va(N.endpoints[V],{name:V,select:I(V,G),initiate:$(V,G)},_(h,V)):NY(G)&&Va(N.endpoints[V],{name:V,select:D(),initiate:B(V)},_(g,V))}}}});RL();function eK(e){return e.type==="query"}function tK(e){return e.type==="mutation"}function ev(e,...t){return Object.assign(e,...t)}function m1(e){return e.replace(e[0],e[0].toUpperCase())}var vu=WeakMap?new WeakMap:void 0,rK=({endpointName:e,queryArgs:t})=>{let r="";const n=vu==null?void 0:vu.get(t);if(typeof n=="string")r=n;else{const i=JSON.stringify(t,(o,a)=>(a=typeof a=="bigint"?{$bigint:a.toString()}:a,a=zo(a)?Object.keys(a).sort().reduce((s,l)=>(s[l]=a[l],s),{}):a,a));zo(t)&&(vu==null||vu.set(t,i)),r=i}return`${e}(${r})`},y1=Symbol();function nE(e,t,r,n){const i=O.useMemo(()=>({queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:r,endpointName:n}):e}),[e,t,r,n]),o=O.useRef(i);return O.useEffect(()=>{o.current.serialized!==i.serialized&&(o.current=i)},[i]),o.current.serialized===i.serialized?o.current.queryArgs:e}function x1(e){const t=O.useRef(e);return O.useEffect(()=>{ls(t.current,e)||(t.current=e)},[e]),ls(t.current,e)?t.current:e}var nK=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",iK=nK(),oK=()=>typeof navigator<"u"&&navigator.product==="ReactNative",aK=oK(),sK=()=>iK||aK?O.useLayoutEffect:O.useEffect,lK=sK(),uK=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:xL.pending}:e;function cK({api:e,moduleOptions:{batch:t,hooks:{useDispatch:r,useSelector:n,useStore:i},unstable__sideEffectsInRender:o,createSelector:a},serializeQueryArgs:s,context:l}){const c=o?g=>g():O.useEffect;return{buildQueryHooks:v,buildMutationHook:h,usePrefetch:p};function f(g,x,y){if(x!=null&&x.endpointName&&g.isUninitialized){const{endpointName:T}=x,E=l.endpointDefinitions[T];s({queryArgs:x.originalArgs,endpointDefinition:E,endpointName:T})===s({queryArgs:y,endpointDefinition:E,endpointName:T})&&(x=void 0)}let b=g.isSuccess?g.data:x==null?void 0:x.data;b===void 0&&(b=g.data);const S=b!==void 0,_=g.isLoading,C=(!x||x.isLoading||x.isUninitialized)&&!S&&_,k=g.isSuccess||_&&S;return{...g,data:b,currentData:g.data,isFetching:_,isLoading:C,isSuccess:k}}function p(g,x){const y=r(),b=x1(x);return O.useCallback((S,_)=>y(e.util.prefetch(g,S,{...b,..._})),[g,y,b])}function v(g){const x=(S,{refetchOnReconnect:_,refetchOnFocus:C,refetchOnMountOrArgChange:k,skip:T=!1,pollingInterval:E=0,skipPollingIfUnfocused:I=!1}={})=>{const{initiate:D}=e.endpoints[g],A=r(),L=O.useRef(void 0);if(!L.current){const N=A(e.internalActions.internal_getRTKQSubscriptions());L.current=N}const $=nE(T?ml:S,rK,l.endpointDefinitions[g],g),B=x1({refetchOnReconnect:_,refetchOnFocus:C,pollingInterval:E,skipPollingIfUnfocused:I}),j=O.useRef(!1),W=O.useRef(void 0);let{queryCacheKey:q,requestId:Z}=W.current||{},V=!1;q&&Z&&(V=L.current.isRequestSubscribed(q,Z));const G=!V&&j.current;return c(()=>{j.current=V}),c(()=>{G&&(W.current=void 0)},[G]),c(()=>{var Q;const N=W.current;if($===ml){N==null||N.unsubscribe(),W.current=void 0;return}const U=(Q=W.current)==null?void 0:Q.subscriptionOptions;if(!N||N.arg!==$){N==null||N.unsubscribe();const H=A(D($,{subscriptionOptions:B,forceRefetch:k}));W.current=H}else B!==U&&N.updateSubscriptionOptions(B)},[A,D,k,$,B,G]),O.useEffect(()=>()=>{var N;(N=W.current)==null||N.unsubscribe(),W.current=void 0},[]),O.useMemo(()=>({refetch:()=>{var N;if(!W.current)throw new Error(en(38));return(N=W.current)==null?void 0:N.refetch()}}),[])},y=({refetchOnReconnect:S,refetchOnFocus:_,pollingInterval:C=0,skipPollingIfUnfocused:k=!1}={})=>{const{initiate:T}=e.endpoints[g],E=r(),[I,D]=O.useState(y1),A=O.useRef(void 0),L=x1({refetchOnReconnect:S,refetchOnFocus:_,pollingInterval:C,skipPollingIfUnfocused:k});c(()=>{var W,q;const j=(W=A.current)==null?void 0:W.subscriptionOptions;L!==j&&((q=A.current)==null||q.updateSubscriptionOptions(L))},[L]);const $=O.useRef(L);c(()=>{$.current=L},[L]);const B=O.useCallback(function(j,W=!1){let q;return t(()=>{var Z;(Z=A.current)==null||Z.unsubscribe(),A.current=q=E(T(j,{subscriptionOptions:$.current,forceRefetch:!W})),D(j)}),q},[E,T]);return O.useEffect(()=>()=>{var j;(j=A==null?void 0:A.current)==null||j.unsubscribe()},[]),O.useEffect(()=>{I!==y1&&!A.current&&B(I,!0)},[I,B]),O.useMemo(()=>[B,I],[B,I])},b=(S,{skip:_=!1,selectFromResult:C}={})=>{const{select:k}=e.endpoints[g],T=nE(_?ml:S,s,l.endpointDefinitions[g],g),E=O.useRef(void 0),I=O.useMemo(()=>a([k(T),(B,j)=>j,B=>T],f,{memoizeOptions:{resultEqualityCheck:ls}}),[k,T]),D=O.useMemo(()=>C?a([I],C,{devModeChecks:{identityFunctionCheck:"never"}}):I,[I,C]),A=n(B=>D(B,E.current),ls),L=i(),$=I(L.getState(),E.current);return lK(()=>{E.current=$},[$]),A};return{useQueryState:b,useQuerySubscription:x,useLazyQuerySubscription:y,useLazyQuery(S){const[_,C]=y(S),k=b(C,{...S,skip:C===y1}),T=O.useMemo(()=>({lastArg:C}),[C]);return O.useMemo(()=>[_,k,T],[_,k,T])},useQuery(S,_){const C=x(S,_),k=b(S,{selectFromResult:S===ml||_!=null&&_.skip?void 0:uK,..._}),{data:T,status:E,isLoading:I,isSuccess:D,isError:A,error:L}=k;return O.useDebugValue({data:T,status:E,isLoading:I,isSuccess:D,isError:A,error:L}),O.useMemo(()=>({...k,...C}),[k,C])}}}function h(g){return({selectFromResult:x,fixedCacheKey:y}={})=>{const{select:b,initiate:S}=e.endpoints[g],_=r(),[C,k]=O.useState();O.useEffect(()=>()=>{C!=null&&C.arg.fixedCacheKey||C==null||C.reset()},[C]);const T=O.useCallback(function(U){const Q=_(S(U,{fixedCacheKey:y}));return k(Q),Q},[_,S,y]),{requestId:E}=C||{},I=O.useMemo(()=>b({fixedCacheKey:y,requestId:C==null?void 0:C.requestId}),[y,C,b]),D=O.useMemo(()=>x?a([I],x):I,[x,I]),A=n(D,ls),L=y==null?C==null?void 0:C.arg.originalArgs:void 0,$=O.useCallback(()=>{t(()=>{C&&k(void 0),y&&_(e.internalActions.removeMutationResult({requestId:E,fixedCacheKey:y}))})},[_,y,C,E]),{endpointName:B,data:j,status:W,isLoading:q,isSuccess:Z,isError:V,error:G}=A;O.useDebugValue({endpointName:B,data:j,status:W,isLoading:q,isSuccess:Z,isError:V,error:G});const N=O.useMemo(()=>({...A,originalArgs:L,reset:$}),[A,L,$]);return O.useMemo(()=>[T,N],[T,N])}}}var fK=Symbol(),dK=({batch:e=VF,hooks:t={useDispatch:YA,useSelector:FA,useStore:qA},createSelector:r=j_,unstable__sideEffectsInRender:n=!1,...i}={})=>({name:fK,init(o,{serializeQueryArgs:a},s){const l=o,{buildQueryHooks:c,buildMutationHook:f,usePrefetch:p}=cK({api:o,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:n,createSelector:r},serializeQueryArgs:a,context:s});return ev(l,{usePrefetch:p}),ev(s,{batch:e}),{injectEndpoint(v,h){if(eK(h)){const{useQuery:g,useLazyQuery:x,useLazyQuerySubscription:y,useQueryState:b,useQuerySubscription:S}=c(v);ev(l.endpoints[v],{useQuery:g,useLazyQuery:x,useLazyQuerySubscription:y,useQueryState:b,useQuerySubscription:S}),o[`use${m1(v)}Query`]=g,o[`useLazy${m1(v)}Query`]=x}else if(tK(h)){const g=f(v);ev(l.endpoints[v],{useMutation:g}),o[`use${m1(v)}Mutation`]=g}}}}}),pK=kL(RL(),dK());const hK=(e,t,r)=>OY(window.baseUrl?{baseUrl:window.baseUrl,credentials:"include"}:void 0)(e,t,r),bg=pK({baseQuery:hK,endpoints:e=>({getStats:e.query({query:()=>"stats/requests",transformResponse:dl}),getTasks:e.query({query:()=>"tasks",transformResponse:dl}),getExceptions:e.query({query:()=>"exceptions",transformResponse:dl}),getLogs:e.query({query:()=>"logs",transformResponse:dl}),getWorkerCount:e.query({query:()=>"worker-count",transformResponse:dl}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:vY(u2(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})}),updateUserSettings:e.mutation({query:t=>({url:"user",method:"POST",body:u2(t)})}),resetStats:e.mutation({query:()=>({url:"stats/reset",method:"GET"})}),stopSwarm:e.mutation({query:()=>({url:"stop",method:"GET"})})})}),{useGetStatsQuery:vK,useGetTasksQuery:gK,useGetExceptionsQuery:mK,useGetLogsQuery:yK,useGetWorkerCountQuery:xK,useStartSwarmMutation:bK,useUpdateUserSettingsMutation:_K,useStopSwarmMutation:SK,useResetStatsMutation:wK}=bg;function wp(e,{payload:t}){return hY(e,t)}const CK=Do,EL=Ci({name:"swarm",initialState:CK,reducers:{setSwarm:wp}}),Rm=EL.actions,TK=EL.reducer;function kK({availableTasks:e,userToEdit:t,handleEditUser:r}){const{tasks:n,...i}=t.userClass;return M.jsx(yL,{onSubmit:r,children:M.jsxs(Ct,{sx:{display:"flex",flexDirection:"column",rowGap:4,my:2},children:[M.jsx(gt,{children:`${t.userClassName} Settings`}),M.jsx(LS,{defaultValue:n,label:"Tasks",multiple:!0,name:"tasks",options:e}),Object.entries(i).map(([o,a])=>M.jsx(Sl,{defaultValue:a,inputProps:{"data-type":typeof a=="number"?"number":"text"},label:ob(o),name:o},`user-to-edit-${o}`)),M.jsx(Fo,{size:"large",type:"submit",variant:"contained",children:"Save"})]})})}function RK({availableUserClasses:e,availableUserTasks:t,selectedUserClasses:r,setSelectedUserClasses:n,setSwarm:i,users:o}){const[a,s]=O.useState(!1),[l,c]=O.useState(),[f]=_K(),p=y=>{l&&(i({users:{...o,[l.userClassName]:y}}),f({...y,userClassName:l.userClassName}),s(!1))},v=y=>()=>r.includes(y)?n(r.filter(b=>b!==y)):n(r.concat(y)),h=r.length,g=e.length,x=y=>y.target.checked?n(e):n([]);return M.jsxs(M.Fragment,{children:[M.jsx(Ct,{sx:{position:"relative",border:"1px",borderColor:"divider",borderStyle:"solid",padding:2,borderRadius:1},children:M.jsxs(Ct,{sx:{maxHeight:"30vh",overflow:"auto"},children:[M.jsx(Sm,{shrink:!0,sx:{position:"absolute",backgroundColor:"background.paper",width:"fit-content",top:"0",marginTop:"-5px",padding:"0 5px"},children:"User Classes"}),M.jsx(QD,{children:M.jsx(cL,{component:io,children:M.jsxs(lL,{children:[M.jsx(fL,{children:M.jsx(xg,{children:M.jsx(hl,{colSpan:4,padding:"checkbox",children:M.jsx(yb,{checked:g>0&&h===g,indeterminate:h>0&&h<g,onChange:x})})})}),M.jsx(uL,{children:Object.entries(o).map(([y,b])=>M.jsxs(xg,{hover:!0,children:[M.jsx(hl,{onClick:v(y),padding:"checkbox",children:M.jsx(yb,{checked:r.includes(y)})}),M.jsx(hl,{children:y}),M.jsx(hl,{children:M.jsx(gt,{variant:"subtitle2",children:b.host})}),M.jsx(hl,{align:"right",children:M.jsx(Sa,{onClick:()=>{s(!a),c({userClass:b,userClassName:y})},children:M.jsx(TY,{})})})]},`user-class-${y}`))})]})})})]})}),M.jsx(Tm,{onClose:()=>s(!1),open:a,children:l&&M.jsx(kK,{availableTasks:t[l.userClassName],handleEditUser:p,userToEdit:l})})]})}const EK={setSwarm:Rm.setSwarm},PK=({swarm:{availableUserTasks:e,users:t}})=>({availableUserTasks:e,users:t}),MK=li(PK,EK)(RK);function IK(){const[e,t]=O.useState({}),[r,n]=O.useState(!0),i=(a,s,l,{onlyDelete:c}={onlyDelete:!1})=>{const f={...e};let p;const v=l.match&&Array.isArray(l.match)&&l.match.find(({pattern:h})=>!new RegExp(h).test(s));l.minLength&&s.length<l.minLength?p=`Please enter at least ${l.minLength} characters`:v?p=v.message||"Invalid format":l.match&&!Array.isArray(l.match)&&!new RegExp(l.match.pattern).test(s)?p=l.match.message||"Invalid format":delete f[a],p&&!c&&(f[a]=p),t(f),n(Object.keys(f).length===0)};return{register:(a,s,l="onChange")=>({...e[a]&&s.level?{color:s.level,focused:!0,FormHelperTextProps:{sx:{color:f=>f.palette.warning.main}}}:{},name:a,onChange:({target:{value:f}})=>i(a,f,s,{onlyDelete:!0}),[l]:({target:{value:f}})=>i(a,f,s),error:!!e[a]&&!s.level,helperText:e[a]||""}),isValid:r}}const AK=/^(?:[a-zA-Z][a-zA-Z\d+\-.]*):\/\/[^\s/$.?#].[^\s]*$/,DK=({isDisabled:e,isDistributed:t,workerCount:r})=>e?{isFormDisabled:!0}:t&&!r?{isFormDisabled:!0,reason:"You can't start a distributed test before at least one worker processes has connected"}:{};function LK({allProfiles:e,availableShapeClasses:t,availableUserClasses:r,host:n,extraOptions:i,hideCommonOptions:o,shapeUseCommonOptions:a,numUsers:s,userCount:l,overrideHostWarning:c,missingHostWarning:f,profile:p,runTime:v,setSwarm:h,showUserclassPicker:g,spawnRate:x,alert:y,isDisabled:b=!1,isEditSwarm:S=!1,isHostRequired:_,onFormChange:C,onFormSubmit:k,advancedOptions:T}){const[E]=bK(),[I,D]=O.useState(""),[A,L]=O.useState(r),$=bn(({swarm:G})=>G),{register:B}=IK(),{reason:j,isFormDisabled:W}=O.useMemo(()=>DK({isDisabled:b,...$}),[b,$]),q=async G=>{const{data:N}=await E({...G,...g&&A?{userClasses:A}:{}});N&&N.success?h({state:Vr.RUNNING,host:G.host||n,runTime:G.runTime,spawnRate:G.spawnRate,userCount:G.userCount,profile:G.profile}):D(N?N.message:"An unknown error occured."),k&&k(G)},Z=G=>{I&&D(""),C&&C(G)},V=G=>{if(!a){const N=G.target.value!==t[0];h({hideCommonOptions:N})}};return M.jsxs(Sp,{maxWidth:"md",sx:{my:2},children:[M.jsx(gt,{component:"h2",noWrap:!0,variant:"h6",children:S?"Edit running load test":"Start new load test"}),!S&&g&&M.jsx(Ct,{marginBottom:2,marginTop:2,children:M.jsx(MK,{availableUserClasses:r,selectedUserClasses:A,setSelectedUserClasses:L})}),M.jsx(yL,{onChange:Z,onSubmit:q,children:M.jsxs(Ct,{sx:{marginBottom:2,marginTop:2,display:"flex",flexDirection:"column",rowGap:4},children:[!S&&g&&M.jsx(LS,{label:"Shape Class",name:"shapeClass",onChange:V,options:t}),M.jsx(HR,{defaultValue:o&&"0"||l||s||1,disabled:!!o,label:"Number of users (peak concurrency)",name:"userCount",required:!0,title:o?"Disabled for tests using LoadTestShape class":""}),M.jsx(HR,{defaultValue:o&&"0"||x||1,disabled:!!o,label:"Ramp up (users started/second)",name:"spawnRate",required:!0,title:o?"Disabled for tests using LoadTestShape class":""}),!S&&M.jsxs(M.Fragment,{children:[M.jsx(Sl,{...B("host",{match:{pattern:AK,message:"Please use a valid url format e.g. https://google.com"},level:"warning"},"onBlur"),defaultValue:n,label:`Host ${c?"(setting this will override the host for the User classes)":""}`,name:"host",required:_}),M.jsxs(gS,{children:[M.jsx(yS,{expandIcon:M.jsx(NS,{}),children:M.jsx(gt,{children:"Advanced options"})}),M.jsx(mS,{children:M.jsxs(Ct,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[M.jsx(Sl,{defaultValue:v,disabled:!!o,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"},title:o?"Disabled for tests using LoadTestShape class":""}),M.jsx(uV,{defaultValue:p,disablePortal:!0,freeSolo:!0,options:e&&Array.isArray(e)?e:[],renderInput:G=>M.jsx(Sl,{...G,defaultValue:p,label:"Profile",name:"profile"})}),T&&T.map(({component:G,...N},U)=>G?M.jsx(G,{...N}):O.createElement(OS,{...N,key:`advanced-parameter-${U}`}))]})})]})]}),!!i&&!mL(i)&&M.jsx(SY,{extraOptions:i}),y&&!I&&M.jsx(ua,{severity:y.level||"info",children:y.message}),(I||j)&&M.jsx(ua,{severity:"error",children:I||j}),!_&&f&&M.jsx(ua,{severity:"info",children:"One or more User class in your locustfile has no host attribute set. Please provide one in the field above."}),M.jsx(Fo,{disabled:W,size:"large",type:"submit",variant:"contained",children:S?"Update":"Start"})]})})]})}const OK=({swarm:{allProfiles:e,availableShapeClasses:t,availableUserClasses:r,extraOptions:n,hideCommonOptions:i,shapeUseCommonOptions:o,host:a,numUsers:s,userCount:l,overrideHostWarning:c,missingHostWarning:f,isHostRequired:p,profile:v,runTime:h,spawnRate:g,showUserclassPicker:x}},y)=>({allProfiles:e||(y==null?void 0:y.allProfiles),availableShapeClasses:t,availableUserClasses:r,extraOptions:n,hideCommonOptions:i,shapeUseCommonOptions:o,host:a,overrideHostWarning:c,missingHostWarning:f,isHostRequired:p,profile:v,showUserclassPicker:x,numUsers:s,userCount:l,runTime:h,spawnRate:g}),NK={setSwarm:Rm.setSwarm},BS=li(OK,NK)(LK);function zK(e){const[t,r]=O.useState(!1),{hideCommonOptions:n}=bn(({swarm:i})=>i);return M.jsxs(M.Fragment,{children:[M.jsx(aL,{title:n?"Disabled for tests using LoadTestShape class":"",children:M.jsx(Ct,{children:M.jsx(Fo,{color:"secondary",disabled:!!n,onClick:()=>r(!0),sx:{minHeight:"100%"},type:"button",variant:"contained",children:"Edit"})})}),M.jsx(Tm,{onClose:()=>r(!1),open:t,children:M.jsx(BS,{...e,isEditSwarm:!0,onFormSubmit:()=>r(!1)})})]})}function $K(e){const[t,r]=O.useState(!1);return M.jsxs(M.Fragment,{children:[M.jsx(Fo,{color:"success",onClick:()=>r(!0),type:"button",variant:"contained",children:"New"}),M.jsx(Tm,{onClose:()=>r(!1),open:t,children:M.jsx(BS,{...e})})]})}function FK(){const[e]=wK(),t=()=>{e()};return M.jsx(Fo,{color:"warning",onClick:t,type:"button",variant:"contained",children:"Reset"})}function BK(){const[e,t]=O.useState(!1),[r]=SK();O.useEffect(()=>{t(!1)},[]);const n=()=>{r(),t(!0)};return M.jsx(Fo,{color:"error",disabled:e,onClick:n,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function iE(){const e=bn(({swarm:t})=>t.state);return e===Vr.READY?null:M.jsxs(Ct,{sx:{display:"flex",columnGap:2,marginY:"auto",height:"50px"},children:[e===Vr.STOPPED?M.jsx($K,{}):M.jsxs(M.Fragment,{children:[M.jsx(zK,{}),M.jsx(BK,{})]}),M.jsx(FK,{})]})}function jK(){const e=Ho(),[t,r]=O.useState(!1);O.useEffect(()=>{const i=()=>{window.innerWidth>=e.breakpoints.values.md&&r(!1)};return window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}},[]);const n=i=>()=>{r(i)};return M.jsxs(M.Fragment,{children:[M.jsx(L9,{position:"static",children:M.jsx(Sp,{maxWidth:"xl",children:M.jsxs(pq,{disableGutters:!0,sx:{display:"flex",justifyContent:"space-between",columnGap:2},children:[M.jsx(Or,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center"},underline:"none",children:M.jsx(dL,{})}),M.jsx(Sa,{"aria-label":"menu",color:"inherit",edge:"start",onClick:n(!0),sx:{display:{xs:"block",md:"none"}},children:M.jsx(pY,{})}),M.jsxs(Ct,{sx:{display:{xs:"none",md:"flex"},columnGap:{md:2,lg:6}},children:[M.jsx(BR,{}),M.jsx(iE,{}),M.jsx(bb,{})]})]})})}),M.jsx(p7,{anchor:"right",onClose:n(!1),open:t,children:M.jsxs(Ct,{sx:{display:"flex",flexDirection:"column",columnGap:{md:2,lg:6},rowGap:2,p:2,maxWidth:"100vw"},children:[M.jsx(Ct,{sx:{display:"flex",justifyContent:"flex-end"},children:M.jsx(bb,{})}),M.jsx(iE,{}),M.jsx(BR,{})]})})]})}function HK({children:e}){return M.jsxs(M.Fragment,{children:[M.jsxs(Ct,{sx:{minHeight:"calc(100vh - var(--footer-height))"},children:[M.jsx(jK,{}),M.jsx("main",{children:e})]}),M.jsx(cY,{})]})}const PL=e=>e.includes("WARNING")||e.includes("ERROR")||e.includes("CRITICAL"),ML="logViewer";function Cp(e,t,{shouldRunInterval:r,immediate:n}={shouldRunInterval:!0,immediate:!1}){const i=O.useRef(e);O.useEffect(()=>{i.current=e},[e]),O.useEffect(()=>{if(!r)return;n&&i.current();const o=setInterval(()=>i.current(),t);return()=>{clearInterval(o)}},[t,r])}const WK={},IL=Ci({name:"notification",initialState:WK,reducers:{setNotification:wp}}),AL=IL.actions,VK=IL.reducer;function UK(e,{key:t,shouldNotify:r}){const n=Ro(AL.setNotification),i=bn(({url:{query:a}})=>a&&a.tab),o=`${t}Notification`;O.useEffect(()=>{e.length>0&&e.length<localStorage[o]&&(localStorage[o]=e.length),e.length>(localStorage[o]||0)&&(!i||i!==t)&&(!r||r&&r(o))&&(n({[t]:!0}),localStorage[o]=e.length)},[e])}const GK={master:[],workers:{}},DL=Ci({name:"logViewer",initialState:GK,reducers:{setLogs:wp}}),qK=DL.actions,YK=DL.reducer,LL=e=>e.reduce((t,r)=>t.concat(Array.isArray(r)?LL(r):r),[]),KK={master:[],workers:{}};function XK(){const e=bn(({swarm:l})=>l),t=Ro(qK.setLogs),{data:r,refetch:n}=yK(),i=r||KK,o=O.useMemo(()=>LL(Object.values(i.workers)),[i.workers]),a=O.useMemo(()=>[...i.master].concat(o),[i.master,i.workers]),s=O.useCallback(l=>a.slice(localStorage[l]).some(PL),[a]);return Cp(n,5e3,{shouldRunInterval:e.state===Vr.SPAWNING||e.state==Vr.RUNNING}),UK(a,{key:ML,shouldNotify:s}),O.useEffect(()=>{t(i)},[i]),i}var _f={},oE;function QK(){if(oE)return _f;oE=1;var e=ws();Object.defineProperty(_f,"__esModule",{value:!0}),_f.default=void 0;var t=e(Cs()),r=_a(),n=(0,t.default)([(0,r.jsx)("circle",{cx:"12",cy:"19",r:"2"},"0"),(0,r.jsx)("path",{d:"M10 3h4v12h-4z"},"1")],"PriorityHigh");return _f.default=n,_f}var ZK=QK();const OL=si(ZK);function JK(e,t){const r=t?-1:1;return function(n,i){const o=n[e],a=i[e];return o<a?r*-1:o>a?r*1:0}}function eX(e,{hasTotalRow:t=!1,defaultSortKey:r="name"}={hasTotalRow:!1,defaultSortKey:"name"}){const[n,i]=O.useState(e),[o,a]=O.useState(!1),s=O.useRef(),l=f=>{const v=(t?e.slice(0,-1):[...e]).sort(JK(f,f===s.current&&!o));i(t?[...v,...e.slice(-1)]:v)},c=O.useCallback(f=>{s.current||(s.current=r);const p=f.target.getAttribute("data-sortkey");if(p===s.current)if(o){a(!1),s.current=void 0,l(r);return}else a(!0);else o&&a(!1);l(p),s.current=p},[s,e,o]);return O.useEffect(()=>{e.length?l(s.current||r):l.length&&i(e)},[e]),{onTableHeadClick:c,sortedRows:n,currentSortField:s.current}}const Qf=(e,t=0)=>{const r=Math.pow(10,t);return Math.round(e*r)/r};function tX({content:e,formatter:t,round:r}){return t?t(e):r?Qf(e,r):e}function Tp({rows:e,structure:t,hasTotalRow:r,defaultSortKey:n}){const{onTableHeadClick:i,sortedRows:o,currentSortField:a}=eX(e,{hasTotalRow:r,defaultSortKey:n});return M.jsx(cL,{component:io,children:M.jsxs(lL,{children:[M.jsx(fL,{sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper"},children:M.jsx(xg,{children:t.map(({title:s,key:l})=>M.jsx(hl,{"data-sortkey":l,onClick:i,sx:{cursor:"pointer",color:a===l?"primary.main":"text.primary"},children:s},`table-head-${l}`))})}),M.jsx(uL,{children:o.map((s,l)=>M.jsx(xg,{children:t.map(({key:c,...f},p)=>M.jsx(hl,{children:M.jsx(tX,{content:s[c],...f})},`table-row=${p}`))},`${s.name}-${l}`))})]})})}function rX({rows:e,tableStructure:t}){return t?M.jsx(Tp,{rows:e,structure:t}):null}const nX=({swarm:{extendedTables:e},ui:{extendedStats:t},url:{query:r}})=>{const n=r&&r.tab&&e&&e.find(({key:o})=>o===r.tab),i=r&&r.tab&&t&&t.find(({key:o})=>o===r.tab);return{tableStructure:n?n.structure.map(({key:o,...a})=>({key:XA(o),...a})):null,rows:i?i.data:[]}},iX=li(nX)(rX),oX=[{key:"count",title:"# occurrences"},{key:"msg",title:"Message"},{key:"traceback",title:"Traceback"}];function aX({exceptions:e}){return M.jsx(Tp,{rows:e,structure:oX})}const sX=({ui:{exceptions:e}})=>({exceptions:e}),lX=li(sX)(aX),uX={totalRps:0,failRatio:0,startTime:"",stats:[],errors:[],exceptions:[],charts:(Do.history||[]).reduce(km,{}),ratios:{},userCount:0};var yA;const cX=(yA=Do.percentilesToChart)==null?void 0:yA.reduce((e,t)=>({...e,[`responseTimePercentile${t}`]:{value:null}}),{}),fX=e=>km(e,{...cX,currentRps:{value:null},currentFailPerSec:{value:null},totalAvgResponseTime:{value:null},userCount:{value:null},time:""}),NL=Ci({name:"ui",initialState:uX,reducers:{setUi:wp,updateCharts:(e,{payload:t})=>({...e,charts:km(e.charts,t)}),updateChartMarkers:(e,{payload:t})=>({...e,charts:{...fX(e.charts),markers:e.charts.markers?[...e.charts.markers,t]:[(e.charts.time||[""])[0],t]}})}}),vd=NL.actions,dX=NL.reducer;function pX(){const{data:e,refetch:t}=mK(),r=Ro(vd.setUi),n=bn(({swarm:o})=>o.state),i=n===Vr.SPAWNING||n==Vr.RUNNING;O.useEffect(()=>{e&&r({exceptions:e.exceptions})},[e]),Cp(t,5e3,{shouldRunInterval:i,immediate:!0})}function hX(){return pX(),M.jsx(lX,{})}const vX=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message"}];function gX({errors:e}){return M.jsx(Tp,{rows:e,structure:vX})}const mX=({ui:{errors:e}})=>({errors:e}),yX=li(mX)(gX);function xX(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const bX=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,_X=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,SX={};function aE(e,t){return(SX.jsx?_X:bX).test(e)}const wX=/[ \t\n\f\r]/g;function CX(e){return typeof e=="object"?e.type==="text"?sE(e.value):!1:sE(e)}function sE(e){return e.replace(wX,"")===""}class kp{constructor(t,r,n){this.normal=r,this.property=t,n&&(this.space=n)}}kp.prototype.normal={};kp.prototype.property={};kp.prototype.space=void 0;function zL(e,t){const r={},n={};for(const i of e)Object.assign(r,i.property),Object.assign(n,i.normal);return new kp(r,n,t)}function wb(e){return e.toLowerCase()}class Un{constructor(t,r){this.attribute=r,this.property=t}}Un.prototype.attribute="";Un.prototype.booleanish=!1;Un.prototype.boolean=!1;Un.prototype.commaOrSpaceSeparated=!1;Un.prototype.commaSeparated=!1;Un.prototype.defined=!1;Un.prototype.mustUseProperty=!1;Un.prototype.number=!1;Un.prototype.overloadedBoolean=!1;Un.prototype.property="";Un.prototype.spaceSeparated=!1;Un.prototype.space=void 0;let TX=0;const pt=$l(),wr=$l(),Cb=$l(),Ce=$l(),Zt=$l(),Gu=$l(),Xn=$l();function $l(){return 2**++TX}const Tb=Object.freeze(Object.defineProperty({__proto__:null,boolean:pt,booleanish:wr,commaOrSpaceSeparated:Xn,commaSeparated:Gu,number:Ce,overloadedBoolean:Cb,spaceSeparated:Zt},Symbol.toStringTag,{value:"Module"})),b1=Object.keys(Tb);class jS extends Un{constructor(t,r,n,i){let o=-1;if(super(t,r),lE(this,"space",i),typeof n=="number")for(;++o<b1.length;){const a=b1[o];lE(this,b1[o],(n&Tb[a])===Tb[a])}}}jS.prototype.defined=!0;function lE(e,t,r){r&&(e[t]=r)}function gc(e){const t={},r={};for(const[n,i]of Object.entries(e.properties)){const o=new jS(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(o.mustUseProperty=!0),t[n]=o,r[wb(n)]=n,r[wb(o.attribute)]=n}return new kp(t,r,e.space)}const $L=gc({properties:{ariaActiveDescendant:null,ariaAtomic:wr,ariaAutoComplete:null,ariaBusy:wr,ariaChecked:wr,ariaColCount:Ce,ariaColIndex:Ce,ariaColSpan:Ce,ariaControls:Zt,ariaCurrent:null,ariaDescribedBy:Zt,ariaDetails:null,ariaDisabled:wr,ariaDropEffect:Zt,ariaErrorMessage:null,ariaExpanded:wr,ariaFlowTo:Zt,ariaGrabbed:wr,ariaHasPopup:null,ariaHidden:wr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Zt,ariaLevel:Ce,ariaLive:null,ariaModal:wr,ariaMultiLine:wr,ariaMultiSelectable:wr,ariaOrientation:null,ariaOwns:Zt,ariaPlaceholder:null,ariaPosInSet:Ce,ariaPressed:wr,ariaReadOnly:wr,ariaRelevant:null,ariaRequired:wr,ariaRoleDescription:Zt,ariaRowCount:Ce,ariaRowIndex:Ce,ariaRowSpan:Ce,ariaSelected:wr,ariaSetSize:Ce,ariaSort:null,ariaValueMax:Ce,ariaValueMin:Ce,ariaValueNow:Ce,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function FL(e,t){return t in e?e[t]:t}function BL(e,t){return FL(e,t.toLowerCase())}const kX=gc({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Gu,acceptCharset:Zt,accessKey:Zt,action:null,allow:null,allowFullScreen:pt,allowPaymentRequest:pt,allowUserMedia:pt,alt:null,as:null,async:pt,autoCapitalize:null,autoComplete:Zt,autoFocus:pt,autoPlay:pt,blocking:Zt,capture:null,charSet:null,checked:pt,cite:null,className:Zt,cols:Ce,colSpan:null,content:null,contentEditable:wr,controls:pt,controlsList:Zt,coords:Ce|Gu,crossOrigin:null,data:null,dateTime:null,decoding:null,default:pt,defer:pt,dir:null,dirName:null,disabled:pt,download:Cb,draggable:wr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:pt,formTarget:null,headers:Zt,height:Ce,hidden:Cb,high:Ce,href:null,hrefLang:null,htmlFor:Zt,httpEquiv:Zt,id:null,imageSizes:null,imageSrcSet:null,inert:pt,inputMode:null,integrity:null,is:null,isMap:pt,itemId:null,itemProp:Zt,itemRef:Zt,itemScope:pt,itemType:Zt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:pt,low:Ce,manifest:null,max:null,maxLength:Ce,media:null,method:null,min:null,minLength:Ce,multiple:pt,muted:pt,name:null,nonce:null,noModule:pt,noValidate:pt,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:pt,optimum:Ce,pattern:null,ping:Zt,placeholder:null,playsInline:pt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:pt,referrerPolicy:null,rel:Zt,required:pt,reversed:pt,rows:Ce,rowSpan:Ce,sandbox:Zt,scope:null,scoped:pt,seamless:pt,selected:pt,shadowRootClonable:pt,shadowRootDelegatesFocus:pt,shadowRootMode:null,shape:null,size:Ce,sizes:null,slot:null,span:Ce,spellCheck:wr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ce,step:null,style:null,tabIndex:Ce,target:null,title:null,translate:null,type:null,typeMustMatch:pt,useMap:null,value:wr,width:Ce,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Zt,axis:null,background:null,bgColor:null,border:Ce,borderColor:null,bottomMargin:Ce,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:pt,declare:pt,event:null,face:null,frame:null,frameBorder:null,hSpace:Ce,leftMargin:Ce,link:null,longDesc:null,lowSrc:null,marginHeight:Ce,marginWidth:Ce,noResize:pt,noHref:pt,noShade:pt,noWrap:pt,object:null,profile:null,prompt:null,rev:null,rightMargin:Ce,rules:null,scheme:null,scrolling:wr,standby:null,summary:null,text:null,topMargin:Ce,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ce,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:pt,disableRemotePlayback:pt,prefix:null,property:null,results:Ce,security:null,unselectable:null},space:"html",transform:BL}),RX=gc({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:Xn,accentHeight:Ce,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ce,amplitude:Ce,arabicForm:null,ascent:Ce,attributeName:null,attributeType:null,azimuth:Ce,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ce,by:null,calcMode:null,capHeight:Ce,className:Zt,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:Ce,diffuseConstant:Ce,direction:null,display:null,dur:null,divisor:Ce,dominantBaseline:null,download:pt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ce,enableBackground:null,end:null,event:null,exponent:Ce,externalResourcesRequired:null,fill:null,fillOpacity:Ce,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:Gu,g2:Gu,glyphName:Gu,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ce,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ce,horizOriginX:Ce,horizOriginY:Ce,id:null,ideographic:Ce,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ce,k:Ce,k1:Ce,k2:Ce,k3:Ce,k4:Ce,kernelMatrix:Xn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ce,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:Ce,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:Ce,overlineThickness:Ce,paintOrder:null,panose1:null,path:null,pathLength:Ce,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Zt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ce,pointsAtY:Ce,pointsAtZ:Ce,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Xn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Xn,rev:Xn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Xn,requiredFeatures:Xn,requiredFonts:Xn,requiredFormats:Xn,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:Ce,specularExponent:Ce,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ce,strikethroughThickness:Ce,string:null,stroke:null,strokeDashArray:Xn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ce,strokeOpacity:Ce,strokeWidth:null,style:null,surfaceScale:Ce,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Xn,tabIndex:Ce,tableValues:null,target:null,targetX:Ce,targetY:Ce,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Xn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ce,underlineThickness:Ce,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ce,values:null,vAlphabetic:Ce,vMathematical:Ce,vectorEffect:null,vHanging:Ce,vIdeographic:Ce,version:null,vertAdvY:Ce,vertOriginX:Ce,vertOriginY:Ce,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ce,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:FL}),jL=gc({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()}}),HL=gc({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:BL}),WL=gc({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),EX={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"},PX=/[A-Z]/g,uE=/-[a-z]/g,MX=/^data[-\w.:]+$/i;function IX(e,t){const r=wb(t);let n=t,i=Un;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&MX.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(uE,DX);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!uE.test(o)){let a=o.replace(PX,AX);a.charAt(0)!=="-"&&(a="-"+a),t="data"+a}}i=jS}return new i(n,t)}function AX(e){return"-"+e.toLowerCase()}function DX(e){return e.charAt(1).toUpperCase()}const LX=zL([$L,kX,jL,HL,WL],"html"),HS=zL([$L,RX,jL,HL,WL],"svg");function OX(e){return e.join(" ").trim()}var gu={},_1,cE;function NX(){if(cE)return _1;cE=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
143
- `,c="/",f="*",p="",v="comment",h="declaration";_1=function(x,y){if(typeof x!="string")throw new TypeError("First argument must be a string");if(!x)return[];y=y||{};var b=1,S=1;function _(B){var j=B.match(t);j&&(b+=j.length);var W=B.lastIndexOf(l);S=~W?B.length-W:S+B.length}function C(){var B={line:b,column:S};return function(j){return j.position=new k(B),I(),j}}function k(B){this.start=B,this.end={line:b,column:S},this.source=y.source}k.prototype.content=x;function T(B){var j=new Error(y.source+":"+b+":"+S+": "+B);if(j.reason=B,j.filename=y.source,j.line=b,j.column=S,j.source=x,!y.silent)throw j}function E(B){var j=B.exec(x);if(j){var W=j[0];return _(W),x=x.slice(W.length),j}}function I(){E(r)}function D(B){var j;for(B=B||[];j=A();)j!==!1&&B.push(j);return B}function A(){var B=C();if(!(c!=x.charAt(0)||f!=x.charAt(1))){for(var j=2;p!=x.charAt(j)&&(f!=x.charAt(j)||c!=x.charAt(j+1));)++j;if(j+=2,p===x.charAt(j-1))return T("End of comment missing");var W=x.slice(2,j-2);return S+=2,_(W),x=x.slice(j),S+=2,B({type:v,comment:W})}}function L(){var B=C(),j=E(n);if(j){if(A(),!E(i))return T("property missing ':'");var W=E(o),q=B({type:h,property:g(j[0].replace(e,p)),value:W?g(W[0].replace(e,p)):p});return E(a),q}}function $(){var B=[];D(B);for(var j;j=L();)j!==!1&&(B.push(j),D(B));return B}return I(),$()};function g(x){return x?x.replace(s,p):p}return _1}var fE;function zX(){if(fE)return gu;fE=1;var e=gu&&gu.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(gu,"__esModule",{value:!0}),gu.default=r;var t=e(NX());function r(n,i){var o=null;if(!n||typeof n!="string")return o;var a=(0,t.default)(n),s=typeof i=="function";return a.forEach(function(l){if(l.type==="declaration"){var c=l.property,f=l.value;s?i(c,f,l):f&&(o=o||{},o[c]=f)}}),o}return gu}var Sf={},dE;function $X(){if(dE)return Sf;dE=1,Object.defineProperty(Sf,"__esModule",{value:!0}),Sf.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,r=/^[^-]+$/,n=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(c){return!c||r.test(c)||e.test(c)},a=function(c,f){return f.toUpperCase()},s=function(c,f){return"".concat(f,"-")},l=function(c,f){return f===void 0&&(f={}),o(c)?c:(c=c.toLowerCase(),f.reactCompat?c=c.replace(i,s):c=c.replace(n,s),c.replace(t,a))};return Sf.camelCase=l,Sf}var wf,pE;function FX(){if(pE)return wf;pE=1;var e=wf&&wf.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(zX()),r=$X();function n(i,o){var a={};return!i||typeof i!="string"||(0,t.default)(i,function(s,l){s&&l&&(a[(0,r.camelCase)(s,o)]=l)}),a}return n.default=n,wf=n,wf}var BX=FX();const jX=si(BX),VL=UL("end"),WS=UL("start");function UL(e){return t;function t(r){const n=r&&r.position&&r.position[e]||{};if(typeof n.line=="number"&&n.line>0&&typeof n.column=="number"&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset=="number"&&n.offset>-1?n.offset:void 0}}}function HX(e){const t=WS(e),r=VL(e);if(t&&r)return{start:t,end:r}}function gd(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?hE(e.position):"start"in e||"end"in e?hE(e):"line"in e||"column"in e?kb(e):""}function kb(e){return vE(e&&e.line)+":"+vE(e&&e.column)}function hE(e){return kb(e&&e.start)+"-"+kb(e&&e.end)}function vE(e){return e&&typeof e=="number"?e:1}class nn extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",o={},a=!1;if(r&&("line"in r&&"column"in r?o={place:r}:"start"in r&&"end"in r?o={place:r}:"type"in r?o={ancestors:[r],place:r.position}:o={...r}),typeof t=="string"?i=t:!o.cause&&t&&(a=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?o.ruleId=n:(o.source=n.slice(0,l),o.ruleId=n.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=s?s.line:void 0,this.name=gd(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=a&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual,this.expected,this.note,this.url}}nn.prototype.file="";nn.prototype.name="";nn.prototype.reason="";nn.prototype.message="";nn.prototype.stack="";nn.prototype.column=void 0;nn.prototype.line=void 0;nn.prototype.ancestors=void 0;nn.prototype.cause=void 0;nn.prototype.fatal=void 0;nn.prototype.place=void 0;nn.prototype.ruleId=void 0;nn.prototype.source=void 0;const VS={}.hasOwnProperty,WX=new Map,VX=/[A-Z]/g,UX=new Set(["table","tbody","thead","tfoot","tr"]),GX=new Set(["td","th"]),GL="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function qX(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const r=t.filePath||void 0;let n;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");n=tQ(r,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");n=eQ(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?HS:LX,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=qL(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function qL(e,t,r){if(t.type==="element")return YX(e,t,r);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return KX(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return QX(e,t,r);if(t.type==="mdxjsEsm")return XX(e,t);if(t.type==="root")return ZX(e,t,r);if(t.type==="text")return JX(e,t)}function YX(e,t,r){const n=e.schema;let i=n;t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=HS,e.schema=i),e.ancestors.push(t);const o=KL(e,t.tagName,!1),a=rQ(e,t);let s=GS(e,t);return UX.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!CX(l):!0})),YL(e,a,o,t),US(a,s),e.ancestors.pop(),e.schema=n,e.create(t,o,a,r)}function KX(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}Kd(e,t.position)}function XX(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Kd(e,t.position)}function QX(e,t,r){const n=e.schema;let i=n;t.name==="svg"&&n.space==="html"&&(i=HS,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:KL(e,t.name,!0),a=nQ(e,t),s=GS(e,t);return YL(e,a,o,t),US(a,s),e.ancestors.pop(),e.schema=n,e.create(t,o,a,r)}function ZX(e,t,r){const n={};return US(n,GS(e,t)),e.create(t,e.Fragment,n,r)}function JX(e,t){return t.value}function YL(e,t,r,n){typeof r!="string"&&r!==e.Fragment&&e.passNode&&(t.node=n)}function US(e,t){if(t.length>0){const r=t.length>1?t:t[0];r&&(e.children=r)}}function eQ(e,t,r){return n;function n(i,o,a,s){const c=Array.isArray(a.children)?r:t;return s?c(o,a,s):c(o,a)}}function tQ(e,t){return r;function r(n,i,o,a){const s=Array.isArray(o.children),l=WS(n);return t(i,o,a,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function rQ(e,t){const r={};let n,i;for(i in t.properties)if(i!=="children"&&VS.call(t.properties,i)){const o=iQ(e,i,t.properties[i]);if(o){const[a,s]=o;e.tableCellAlignToStyle&&a==="align"&&typeof s=="string"&&GX.has(t.tagName)?n=s:r[a]=s}}if(n){const o=r.style||(r.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=n}return r}function nQ(e,t){const r={};for(const n of t.attributes)if(n.type==="mdxJsxExpressionAttribute")if(n.data&&n.data.estree&&e.evaluater){const o=n.data.estree.body[0];o.type;const a=o.expression;a.type;const s=a.properties[0];s.type,Object.assign(r,e.evaluater.evaluateExpression(s.argument))}else Kd(e,t.position);else{const i=n.name;let o;if(n.value&&typeof n.value=="object")if(n.value.data&&n.value.data.estree&&e.evaluater){const s=n.value.data.estree.body[0];s.type,o=e.evaluater.evaluateExpression(s.expression)}else Kd(e,t.position);else o=n.value===null?!0:n.value;r[i]=o}return r}function GS(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:WX;for(;++n<t.children.length;){const o=t.children[n];let a;if(e.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const c=i.get(l)||0;a=l+"-"+c,i.set(l,c+1)}}const s=qL(e,o,a);s!==void 0&&r.push(s)}return r}function iQ(e,t,r){const n=IX(e.schema,t);if(!(r==null||typeof r=="number"&&Number.isNaN(r))){if(Array.isArray(r)&&(r=n.commaSeparated?xX(r):OX(r)),n.property==="style"){let i=typeof r=="object"?r:oQ(e,String(r));return e.stylePropertyNameCase==="css"&&(i=aQ(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&n.space?EX[n.property]||n.property:n.attribute,r]}}function oQ(e,t){try{return jX(t,{reactCompat:!0})}catch(r){if(e.ignoreInvalidStyle)return{};const n=r,i=new nn("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=GL+"#cannot-parse-style-attribute",i}}function KL(e,t,r){let n;if(!r)n={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,a;for(;++o<i.length;){const s=aE(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};a=a?{type:"MemberExpression",object:a,property:s,computed:!!(o&&s.type==="Literal"),optional:!1}:s}n=a}else n=aE(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(n.type==="Literal"){const i=n.value;return VS.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(n);Kd(e)}function Kd(e,t){const r=new nn("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=GL+"#cannot-handle-mdx-estrees-without-createevaluater",r}function aQ(e){const t={};let r;for(r in e)VS.call(e,r)&&(t[sQ(r)]=e[r]);return t}function sQ(e){let t=e.replace(VX,lQ);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function lQ(e){return"-"+e.toLowerCase()}const S1={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"]},uQ={};function cQ(e,t){const r=uQ,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return XL(e,n,i)}function XL(e,t,r){if(fQ(e)){if("value"in e)return e.type==="html"&&!r?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return gE(e.children,t,r)}return Array.isArray(e)?gE(e,t,r):""}function gE(e,t,r){const n=[];let i=-1;for(;++i<e.length;)n[i]=XL(e[i],t,r);return n.join("")}function fQ(e){return!!(e&&typeof e=="object")}const mE=document.createElement("i");function qS(e){const t="&"+e+";";mE.innerHTML=t;const r=mE.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function Bo(e,t,r,n){const i=e.length;let o=0,a;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)a=Array.from(n),a.unshift(t,r),e.splice(...a);else for(r&&e.splice(t,r);o<n.length;)a=n.slice(o,o+1e4),a.unshift(t,0),e.splice(...a),o+=1e4,t+=1e4}function Ti(e,t){return e.length>0?(Bo(e,e.length,0,t),e):t}const yE={}.hasOwnProperty;function dQ(e){const t={};let r=-1;for(;++r<e.length;)pQ(t,e[r]);return t}function pQ(e,t){let r;for(r in t){const i=(yE.call(e,r)?e[r]:void 0)||(e[r]={}),o=t[r];let a;if(o)for(a in o){yE.call(i,a)||(i[a]=[]);const s=o[a];hQ(i[a],Array.isArray(s)?s:s?[s]:[])}}}function hQ(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);Bo(e,0,0,n)}function QL(e,t){const r=Number.parseInt(e,t);return r<9||r===11||r>13&&r<32||r>126&&r<160||r>55295&&r<57344||r>64975&&r<65008||(r&65535)===65535||(r&65535)===65534||r>1114111?"�":String.fromCodePoint(r)}function qu(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const To=Ts(/[A-Za-z]/),ri=Ts(/[\dA-Za-z]/),vQ=Ts(/[#-'*+\--9=?A-Z^-~]/);function Rb(e){return e!==null&&(e<32||e===127)}const Eb=Ts(/\d/),gQ=Ts(/[\dA-Fa-f]/),mQ=Ts(/[!-/:-@[-`{-~]/);function it(e){return e!==null&&e<-2}function $n(e){return e!==null&&(e<0||e===32)}function Ot(e){return e===-2||e===-1||e===32}const yQ=Ts(new RegExp("\\p{P}|\\p{S}","u")),xQ=Ts(/\s/);function Ts(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function mc(e){const t=[];let r=-1,n=0,i=0;for(;++r<e.length;){const o=e.charCodeAt(r);let a="";if(o===37&&ri(e.charCodeAt(r+1))&&ri(e.charCodeAt(r+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(a=String.fromCharCode(o));else if(o>55295&&o<57344){const s=e.charCodeAt(r+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="�"}else a=String.fromCharCode(o);a&&(t.push(e.slice(n,r),encodeURIComponent(a)),n=r+i+1,a=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function Jt(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let o=0;return a;function a(l){return Ot(l)?(e.enter(r),s(l)):t(l)}function s(l){return Ot(l)&&o++<i?(e.consume(l),s):(e.exit(r),t(l))}}const bQ={tokenize:_Q};function _Q(e){const t=e.attempt(this.parser.constructs.contentInitial,n,i);let r;return t;function n(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Jt(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),o(s)}function o(s){const l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,a(s)}function a(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return it(s)?(e.consume(s),e.exit("chunkText"),o):(e.consume(s),a)}}const SQ={tokenize:wQ},xE={tokenize:CQ};function wQ(e){const t=this,r=[];let n=0,i,o,a;return s;function s(_){if(n<r.length){const C=r[n];return t.containerState=C[1],e.attempt(C[0].continuation,l,c)(_)}return c(_)}function l(_){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&S();const C=t.events.length;let k=C,T;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){T=t.events[k][1].end;break}b(n);let E=C;for(;E<t.events.length;)t.events[E][1].end={...T},E++;return Bo(t.events,k+1,0,t.events.slice(C)),t.events.length=E,c(_)}return s(_)}function c(_){if(n===r.length){if(!i)return v(_);if(i.currentConstruct&&i.currentConstruct.concrete)return g(_);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(xE,f,p)(_)}function f(_){return i&&S(),b(n),v(_)}function p(_){return t.parser.lazy[t.now().line]=n!==r.length,a=t.now().offset,g(_)}function v(_){return t.containerState={},e.attempt(xE,h,g)(_)}function h(_){return n++,r.push([t.currentConstruct,t.containerState]),v(_)}function g(_){if(_===null){i&&S(),b(0),e.consume(_);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),x(_)}function x(_){if(_===null){y(e.exit("chunkFlow"),!0),b(0),e.consume(_);return}return it(_)?(e.consume(_),y(e.exit("chunkFlow")),n=0,t.interrupt=void 0,s):(e.consume(_),x)}function y(_,C){const k=t.sliceStream(_);if(C&&k.push(null),_.previous=o,o&&(o.next=_),o=_,i.defineSkip(_.start),i.write(k),t.parser.lazy[_.start.line]){let T=i.events.length;for(;T--;)if(i.events[T][1].start.offset<a&&(!i.events[T][1].end||i.events[T][1].end.offset>a))return;const E=t.events.length;let I=E,D,A;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){if(D){A=t.events[I][1].end;break}D=!0}for(b(n),T=E;T<t.events.length;)t.events[T][1].end={...A},T++;Bo(t.events,I+1,0,t.events.slice(E)),t.events.length=T}}function b(_){let C=r.length;for(;C-- >_;){const k=r[C];t.containerState=k[1],k[0].exit.call(t,e)}r.length=_}function S(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function CQ(e,t,r){return Jt(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function bE(e){if(e===null||$n(e)||xQ(e))return 1;if(yQ(e))return 2}function YS(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!n.includes(o)&&(t=o(t,r),n.push(o))}return t}const Pb={name:"attention",resolveAll:TQ,tokenize:kQ};function TQ(e,t){let r=-1,n,i,o,a,s,l,c,f;for(;++r<e.length;)if(e[r][0]==="enter"&&e[r][1].type==="attentionSequence"&&e[r][1]._close){for(n=r;n--;)if(e[n][0]==="exit"&&e[n][1].type==="attentionSequence"&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[r][1]).charCodeAt(0)){if((e[n][1]._close||e[r][1]._open)&&(e[r][1].end.offset-e[r][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[r][1].end.offset-e[r][1].start.offset)%3))continue;l=e[n][1].end.offset-e[n][1].start.offset>1&&e[r][1].end.offset-e[r][1].start.offset>1?2:1;const p={...e[n][1].end},v={...e[r][1].start};_E(p,-l),_E(v,l),a={type:l>1?"strongSequence":"emphasisSequence",start:p,end:{...e[n][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[r][1].start},end:v},o={type:l>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[r][1].start}},i={type:l>1?"strong":"emphasis",start:{...a.start},end:{...s.end}},e[n][1].end={...a.start},e[r][1].start={...s.end},c=[],e[n][1].end.offset-e[n][1].start.offset&&(c=Ti(c,[["enter",e[n][1],t],["exit",e[n][1],t]])),c=Ti(c,[["enter",i,t],["enter",a,t],["exit",a,t],["enter",o,t]]),c=Ti(c,YS(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),c=Ti(c,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(f=2,c=Ti(c,[["enter",e[r][1],t],["exit",e[r][1],t]])):f=0,Bo(e,n-1,r-n+3,c),r=n+c.length-f-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function kQ(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=bE(n);let o;return a;function a(l){return o=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===o)return e.consume(l),s;const c=e.exit("attentionSequence"),f=bE(l),p=!f||f===2&&i||r.includes(l),v=!i||i===2&&f||r.includes(n);return c._open=!!(o===42?p:p&&(i||!v)),c._close=!!(o===42?v:v&&(f||!p)),t(l)}}function _E(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const RQ={name:"autolink",tokenize:EQ};function EQ(e,t,r){let n=0;return i;function i(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(h){return To(h)?(e.consume(h),a):h===64?r(h):c(h)}function a(h){return h===43||h===45||h===46||ri(h)?(n=1,s(h)):c(h)}function s(h){return h===58?(e.consume(h),n=0,l):(h===43||h===45||h===46||ri(h))&&n++<32?(e.consume(h),s):(n=0,c(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||Rb(h)?r(h):(e.consume(h),l)}function c(h){return h===64?(e.consume(h),f):vQ(h)?(e.consume(h),c):r(h)}function f(h){return ri(h)?p(h):r(h)}function p(h){return h===46?(e.consume(h),n=0,f):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):v(h)}function v(h){if((h===45||ri(h))&&n++<63){const g=h===45?v:p;return e.consume(h),g}return r(h)}}const Em={partial:!0,tokenize:PQ};function PQ(e,t,r){return n;function n(o){return Ot(o)?Jt(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||it(o)?t(o):r(o)}}const ZL={continuation:{tokenize:IQ},exit:AQ,name:"blockQuote",tokenize:MQ};function MQ(e,t,r){const n=this;return i;function i(a){if(a===62){const s=n.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(a),e.exit("blockQuoteMarker"),o}return r(a)}function o(a){return Ot(a)?(e.enter("blockQuotePrefixWhitespace"),e.consume(a),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(a))}}function IQ(e,t,r){const n=this;return i;function i(a){return Ot(a)?Jt(e,o,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a):o(a)}function o(a){return e.attempt(ZL,t,r)(a)}}function AQ(e){e.exit("blockQuote")}const JL={name:"characterEscape",tokenize:DQ};function DQ(e,t,r){return n;function n(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return mQ(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(o)}}const eO={name:"characterReference",tokenize:LQ};function LQ(e,t,r){const n=this;let i=0,o,a;return s;function s(p){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),l}function l(p){return p===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(p),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),o=31,a=ri,f(p))}function c(p){return p===88||p===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(p),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,a=gQ,f):(e.enter("characterReferenceValue"),o=7,a=Eb,f(p))}function f(p){if(p===59&&i){const v=e.exit("characterReferenceValue");return a===ri&&!qS(n.sliceSerialize(v))?r(p):(e.enter("characterReferenceMarker"),e.consume(p),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return a(p)&&i++<o?(e.consume(p),f):r(p)}}const SE={partial:!0,tokenize:NQ},wE={concrete:!0,name:"codeFenced",tokenize:OQ};function OQ(e,t,r){const n=this,i={partial:!0,tokenize:k};let o=0,a=0,s;return l;function l(T){return c(T)}function c(T){const E=n.events[n.events.length-1];return o=E&&E[1].type==="linePrefix"?E[2].sliceSerialize(E[1],!0).length:0,s=T,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(T)}function f(T){return T===s?(a++,e.consume(T),f):a<3?r(T):(e.exit("codeFencedFenceSequence"),Ot(T)?Jt(e,p,"whitespace")(T):p(T))}function p(T){return T===null||it(T)?(e.exit("codeFencedFence"),n.interrupt?t(T):e.check(SE,x,C)(T)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),v(T))}function v(T){return T===null||it(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),p(T)):Ot(T)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Jt(e,h,"whitespace")(T)):T===96&&T===s?r(T):(e.consume(T),v)}function h(T){return T===null||it(T)?p(T):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(T))}function g(T){return T===null||it(T)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),p(T)):T===96&&T===s?r(T):(e.consume(T),g)}function x(T){return e.attempt(i,C,y)(T)}function y(T){return e.enter("lineEnding"),e.consume(T),e.exit("lineEnding"),b}function b(T){return o>0&&Ot(T)?Jt(e,S,"linePrefix",o+1)(T):S(T)}function S(T){return T===null||it(T)?e.check(SE,x,C)(T):(e.enter("codeFlowValue"),_(T))}function _(T){return T===null||it(T)?(e.exit("codeFlowValue"),S(T)):(e.consume(T),_)}function C(T){return e.exit("codeFenced"),t(T)}function k(T,E,I){let D=0;return A;function A(W){return T.enter("lineEnding"),T.consume(W),T.exit("lineEnding"),L}function L(W){return T.enter("codeFencedFence"),Ot(W)?Jt(T,$,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(W):$(W)}function $(W){return W===s?(T.enter("codeFencedFenceSequence"),B(W)):I(W)}function B(W){return W===s?(D++,T.consume(W),B):D>=a?(T.exit("codeFencedFenceSequence"),Ot(W)?Jt(T,j,"whitespace")(W):j(W)):I(W)}function j(W){return W===null||it(W)?(T.exit("codeFencedFence"),E(W)):I(W)}}}function NQ(e,t,r){const n=this;return i;function i(a){return a===null?r(a):(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o)}function o(a){return n.parser.lazy[n.now().line]?r(a):t(a)}}const w1={name:"codeIndented",tokenize:$Q},zQ={partial:!0,tokenize:FQ};function $Q(e,t,r){const n=this;return i;function i(c){return e.enter("codeIndented"),Jt(e,o,"linePrefix",5)(c)}function o(c){const f=n.events[n.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?a(c):r(c)}function a(c){return c===null?l(c):it(c)?e.attempt(zQ,a,l)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||it(c)?(e.exit("codeFlowValue"),a(c)):(e.consume(c),s)}function l(c){return e.exit("codeIndented"),t(c)}}function FQ(e,t,r){const n=this;return i;function i(a){return n.parser.lazy[n.now().line]?r(a):it(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),i):Jt(e,o,"linePrefix",5)(a)}function o(a){const s=n.events[n.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):it(a)?i(a):r(a)}}const BQ={name:"codeText",previous:HQ,resolve:jQ,tokenize:WQ};function jQ(e){let t=e.length-4,r=3,n,i;if((e[r][1].type==="lineEnding"||e[r][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(n=r;++n<t;)if(e[n][1].type==="codeTextData"){e[r][1].type="codeTextPadding",e[t][1].type="codeTextPadding",r+=2,t-=2;break}}for(n=r-1,t++;++n<=t;)i===void 0?n!==t&&e[n][1].type!=="lineEnding"&&(i=n):(n===t||e[n][1].type==="lineEnding")&&(e[i][1].type="codeTextData",n!==i+2&&(e[i][1].end=e[n-1][1].end,e.splice(i+2,n-i-2),t-=n-i-2,n=i+2),i=void 0);return e}function HQ(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function WQ(e,t,r){let n=0,i,o;return a;function a(p){return e.enter("codeText"),e.enter("codeTextSequence"),s(p)}function s(p){return p===96?(e.consume(p),n++,s):(e.exit("codeTextSequence"),l(p))}function l(p){return p===null?r(p):p===32?(e.enter("space"),e.consume(p),e.exit("space"),l):p===96?(o=e.enter("codeTextSequence"),i=0,f(p)):it(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),l):(e.enter("codeTextData"),c(p))}function c(p){return p===null||p===32||p===96||it(p)?(e.exit("codeTextData"),l(p)):(e.consume(p),c)}function f(p){return p===96?(e.consume(p),i++,f):i===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(p)):(o.type="codeTextData",c(p))}}class VQ{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,r){const n=r??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(t,n):t>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(t,r,n){const i=r||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return n&&Cf(this.left,n),o.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),Cf(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Cf(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 r=this.left.splice(t,Number.POSITIVE_INFINITY);Cf(this.right,r.reverse())}else{const r=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Cf(this.left,r.reverse())}}}function Cf(e,t){let r=0;if(t.length<1e4)e.push(...t);else for(;r<t.length;)e.push(...t.slice(r,r+1e4)),r+=1e4}function tO(e){const t={};let r=-1,n,i,o,a,s,l,c;const f=new VQ(e);for(;++r<f.length;){for(;r in t;)r=t[r];if(n=f.get(r),r&&n[1].type==="chunkFlow"&&f.get(r-1)[1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,UQ(f,r)),r=t[r],c=!0);else if(n[1]._container){for(o=r,i=void 0;o--;)if(a=f.get(o),a[1].type==="lineEnding"||a[1].type==="lineEndingBlank")a[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),a[1].type="lineEnding",i=o);else if(!(a[1].type==="linePrefix"||a[1].type==="listItemIndent"))break;i&&(n[1].end={...f.get(i)[1].start},s=f.slice(i,r),s.unshift(n),f.splice(i,r-i+1,s))}}return Bo(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!c}function UQ(e,t){const r=e.get(t)[1],n=e.get(t)[2];let i=t-1;const o=[];let a=r._tokenizer;a||(a=n.parser[r.contentType](r.start),r._contentTypeTextTrailing&&(a._contentTypeTextTrailing=!0));const s=a.events,l=[],c={};let f,p,v=-1,h=r,g=0,x=0;const y=[x];for(;h;){for(;e.get(++i)[1]!==h;);o.push(i),h._tokenizer||(f=n.sliceStream(h),h.next||f.push(null),p&&a.defineSkip(h.start),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=!0),a.write(f),h._isInFirstContentOfListItem&&(a._gfmTasklistFirstContentOfListItem=void 0)),p=h,h=h.next}for(h=r;++v<s.length;)s[v][0]==="exit"&&s[v-1][0]==="enter"&&s[v][1].type===s[v-1][1].type&&s[v][1].start.line!==s[v][1].end.line&&(x=v+1,y.push(x),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(a.events=[],h?(h._tokenizer=void 0,h.previous=void 0):y.pop(),v=y.length;v--;){const b=s.slice(y[v],y[v+1]),S=o.pop();l.push([S,S+b.length-1]),e.splice(S,2,b)}for(l.reverse(),v=-1;++v<l.length;)c[g+l[v][0]]=g+l[v][1],g+=l[v][1]-l[v][0]-1;return c}const GQ={resolve:YQ,tokenize:KQ},qQ={partial:!0,tokenize:XQ};function YQ(e){return tO(e),e}function KQ(e,t){let r;return n;function n(s){return e.enter("content"),r=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?o(s):it(s)?e.check(qQ,a,o)(s):(e.consume(s),i)}function o(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function a(s){return e.consume(s),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function XQ(e,t,r){const n=this;return i;function i(a){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),Jt(e,o,"linePrefix")}function o(a){if(a===null||it(a))return r(a);const s=n.events[n.events.length-1];return!n.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(a):e.interrupt(n.parser.constructs.flow,r,t)(a)}}function rO(e,t,r,n,i,o,a,s,l){const c=l||Number.POSITIVE_INFINITY;let f=0;return p;function p(b){return b===60?(e.enter(n),e.enter(i),e.enter(o),e.consume(b),e.exit(o),v):b===null||b===32||b===41||Rb(b)?r(b):(e.enter(n),e.enter(a),e.enter(s),e.enter("chunkString",{contentType:"string"}),x(b))}function v(b){return b===62?(e.enter(o),e.consume(b),e.exit(o),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(b))}function h(b){return b===62?(e.exit("chunkString"),e.exit(s),v(b)):b===null||b===60||it(b)?r(b):(e.consume(b),b===92?g:h)}function g(b){return b===60||b===62||b===92?(e.consume(b),h):h(b)}function x(b){return!f&&(b===null||b===41||$n(b))?(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(n),t(b)):f<c&&b===40?(e.consume(b),f++,x):b===41?(e.consume(b),f--,x):b===null||b===32||b===40||Rb(b)?r(b):(e.consume(b),b===92?y:x)}function y(b){return b===40||b===41||b===92?(e.consume(b),x):x(b)}}function nO(e,t,r,n,i,o){const a=this;let s=0,l;return c;function c(h){return e.enter(n),e.enter(i),e.consume(h),e.exit(i),e.enter(o),f}function f(h){return s>999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?r(h):h===93?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):it(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),p(h))}function p(h){return h===null||h===91||h===93||it(h)||s++>999?(e.exit("chunkString"),f(h)):(e.consume(h),l||(l=!Ot(h)),h===92?v:p)}function v(h){return h===91||h===92||h===93?(e.consume(h),s++,p):p(h)}}function iO(e,t,r,n,i,o){let a;return s;function s(v){return v===34||v===39||v===40?(e.enter(n),e.enter(i),e.consume(v),e.exit(i),a=v===40?41:v,l):r(v)}function l(v){return v===a?(e.enter(i),e.consume(v),e.exit(i),e.exit(n),t):(e.enter(o),c(v))}function c(v){return v===a?(e.exit(o),l(a)):v===null?r(v):it(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),Jt(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(v))}function f(v){return v===a||v===null||it(v)?(e.exit("chunkString"),c(v)):(e.consume(v),v===92?p:f)}function p(v){return v===a||v===92?(e.consume(v),f):f(v)}}function md(e,t){let r;return n;function n(i){return it(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):Ot(i)?Jt(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const QQ={name:"definition",tokenize:JQ},ZQ={partial:!0,tokenize:eZ};function JQ(e,t,r){const n=this;let i;return o;function o(h){return e.enter("definition"),a(h)}function a(h){return nO.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=qu(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):r(h)}function l(h){return $n(h)?md(e,c)(h):c(h)}function c(h){return rO(e,f,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function f(h){return e.attempt(ZQ,p,p)(h)}function p(h){return Ot(h)?Jt(e,v,"whitespace")(h):v(h)}function v(h){return h===null||it(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function eZ(e,t,r){return n;function n(s){return $n(s)?md(e,i)(s):r(s)}function i(s){return iO(e,o,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return Ot(s)?Jt(e,a,"whitespace")(s):a(s)}function a(s){return s===null||it(s)?t(s):r(s)}}const tZ={name:"hardBreakEscape",tokenize:rZ};function rZ(e,t,r){return n;function n(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return it(o)?(e.exit("hardBreakEscape"),t(o)):r(o)}}const nZ={name:"headingAtx",resolve:iZ,tokenize:oZ};function iZ(e,t){let r=e.length-2,n=3,i,o;return e[n][1].type==="whitespace"&&(n+=2),r-2>n&&e[r][1].type==="whitespace"&&(r-=2),e[r][1].type==="atxHeadingSequence"&&(n===r-1||r-4>n&&e[r-2][1].type==="whitespace")&&(r-=n+1===r?2:4),r>n&&(i={type:"atxHeadingText",start:e[n][1].start,end:e[r][1].end},o={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},Bo(e,n,r-n+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function oZ(e,t,r){let n=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),a(f)}function a(f){return f===35&&n++<6?(e.consume(f),a):f===null||$n(f)?(e.exit("atxHeadingSequence"),s(f)):r(f)}function s(f){return f===35?(e.enter("atxHeadingSequence"),l(f)):f===null||it(f)?(e.exit("atxHeading"),t(f)):Ot(f)?Jt(e,s,"whitespace")(f):(e.enter("atxHeadingText"),c(f))}function l(f){return f===35?(e.consume(f),l):(e.exit("atxHeadingSequence"),s(f))}function c(f){return f===null||f===35||$n(f)?(e.exit("atxHeadingText"),s(f)):(e.consume(f),c)}}const aZ=["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"],CE=["pre","script","style","textarea"],sZ={concrete:!0,name:"htmlFlow",resolveTo:cZ,tokenize:fZ},lZ={partial:!0,tokenize:pZ},uZ={partial:!0,tokenize:dZ};function cZ(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 fZ(e,t,r){const n=this;let i,o,a,s,l;return c;function c(H){return f(H)}function f(H){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(H),p}function p(H){return H===33?(e.consume(H),v):H===47?(e.consume(H),o=!0,x):H===63?(e.consume(H),i=3,n.interrupt?t:N):To(H)?(e.consume(H),a=String.fromCharCode(H),y):r(H)}function v(H){return H===45?(e.consume(H),i=2,h):H===91?(e.consume(H),i=5,s=0,g):To(H)?(e.consume(H),i=4,n.interrupt?t:N):r(H)}function h(H){return H===45?(e.consume(H),n.interrupt?t:N):r(H)}function g(H){const oe="CDATA[";return H===oe.charCodeAt(s++)?(e.consume(H),s===oe.length?n.interrupt?t:$:g):r(H)}function x(H){return To(H)?(e.consume(H),a=String.fromCharCode(H),y):r(H)}function y(H){if(H===null||H===47||H===62||$n(H)){const oe=H===47,ve=a.toLowerCase();return!oe&&!o&&CE.includes(ve)?(i=1,n.interrupt?t(H):$(H)):aZ.includes(a.toLowerCase())?(i=6,oe?(e.consume(H),b):n.interrupt?t(H):$(H)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(H):o?S(H):_(H))}return H===45||ri(H)?(e.consume(H),a+=String.fromCharCode(H),y):r(H)}function b(H){return H===62?(e.consume(H),n.interrupt?t:$):r(H)}function S(H){return Ot(H)?(e.consume(H),S):A(H)}function _(H){return H===47?(e.consume(H),A):H===58||H===95||To(H)?(e.consume(H),C):Ot(H)?(e.consume(H),_):A(H)}function C(H){return H===45||H===46||H===58||H===95||ri(H)?(e.consume(H),C):k(H)}function k(H){return H===61?(e.consume(H),T):Ot(H)?(e.consume(H),k):_(H)}function T(H){return H===null||H===60||H===61||H===62||H===96?r(H):H===34||H===39?(e.consume(H),l=H,E):Ot(H)?(e.consume(H),T):I(H)}function E(H){return H===l?(e.consume(H),l=null,D):H===null||it(H)?r(H):(e.consume(H),E)}function I(H){return H===null||H===34||H===39||H===47||H===60||H===61||H===62||H===96||$n(H)?k(H):(e.consume(H),I)}function D(H){return H===47||H===62||Ot(H)?_(H):r(H)}function A(H){return H===62?(e.consume(H),L):r(H)}function L(H){return H===null||it(H)?$(H):Ot(H)?(e.consume(H),L):r(H)}function $(H){return H===45&&i===2?(e.consume(H),q):H===60&&i===1?(e.consume(H),Z):H===62&&i===4?(e.consume(H),U):H===63&&i===3?(e.consume(H),N):H===93&&i===5?(e.consume(H),G):it(H)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(lZ,Q,B)(H)):H===null||it(H)?(e.exit("htmlFlowData"),B(H)):(e.consume(H),$)}function B(H){return e.check(uZ,j,Q)(H)}function j(H){return e.enter("lineEnding"),e.consume(H),e.exit("lineEnding"),W}function W(H){return H===null||it(H)?B(H):(e.enter("htmlFlowData"),$(H))}function q(H){return H===45?(e.consume(H),N):$(H)}function Z(H){return H===47?(e.consume(H),a="",V):$(H)}function V(H){if(H===62){const oe=a.toLowerCase();return CE.includes(oe)?(e.consume(H),U):$(H)}return To(H)&&a.length<8?(e.consume(H),a+=String.fromCharCode(H),V):$(H)}function G(H){return H===93?(e.consume(H),N):$(H)}function N(H){return H===62?(e.consume(H),U):H===45&&i===2?(e.consume(H),N):$(H)}function U(H){return H===null||it(H)?(e.exit("htmlFlowData"),Q(H)):(e.consume(H),U)}function Q(H){return e.exit("htmlFlow"),t(H)}}function dZ(e,t,r){const n=this;return i;function i(a){return it(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),o):r(a)}function o(a){return n.parser.lazy[n.now().line]?r(a):t(a)}}function pZ(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Em,t,r)}}const hZ={name:"htmlText",tokenize:vZ};function vZ(e,t,r){const n=this;let i,o,a;return s;function s(N){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(N),l}function l(N){return N===33?(e.consume(N),c):N===47?(e.consume(N),k):N===63?(e.consume(N),_):To(N)?(e.consume(N),I):r(N)}function c(N){return N===45?(e.consume(N),f):N===91?(e.consume(N),o=0,g):To(N)?(e.consume(N),S):r(N)}function f(N){return N===45?(e.consume(N),h):r(N)}function p(N){return N===null?r(N):N===45?(e.consume(N),v):it(N)?(a=p,Z(N)):(e.consume(N),p)}function v(N){return N===45?(e.consume(N),h):p(N)}function h(N){return N===62?q(N):N===45?v(N):p(N)}function g(N){const U="CDATA[";return N===U.charCodeAt(o++)?(e.consume(N),o===U.length?x:g):r(N)}function x(N){return N===null?r(N):N===93?(e.consume(N),y):it(N)?(a=x,Z(N)):(e.consume(N),x)}function y(N){return N===93?(e.consume(N),b):x(N)}function b(N){return N===62?q(N):N===93?(e.consume(N),b):x(N)}function S(N){return N===null||N===62?q(N):it(N)?(a=S,Z(N)):(e.consume(N),S)}function _(N){return N===null?r(N):N===63?(e.consume(N),C):it(N)?(a=_,Z(N)):(e.consume(N),_)}function C(N){return N===62?q(N):_(N)}function k(N){return To(N)?(e.consume(N),T):r(N)}function T(N){return N===45||ri(N)?(e.consume(N),T):E(N)}function E(N){return it(N)?(a=E,Z(N)):Ot(N)?(e.consume(N),E):q(N)}function I(N){return N===45||ri(N)?(e.consume(N),I):N===47||N===62||$n(N)?D(N):r(N)}function D(N){return N===47?(e.consume(N),q):N===58||N===95||To(N)?(e.consume(N),A):it(N)?(a=D,Z(N)):Ot(N)?(e.consume(N),D):q(N)}function A(N){return N===45||N===46||N===58||N===95||ri(N)?(e.consume(N),A):L(N)}function L(N){return N===61?(e.consume(N),$):it(N)?(a=L,Z(N)):Ot(N)?(e.consume(N),L):D(N)}function $(N){return N===null||N===60||N===61||N===62||N===96?r(N):N===34||N===39?(e.consume(N),i=N,B):it(N)?(a=$,Z(N)):Ot(N)?(e.consume(N),$):(e.consume(N),j)}function B(N){return N===i?(e.consume(N),i=void 0,W):N===null?r(N):it(N)?(a=B,Z(N)):(e.consume(N),B)}function j(N){return N===null||N===34||N===39||N===60||N===61||N===96?r(N):N===47||N===62||$n(N)?D(N):(e.consume(N),j)}function W(N){return N===47||N===62||$n(N)?D(N):r(N)}function q(N){return N===62?(e.consume(N),e.exit("htmlTextData"),e.exit("htmlText"),t):r(N)}function Z(N){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(N),e.exit("lineEnding"),V}function V(N){return Ot(N)?Jt(e,G,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(N):G(N)}function G(N){return e.enter("htmlTextData"),a(N)}}const KS={name:"labelEnd",resolveAll:xZ,resolveTo:bZ,tokenize:_Z},gZ={tokenize:SZ},mZ={tokenize:wZ},yZ={tokenize:CZ};function xZ(e){let t=-1;const r=[];for(;++t<e.length;){const n=e[t][1];if(r.push(e[t]),n.type==="labelImage"||n.type==="labelLink"||n.type==="labelEnd"){const i=n.type==="labelImage"?4:2;n.type="data",t+=i}}return e.length!==r.length&&Bo(e,0,e.length,r),e}function bZ(e,t){let r=e.length,n=0,i,o,a,s;for(;r--;)if(i=e[r][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(a){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(a=r);const l={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[o][1].start},end:{...e[a][1].end}},f={type:"labelText",start:{...e[o+n+2][1].end},end:{...e[a-2][1].start}};return s=[["enter",l,t],["enter",c,t]],s=Ti(s,e.slice(o+1,o+n+3)),s=Ti(s,[["enter",f,t]]),s=Ti(s,YS(t.parser.constructs.insideSpan.null,e.slice(o+n+4,a-3),t)),s=Ti(s,[["exit",f,t],e[a-2],e[a-1],["exit",c,t]]),s=Ti(s,e.slice(a+1)),s=Ti(s,[["exit",l,t]]),Bo(e,o,e.length,s),e}function _Z(e,t,r){const n=this;let i=n.events.length,o,a;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){o=n.events[i][1];break}return s;function s(v){return o?o._inactive?p(v):(a=n.parser.defined.includes(qu(n.sliceSerialize({start:o.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(v),e.exit("labelMarker"),e.exit("labelEnd"),l):r(v)}function l(v){return v===40?e.attempt(gZ,f,a?f:p)(v):v===91?e.attempt(mZ,f,a?c:p)(v):a?f(v):p(v)}function c(v){return e.attempt(yZ,f,p)(v)}function f(v){return t(v)}function p(v){return o._balanced=!0,r(v)}}function SZ(e,t,r){return n;function n(p){return e.enter("resource"),e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),i}function i(p){return $n(p)?md(e,o)(p):o(p)}function o(p){return p===41?f(p):rO(e,a,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(p)}function a(p){return $n(p)?md(e,l)(p):f(p)}function s(p){return r(p)}function l(p){return p===34||p===39||p===40?iO(e,c,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(p):f(p)}function c(p){return $n(p)?md(e,f)(p):f(p)}function f(p){return p===41?(e.enter("resourceMarker"),e.consume(p),e.exit("resourceMarker"),e.exit("resource"),t):r(p)}}function wZ(e,t,r){const n=this;return i;function i(s){return nO.call(n,e,o,a,"reference","referenceMarker","referenceString")(s)}function o(s){return n.parser.defined.includes(qu(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(s):r(s)}function a(s){return r(s)}}function CZ(e,t,r){return n;function n(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):r(o)}}const TZ={name:"labelStartImage",resolveAll:KS.resolveAll,tokenize:kZ};function kZ(e,t,r){const n=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),o}function o(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),a):r(s)}function a(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}const RZ={name:"labelStartLink",resolveAll:KS.resolveAll,tokenize:EZ};function EZ(e,t,r){const n=this;return i;function i(a){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelLink"),o}function o(a){return a===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(a):t(a)}}const C1={name:"lineEnding",tokenize:PZ};function PZ(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Jt(e,t,"linePrefix")}}const Gv={name:"thematicBreak",tokenize:MZ};function MZ(e,t,r){let n=0,i;return o;function o(c){return e.enter("thematicBreak"),a(c)}function a(c){return i=c,s(c)}function s(c){return c===i?(e.enter("thematicBreakSequence"),l(c)):n>=3&&(c===null||it(c))?(e.exit("thematicBreak"),t(c)):r(c)}function l(c){return c===i?(e.consume(c),n++,l):(e.exit("thematicBreakSequence"),Ot(c)?Jt(e,s,"whitespace")(c):s(c))}}const In={continuation:{tokenize:LZ},exit:NZ,name:"list",tokenize:DZ},IZ={partial:!0,tokenize:zZ},AZ={partial:!0,tokenize:OZ};function DZ(e,t,r){const n=this,i=n.events[n.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,a=0;return s;function s(h){const g=n.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!n.containerState.marker||h===n.containerState.marker:Eb(h)){if(n.containerState.type||(n.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(Gv,r,c)(h):c(h);if(!n.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return r(h)}function l(h){return Eb(h)&&++a<10?(e.consume(h),l):(!n.interrupt||a<2)&&(n.containerState.marker?h===n.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),c(h)):r(h)}function c(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||h,e.check(Em,n.interrupt?r:f,e.attempt(IZ,v,p))}function f(h){return n.containerState.initialBlankLine=!0,o++,v(h)}function p(h){return Ot(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),v):r(h)}function v(h){return n.containerState.size=o+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function LZ(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(Em,i,o);function i(s){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Jt(e,t,"listItemIndent",n.containerState.size+1)(s)}function o(s){return n.containerState.furtherBlankLines||!Ot(s)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,a(s)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(AZ,t,a)(s))}function a(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,Jt(e,e.attempt(In,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function OZ(e,t,r){const n=this;return Jt(e,i,"listItemIndent",n.containerState.size+1);function i(o){const a=n.events[n.events.length-1];return a&&a[1].type==="listItemIndent"&&a[2].sliceSerialize(a[1],!0).length===n.containerState.size?t(o):r(o)}}function NZ(e){e.exit(this.containerState.type)}function zZ(e,t,r){const n=this;return Jt(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const a=n.events[n.events.length-1];return!Ot(o)&&a&&a[1].type==="listItemPrefixWhitespace"?t(o):r(o)}}const TE={name:"setextUnderline",resolveTo:$Z,tokenize:FZ};function $Z(e,t){let r=e.length,n,i,o;for(;r--;)if(e[r][0]==="enter"){if(e[r][1].type==="content"){n=r;break}e[r][1].type==="paragraph"&&(i=r)}else e[r][1].type==="content"&&e.splice(r,1),!o&&e[r][1].type==="definition"&&(o=r);const a={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",a,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end={...e[o][1].end}):e[n][1]=a,e.push(["exit",a,t]),e}function FZ(e,t,r){const n=this;let i;return o;function o(c){let f=n.events.length,p;for(;f--;)if(n.events[f][1].type!=="lineEnding"&&n.events[f][1].type!=="linePrefix"&&n.events[f][1].type!=="content"){p=n.events[f][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||p)?(e.enter("setextHeadingLine"),i=c,a(c)):r(c)}function a(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),Ot(c)?Jt(e,l,"lineSuffix")(c):l(c))}function l(c){return c===null||it(c)?(e.exit("setextHeadingLine"),t(c)):r(c)}}const BZ={tokenize:jZ};function jZ(e){const t=this,r=e.attempt(Em,n,e.attempt(this.parser.constructs.flowInitial,i,Jt(e,e.attempt(this.parser.constructs.flow,i,e.attempt(GQ,i)),"linePrefix")));return r;function n(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const HZ={resolveAll:aO()},WZ=oO("string"),VZ=oO("text");function oO(e){return{resolveAll:aO(e==="text"?UZ:void 0),tokenize:t};function t(r){const n=this,i=this.parser.constructs[e],o=r.attempt(i,a,s);return a;function a(f){return c(f)?o(f):s(f)}function s(f){if(f===null){r.consume(f);return}return r.enter("data"),r.consume(f),l}function l(f){return c(f)?(r.exit("data"),o(f)):(r.consume(f),l)}function c(f){if(f===null)return!0;const p=i[f];let v=-1;if(p)for(;++v<p.length;){const h=p[v];if(!h.previous||h.previous.call(n,n.previous))return!0}return!1}}}function aO(e){return t;function t(r,n){let i=-1,o;for(;++i<=r.length;)o===void 0?r[i]&&r[i][1].type==="data"&&(o=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==o+2&&(r[o][1].end=r[i-1][1].end,r.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(r,n):r}}function UZ(e,t){let r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type==="lineEnding")&&e[r-1][1].type==="data"){const n=e[r-1][1],i=t.sliceStream(n);let o=i.length,a=-1,s=0,l;for(;o--;){const c=i[o];if(typeof c=="string"){for(a=c.length;c.charCodeAt(a-1)===32;)s++,a--;if(a)break;a=-1}else if(c===-2)l=!0,s++;else if(c!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(s=0),s){const c={type:r===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:n.start._bufferIndex+a,_index:n.start._index+o,line:n.end.line,column:n.end.column-s,offset:n.end.offset-s},end:{...n.end}};n.end={...c.start},n.start.offset===n.end.offset?Object.assign(n,c):(e.splice(r,0,["enter",c,t],["exit",c,t]),r+=2)}r++}return e}const GZ={42:In,43:In,45:In,48:In,49:In,50:In,51:In,52:In,53:In,54:In,55:In,56:In,57:In,62:ZL},qZ={91:QQ},YZ={[-2]:w1,[-1]:w1,32:w1},KZ={35:nZ,42:Gv,45:[TE,Gv],60:sZ,61:TE,95:Gv,96:wE,126:wE},XZ={38:eO,92:JL},QZ={[-5]:C1,[-4]:C1,[-3]:C1,33:TZ,38:eO,42:Pb,60:[RQ,hZ],91:RZ,92:[tZ,JL],93:KS,95:Pb,96:BQ},ZZ={null:[Pb,HZ]},JZ={null:[42,95]},eJ={null:[]},tJ=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:JZ,contentInitial:qZ,disable:eJ,document:GZ,flow:KZ,flowInitial:YZ,insideSpan:ZZ,string:XZ,text:QZ},Symbol.toStringTag,{value:"Module"}));function rJ(e,t,r){let n={_bufferIndex:-1,_index:0,line:r&&r.line||1,column:r&&r.column||1,offset:r&&r.offset||0};const i={},o=[];let a=[],s=[];const l={attempt:E(k),check:E(T),consume:S,enter:_,exit:C,interrupt:E(T,{interrupt:!0})},c={code:null,containerState:{},defineSkip:x,events:[],now:g,parser:e,previous:null,sliceSerialize:v,sliceStream:h,write:p};let f=t.tokenize.call(c,l);return t.resolveAll&&o.push(t),c;function p(L){return a=Ti(a,L),y(),a[a.length-1]!==null?[]:(I(t,0),c.events=YS(o,c.events,c),c.events)}function v(L,$){return iJ(h(L),$)}function h(L){return nJ(a,L)}function g(){const{_bufferIndex:L,_index:$,line:B,column:j,offset:W}=n;return{_bufferIndex:L,_index:$,line:B,column:j,offset:W}}function x(L){i[L.line]=L.column,A()}function y(){let L;for(;n._index<a.length;){const $=a[n._index];if(typeof $=="string")for(L=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===L&&n._bufferIndex<$.length;)b($.charCodeAt(n._bufferIndex));else b($)}}function b(L){f=f(L)}function S(L){it(L)?(n.line++,n.column=1,n.offset+=L===-3?2:1,A()):L!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===a[n._index].length&&(n._bufferIndex=-1,n._index++)),c.previous=L}function _(L,$){const B=$||{};return B.type=L,B.start=g(),c.events.push(["enter",B,c]),s.push(B),B}function C(L){const $=s.pop();return $.end=g(),c.events.push(["exit",$,c]),$}function k(L,$){I(L,$.from)}function T(L,$){$.restore()}function E(L,$){return B;function B(j,W,q){let Z,V,G,N;return Array.isArray(j)?Q(j):"tokenize"in j?Q([j]):U(j);function U(te){return ge;function ge(de){const xe=de!==null&&te[de],Me=de!==null&&te.null,ue=[...Array.isArray(xe)?xe:xe?[xe]:[],...Array.isArray(Me)?Me:Me?[Me]:[]];return Q(ue)(de)}}function Q(te){return Z=te,V=0,te.length===0?q:H(te[V])}function H(te){return ge;function ge(de){return N=D(),G=te,te.partial||(c.currentConstruct=te),te.name&&c.parser.constructs.disable.null.includes(te.name)?ve():te.tokenize.call($?Object.assign(Object.create(c),$):c,l,oe,ve)(de)}}function oe(te){return L(G,N),W}function ve(te){return N.restore(),++V<Z.length?H(Z[V]):q}}}function I(L,$){L.resolveAll&&!o.includes(L)&&o.push(L),L.resolve&&Bo(c.events,$,c.events.length-$,L.resolve(c.events.slice($),c)),L.resolveTo&&(c.events=L.resolveTo(c.events,c))}function D(){const L=g(),$=c.previous,B=c.currentConstruct,j=c.events.length,W=Array.from(s);return{from:j,restore:q};function q(){n=L,c.previous=$,c.currentConstruct=B,c.events.length=j,s=W,A()}}function A(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function nJ(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let a;if(r===i)a=[e[r].slice(n,o)];else{if(a=e.slice(r,i),n>-1){const s=a[0];typeof s=="string"?a[0]=s.slice(n):a.shift()}o>0&&a.push(e[i].slice(0,o))}return a}function iJ(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const o=e[r];let a;if(typeof o=="string")a=o;else switch(o){case-5:{a="\r";break}case-4:{a=`
144
- `;break}case-3:{a=`\r
145
- `;break}case-2:{a=t?" ":" ";break}case-1:{if(!t&&i)continue;a=" ";break}default:a=String.fromCharCode(o)}i=o===-2,n.push(a)}return n.join("")}function oJ(e){const n={constructs:dQ([tJ,...(e||{}).extensions||[]]),content:i(bQ),defined:[],document:i(SQ),flow:i(BZ),lazy:{},string:i(WZ),text:i(VZ)};return n;function i(o){return a;function a(s){return rJ(n,o,s)}}}function aJ(e){for(;!tO(e););return e}const kE=/[\0\t\n\r]/g;function sJ(){let e=1,t="",r=!0,n;return i;function i(o,a,s){const l=[];let c,f,p,v,h;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(a||void 0).decode(o)),p=0,t="",r&&(o.charCodeAt(0)===65279&&p++,r=void 0);p<o.length;){if(kE.lastIndex=p,c=kE.exec(o),v=c&&c.index!==void 0?c.index:o.length,h=o.charCodeAt(v),!c){t=o.slice(p);break}if(h===10&&p===v&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),p<v&&(l.push(o.slice(p,v)),e+=v-p),h){case 0:{l.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,l.push(-2);e++<f;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}p=v+1}return s&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}const lJ=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function uJ(e){return e.replace(lJ,cJ)}function cJ(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),o=i===120||i===88;return QL(r.slice(o?2:1),o?16:10)}return qS(r)||e}const sO={}.hasOwnProperty;function fJ(e,t,r){return typeof t!="string"&&(r=t,t=void 0),dJ(r)(aJ(oJ(r).document().write(sJ()(e,t,!0))))}function dJ(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(bt),autolinkProtocol:D,autolinkEmail:D,atxHeading:o(we),blockQuote:o(Me),characterEscape:D,characterReference:D,codeFenced:o(ue),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:o(ue,a),codeText:o(Te,a),codeTextData:D,data:D,codeFlowValue:D,definition:o(Oe),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:o(Ae),hardBreakEscape:o(Mt),hardBreakTrailing:o(Mt),htmlFlow:o(We,a),htmlFlowData:D,htmlText:o(We,a),htmlTextData:D,image:o(dt),label:a,link:o(bt),listItem:o(et),listItemValue:v,listOrdered:o(st,p),listUnordered:o(st),paragraph:o(_t),reference:H,referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:o(we),strong:o(Tt),thematicBreak:o(Nt)},exit:{atxHeading:l(),atxHeadingSequence:k,autolink:l(),autolinkEmail:xe,autolinkProtocol:de,blockQuote:l(),characterEscapeValue:A,characterReferenceMarkerHexadecimal:ve,characterReferenceMarkerNumeric:ve,characterReferenceValue:te,characterReference:ge,codeFenced:l(y),codeFencedFence:x,codeFencedFenceInfo:h,codeFencedFenceMeta:g,codeFlowValue:A,codeIndented:l(b),codeText:l(W),codeTextData:A,data:A,definition:l(),definitionDestinationString:C,definitionLabelString:S,definitionTitleString:_,emphasis:l(),hardBreakEscape:l($),hardBreakTrailing:l($),htmlFlow:l(B),htmlFlowData:A,htmlText:l(j),htmlTextData:A,image:l(Z),label:G,labelText:V,lineEnding:L,link:l(q),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:oe,resourceDestinationString:N,resourceTitleString:U,resource:Q,setextHeading:l(I),setextHeadingLineSequence:E,setextHeadingText:T,strong:l(),thematicBreak:l()}};lO(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(ne){let le={type:"root",children:[]};const he={stack:[le],tokenStack:[],config:t,enter:s,exit:c,buffer:a,resume:f,data:r},pe=[];let je=-1;for(;++je<ne.length;)if(ne[je][1].type==="listOrdered"||ne[je][1].type==="listUnordered")if(ne[je][0]==="enter")pe.push(je);else{const ht=pe.pop();je=i(ne,ht,je)}for(je=-1;++je<ne.length;){const ht=t[ne[je][0]];sO.call(ht,ne[je][1].type)&&ht[ne[je][1].type].call(Object.assign({sliceSerialize:ne[je][2].sliceSerialize},he),ne[je][1])}if(he.tokenStack.length>0){const ht=he.tokenStack[he.tokenStack.length-1];(ht[1]||RE).call(he,void 0,ht[0])}for(le.position={start:Ua(ne.length>0?ne[0][1].start:{line:1,column:1,offset:0}),end:Ua(ne.length>0?ne[ne.length-2][1].end:{line:1,column:1,offset:0})},je=-1;++je<t.transforms.length;)le=t.transforms[je](le)||le;return le}function i(ne,le,he){let pe=le-1,je=-1,ht=!1,De,Ue,ot,Ee;for(;++pe<=he;){const Pe=ne[pe];switch(Pe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Pe[0]==="enter"?je++:je--,Ee=void 0;break}case"lineEndingBlank":{Pe[0]==="enter"&&(De&&!Ee&&!je&&!ot&&(ot=pe),Ee=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ee=void 0}if(!je&&Pe[0]==="enter"&&Pe[1].type==="listItemPrefix"||je===-1&&Pe[0]==="exit"&&(Pe[1].type==="listUnordered"||Pe[1].type==="listOrdered")){if(De){let tt=pe;for(Ue=void 0;tt--;){const Ge=ne[tt];if(Ge[1].type==="lineEnding"||Ge[1].type==="lineEndingBlank"){if(Ge[0]==="exit")continue;Ue&&(ne[Ue][1].type="lineEndingBlank",ht=!0),Ge[1].type="lineEnding",Ue=tt}else if(!(Ge[1].type==="linePrefix"||Ge[1].type==="blockQuotePrefix"||Ge[1].type==="blockQuotePrefixWhitespace"||Ge[1].type==="blockQuoteMarker"||Ge[1].type==="listItemIndent"))break}ot&&(!Ue||ot<Ue)&&(De._spread=!0),De.end=Object.assign({},Ue?ne[Ue][1].start:Pe[1].end),ne.splice(Ue||pe,0,["exit",De,Pe[2]]),pe++,he++}if(Pe[1].type==="listItemPrefix"){const tt={type:"listItem",_spread:!1,start:Object.assign({},Pe[1].start),end:void 0};De=tt,ne.splice(pe,0,["enter",tt,Pe[2]]),pe++,he++,ot=void 0,Ee=!0}}}return ne[le][1]._spread=ht,he}function o(ne,le){return he;function he(pe){s.call(this,ne(pe),pe),le&&le.call(this,pe)}}function a(){this.stack.push({type:"fragment",children:[]})}function s(ne,le,he){this.stack[this.stack.length-1].children.push(ne),this.stack.push(ne),this.tokenStack.push([le,he||void 0]),ne.position={start:Ua(le.start),end:void 0}}function l(ne){return le;function le(he){ne&&ne.call(this,he),c.call(this,he)}}function c(ne,le){const he=this.stack.pop(),pe=this.tokenStack.pop();if(pe)pe[0].type!==ne.type&&(le?le.call(this,ne,pe[0]):(pe[1]||RE).call(this,ne,pe[0]));else throw new Error("Cannot close `"+ne.type+"` ("+gd({start:ne.start,end:ne.end})+"): it’s not open");he.position.end=Ua(ne.end)}function f(){return cQ(this.stack.pop())}function p(){this.data.expectingFirstListItemValue=!0}function v(ne){if(this.data.expectingFirstListItemValue){const le=this.stack[this.stack.length-2];le.start=Number.parseInt(this.sliceSerialize(ne),10),this.data.expectingFirstListItemValue=void 0}}function h(){const ne=this.resume(),le=this.stack[this.stack.length-1];le.lang=ne}function g(){const ne=this.resume(),le=this.stack[this.stack.length-1];le.meta=ne}function x(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const ne=this.resume(),le=this.stack[this.stack.length-1];le.value=ne.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function b(){const ne=this.resume(),le=this.stack[this.stack.length-1];le.value=ne.replace(/(\r?\n|\r)$/g,"")}function S(ne){const le=this.resume(),he=this.stack[this.stack.length-1];he.label=le,he.identifier=qu(this.sliceSerialize(ne)).toLowerCase()}function _(){const ne=this.resume(),le=this.stack[this.stack.length-1];le.title=ne}function C(){const ne=this.resume(),le=this.stack[this.stack.length-1];le.url=ne}function k(ne){const le=this.stack[this.stack.length-1];if(!le.depth){const he=this.sliceSerialize(ne).length;le.depth=he}}function T(){this.data.setextHeadingSlurpLineEnding=!0}function E(ne){const le=this.stack[this.stack.length-1];le.depth=this.sliceSerialize(ne).codePointAt(0)===61?1:2}function I(){this.data.setextHeadingSlurpLineEnding=void 0}function D(ne){const he=this.stack[this.stack.length-1].children;let pe=he[he.length-1];(!pe||pe.type!=="text")&&(pe=lt(),pe.position={start:Ua(ne.start),end:void 0},he.push(pe)),this.stack.push(pe)}function A(ne){const le=this.stack.pop();le.value+=this.sliceSerialize(ne),le.position.end=Ua(ne.end)}function L(ne){const le=this.stack[this.stack.length-1];if(this.data.atHardBreak){const he=le.children[le.children.length-1];he.position.end=Ua(ne.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(le.type)&&(D.call(this,ne),A.call(this,ne))}function $(){this.data.atHardBreak=!0}function B(){const ne=this.resume(),le=this.stack[this.stack.length-1];le.value=ne}function j(){const ne=this.resume(),le=this.stack[this.stack.length-1];le.value=ne}function W(){const ne=this.resume(),le=this.stack[this.stack.length-1];le.value=ne}function q(){const ne=this.stack[this.stack.length-1];if(this.data.inReference){const le=this.data.referenceType||"shortcut";ne.type+="Reference",ne.referenceType=le,delete ne.url,delete ne.title}else delete ne.identifier,delete ne.label;this.data.referenceType=void 0}function Z(){const ne=this.stack[this.stack.length-1];if(this.data.inReference){const le=this.data.referenceType||"shortcut";ne.type+="Reference",ne.referenceType=le,delete ne.url,delete ne.title}else delete ne.identifier,delete ne.label;this.data.referenceType=void 0}function V(ne){const le=this.sliceSerialize(ne),he=this.stack[this.stack.length-2];he.label=uJ(le),he.identifier=qu(le).toLowerCase()}function G(){const ne=this.stack[this.stack.length-1],le=this.resume(),he=this.stack[this.stack.length-1];if(this.data.inReference=!0,he.type==="link"){const pe=ne.children;he.children=pe}else he.alt=le}function N(){const ne=this.resume(),le=this.stack[this.stack.length-1];le.url=ne}function U(){const ne=this.resume(),le=this.stack[this.stack.length-1];le.title=ne}function Q(){this.data.inReference=void 0}function H(){this.data.referenceType="collapsed"}function oe(ne){const le=this.resume(),he=this.stack[this.stack.length-1];he.label=le,he.identifier=qu(this.sliceSerialize(ne)).toLowerCase(),this.data.referenceType="full"}function ve(ne){this.data.characterReferenceType=ne.type}function te(ne){const le=this.sliceSerialize(ne),he=this.data.characterReferenceType;let pe;he?(pe=QL(le,he==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):pe=qS(le);const je=this.stack[this.stack.length-1];je.value+=pe}function ge(ne){const le=this.stack.pop();le.position.end=Ua(ne.end)}function de(ne){A.call(this,ne);const le=this.stack[this.stack.length-1];le.url=this.sliceSerialize(ne)}function xe(ne){A.call(this,ne);const le=this.stack[this.stack.length-1];le.url="mailto:"+this.sliceSerialize(ne)}function Me(){return{type:"blockquote",children:[]}}function ue(){return{type:"code",lang:null,meta:null,value:""}}function Te(){return{type:"inlineCode",value:""}}function Oe(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Ae(){return{type:"emphasis",children:[]}}function we(){return{type:"heading",depth:0,children:[]}}function Mt(){return{type:"break"}}function We(){return{type:"html",value:""}}function dt(){return{type:"image",title:null,url:"",alt:null}}function bt(){return{type:"link",title:null,url:"",children:[]}}function st(ne){return{type:"list",ordered:ne.type==="listOrdered",start:null,spread:ne._spread,children:[]}}function et(ne){return{type:"listItem",spread:ne._spread,checked:null,children:[]}}function _t(){return{type:"paragraph",children:[]}}function Tt(){return{type:"strong",children:[]}}function lt(){return{type:"text",value:""}}function Nt(){return{type:"thematicBreak"}}}function Ua(e){return{line:e.line,column:e.column,offset:e.offset}}function lO(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?lO(e,n):pJ(e,n)}}function pJ(e,t){let r;for(r in t)if(sO.call(t,r))switch(r){case"canContainEols":{const n=t[r];n&&e[r].push(...n);break}case"transforms":{const n=t[r];n&&e[r].push(...n);break}case"enter":case"exit":{const n=t[r];n&&Object.assign(e[r],n);break}}}function RE(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+gd({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+gd({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+gd({start:t.start,end:t.end})+") is still open")}function hJ(e){const t=this;t.parser=r;function r(n){return fJ(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function vJ(e,t){const r={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,r),e.applyData(t,r)}function gJ(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
146
- `}]}function mJ(e,t){const r=t.value?t.value+`
147
- `:"",n={};t.lang&&(n.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:n,children:[{type:"text",value:r}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function yJ(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function xJ(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function bJ(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),i=mc(n.toLowerCase()),o=e.footnoteOrder.indexOf(n);let a,s=e.footnoteCounts.get(n);s===void 0?(s=0,e.footnoteOrder.push(n),a=e.footnoteOrder.length):a=o+1,s+=1,e.footnoteCounts.set(n,s);const l={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+i,id:r+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(a)}]};e.patch(t,l);const c={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,c),e.applyData(t,c)}function _J(e,t){const r={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function SJ(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function uO(e,t){const r=t.referenceType;let n="]";if(r==="collapsed"?n+="[]":r==="full"&&(n+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+n}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const a=i[i.length-1];return a&&a.type==="text"?a.value+=n:i.push({type:"text",value:n}),i}function wJ(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return uO(e,t);const i={src:mc(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function CJ(e,t){const r={src:mc(t.url)};t.alt!==null&&t.alt!==void 0&&(r.alt=t.alt),t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,n),e.applyData(t,n)}function TJ(e,t){const r={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,r);const n={type:"element",tagName:"code",properties:{},children:[r]};return e.patch(t,n),e.applyData(t,n)}function kJ(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return uO(e,t);const i={href:mc(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function RJ(e,t){const r={href:mc(t.url)};t.title!==null&&t.title!==void 0&&(r.title=t.title);const n={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function EJ(e,t,r){const n=e.all(t),i=r?PJ(r):cO(t),o={},a=[];if(typeof t.checked=="boolean"){const f=n[0];let p;f&&f.type==="element"&&f.tagName==="p"?p=f:(p={type:"element",tagName:"p",properties:{},children:[]},n.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<n.length;){const f=n[s];(i||s!==0||f.type!=="element"||f.tagName!=="p")&&a.push({type:"text",value:`
148
- `}),f.type==="element"&&f.tagName==="p"&&!i?a.push(...f.children):a.push(f)}const l=n[n.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&a.push({type:"text",value:`
149
- `});const c={type:"element",tagName:"li",properties:o,children:a};return e.patch(t,c),e.applyData(t,c)}function PJ(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const r=e.children;let n=-1;for(;!t&&++n<r.length;)t=cO(r[n])}return t}function cO(e){const t=e.spread;return t??e.children.length>1}function MJ(e,t){const r={},n=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(r.start=t.start);++i<n.length;){const a=n[i];if(a.type==="element"&&a.tagName==="li"&&a.properties&&Array.isArray(a.properties.className)&&a.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,o),e.applyData(t,o)}function IJ(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function AJ(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function DJ(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function LJ(e,t){const r=e.all(t),n=r.shift(),i=[];if(n){const a={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],a),i.push(a)}if(r.length>0){const a={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=WS(t.children[1]),l=VL(t.children[t.children.length-1]);s&&l&&(a.position={start:s,end:l}),i.push(a)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function OJ(e,t,r){const n=r?r.children:void 0,o=(n?n.indexOf(t):1)===0?"th":"td",a=r&&r.type==="table"?r.align:void 0,s=a?a.length:t.children.length;let l=-1;const c=[];for(;++l<s;){const p=t.children[l],v={},h=a?a[l]:void 0;h&&(v.align=h);let g={type:"element",tagName:o,properties:v,children:[]};p&&(g.children=e.all(p),e.patch(p,g),g=e.applyData(p,g)),c.push(g)}const f={type:"element",tagName:"tr",properties:{},children:e.wrap(c,!0)};return e.patch(t,f),e.applyData(t,f)}function NJ(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const EE=9,PE=32;function zJ(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),i=0;const o=[];for(;n;)o.push(ME(t.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return o.push(ME(t.slice(i),i>0,!1)),o.join("")}function ME(e,t,r){let n=0,i=e.length;if(t){let o=e.codePointAt(n);for(;o===EE||o===PE;)n++,o=e.codePointAt(n)}if(r){let o=e.codePointAt(i-1);for(;o===EE||o===PE;)i--,o=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function $J(e,t){const r={type:"text",value:zJ(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function FJ(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const BJ={blockquote:vJ,break:gJ,code:mJ,delete:yJ,emphasis:xJ,footnoteReference:bJ,heading:_J,html:SJ,imageReference:wJ,image:CJ,inlineCode:TJ,linkReference:kJ,link:RJ,listItem:EJ,list:MJ,paragraph:IJ,root:AJ,strong:DJ,table:LJ,tableCell:NJ,tableRow:OJ,text:$J,thematicBreak:FJ,toml:tv,yaml:tv,definition:tv,footnoteDefinition:tv};function tv(){}const fO=-1,Pm=0,yd=1,_g=2,XS=3,QS=4,ZS=5,JS=6,dO=7,pO=8,IE=typeof self=="object"?self:globalThis,jJ=(e,t)=>{const r=(i,o)=>(e.set(o,i),i),n=i=>{if(e.has(i))return e.get(i);const[o,a]=t[i];switch(o){case Pm:case fO:return r(a,i);case yd:{const s=r([],i);for(const l of a)s.push(n(l));return s}case _g:{const s=r({},i);for(const[l,c]of a)s[n(l)]=n(c);return s}case XS:return r(new Date(a),i);case QS:{const{source:s,flags:l}=a;return r(new RegExp(s,l),i)}case ZS:{const s=r(new Map,i);for(const[l,c]of a)s.set(n(l),n(c));return s}case JS:{const s=r(new Set,i);for(const l of a)s.add(n(l));return s}case dO:{const{name:s,message:l}=a;return r(new IE[s](l),i)}case pO:return r(BigInt(a),i);case"BigInt":return r(Object(BigInt(a)),i);case"ArrayBuffer":return r(new Uint8Array(a).buffer,a);case"DataView":{const{buffer:s}=new Uint8Array(a);return r(new DataView(s),a)}}return r(new IE[o](a),i)};return n},AE=e=>jJ(new Map,e)(0),mu="",{toString:HJ}={},{keys:WJ}=Object,Tf=e=>{const t=typeof e;if(t!=="object"||!e)return[Pm,t];const r=HJ.call(e).slice(8,-1);switch(r){case"Array":return[yd,mu];case"Object":return[_g,mu];case"Date":return[XS,mu];case"RegExp":return[QS,mu];case"Map":return[ZS,mu];case"Set":return[JS,mu];case"DataView":return[yd,r]}return r.includes("Array")?[yd,r]:r.includes("Error")?[dO,r]:[_g,r]},rv=([e,t])=>e===Pm&&(t==="function"||t==="symbol"),VJ=(e,t,r,n)=>{const i=(a,s)=>{const l=n.push(a)-1;return r.set(s,l),l},o=a=>{if(r.has(a))return r.get(a);let[s,l]=Tf(a);switch(s){case Pm:{let f=a;switch(l){case"bigint":s=pO,f=a.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);f=null;break;case"undefined":return i([fO],a)}return i([s,f],a)}case yd:{if(l){let v=a;return l==="DataView"?v=new Uint8Array(a.buffer):l==="ArrayBuffer"&&(v=new Uint8Array(a)),i([l,[...v]],a)}const f=[],p=i([s,f],a);for(const v of a)f.push(o(v));return p}case _g:{if(l)switch(l){case"BigInt":return i([l,a.toString()],a);case"Boolean":case"Number":case"String":return i([l,a.valueOf()],a)}if(t&&"toJSON"in a)return o(a.toJSON());const f=[],p=i([s,f],a);for(const v of WJ(a))(e||!rv(Tf(a[v])))&&f.push([o(v),o(a[v])]);return p}case XS:return i([s,a.toISOString()],a);case QS:{const{source:f,flags:p}=a;return i([s,{source:f,flags:p}],a)}case ZS:{const f=[],p=i([s,f],a);for(const[v,h]of a)(e||!(rv(Tf(v))||rv(Tf(h))))&&f.push([o(v),o(h)]);return p}case JS:{const f=[],p=i([s,f],a);for(const v of a)(e||!rv(Tf(v)))&&f.push(o(v));return p}}const{message:c}=a;return i([s,{name:l,message:c}],a)};return o},DE=(e,{json:t,lossy:r}={})=>{const n=[];return VJ(!(t||r),!!t,new Map,n)(e),n},Sg=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?AE(DE(e,t)):structuredClone(e):(e,t)=>AE(DE(e,t));function UJ(e,t){const r=[{type:"text",value:"↩"}];return t>1&&r.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),r}function GJ(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function qJ(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||UJ,n=e.options.footnoteBackLabel||GJ,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",a=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[l]);if(!c)continue;const f=e.all(c),p=String(c.identifier).toUpperCase(),v=mc(p.toLowerCase());let h=0;const g=[],x=e.footnoteCounts.get(p);for(;x!==void 0&&++h<=x;){g.length>0&&g.push({type:"text",value:" "});let S=typeof r=="string"?r:r(l,h);typeof S=="string"&&(S={type:"text",value:S}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+v+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,h),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}const y=f[f.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const S=y.children[y.children.length-1];S&&S.type==="text"?S.value+=" ":y.children.push({type:"text",value:" "}),y.children.push(...g)}else f.push(...g);const b={type:"element",tagName:"li",properties:{id:t+"fn-"+v},children:e.wrap(f,!0)};e.patch(c,b),s.push(b)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Sg(a),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
150
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
151
- `}]}}const hO=function(e){if(e==null)return QJ;if(typeof e=="function")return Mm(e);if(typeof e=="object")return Array.isArray(e)?YJ(e):KJ(e);if(typeof e=="string")return XJ(e);throw new Error("Expected function, string, or object as test")};function YJ(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=hO(e[r]);return Mm(n);function n(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function KJ(e){const t=e;return Mm(r);function r(n){const i=n;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function XJ(e){return Mm(t);function t(r){return r&&r.type===e}}function Mm(e){return t;function t(r,n,i){return!!(ZJ(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function QJ(){return!0}function ZJ(e){return e!==null&&typeof e=="object"&&"type"in e}const vO=[],JJ=!0,LE=!1,eee="skip";function tee(e,t,r,n){let i;typeof t=="function"&&typeof r!="function"?(n=r,r=t):i=t;const o=hO(i),a=n?-1:1;s(e,void 0,[])();function s(l,c,f){const p=l&&typeof l=="object"?l:{};if(typeof p.type=="string"){const h=typeof p.tagName=="string"?p.tagName:typeof p.name=="string"?p.name:void 0;Object.defineProperty(v,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return v;function v(){let h=vO,g,x,y;if((!t||o(l,c,f[f.length-1]||void 0))&&(h=ree(r(l,f)),h[0]===LE))return h;if("children"in l&&l.children){const b=l;if(b.children&&h[0]!==eee)for(x=(n?b.children.length:-1)+a,y=f.concat(b);x>-1&&x<b.children.length;){const S=b.children[x];if(g=s(S,x,y)(),g[0]===LE)return g;x=typeof g[1]=="number"?g[1]:x+a}}return h}}}function ree(e){return Array.isArray(e)?e:typeof e=="number"?[JJ,e]:e==null?vO:[e]}function gO(e,t,r,n){let i,o,a;typeof t=="function"?(o=void 0,a=t,i=r):(o=t,a=r,i=n),tee(e,o,s,i);function s(l,c){const f=c[c.length-1],p=f?f.children.indexOf(l):void 0;return a(l,p,f)}}const Mb={}.hasOwnProperty,nee={};function iee(e,t){const r=t||nee,n=new Map,i=new Map,o=new Map,a={...BJ,...r.handlers},s={all:c,applyData:aee,definitionById:n,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:a,one:l,options:r,patch:oee,wrap:lee};return gO(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const p=f.type==="definition"?n:i,v=String(f.identifier).toUpperCase();p.has(v)||p.set(v,f)}}),s;function l(f,p){const v=f.type,h=s.handlers[v];if(Mb.call(s.handlers,v)&&h)return h(s,f,p);if(s.options.passThrough&&s.options.passThrough.includes(v)){if("children"in f){const{children:x,...y}=f,b=Sg(y);return b.children=s.all(f),b}return Sg(f)}return(s.options.unknownHandler||see)(s,f,p)}function c(f){const p=[];if("children"in f){const v=f.children;let h=-1;for(;++h<v.length;){const g=s.one(v[h],f);if(g){if(h&&v[h-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=OE(g.value)),!Array.isArray(g)&&g.type==="element")){const x=g.children[0];x&&x.type==="text"&&(x.value=OE(x.value))}Array.isArray(g)?p.push(...g):p.push(g)}}}return p}}function oee(e,t){e.position&&(t.position=HX(e))}function aee(e,t){let r=t;if(e&&e.data){const n=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{const a="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:a}}r.type==="element"&&o&&Object.assign(r.properties,Sg(o)),"children"in r&&r.children&&i!==null&&i!==void 0&&(r.children=i)}return r}function see(e,t){const r=t.data||{},n="value"in t&&!(Mb.call(r,"hProperties")||Mb.call(r,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function lee(e,t){const r=[];let n=-1;for(t&&r.push({type:"text",value:`
152
- `});++n<e.length;)n&&r.push({type:"text",value:`
153
- `}),r.push(e[n]);return t&&e.length>0&&r.push({type:"text",value:`
154
- `}),r}function OE(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function NE(e,t){const r=iee(e,t),n=r.one(e,void 0),i=qJ(r),o=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
155
- `},i),o}function uee(e,t){return e&&"run"in e?async function(r,n){const i=NE(r,{file:n,...t});await e.run(i,n)}:function(r,n){return NE(r,{file:n,...e||t})}}function zE(e){if(e)throw e}var T1,$E;function cee(){if($E)return T1;$E=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=function(c){return typeof Array.isArray=="function"?Array.isArray(c):t.call(c)==="[object Array]"},o=function(c){if(!c||t.call(c)!=="[object Object]")return!1;var f=e.call(c,"constructor"),p=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!f&&!p)return!1;var v;for(v in c);return typeof v>"u"||e.call(c,v)},a=function(c,f){r&&f.name==="__proto__"?r(c,f.name,{enumerable:!0,configurable:!0,value:f.newValue,writable:!0}):c[f.name]=f.newValue},s=function(c,f){if(f==="__proto__")if(e.call(c,f)){if(n)return n(c,f).value}else return;return c[f]};return T1=function l(){var c,f,p,v,h,g,x=arguments[0],y=1,b=arguments.length,S=!1;for(typeof x=="boolean"&&(S=x,x=arguments[1]||{},y=2),(x==null||typeof x!="object"&&typeof x!="function")&&(x={});y<b;++y)if(c=arguments[y],c!=null)for(f in c)p=s(x,f),v=s(c,f),x!==v&&(S&&v&&(o(v)||(h=i(v)))?(h?(h=!1,g=p&&i(p)?p:[]):g=p&&o(p)?p:{},a(x,{name:f,newValue:l(S,g,v)})):typeof v<"u"&&a(x,{name:f,newValue:v}));return x},T1}var fee=cee();const k1=si(fee);function Ib(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 dee(){const e=[],t={run:r,use:n};return t;function r(...i){let o=-1;const a=i.pop();if(typeof a!="function")throw new TypeError("Expected function as last argument, not "+a);s(null,...i);function s(l,...c){const f=e[++o];let p=-1;if(l){a(l);return}for(;++p<i.length;)(c[p]===null||c[p]===void 0)&&(c[p]=i[p]);i=c,f?pee(f,s)(...c):a(null,...c)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function pee(e,t){let r;return n;function n(...a){const s=e.length>a.length;let l;s&&a.push(i);try{l=e.apply(this,a)}catch(c){const f=c;if(s&&r)throw f;return i(f)}s||(l&&l.then&&typeof l.then=="function"?l.then(o,i):l instanceof Error?i(l):o(l))}function i(a,...s){r||(r=!0,t(a,...s))}function o(a){i(null,a)}}const _o={basename:hee,dirname:vee,extname:gee,join:mee,sep:"/"};function hee(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Rp(e);let r=0,n=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){r=i+1;break}}else n<0&&(o=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let a=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){r=i+1;break}}else a<0&&(o=!0,a=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(n=i):(s=-1,n=a));return r===n?n=a:n<0&&(n=e.length),e.slice(r,n)}function vee(e){if(Rp(e),e.length===0)return".";let t=-1,r=e.length,n;for(;--r;)if(e.codePointAt(r)===47){if(n){t=r;break}}else n||(n=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function gee(e){Rp(e);let t=e.length,r=-1,n=0,i=-1,o=0,a;for(;t--;){const s=e.codePointAt(t);if(s===47){if(a){n=t+1;break}continue}r<0&&(a=!0,r=t+1),s===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||r<0||o===0||o===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function mee(...e){let t=-1,r;for(;++t<e.length;)Rp(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":yee(r)}function yee(e){Rp(e);const t=e.codePointAt(0)===47;let r=xee(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function xee(e,t){let r="",n=0,i=-1,o=0,a=-1,s,l;for(;++a<=e.length;){if(a<e.length)s=e.codePointAt(a);else{if(s===47)break;s=47}if(s===47){if(!(i===a-1||o===1))if(i!==a-1&&o===2){if(r.length<2||n!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(l=r.lastIndexOf("/"),l!==r.length-1){l<0?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),i=a,o=0;continue}}else if(r.length>0){r="",n=0,i=a,o=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,a):r=e.slice(i+1,a),n=a-i-1;i=a,o=0}else s===46&&o>-1?o++:o=-1}return r}function Rp(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const bee={cwd:_ee};function _ee(){return"/"}function Ab(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function See(e){if(typeof e=="string")e=new URL(e);else if(!Ab(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 wee(e)}function wee(e){if(e.hostname!==""){const n=new TypeError('File URL host must be "localhost" or empty on darwin');throw n.code="ERR_INVALID_FILE_URL_HOST",n}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const n=t.codePointAt(r+2);if(n===70||n===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const R1=["history","path","basename","stem","extname","dirname"];class mO{constructor(t){let r;t?Ab(t)?r={path:t}:typeof t=="string"||Cee(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":bee.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<R1.length;){const o=R1[n];o in r&&r[o]!==void 0&&r[o]!==null&&(this[o]=o==="history"?[...r[o]]:r[o])}let i;for(i in r)R1.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?_o.basename(this.path):void 0}set basename(t){P1(t,"basename"),E1(t,"basename"),this.path=_o.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?_o.dirname(this.path):void 0}set dirname(t){FE(this.basename,"dirname"),this.path=_o.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?_o.extname(this.path):void 0}set extname(t){if(E1(t,"extname"),FE(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=_o.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Ab(t)&&(t=See(t)),P1(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?_o.basename(this.path,this.extname):void 0}set stem(t){P1(t,"stem"),E1(t,"stem"),this.path=_o.join(this.dirname||"",t+(this.extname||""))}fail(t,r,n){const i=this.message(t,r,n);throw i.fatal=!0,i}info(t,r,n){const i=this.message(t,r,n);return i.fatal=void 0,i}message(t,r,n){const i=new nn(t,r,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function E1(e,t){if(e&&e.includes(_o.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+_o.sep+"`")}function P1(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function FE(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Cee(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Tee=function(e){const n=this.constructor.prototype,i=n[e],o=function(){return i.apply(o,arguments)};return Object.setPrototypeOf(o,n),o},kee={}.hasOwnProperty;class ew extends Tee{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=dee()}copy(){const t=new ew;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];t.use(...n)}return t.data(k1(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(A1("data",this.frozen),this.namespace[t]=r,this):kee.call(this.namespace,t)&&this.namespace[t]||void 0:t?(A1("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[r,...n]=this.attachers[this.freezeIndex];if(n[0]===!1)continue;n[0]===!0&&(n[0]=void 0);const i=r.call(t,...n);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=nv(t),n=this.parser||this.Parser;return M1("parse",n),n(String(r),r)}process(t,r){const n=this;return this.freeze(),M1("process",this.parser||this.Parser),I1("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(o,a){const s=nv(t),l=n.parse(s);n.run(l,s,function(f,p,v){if(f||!p||!v)return c(f);const h=p,g=n.stringify(h,v);Pee(g)?v.value=g:v.result=g,c(f,v)});function c(f,p){f||!p?a(f):o?o(p):r(void 0,p)}}}processSync(t){let r=!1,n;return this.freeze(),M1("processSync",this.parser||this.Parser),I1("processSync",this.compiler||this.Compiler),this.process(t,i),jE("processSync","process",r),n;function i(o,a){r=!0,zE(o),n=a}}run(t,r,n){BE(t),this.freeze();const i=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?o(void 0,n):new Promise(o);function o(a,s){const l=nv(r);i.run(t,l,c);function c(f,p,v){const h=p||t;f?s(f):a?a(h):n(void 0,h,v)}}}runSync(t,r){let n=!1,i;return this.run(t,r,o),jE("runSync","run",n),i;function o(a,s){zE(a),i=s,n=!0}}stringify(t,r){this.freeze();const n=nv(r),i=this.compiler||this.Compiler;return I1("stringify",i),BE(t),i(t,n)}use(t,...r){const n=this.attachers,i=this.namespace;if(A1("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?s(t):a(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(c){if(typeof c=="function")l(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[f,...p]=c;l(f,p)}else a(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function a(c){if(!("plugins"in c)&&!("settings"in c))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");s(c.plugins),c.settings&&(i.settings=k1(!0,i.settings,c.settings))}function s(c){let f=-1;if(c!=null)if(Array.isArray(c))for(;++f<c.length;){const p=c[f];o(p)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function l(c,f){let p=-1,v=-1;for(;++p<n.length;)if(n[p][0]===c){v=p;break}if(v===-1)n.push([c,...f]);else if(f.length>0){let[h,...g]=f;const x=n[v][1];Ib(x)&&Ib(h)&&(h=k1(!0,x,h)),n[v]=[c,h,...g]}}}}const Ree=new ew().freeze();function M1(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function I1(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function A1(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 BE(e){if(!Ib(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function jE(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function nv(e){return Eee(e)?e:new mO(e)}function Eee(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Pee(e){return typeof e=="string"||Mee(e)}function Mee(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Iee="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",HE=[],WE={allowDangerousHtml:!0},Aee=/^(https?|ircs?|mailto|xmpp)$/i,Dee=[{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 Lee(e){const t=Oee(e),r=Nee(e);return zee(t.runSync(t.parse(r),r),e)}function Oee(e){const t=e.rehypePlugins||HE,r=e.remarkPlugins||HE,n=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...WE}:WE;return Ree().use(hJ).use(r).use(uee,n).use(t)}function Nee(e){const t=e.children||"",r=new mO;return typeof t=="string"&&(r.value=t),r}function zee(e,t){const r=t.allowedElements,n=t.allowElement,i=t.components,o=t.disallowedElements,a=t.skipHtml,s=t.unwrapDisallowed,l=t.urlTransform||$ee;for(const f of Dee)Object.hasOwn(t,f.from)&&(""+f.from+(f.to?"use `"+f.to+"` instead":"remove it")+Iee+f.id,void 0);return gO(e,c),qX(e,{Fragment:M.Fragment,components:i,ignoreInvalidStyle:!0,jsx:M.jsx,jsxs:M.jsxs,passKeys:!0,passNode:!0});function c(f,p,v){if(f.type==="raw"&&v&&typeof p=="number")return a?v.children.splice(p,1):v.children[p]={type:"text",value:f.value},p;if(f.type==="element"){let h;for(h in S1)if(Object.hasOwn(S1,h)&&Object.hasOwn(f.properties,h)){const g=f.properties[h],x=S1[h];(x===null||x.includes(f.tagName))&&(f.properties[h]=l(String(g||""),h,f))}}if(f.type==="element"){let h=r?!r.includes(f.tagName):o?o.includes(f.tagName):!1;if(!h&&n&&typeof p=="number"&&(h=!n(f,p,v)),h&&v&&typeof p=="number")return s&&f.children?v.children.splice(p,1,...f.children):v.children.splice(p,1),p}}}function $ee(e){const t=e.indexOf(":"),r=e.indexOf("?"),n=e.indexOf("#"),i=e.indexOf("/");return t===-1||i!==-1&&t>i||r!==-1&&t>r||n!==-1&&t>n||Aee.test(e.slice(0,t))?e:""}function Fee({content:e}){return M.jsx(Lee,{components:{a:Or},skipHtml:!1,children:e})}const Bee=`
156
- Ready to take your load tests to the next level? With [Locust Cloud](https://locust.cloud), we take care of everything!
157
-
158
-
159
- Whether your doing small load, or needing to generate millions of requests, we take care of the
160
- load generation.
161
-
162
-
163
- Not sure where to start? Get professional load test consultation! We have over 20 years of experience load testing in a wide array of industries!
164
-
165
-
166
- Locust Cloud comes powered with a suite of features, including advanced graphs, stored testruns, open telemetry, and so much more!
167
- `;function jee(){const e=bn(({theme:{isDarkMode:t}})=>t);return M.jsxs(Ct,{children:[M.jsxs(Ct,{sx:{mb:2},children:[M.jsx(gt,{component:"h2",mb:1,variant:"h4",children:"Power Up Your Load Tests!"}),M.jsx(Fee,{content:Bee})]}),M.jsxs("ul",{children:[M.jsxs("li",{children:[M.jsx(gt,{sx:{mb:2},children:"Our main graphs offer a concise view of the most vital stats, and go further by allowing you to dig into data for each requests in your testrun"}),e?M.jsx("img",{src:"/assets/graphs-dark.png",width:"100%"}):M.jsx("img",{src:"/assets/graphs-light.png",width:"100%"})]}),M.jsxs("li",{children:[M.jsx(gt,{sx:{mb:2},children:"The testruns tab offers a detailed overview of how your system has performed historically. This allows you to easily track and detect any changes in the performance of your system."}),e?M.jsx("img",{src:"/assets/testruns-dark.png",width:"100%"}):M.jsx("img",{src:"/assets/testruns-light.png",width:"100%"}),M.jsxs(gt,{children:["Vist us at"," ",M.jsx(Or,{href:"https://www.locust.cloud/get-started?plan=basic",children:"locust.cloud"})," for a free consultation today!"]})]})]})]})}const Hee=e=>e.includes("CRITICAL")?ns[900]:e.includes("ERROR")?ns[700]:e.includes("WARNING")?YF[900]:e.includes("DEBUG")?ul[700]:"text.primary";function yO({log:e}){return M.jsx(gt,{color:Hee(e),fontFamily:"monospace",variant:"body2",children:e})}function Wee({workerId:e,logs:t}){const[r,n]=O.useState(!1);O.useEffect(()=>{t.slice(localStorage[e]).some(PL)&&n(!0)},[t]);const i=O.useCallback(()=>{n(!1),localStorage[e]=t.length},[]);return M.jsxs(gS,{children:[M.jsxs(yS,{expandIcon:M.jsx(NS,{}),onClick:i,children:[r&&M.jsx(OL,{color:"secondary","data-testid":"worker-notification"}),e]}),M.jsx(mS,{children:M.jsx(io,{elevation:3,sx:{p:2},children:t.map((o,a)=>M.jsx(yO,{log:o},`worker-${e}-log-${a}`))})})]})}function Vee(){const{master:e,workers:t}=bn(({logViewer:r})=>r);return M.jsxs(Ct,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[M.jsxs(Ct,{children:[M.jsx(gt,{sx:{mb:2},variant:"h5",children:"Master Logs"}),M.jsx(io,{elevation:3,sx:{p:2,fontFamily:"monospace"},children:e.map((r,n)=>M.jsx(yO,{log:r},`master-log-${n}`))})]}),!mL(t)&&M.jsxs(Ct,{children:[M.jsx(gt,{sx:{mb:2},variant:"h5",children:"Worker Logs"}),Object.entries(t).map(([r,n],i)=>M.jsx(Wee,{logs:n,workerId:r},`worker-log-${i}`))]})]})}function Uee({extendedCsvFiles:e,statsHistoryEnabled:t}){const r=bn(({theme:{isDarkMode:n}})=>n);return M.jsxs(JD,{sx:{display:"flex",flexDirection:"column"},children:[M.jsx(pu,{children:M.jsx(Or,{href:"./stats/requests/csv",children:"Download requests CSV"})}),t&&M.jsx(pu,{children:M.jsx(Or,{href:"./stats/requests_full_history/csv",children:"Download full request statistics history CSV"})}),M.jsx(pu,{children:M.jsx(Or,{href:"./stats/failures/csv",children:"Download failures CSV"})}),M.jsx(pu,{children:M.jsx(Or,{href:"./exceptions/csv",children:"Download exceptions CSV"})}),M.jsx(pu,{children:M.jsx(Or,{href:`./stats/report?theme=${r?Ao.DARK:Ao.LIGHT}`,target:"_blank",children:"Download Report"})}),e&&e.map(({href:n,title:i},o)=>M.jsx(pu,{children:M.jsx(Or,{href:n,children:i})},`extended-csv-${o}`))]})}const Gee=({swarm:{extendedCsvFiles:e,statsHistoryEnabled:t}})=>({extendedCsvFiles:e,statsHistoryEnabled:t}),qee=li(Gee)(Uee);var kf={},VE;function Yee(){if(VE)return kf;VE=1;var e=ws();Object.defineProperty(kf,"__esModule",{value:!0}),kf.default=void 0;var t=e(Cs()),r=_a(),n=(0,t.default)((0,r.jsx)("path",{d:"M14.67 5v14H9.33V5h5.34zm1 14H21V5h-5.33v14zm-7.34 0V5H3v14h5.33z"}),"ViewColumn");return kf.default=n,kf}var Kee=Yee();const Xee=si(Kee);function Qee({structure:e,selectedColumns:t,addColumn:r,removeColumn:n}){const[i,o]=O.useState(null);return M.jsxs(KD,{sx:{alignSelf:{xs:"end",lg:"start"},my:2},children:[M.jsx(Fo,{onClick:a=>o(a.currentTarget),variant:"outlined",children:M.jsx(Xee,{})}),M.jsx(nL,{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"left"},onClose:()=>o(null),open:!!i,children:M.jsx(QD,{sx:{p:2},children:e.map(({key:a,title:s})=>M.jsx(XD,{control:M.jsx(LG,{checked:t.includes(a),onChange:()=>{t.includes(a)?n(a):r(a)}}),label:s},a))})})]})}function Zee(e){const[t,r]=O.useState(e.map(a=>a.key));return{selectedColumns:t,addColumn:a=>{r([...t,a])},removeColumn:a=>{r(t.filter(s=>s!==a))},filteredStructure:(a=>a.filter(s=>t.includes(s.key)))(e)}}const Jee=Do.percentilesToStatistics?Do.percentilesToStatistics.map(e=>({title:`${e*100}%ile (ms)`,key:`responseTimePercentile${e}`})):[],ete=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},...Jee,{key:"avgResponseTime",title:"Average (ms)",round:2},{key:"minResponseTime",title:"Min (ms)"},{key:"maxResponseTime",title:"Max (ms)"},{key:"avgContentLength",title:"Average size (bytes)",round:2},{key:"currentRps",title:"Current RPS",round:2},{key:"currentFailPerSec",title:"Current Failures/s",round:2}];function tte({stats:e,tableStructure:t=ete}){const{selectedColumns:r,addColumn:n,removeColumn:i,filteredStructure:o}=Zee(t);return M.jsxs(Ct,{sx:{display:"flex",flexDirection:{xs:"column",lg:"row-reverse",alignItems:"flex-start"},columnGap:1},children:[M.jsx(Qee,{addColumn:n,removeColumn:i,selectedColumns:r,structure:t}),M.jsx(Tp,{hasTotalRow:!0,rows:e,structure:o})]})}const rte=({ui:{stats:e}})=>({stats:e}),nte=li(rte)(tte);/*! *****************************************************************************
168
- Copyright (c) Microsoft Corporation.
169
-
170
- Permission to use, copy, modify, and/or distribute this software for any
171
- purpose with or without fee is hereby granted.
172
-
173
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
174
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
175
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
176
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
177
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
178
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
179
- PERFORMANCE OF THIS SOFTWARE.
180
- ***************************************************************************** */var Db=function(e,t){return Db=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Db(e,t)};function $e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Db(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var tw=12,ite="sans-serif",Dl=tw+"px "+ite,ote=20,ate=100,ste="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function lte(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r<e.length;r++){var n=String.fromCharCode(r+32),i=(e.charCodeAt(r)-ote)/ate;t[n]=i}return t}var ute=lte(ste),yc={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var i=yc.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||Dl),e.measureText(r);r=r||"",n=n||Dl;var o=/((?:\d+)?\.?\d*)px/.exec(n),a=o&&+o[1]||tw,s=0;if(n.indexOf("mono")>=0)s=a*r.length;else for(var l=0;l<r.length;l++){var c=ute[r[l]];s+=c==null?a:c*a}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},xO=xc(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),bO=xc(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Ep=Object.prototype.toString,Im=Array.prototype,cte=Im.forEach,fte=Im.filter,rw=Im.slice,dte=Im.map,UE=(function(){}).constructor,iv=UE?UE.prototype:null,nw="__proto__",pte=2311;function _O(){return pte++}function iw(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function Rt(e){if(e==null||typeof e!="object")return e;var t=e,r=Ep.call(e);if(r==="[object Array]"){if(!xd(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=Rt(e[n])}}else if(bO[r]){if(!xd(e)){var o=e.constructor;if(o.from)t=o.from(e);else{t=new o(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!xO[r]&&!xd(e)&&!Xd(e)){t={};for(var a in e)e.hasOwnProperty(a)&&a!==nw&&(t[a]=Rt(e[a]))}return t}function Bt(e,t,r){if(!rt(t)||!rt(e))return r?Rt(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==nw){var i=e[n],o=t[n];rt(o)&&rt(i)&&!Be(o)&&!Be(i)&&!Xd(o)&&!Xd(i)&&!GE(o)&&!GE(i)&&!xd(o)&&!xd(i)?Bt(i,o,r):(r||!(n in e))&&(e[n]=Rt(t[n]))}return e}function Ie(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==nw&&(e[r]=t[r]);return e}function Gt(e,t,r){for(var n=lr(t),i=0;i<n.length;i++){var o=n[i];e[o]==null&&(e[o]=t[o])}return e}function qt(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r}return-1}function hte(e,t){var r=e.prototype;function n(){}n.prototype=t.prototype,e.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(e.prototype[i]=r[i]);e.prototype.constructor=e,e.superClass=t}function Vo(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var o=n[i];o!=="constructor"&&e[o]==null&&(e[o]=t[o])}else Gt(e,t)}function Hn(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function X(e,t,r){if(e&&t)if(e.forEach&&e.forEach===cte)e.forEach(t,r);else if(e.length===+e.length)for(var n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e);else for(var o in e)e.hasOwnProperty(o)&&t.call(r,e[o],o,e)}function at(e,t,r){if(!e)return[];if(!t)return ow(e);if(e.map&&e.map===dte)return e.map(t,r);for(var n=[],i=0,o=e.length;i<o;i++)n.push(t.call(r,e[i],i,e));return n}function xc(e,t,r,n){if(e&&t){for(var i=0,o=e.length;i<o;i++)r=t.call(n,r,e[i],i,e);return r}}function hn(e,t,r){if(!e)return[];if(!t)return ow(e);if(e.filter&&e.filter===fte)return e.filter(t,r);for(var n=[],i=0,o=e.length;i<o;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function lr(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function vte(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(rw.call(arguments)))}}var pr=iv&&ft(iv.bind)?iv.call.bind(iv.bind):vte;function Nr(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(rw.call(arguments)))}}function Be(e){return Array.isArray?Array.isArray(e):Ep.call(e)==="[object Array]"}function ft(e){return typeof e=="function"}function qe(e){return typeof e=="string"}function Lb(e){return Ep.call(e)==="[object String]"}function ur(e){return typeof e=="number"}function rt(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function GE(e){return!!xO[Ep.call(e)]}function Wn(e){return!!bO[Ep.call(e)]}function Xd(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Am(e){return e.colorStops!=null}function gte(e){return e.image!=null}function wg(e){return e!==e}function Qd(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,n=e.length;r<n;r++)if(e[r]!=null)return e[r]}function wt(e,t){return e??t}function qv(e,t,r){return e??t??r}function ow(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return rw.apply(e,t)}function SO(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function xa(e,t){if(!e)throw new Error(t)}function Eo(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var wO="__ec_primitive__";function Ob(e){e[wO]=!0}function xd(e){return e[wO]}var mte=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return lr(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),CO=typeof Map=="function";function yte(){return CO?new Map:new mte}var xte=function(){function e(t){var r=Be(t);this.data=yte();var n=this;t instanceof e?t.each(i):t&&X(t,i);function i(o,a){r?n.set(o,a):n.set(a,o)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(n,i){t.call(r,n,i)})},e.prototype.keys=function(){var t=this.data.keys();return CO?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function yt(e){return new xte(e)}function bte(e,t){for(var r=new e.constructor(e.length+t.length),n=0;n<e.length;n++)r[n]=e[n];for(var i=e.length,n=0;n<t.length;n++)r[n+i]=t[n];return r}function Dm(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&Ie(r,t),r}function TO(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function cc(e,t){return e.hasOwnProperty(t)}function Fn(){}var _te=180/Math.PI,Ste=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),wte=function(){function e(){this.browser=new Ste,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),ut=new wte;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(ut.wxa=!0,ut.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?ut.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(ut.node=!0,ut.svgSupported=!0):Cte(navigator.userAgent,ut);function Cte(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),o=e.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),o&&(r.edge=!0,r.version=o[1],r.newEdge=+o[1].split(".")[0]>18),a&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var Tte=".",Bs="___EC__COMPONENT__CONTAINER___",kO="___EC__EXTENDED_CLASS___";function Po(e){var t={main:"",sub:""};if(e){var r=e.split(Tte);t.main=r[0]||"",t.sub=r[1]||""}return t}function kte(e){xa(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function Rte(e){return!!(e&&e[kO])}function aw(e,t){e.$constructor=e,e.extend=function(r){var n=this,i;return Ete(n)?i=function(o){$e(a,o);function a(){return o.apply(this,arguments)||this}return a}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},hte(i,this)),Ie(i.prototype,r),i[kO]=!0,i.extend=this.extend,i.superCall=Ite,i.superApply=Ate,i.superClass=n,i}}function Ete(e){return ft(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function RO(e,t){e.extend=t.extend}var Pte=Math.round(Math.random()*10);function Mte(e){var t=["__\0is_clz",Pte++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function Ite(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return this.superClass.prototype[t].apply(e,r)}function Ate(e,t,r){return this.superClass.prototype[t].apply(e,r)}function Lm(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){kte(i),n.prototype.type=i;var o=Po(i);if(!o.sub)t[o.main]=n;else if(o.sub!==Bs){var a=r(o);a[o.sub]=n}}return n},e.getClass=function(n,i,o){var a=t[n];if(a&&a[Bs]&&(a=i?a[i]:null),o&&!a)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return a},e.getClassesByMainType=function(n){var i=Po(n),o=[],a=t[i.main];return a&&a[Bs]?X(a,function(s,l){l!==Bs&&o.push(s)}):o.push(a),o},e.hasClass=function(n){var i=Po(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return X(t,function(i,o){n.push(o)}),n},e.hasSubTypes=function(n){var i=Po(n),o=t[i.main];return o&&o[Bs]};function r(n){var i=t[n.main];return(!i||!i[Bs])&&(i=t[n.main]={},i[Bs]=!0),i}}function Zd(e,t){for(var r=0;r<e.length;r++)e[r][1]||(e[r][1]=e[r][0]);return t=t||!1,function(n,i,o){for(var a={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&qt(i,l)>=0||o&&qt(o,l)<0)){var c=n.getShallow(l,t);c!=null&&(a[e[s][0]]=c)}}return a}}var Dte=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Lte=Zd(Dte),Ote=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return Lte(this,t,r)},e}(),EO=function(){function e(t){this.value=t}return e}(),Nte=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new EO(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Pp=function(){function e(t){this._list=new Nte,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,o=null;if(i[t]==null){var a=n.len(),s=this._lastRemovedEntry;if(a>=this._maxSize&&a>0){var l=n.head;n.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new EO(r),s.key=t,n.insertEntry(s),i[t]=s}return o},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Nb=new Pp(50);function zte(e){if(typeof e=="string"){var t=Nb.get(e);return t&&t.image}else return e}function PO(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var o=Nb.get(e),a={hostEl:r,cb:n,cbPayload:i};return o?(t=o.image,!Om(t)&&o.pending.push(a)):(t=yc.loadImage(e,qE,qE),t.__zrImageSrc=e,Nb.put(e,t.__cachedImgObj={image:t,pending:[a]})),t}else return e;else return t}function qE(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],n=r.cb;n&&n(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function Om(e){return e&&e.width&&e.height}function Yu(){return[1,0,0,1,0,0]}function sw(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function $te(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Ku(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],o=t[0]*r[2]+t[2]*r[3],a=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function zb(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function lw(e,t,r,n){n===void 0&&(n=[0,0]);var i=t[0],o=t[2],a=t[4],s=t[1],l=t[3],c=t[5],f=Math.sin(r),p=Math.cos(r);return e[0]=i*p+s*f,e[1]=-i*f+s*p,e[2]=o*p+l*f,e[3]=-o*f+p*l,e[4]=p*(a-n[0])+f*(c-n[1])+n[0],e[5]=p*(c-n[1])-f*(a-n[0])+n[1],e}function Fte(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function uw(e,t){var r=t[0],n=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=r*a-o*n;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-a*i)*l,e[5]=(o*i-r*s)*l,e):null}var Yt=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var o=1-i;t.x=o*r.x+i*n.x,t.y=o*r.y+i*n.y},e}(),ov=Math.min,av=Math.max,js=new Yt,Hs=new Yt,Ws=new Yt,Vs=new Yt,Rf=new Yt,Ef=new Yt,jt=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=ov(t.x,this.x),n=ov(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=av(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=av(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,o=Yu();return zb(o,o,[-r.x,-r.y]),Fte(o,o,[n,i]),zb(o,o,[t.x,t.y]),o},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,o=n.x+n.width,a=n.y,s=n.y+n.height,l=t.x,c=t.x+t.width,f=t.y,p=t.y+t.height,v=!(o<l||c<i||s<f||p<a);if(r){var h=1/0,g=0,x=Math.abs(o-l),y=Math.abs(c-i),b=Math.abs(s-f),S=Math.abs(p-a),_=Math.min(x,y),C=Math.min(b,S);o<l||c<i?_>g&&(g=_,x<y?Yt.set(Ef,-x,0):Yt.set(Ef,y,0)):_<h&&(h=_,x<y?Yt.set(Rf,x,0):Yt.set(Rf,-y,0)),s<f||p<a?C>g&&(g=C,b<S?Yt.set(Ef,0,-b):Yt.set(Ef,0,S)):_<h&&(h=_,b<S?Yt.set(Rf,0,b):Yt.set(Rf,0,-S))}return r&&Yt.copy(r,v?Rf:Ef),v},e.prototype.contain=function(t,r){var n=this;return t>=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],o=n[3],a=n[4],s=n[5];t.x=r.x*i+a,t.y=r.y*o+s,t.width=r.width*i,t.height=r.height*o,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}js.x=Ws.x=r.x,js.y=Vs.y=r.y,Hs.x=Vs.x=r.x+r.width,Hs.y=Ws.y=r.y+r.height,js.transform(n),Vs.transform(n),Hs.transform(n),Ws.transform(n),t.x=ov(js.x,Hs.x,Ws.x,Vs.x),t.y=ov(js.y,Hs.y,Ws.y,Vs.y);var l=av(js.x,Hs.x,Ws.x,Vs.x),c=av(js.y,Hs.y,Ws.y,Vs.y);t.width=l-t.x,t.height=c-t.y},e}(),YE={};function ii(e,t){t=t||Dl;var r=YE[t];r||(r=YE[t]=new Pp(500));var n=r.get(e);return n==null&&(n=yc.measureText(e,t).width,r.put(e,n)),n}function KE(e,t,r,n){var i=ii(e,t),o=fw(t),a=Zf(0,i,r),s=Ou(0,o,n),l=new jt(a,s,i,o);return l}function cw(e,t,r,n){var i=((e||"")+"").split(`
181
- `),o=i.length;if(o===1)return KE(i[0],t,r,n);for(var a=new jt(0,0,0,0),s=0;s<i.length;s++){var l=KE(i[s],t,r,n);s===0?a.copy(l):a.union(l)}return a}function Zf(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Ou(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function fw(e){return ii("国",e)}function Ll(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function MO(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,o=r.height,a=r.width,s=o/2,l=r.x,c=r.y,f="left",p="top";if(n instanceof Array)l+=Ll(n[0],r.width),c+=Ll(n[1],r.height),f=null,p=null;else switch(n){case"left":l-=i,c+=s,f="right",p="middle";break;case"right":l+=i+a,c+=s,p="middle";break;case"top":l+=a/2,c-=i,f="center",p="bottom";break;case"bottom":l+=a/2,c+=o+i,f="center";break;case"inside":l+=a/2,c+=s,f="center",p="middle";break;case"insideLeft":l+=i,c+=s,p="middle";break;case"insideRight":l+=a-i,c+=s,f="right",p="middle";break;case"insideTop":l+=a/2,c+=i,f="center";break;case"insideBottom":l+=a/2,c+=o-i,f="center",p="bottom";break;case"insideTopLeft":l+=i,c+=i;break;case"insideTopRight":l+=a-i,c+=i,f="right";break;case"insideBottomLeft":l+=i,c+=o-i,p="bottom";break;case"insideBottomRight":l+=a-i,c+=o-i,f="right",p="bottom";break}return e=e||{},e.x=l,e.y=c,e.align=f,e.verticalAlign=p,e}var D1=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Bte(e,t,r,n,i){if(!t)return"";var o=(e+"").split(`
182
- `);i=IO(t,r,n,i);for(var a=0,s=o.length;a<s;a++)o[a]=AO(o[a],i);return o.join(`
183
- `)}function IO(e,t,r,n){n=n||{};var i=Ie({},n);i.font=t,r=wt(r,"..."),i.maxIterations=wt(n.maxIterations,2);var o=i.minChar=wt(n.minChar,0);i.cnCharWidth=ii("国",t);var a=i.ascCharWidth=ii("a",t);i.placeholder=wt(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<o&&s>=a;l++)s-=a;var c=ii(r,t);return c>s&&(r="",c=0),s=e-c,i.ellipsis=r,i.ellipsisWidth=c,i.contentWidth=s,i.containerWidth=e,i}function AO(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var o=ii(e,n);if(o<=r)return e;for(var a=0;;a++){if(o<=i||a>=t.maxIterations){e+=t.ellipsis;break}var s=a===0?jte(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,s),o=ii(e,n)}return e===""&&(e=t.placeholder),e}function jte(e,t,r,n){for(var i=0,o=0,a=e.length;o<a&&i<t;o++){var s=e.charCodeAt(o);i+=0<=s&&s<=127?r:n}return o}function Hte(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,i=t.font,o=r==="truncate",a=fw(i),s=wt(t.lineHeight,a),l=!!t.backgroundColor,c=t.lineOverflow==="truncate",f=t.width,p;f!=null&&(r==="break"||r==="breakAll")?p=e?DO(e,t.font,f,r==="breakAll",0).lines:[]:p=e?e.split(`
184
- `):[];var v=p.length*s,h=wt(t.height,v);if(v>h&&c){var g=Math.floor(h/s);p=p.slice(0,g)}if(e&&o&&f!=null)for(var x=IO(f,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y=0;y<p.length;y++)p[y]=AO(p[y],x);for(var b=h,S=0,y=0;y<p.length;y++)S=Math.max(ii(p[y],i),S);f==null&&(f=S);var _=S;return n&&(b+=n[0]+n[2],_+=n[1]+n[3],f+=n[1]+n[3]),l&&(_=f),{lines:p,height:h,outerWidth:_,outerHeight:b,lineHeight:s,calculatedLineHeight:a,contentWidth:S,contentHeight:v,width:f}}var Wte=function(){function e(){}return e}(),XE=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),Vte=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return e}();function Ute(e,t){var r=new Vte;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,i=t.height,o=t.overflow,a=(o==="break"||o==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:o==="breakAll"}:null,s=D1.lastIndex=0,l;(l=D1.exec(e))!=null;){var c=l.index;c>s&&L1(r,e.substring(s,c),t,a),L1(r,l[2],t,a,l[1]),s=D1.lastIndex}s<e.length&&L1(r,e.substring(s,e.length),t,a);var f=[],p=0,v=0,h=t.padding,g=o==="truncate",x=t.lineOverflow==="truncate";function y(V,G,N){V.width=G,V.lineHeight=N,p+=N,v=Math.max(v,G)}e:for(var b=0;b<r.lines.length;b++){for(var S=r.lines[b],_=0,C=0,k=0;k<S.tokens.length;k++){var T=S.tokens[k],E=T.styleName&&t.rich[T.styleName]||{},I=T.textPadding=E.padding,D=I?I[1]+I[3]:0,A=T.font=E.font||t.font;T.contentHeight=fw(A);var L=wt(E.height,T.contentHeight);if(T.innerHeight=L,I&&(L+=I[0]+I[2]),T.height=L,T.lineHeight=qv(E.lineHeight,t.lineHeight,L),T.align=E&&E.align||t.align,T.verticalAlign=E&&E.verticalAlign||"middle",x&&i!=null&&p+T.lineHeight>i){k>0?(S.tokens=S.tokens.slice(0,k),y(S,C,_),r.lines=r.lines.slice(0,b+1)):r.lines=r.lines.slice(0,b);break e}var $=E.width,B=$==null||$==="auto";if(typeof $=="string"&&$.charAt($.length-1)==="%")T.percentWidth=$,f.push(T),T.contentWidth=ii(T.text,A);else{if(B){var j=E.backgroundColor,W=j&&j.image;W&&(W=zte(W),Om(W)&&(T.width=Math.max(T.width,W.width*L/W.height)))}var q=g&&n!=null?n-C:null;q!=null&&q<T.width?!B||q<D?(T.text="",T.width=T.contentWidth=0):(T.text=Bte(T.text,q-D,A,t.ellipsis,{minChar:t.truncateMinChar}),T.width=T.contentWidth=ii(T.text,A)):T.contentWidth=ii(T.text,A)}T.width+=D,C+=T.width,E&&(_=Math.max(_,T.lineHeight))}y(S,C,_)}r.outerWidth=r.width=wt(n,v),r.outerHeight=r.height=wt(i,p),r.contentHeight=p,r.contentWidth=v,h&&(r.outerWidth+=h[1]+h[3],r.outerHeight+=h[0]+h[2]);for(var b=0;b<f.length;b++){var T=f[b],Z=T.percentWidth;T.width=parseInt(Z,10)/100*r.width}return r}function L1(e,t,r,n,i){var o=t==="",a=i&&r.rich[i]||{},s=e.lines,l=a.font||r.font,c=!1,f,p;if(n){var v=a.padding,h=v?v[1]+v[3]:0;if(a.width!=null&&a.width!=="auto"){var g=Ll(a.width,n.width)+h;s.length>0&&g+n.accumWidth>n.width&&(f=t.split(`
185
- `),c=!0),n.accumWidth=g}else{var x=DO(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=x.accumWidth+h,p=x.linesWidths,f=x.lines}}else f=t.split(`
186
- `);for(var y=0;y<f.length;y++){var b=f[y],S=new Wte;if(S.styleName=i,S.text=b,S.isLineHolder=!b&&!o,typeof a.width=="number"?S.width=a.width:S.width=p?p[y]:ii(b,l),!y&&!c){var _=(s[s.length-1]||(s[0]=new XE)).tokens,C=_.length;C===1&&_[0].isLineHolder?_[0]=S:(b||!C||o)&&_.push(S)}else s.push(new XE([S]))}}function Gte(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var qte=xc(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Yte(e){return Gte(e)?!!qte[e]:!0}function DO(e,t,r,n,i){for(var o=[],a=[],s="",l="",c=0,f=0,p=0;p<e.length;p++){var v=e.charAt(p);if(v===`
187
- `){l&&(s+=l,f+=c),o.push(s),a.push(f),s="",l="",c=0,f=0;continue}var h=ii(v,t),g=n?!1:!Yte(v);if(o.length?f+h>r:i+f+h>r){f?(s||l)&&(g?(s||(s=l,l="",c=0,f=c),o.push(s),a.push(f-c),l+=v,c+=h,s="",f=c):(l&&(s+=l,l="",c=0),o.push(s),a.push(f),s=v,f=h)):g?(o.push(l),a.push(c),l=v,c=h):(o.push(v),a.push(h));continue}f+=h,g?(l+=v,c+=h):(l&&(s+=l,l="",c=0),s+=v)}return!o.length&&!s&&(s=e,l="",c=0),l&&(s+=l),s&&(o.push(s),a.push(f)),o.length===1&&(f+=i),{accumWidth:f,lines:o,linesWidths:a}}function bc(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Kte(e){return[e[0],e[1]]}function QE(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function Xte(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function Qte(e){return Math.sqrt(Zte(e))}function Zte(e){return e[0]*e[0]+e[1]*e[1]}function O1(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Jte(e,t){var r=Qte(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function $b(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var ere=$b;function tre(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var Xu=tre;function Ii(e,t,r){var n=t[0],i=t[1];return e[0]=r[0]*n+r[2]*i+r[4],e[1]=r[1]*n+r[3]*i+r[5],e}function $u(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function Fu(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var ZE=sw,rre=5e-5;function Us(e){return e>rre||e<-5e-5}var Gs=[],yu=[],N1=Yu(),z1=Math.abs,dw=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return Us(this.rotation)||Us(this.x)||Us(this.y)||Us(this.scaleX-1)||Us(this.scaleY-1)||Us(this.skewX)||Us(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(ZE(n),this.invTransform=null);return}n=n||Yu(),r?this.getLocalTransform(n):ZE(n),t&&(r?Ku(n,t,n):$te(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Gs);var n=Gs[0]<0?-1:1,i=Gs[1]<0?-1:1,o=((Gs[0]-n)*r+n)/Gs[0]||0,a=((Gs[1]-i)*r+i)/Gs[1]||0;t[0]*=o,t[1]*=o,t[2]*=a,t[3]*=a}this.invTransform=this.invTransform||Yu(),uw(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),o=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(o),r=Math.sqrt(r),this.skewX=o,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Yu(),Ku(yu,t.invTransform,r),r=yu);var n=this.originX,i=this.originY;(n||i)&&(N1[4]=n,N1[5]=i,Ku(yu,r,N1),yu[4]-=n,yu[5]-=i,r=yu),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&Ii(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&Ii(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&z1(t[0]-1)>1e-10&&z1(t[3]-1)>1e-10?Math.sqrt(z1(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){nre(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,o=t.scaleX,a=t.scaleY,s=t.anchorX,l=t.anchorY,c=t.rotation||0,f=t.x,p=t.y,v=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var g=n+s,x=i+l;r[4]=-g*o-v*x*a,r[5]=-x*a-h*g*o}else r[4]=r[5]=0;return r[0]=o,r[3]=a,r[1]=h*o,r[2]=v*a,c&&lw(r,r,c),r[4]+=n+f,r[5]+=i+p,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),Jd=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function nre(e,t){for(var r=0;r<Jd.length;r++){var n=Jd[r];e[n]=t[n]}}var bd={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-bd.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?bd.bounceIn(e*2)*.5:bd.bounceOut(e*2-1)*.5+.5}},sv=Math.pow,us=Math.sqrt,LO=1e-8,OO=1e-4,JE=us(3),lv=1/3,ko=bc(),ki=bc(),Qu=bc();function as(e){return e>-1e-8&&e<LO}function NO(e){return e>LO||e<-1e-8}function Hr(e,t,r,n,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*n+3*o*r)}function eP(e,t,r,n,i){var o=1-i;return 3*(((t-e)*o+2*(r-t)*i)*o+(n-r)*i*i)}function Cg(e,t,r,n,i,o){var a=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),c=e-i,f=s*s-3*a*l,p=s*l-9*a*c,v=l*l-3*s*c,h=0;if(as(f)&&as(p))if(as(s))o[0]=0;else{var g=-l/s;g>=0&&g<=1&&(o[h++]=g)}else{var x=p*p-4*f*v;if(as(x)){var y=p/f,g=-s/a+y,b=-y/2;g>=0&&g<=1&&(o[h++]=g),b>=0&&b<=1&&(o[h++]=b)}else if(x>0){var S=us(x),_=f*s+1.5*a*(-p+S),C=f*s+1.5*a*(-p-S);_<0?_=-sv(-_,lv):_=sv(_,lv),C<0?C=-sv(-C,lv):C=sv(C,lv);var g=(-s-(_+C))/(3*a);g>=0&&g<=1&&(o[h++]=g)}else{var k=(2*f*s-3*a*p)/(2*us(f*f*f)),T=Math.acos(k)/3,E=us(f),I=Math.cos(T),g=(-s-2*E*I)/(3*a),b=(-s+E*(I+JE*Math.sin(T)))/(3*a),D=(-s+E*(I-JE*Math.sin(T)))/(3*a);g>=0&&g<=1&&(o[h++]=g),b>=0&&b<=1&&(o[h++]=b),D>=0&&D<=1&&(o[h++]=D)}}return h}function zO(e,t,r,n,i){var o=6*r-12*t+6*e,a=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(as(a)){if(NO(o)){var c=-s/o;c>=0&&c<=1&&(i[l++]=c)}}else{var f=o*o-4*a*s;if(as(f))i[0]=-o/(2*a);else if(f>0){var p=us(f),c=(-o+p)/(2*a),v=(-o-p)/(2*a);c>=0&&c<=1&&(i[l++]=c),v>=0&&v<=1&&(i[l++]=v)}}return l}function Tg(e,t,r,n,i,o){var a=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,c=(s-a)*i+a,f=(l-s)*i+s,p=(f-c)*i+c;o[0]=e,o[1]=a,o[2]=c,o[3]=p,o[4]=p,o[5]=f,o[6]=l,o[7]=n}function ire(e,t,r,n,i,o,a,s,l,c,f){var p,v=.005,h=1/0,g,x,y,b;ko[0]=l,ko[1]=c;for(var S=0;S<1;S+=.05)ki[0]=Hr(e,r,i,a,S),ki[1]=Hr(t,n,o,s,S),y=Xu(ko,ki),y<h&&(p=S,h=y);h=1/0;for(var _=0;_<32&&!(v<OO);_++)g=p-v,x=p+v,ki[0]=Hr(e,r,i,a,g),ki[1]=Hr(t,n,o,s,g),y=Xu(ki,ko),g>=0&&y<h?(p=g,h=y):(Qu[0]=Hr(e,r,i,a,x),Qu[1]=Hr(t,n,o,s,x),b=Xu(Qu,ko),x<=1&&b<h?(p=x,h=b):v*=.5);return us(h)}function ore(e,t,r,n,i,o,a,s,l){for(var c=e,f=t,p=0,v=1/l,h=1;h<=l;h++){var g=h*v,x=Hr(e,r,i,a,g),y=Hr(t,n,o,s,g),b=x-c,S=y-f;p+=Math.sqrt(b*b+S*S),c=x,f=y}return p}function An(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function tP(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function are(e,t,r,n,i){var o=e-2*t+r,a=2*(t-e),s=e-n,l=0;if(as(o)){if(NO(a)){var c=-s/a;c>=0&&c<=1&&(i[l++]=c)}}else{var f=a*a-4*o*s;if(as(f)){var c=-a/(2*o);c>=0&&c<=1&&(i[l++]=c)}else if(f>0){var p=us(f),c=(-a+p)/(2*o),v=(-a-p)/(2*o);c>=0&&c<=1&&(i[l++]=c),v>=0&&v<=1&&(i[l++]=v)}}return l}function $O(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function kg(e,t,r,n,i){var o=(t-e)*n+e,a=(r-t)*n+t,s=(a-o)*n+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=r}function sre(e,t,r,n,i,o,a,s,l){var c,f=.005,p=1/0;ko[0]=a,ko[1]=s;for(var v=0;v<1;v+=.05){ki[0]=An(e,r,i,v),ki[1]=An(t,n,o,v);var h=Xu(ko,ki);h<p&&(c=v,p=h)}p=1/0;for(var g=0;g<32&&!(f<OO);g++){var x=c-f,y=c+f;ki[0]=An(e,r,i,x),ki[1]=An(t,n,o,x);var h=Xu(ki,ko);if(x>=0&&h<p)c=x,p=h;else{Qu[0]=An(e,r,i,y),Qu[1]=An(t,n,o,y);var b=Xu(Qu,ko);y<=1&&b<p?(c=y,p=b):f*=.5}}return us(p)}function lre(e,t,r,n,i,o,a){for(var s=e,l=t,c=0,f=1/a,p=1;p<=a;p++){var v=p*f,h=An(e,r,i,v),g=An(t,n,o,v),x=h-s,y=g-l;c+=Math.sqrt(x*x+y*y),s=h,l=g}return c}var ure=/cubic-bezier\(([0-9,\.e ]+)\)/;function FO(e){var t=e&&ure.exec(e);if(t){var r=t[1].split(","),n=+Eo(r[0]),i=+Eo(r[1]),o=+Eo(r[2]),a=+Eo(r[3]);if(isNaN(n+i+o+a))return;var s=[];return function(l){return l<=0?0:l>=1?1:Cg(0,n,o,1,l,s)&&Hr(0,i,a,1,s[0])}}}var cre=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Fn,this.ondestroy=t.ondestroy||Fn,this.onrestart=t.onrestart||Fn,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,o=i/n;o<0&&(o=0),o=Math.min(o,1);var a=this.easingFunc,s=a?a(o):o;if(this.onframe(s),o===1)if(this.loop){var l=i%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ft(t)?t:bd[t]||FO(t)},e}(),rP={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function cs(e){return e=Math.round(e),e<0?0:e>255?255:e}function Fb(e){return e<0?0:e>1?1:e}function $1(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?cs(parseFloat(t)/100*255):cs(parseInt(t,10))}function _d(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Fb(parseFloat(t)/100):Fb(parseFloat(t))}function F1(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function uv(e,t,r){return e+(t-e)*r}function xi(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function Bb(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var BO=new Pp(20),cv=null;function xu(e,t){cv&&Bb(cv,t),cv=BO.put(e,cv||t.slice())}function pa(e,t){if(e){t=t||[];var r=BO.get(e);if(r)return Bb(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in rP)return Bb(t,rP[n]),xu(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var o=parseInt(n.slice(1,4),16);if(!(o>=0&&o<=4095)){xi(t,0,0,0,1);return}return xi(t,(o&3840)>>4|(o&3840)>>8,o&240|(o&240)>>4,o&15|(o&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),xu(e,t),t}else if(i===7||i===9){var o=parseInt(n.slice(1,7),16);if(!(o>=0&&o<=16777215)){xi(t,0,0,0,1);return}return xi(t,(o&16711680)>>16,(o&65280)>>8,o&255,i===9?parseInt(n.slice(7),16)/255:1),xu(e,t),t}return}var a=n.indexOf("("),s=n.indexOf(")");if(a!==-1&&s+1===i){var l=n.substr(0,a),c=n.substr(a+1,s-(a+1)).split(","),f=1;switch(l){case"rgba":if(c.length!==4)return c.length===3?xi(t,+c[0],+c[1],+c[2],1):xi(t,0,0,0,1);f=_d(c.pop());case"rgb":if(c.length>=3)return xi(t,$1(c[0]),$1(c[1]),$1(c[2]),c.length===3?f:_d(c[3])),xu(e,t),t;xi(t,0,0,0,1);return;case"hsla":if(c.length!==4){xi(t,0,0,0,1);return}return c[3]=_d(c[3]),nP(c,t),xu(e,t),t;case"hsl":if(c.length!==3){xi(t,0,0,0,1);return}return nP(c,t),xu(e,t),t;default:return}}xi(t,0,0,0,1)}}function nP(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=_d(e[1]),i=_d(e[2]),o=i<=.5?i*(n+1):i+n-i*n,a=i*2-o;return t=t||[],xi(t,cs(F1(a,o,r+1/3)*255),cs(F1(a,o,r)*255),cs(F1(a,o,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function iP(e,t){var r=pa(e);if(r){for(var n=0;n<3;n++)r[n]=r[n]*(1-t)|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return Nm(r,r.length===4?"rgba":"rgb")}}function fre(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),o=Math.ceil(n),a=pa(t[i]),s=pa(t[o]),l=n-i,c=Nm([cs(uv(a[0],s[0],l)),cs(uv(a[1],s[1],l)),cs(uv(a[2],s[2],l)),Fb(uv(a[3],s[3],l))],"rgba");return r?{color:c,leftIndex:i,rightIndex:o,value:n}:c}}function Nm(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function Rg(e,t){var r=pa(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var oP=new Pp(100);function aP(e){if(qe(e)){var t=oP.get(e);return t||(t=iP(e,-.1),oP.put(e,t)),t}else if(Am(e)){var r=Ie({},e);return r.colorStops=at(e.colorStops,function(n){return{offset:n.offset,color:iP(n.color,-.1)}}),r}return e}function dre(e){return e.type==="linear"}function pre(e){return e.type==="radial"}(function(){return ut.hasGlobalWindow&&ft(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var jb=Array.prototype.slice;function la(e,t,r){return(t-e)*r+e}function B1(e,t,r,n){for(var i=t.length,o=0;o<i;o++)e[o]=la(t[o],r[o],n);return e}function hre(e,t,r,n){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=la(t[a][s],r[a][s],n)}return e}function fv(e,t,r,n){for(var i=t.length,o=0;o<i;o++)e[o]=t[o]+r[o]*n;return e}function sP(e,t,r,n){for(var i=t.length,o=i&&t[0].length,a=0;a<i;a++){e[a]||(e[a]=[]);for(var s=0;s<o;s++)e[a][s]=t[a][s]+r[a][s]*n}return e}function vre(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,o=Math.min(r,n),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(r,n);s++)i.push({offset:a.offset,color:a.color.slice()})}function gre(e,t,r){var n=e,i=t;if(!(!n.push||!i.push)){var o=n.length,a=i.length;if(o!==a){var s=o>a;if(s)n.length=a;else for(var l=o;l<a;l++)n.push(r===1?i[l]:jb.call(i[l]))}for(var c=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var f=0;f<c;f++)isNaN(n[l][f])&&(n[l][f]=i[l][f])}}function Yv(e){if(Hn(e)){var t=e.length;if(Hn(e[0])){for(var r=[],n=0;n<t;n++)r.push(jb.call(e[n]));return r}return jb.call(e)}return e}function Kv(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function mre(e){return Hn(e&&e[0])?2:1}var dv=0,Xv=1,jO=2,Jf=3,Hb=4,Wb=5,lP=6;function uP(e){return e===Hb||e===Wb}function pv(e){return e===Xv||e===jO}var Pf=[0,0,0,0],yre=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,o=i.length,a=!1,s=lP,l=r;if(Hn(r)){var c=mre(r);s=c,(c===1&&!ur(r[0])||c===2&&!ur(r[0][0]))&&(a=!0)}else if(ur(r)&&!wg(r))s=dv;else if(qe(r))if(!isNaN(+r))s=dv;else{var f=pa(r);f&&(l=f,s=Jf)}else if(Am(r)){var p=Ie({},l);p.colorStops=at(r.colorStops,function(h){return{offset:h.offset,color:pa(h.color)}}),dre(r)?s=Hb:pre(r)&&(s=Wb),l=p}o===0?this.valType=s:(s!==this.valType||s===lP)&&(a=!0),this.discrete=this.discrete||a;var v={time:t,value:l,rawValue:r,percent:0};return n&&(v.easing=n,v.easingFunc=ft(n)?n:bd[n]||FO(n)),i.push(v),v},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(x,y){return x.time-y.time});for(var i=this.valType,o=n.length,a=n[o-1],s=this.discrete,l=pv(i),c=uP(i),f=0;f<o;f++){var p=n[f],v=p.value,h=a.value;p.percent=p.time/t,s||(l&&f!==o-1?gre(v,h,i):c&&vre(v.colorStops,h.colorStops))}if(!s&&i!==Wb&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var g=n[0].value,f=0;f<o;f++)i===dv?n[f].additiveValue=n[f].value-g:i===Jf?n[f].additiveValue=fv([],n[f].value,g,-1):pv(i)&&(n[f].additiveValue=i===Xv?fv([],n[f].value,g,-1):sP([],n[f].value,g,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n=this._additiveTrack!=null,i=n?"additiveValue":"value",o=this.valType,a=this.keyframes,s=a.length,l=this.propName,c=o===Jf,f,p=this._lastFr,v=Math.min,h,g;if(s===1)h=g=a[0];else{if(r<0)f=0;else if(r<this._lastFrP){var x=v(p+1,s-1);for(f=x;f>=0&&!(a[f].percent<=r);f--);f=v(f,s-2)}else{for(f=p;f<s&&!(a[f].percent>r);f++);f=v(f-1,s-2)}g=a[f+1],h=a[f]}if(h&&g){this._lastFr=f,this._lastFrP=r;var y=g.percent-h.percent,b=y===0?1:v((r-h.percent)/y,1);g.easingFunc&&(b=g.easingFunc(b));var S=n?this._additiveValue:c?Pf:t[l];if((pv(o)||c)&&!S&&(S=this._additiveValue=[]),this.discrete)t[l]=b<1?h.rawValue:g.rawValue;else if(pv(o))o===Xv?B1(S,h[i],g[i],b):hre(S,h[i],g[i],b);else if(uP(o)){var _=h[i],C=g[i],k=o===Hb;t[l]={type:k?"linear":"radial",x:la(_.x,C.x,b),y:la(_.y,C.y,b),colorStops:at(_.colorStops,function(E,I){var D=C.colorStops[I];return{offset:la(E.offset,D.offset,b),color:Kv(B1([],E.color,D.color,b))}}),global:C.global},k?(t[l].x2=la(_.x2,C.x2,b),t[l].y2=la(_.y2,C.y2,b)):t[l].r=la(_.r,C.r,b)}else if(c)B1(S,h[i],g[i],b),n||(t[l]=Kv(S));else{var T=la(h[i],g[i],b);n?this._additiveValue=T:t[l]=T}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===dv?t[n]=t[n]+i:r===Jf?(pa(t[n],Pf),fv(Pf,Pf,i,1),t[n]=Kv(Pf)):r===Xv?fv(t[n],t[n],i,1):r===jO&&sP(t[n],t[n],i,1)},e}(),pw=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){iw("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,lr(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var o=this._tracks,a=0;a<n.length;a++){var s=n[a],l=o[s];if(!l){l=o[s]=new yre(s);var c=void 0,f=this._getAdditiveTrack(s);if(f){var p=f.keyframes,v=p[p.length-1];c=v&&v.value,f.valType===Jf&&c&&(c=Kv(c))}else c=this._target[s];if(c==null)continue;t>0&&l.addKeyframe(0,Yv(c),i),this._trackKeys.push(s)}l.addKeyframe(t,Yv(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n<r;n++)t[n].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var n=0;n<r.length;n++)r[n].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,n=0;n<r.length;n++)t[r[n]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var o=n[i].getTrack(t);o&&(r=o)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],l=this._getAdditiveTrack(a),c=s.keyframes,f=c.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var p=c[f-1];p&&(r._target[s.propName]=p.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var v=new cre({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var g=r._additiveAnimators;if(g){for(var x=!1,y=0;y<g.length;y++)if(g[y]._clip){x=!0;break}x||(r._additiveAnimators=null)}for(var y=0;y<n.length;y++)n[y].step(r._target,h);var b=r._onframeCbs;if(b)for(var y=0;y<b.length;y++)b[y](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),t&&v.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return at(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,o=0;o<t.length;o++){var a=n[t[o]];a&&!a.isFinished()&&(r?a.step(this._target,1):this._started===1&&a.step(this._target,0),a.setFinished())}for(var s=!0,o=0;o<i.length;o++)if(!n[i[o]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,n){if(t){r=r||this._trackKeys;for(var i=0;i<r.length;i++){var o=r[i],a=this._tracks[o];if(!(!a||a.isFinished())){var s=a.keyframes,l=s[n?0:s.length-1];l&&(t[o]=Yv(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||lr(t);for(var n=0;n<r.length;n++){var i=r[n],o=this._tracks[i];if(o){var a=o.keyframes;if(a.length>1){var s=a.pop();o.addKeyframe(s.time,t[i]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},e}(),Uo=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!t)return this;var a=this._$eventProcessor;r!=null&&a&&a.normalizeQuery&&(r=a.normalizeQuery(r)),o[t]||(o[t]=[]);for(var s=0;s<o[t].length;s++)if(o[t][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},c=o[t].length-1,f=o[t][c];return f&&f.callAtLast?o[t].splice(c,0,l):o[t].push(l),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(r){if(n[t]){for(var i=[],o=0,a=n[t].length;o<a;o++)n[t][o].h!==r&&i.push(n[t][o]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},e.prototype.trigger=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var a=r.length,s=i.length,l=0;l<s;l++){var c=i[l];if(!(o&&o.filter&&c.query!=null&&!o.filter(t,c.query)))switch(a){case 0:c.h.call(c.ctx);break;case 1:c.h.call(c.ctx,r[0]);break;case 2:c.h.call(c.ctx,r[0],r[1]);break;default:c.h.apply(c.ctx,r);break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],o=this._$eventProcessor;if(i)for(var a=r.length,s=r[a-1],l=i.length,c=0;c<l;c++){var f=i[c];if(!(o&&o.filter&&f.query!=null&&!o.filter(t,f.query)))switch(a){case 0:f.h.call(s);break;case 1:f.h.call(s,r[0]);break;case 2:f.h.call(s,r[0],r[1]);break;default:f.h.apply(s,r.slice(1,a-1));break}}return o&&o.afterTrigger&&o.afterTrigger(t),this},e}(),HO=1;ut.hasGlobalWindow&&(HO=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Eg=HO,Vb=.4,Ub="#333",Gb="#ccc",xre="#eee",Lo=1,Qv=2,ed=4,j1="__zr_normal__",H1=Jd.concat(["ignore"]),bre=xc(Jd,function(e,t){return e[t]=!0,e},{ignore:!1}),bu={},_re=new jt(0,0,0,0),zm=function(){function e(t){this.id=_O(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,o=r.innerTransformable,a=void 0,s=void 0,l=!1;o.parent=i?this:null;var c=!1;if(o.copyTransform(r),n.position!=null){var f=_re;n.layoutRect?f.copy(n.layoutRect):f.copy(this.getBoundingRect()),i||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(bu,n,f):MO(bu,n,f),o.x=bu.x,o.y=bu.y,a=bu.align,s=bu.verticalAlign;var p=n.origin;if(p&&n.rotation!=null){var v=void 0,h=void 0;p==="center"?(v=f.width*.5,h=f.height*.5):(v=Ll(p[0],f.width),h=Ll(p[1],f.height)),c=!0,o.originX=-o.x+v+(i?0:f.x),o.originY=-o.y+h+(i?0:f.y)}}n.rotation!=null&&(o.rotation=n.rotation);var g=n.offset;g&&(o.x+=g[0],o.y+=g[1],c||(o.originX=-g[0],o.originY=-g[1]));var x=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),b=void 0,S=void 0,_=void 0;x&&this.canBeInsideText()?(b=n.insideFill,S=n.insideStroke,(b==null||b==="auto")&&(b=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(b),_=!0)):(b=n.outsideFill,S=n.outsideStroke,(b==null||b==="auto")&&(b=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(b),_=!0)),b=b||"#000",(b!==y.fill||S!==y.stroke||_!==y.autoStroke||a!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=b,y.stroke=S,y.autoStroke=_,y.align=a,y.verticalAlign=s,r.setDefaultTextStyle(y)),r.__dirty|=Lo,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Gb:Ub},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&pa(r);n||(n=[255,255,255,1]);for(var i=n[3],o=this.__zr.isDarkMode(),a=0;a<3;a++)n[a]=n[a]*i+(o?0:255)*(1-i);return n[3]=1,Nm(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},Ie(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(rt(t))for(var n=t,i=lr(n),o=0;o<i.length;o++){var a=i[o];this.attrKV(a,t[a])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,n=0;n<this.animators.length;n++){var i=this.animators[n],o=i.__fromStateTransition;if(!(i.getLoop()||o&&o!==j1)){var a=i.targetName,s=a?r[a]:r;i.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,H1)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var i=0;i<n.length;i++){var o=n[i];t[o]!=null&&!(o in r)&&(r[o]=this[o])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(j1,!1,t)},e.prototype.useState=function(t,r,n,i){var o=t===j1,a=this.hasState();if(!(!a&&o)){var s=this.currentStates,l=this.stateTransition;if(!(qt(s,t)>=0&&(r||s.length===1))){var c;if(this.stateProxy&&!o&&(c=this.stateProxy(t)),c||(c=this.states&&this.states[t]),!c&&!o){iw("State "+t+" not exists.");return}o||this.saveCurrentToNormalState(c);var f=!!(c&&c.hoverLayer||i);f&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,c,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var p=this._textContent,v=this._textGuide;return p&&p.useState(t,r,n,f),v&&v.useState(t,r,n,f),o?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),c}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],o=this.currentStates,a=t.length,s=a===o.length;if(s){for(var l=0;l<a;l++)if(t[l]!==o[l]){s=!1;break}}if(s)return;for(var l=0;l<a;l++){var c=t[l],f=void 0;this.stateProxy&&(f=this.stateProxy(c,t)),f||(f=this.states[c]),f&&i.push(f)}var p=i[a-1],v=!!(p&&p.hoverLayer||n);v&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),g=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!r&&!this.__inHover&&g&&g.duration>0,g);var x=this._textContent,y=this._textGuide;x&&x.useStates(t,r,v),y&&y.useStates(t,r,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=qt(this.currentStates,t);if(r>=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),o=qt(i,t),a=qt(i,r)>=0;o>=0?a?i.splice(o,1):i[o]=r:n&&!a&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i<t.length;i++){var o=t[i];Ie(r,o),o.textConfig&&(n=n||{},Ie(n,o.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,i,o,a){var s=!(r&&i);r&&r.textConfig?(this.textConfig=Ie({},i?this.textConfig:n.textConfig),Ie(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},c=!1,f=0;f<H1.length;f++){var p=H1[f],v=o&&bre[p];r&&r[p]!=null?v?(c=!0,l[p]=r[p]):this[p]=r[p]:s&&n[p]!=null&&(v?(c=!0,l[p]=n[p]):this[p]=n[p])}if(!o)for(var f=0;f<this.animators.length;f++){var h=this.animators[f],g=h.targetName;h.getLoop()||h.__changeFinalValue(g?(r||n)[g]:r||n)}c&&this._transitionState(t,l,a)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new dw,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Ie(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=Lo;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,n=this._textGuide;r&&(r.__inHover=t),n&&(n.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.addAnimator(r[n]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var r=this.animators;if(r)for(var n=0;n<r.length;n++)t.animation.removeAnimator(r[n]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,n){var i=t?this[t]:this,o=new pw(i,r,n);return t&&(o.targetName=t),this.addAnimator(o,t),o},e.prototype.addAnimator=function(t,r){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(r)}).done(function(){var o=i.animators,a=qt(o,t);a>=0&&o.splice(a,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,o=[],a=0;a<i;a++){var s=n[a];!t||t===s.scope?s.stop(r):o.push(s)}return this.animators=o,this},e.prototype.animateTo=function(t,r,n){W1(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){W1(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var o=W1(this,r,n,i),a=0;a<o.length;a++)o[a].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=Lo;function r(n,i,o,a){Object.defineProperty(t,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[o]=l[0],this[a]=l[1],this[i]=l,s(this,l)}});function s(l,c){Object.defineProperty(c,0,{get:function(){return l[o]},set:function(f){l[o]=f}}),Object.defineProperty(c,1,{get:function(){return l[a]},set:function(f){l[a]=f}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();Vo(zm,Uo);Vo(zm,dw);function W1(e,t,r,n,i){r=r||{};var o=[];WO(e,"",e,t,r,n,o,i);var a=o.length,s=!1,l=r.done,c=r.aborted,f=function(){s=!0,a--,a<=0&&(s?l&&l():c&&c())},p=function(){a--,a<=0&&(s?l&&l():c&&c())};a||l&&l(),o.length>0&&r.during&&o[0].during(function(g,x){r.during(x)});for(var v=0;v<o.length;v++){var h=o[v];f&&h.done(f),p&&h.aborted(p),r.force&&h.duration(r.duration),h.start(r.easing)}return o}function V1(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function Sre(e){return Hn(e[0])}function wre(e,t,r){if(Hn(t[r]))if(Hn(e[r])||(e[r]=[]),Wn(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),V1(e[r],t[r],n))}else{var i=t[r],o=e[r],a=i.length;if(Sre(i))for(var s=i[0].length,l=0;l<a;l++)o[l]?V1(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else V1(o,i,a);o.length=i.length}else e[r]=t[r]}function Cre(e,t){return e===t||Hn(e)&&Hn(t)&&Tre(e,t)}function Tre(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++)if(e[n]!==t[n])return!1;return!0}function WO(e,t,r,n,i,o,a,s){for(var l=lr(n),c=i.duration,f=i.delay,p=i.additive,v=i.setToFinal,h=!rt(o),g=e.animators,x=[],y=0;y<l.length;y++){var b=l[y],S=n[b];if(S!=null&&r[b]!=null&&(h||o[b]))if(rt(S)&&!Hn(S)&&!Am(S)){if(t){s||(r[b]=S,e.updateDuringAnimation(t));continue}WO(e,b,r[b],S,i,o&&o[b],a,s)}else x.push(b);else s||(r[b]=S,e.updateDuringAnimation(t),x.push(b))}var _=x.length;if(!p&&_)for(var C=0;C<g.length;C++){var k=g[C];if(k.targetName===t){var T=k.stopTracks(x);if(T){var E=qt(g,k);g.splice(E,1)}}}if(i.force||(x=hn(x,function(L){return!Cre(n[L],r[L])}),_=x.length),_>0||i.force&&!a.length){var I=void 0,D=void 0,A=void 0;if(s){D={},v&&(I={});for(var C=0;C<_;C++){var b=x[C];D[b]=r[b],v?I[b]=n[b]:r[b]=n[b]}}else if(v){A={};for(var C=0;C<_;C++){var b=x[C];A[b]=Yv(r[b]),wre(r,n,b)}}var k=new pw(r,!1,!1,p?hn(g,function($){return $.targetName===t}):null);k.targetName=t,i.scope&&(k.scope=i.scope),v&&I&&k.whenWithKeys(0,I,x),A&&k.whenWithKeys(0,A,x),k.whenWithKeys(c??500,s?D:n,x).delay(f||0),e.addAnimator(k,t),a.push(k)}}var qb="__zr_style_"+Math.round(Math.random()*10),wl={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},$m={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};wl[qb]=!0;var cP=["z","z2","invisible"],kre=["invisible"],Mp=function(e){$e(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=lr(r),i=0;i<n.length;i++){var o=n[i];o==="style"?this.useStyle(r[o]):e.prototype.attrKV.call(this,o,r[o])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,n,i,o){var a=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&Rre(this,r,n)||a&&!a[0]&&!a[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(o&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},t.prototype.contain=function(r,n){return this.rectContain(r,n)},t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.rectContain=function(r,n){var i=this.transformCoordToLocal(r,n),o=this.getBoundingRect();return o.contain(i[0],i[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var n=this.transform,i=this.getBoundingRect(),o=this.style,a=o.shadowBlur||0,s=o.shadowOffsetX||0,l=o.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new jt(0,0,0,0)),n?jt.applyTransform(r,i,n):r.copy(i),(a||s||l)&&(r.width+=a*2+Math.abs(s),r.height+=a*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-a),r.y=Math.min(r.y,r.y+l-a));var c=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-c),r.y=Math.floor(r.y-c),r.width=Math.ceil(r.width+1+c*2),r.height=Math.ceil(r.height+1+c*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new jt(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,n){r!=="style"?e.prototype.attrKV.call(this,r,n):this.style?this.setStyle(n):this.useStyle(n)},t.prototype.setStyle=function(r,n){return typeof r=="string"?this.style[r]=n:Ie(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=Qv,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Qv)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(r){return Dm(wl,r)},t.prototype.useStyle=function(r){r[qb]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[qb]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.style&&!n.style&&(n.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,n,cP)},t.prototype._applyStateObj=function(r,n,i,o,a,s){e.prototype._applyStateObj.call(this,r,n,i,o,a,s);var l=!(n&&o),c;if(n&&n.style?a?o?c=n.style:(c=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(c,n.style)):(c=this._mergeStyle(this.createStyle(),o?this.style:i.style),this._mergeStyle(c,n.style)):l&&(c=i.style),c)if(a){var f=this.style;if(this.style=this.createStyle(l?{}:f),l)for(var p=lr(f),v=0;v<p.length;v++){var h=p[v];h in c&&(c[h]=c[h],this.style[h]=f[h])}for(var g=lr(c),v=0;v<g.length;v++){var h=g[v];this.style[h]=this.style[h]}this._transitionState(r,{style:c},s,this.getAnimationStyleProps())}else this.useStyle(c);for(var x=this.__inHover?kre:cP,v=0;v<x.length;v++){var h=x[v];n&&n[h]!=null?this[h]=n[h]:l&&i[h]!=null&&(this[h]=i[h])}},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,o=0;o<r.length;o++){var a=r[o];a.style&&(i=i||{},this._mergeStyle(i,a.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(r,n){return Ie(r,n),r},t.prototype.getAnimationStyleProps=function(){return $m},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=Lo|Qv}(),t}(zm),U1=new jt(0,0,0,0),G1=new jt(0,0,0,0);function Rre(e,t,r){return U1.copy(e.getBoundingRect()),e.transform&&U1.applyTransform(e.transform),G1.width=t,G1.height=r,!U1.intersect(G1)}var Ri=Math.min,Ei=Math.max,q1=Math.sin,Y1=Math.cos,qs=Math.PI*2,hv=bc(),vv=bc(),gv=bc();function fP(e,t,r,n,i,o){i[0]=Ri(e,r),i[1]=Ri(t,n),o[0]=Ei(e,r),o[1]=Ei(t,n)}var dP=[],pP=[];function Ere(e,t,r,n,i,o,a,s,l,c){var f=zO,p=Hr,v=f(e,r,i,a,dP);l[0]=1/0,l[1]=1/0,c[0]=-1/0,c[1]=-1/0;for(var h=0;h<v;h++){var g=p(e,r,i,a,dP[h]);l[0]=Ri(g,l[0]),c[0]=Ei(g,c[0])}v=f(t,n,o,s,pP);for(var h=0;h<v;h++){var x=p(t,n,o,s,pP[h]);l[1]=Ri(x,l[1]),c[1]=Ei(x,c[1])}l[0]=Ri(e,l[0]),c[0]=Ei(e,c[0]),l[0]=Ri(a,l[0]),c[0]=Ei(a,c[0]),l[1]=Ri(t,l[1]),c[1]=Ei(t,c[1]),l[1]=Ri(s,l[1]),c[1]=Ei(s,c[1])}function Pre(e,t,r,n,i,o,a,s){var l=$O,c=An,f=Ei(Ri(l(e,r,i),1),0),p=Ei(Ri(l(t,n,o),1),0),v=c(e,r,i,f),h=c(t,n,o,p);a[0]=Ri(e,i,v),a[1]=Ri(t,o,h),s[0]=Ei(e,i,v),s[1]=Ei(t,o,h)}function Mre(e,t,r,n,i,o,a,s,l){var c=$u,f=Fu,p=Math.abs(i-o);if(p%qs<1e-4&&p>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(hv[0]=Y1(i)*r+e,hv[1]=q1(i)*n+t,vv[0]=Y1(o)*r+e,vv[1]=q1(o)*n+t,c(s,hv,vv),f(l,hv,vv),i=i%qs,i<0&&(i=i+qs),o=o%qs,o<0&&(o=o+qs),i>o&&!a?o+=qs:i<o&&a&&(i+=qs),a){var v=o;o=i,i=v}for(var h=0;h<o;h+=Math.PI/2)h>i&&(gv[0]=Y1(h)*r+e,gv[1]=q1(h)*n+t,c(s,gv,s),f(l,gv,l))}var Ft={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ys=[],Ks=[],go=[],Ga=[],mo=[],yo=[],K1=Math.min,X1=Math.max,Xs=Math.cos,Qs=Math.sin,oa=Math.abs,Yb=Math.PI,ts=Yb*2,Q1=typeof Float32Array<"u",Mf=[];function Z1(e){var t=Math.round(e/Yb*1e8)/1e8;return t%2*Yb}function Ire(e,t){var r=Z1(e[0]);r<0&&(r+=ts);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=ts?i=r+ts:t&&r-i>=ts?i=r-ts:!t&&r>i?i=r+(ts-Z1(r-i)):t&&r<i&&(i=r-(ts-Z1(i-r))),e[0]=r,e[1]=i}var Ol=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,n){n=n||0,n>0&&(this._ux=oa(n/Eg/t)||0,this._uy=oa(n/Eg/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(Ft.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=oa(t-this._xi),i=oa(r-this._yi),o=n>this._ux||i>this._uy;if(this.addData(Ft.L,t,r),this._ctx&&o&&this._ctx.lineTo(t,r),o)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var a=n*n+i*i;a>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=a)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,o,a){return this._drawPendingPt(),this.addData(Ft.C,t,r,n,i,o,a),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,o,a),this._xi=o,this._yi=a,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(Ft.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,o,a){this._drawPendingPt(),Mf[0]=i,Mf[1]=o,Ire(Mf,a),i=Mf[0],o=Mf[1];var s=o-i;return this.addData(Ft.A,t,r,n,n,i,s,0,a?0:1),this._ctx&&this._ctx.arc(t,r,n,i,o,a),this._xi=Xs(o)*n+t,this._yi=Qs(o)*n+r,this},e.prototype.arcTo=function(t,r,n,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,o),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(Ft.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ft.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Q1&&(this.data=new Float32Array(r));for(var n=0;n<r;n++)this.data[n]=t[n];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,n=0,i=this._len,o=0;o<r;o++)n+=t[o].len();Q1&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var o=0;o<r;o++)for(var a=t[o].data,s=0;s<a.length;s++)this.data[i++]=a[s];this._len=i},e.prototype.addData=function(t,r,n,i,o,a,s,l,c){if(this._saveData){var f=this.data;this._len+arguments.length>f.length&&(this._expandData(),f=this.data);for(var p=0;p<arguments.length;p++)f[this._len++]=arguments[p]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Q1&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){go[0]=go[1]=mo[0]=mo[1]=Number.MAX_VALUE,Ga[0]=Ga[1]=yo[0]=yo[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,o=0,a;for(a=0;a<this._len;){var s=t[a++],l=a===1;switch(l&&(r=t[a],n=t[a+1],i=r,o=n),s){case Ft.M:r=i=t[a++],n=o=t[a++],mo[0]=i,mo[1]=o,yo[0]=i,yo[1]=o;break;case Ft.L:fP(r,n,t[a],t[a+1],mo,yo),r=t[a++],n=t[a++];break;case Ft.C:Ere(r,n,t[a++],t[a++],t[a++],t[a++],t[a],t[a+1],mo,yo),r=t[a++],n=t[a++];break;case Ft.Q:Pre(r,n,t[a++],t[a++],t[a],t[a+1],mo,yo),r=t[a++],n=t[a++];break;case Ft.A:var c=t[a++],f=t[a++],p=t[a++],v=t[a++],h=t[a++],g=t[a++]+h;a+=1;var x=!t[a++];l&&(i=Xs(h)*p+c,o=Qs(h)*v+f),Mre(c,f,p,v,h,g,x,mo,yo),r=Xs(g)*p+c,n=Qs(g)*v+f;break;case Ft.R:i=r=t[a++],o=n=t[a++];var y=t[a++],b=t[a++];fP(i,o,i+y,o+b,mo,yo);break;case Ft.Z:r=i,n=o;break}$u(go,go,mo),Fu(Ga,Ga,yo)}return a===0&&(go[0]=go[1]=Ga[0]=Ga[1]=0),new jt(go[0],go[1],Ga[0]-go[0],Ga[1]-go[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,i=this._uy,o=0,a=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var c=this._pathSegLen,f=0,p=0,v=0;v<r;){var h=t[v++],g=v===1;g&&(o=t[v],a=t[v+1],s=o,l=a);var x=-1;switch(h){case Ft.M:o=s=t[v++],a=l=t[v++];break;case Ft.L:{var y=t[v++],b=t[v++],S=y-o,_=b-a;(oa(S)>n||oa(_)>i||v===r-1)&&(x=Math.sqrt(S*S+_*_),o=y,a=b);break}case Ft.C:{var C=t[v++],k=t[v++],y=t[v++],b=t[v++],T=t[v++],E=t[v++];x=ore(o,a,C,k,y,b,T,E,10),o=T,a=E;break}case Ft.Q:{var C=t[v++],k=t[v++],y=t[v++],b=t[v++];x=lre(o,a,C,k,y,b,10),o=y,a=b;break}case Ft.A:var I=t[v++],D=t[v++],A=t[v++],L=t[v++],$=t[v++],B=t[v++],j=B+$;v+=1,g&&(s=Xs($)*A+I,l=Qs($)*L+D),x=X1(A,L)*K1(ts,Math.abs(B)),o=Xs(j)*A+I,a=Qs(j)*L+D;break;case Ft.R:{s=o=t[v++],l=a=t[v++];var W=t[v++],q=t[v++];x=W*2+q*2;break}case Ft.Z:{var S=s-o,_=l-a;x=Math.sqrt(S*S+_*_),o=s,a=l;break}}x>=0&&(c[p++]=x,f+=x)}return this._pathLen=f,f},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,o=this._uy,a=this._len,s,l,c,f,p,v,h=r<1,g,x,y=0,b=0,S,_=0,C,k;if(!(h&&(this._pathSegLen||this._calculateLength(),g=this._pathSegLen,x=this._pathLen,S=r*x,!S)))e:for(var T=0;T<a;){var E=n[T++],I=T===1;switch(I&&(c=n[T],f=n[T+1],s=c,l=f),E!==Ft.L&&_>0&&(t.lineTo(C,k),_=0),E){case Ft.M:s=c=n[T++],l=f=n[T++],t.moveTo(c,f);break;case Ft.L:{p=n[T++],v=n[T++];var D=oa(p-c),A=oa(v-f);if(D>i||A>o){if(h){var L=g[b++];if(y+L>S){var $=(S-y)/L;t.lineTo(c*(1-$)+p*$,f*(1-$)+v*$);break e}y+=L}t.lineTo(p,v),c=p,f=v,_=0}else{var B=D*D+A*A;B>_&&(C=p,k=v,_=B)}break}case Ft.C:{var j=n[T++],W=n[T++],q=n[T++],Z=n[T++],V=n[T++],G=n[T++];if(h){var L=g[b++];if(y+L>S){var $=(S-y)/L;Tg(c,j,q,V,$,Ys),Tg(f,W,Z,G,$,Ks),t.bezierCurveTo(Ys[1],Ks[1],Ys[2],Ks[2],Ys[3],Ks[3]);break e}y+=L}t.bezierCurveTo(j,W,q,Z,V,G),c=V,f=G;break}case Ft.Q:{var j=n[T++],W=n[T++],q=n[T++],Z=n[T++];if(h){var L=g[b++];if(y+L>S){var $=(S-y)/L;kg(c,j,q,$,Ys),kg(f,W,Z,$,Ks),t.quadraticCurveTo(Ys[1],Ks[1],Ys[2],Ks[2]);break e}y+=L}t.quadraticCurveTo(j,W,q,Z),c=q,f=Z;break}case Ft.A:var N=n[T++],U=n[T++],Q=n[T++],H=n[T++],oe=n[T++],ve=n[T++],te=n[T++],ge=!n[T++],de=Q>H?Q:H,xe=oa(Q-H)>.001,Me=oe+ve,ue=!1;if(h){var L=g[b++];y+L>S&&(Me=oe+ve*(S-y)/L,ue=!0),y+=L}if(xe&&t.ellipse?t.ellipse(N,U,Q,H,te,oe,Me,ge):t.arc(N,U,de,oe,Me,ge),ue)break e;I&&(s=Xs(oe)*Q+N,l=Qs(oe)*H+U),c=Xs(Me)*Q+N,f=Qs(Me)*H+U;break;case Ft.R:s=c=n[T],l=f=n[T+1],p=n[T++],v=n[T++];var Te=n[T++],Oe=n[T++];if(h){var L=g[b++];if(y+L>S){var Ae=S-y;t.moveTo(p,v),t.lineTo(p+K1(Ae,Te),v),Ae-=Te,Ae>0&&t.lineTo(p+Te,v+K1(Ae,Oe)),Ae-=Oe,Ae>0&&t.lineTo(p+X1(Te-Ae,0),v+Oe),Ae-=Te,Ae>0&&t.lineTo(p,v+X1(Oe-Ae,0));break e}y+=L}t.rect(p,v,Te,Oe);break;case Ft.Z:if(h){var L=g[b++];if(y+L>S){var $=(S-y)/L;t.lineTo(c*(1-$)+s*$,f*(1-$)+l*$);break e}y+=L}t.closePath(),c=s,f=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=Ft,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function _u(e,t,r,n,i,o,a){if(i===0)return!1;var s=i,l=0,c=e;if(a>t+s&&a>n+s||a<t-s&&a<n-s||o>e+s&&o>r+s||o<e-s&&o<r-s)return!1;if(e!==r)l=(t-n)/(e-r),c=(e*n-r*t)/(e-r);else return Math.abs(o-e)<=s/2;var f=l*o-a+c,p=f*f/(l*l+1);return p<=s/2*s/2}function Are(e,t,r,n,i,o,a,s,l,c,f){if(l===0)return!1;var p=l;if(f>t+p&&f>n+p&&f>o+p&&f>s+p||f<t-p&&f<n-p&&f<o-p&&f<s-p||c>e+p&&c>r+p&&c>i+p&&c>a+p||c<e-p&&c<r-p&&c<i-p&&c<a-p)return!1;var v=ire(e,t,r,n,i,o,a,s,c,f);return v<=p/2}function Dre(e,t,r,n,i,o,a,s,l){if(a===0)return!1;var c=a;if(l>t+c&&l>n+c&&l>o+c||l<t-c&&l<n-c&&l<o-c||s>e+c&&s>r+c&&s>i+c||s<e-c&&s<r-c&&s<i-c)return!1;var f=sre(e,t,r,n,i,o,s,l);return f<=c/2}var hP=Math.PI*2;function mv(e){return e%=hP,e<0&&(e+=hP),e}var If=Math.PI*2;function Lre(e,t,r,n,i,o,a,s,l){if(a===0)return!1;var c=a;s-=e,l-=t;var f=Math.sqrt(s*s+l*l);if(f-c>r||f+c<r)return!1;if(Math.abs(n-i)%If<1e-4)return!0;if(o){var p=n;n=mv(i),i=mv(p)}else n=mv(n),i=mv(i);n>i&&(i+=If);var v=Math.atan2(l,s);return v<0&&(v+=If),v>=n&&v<=i||v+If>=n&&v+If<=i}function Zs(e,t,r,n,i,o){if(o>t&&o>n||o<t&&o<n||n===t)return 0;var a=(o-t)/(n-t),s=n<t?1:-1;(a===1||a===0)&&(s=n<t?.5:-.5);var l=a*(r-e)+e;return l===i?1/0:l>i?s:0}var qa=Ol.CMD,Js=Math.PI*2,Ore=1e-4;function Nre(e,t){return Math.abs(e-t)<Ore}var pn=[-1,-1,-1],Si=[-1,-1];function zre(){var e=Si[0];Si[0]=Si[1],Si[1]=e}function $re(e,t,r,n,i,o,a,s,l,c){if(c>t&&c>n&&c>o&&c>s||c<t&&c<n&&c<o&&c<s)return 0;var f=Cg(t,n,o,s,c,pn);if(f===0)return 0;for(var p=0,v=-1,h=void 0,g=void 0,x=0;x<f;x++){var y=pn[x],b=y===0||y===1?.5:1,S=Hr(e,r,i,a,y);S<l||(v<0&&(v=zO(t,n,o,s,Si),Si[1]<Si[0]&&v>1&&zre(),h=Hr(t,n,o,s,Si[0]),v>1&&(g=Hr(t,n,o,s,Si[1]))),v===2?y<Si[0]?p+=h<t?b:-b:y<Si[1]?p+=g<h?b:-b:p+=s<g?b:-b:y<Si[0]?p+=h<t?b:-b:p+=s<h?b:-b)}return p}function Fre(e,t,r,n,i,o,a,s){if(s>t&&s>n&&s>o||s<t&&s<n&&s<o)return 0;var l=are(t,n,o,s,pn);if(l===0)return 0;var c=$O(t,n,o);if(c>=0&&c<=1){for(var f=0,p=An(t,n,o,c),v=0;v<l;v++){var h=pn[v]===0||pn[v]===1?.5:1,g=An(e,r,i,pn[v]);g<a||(pn[v]<c?f+=p<t?h:-h:f+=o<p?h:-h)}return f}else{var h=pn[0]===0||pn[0]===1?.5:1,g=An(e,r,i,pn[0]);return g<a?0:o<t?h:-h}}function Bre(e,t,r,n,i,o,a,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);pn[0]=-l,pn[1]=l;var c=Math.abs(n-i);if(c<1e-4)return 0;if(c>=Js-1e-4){n=0,i=Js;var f=o?1:-1;return a>=pn[0]+e&&a<=pn[1]+e?f:0}if(n>i){var p=n;n=i,i=p}n<0&&(n+=Js,i+=Js);for(var v=0,h=0;h<2;h++){var g=pn[h];if(g+e>a){var x=Math.atan2(s,g),f=o?1:-1;x<0&&(x=Js+x),(x>=n&&x<=i||x+Js>=n&&x+Js<=i)&&(x>Math.PI/2&&x<Math.PI*1.5&&(f=-f),v+=f)}}return v}function VO(e,t,r,n,i){for(var o=e.data,a=e.len(),s=0,l=0,c=0,f=0,p=0,v,h,g=0;g<a;){var x=o[g++],y=g===1;switch(x===qa.M&&g>1&&(r||(s+=Zs(l,c,f,p,n,i))),y&&(l=o[g],c=o[g+1],f=l,p=c),x){case qa.M:f=o[g++],p=o[g++],l=f,c=p;break;case qa.L:if(r){if(_u(l,c,o[g],o[g+1],t,n,i))return!0}else s+=Zs(l,c,o[g],o[g+1],n,i)||0;l=o[g++],c=o[g++];break;case qa.C:if(r){if(Are(l,c,o[g++],o[g++],o[g++],o[g++],o[g],o[g+1],t,n,i))return!0}else s+=$re(l,c,o[g++],o[g++],o[g++],o[g++],o[g],o[g+1],n,i)||0;l=o[g++],c=o[g++];break;case qa.Q:if(r){if(Dre(l,c,o[g++],o[g++],o[g],o[g+1],t,n,i))return!0}else s+=Fre(l,c,o[g++],o[g++],o[g],o[g+1],n,i)||0;l=o[g++],c=o[g++];break;case qa.A:var b=o[g++],S=o[g++],_=o[g++],C=o[g++],k=o[g++],T=o[g++];g+=1;var E=!!(1-o[g++]);v=Math.cos(k)*_+b,h=Math.sin(k)*C+S,y?(f=v,p=h):s+=Zs(l,c,v,h,n,i);var I=(n-b)*C/_+b;if(r){if(Lre(b,S,C,k,k+T,E,t,I,i))return!0}else s+=Bre(b,S,C,k,k+T,E,I,i);l=Math.cos(k+T)*_+b,c=Math.sin(k+T)*C+S;break;case qa.R:f=l=o[g++],p=c=o[g++];var D=o[g++],A=o[g++];if(v=f+D,h=p+A,r){if(_u(f,p,v,p,t,n,i)||_u(v,p,v,h,t,n,i)||_u(v,h,f,h,t,n,i)||_u(f,h,f,p,t,n,i))return!0}else s+=Zs(v,p,v,h,n,i),s+=Zs(f,h,f,p,n,i);break;case qa.Z:if(r){if(_u(l,c,f,p,t,n,i))return!0}else s+=Zs(l,c,f,p,n,i);l=f,c=p;break}}return!r&&!Nre(c,p)&&(s+=Zs(l,c,f,p,n,i)||0),s!==0}function jre(e,t,r){return VO(e,0,!1,t,r)}function Hre(e,t,r,n){return VO(e,t,!0,r,n)}var UO=Gt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},wl),Wre={style:Gt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},$m.style)},J1=Jd.concat(["invisible","culling","z","z2","zlevel","parent"]),Kt=function(e){$e(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var o=i.style;for(var a in n)o[a]!==n[a]&&(o[a]=n[a]);o.fill=n.fill?n.decal:null,o.decal=null,o.shadowColor=null,n.strokeFirst&&(o.stroke=null);for(var s=0;s<J1.length;++s)i[J1[s]]=this[J1[s]];i.__dirty|=Lo}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=lr(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var o=0;o<n.length;o++){var a=n[o],s=r[a];a==="style"?this.style?Ie(this.style,s):this.useStyle(s):a==="shape"?Ie(this.shape,s):e.prototype.attrKV.call(this,a,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(qe(r)){var n=Rg(r,0);return n>.5?Ub:n>.2?xre:Gb}else if(r)return Gb}return Ub},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(qe(n)){var i=this.__zr,o=!!(i&&i.isDarkMode()),a=Rg(r,0)<Vb;if(o===a)return n}},t.prototype.buildPath=function(r,n,i){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new Ol(!1)},t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return!(n==null||n==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var o=!1;this.path||(o=!0,this.createPathProxy());var a=this.path;(o||this.__dirty&ed)&&(a.beginPath(),this.buildPath(a,this.shape,!1),this.pathUpdated()),r=a.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,c=n.lineWidth;if(!this.hasFill()){var f=this.strokeContainThreshold;c=Math.max(c,f??4)}l>1e-10&&(s.width+=c/l,s.height+=c/l,s.x-=c/l/2,s.y-=c/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),o=this.getBoundingRect(),a=this.style;if(r=i[0],n=i[1],o.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=a.lineWidth,c=a.strokeNoScale?this.getLineScale():1;if(c>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),Hre(s,l/c,r,n)))return!0}if(this.hasFill())return jre(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=ed,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:Ie(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&ed)},t.prototype.createStyle=function(r){return Dm(UO,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=Ie({},this.shape))},t.prototype._applyStateObj=function(r,n,i,o,a,s){e.prototype._applyStateObj.call(this,r,n,i,o,a,s);var l=!(n&&o),c;if(n&&n.shape?a?o?c=n.shape:(c=Ie({},i.shape),Ie(c,n.shape)):(c=Ie({},o?this.shape:i.shape),Ie(c,n.shape)):l&&(c=i.shape),c)if(a){this.shape=Ie({},this.shape);for(var f={},p=lr(c),v=0;v<p.length;v++){var h=p[v];typeof c[h]=="object"?this.shape[h]=c[h]:f[h]=c[h]}this._transitionState(r,{shape:f},s)}else this.shape=c,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,o=0;o<r.length;o++){var a=r[o];a.shape&&(i=i||{},this._mergeStyle(i,a.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return Wre},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(o){$e(a,o);function a(s){var l=o.call(this,s)||this;return r.init&&r.init.call(l,s),l}return a.prototype.getDefaultStyle=function(){return Rt(r.style)},a.prototype.getDefaultShape=function(){return Rt(r.shape)},a}(t);for(var i in r)typeof r[i]=="function"&&(n.prototype[i]=r[i]);return n},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=Lo|Qv|ed}(),t}(Mp),Vre=Gt({strokeFirst:!0,font:Dl,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},UO),Pg=function(e){$e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,n=r.stroke;return n!=null&&n!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return Dm(Vre,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=cw(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var o=r.lineWidth;i.x-=o/2,i.y-=o/2,i.width+=o,i.height+=o}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(Mp);Pg.prototype.type="tspan";var Ure=Gt({x:0,y:0},wl),Gre={style:Gt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},$m.style)};function qre(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var ks=function(e){$e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Dm(Ure,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var o=qre(n.image)?n.image:this.__image;if(!o)return 0;var a=r==="width"?"height":"width",s=n[a];return s==null?o[r]:o[r]/o[a]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Gre},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new jt(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Mp);ks.prototype.type="image";function Yre(e,t){var r=t.x,n=t.y,i=t.width,o=t.height,a=t.r,s,l,c,f;i<0&&(r=r+i,i=-i),o<0&&(n=n+o,o=-o),typeof a=="number"?s=l=c=f=a:a instanceof Array?a.length===1?s=l=c=f=a[0]:a.length===2?(s=c=a[0],l=f=a[1]):a.length===3?(s=a[0],l=f=a[1],c=a[2]):(s=a[0],l=a[1],c=a[2],f=a[3]):s=l=c=f=0;var p;s+l>i&&(p=s+l,s*=i/p,l*=i/p),c+f>i&&(p=c+f,c*=i/p,f*=i/p),l+c>o&&(p=l+c,l*=o/p,c*=o/p),s+f>o&&(p=s+f,s*=o/p,f*=o/p),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+o-c),c!==0&&e.arc(r+i-c,n+o-c,c,0,Math.PI/2),e.lineTo(r+f,n+o),f!==0&&e.arc(r+f,n+o-f,f,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var Bu=Math.round;function GO(e,t,r){if(t){var n=t.x1,i=t.x2,o=t.y1,a=t.y2;e.x1=n,e.x2=i,e.y1=o,e.y2=a;var s=r&&r.lineWidth;return s&&(Bu(n*2)===Bu(i*2)&&(e.x1=e.x2=yl(n,s,!0)),Bu(o*2)===Bu(a*2)&&(e.y1=e.y2=yl(o,s,!0))),e}}function qO(e,t,r){if(t){var n=t.x,i=t.y,o=t.width,a=t.height;e.x=n,e.y=i,e.width=o,e.height=a;var s=r&&r.lineWidth;return s&&(e.x=yl(n,s,!0),e.y=yl(i,s,!0),e.width=Math.max(yl(n+o,s,!1)-e.x,o===0?0:1),e.height=Math.max(yl(i+a,s,!1)-e.y,a===0?0:1)),e}}function yl(e,t,r){if(!t)return e;var n=Bu(e*2);return(n+Bu(t))%2===0?n/2:(n+(r?1:-1))/2}var Kre=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Xre={},zr=function(e){$e(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Kre},t.prototype.buildPath=function(r,n){var i,o,a,s;if(this.subPixelOptimize){var l=qO(Xre,n,this.style);i=l.x,o=l.y,a=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,o=n.y,a=n.width,s=n.height;n.r?Yre(r,n):r.rect(i,o,a,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Kt);zr.prototype.type="rect";var vP={fill:"#000"},gP=2,Qre={style:Gt({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},$m.style)},tn=function(e){$e(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=vP,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var n=this._children[r];n.zlevel=this.zlevel,n.z=this.z,n.z2=this.z2,n.culling=this.culling,n.cursor=this.cursor,n.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var n=this.innerTransformable;return n?n.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,rne(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++)this._children[n].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new jt(0,0,0,0),n=this._children,i=[],o=null,a=0;a<n.length;a++){var s=n[a],l=s.getBoundingRect(),c=s.getLocalTransform(i);c?(r.copy(l),r.applyTransform(c),o=o||r.clone(),o.union(r)):(o=o||l.clone(),o.union(l))}this._rect=o||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||vP},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,o=r.rich||i&&{};return Ie(r,n),i&&o?(this._mergeRich(o,i),r.rich=o):o&&(r.rich=o),r},t.prototype._mergeRich=function(r,n){for(var i=lr(n),o=0;o<i.length;o++){var a=i[o];r[a]=r[a]||{},Ie(r[a],n[a])}},t.prototype.getAnimationStyleProps=function(){return Qre},t.prototype._getOrCreateChild=function(r){var n=this._children[this._childCursor];return(!n||!(n instanceof r))&&(n=new r),this._children[this._childCursor++]=n,n.__zr=this.__zr,n.parent=this,n},t.prototype._updatePlainTexts=function(){var r=this.style,n=r.font||Dl,i=r.padding,o=wP(r),a=Hte(o,r),s=ex(r),l=!!r.backgroundColor,c=a.outerHeight,f=a.outerWidth,p=a.contentWidth,v=a.lines,h=a.lineHeight,g=this._defaultStyle,x=r.x||0,y=r.y||0,b=r.align||g.align||"left",S=r.verticalAlign||g.verticalAlign||"top",_=x,C=Ou(y,a.contentHeight,S);if(s||i){var k=Zf(x,f,b),T=Ou(y,c,S);s&&this._renderBackground(r,r,k,T,f,c)}C+=h/2,i&&(_=SP(x,b,i),S==="top"?C+=i[0]:S==="bottom"&&(C-=i[2]));for(var E=0,I=!1,D=_P("fill"in r?r.fill:(I=!0,g.fill)),A=bP("stroke"in r?r.stroke:!l&&(!g.autoStroke||I)?(E=gP,g.stroke):null),L=r.textShadowBlur>0,$=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),B=a.calculatedLineHeight,j=0;j<v.length;j++){var W=this._getOrCreateChild(Pg),q=W.createStyle();W.useStyle(q),q.text=v[j],q.x=_,q.y=C,q.textAlign=b,q.textBaseline="middle",q.opacity=r.opacity,q.strokeFirst=!0,L&&(q.shadowBlur=r.textShadowBlur||0,q.shadowColor=r.textShadowColor||"transparent",q.shadowOffsetX=r.textShadowOffsetX||0,q.shadowOffsetY=r.textShadowOffsetY||0),q.stroke=A,q.fill=D,A&&(q.lineWidth=r.lineWidth||E,q.lineDash=r.lineDash,q.lineDashOffset=r.lineDashOffset||0),q.font=n,yP(q,r),C+=h,$&&W.setBoundingRect(new jt(Zf(q.x,r.width,q.textAlign),Ou(q.y,B,q.textBaseline),p,B))}},t.prototype._updateRichTexts=function(){var r=this.style,n=wP(r),i=Ute(n,r),o=i.width,a=i.outerWidth,s=i.outerHeight,l=r.padding,c=r.x||0,f=r.y||0,p=this._defaultStyle,v=r.align||p.align,h=r.verticalAlign||p.verticalAlign,g=Zf(c,a,v),x=Ou(f,s,h),y=g,b=x;l&&(y+=l[3],b+=l[0]);var S=y+o;ex(r)&&this._renderBackground(r,r,g,x,a,s);for(var _=!!r.backgroundColor,C=0;C<i.lines.length;C++){for(var k=i.lines[C],T=k.tokens,E=T.length,I=k.lineHeight,D=k.width,A=0,L=y,$=S,B=E-1,j=void 0;A<E&&(j=T[A],!j.align||j.align==="left");)this._placeToken(j,r,I,b,L,"left",_),D-=j.width,L+=j.width,A++;for(;B>=0&&(j=T[B],j.align==="right");)this._placeToken(j,r,I,b,$,"right",_),D-=j.width,$-=j.width,B--;for(L+=(o-(L-y)-(S-$)-D)/2;A<=B;)j=T[A],this._placeToken(j,r,I,b,L+j.width/2,"center",_),L+=j.width,A++;b+=I}},t.prototype._placeToken=function(r,n,i,o,a,s,l){var c=n.rich[r.styleName]||{};c.text=r.text;var f=r.verticalAlign,p=o+i/2;f==="top"?p=o+r.height/2:f==="bottom"&&(p=o+i-r.height/2);var v=!r.isLineHolder&&ex(c);v&&this._renderBackground(c,n,s==="right"?a-r.width:s==="center"?a-r.width/2:a,p-r.height/2,r.width,r.height);var h=!!c.backgroundColor,g=r.textPadding;g&&(a=SP(a,s,g),p-=r.height/2-g[0]-r.innerHeight/2);var x=this._getOrCreateChild(Pg),y=x.createStyle();x.useStyle(y);var b=this._defaultStyle,S=!1,_=0,C=_P("fill"in c?c.fill:"fill"in n?n.fill:(S=!0,b.fill)),k=bP("stroke"in c?c.stroke:"stroke"in n?n.stroke:!h&&!l&&(!b.autoStroke||S)?(_=gP,b.stroke):null),T=c.textShadowBlur>0||n.textShadowBlur>0;y.text=r.text,y.x=a,y.y=p,T&&(y.shadowBlur=c.textShadowBlur||n.textShadowBlur||0,y.shadowColor=c.textShadowColor||n.textShadowColor||"transparent",y.shadowOffsetX=c.textShadowOffsetX||n.textShadowOffsetX||0,y.shadowOffsetY=c.textShadowOffsetY||n.textShadowOffsetY||0),y.textAlign=s,y.textBaseline="middle",y.font=r.font||Dl,y.opacity=qv(c.opacity,n.opacity,1),yP(y,c),k&&(y.lineWidth=qv(c.lineWidth,n.lineWidth,_),y.lineDash=wt(c.lineDash,n.lineDash),y.lineDashOffset=n.lineDashOffset||0,y.stroke=k),C&&(y.fill=C);var E=r.contentWidth,I=r.contentHeight;x.setBoundingRect(new jt(Zf(y.x,E,y.textAlign),Ou(y.y,I,y.textBaseline),E,I))},t.prototype._renderBackground=function(r,n,i,o,a,s){var l=r.backgroundColor,c=r.borderWidth,f=r.borderColor,p=l&&l.image,v=l&&!p,h=r.borderRadius,g=this,x,y;if(v||r.lineHeight||c&&f){x=this._getOrCreateChild(zr),x.useStyle(x.createStyle()),x.style.fill=null;var b=x.shape;b.x=i,b.y=o,b.width=a,b.height=s,b.r=h,x.dirtyShape()}if(v){var S=x.style;S.fill=l||null,S.fillOpacity=wt(r.fillOpacity,1)}else if(p){y=this._getOrCreateChild(ks),y.onload=function(){g.dirtyStyle()};var _=y.style;_.image=l.image,_.x=i,_.y=o,_.width=a,_.height=s}if(c&&f){var S=x.style;S.lineWidth=c,S.stroke=f,S.strokeOpacity=wt(r.strokeOpacity,1),S.lineDash=r.borderDash,S.lineDashOffset=r.borderDashOffset||0,x.strokeContainThreshold=0,x.hasFill()&&x.hasStroke()&&(S.strokeFirst=!0,S.lineWidth*=2)}var C=(x||y).style;C.shadowBlur=r.shadowBlur||0,C.shadowColor=r.shadowColor||"transparent",C.shadowOffsetX=r.shadowOffsetX||0,C.shadowOffsetY=r.shadowOffsetY||0,C.opacity=qv(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return tne(r)&&(n=[r.fontStyle,r.fontWeight,ene(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Eo(n)||r.textFont||r.font},t}(Mp),Zre={left:!0,right:1,center:1},Jre={top:1,bottom:1,middle:1},mP=["fontStyle","fontWeight","fontSize","fontFamily"];function ene(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?tw+"px":e+"px"}function yP(e,t){for(var r=0;r<mP.length;r++){var n=mP[r],i=t[n];i!=null&&(e[n]=i)}}function tne(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function rne(e){return xP(e),X(e.rich,xP),e}function xP(e){if(e){e.font=tn.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||Zre[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||Jre[r]?r:"top";var n=e.padding;n&&(e.padding=SO(e.padding))}}function bP(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function _P(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function SP(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function wP(e){var t=e.text;return t!=null&&(t+=""),t}function ex(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var nne=1e-4,YO=20;function ine(e){return e.replace(/^\s+|\s+$/g,"")}function CP(e,t,r,n){var i=t[0],o=t[1],a=r[0],s=r[1],l=o-i,c=s-a;if(l===0)return c===0?a:(a+s)/2;if(n)if(l>0){if(e<=i)return a;if(e>=o)return s}else{if(e>=i)return a;if(e<=o)return s}else{if(e===i)return a;if(e===o)return s}return(e-i)/l*c+a}function vn(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return qe(e)?ine(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Tr(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),YO),e=(+e).toFixed(t),r?e:+e}function ca(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return one(e)}function one(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,o=t.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-n)}function ane(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),o=Math.round(r(Math.abs(t[1]-t[0]))/n),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function sne(e,t){var r=Math.max(ca(e),ca(t)),n=e+t;return r>YO?n:Tr(n,r)}function KO(e){var t=Math.PI*2;return(e%t+t)%t}function Mg(e){return e>-1e-4&&e<nne}var lne=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function ba(e){if(e instanceof Date)return e;if(qe(e)){var t=lne.exec(e);if(!t)return new Date(NaN);if(t[8]){var r=+t[4]||0;return t[8].toUpperCase()!=="Z"&&(r-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,r,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}else return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}else if(e==null)return new Date(NaN);return new Date(Math.round(e))}function une(e){return Math.pow(10,hw(e))}function hw(e){if(e===0)return 0;var t=Math.floor(Math.log(e)/Math.LN10);return e/Math.pow(10,t)>=10&&t++,t}function XO(e,t){var r=hw(e),n=Math.pow(10,r),i=e/n,o;return i<1.5?o=1:i<2.5?o=2:i<4?o=3:i<7?o=5:o=10,e=o*n,r>=-20?+e.toFixed(r<0?-r:0):e}function Ig(e){var t=parseFloat(e);return t==e&&(t!==0||!qe(e)||e.indexOf("x")<=0)?t:NaN}function cne(e){return!isNaN(Ig(e))}function QO(){return Math.round(Math.random()*9)}function ZO(e,t){return t===0?e:ZO(t,e%t)}function TP(e,t){return e==null?t:t==null?e:e*t/ZO(e,t)}function Dn(e){throw new Error(e)}function kP(e,t,r){return(t-e)*r+e}var JO="series\0",fne="\0_ec_\0";function yn(e){return e instanceof Array?e:e==null?[]:[e]}function RP(e,t,r){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var n=0,i=r.length;n<i;n++){var o=r[n];!e.emphasis[t].hasOwnProperty(o)&&e[t].hasOwnProperty(o)&&(e.emphasis[t][o]=e[t][o])}}}var EP=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function Ip(e){return rt(e)&&!Be(e)&&!(e instanceof Date)?e.value:e}function dne(e){return rt(e)&&!(e instanceof Array)}function pne(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",o=r==="replaceAll";e=e||[],t=(t||[]).slice();var a=yt();X(t,function(l,c){if(!rt(l)){t[c]=null;return}});var s=hne(e,a,r);return(n||i)&&vne(s,e,a,t),n&&gne(s,t),n||i?mne(s,t,i):o&&yne(s,t),xne(s),s}function hne(e,t,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<e.length;i++){var o=e[i];o&&o.id!=null&&t.set(o.id,i),n.push({existing:r==="replaceMerge"||ep(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return n}function vne(e,t,r,n){X(n,function(i,o){if(!(!i||i.id==null)){var a=Sd(i.id),s=r.get(a);if(s!=null){var l=e[s];xa(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=t[s],n[o]=null}}})}function gne(e,t){X(t,function(r,n){if(!(!r||r.name==null))for(var i=0;i<e.length;i++){var o=e[i].existing;if(!e[i].newOption&&o&&(o.id==null||r.id==null)&&!ep(r)&&!ep(o)&&eN("name",o,r)){e[i].newOption=r,t[n]=null;return}}})}function mne(e,t,r){X(t,function(n){if(n){for(var i,o=0;(i=e[o])&&(i.newOption||ep(i.existing)||i.existing&&n.id!=null&&!eN("id",n,i.existing));)o++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),o++}})}function yne(e,t){X(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function xne(e){var t=yt();X(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),X(e,function(r){var n=r.newOption;xa(!n||n.id==null||!t.get(n.id)||t.get(n.id)===r,"id duplicates: "+(n&&n.id)),n&&n.id!=null&&t.set(n.id,r),!r.keyInfo&&(r.keyInfo={})}),X(e,function(r,n){var i=r.existing,o=r.newOption,a=r.keyInfo;if(rt(o)){if(a.name=o.name!=null?Sd(o.name):i?i.name:JO+n,i)a.id=Sd(i.id);else if(o.id!=null)a.id=Sd(o.id);else{var s=0;do a.id="\0"+a.name+"\0"+s++;while(t.get(a.id))}t.set(a.id,r)}})}function eN(e,t,r){var n=Oo(t[e],null),i=Oo(r[e],null);return n!=null&&i!=null&&n===i}function Sd(e){return Oo(e,"")}function Oo(e,t){return e==null?t:qe(e)?e:ur(e)||Lb(e)?e+"":t}function vw(e){var t=e.name;return!!(t&&t.indexOf(JO))}function ep(e){return e&&e.id!=null&&Sd(e.id).indexOf(fne)===0}function bne(e,t,r){X(e,function(n){var i=n.newOption;rt(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=_ne(t,i,n.existing,r))})}function _ne(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function Nl(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return Be(t.dataIndex)?at(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return Be(t.name)?at(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function Ir(){var e="__ec_inner_"+Sne++;return function(t){return t[e]||(t[e]={})}}var Sne=QO();function tx(e,t,r){var n=gw(t,r),i=n.mainTypeSpecified,o=n.queryOptionMap,a=n.others,s=a,l=r?r.defaultMainType:null;return!i&&l&&o.set(l,{}),o.each(function(c,f){var p=Ap(e,f,c,{useDefault:l===f,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[f+"Models"]=p.models,s[f+"Model"]=p.models[0]}),s}function gw(e,t){var r;if(qe(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=yt(),o={},a=!1;return X(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){o[l]=s;return}var c=l.match(/^(\w+)(Index|Id|Name)$/)||[],f=c[1],p=(c[2]||"").toLowerCase();if(!(!f||!p||t&&t.includeMainTypes&&qt(t.includeMainTypes,f)<0)){a=a||!!f;var v=i.get(f)||i.set(f,{});v[p]=s}}),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var Xi={useDefault:!0,enableAll:!1,enableNone:!1};function Ap(e,t,r,n){n=n||Xi;var i=r.index,o=r.id,a=r.name,s={models:null,specified:i!=null||o!=null||a!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(xa(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(xa(n.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=e.queryComponents({mainType:t,index:i,id:o,name:a}),s)}function tN(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function wne(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Cne(e){return e==="auto"?ut.domSupported?"html":"richText":e||"html"}function Tne(e,t,r,n,i){var o=t==null||t==="auto";if(n==null)return n;if(ur(n)){var a=kP(r||0,n,i);return Tr(a,o?Math.max(ca(r||0),ca(n)):t)}else{if(qe(n))return i<1?r:n;for(var s=[],l=r,c=n,f=Math.max(l?l.length:0,c.length),p=0;p<f;++p){var v=e.getDimensionInfo(p);if(v&&v.type==="ordinal")s[p]=(i<1&&l?l:c)[p];else{var h=l&&l[p]?l[p]:0,g=c[p],a=kP(h,g,i);s[p]=Tr(a,o?Math.max(ca(h),ca(g)):t)}}return s}}var Ut=Ir(),kne=function(e,t,r,n){if(n){var i=Ut(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",n.type==="group"&&n.traverse(function(o){var a=Ut(o);a.seriesIndex=e,a.dataIndex=r,a.dataType=t,a.ssrType="chart"})}},PP=1,MP={},rN=Ir(),mw=Ir(),yw=0,Fm=1,Bm=2,jo=["emphasis","blur","select"],IP=["normal","emphasis","blur","select"],Rne=10,Ene=9,Cl="highlight",Zv="downplay",wd="select",Jv="unselect",Cd="toggleSelect";function Su(e){return e!=null&&e!=="none"}function jm(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function nN(e){jm(e,"emphasis",Bm)}function iN(e){e.hoverState===Bm&&jm(e,"normal",yw)}function xw(e){jm(e,"blur",Fm)}function oN(e){e.hoverState===Fm&&jm(e,"normal",yw)}function Pne(e){e.selected=!0}function Mne(e){e.selected=!1}function AP(e,t,r){t(e,r)}function wa(e,t,r){AP(e,t,r),e.isGroup&&e.traverse(function(n){AP(n,t,r)})}function DP(e,t){switch(t){case"emphasis":e.hoverState=Bm;break;case"normal":e.hoverState=yw;break;case"blur":e.hoverState=Fm;break;case"select":e.selected=!0}}function Ine(e,t,r,n){for(var i=e.style,o={},a=0;a<t.length;a++){var s=t[a],l=i[s];o[s]=l??(n&&n[s])}for(var a=0;a<e.animators.length;a++){var c=e.animators[a];c.__fromStateTransition&&c.__fromStateTransition.indexOf(r)<0&&c.targetName==="style"&&c.saveTo(o,t)}return o}function Ane(e,t,r,n){var i=r&&qt(r,"select")>=0,o=!1;if(e instanceof Kt){var a=rN(e),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(Su(s)||Su(l)){n=n||{};var c=n.style||{};c.fill==="inherit"?(o=!0,n=Ie({},n),c=Ie({},c),c.fill=s):!Su(c.fill)&&Su(s)?(o=!0,n=Ie({},n),c=Ie({},c),c.fill=aP(s)):!Su(c.stroke)&&Su(l)&&(o||(n=Ie({},n),c=Ie({},c)),c.stroke=aP(l)),n.style=c}}if(n&&n.z2==null){o||(n=Ie({},n));var f=e.z2EmphasisLift;n.z2=e.z2+(f??Rne)}return n}function Dne(e,t,r){if(r&&r.z2==null){r=Ie({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??Ene)}return r}function Lne(e,t,r){var n=qt(e.currentStates,t)>=0,i=e.style.opacity,o=n?null:Ine(e,["opacity"],t,{opacity:1});r=r||{};var a=r.style||{};return a.opacity==null&&(r=Ie({},r),a=Ie({opacity:n?i:o.opacity*.1},a),r.style=a),r}function rx(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return Ane(this,e,t,r);if(e==="blur")return Lne(this,e,r);if(e==="select")return Dne(this,e,r)}return r}function One(e){e.stateProxy=rx;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=rx),r&&(r.stateProxy=rx)}function LP(e,t){!uN(e,t)&&!e.__highByOuter&&wa(e,nN)}function OP(e,t){!uN(e,t)&&!e.__highByOuter&&wa(e,iN)}function Ag(e,t){e.__highByOuter|=1<<(t||0),wa(e,nN)}function Dg(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&wa(e,iN)}function Nne(e){wa(e,xw)}function aN(e){wa(e,oN)}function sN(e){wa(e,Pne)}function lN(e){wa(e,Mne)}function uN(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function cN(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,o){var a=mw(o),s=i==="series",l=s?e.getViewOfSeriesModel(o):e.getViewOfComponentModel(o);!s&&n.push(l),a.isBlured&&(l.group.traverse(function(c){oN(c)}),s&&r.push(o)),a.isBlured=!1}),X(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function Kb(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function o(c,f){for(var p=0;p<f.length;p++){var v=c.getItemGraphicEl(f[p]);v&&aN(v)}}if(e!=null&&!(!t||t==="none")){var a=i.getSeriesByIndex(e),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(c){var f=a===c,p=c.coordinateSystem;p&&p.master&&(p=p.master);var v=p&&s?p===s:f;if(!(r==="series"&&!f||r==="coordinateSystem"&&!v||t==="series"&&f)){var h=n.getViewOfSeriesModel(c);if(h.group.traverse(function(y){y.__highByOuter&&f&&t==="self"||xw(y)}),Hn(t))o(c.getData(),t);else if(rt(t))for(var g=lr(t),x=0;x<g.length;x++)o(c.getData(g[x]),t[g[x]]);l.push(c),mw(c).isBlured=!0}}),i.eachComponent(function(c,f){if(c!=="series"){var p=n.getViewOfComponentModel(f);p&&p.toggleBlurSeries&&p.toggleBlurSeries(l,!0,i)}})}}function Xb(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){mw(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(o){xw(o)})}}}function zne(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(i){var o=Nl(i,t);o=(Be(o)?o[0]:o)||0;var a=i.getItemGraphicEl(o);if(!a)for(var s=i.count(),l=0;!a&&l<s;)a=i.getItemGraphicEl(l++);if(a){var c=Ut(a);Kb(n,c.focus,c.blurScope,r)}else{var f=e.get(["emphasis","focus"]),p=e.get(["emphasis","blurScope"]);f!=null&&Kb(n,f,p,r)}}}function bw(e,t,r,n){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return i;var o=n.getModel().getComponent(e,t);if(!o)return i;var a=n.getViewOfComponentModel(o);if(!a||!a.findHighDownDispatchers)return i;for(var s=a.findHighDownDispatchers(r),l,c=0;c<s.length;c++)if(Ut(s[c]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function $ne(e,t,r){var n=Ut(e),i=bw(n.componentMainType,n.componentIndex,n.componentHighDownName,r),o=i.dispatchers,a=i.focusSelf;o?(a&&Xb(n.componentMainType,n.componentIndex,r),X(o,function(s){return LP(s,t)})):(Kb(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&Xb(n.componentMainType,n.componentIndex,r),LP(e,t))}function Fne(e,t,r){cN(r);var n=Ut(e),i=bw(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?X(i,function(o){return OP(o,t)}):OP(e,t)}function Bne(e,t,r){if(e_(t)){var n=t.dataType,i=e.getData(n),o=Nl(i,t);Be(o)||(o=[o]),e[t.type===Cd?"toggleSelect":t.type===wd?"select":"unselect"](o,n)}}function NP(e){var t=e.getAllData();X(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(o,a){e.isSelected(a,i)?sN(o):lN(o)})})}function jne(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();X(n,function(i){i.data;var o=i.type,a=r.getSelectedDataIndices();if(a.length>0){var s={dataIndex:a,seriesIndex:r.seriesIndex};o!=null&&(s.dataType=o),t.push(s)}})}),t}function Qb(e,t,r){fN(e,!0),wa(e,One),Wne(e,t,r)}function Hne(e){fN(e,!1)}function Zb(e,t,r,n){n?Hne(e):Qb(e,t,r)}function Wne(e,t,r){var n=Ut(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var zP=["emphasis","blur","select"],Vne={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function $P(e,t,r,n){r=r||"itemStyle";for(var i=0;i<zP.length;i++){var o=zP[i],a=t.getModel([o,r]),s=e.ensureState(o);s.style=a[Vne[r]]()}}function fN(e,t){var r=t===!1,n=e;e.highDownSilentOnTouch&&(n.__highDownSilentOnTouch=e.highDownSilentOnTouch),(!r||n.__highDownDispatcher)&&(n.__highByOuter=n.__highByOuter||0,n.__highDownDispatcher=!r)}function Jb(e){return!!(e&&e.__highDownDispatcher)}function Une(e){var t=MP[e];return t==null&&PP<=32&&(t=MP[e]=PP++),t}function e_(e){var t=e.type;return t===wd||t===Jv||t===Cd}function FP(e){var t=e.type;return t===Cl||t===Zv}function Gne(e){var t=rN(e);t.normalFill=e.style.fill,t.normalStroke=e.style.stroke;var r=e.states.select||{};t.selectFill=r.style&&r.style.fill||null,t.selectStroke=r.style&&r.style.stroke||null}var wu=Ol.CMD,qne=[[],[],[]],BP=Math.sqrt,Yne=Math.atan2;function Kne(e,t){if(t){var r=e.data,n=e.len(),i,o,a,s,l,c,f=wu.M,p=wu.C,v=wu.L,h=wu.R,g=wu.A,x=wu.Q;for(a=0,s=0;a<n;){switch(i=r[a++],s=a,o=0,i){case f:o=1;break;case v:o=1;break;case p:o=3;break;case x:o=2;break;case g:var y=t[4],b=t[5],S=BP(t[0]*t[0]+t[1]*t[1]),_=BP(t[2]*t[2]+t[3]*t[3]),C=Yne(-t[1]/_,t[0]/S);r[a]*=S,r[a++]+=y,r[a]*=_,r[a++]+=b,r[a++]*=S,r[a++]*=_,r[a++]+=C,r[a++]+=C,a+=2,s=a;break;case h:c[0]=r[a++],c[1]=r[a++],Ii(c,c,t),r[s++]=c[0],r[s++]=c[1],c[0]+=r[a++],c[1]+=r[a++],Ii(c,c,t),r[s++]=c[0],r[s++]=c[1]}for(l=0;l<o;l++){var k=qne[l];k[0]=r[a++],k[1]=r[a++],Ii(k,k,t),r[s++]=k[0],r[s++]=k[1]}}e.increaseVersion()}}var nx=Math.sqrt,yv=Math.sin,xv=Math.cos,Af=Math.PI;function jP(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function t_(e,t){return(e[0]*t[0]+e[1]*t[1])/(jP(e)*jP(t))}function HP(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(t_(e,t))}function WP(e,t,r,n,i,o,a,s,l,c,f){var p=l*(Af/180),v=xv(p)*(e-r)/2+yv(p)*(t-n)/2,h=-1*yv(p)*(e-r)/2+xv(p)*(t-n)/2,g=v*v/(a*a)+h*h/(s*s);g>1&&(a*=nx(g),s*=nx(g));var x=(i===o?-1:1)*nx((a*a*(s*s)-a*a*(h*h)-s*s*(v*v))/(a*a*(h*h)+s*s*(v*v)))||0,y=x*a*h/s,b=x*-s*v/a,S=(e+r)/2+xv(p)*y-yv(p)*b,_=(t+n)/2+yv(p)*y+xv(p)*b,C=HP([1,0],[(v-y)/a,(h-b)/s]),k=[(v-y)/a,(h-b)/s],T=[(-1*v-y)/a,(-1*h-b)/s],E=HP(k,T);if(t_(k,T)<=-1&&(E=Af),t_(k,T)>=1&&(E=0),E<0){var I=Math.round(E/Af*1e6)/1e6;E=Af*2+I%2*Af}f.addData(c,S,_,a,s,C,E,p,o)}var Xne=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Qne=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Zne(e){var t=new Ol;if(!e)return t;var r=0,n=0,i=r,o=n,a,s=Ol.CMD,l=e.match(Xne);if(!l)return t;for(var c=0;c<l.length;c++){for(var f=l[c],p=f.charAt(0),v=void 0,h=f.match(Qne)||[],g=h.length,x=0;x<g;x++)h[x]=parseFloat(h[x]);for(var y=0;y<g;){var b=void 0,S=void 0,_=void 0,C=void 0,k=void 0,T=void 0,E=void 0,I=r,D=n,A=void 0,L=void 0;switch(p){case"l":r+=h[y++],n+=h[y++],v=s.L,t.addData(v,r,n);break;case"L":r=h[y++],n=h[y++],v=s.L,t.addData(v,r,n);break;case"m":r+=h[y++],n+=h[y++],v=s.M,t.addData(v,r,n),i=r,o=n,p="l";break;case"M":r=h[y++],n=h[y++],v=s.M,t.addData(v,r,n),i=r,o=n,p="L";break;case"h":r+=h[y++],v=s.L,t.addData(v,r,n);break;case"H":r=h[y++],v=s.L,t.addData(v,r,n);break;case"v":n+=h[y++],v=s.L,t.addData(v,r,n);break;case"V":n=h[y++],v=s.L,t.addData(v,r,n);break;case"C":v=s.C,t.addData(v,h[y++],h[y++],h[y++],h[y++],h[y++],h[y++]),r=h[y-2],n=h[y-1];break;case"c":v=s.C,t.addData(v,h[y++]+r,h[y++]+n,h[y++]+r,h[y++]+n,h[y++]+r,h[y++]+n),r+=h[y-2],n+=h[y-1];break;case"S":b=r,S=n,A=t.len(),L=t.data,a===s.C&&(b+=r-L[A-4],S+=n-L[A-3]),v=s.C,I=h[y++],D=h[y++],r=h[y++],n=h[y++],t.addData(v,b,S,I,D,r,n);break;case"s":b=r,S=n,A=t.len(),L=t.data,a===s.C&&(b+=r-L[A-4],S+=n-L[A-3]),v=s.C,I=r+h[y++],D=n+h[y++],r+=h[y++],n+=h[y++],t.addData(v,b,S,I,D,r,n);break;case"Q":I=h[y++],D=h[y++],r=h[y++],n=h[y++],v=s.Q,t.addData(v,I,D,r,n);break;case"q":I=h[y++]+r,D=h[y++]+n,r+=h[y++],n+=h[y++],v=s.Q,t.addData(v,I,D,r,n);break;case"T":b=r,S=n,A=t.len(),L=t.data,a===s.Q&&(b+=r-L[A-4],S+=n-L[A-3]),r=h[y++],n=h[y++],v=s.Q,t.addData(v,b,S,r,n);break;case"t":b=r,S=n,A=t.len(),L=t.data,a===s.Q&&(b+=r-L[A-4],S+=n-L[A-3]),r+=h[y++],n+=h[y++],v=s.Q,t.addData(v,b,S,r,n);break;case"A":_=h[y++],C=h[y++],k=h[y++],T=h[y++],E=h[y++],I=r,D=n,r=h[y++],n=h[y++],v=s.A,WP(I,D,r,n,T,E,_,C,k,v,t);break;case"a":_=h[y++],C=h[y++],k=h[y++],T=h[y++],E=h[y++],I=r,D=n,r+=h[y++],n+=h[y++],v=s.A,WP(I,D,r,n,T,E,_,C,k,v,t);break}}(p==="z"||p==="Z")&&(v=s.Z,t.addData(v),r=i,n=o),a=v}return t.toStatic(),t}var dN=function(e){$e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(Kt);function pN(e){return e.setData!=null}function hN(e,t){var r=Zne(e),n=Ie({},t);return n.buildPath=function(i){if(pN(i)){i.setData(r.data);var o=i.getContext();o&&i.rebuildPath(o,1)}else{var o=i;r.rebuildPath(o,1)}},n.applyTransform=function(i){Kne(r,i),this.dirtyShape()},n}function Jne(e,t){return new dN(hN(e,t))}function eie(e,t){var r=hN(e,t),n=function(i){$e(o,i);function o(a){var s=i.call(this,a)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return o}(dN);return n}function tie(e,t){for(var r=[],n=e.length,i=0;i<n;i++){var o=e[i];r.push(o.getUpdatedPathProxy(!0))}var a=new Kt(t);return a.createPathProxy(),a.buildPath=function(s){if(pN(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},a}var rn=function(e){$e(t,e);function t(r){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var n=this._children,i=0;i<n.length;i++)if(n[i].name===r)return n[i]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,n){if(r&&r!==this&&r.parent!==this&&n&&n.parent===this){var i=this._children,o=i.indexOf(n);o>=0&&(i.splice(o,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=qt(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,o=i[n];if(r&&r!==this&&r.parent!==this&&r!==o){i[n]=r,o.parent=null;var a=this.__zr;a&&o.removeSelfFromZr(a),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,o=qt(i,r);return o<0?this:(i.splice(o,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i<r.length;i++){var o=r[i];n&&o.removeSelfFromZr(n),o.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var i=this._children,o=0;o<i.length;o++){var a=i[o];r.call(n,a,o)}return this},t.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var o=this._children[i],a=r.call(n,o);o.isGroup&&!a&&o.traverse(r,n)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var n=0;n<this._children.length;n++){var i=this._children[n];i.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var n=new jt(0,0,0,0),i=r||this._children,o=[],a=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var c=l.getBoundingRect(),f=l.getLocalTransform(o);f?(jt.applyTransform(n,c,f),a=a||n.clone(),a.union(n)):(a=a||c.clone(),a.union(c))}}return a||n},t}(zm);rn.prototype.type="group";var rie=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Hm=function(e){$e(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new rie},t.prototype.buildPath=function(r,n){r.moveTo(n.cx+n.r,n.cy),r.arc(n.cx,n.cy,n.r,0,Math.PI*2)},t}(Kt);Hm.prototype.type="circle";var nie=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),_w=function(e){$e(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new nie},t.prototype.buildPath=function(r,n){var i=.5522848,o=n.cx,a=n.cy,s=n.rx,l=n.ry,c=s*i,f=l*i;r.moveTo(o-s,a),r.bezierCurveTo(o-s,a-f,o-c,a-l,o,a-l),r.bezierCurveTo(o+c,a-l,o+s,a-f,o+s,a),r.bezierCurveTo(o+s,a+f,o+c,a+l,o,a+l),r.bezierCurveTo(o-c,a+l,o-s,a+f,o-s,a),r.closePath()},t}(Kt);_w.prototype.type="ellipse";var vN=Math.PI,ix=vN*2,el=Math.sin,Cu=Math.cos,iie=Math.acos,Xr=Math.atan2,VP=Math.abs,Td=Math.sqrt,td=Math.max,xo=Math.min,Gi=1e-4;function oie(e,t,r,n,i,o,a,s){var l=r-e,c=n-t,f=a-i,p=s-o,v=p*l-f*c;if(!(v*v<Gi))return v=(f*(t-o)-p*(e-i))/v,[e+v*l,t+v*c]}function bv(e,t,r,n,i,o,a){var s=e-r,l=t-n,c=(a?o:-o)/Td(s*s+l*l),f=c*l,p=-c*s,v=e+f,h=t+p,g=r+f,x=n+p,y=(v+g)/2,b=(h+x)/2,S=g-v,_=x-h,C=S*S+_*_,k=i-o,T=v*x-g*h,E=(_<0?-1:1)*Td(td(0,k*k*C-T*T)),I=(T*_-S*E)/C,D=(-T*S-_*E)/C,A=(T*_+S*E)/C,L=(-T*S+_*E)/C,$=I-y,B=D-b,j=A-y,W=L-b;return $*$+B*B>j*j+W*W&&(I=A,D=L),{cx:I,cy:D,x0:-f,y0:-p,x1:I*(i/k-1),y1:D*(i/k-1)}}function aie(e){var t;if(Be(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function sie(e,t){var r,n=td(t.r,0),i=td(t.r0||0,0),o=n>0,a=i>0;if(!(!o&&!a)){if(o||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,c=t.endAngle;if(!(isNaN(l)||isNaN(c))){var f=t.cx,p=t.cy,v=!!t.clockwise,h=VP(c-l),g=h>ix&&h%ix;if(g>Gi&&(h=g),!(n>Gi))e.moveTo(f,p);else if(h>ix-Gi)e.moveTo(f+n*Cu(l),p+n*el(l)),e.arc(f,p,n,l,c,!v),i>Gi&&(e.moveTo(f+i*Cu(c),p+i*el(c)),e.arc(f,p,i,c,l,v));else{var x=void 0,y=void 0,b=void 0,S=void 0,_=void 0,C=void 0,k=void 0,T=void 0,E=void 0,I=void 0,D=void 0,A=void 0,L=void 0,$=void 0,B=void 0,j=void 0,W=n*Cu(l),q=n*el(l),Z=i*Cu(c),V=i*el(c),G=h>Gi;if(G){var N=t.cornerRadius;N&&(r=aie(N),x=r[0],y=r[1],b=r[2],S=r[3]);var U=VP(n-i)/2;if(_=xo(U,b),C=xo(U,S),k=xo(U,x),T=xo(U,y),D=E=td(_,C),A=I=td(k,T),(E>Gi||I>Gi)&&(L=n*Cu(c),$=n*el(c),B=i*Cu(l),j=i*el(l),h<vN)){var Q=oie(W,q,B,j,L,$,Z,V);if(Q){var H=W-Q[0],oe=q-Q[1],ve=L-Q[0],te=$-Q[1],ge=1/el(iie((H*ve+oe*te)/(Td(H*H+oe*oe)*Td(ve*ve+te*te)))/2),de=Td(Q[0]*Q[0]+Q[1]*Q[1]);D=xo(E,(n-de)/(ge+1)),A=xo(I,(i-de)/(ge-1))}}}if(!G)e.moveTo(f+W,p+q);else if(D>Gi){var xe=xo(b,D),Me=xo(S,D),ue=bv(B,j,W,q,n,xe,v),Te=bv(L,$,Z,V,n,Me,v);e.moveTo(f+ue.cx+ue.x0,p+ue.cy+ue.y0),D<E&&xe===Me?e.arc(f+ue.cx,p+ue.cy,D,Xr(ue.y0,ue.x0),Xr(Te.y0,Te.x0),!v):(xe>0&&e.arc(f+ue.cx,p+ue.cy,xe,Xr(ue.y0,ue.x0),Xr(ue.y1,ue.x1),!v),e.arc(f,p,n,Xr(ue.cy+ue.y1,ue.cx+ue.x1),Xr(Te.cy+Te.y1,Te.cx+Te.x1),!v),Me>0&&e.arc(f+Te.cx,p+Te.cy,Me,Xr(Te.y1,Te.x1),Xr(Te.y0,Te.x0),!v))}else e.moveTo(f+W,p+q),e.arc(f,p,n,l,c,!v);if(!(i>Gi)||!G)e.lineTo(f+Z,p+V);else if(A>Gi){var xe=xo(x,A),Me=xo(y,A),ue=bv(Z,V,L,$,i,-Me,v),Te=bv(W,q,B,j,i,-xe,v);e.lineTo(f+ue.cx+ue.x0,p+ue.cy+ue.y0),A<I&&xe===Me?e.arc(f+ue.cx,p+ue.cy,A,Xr(ue.y0,ue.x0),Xr(Te.y0,Te.x0),!v):(Me>0&&e.arc(f+ue.cx,p+ue.cy,Me,Xr(ue.y0,ue.x0),Xr(ue.y1,ue.x1),!v),e.arc(f,p,i,Xr(ue.cy+ue.y1,ue.cx+ue.x1),Xr(Te.cy+Te.y1,Te.cx+Te.x1),v),xe>0&&e.arc(f+Te.cx,p+Te.cy,xe,Xr(Te.y1,Te.x1),Xr(Te.y0,Te.x0),!v))}else e.lineTo(f+Z,p+V),e.arc(f,p,i,c,l,v)}e.closePath()}}}var lie=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),Wm=function(e){$e(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new lie},t.prototype.buildPath=function(r,n){sie(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Kt);Wm.prototype.type="sector";var uie=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Sw=function(e){$e(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new uie},t.prototype.buildPath=function(r,n){var i=n.cx,o=n.cy,a=Math.PI*2;r.moveTo(i+n.r,o),r.arc(i,o,n.r,0,a,!1),r.moveTo(i+n.r0,o),r.arc(i,o,n.r0,0,a,!0)},t}(Kt);Sw.prototype.type="ring";function cie(e,t,r,n){var i=[],o=[],a=[],s=[],l,c,f,p;if(n){f=[1/0,1/0],p=[-1/0,-1/0];for(var v=0,h=e.length;v<h;v++)$u(f,f,e[v]),Fu(p,p,e[v]);$u(f,f,n[0]),Fu(p,p,n[1])}for(var v=0,h=e.length;v<h;v++){var g=e[v];if(r)l=e[v?v-1:h-1],c=e[(v+1)%h];else if(v===0||v===h-1){i.push(Kte(e[v]));continue}else l=e[v-1],c=e[v+1];Xte(o,c,l),O1(o,o,t);var x=$b(g,l),y=$b(g,c),b=x+y;b!==0&&(x/=b,y/=b),O1(a,o,-x),O1(s,o,y);var S=QE([],g,a),_=QE([],g,s);n&&(Fu(S,S,f),$u(S,S,p),Fu(_,_,f),$u(_,_,p)),i.push(S),i.push(_)}return r&&i.push(i.shift()),i}function gN(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var o=cie(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var a=i.length,s=0;s<(r?a:a-1);s++){var l=o[s*2],c=o[s*2+1],f=i[(s+1)%a];e.bezierCurveTo(l[0],l[1],c[0],c[1],f[0],f[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,p=i.length;s<p;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var fie=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),ww=function(e){$e(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new fie},t.prototype.buildPath=function(r,n){gN(r,n,!0)},t}(Kt);ww.prototype.type="polygon";var die=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Cw=function(e){$e(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new die},t.prototype.buildPath=function(r,n){gN(r,n,!1)},t}(Kt);Cw.prototype.type="polyline";var pie={},hie=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),gs=function(e){$e(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new hie},t.prototype.buildPath=function(r,n){var i,o,a,s;if(this.subPixelOptimize){var l=GO(pie,n,this.style);i=l.x1,o=l.y1,a=l.x2,s=l.y2}else i=n.x1,o=n.y1,a=n.x2,s=n.y2;var c=n.percent;c!==0&&(r.moveTo(i,o),c<1&&(a=i*(1-c)+a*c,s=o*(1-c)+s*c),r.lineTo(a,s))},t.prototype.pointAt=function(r){var n=this.shape;return[n.x1*(1-r)+n.x2*r,n.y1*(1-r)+n.y2*r]},t}(Kt);gs.prototype.type="line";var Pn=[],vie=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function UP(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?eP:Hr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?eP:Hr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?tP:An)(e.x1,e.cpx1,e.x2,t),(r?tP:An)(e.y1,e.cpy1,e.y2,t)]}var Tw=function(e){$e(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new vie},t.prototype.buildPath=function(r,n){var i=n.x1,o=n.y1,a=n.x2,s=n.y2,l=n.cpx1,c=n.cpy1,f=n.cpx2,p=n.cpy2,v=n.percent;v!==0&&(r.moveTo(i,o),f==null||p==null?(v<1&&(kg(i,l,a,v,Pn),l=Pn[1],a=Pn[2],kg(o,c,s,v,Pn),c=Pn[1],s=Pn[2]),r.quadraticCurveTo(l,c,a,s)):(v<1&&(Tg(i,l,f,a,v,Pn),l=Pn[1],f=Pn[2],a=Pn[3],Tg(o,c,p,s,v,Pn),c=Pn[1],p=Pn[2],s=Pn[3]),r.bezierCurveTo(l,c,f,p,a,s)))},t.prototype.pointAt=function(r){return UP(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=UP(this.shape,r,!0);return Jte(n,n)},t}(Kt);Tw.prototype.type="bezier-curve";var gie=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Vm=function(e){$e(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new gie},t.prototype.buildPath=function(r,n){var i=n.cx,o=n.cy,a=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,c=n.clockwise,f=Math.cos(s),p=Math.sin(s);r.moveTo(f*a+i,p*a+o),r.arc(i,o,a,s,l,!c)},t}(Kt);Vm.prototype.type="arc";var mie=function(e){$e(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,n=this.shapeChanged(),i=0;i<r.length;i++)n=n||r[i].shapeChanged();n&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],n=this.getGlobalScale(),i=0;i<r.length;i++)r[i].path||r[i].createPathProxy(),r[i].path.setScale(n[0],n[1],r[i].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,n){for(var i=n.paths||[],o=0;o<i.length;o++)i[o].buildPath(r,i[o].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],n=0;n<r.length;n++)r[n].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Kt.prototype.getBoundingRect.call(this)},t}(Kt),mN=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}(),yN=function(e){$e(t,e);function t(r,n,i,o,a,s){var l=e.call(this,a)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=o??0,l.type="linear",l.global=s||!1,l}return t}(mN),yie=function(e){$e(t,e);function t(r,n,i,o,a){var s=e.call(this,o)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=a||!1,s}return t}(mN),tl=[0,0],rl=[0,0],_v=new Yt,Sv=new Yt,Lg=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new Yt;for(var n=0;n<2;n++)this._axes[n]=new Yt;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,i=this._axes,o=t.x,a=t.y,s=o+t.width,l=a+t.height;if(n[0].set(o,a),n[1].set(s,a),n[2].set(s,l),n[3].set(o,l),r)for(var c=0;c<4;c++)n[c].transform(r);Yt.sub(i[0],n[1],n[0]),Yt.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var c=0;c<2;c++)this._origin[c]=i[c].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,i=!r;return _v.set(1/0,1/0),Sv.set(0,0),!this._intersectCheckOneSide(this,t,_v,Sv,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,_v,Sv,i,-1)&&(n=!1,i)||i||Yt.copy(r,n?_v:Sv),n},e.prototype._intersectCheckOneSide=function(t,r,n,i,o,a){for(var s=!0,l=0;l<2;l++){var c=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,tl),this._getProjMinMaxOnAxis(l,r._corners,rl),tl[1]<rl[0]||tl[0]>rl[1]){if(s=!1,o)return s;var f=Math.abs(rl[0]-tl[1]),p=Math.abs(tl[0]-rl[1]);Math.min(f,p)>i.len()&&(f<p?Yt.scale(i,c,-f*a):Yt.scale(i,c,p*a))}else if(n){var f=Math.abs(rl[0]-tl[1]),p=Math.abs(tl[0]-rl[1]);Math.min(f,p)<n.len()&&(f<p?Yt.scale(n,c,f*a):Yt.scale(n,c,-p*a))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],o=this._origin,a=r[0].dot(i)+o[t],s=a,l=a,c=1;c<r.length;c++){var f=r[c].dot(i)+o[t];s=Math.min(f,s),l=Math.max(f,l)}n[0]=s,n[1]=l},e}(),xie=[],bie=function(e){$e(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,n){r.call(n,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,n){n?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,n){n=n||!1;for(var i=0;i<r.length;i++)this.addDisplayable(r[i],n)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var n=this._cursor;n<this._displayables.length;n++)r&&r(this._displayables[n]);for(var n=0;n<this._temporaryDisplayables.length;n++)r&&r(this._temporaryDisplayables[n])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var n=this._displayables[r];n.parent=this,n.update(),n.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var n=this._temporaryDisplayables[r];n.parent=this,n.update(),n.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new jt(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],o=i.getBoundingRect().clone();i.needLocalTransform()&&o.applyTransform(i.getLocalTransform(xie)),r.union(o)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),o=this.getBoundingRect();if(o.contain(i[0],i[1]))for(var a=0;a<this._displayables.length;a++){var s=this._displayables[a];if(s.contain(r,n))return!0}return!1},t}(Mp),_ie=Ir();function Sie(e,t,r,n,i){var o;if(t&&t.ecModel){var a=t.ecModel.getUpdatePayload();o=a&&a.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var c=void 0,f=void 0,p=void 0;n?(c=wt(n.duration,200),f=wt(n.easing,"cubicOut"),p=0):(c=t.getShallow(l?"animationDurationUpdate":"animationDuration"),f=t.getShallow(l?"animationEasingUpdate":"animationEasing"),p=t.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(o.duration!=null&&(c=o.duration),o.easing!=null&&(f=o.easing),o.delay!=null&&(p=o.delay)),ft(p)&&(p=p(r,i)),ft(c)&&(c=c(r));var v={duration:c||0,delay:p,easing:f};return v}else return null}function kw(e,t,r,n,i,o,a){var s=!1,l;ft(i)?(a=o,o=i,i=null):rt(i)&&(o=i.cb,a=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var c=e==="leave";c||t.stopAnimation("leave");var f=Sie(e,n,i,c?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(f&&f.duration>0){var p=f.duration,v=f.delay,h=f.easing,g={duration:p,delay:v||0,easing:h,done:o,force:!!o||!!a,setToFinal:!c,scope:e,during:a};s?t.animateFrom(r,g):t.animateTo(r,g)}else t.stopAnimation(),!s&&t.attr(r),a&&a(1),o&&o()}function ms(e,t,r,n,i,o){kw("update",e,t,r,n,i,o)}function Dp(e,t,r,n,i,o){kw("enter",e,t,r,n,i,o)}function kd(e){if(!e.__zr)return!0;for(var t=0;t<e.animators.length;t++){var r=e.animators[t];if(r.scope==="leave")return!0}return!1}function Og(e,t,r,n,i,o){kd(e)||kw("leave",e,t,r,n,i,o)}function GP(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),Og(e,{style:{opacity:0}},t,r,n)}function wie(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||GP(i,t,r,n)}):GP(e,t,r,n)}function Cie(e){_ie(e).oldStyle=e.style}var Ng=Math.max,zg=Math.min,r_={};function Tie(e){return Kt.extend(e)}var kie=eie;function Rie(e,t){return kie(e,t)}function oo(e,t){r_[e]=t}function Eie(e){if(r_.hasOwnProperty(e))return r_[e]}function Rw(e,t,r,n){var i=Jne(e,t);return r&&(n==="center"&&(r=bN(r,i.getBoundingRect())),_N(i,r)),i}function xN(e,t,r){var n=new ks({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(r==="center"){var o={width:i.width,height:i.height};n.setStyle(bN(t,o))}}});return n}function bN(e,t){var r=t.width/t.height,n=e.height*r,i;n<=e.width?i=e.height:(n=e.width,i=n/r);var o=e.x+e.width/2,a=e.y+e.height/2;return{x:o-n/2,y:a-i/2,width:n,height:i}}var Pie=tie;function _N(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function tp(e,t){return GO(e,e,{lineWidth:t}),e}function Mie(e){return qO(e.shape,e.shape,e.style),e}var Iie=yl;function Aie(e,t){for(var r=sw([]);e&&e!==t;)Ku(r,e.getLocalTransform(),r),e=e.parent;return r}function Ew(e,t,r){return t&&!Hn(t)&&(t=dw.getLocalTransform(t)),r&&(t=uw([],t)),Ii([],e,t)}function Die(e,t,r){var n=t[4]===0||t[5]===0||t[0]===0?1:Math.abs(2*t[4]/t[0]),i=t[4]===0||t[5]===0||t[2]===0?1:Math.abs(2*t[4]/t[2]),o=[e==="left"?-n:e==="right"?n:0,e==="top"?-i:e==="bottom"?i:0];return o=Ew(o,t,r),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function qP(e){return!e.isGroup}function Lie(e){return e.shape!=null}function SN(e,t,r){if(!e||!t)return;function n(a){var s={};return a.traverse(function(l){qP(l)&&l.anid&&(s[l.anid]=l)}),s}function i(a){var s={x:a.x,y:a.y,rotation:a.rotation};return Lie(a)&&(s.shape=Ie({},a.shape)),s}var o=n(e);t.traverse(function(a){if(qP(a)&&a.anid){var s=o[a.anid];if(s){var l=i(a);a.attr(i(s)),ms(a,l,r,Ut(a).dataIndex)}}})}function Oie(e,t){return at(e,function(r){var n=r[0];n=Ng(n,t.x),n=zg(n,t.x+t.width);var i=r[1];return i=Ng(i,t.y),i=zg(i,t.y+t.height),[n,i]})}function Nie(e,t){var r=Ng(e.x,t.x),n=zg(e.x+e.width,t.x+t.width),i=Ng(e.y,t.y),o=zg(e.y+e.height,t.y+t.height);if(n>=r&&o>=i)return{x:r,y:i,width:n-r,height:o-i}}function Pw(e,t,r){var n=Ie({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),Gt(i,r),new ks(n)):Rw(e.replace("path://",""),n,r,"center")}function zie(e,t,r,n,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(wN(e,t,r,n,s[0],s[1],a[0],a[1]))return!0;a=s}}function wN(e,t,r,n,i,o,a,s){var l=r-e,c=n-t,f=a-i,p=s-o,v=ox(f,p,l,c);if($ie(v))return!1;var h=e-i,g=t-o,x=ox(h,g,l,c)/v;if(x<0||x>1)return!1;var y=ox(h,g,f,p)/v;return!(y<0||y>1)}function ox(e,t,r,n){return e*n-r*t}function $ie(e){return e<=1e-6&&e>=-1e-6}function Mw(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=qe(t)?{formatter:t}:t,o=r.mainType,a=r.componentIndex,s={componentType:o,name:n,$vars:["name"]};s[o+"Index"]=a;var l=e.formatterParamsExtra;l&&X(lr(l),function(f){cc(s,f)||(s[f]=l[f],s.$vars.push(f))});var c=Ut(e.el);c.componentMainType=o,c.componentIndex=a,c.tooltipConfig={name:n,option:Gt({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function YP(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Iw(e,t){if(e)if(Be(e))for(var r=0;r<e.length;r++)YP(e[r],t);else YP(e,t)}oo("circle",Hm);oo("ellipse",_w);oo("sector",Wm);oo("ring",Sw);oo("polygon",ww);oo("polyline",Cw);oo("rect",zr);oo("line",gs);oo("bezierCurve",Tw);oo("arc",Vm);const Fie=Object.freeze(Object.defineProperty({__proto__:null,Arc:Vm,BezierCurve:Tw,BoundingRect:jt,Circle:Hm,CompoundPath:mie,Ellipse:_w,Group:rn,Image:ks,IncrementalDisplayable:bie,Line:gs,LinearGradient:yN,OrientedBoundingRect:Lg,Path:Kt,Point:Yt,Polygon:ww,Polyline:Cw,RadialGradient:yie,Rect:zr,Ring:Sw,Sector:Wm,Text:tn,applyTransform:Ew,clipPointsByRect:Oie,clipRectByRect:Nie,createIcon:Pw,extendPath:Rie,extendShape:Tie,getShapeClass:Eie,getTransform:Aie,groupTransition:SN,initProps:Dp,isElementRemoved:kd,lineLineIntersect:wN,linePolygonIntersect:zie,makeImage:xN,makePath:Rw,mergePath:Pie,registerShape:oo,removeElement:Og,removeElementWithFadeOut:wie,resizePath:_N,setTooltipConfig:Mw,subPixelOptimize:Iie,subPixelOptimizeLine:tp,subPixelOptimizeRect:Mie,transformDirection:Die,traverseElements:Iw,updateProps:ms},Symbol.toStringTag,{value:"Module"}));var Um={};function Bie(e,t){for(var r=0;r<jo.length;r++){var n=jo[r],i=t[n],o=e.ensureState(n);o.style=o.style||{},o.style.text=i}var a=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(a,!0)}function KP(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,o=e.labelDimIndex,a=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,o,a&&a.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=ft(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var l={normal:s},c=0;c<jo.length;c++){var f=jo[c],p=t[f];l[f]=wt(n?n.getFormattedLabel(i,f,null,o,p&&p.get("formatter")):null,s)}return l}function Aw(e,t,r,n){r=r||Um;for(var i=e instanceof tn,o=!1,a=0;a<IP.length;a++){var s=t[IP[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=i?e:e.getTextContent();if(o){i||(l||(l=new tn,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var c=KP(r,t),f=t.normal,p=!!f.getShallow("show"),v=ys(f,n&&n.normal,r,!1,!i);v.text=c.normal,i||e.setTextConfig(XP(f,r,!1));for(var a=0;a<jo.length;a++){var h=jo[a],s=t[h];if(s){var g=l.ensureState(h),x=!!wt(s.getShallow("show"),p);if(x!==p&&(g.ignore=!x),g.style=ys(s,n&&n[h],r,!0,!i),g.style.text=c[h],!i){var y=e.ensureState(h);y.textConfig=XP(s,r,!0)}}}l.silent=!!f.getShallow("silent"),l.style.x!=null&&(v.x=l.style.x),l.style.y!=null&&(v.y=l.style.y),l.ignore=!p,l.useStyle(v),l.dirty(),r.enableTextSetter&&(CN(l).setLabelText=function(b){var S=KP(r,t,b);Bie(l,S)})}else l&&(l.ignore=!0);e.dirty()}function Dw(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<jo.length;n++){var i=jo[n];r[i]=e.getModel([i,t])}return r}function ys(e,t,r,n,i){var o={};return jie(o,e,r,n,i),t&&Ie(o,t),o}function XP(e,t,r){t=t||{};var n={},i,o=e.getShallow("rotate"),a=wt(e.getShallow("distance"),r?null:5),s=e.getShallow("offset");return i=e.getShallow("position")||(r?null:"inside"),i==="outside"&&(i=t.defaultOutsidePosition||"top"),i!=null&&(n.position=i),s!=null&&(n.offset=s),o!=null&&(o*=Math.PI/180,n.rotation=o),a!=null&&(n.distance=a),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function jie(e,t,r,n,i){r=r||Um;var o=t.ecModel,a=o&&o.option.textStyle,s=Hie(t),l;if(s){l={};for(var c in s)if(s.hasOwnProperty(c)){var f=t.getModel(["rich",c]);eM(l[c]={},f,a,r,n,i,!1,!0)}}l&&(e.rich=l);var p=t.get("overflow");p&&(e.overflow=p);var v=t.get("minMargin");v!=null&&(e.margin=v),eM(e,t,a,r,n,i,!0,!1)}function Hie(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||Um).rich;if(r){t=t||{};for(var n=lr(r),i=0;i<n.length;i++){var o=n[i];t[o]=1}}e=e.parentModel}return t}var QP=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],ZP=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],JP=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function eM(e,t,r,n,i,o,a,s){r=!i&&r||Um;var l=n&&n.inheritColor,c=t.getShallow("color"),f=t.getShallow("textBorderColor"),p=wt(t.getShallow("opacity"),r.opacity);(c==="inherit"||c==="auto")&&(l?c=l:c=null),(f==="inherit"||f==="auto")&&(l?f=l:f=null),o||(c=c||r.color,f=f||r.textBorderColor),c!=null&&(e.fill=c),f!=null&&(e.stroke=f);var v=wt(t.getShallow("textBorderWidth"),r.textBorderWidth);v!=null&&(e.lineWidth=v);var h=wt(t.getShallow("textBorderType"),r.textBorderType);h!=null&&(e.lineDash=h);var g=wt(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);g!=null&&(e.lineDashOffset=g),!i&&p==null&&!s&&(p=n&&n.defaultOpacity),p!=null&&(e.opacity=p),!i&&!o&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var x=0;x<QP.length;x++){var y=QP[x],b=wt(t.getShallow(y),r[y]);b!=null&&(e[y]=b)}for(var x=0;x<ZP.length;x++){var y=ZP[x],b=t.getShallow(y);b!=null&&(e[y]=b)}if(e.verticalAlign==null){var S=t.getShallow("baseline");S!=null&&(e.verticalAlign=S)}if(!a||!n.disableBox){for(var x=0;x<JP.length;x++){var y=JP[x],b=t.getShallow(y);b!=null&&(e[y]=b)}var _=t.getShallow("borderType");_!=null&&(e.borderDash=_),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function Wie(e,t){var r=t&&t.getModel("textStyle");return Eo([e.fontStyle||r&&r.getShallow("fontStyle")||"",e.fontWeight||r&&r.getShallow("fontWeight")||"",(e.fontSize||r&&r.getShallow("fontSize")||12)+"px",e.fontFamily||r&&r.getShallow("fontFamily")||"sans-serif"].join(" "))}var CN=Ir(),Vie=["textStyle","color"],ax=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],sx=new tn,Uie=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(Vie):null)},e.prototype.getFont=function(){return Wie({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},e.prototype.getTextRect=function(t){for(var r={text:t,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},n=0;n<ax.length;n++)r[ax[n]]=this.getShallow(ax[n]);return sx.useStyle(r),sx.update(),sx.getBoundingRect()},e}(),TN=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Gie=Zd(TN),qie=function(){function e(){}return e.prototype.getLineStyle=function(t){return Gie(this,t)},e}(),kN=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Yie=Zd(kN),Kie=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return Yie(this,t,r)},e}(),yr=function(){function e(t,r,n){this.parentModel=r,this.ecModel=n,this.option=t}return e.prototype.init=function(t,r,n){},e.prototype.mergeOption=function(t,r){Bt(this.option,t,!0)},e.prototype.get=function(t,r){return t==null?this.option:this._doGet(this.parsePath(t),!r&&this.parentModel)},e.prototype.getShallow=function(t,r){var n=this.option,i=n==null?n:n[t];if(i==null&&!r){var o=this.parentModel;o&&(i=o.getShallow(t))}return i},e.prototype.getModel=function(t,r){var n=t!=null,i=n?this.parsePath(t):null,o=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(o,r,this.ecModel)},e.prototype.isEmpty=function(){return this.option==null},e.prototype.restoreData=function(){},e.prototype.clone=function(){var t=this.constructor;return new t(Rt(this.option))},e.prototype.parsePath=function(t){return typeof t=="string"?t.split("."):t},e.prototype.resolveParentPath=function(t){return t},e.prototype.isAnimationEnabled=function(){if(!ut.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},e.prototype._doGet=function(t,r){var n=this.option;if(!t)return n;for(var i=0;i<t.length&&!(t[i]&&(n=n&&typeof n=="object"?n[t[i]]:null,n==null));i++);return n==null&&r&&(n=r._doGet(this.resolveParentPath(t),r.parentModel)),n},e}();aw(yr);Mte(yr);Vo(yr,qie);Vo(yr,Kie);Vo(yr,Ote);Vo(yr,Uie);function Df(e){return e==null?0:e.length||1}function tM(e){return e}var Xie=function(){function e(t,r,n,i,o,a){this._old=t,this._new=r,this._oldKeyGetter=n||tM,this._newKeyGetter=i||tM,this.context=o,this._diffModeMultiple=a==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),o=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,o,"_newKeyGetter");for(var a=0;a<t.length;a++){var s=i[a],l=n[s],c=Df(l);if(c>1){var f=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(f,a)}else c===1?(n[s]=null,this._update&&this._update(l,a)):this._remove&&this._remove(a)}this._performRestAdd(o,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},o=[],a=[];this._initIndexMap(t,n,o,"_oldKeyGetter"),this._initIndexMap(r,i,a,"_newKeyGetter");for(var s=0;s<o.length;s++){var l=o[s],c=n[l],f=i[l],p=Df(c),v=Df(f);if(p>1&&v===1)this._updateManyToOne&&this._updateManyToOne(f,c),i[l]=null;else if(p===1&&v>1)this._updateOneToMany&&this._updateOneToMany(f,c),i[l]=null;else if(p===1&&v===1)this._update&&this._update(f,c),i[l]=null;else if(p>1&&v>1)this._updateManyToMany&&this._updateManyToMany(f,c),i[l]=null;else if(p>1)for(var h=0;h<p;h++)this._remove&&this._remove(c[h]);else this._remove&&this._remove(c)}this._performRestAdd(a,i)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var i=t[n],o=r[i],a=Df(o);if(a>1)for(var s=0;s<a;s++)this._add&&this._add(o[s]);else a===1&&this._add&&this._add(o);r[i]=null}},e.prototype._initIndexMap=function(t,r,n,i){for(var o=this._diffModeMultiple,a=0;a<t.length;a++){var s="_ec_"+this[i](t[a],a);if(o||(n[a]=s),!!r){var l=r[s],c=Df(l);c===0?(r[s]=a,o&&n.push(s)):c===1?r[s]=[l,a]:l.push(a)}}},e}(),RN=yt(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ni="original",Vn="arrayRows",Go="objectRows",Ca="keyedColumns",fs="typedArray",EN="unknown",ha="column",_c="row",Qn={Must:1,Might:2,Not:3},PN=Ir();function Qie(e){PN(e).datasetMap=yt()}function Zie(e,t,r){var n={},i=MN(t);if(!i||!e)return n;var o=[],a=[],s=t.ecModel,l=PN(s).datasetMap,c=i.uid+"_"+r.seriesLayoutBy,f,p;e=e.slice(),X(e,function(x,y){var b=rt(x)?x:e[y]={name:x};b.type==="ordinal"&&f==null&&(f=y,p=g(b)),n[b.name]=[]});var v=l.get(c)||l.set(c,{categoryWayDim:p,valueWayDim:0});X(e,function(x,y){var b=x.name,S=g(x);if(f==null){var _=v.valueWayDim;h(n[b],_,S),h(a,_,S),v.valueWayDim+=S}else if(f===y)h(n[b],0,S),h(o,0,S);else{var _=v.categoryWayDim;h(n[b],_,S),h(a,_,S),v.categoryWayDim+=S}});function h(x,y,b){for(var S=0;S<b;S++)x.push(y+S)}function g(x){var y=x.dimsDef;return y?y.length:1}return o.length&&(n.itemName=o),a.length&&(n.seriesName=a),n}function MN(e){var t=e.get("data",!0);if(!t)return Ap(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Xi).models[0]}function Jie(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:Ap(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Xi).models}function IN(e,t){return eoe(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function eoe(e,t,r,n,i,o){var a,s=5;if(Wn(e))return Qn.Not;var l,c;if(n){var f=n[o];rt(f)?(l=f.name,c=f.type):qe(f)&&(l=f)}if(c!=null)return c==="ordinal"?Qn.Must:Qn.Not;if(t===Vn){var p=e;if(r===_c){for(var v=p[o],h=0;h<(v||[]).length&&h<s;h++)if((a=C(v[i+h]))!=null)return a}else for(var h=0;h<p.length&&h<s;h++){var g=p[i+h];if(g&&(a=C(g[o]))!=null)return a}}else if(t===Go){var x=e;if(!l)return Qn.Not;for(var h=0;h<x.length&&h<s;h++){var y=x[h];if(y&&(a=C(y[l]))!=null)return a}}else if(t===Ca){var b=e;if(!l)return Qn.Not;var v=b[l];if(!v||Wn(v))return Qn.Not;for(var h=0;h<v.length&&h<s;h++)if((a=C(v[h]))!=null)return a}else if(t===Ni)for(var S=e,h=0;h<S.length&&h<s;h++){var y=S[h],_=Ip(y);if(!Be(_))return Qn.Not;if((a=C(_[o]))!=null)return a}function C(k){var T=qe(k);if(k!=null&&Number.isFinite(Number(k))&&k!=="")return T?Qn.Might:Qn.Not;if(T&&k!=="-")return Qn.Must}return Qn.Not}var Gm=function(){function e(t){this.data=t.data||(t.sourceFormat===Ca?{}:[]),this.sourceFormat=t.sourceFormat||EN,this.seriesLayoutBy=t.seriesLayoutBy||ha,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;n<r.length;n++){var i=r[n];i.type==null&&IN(this,n)===Qn.Must&&(i.type="ordinal")}}return e}();function Lw(e){return e instanceof Gm}function n_(e,t,r){r=r||DN(e);var n=t.seriesLayoutBy,i=roe(e,r,n,t.sourceHeader,t.dimensions),o=new Gm({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Rt(t)});return o}function AN(e){return new Gm({data:e,sourceFormat:Wn(e)?fs:Ni})}function toe(e){return new Gm({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Rt(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function DN(e){var t=EN;if(Wn(e))t=fs;else if(Be(e)){e.length===0&&(t=Vn);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(Be(i)||Wn(i)){t=Vn;break}else if(rt(i)){t=Go;break}}}}else if(rt(e)){for(var o in e)if(cc(e,o)&&Hn(e[o])){t=Ca;break}}return t}function roe(e,t,r,n,i){var o,a;if(!e)return{dimensionsDefine:rM(i),startIndex:a,dimensionsDetectedCount:o};if(t===Vn){var s=e;n==="auto"||n==null?nM(function(c){c!=null&&c!=="-"&&(qe(c)?a==null&&(a=1):a=0)},r,s,10):a=ur(n)?n:n?1:0,!i&&a===1&&(i=[],nM(function(c,f){i[f]=c!=null?c+"":""},r,s,1/0)),o=i?i.length:r===_c?s.length:s[0]?s[0].length:null}else if(t===Go)i||(i=noe(e));else if(t===Ca)i||(i=[],X(e,function(c,f){i.push(f)}));else if(t===Ni){var l=Ip(e[0]);o=Be(l)&&l.length||1}return{startIndex:a,dimensionsDefine:rM(i),dimensionsDetectedCount:o}}function noe(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return lr(r)}function rM(e){if(e){var t=yt();return at(e,function(r,n){r=rt(r)?r:{name:r};var i={name:r.name,displayName:r.displayName,type:r.type};if(i.name==null)return i;i.name+="",i.displayName==null&&(i.displayName=i.name);var o=t.get(i.name);return o?i.name+="-"+o.count++:t.set(i.name,{count:1}),i})}}function nM(e,t,r,n){if(t===_c)for(var i=0;i<r.length&&i<n;i++)e(r[i]?r[i][0]:null,i);else for(var o=r[0]||[],i=0;i<o.length&&i<n;i++)e(o[i],i)}function LN(e){var t=e.sourceFormat;return t===Go||t===Ca}var nl,il,ol,iM,oM,ON=function(){function e(t,r){var n=Lw(t)?t:AN(t);this._source=n;var i=this._data=n.data;n.sourceFormat===fs&&(this._offset=0,this._dimSize=r,this._data=i),oM(this,i,n)}return e.prototype.getSource=function(){return this._source},e.prototype.count=function(){return 0},e.prototype.getItem=function(t,r){},e.prototype.appendData=function(t){},e.prototype.clean=function(){},e.protoInitialize=function(){var t=e.prototype;t.pure=!1,t.persistent=!0}(),e.internalField=function(){var t;oM=function(a,s,l){var c=l.sourceFormat,f=l.seriesLayoutBy,p=l.startIndex,v=l.dimensionsDefine,h=iM[Ow(c,f)];if(Ie(a,h),c===fs)a.getItem=r,a.count=i,a.fillStorage=n;else{var g=NN(c,f);a.getItem=pr(g,null,s,p,v);var x=zN(c,f);a.count=pr(x,null,s,p,v)}};var r=function(a,s){a=a-this._offset,s=s||[];for(var l=this._data,c=this._dimSize,f=c*a,p=0;p<c;p++)s[p]=l[f+p];return s},n=function(a,s,l,c){for(var f=this._data,p=this._dimSize,v=0;v<p;v++){for(var h=c[v],g=h[0]==null?1/0:h[0],x=h[1]==null?-1/0:h[1],y=s-a,b=l[v],S=0;S<y;S++){var _=f[S*p+v];b[a+S]=_,_<g&&(g=_),_>x&&(x=_)}h[0]=g,h[1]=x}},i=function(){return this._data?this._data.length/this._dimSize:0};iM=(t={},t[Vn+"_"+ha]={pure:!0,appendData:o},t[Vn+"_"+_c]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Go]={pure:!0,appendData:o},t[Ca]={pure:!0,appendData:function(a){var s=this._data;X(a,function(l,c){for(var f=s[c]||(s[c]=[]),p=0;p<(l||[]).length;p++)f.push(l[p])})}},t[Ni]={appendData:o},t[fs]={persistent:!1,pure:!0,appendData:function(a){this._data=a},clean:function(){this._offset+=this.count(),this._data=null}},t);function o(a){for(var s=0;s<a.length;s++)this._data.push(a[s])}}(),e}(),aM=function(e,t,r,n){return e[n]},ioe=(nl={},nl[Vn+"_"+ha]=function(e,t,r,n){return e[n+t]},nl[Vn+"_"+_c]=function(e,t,r,n,i){n+=t;for(var o=i||[],a=e,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[n]:null}return o},nl[Go]=aM,nl[Ca]=function(e,t,r,n,i){for(var o=i||[],a=0;a<r.length;a++){var s=r[a].name,l=e[s];o[a]=l?l[n]:null}return o},nl[Ni]=aM,nl);function NN(e,t){var r=ioe[Ow(e,t)];return r}var sM=function(e,t,r){return e.length},ooe=(il={},il[Vn+"_"+ha]=function(e,t,r){return Math.max(0,e.length-t)},il[Vn+"_"+_c]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},il[Go]=sM,il[Ca]=function(e,t,r){var n=r[0].name,i=e[n];return i?i.length:0},il[Ni]=sM,il);function zN(e,t){var r=ooe[Ow(e,t)];return r}var lx=function(e,t,r){return e[t]},aoe=(ol={},ol[Vn]=lx,ol[Go]=function(e,t,r){return e[r]},ol[Ca]=lx,ol[Ni]=function(e,t,r){var n=Ip(e);return n instanceof Array?n[t]:n},ol[fs]=lx,ol);function $N(e){var t=aoe[e];return t}function Ow(e,t){return e===Vn?e+"_"+t:e}function fc(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var i=e.getStore(),o=i.getSource().sourceFormat;if(r!=null){var a=e.getDimensionIndex(r),s=i.getDimensionProperty(a);return $N(o)(n,a,s)}else{var l=n;return o===Ni&&(l=Ip(n)),l}}}}var soe=function(){function e(t,r){this._encode=t,this._schema=r}return e.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},e.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},e}();function loe(e,t){var r={},n=r.encode={},i=yt(),o=[],a=[],s={};X(e.dimensions,function(v){var h=e.getDimensionInfo(v),g=h.coordDim;if(g){var x=h.coordDimIndex;ux(n,g)[x]=v,h.isExtraCoord||(i.set(g,1),coe(h.type)&&(o[0]=v),ux(s,g)[x]=e.getDimensionIndex(h.name)),h.defaultTooltip&&a.push(v)}RN.each(function(y,b){var S=ux(n,b),_=h.otherDims[b];_!=null&&_!==!1&&(S[_]=h.name)})});var l=[],c={};i.each(function(v,h){var g=n[h];c[h]=g[0],l=l.concat(g)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=at(l,function(v){return e.getDimensionInfo(v).storeDimIndex}),r.encodeFirstDimNotExtra=c;var f=n.label;f&&f.length&&(o=f.slice());var p=n.tooltip;return p&&p.length?a=p.slice():a.length||(a=o.slice()),n.defaultedLabel=o,n.defaultedTooltip=a,r.userOutput=new soe(s,t),r}function ux(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function uoe(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function coe(e){return!(e==="ordinal"||e==="time")}var eg=function(){function e(t){this.otherDims={},t!=null&&Ie(this,t)}return e}();function tg(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!ur(e)&&e!=null&&e!=="-"&&(e=+ba(e)),e==null||e===""?NaN:Number(e))}yt({number:function(e){return parseFloat(e)},time:function(e){return+ba(e)},trim:function(e){return qe(e)?Eo(e):e}});var foe=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=ur(t)?t:Ig(t),i=ur(r)?r:Ig(r),o=isNaN(n),a=isNaN(i);if(o&&(n=this._incomparable),a&&(i=this._incomparable),o&&a){var s=qe(t),l=qe(r);s&&(n=l?t:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),qm="undefined",doe=typeof Uint32Array===qm?Array:Uint32Array,poe=typeof Uint16Array===qm?Array:Uint16Array,FN=typeof Int32Array===qm?Array:Int32Array,lM=typeof Float64Array===qm?Array:Float64Array,BN={float:lM,int:FN,ordinal:Array,number:Array,time:lM},cx;function Lf(e){return e>65535?doe:poe}function Tu(){return[1/0,-1/0]}function hoe(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function uM(e,t,r,n,i){var o=BN[r||"float"];if(i){var a=e[t],s=a&&a.length;if(s!==n){for(var l=new o(n),c=0;c<s;c++)l[c]=a[c];e[t]=l}}else e[t]=new o(n)}var i_=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=yt()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),o=this.defaultDimValueGetter=cx[i.sourceFormat];this._dimValueGetter=n||o,this._rawExtent=[],LN(i),this._dimensions=at(r,function(a){return{type:a.type,property:a.property}}),this._initDataFromProvider(0,t.count())},e.prototype.getProvider=function(){return this._provider},e.prototype.getSource=function(){return this._provider.getSource()},e.prototype.ensureCalculationDimension=function(t,r){var n=this._calcDimNameToIdx,i=this._dimensions,o=n.get(t);if(o!=null){if(i[o].type===r)return o}else o=i.length;return i[o]={type:r},n.set(t,o),this._chunks[o]=new BN[r||"float"](this._rawCount),this._rawExtent[o]=Tu(),o},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],i=this._dimensions[t],o=this._rawExtent,a=i.ordinalOffset||0,s=n.length;a===0&&(o[t]=Tu());for(var l=o[t],c=a;c<s;c++){var f=n[c]=r.parseAndCollect(n[c]);isNaN(f)||(l[0]=Math.min(f,l[0]),l[1]=Math.max(f,l[1]))}i.ordinalMeta=r,i.ordinalOffset=s,i.type="ordinal"},e.prototype.getOrdinalMeta=function(t){var r=this._dimensions[t],n=r.ordinalMeta;return n},e.prototype.getDimensionProperty=function(t){var r=this._dimensions[t];return r&&r.property},e.prototype.appendData=function(t){var r=this._provider,n=this.count();r.appendData(t);var i=r.count();return r.persistent||(i+=n),n<i&&this._initDataFromProvider(n,i,!0),[n,i]},e.prototype.appendValues=function(t,r){for(var n=this._chunks,i=this._dimensions,o=i.length,a=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),c=0;c<o;c++){var f=i[c];uM(n,c,f.type,l,!0)}for(var p=[],v=s;v<l;v++)for(var h=v-s,g=0;g<o;g++){var f=i[g],x=cx.arrayRows.call(this,t[h]||p,f.property,h,g);n[g][v]=x;var y=a[g];x<y[0]&&(y[0]=x),x>y[1]&&(y[1]=x)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,c=at(a,function(S){return S.property}),f=0;f<s;f++){var p=a[f];l[f]||(l[f]=Tu()),uM(o,f,p.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,o,l);else for(var v=[],h=t;h<r;h++){v=i.getItem(h,v);for(var g=0;g<s;g++){var x=o[g],y=this._dimValueGetter(v,c[g],h,g);x[h]=y;var b=l[g];y<b[0]&&(b[0]=y),y>b[1]&&(b[1]=y)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r<this._count))return NaN;var n=this._chunks[t];return n?n[this.getRawIndex(r)]:NaN},e.prototype.getValues=function(t,r){var n=[],i=[];if(r==null){r=t,t=[];for(var o=0;o<this._dimensions.length;o++)i.push(o)}else i=t;for(var o=0,a=i.length;o<a;o++)n.push(this.get(i[o],r));return n},e.prototype.getByRawIndex=function(t,r){if(!(r>=0&&r<this._rawCount))return NaN;var n=this._chunks[t];return n?n[r]:NaN},e.prototype.getSum=function(t){var r=this._chunks[t],n=0;if(r)for(var i=0,o=this.count();i<o;i++){var a=this.get(t,i);isNaN(a)||(n+=a)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(o){isNaN(o)||r.push(o)});var n=r.sort(function(o,a){return o-a}),i=this.count();return i===0?0:i%2===1?n[(i-1)/2]:(n[i/2]+n[i/2-1])/2},e.prototype.indexOfRawIndex=function(t){if(t>=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&n<this._count&&n===t)return t;for(var i=0,o=this._count-1;i<=o;){var a=(i+o)/2|0;if(r[a]<t)i=a+1;else if(r[a]>t)o=a-1;else return a}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,o=i[t],a=[];if(!o)return a;n==null&&(n=1/0);for(var s=1/0,l=-1,c=0,f=0,p=this.count();f<p;f++){var v=this.getRawIndex(f),h=r-o[v],g=Math.abs(h);g<=n&&((g<s||g===s&&h>=0&&l<0)&&(s=g,l=h,c=0),h===l&&(a[c++]=f))}return a.length=c,a},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var o=0;o<i;o++)t[o]=r[o]}else t=new n(r.buffer,0,i)}else{var n=Lf(this._rawCount);t=new n(this.count());for(var o=0;o<t.length;o++)t[o]=o}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),o=Lf(n._rawCount),a=new o(i),s=[],l=t.length,c=0,f=t[0],p=n._chunks,v=0;v<i;v++){var h=void 0,g=n.getRawIndex(v);if(l===0)h=r(v);else if(l===1){var x=p[f][g];h=r(x,v)}else{for(var y=0;y<l;y++)s[y]=p[t[y]][g];s[y]=v,h=r.apply(null,s)}h&&(a[c++]=g)}return c<i&&(n._indices=a),n._count=c,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var i=lr(t),o=i.length;if(!o)return this;var a=r.count(),s=Lf(r._rawCount),l=new s(a),c=0,f=i[0],p=t[f][0],v=t[f][1],h=r._chunks,g=!1;if(!r._indices){var x=0;if(o===1){for(var y=h[i[0]],b=0;b<n;b++){var S=y[b];(S>=p&&S<=v||isNaN(S))&&(l[c++]=x),x++}g=!0}else if(o===2){for(var y=h[i[0]],_=h[i[1]],C=t[i[1]][0],k=t[i[1]][1],b=0;b<n;b++){var S=y[b],T=_[b];(S>=p&&S<=v||isNaN(S))&&(T>=C&&T<=k||isNaN(T))&&(l[c++]=x),x++}g=!0}}if(!g)if(o===1)for(var b=0;b<a;b++){var E=r.getRawIndex(b),S=h[i[0]][E];(S>=p&&S<=v||isNaN(S))&&(l[c++]=E)}else for(var b=0;b<a;b++){for(var I=!0,E=r.getRawIndex(b),D=0;D<o;D++){var A=i[D],S=h[A][E];(S<t[A][0]||S>t[A][1])&&(I=!1)}I&&(l[c++]=r.getRawIndex(b))}return c<a&&(r._indices=l),r._count=c,r._extent=[],r._updateGetRawIdx(),r},e.prototype.map=function(t,r){var n=this.clone(t);return this._updateDims(n,t,r),n},e.prototype.modify=function(t,r){this._updateDims(this,t,r)},e.prototype._updateDims=function(t,r,n){for(var i=t._chunks,o=[],a=r.length,s=t.count(),l=[],c=t._rawExtent,f=0;f<r.length;f++)c[r[f]]=Tu();for(var p=0;p<s;p++){for(var v=t.getRawIndex(p),h=0;h<a;h++)l[h]=i[r[h]][v];l[a]=p;var g=n&&n.apply(null,l);if(g!=null){typeof g!="object"&&(o[0]=g,g=o);for(var f=0;f<g.length;f++){var x=r[f],y=g[f],b=c[x],S=i[x];S&&(S[v]=y),y<b[0]&&(b[0]=y),y>b[1]&&(b[1]=y)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,o=i[t],a=this.count(),s=0,l=Math.floor(1/r),c=this.getRawIndex(0),f,p,v,h=new(Lf(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));h[s++]=c;for(var g=1;g<a-1;g+=l){for(var x=Math.min(g+l,a-1),y=Math.min(g+l*2,a),b=(y+x)/2,S=0,_=x;_<y;_++){var C=this.getRawIndex(_),k=o[C];isNaN(k)||(S+=k)}S/=y-x;var T=g,E=Math.min(g+l,a),I=g-1,D=o[c];f=-1,v=T;for(var A=-1,L=0,_=T;_<E;_++){var C=this.getRawIndex(_),k=o[C];if(isNaN(k)){L++,A<0&&(A=C);continue}p=Math.abs((I-b)*(k-D)-(I-_)*(S-D)),p>f&&(f=p,v=C)}L>0&&L<E-T&&(h[s++]=Math.min(A,v),v=Math.max(A,v)),h[s++]=v,c=v}return h[s++]=this.getRawIndex(a-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,i){for(var o=this.clone([t],!0),a=o._chunks,s=[],l=Math.floor(1/r),c=a[t],f=this.count(),p=o._rawExtent[t]=Tu(),v=new(Lf(this._rawCount))(Math.ceil(f/l)),h=0,g=0;g<f;g+=l){l>f-g&&(l=f-g,s.length=l);for(var x=0;x<l;x++){var y=this.getRawIndex(g+x);s[x]=c[y]}var b=n(s),S=this.getRawIndex(Math.min(g+i(s,b)||0,f-1));c[S]=b,b<p[0]&&(p[0]=b),b>p[1]&&(p[1]=b),v[h++]=S}return o._count=h,o._indices=v,o._updateGetRawIdx(),o},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,o=0,a=this.count();o<a;o++){var s=this.getRawIndex(o);switch(n){case 0:r(o);break;case 1:r(i[t[0]][s],o);break;case 2:r(i[t[0]][s],i[t[1]][s],o);break;default:for(var l=0,c=[];l<n;l++)c[l]=i[t[l]][s];c[l]=o,r.apply(null,c)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=Tu();if(!r)return n;var i=this.count(),o=!this._indices,a;if(o)return this._rawExtent[t].slice();if(a=this._extent[t],a)return a.slice();a=n;for(var s=a[0],l=a[1],c=0;c<i;c++){var f=this.getRawIndex(c),p=r[f];p<s&&(s=p),p>l&&(l=p)}return a=[s,l],this._extent[t]=a,a},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,o=0;o<i.length;o++)n.push(i[o][r]);return n},e.prototype.clone=function(t,r){var n=new e,i=this._chunks,o=t&&xc(t,function(s,l){return s[l]=!0,s},{});if(o)for(var a=0;a<i.length;a++)n._chunks[a]=o[a]?hoe(i[a]):i[a];else n._chunks=i;return this._copyCommonProps(n),r||(n._indices=this._cloneIndices()),n._updateGetRawIdx(),n},e.prototype._copyCommonProps=function(t){t._count=this._count,t._rawCount=this._rawCount,t._provider=this._provider,t._dimensions=this._dimensions,t._extent=Rt(this._extent),t._rawExtent=Rt(this._rawExtent)},e.prototype._cloneIndices=function(){if(this._indices){var t=this._indices.constructor,r=void 0;if(t===Array){var n=this._indices.length;r=new t(n);for(var i=0;i<n;i++)r[i]=this._indices[i]}else r=new t(this._indices);return r}return null},e.prototype._getRawIdxIdentity=function(t){return t},e.prototype._getRawIdx=function(t){return t<this._count&&t>=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,o){return tg(r[o],this._dimensions[o])}cx={arrayRows:t,objectRows:function(r,n,i,o){return tg(r[n],this._dimensions[o])},keyedColumns:t,original:function(r,n,i,o){var a=r&&(r.value==null?r:r.value);return tg(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(r,n,i,o){return r[o]}}}(),e}(),voe=Ir(),goe={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},jN=function(){function e(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return e.prototype.isDimensionOmitted=function(){return this._dimOmitted},e.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=VN(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return wt(this._dimNameMap.get(t),-1)},e.prototype.getSourceDimension=function(t){var r=this.source.dimensionsDefine;if(r)return r[t]},e.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,r=LN(this.source),n=!UN(t),i="",o=[],a=0,s=0;a<t;a++){var l=void 0,c=void 0,f=void 0,p=this.dimensions[s];if(p&&p.storeDimIndex===a)l=r?p.name:null,c=p.type,f=p.ordinalMeta,s++;else{var v=this.getSourceDimension(a);v&&(l=r?v.name:null,c=v.type)}o.push({property:l,type:c,ordinalMeta:f}),r&&l!=null&&(!p||!p.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=goe[c]||"f",f&&(i+=f.uid),i+="$"}var h=this.source,g=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:o,hash:g}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,o=this.dimensions[n];if(o&&o.storeDimIndex===r)o.isCalculationCoord||(i=o.name),n++;else{var a=this.getSourceDimension(r);a&&(i=a.name)}t.push(i)}return t},e.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},e}();function HN(e){return e instanceof jN}function WN(e){for(var t=yt(),r=0;r<(e||[]).length;r++){var n=e[r],i=rt(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function VN(e){var t=voe(e);return t.dimNameMap||(t.dimNameMap=WN(e.dimensionsDefine))}function UN(e){return e>30}var Of=rt,Ya=at,moe=typeof Int32Array>"u"?Array:Int32Array,yoe="e\0\0",cM=-1,xoe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],boe=["_approximateExtent"],fM,wv,Nf,zf,fx,Cv,dx,_oe=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n,i=!1;HN(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var o={},a=[],s={},l=!1,c={},f=0;f<n.length;f++){var p=n[f],v=qe(p)?new eg({name:p}):p instanceof eg?p:new eg(p),h=v.name;v.type=v.type||"float",v.coordDim||(v.coordDim=h,v.coordDimIndex=0);var g=v.otherDims=v.otherDims||{};a.push(h),o[h]=v,c[h]!=null&&(l=!0),v.createInvertedIndices&&(s[h]=[]),g.itemName===0&&(this._nameDimIdx=f),g.itemId===0&&(this._idDimIdx=f),i&&(v.storeDimIndex=f)}if(this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var x=this._dimIdxToName=yt();X(a,function(y){x.set(o[y].storeDimIndex,y)})}}return e.prototype.getDimension=function(t){var r=this._recognizeDimIndex(t);if(r==null)return t;if(r=t,!this._dimOmitted)return this.dimensions[r];var n=this._dimIdxToName.get(r);if(n!=null)return n;var i=this._schema.getSourceDimension(r);if(i)return i.name},e.prototype.getDimensionIndex=function(t){var r=this._recognizeDimIndex(t);if(r!=null)return r;if(t==null)return-1;var n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},e.prototype._recognizeDimIndex=function(t){if(ur(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},e.prototype._getStoreDimIndex=function(t){var r=this.getDimensionIndex(t);return r},e.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},e.prototype._initGetDimensionInfo=function(t){var r=this._dimInfos;this._getDimInfo=t?function(n){return r.hasOwnProperty(n)?r[n]:void 0}:function(n){return r[n]}},e.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},e.prototype.mapDimension=function(t,r){var n=this._dimSummary;if(r==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[r]:null},e.prototype.mapDimensionsAll=function(t){var r=this._dimSummary,n=r.encode[t];return(n||[]).slice()},e.prototype.getStore=function(){return this._store},e.prototype.initData=function(t,r,n){var i=this,o;if(t instanceof i_&&(o=t),!o){var a=this.dimensions,s=Lw(t)||Hn(t)?new ON(t,a.length):t;o=new i_;var l=Ya(a,function(c){return{type:i._dimInfos[c].type,property:c}});o.initData(s,l,n)}this._store=o,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,o.count()),this._dimSummary=loe(this,this._schema),this.userOutput=this._dimSummary.userOutput},e.prototype.appendData=function(t){var r=this._store.appendData(t);this._doInit(r[0],r[1])},e.prototype.appendValues=function(t,r){var n=this._store.appendValues(t,r.length),i=n.start,o=n.end,a=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<o;s++){var l=s-i;this._nameList[s]=r[l],a&&dx(this,s)}},e.prototype._updateOrdinalMeta=function(){for(var t=this._store,r=this.dimensions,n=0;n<r.length;n++){var i=this._dimInfos[r[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},e.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==fs&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList,s=i.getSource().sourceFormat,l=s===Ni;if(l&&!i.pure)for(var c=[],f=t;f<r;f++){var p=i.getItem(f,c);if(!this.hasItemOption&&dne(p)&&(this.hasItemOption=!0),p){var v=p.name;o[f]==null&&v!=null&&(o[f]=Oo(v,null));var h=p.id;a[f]==null&&h!=null&&(a[f]=Oo(h,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<r;f++)dx(this,f);fM(this)}},e.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.setApproximateExtent=function(t,r){r=this.getDimension(r),this._approximateExtent[r]=t.slice()},e.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},e.prototype.setCalculationInfo=function(t,r){Of(t)?Ie(this._calculationInfo,t):this._calculationInfo[t]=r},e.prototype.getName=function(t){var r=this.getRawIndex(t),n=this._nameList[r];return n==null&&this._nameDimIdx!=null&&(n=Nf(this,this._nameDimIdx,r)),n==null&&(n=""),n},e.prototype._getCategory=function(t,r){var n=this._store.get(t,r),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},e.prototype.getId=function(t){return wv(this,this.getRawIndex(t))},e.prototype.count=function(){return this._store.count()},e.prototype.get=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,r)},e.prototype.getByRawIndex=function(t,r){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,r)},e.prototype.getIndices=function(){return this._store.getIndices()},e.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},e.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},e.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},e.prototype.getValues=function(t,r){var n=this,i=this._store;return Be(t)?i.getValues(Ya(t,function(o){return n._getStoreDimIndex(o)}),r):i.getValues(t)},e.prototype.hasValue=function(t){for(var r=this._dimSummary.dataDimIndicesOnCoord,n=0,i=r.length;n<i;n++)if(isNaN(this._store.get(r[n],t)))return!1;return!0},e.prototype.indexOfName=function(t){for(var r=0,n=this._store.count();r<n;r++)if(this.getName(r)===t)return r;return-1},e.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},e.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},e.prototype.rawIndexOf=function(t,r){var n=t&&this._invertedIndicesMap[t],i=n[r];return i==null||isNaN(i)?cM:i},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){ft(t)&&(n=r,r=t,t=[]);var i=n||this,o=Ya(zf(t),this._getStoreDimIndex,this);this._store.each(o,i?pr(r,i):r)},e.prototype.filterSelf=function(t,r,n){ft(t)&&(n=r,r=t,t=[]);var i=n||this,o=Ya(zf(t),this._getStoreDimIndex,this);return this._store=this._store.filter(o,i?pr(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=lr(t);return X(i,function(o){var a=r._getStoreDimIndex(o);n[a]=t[o]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){ft(t)&&(n=r,r=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(r&&r.apply(this,arguments))},n),i},e.prototype.map=function(t,r,n,i){var o=n||i||this,a=Ya(zf(t),this._getStoreDimIndex,this),s=Cv(this);return s._store=this._store.map(a,o?pr(r,o):r),s},e.prototype.modify=function(t,r,n,i){var o=n||i||this,a=Ya(zf(t),this._getStoreDimIndex,this);this._store.modify(a,o?pr(r,o):r)},e.prototype.downSample=function(t,r,n,i){var o=Cv(this);return o._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),o},e.prototype.lttbDownSample=function(t,r){var n=Cv(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),r),n},e.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},e.prototype.getItemModel=function(t){var r=this.hostModel,n=this.getRawDataItem(t);return new yr(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new Xie(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return wv(t,n)},function(n){return wv(r,n)})},e.prototype.getVisual=function(t){var r=this._visual;return r&&r[t]},e.prototype.setVisual=function(t,r){this._visual=this._visual||{},Of(t)?Ie(this._visual,t):this._visual[t]=r},e.prototype.getItemVisual=function(t,r){var n=this._itemVisuals[t],i=n&&n[r];return i??this.getVisual(r)},e.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var o=i[r];return o==null&&(o=this.getVisual(r),Be(o)?o=o.slice():Of(o)&&(o=Ie({},o)),i[r]=o),o},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,Of(r)?Ie(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){Of(t)?Ie(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?Ie(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;kne(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){X(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Ya(this.dimensions,this._getDimInfo,this),this.hostModel)),fx(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];ft(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(ow(arguments)))})},e.internalField=function(){fM=function(t){var r=t._invertedIndicesMap;X(r,function(n,i){var o=t._dimInfos[i],a=o.ordinalMeta,s=t._store;if(a){n=r[i]=new moe(a.categories.length);for(var l=0;l<n.length;l++)n[l]=cM;for(var l=0;l<s.count();l++)n[s.get(o.storeDimIndex,l)]=l}})},Nf=function(t,r,n){return Oo(t._getCategory(r,n),null)},wv=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Nf(t,t._idDimIdx,r)),n==null&&(n=yoe+r),n},zf=function(t){return Be(t)||(t=t!=null?[t]:[]),t},Cv=function(t){var r=new e(t._schema?t._schema:Ya(t.dimensions,t._getDimInfo,t),t.hostModel);return fx(r,t),r},fx=function(t,r){X(xoe.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,X(boe,function(n){t[n]=Rt(r[n])}),t._calculationInfo=Ie({},r._calculationInfo)},dx=function(t,r){var n=t._nameList,i=t._idList,o=t._nameDimIdx,a=t._idDimIdx,s=n[r],l=i[r];if(s==null&&o!=null&&(n[r]=s=Nf(t,o,r)),l==null&&a!=null&&(i[r]=l=Nf(t,a,r)),l==null&&s!=null){var c=t._nameRepeatCount,f=c[s]=(c[s]||0)+1;l=s,f>1&&(l+="__ec__"+f),i[r]=l}}}(),e}();function Soe(e,t){Lw(e)||(e=AN(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=yt(),o=[],a=Coe(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&UN(a),l=n===e.dimensionsDefine,c=l?VN(e):WN(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(e,a));for(var p=yt(f),v=new FN(a),h=0;h<v.length;h++)v[h]=-1;function g(D){var A=v[D];if(A<0){var L=n[D],$=rt(L)?L:{name:L},B=new eg,j=$.name;j!=null&&c.get(j)!=null&&(B.name=B.displayName=j),$.type!=null&&(B.type=$.type),$.displayName!=null&&(B.displayName=$.displayName);var W=o.length;return v[D]=W,B.storeDimIndex=D,o.push(B),B}return o[A]}if(!s)for(var h=0;h<a;h++)g(h);p.each(function(D,A){var L=yn(D).slice();if(L.length===1&&!qe(L[0])&&L[0]<0){p.set(A,!1);return}var $=p.set(A,[]);X(L,function(B,j){var W=qe(B)?c.get(B):B;W!=null&&W<a&&($[j]=W,y(g(W),A,j))})});var x=0;X(r,function(D){var A,L,$,B;if(qe(D))A=D,B={};else{B=D,A=B.name;var j=B.ordinalMeta;B.ordinalMeta=null,B=Ie({},B),B.ordinalMeta=j,L=B.dimsDef,$=B.otherDims,B.name=B.coordDim=B.coordDimIndex=B.dimsDef=B.otherDims=null}var W=p.get(A);if(W!==!1){if(W=yn(W),!W.length)for(var q=0;q<(L&&L.length||1);q++){for(;x<a&&g(x).coordDim!=null;)x++;x<a&&W.push(x++)}X(W,function(Z,V){var G=g(Z);if(l&&B.type!=null&&(G.type=B.type),y(Gt(G,B),A,V),G.name==null&&L){var N=L[V];!rt(N)&&(N={name:N}),G.name=G.displayName=N.name,G.defaultTooltip=N.defaultTooltip}$&&Gt(G.otherDims,$)})}});function y(D,A,L){RN.get(A)!=null?D.otherDims[A]=L:(D.coordDim=A,D.coordDimIndex=L,i.set(A,!0))}var b=t.generateCoord,S=t.generateCoordCount,_=S!=null;S=b?S||1:0;var C=b||"value";function k(D){D.name==null&&(D.name=D.coordDim)}if(s)X(o,function(D){k(D)}),o.sort(function(D,A){return D.storeDimIndex-A.storeDimIndex});else for(var T=0;T<a;T++){var E=g(T),I=E.coordDim;I==null&&(E.coordDim=Toe(C,i,_),E.coordDimIndex=0,(!b||S<=0)&&(E.isExtraCoord=!0),S--),k(E),E.type==null&&(IN(e,T)===Qn.Must||E.isExtraCoord&&(E.otherDims.itemName!=null||E.otherDims.seriesName!=null))&&(E.type="ordinal")}return woe(o),new jN({source:e,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function woe(e){for(var t=yt(),r=0;r<e.length;r++){var n=e[r],i=n.name,o=t.get(i)||0;o>0&&(n.name=i+(o-1)),o++,t.set(i,o)}}function Coe(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return X(t,function(o){var a;rt(o)&&(a=o.dimsDef)&&(i=Math.max(i,a.length))}),i}function Toe(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var px={},Nw=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];X(px,function(i,o){var a=i.create(t,r);n=n.concat(a||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){X(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){px[t]=r},e.get=function(t){return px[t]},e}(),koe=function(){function e(t){this.coordSysDims=[],this.axisMap=yt(),this.categoryAxisMap=yt(),this.coordSysName=t}return e}();function Roe(e){var t=e.get("coordinateSystem"),r=new koe(t),n=Eoe[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var Eoe={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",Xi).models[0],o=e.getReferringComponents("yAxis",Xi).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",o),ku(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),ku(o)&&(n.set("y",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",Xi).models[0];t.coordSysDims=["single"],r.set("single",i),ku(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",Xi).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",o),r.set("angle",a),ku(o)&&(n.set("radius",o),t.firstCategoryDimIndex=0),ku(a)&&(n.set("angle",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,o=i.getComponent("parallel",e.get("parallelIndex")),a=t.coordSysDims=o.dimensions.slice();X(o.parallelAxisIndex,function(s,l){var c=i.getComponent("parallelAxis",s),f=a[l];r.set(f,c),ku(c)&&(n.set(f,c),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function ku(e){return e.get("type")==="category"}function Poe(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,o,a,s;Moe(t)?o=t:(a=t.schema,o=a.dimensions,s=t.store);var l=!!(e&&e.get("stack")),c,f,p,v;if(X(o,function(S,_){qe(S)&&(o[_]=S={name:S}),l&&!S.isExtraCoord&&(!n&&!c&&S.ordinalMeta&&(c=S),!f&&S.type!=="ordinal"&&S.type!=="time"&&(!i||i===S.coordDim)&&(f=S))}),f&&!n&&!c&&(n=!0),f){p="__\0ecstackresult_"+e.id,v="__\0ecstackedover_"+e.id,c&&(c.createInvertedIndices=!0);var h=f.coordDim,g=f.type,x=0;X(o,function(S){S.coordDim===h&&x++});var y={name:p,coordDim:h,coordDimIndex:x,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},b={name:v,coordDim:v,coordDimIndex:x+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(y.storeDimIndex=s.ensureCalculationDimension(v,g),b.storeDimIndex=s.ensureCalculationDimension(p,g)),a.appendCalculationDimension(y),a.appendCalculationDimension(b)):(o.push(y),o.push(b))}return{stackedDimension:f&&f.name,stackedByDimension:c&&c.name,isStackedByIndex:n,stackedOverDimension:v,stackResultDimension:p}}function Moe(e){return!HN(e.schema)}function rp(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function Ioe(e,t){return rp(e,t)?e.getCalculationInfo("stackResultDimension"):t}function Aoe(e,t){var r=e.get("coordinateSystem"),n=Nw.get(r),i;return t&&t.coordSysDims&&(i=at(t.coordSysDims,function(o){var a={name:o},s=t.axisMap.get(o);if(s){var l=s.get("type");a.type=uoe(l)}return a})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function Doe(e,t,r){var n,i;return r&&X(e,function(o,a){var s=o.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=a),o.ordinalMeta=l.getOrdinalMeta(),t&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function Loe(e,t,r){r=r||{};var n=t.getSourceManager(),i,o=!1;i=n.getSource(),o=i.sourceFormat===Ni;var a=Roe(t),s=Aoe(t,a),l=r.useEncodeDefaulter,c=ft(l)?l:l?Nr(Zie,s,t):null,f={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:c,canOmitUnusedDimensions:!o},p=Soe(i,f),v=Doe(p.dimensions,r.createInvertedIndices,a),h=o?null:n.getSharedDataStore(p),g=Poe(t,{schema:p,store:h}),x=new _oe(p,t);x.setCalculationInfo(g);var y=v!=null&&Ooe(i)?function(b,S,_,C){return C===v?_:this.defaultDimValueGetter(b,S,_,C)}:null;return x.hasItemOption=!1,x.initData(o?i:h,null,y),x}function Ooe(e){if(e.sourceFormat===Ni){var t=Noe(e.data||[]);return!Be(Ip(t))}}function Noe(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var zoe=Math.round(Math.random()*10);function Ym(e){return[e||"",zoe++].join("_")}function $oe(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=Po(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var o=Po(r).main;e.hasSubTypes(r)&&t[o]&&(i=t[o](n))}return i}}function Foe(e,t){e.topologicalTravel=function(o,a,s,l){if(!o.length)return;var c=r(a),f=c.graph,p=c.noEntryList,v={};for(X(o,function(S){v[S]=!0});p.length;){var h=p.pop(),g=f[h],x=!!v[h];x&&(s.call(l,h,g.originalDeps.slice()),delete v[h]),X(g.successor,x?b:y)}X(v,function(){var S="";throw new Error(S)});function y(S){f[S].entryCount--,f[S].entryCount===0&&p.push(S)}function b(S){v[S]=!0,y(S)}};function r(o){var a={},s=[];return X(o,function(l){var c=n(a,l),f=c.originalDeps=t(l),p=i(f,o);c.entryCount=p.length,c.entryCount===0&&s.push(l),X(p,function(v){qt(c.predecessor,v)<0&&c.predecessor.push(v);var h=n(a,v);qt(h.successor,v)<0&&h.successor.push(l)})}),{graph:a,noEntryList:s}}function n(o,a){return o[a]||(o[a]={predecessor:[],successor:[]}),o[a]}function i(o,a){var s=[];return X(o,function(l){qt(a,l)>=0&&s.push(l)}),s}}function Boe(e,t){return Bt(Bt({},e,!0),t,!0)}var joe=Math.log(2);function o_(e,t,r,n,i,o){var a=n+"-"+i,s=e.length;if(o.hasOwnProperty(a))return o[a];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/joe);return e[r][l]}for(var c=n|1<<r,f=r+1;n&1<<f;)f++;for(var p=0,v=0,h=0;v<s;v++){var g=1<<v;g&i||(p+=(h%2?-1:1)*e[r][v]*o_(e,t-1,f,c,i|g,o),h++)}return o[a]=p,p}function dM(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],n={},i=o_(r,8,0,0,0,n);if(i!==0){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)o[s]==null&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*o_(r,7,a===0?1:0,1<<a,1<<s,n)/i*t[a];return function(l,c,f){var p=c*o[6]+f*o[7]+1;l[0]=(c*o[0]+f*o[1]+o[2])/p,l[1]=(c*o[3]+f*o[4]+o[5])/p}}}var pM="___zrEVENTSAVED",hx=[];function Hoe(e,t,r,n,i){return a_(hx,t,n,i,!0)&&a_(e,r,hx[0],hx[1])}function a_(e,t,r,n,i){if(t.getBoundingClientRect&&ut.domSupported&&!GN(t)){var o=t[pM]||(t[pM]={}),a=Woe(t,o),s=Voe(a,o,i);if(s)return s(e,r,n),!0}return!1}function Woe(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],i=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=a.style,l=o%2,c=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",i[c]+":0",n[1-l]+":auto",i[1-c]+":auto",""].join("!important;"),e.appendChild(a),r.push(a)}return r}function Voe(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],o=t.srcCoords,a=[],s=[],l=!0,c=0;c<4;c++){var f=e[c].getBoundingClientRect(),p=2*c,v=f.left,h=f.top;a.push(v,h),l=l&&o&&v===o[p]&&h===o[p+1],s.push(e[c].offsetLeft,e[c].offsetTop)}return l&&i?i:(t.srcCoords=a,t[n]=r?dM(s,a):dM(a,s))}function GN(e){return e.nodeName.toUpperCase()==="CANVAS"}var Uoe=/([&<>"'])/g,Goe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function ei(e){return e==null?"":(e+"").replace(Uoe,function(t,r){return Goe[r]})}const qoe={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},Yoe={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var $g="ZH",zw="EN",Zu=zw,rg={},$w={},qN=ut.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Zu).toUpperCase();return e.indexOf($g)>-1?$g:Zu}():Zu;function YN(e,t){e=e.toUpperCase(),$w[e]=new yr(t),rg[e]=t}function Koe(e){if(qe(e)){var t=rg[e.toUpperCase()]||{};return e===$g||e===zw?Rt(t):Bt(Rt(t),Rt(rg[Zu]),!1)}else return Bt(Rt(e),Rt(rg[Zu]),!1)}function Xoe(e){return $w[e]}function Qoe(){return $w[Zu]}YN(zw,qoe);YN($g,Yoe);var Fw=1e3,Bw=Fw*60,Rd=Bw*60,Pi=Rd*24,hM=Pi*365,rd={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Tv="{yyyy}-{MM}-{dd}",vM={year:"{yyyy}",month:"{yyyy}-{MM}",day:Tv,hour:Tv+" "+rd.hour,minute:Tv+" "+rd.minute,second:Tv+" "+rd.second,millisecond:rd.none},vx=["year","month","day","hour","minute","second","millisecond"],KN=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ka(e,t){return e+="","0000".substr(0,t-e.length)+e}function Ju(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function Zoe(e){return e===Ju(e)}function Joe(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function Km(e,t,r,n){var i=ba(e),o=i[jw(r)](),a=i[ec(r)]()+1,s=Math.floor((a-1)/3)+1,l=i[Xm(r)](),c=i["get"+(r?"UTC":"")+"Day"](),f=i[np(r)](),p=(f-1)%12+1,v=i[Qm(r)](),h=i[Zm(r)](),g=i[Jm(r)](),x=f>=12?"pm":"am",y=x.toUpperCase(),b=n instanceof yr?n:Xoe(n||qN)||Qoe(),S=b.getModel("time"),_=S.get("month"),C=S.get("monthAbbr"),k=S.get("dayOfWeek"),T=S.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,x+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,Ka(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[a-1]).replace(/{MMM}/g,C[a-1]).replace(/{MM}/g,Ka(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Ka(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,k[c]).replace(/{ee}/g,T[c]).replace(/{e}/g,c+"").replace(/{HH}/g,Ka(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Ka(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,Ka(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Ka(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Ka(g,3)).replace(/{S}/g,g+"")}function eae(e,t,r,n,i){var o=null;if(qe(r))o=r;else if(ft(r))o=r(e.value,t,{level:e.level});else{var a=Ie({},rd);if(e.level>0)for(var s=0;s<vx.length;++s)a[vx[s]]="{primary|"+a[vx[s]]+"}";var l=r?r.inherit===!1?r:Gt(r,a):a,c=XN(e.value,i);if(l[c])o=l[c];else if(l.inherit){for(var f=KN.indexOf(c),s=f-1;s>=0;--s)if(l[c]){o=l[c];break}o=o||a.none}if(Be(o)){var p=e.level==null?0:e.level>=0?e.level:o.length+e.level;p=Math.min(p,o.length-1),o=o[p]}}return Km(new Date(e.value),o,i,n)}function XN(e,t){var r=ba(e),n=r[ec(t)]()+1,i=r[Xm(t)](),o=r[np(t)](),a=r[Qm(t)](),s=r[Zm(t)](),l=r[Jm(t)](),c=l===0,f=c&&s===0,p=f&&a===0,v=p&&o===0,h=v&&i===1,g=h&&n===1;return g?"year":h?"month":v?"day":p?"hour":f?"minute":c?"second":"millisecond"}function gM(e,t,r){var n=ur(e)?ba(e):e;switch(t=t||XN(e,r),t){case"year":return n[jw(r)]();case"half-year":return n[ec(r)]()>=6?1:0;case"quarter":return Math.floor((n[ec(r)]()+1)/4);case"month":return n[ec(r)]();case"day":return n[Xm(r)]();case"half-day":return n[np(r)]()/24;case"hour":return n[np(r)]();case"minute":return n[Qm(r)]();case"second":return n[Zm(r)]();case"millisecond":return n[Jm(r)]()}}function jw(e){return e?"getUTCFullYear":"getFullYear"}function ec(e){return e?"getUTCMonth":"getMonth"}function Xm(e){return e?"getUTCDate":"getDate"}function np(e){return e?"getUTCHours":"getHours"}function Qm(e){return e?"getUTCMinutes":"getMinutes"}function Zm(e){return e?"getUTCSeconds":"getSeconds"}function Jm(e){return e?"getUTCMilliseconds":"getMilliseconds"}function tae(e){return e?"setUTCFullYear":"setFullYear"}function QN(e){return e?"setUTCMonth":"setMonth"}function ZN(e){return e?"setUTCDate":"setDate"}function JN(e){return e?"setUTCHours":"setHours"}function e5(e){return e?"setUTCMinutes":"setMinutes"}function t5(e){return e?"setUTCSeconds":"setSeconds"}function r5(e){return e?"setUTCMilliseconds":"setMilliseconds"}function n5(e){if(!cne(e))return qe(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function i5(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var ey=SO;function s_(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(f){return f&&Eo(f)?f:"-"}function o(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var a=t==="time",s=e instanceof Date;if(a||s){var l=a?ba(e):e;if(isNaN(+l)){if(s)return"-"}else return Km(l,n,r)}if(t==="ordinal")return Lb(e)?i(e):ur(e)&&o(e)?e+"":"-";var c=Ig(e);return o(c)?n5(c):Lb(e)?i(e):typeof e=="boolean"?e+"":"-"}var mM=["a","b","c","d","e","f","g"],gx=function(e,t){return"{"+e+(t??"")+"}"};function o5(e,t,r){Be(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],o=0;o<i.length;o++){var a=mM[o];e=e.replace(gx(a),gx(a,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var c=t[s][i[l]];e=e.replace(gx(mM[l],s),r?ei(c):c)}return e}function rae(e,t){var r=qe(e)?{color:e,extraCssText:t}:e||{},n=r.color,i=r.type;t=r.extraCssText;var o=r.renderMode||"html";if(!n)return"";if(o==="html")return i==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+ei(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+ei(n)+";"+(t||"")+'"></span>';var a=r.markerId||"markerX";return{renderMode:o,content:"{"+a+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function zl(e,t){return t=t||"transparent",qe(e)?e:rt(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function yM(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var ng=X,nae=["left","right","top","bottom","width","height"],kv=[["width","left","right"],["height","top","bottom"]];function Hw(e,t,r,n,i){var o=0,a=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,c){var f=l.getBoundingRect(),p=t.childAt(c+1),v=p&&p.getBoundingRect(),h,g;if(e==="horizontal"){var x=f.width+(v?-v.x+f.x:0);h=o+x,h>n||l.newline?(o=0,h=x,a+=s+r,s=f.height):s=Math.max(s,f.height)}else{var y=f.height+(v?-v.y+f.y:0);g=a+y,g>i||l.newline?(o+=s+r,a=0,g=y,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),e==="horizontal"?o=h+r:a=g+r)})}var Ed=Hw;Nr(Hw,"vertical");Nr(Hw,"horizontal");function ip(e,t,r){r=ey(r||0);var n=t.width,i=t.height,o=vn(e.left,n),a=vn(e.top,i),s=vn(e.right,n),l=vn(e.bottom,i),c=vn(e.width,n),f=vn(e.height,i),p=r[2]+r[0],v=r[1]+r[3],h=e.aspect;switch(isNaN(c)&&(c=n-s-v-o),isNaN(f)&&(f=i-l-p-a),h!=null&&(isNaN(c)&&isNaN(f)&&(h>n/i?c=n*.8:f=i*.8),isNaN(c)&&(c=h*f),isNaN(f)&&(f=c/h)),isNaN(o)&&(o=n-s-c-v),isNaN(a)&&(a=i-l-f-p),e.left||e.right){case"center":o=n/2-c/2-r[3];break;case"right":o=n-c-v;break}switch(e.top||e.bottom){case"middle":case"center":a=i/2-f/2-r[0];break;case"bottom":a=i-f-p;break}o=o||0,a=a||0,isNaN(c)&&(c=n-v-o-(s||0)),isNaN(f)&&(f=i-p-a-(l||0));var g=new jt(o+r[3],a+r[0],c,f);return g.margin=r,g}function op(e){var t=e.layoutMode||e.constructor.layoutMode;return rt(t)?t:t?{type:t}:null}function dc(e,t,r){var n=r&&r.ignoreSize;!Be(n)&&(n=[n,n]);var i=a(kv[0],0),o=a(kv[1],1);c(kv[0],e,i),c(kv[1],e,o);function a(f,p){var v={},h=0,g={},x=0,y=2;if(ng(f,function(_){g[_]=e[_]}),ng(f,function(_){s(t,_)&&(v[_]=g[_]=t[_]),l(v,_)&&h++,l(g,_)&&x++}),n[p])return l(t,f[1])?g[f[2]]=null:l(t,f[2])&&(g[f[1]]=null),g;if(x===y||!h)return g;if(h>=y)return v;for(var b=0;b<f.length;b++){var S=f[b];if(!s(v,S)&&s(e,S)){v[S]=e[S];break}}return v}function s(f,p){return f.hasOwnProperty(p)}function l(f,p){return f[p]!=null&&f[p]!=="auto"}function c(f,p,v){ng(f,function(h){p[h]=v[h]})}}function ty(e){return iae({},e)}function iae(e,t){return t&&e&&ng(nae,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var oae=Ir(),Vt=function(e){$e(t,e);function t(r,n,i){var o=e.call(this,r,n,i)||this;return o.uid=Ym("ec_cpt_model"),o}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=op(this),o=i?ty(r):{},a=n.getTheme();Bt(r,a.get(this.mainType)),Bt(r,this.getDefaultOption()),i&&dc(r,o,i)},t.prototype.mergeOption=function(r,n){Bt(this.option,r,!0);var i=op(this);i&&dc(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!Rte(r))return r.defaultOption;var n=oae(this);if(!n.defaultOption){for(var i=[],o=r;o;){var a=o.prototype.defaultOption;a&&i.push(a),o=o.superClass}for(var s={},l=i.length-1;l>=0;l--)s=Bt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",o=r+"Id";return Ap(this.ecModel,r,{index:this.get(i,!0),id:this.get(o,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(yr);RO(Vt,yr);Lm(Vt);$oe(Vt);Foe(Vt,aae);function aae(e){var t=[];return X(Vt.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=at(t,function(r){return Po(r).main}),e!=="dataset"&&qt(t,"dataset")<=0&&t.unshift("dataset"),t}var xM=Ir();Ir();var Ww=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=yn(this.get("color",!0)),o=this.get("colorLayer",!0);return lae(this,xM,i,o,t,r,n)},e.prototype.clearColorPalette=function(){uae(this,xM)},e}();function sae(e,t){for(var r=e.length,n=0;n<r;n++)if(e[n].length>t)return e[n];return e[r-1]}function lae(e,t,r,n,i,o,a){o=o||e;var s=t(o),l=s.paletteIdx||0,c=s.paletteNameMap=s.paletteNameMap||{};if(c.hasOwnProperty(i))return c[i];var f=a==null||!n?r:sae(n,a);if(f=f||r,!(!f||!f.length)){var p=f[l];return i&&(c[i]=p),s.paletteIdx=(l+1)%f.length,p}}function uae(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var cae=/\{@(.+?)\}/g,fae=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),i=this.getRawValue(t,r),o=n.getRawIndex(t),a=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),c=l&&l[n.getItemVisual(t,"drawType")||"fill"],f=l&&l.stroke,p=this.mainType,v=p==="series",h=n.userOutput&&n.userOutput.get();return{componentType:p,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:v?this.subType:null,seriesIndex:this.seriesIndex,seriesId:v?this.id:null,seriesName:v?this.name:null,name:a,dataIndex:o,data:s,dataType:r,value:i,color:c,borderColor:f,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,i,o,a){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(a&&(l.value=a.interpolatedValue),i!=null&&Be(l.value)&&(l.value=l.value[i]),!o){var c=s.getItemModel(t);o=c.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(ft(o))return l.status=r,l.dimensionIndex=i,o(l);if(qe(o)){var f=o5(o,l);return f.replace(cae,function(p,v){var h=v.length,g=v;g.charAt(0)==="["&&g.charAt(h-1)==="]"&&(g=+g.slice(1,h-1));var x=fc(s,t,g);if(a&&Be(a.interpolatedValue)){var y=s.getDimensionIndex(g);y>=0&&(x=a.interpolatedValue[y])}return x!=null?x+"":""})}},e.prototype.getRawValue=function(t,r){return fc(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function bM(e){var t,r;return rt(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Pd(e){return new dae(e)}var dae=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var o;this._plan&&!n&&(o=this._plan(this.context));var a=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),c=t&&t.modDataCount||0;(a!==l||s!==c)&&(o="reset");function f(S){return!(S>=1)&&(S=1),S}var p;(this._dirty||o==="reset")&&(this._dirty=!1,p=this._doReset(n)),this._modBy=l,this._modDataCount=c;var v=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,g=Math.min(v!=null?this._dueIndex+v:1/0,this._dueEnd);if(!n&&(p||h<g)){var x=this._progress;if(Be(x))for(var y=0;y<x.length;y++)this._doProgress(x[y],h,g,l,c);else this._doProgress(x,h,g,l,c)}this._dueIndex=g;var b=this._settedOutputEnd!=null?this._settedOutputEnd:g;this._outputDueEnd=b}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},e.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},e.prototype._doProgress=function(t,r,n,i,o){_M.reset(r,n,i,o),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:_M.next},this.context)},e.prototype._doReset=function(t){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var r,n;!t&&this._reset&&(r=this._reset(this.context),r&&r.progress&&(n=r.forceFirstProgress,r=r.progress),Be(r)&&!r.length&&(r=null)),this._progress=r,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),n},e.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},e.prototype.pipe=function(t){(this._downstream!==t||this._dirty)&&(this._downstream=t,t._upstream=this,t.dirty())},e.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},e.prototype.getUpstream=function(){return this._upstream},e.prototype.getDownstream=function(){return this._downstream},e.prototype.setOutputEnd=function(t){this._outputDueEnd=this._settedOutputEnd=t},e}(),_M=function(){var e,t,r,n,i,o={reset:function(l,c,f,p){t=l,e=c,r=f,n=p,i=Math.ceil(n/r),o.next=r>1&&n>0?s:a}};return o;function a(){return t<e?t++:null}function s(){var l=t%i*r+Math.ceil(t/i),c=t>=e?null:l<n?l:t;return t++,c}}(),pae=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return tg(t,r)},e}();function hae(e,t){var r=new pae,n=e.data,i=r.sourceFormat=e.sourceFormat,o=e.startIndex,a="";e.seriesLayoutBy!==ha&&Dn(a);var s=[],l={},c=e.dimensionsDefine;if(c)X(c,function(x,y){var b=x.name,S={index:y,name:b,displayName:x.displayName};if(s.push(S),b!=null){var _="";cc(l,b)&&Dn(_),l[b]=S}});else for(var f=0;f<e.dimensionsDetectedCount;f++)s.push({index:f});var p=NN(i,ha);t.__isBuiltIn&&(r.getRawDataItem=function(x){return p(n,o,s,x)},r.getRawData=pr(vae,null,e)),r.cloneRawData=pr(gae,null,e);var v=zN(i,ha);r.count=pr(v,null,n,o,s);var h=$N(i);r.retrieveValue=function(x,y){var b=p(n,o,s,x);return g(b,y)};var g=r.retrieveValueFromItem=function(x,y){if(x!=null){var b=s[y];if(b)return h(x,y,b.name)}};return r.getDimensionInfo=pr(mae,null,s,l),r.cloneAllDimensionInfo=pr(yae,null,s),r}function vae(e){var t=e.sourceFormat;if(!Vw(t)){var r="";Dn(r)}return e.data}function gae(e){var t=e.sourceFormat,r=e.data;if(!Vw(t)){var n="";Dn(n)}if(t===Vn){for(var i=[],o=0,a=r.length;o<a;o++)i.push(r[o].slice());return i}else if(t===Go){for(var i=[],o=0,a=r.length;o<a;o++)i.push(Ie({},r[o]));return i}}function mae(e,t,r){if(r!=null){if(ur(r)||!isNaN(r)&&!cc(t,r))return e[r];if(cc(t,r))return t[r]}}function yae(e){return Rt(e)}var a5=yt();function xae(e){e=Rt(e);var t=e.type,r="";t||Dn(r);var n=t.split(":");n.length!==2&&Dn(r);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,a5.set(t,e)}function bae(e,t,r){var n=yn(e),i=n.length,o="";i||Dn(o);for(var a=0,s=i;a<s;a++){var l=n[a];t=_ae(l,t),a!==s-1&&(t.length=Math.max(t.length,1))}return t}function _ae(e,t,r,n){var i="";t.length||Dn(i),rt(e)||Dn(i);var o=e.type,a=a5.get(o);a||Dn(i);var s=at(t,function(c){return hae(c,a)}),l=yn(a.transform({upstream:s[0],upstreamList:s,config:Rt(e.config)}));return at(l,function(c,f){var p="";rt(c)||Dn(p),c.data||Dn(p);var v=DN(c.data);Vw(v)||Dn(p);var h,g=t[0];if(g&&f===0&&!c.dimensions){var x=g.startIndex;x&&(c.data=g.data.slice(0,x).concat(c.data)),h={seriesLayoutBy:ha,sourceHeader:x,dimensions:g.metaRawOption.dimensions}}else h={seriesLayoutBy:ha,sourceHeader:0,dimensions:c.dimensions};return n_(c.data,h,null)})}function Vw(e){return e===Vn||e===Go}var Sae=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,o;if(Rv(t)){var a=t,s=void 0,l=void 0,c=void 0;if(n){var f=r[0];f.prepareSource(),c=f.getSource(),s=c.data,l=c.sourceFormat,o=[f._getVersionSign()]}else s=a.get("data",!0),l=Wn(s)?fs:Ni,o=[];var p=this._getSourceMetaRawOption()||{},v=c&&c.metaRawOption||{},h=wt(p.seriesLayoutBy,v.seriesLayoutBy)||null,g=wt(p.sourceHeader,v.sourceHeader),x=wt(p.dimensions,v.dimensions),y=h!==v.seriesLayoutBy||!!g!=!!v.sourceHeader||x;i=y?[n_(s,{seriesLayoutBy:h,sourceHeader:g,dimensions:x},l)]:[]}else{var b=t;if(n){var S=this._applyTransform(r);i=S.sourceList,o=S.upstreamSignList}else{var _=b.get("source",!0);i=[n_(_,this._getSourceMetaRawOption(),null)],o=[]}}this._setLocalSource(i,o)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var o="";t.length!==1&&SM(o)}var a,s=[],l=[];return X(t,function(c){c.prepareSource();var f=c.getSource(i||0),p="";i!=null&&!f&&SM(p),s.push(f),l.push(c._getVersionSign())}),n?a=bae(n,s,{datasetIndex:r.componentIndex}):i!=null&&(a=[toe(s[0])]),{sourceList:a,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r<t.length;r++){var n=t[r];if(n._isDirty()||this._upstreamSignList[r]!==n._getVersionSign())return!0}},e.prototype.getSource=function(t){t=t||0;var r=this._sourceList[t];if(!r){var n=this._getUpstreamSourceManagers();return n[0]&&n[0].getSource(t)}return r},e.prototype.getSharedDataStore=function(t){var r=t.makeStoreSchema();return this._innerGetDataStore(r.dimensions,t.source,r.hash)},e.prototype._innerGetDataStore=function(t,r,n){var i=0,o=this._storeList,a=o[i];a||(a=o[i]={});var s=a[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Rv(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new i_,s.initData(new ON(r,t.length),t)),a[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Rv(t)){var r=MN(t);return r?[r.getSourceManager()]:[]}else return at(Jie(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(Rv(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=t;r=o.get("seriesLayoutBy",!0),n=o.get("sourceHeader",!0),i=o.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},e}();function Rv(e){return e.mainType==="series"}function SM(e){throw new Error(e)}var s5="line-height:1";function l5(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,i=e.fontWeight||"400",o=e.color||"#464646",a=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+ei(n+"")+"px;color:"+ei(r)+";font-weight:"+ei(i+""),valueStyle:"font-size:"+ei(a+"")+"px;color:"+ei(o)+";font-weight:"+ei(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var wae=[0,10,20,30],Cae=["",`
188
- `,`
189
-
190
- `,`
191
-
192
-
193
- `];function ap(e,t){return t.type=e,t}function l_(e){return e.type==="section"}function u5(e){return l_(e)?Tae:kae}function c5(e){if(l_(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return X(e.blocks,function(i){var o=c5(i);o>=t&&(t=o+ +(n&&(!o||l_(i)&&!i.noHeader)))}),t}return 0}function Tae(e,t,r,n){var i=t.noHeader,o=Rae(c5(t)),a=[],s=t.blocks||[];xa(!s||Be(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(cc(c,l)){var f=new foe(c[l],null);s.sort(function(g,x){return f.evaluate(g.sortParam,x.sortParam)})}else l==="seriesDesc"&&s.reverse()}X(s,function(g,x){var y=t.valueFormatter,b=u5(g)(y?Ie(Ie({},e),{valueFormatter:y}):e,g,x>0?o.html:0,n);b!=null&&a.push(b)});var p=e.renderMode==="richText"?a.join(o.richText):u_(a.join(""),i?r:o.html);if(i)return p;var v=s_(t.header,"ordinal",e.useUTC),h=l5(n,e.renderMode).nameStyle;return e.renderMode==="richText"?f5(e,v,h)+o.richText+p:u_('<div style="'+h+";"+s5+';">'+ei(v)+"</div>"+p,r)}function kae(e,t,r,n){var i=e.renderMode,o=t.noName,a=t.noValue,s=!t.markerType,l=t.name,c=e.useUTC,f=t.valueFormatter||e.valueFormatter||function(C){return C=Be(C)?C:[C],at(C,function(k,T){return s_(k,Be(h)?h[T]:h,c)})};if(!(o&&a)){var p=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),v=o?"":s_(l,"ordinal",c),h=t.valueType,g=a?[]:f(t.value,t.dataIndex),x=!s||!o,y=!s&&o,b=l5(n,i),S=b.nameStyle,_=b.valueStyle;return i==="richText"?(s?"":p)+(o?"":f5(e,v,S))+(a?"":Mae(e,g,x,y,_)):u_((s?"":p)+(o?"":Eae(v,!s,S))+(a?"":Pae(g,x,y,_)),r)}}function wM(e,t,r,n,i,o){if(e){var a=u5(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return a(s,e,0,o)}}function Rae(e){return{html:wae[e],richText:Cae[e]}}function u_(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+s5+';">'+e+r+"</div>"}function Eae(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+ei(e)+"</span>"}function Pae(e,t,r,n){var i=r?"10px":"20px",o=t?"float:right;margin-left:"+i:"";return e=Be(e)?e:[e],'<span style="'+o+";"+n+'">'+at(e,function(a){return ei(a)}).join("&nbsp;&nbsp;")+"</span>"}function f5(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function Mae(e,t,r,n,i){var o=[i],a=n?10:20;return r&&o.push({padding:[0,0,0,a],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Be(t)?t.join(" "):t,o)}function Iae(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return zl(n)}function d5(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var mx=function(){function e(){this.richTextStyles={},this._nextStyleNameId=QO()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,o=rae({color:r,type:t,renderMode:n,markerId:i});return qe(o)?o:(this.richTextStyles[i]=o.style,o.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};Be(r)?X(r,function(o){return Ie(n,o)}):Ie(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function Aae(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),o=i.mapDimensionsAll("defaultedTooltip"),a=o.length,s=t.getRawValue(r),l=Be(s),c=Iae(t,r),f,p,v,h;if(a>1||l&&!a){var g=Dae(s,t,r,o,c);f=g.inlineValues,p=g.inlineValueTypes,v=g.blocks,h=g.inlineValues[0]}else if(a){var x=i.getDimensionInfo(o[0]);h=f=fc(i,r,o[0]),p=x.type}else h=f=l?s[0]:s;var y=vw(t),b=y&&t.name||"",S=i.getName(r),_=n?b:S;return ap("section",{header:b,noHeader:n||!y,sortParam:h,blocks:[ap("nameValue",{markerType:"item",markerColor:c,name:_,noName:!Eo(_),value:f,valueType:p,dataIndex:r})].concat(v||[])})}function Dae(e,t,r,n,i){var o=t.getData(),a=xc(e,function(p,v,h){var g=o.getDimensionInfo(h);return p=p||g&&g.tooltip!==!1&&g.displayName!=null},!1),s=[],l=[],c=[];n.length?X(n,function(p){f(fc(o,r,p),p)}):X(e,f);function f(p,v){var h=o.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(a?c.push(ap("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:p,valueType:h.type})):(s.push(p),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:c}}var Xa=Ir();function Ev(e,t){return e.getName(t)||e.getId(t)}var Lae="__universalTransitionEnabled",xs=function(e){$e(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=Pd({count:Nae,reset:zae}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var o=Xa(this).sourceManager=new Sae(this);o.prepareSource();var a=this.getInitialData(r,i);TM(a,this),this.dataTask.context.data=a,Xa(this).dataBeforeProcessed=a,CM(this),this._initSelectedMapFromData(a)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=op(this),o=i?ty(r):{},a=this.subType;Vt.hasClass(a)&&(a+="Series"),Bt(r,n.getTheme().get(this.subType)),Bt(r,this.getDefaultOption()),RP(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&dc(r,o,i)},t.prototype.mergeOption=function(r,n){r=Bt(this.option,r,!0),this.fillDataTextStyle(r.data);var i=op(this);i&&dc(this.option,r,i);var o=Xa(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(r,n);TM(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,Xa(this).dataBeforeProcessed=a,CM(this),this._initSelectedMapFromData(a)},t.prototype.fillDataTextStyle=function(r){if(r&&!Wn(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&RP(r[i],"label",n)},t.prototype.getInitialData=function(r,n){},t.prototype.appendData=function(r){var n=this.getRawData();n.appendData(r.data)},t.prototype.getData=function(r){var n=c_(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return Xa(this).data},t.prototype.getAllData=function(){var r=this.getData();return r&&r.getLinkedDataAll?r.getLinkedDataAll():[{data:r}]},t.prototype.setData=function(r){var n=c_(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Xa(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return yt(r)},t.prototype.getSourceManager=function(){return Xa(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Xa(this).dataBeforeProcessed},t.prototype.getColorBy=function(){var r=this.get("colorBy");return r||"series"},t.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},t.prototype.getBaseAxis=function(){var r=this.coordinateSystem;return r&&r.getBaseAxis&&r.getBaseAxis()},t.prototype.formatTooltip=function(r,n,i){return Aae({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(ut.node&&!(r&&r.ssr))return!1;var n=this.getShallow("animation");return n&&this.getData().count()>this.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var o=this.ecModel,a=Ww.prototype.getColorFromPalette.call(this,r,n,i);return a||(a=o.getColorFromPalette(r,n,i)),a},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var o=this.option.selectedMode,a=this.getData(n);if(o==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],c=Ev(a,l);i[c]=!1,this._selectedDataIndicesMap[c]=-1}}},t.prototype.toggleSelect=function(r,n){for(var i=[],o=0;o<r.length;o++)i[0]=r[o],this.isSelected(r[o],n)?this.unselect(i,n):this.select(i,n)},t.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var r=this._selectedDataIndicesMap,n=lr(r),i=[],o=0;o<n.length;o++){var a=r[n[o]];a>=0&&i.push(a)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var o=this.getData(n);return(i==="all"||i[Ev(o,r)])&&!o.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Lae])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,o,a=this.option,s=a.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")a.selectedMap="all";else if(s==="multiple"){rt(a.selectedMap)||(a.selectedMap={});for(var c=a.selectedMap,f=0;f<l;f++){var p=n[f],v=Ev(r,p);c[v]=!0,this._selectedDataIndicesMap[v]=r.getRawIndex(p)}}else if(s==="single"||s===!0){var h=n[l-1],v=Ev(r,h);a.selectedMap=(i={},i[v]=!0,i),this._selectedDataIndicesMap=(o={},o[v]=r.getRawIndex(h),o)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var o=r.getRawDataItem(i);o&&o.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return Vt.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(Vt);Vo(xs,fae);Vo(xs,Ww);RO(xs,Vt);function CM(e){var t=e.name;vw(e)||(e.name=Oae(e)||t)}function Oae(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return X(r,function(i){var o=t.getDimensionInfo(i);o.displayName&&n.push(o.displayName)}),n.join(" ")}function Nae(e){return e.model.getRawData().count()}function zae(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),$ae}function $ae(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function TM(e,t){X(bte(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Nr(Fae,t))})}function Fae(e,t){var r=c_(e);return r&&r.setOutputEnd((t||this).count()),t}function c_(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}var Bae=Kt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,o=t.height/2;e.moveTo(r,n-o),e.lineTo(r+i,n+o),e.lineTo(r-i,n+o),e.closePath()}}),jae=Kt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(e,t){var r=t.cx,n=t.cy,i=t.width/2,o=t.height/2;e.moveTo(r,n-o),e.lineTo(r+i,n),e.lineTo(r,n+o),e.lineTo(r-i,n),e.closePath()}}),Hae=Kt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,n=t.y,i=t.width/5*3,o=Math.max(i,t.height),a=i/2,s=a*a/(o-a),l=n-o+a+s,c=Math.asin(s/a),f=Math.cos(c)*a,p=Math.sin(c),v=Math.cos(c),h=a*.6,g=a*.7;e.moveTo(r-f,l+s),e.arc(r,l,a,Math.PI-c,Math.PI*2+c),e.bezierCurveTo(r+f-p*h,l+s+v*h,r,n-g,r,n),e.bezierCurveTo(r,n-g,r-f+p*h,l+s+v*h,r-f,l+s),e.closePath()}}),Wae=Kt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.height,n=t.width,i=t.x,o=t.y,a=n/3*2;e.moveTo(i,o),e.lineTo(i+a,o+r),e.lineTo(i,o+r/4*3),e.lineTo(i-a,o+r),e.lineTo(i,o),e.closePath()}}),Vae={line:gs,rect:zr,roundRect:zr,square:zr,circle:Hm,diamond:jae,pin:Hae,arrow:Wae,triangle:Bae},Uae={line:function(e,t,r,n,i){i.x1=e,i.y1=t+n/2,i.x2=e+r,i.y2=t+n/2},rect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n},roundRect:function(e,t,r,n,i){i.x=e,i.y=t,i.width=r,i.height=n,i.r=Math.min(r,n)/4},square:function(e,t,r,n,i){var o=Math.min(r,n);i.x=e,i.y=t,i.width=o,i.height=o},circle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.r=Math.min(r,n)/2},diamond:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n},pin:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},arrow:function(e,t,r,n,i){i.x=e+r/2,i.y=t+n/2,i.width=r,i.height=n},triangle:function(e,t,r,n,i){i.cx=e+r/2,i.cy=t+n/2,i.width=r,i.height=n}},f_={};X(Vae,function(e,t){f_[t]=new e});var Gae=Kt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=MO(e,t,r),i=this.shape;return i&&i.symbolType==="pin"&&t.position==="inside"&&(n.y=r.y+r.height*.4),n},buildPath:function(e,t,r){var n=t.symbolType;if(n!=="none"){var i=f_[n];i||(n="rect",i=f_[n]),Uae[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function qae(e,t){if(this.type!=="image"){var r=this.style;this.__isEmptyBrush?(r.stroke=e,r.fill=t||"#fff",r.lineWidth=2):this.shape.symbolType==="line"?r.stroke=e:r.fill=e,this.markRedraw()}}function pc(e,t,r,n,i,o,a){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=xN(e.slice(8),new jt(t,r,n,i),a?"center":"cover"):e.indexOf("path://")===0?l=Rw(e.slice(7),{},new jt(t,r,n,i),a?"center":"cover"):l=new Gae({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=qae,o&&l.setColor(o),l}function Yae(e){return Be(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function p5(e,t){if(e!=null)return Be(e)||(e=[e,e]),[vn(e[0],t[0])||0,vn(wt(e[1],e[0]),t[1])||0]}var Kae=function(e){$e(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r){return Loe(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new rn,i=pc("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var o=this.getData().getVisual("symbol"),a=this.getData().getVisual("symbolRotate"),s=o==="none"?"circle":o,l=r.itemHeight*.8,c=pc(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(c),c.setStyle(r.itemStyle);var f=r.iconRotate==="inherit"?a:r.iconRotate||0;return c.rotation=f*Math.PI/180,c.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(c.style.stroke=c.style.fill,c.style.fill="#fff",c.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(xs);function h5(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=fc(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var o=[],a=0;a<r.length;a++)o.push(fc(e,t,r[a]));return o.join(" ")}}function Xae(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!Be(t))return t+"";for(var n=[],i=0;i<r.length;i++){var o=e.getDimensionIndex(r[i]);o>=0&&n.push(t[o])}return n.join(" ")}var Uw=function(e){$e(t,e);function t(r,n,i,o){var a=e.call(this)||this;return a.updateData(r,n,i,o),a}return t.prototype._createSymbol=function(r,n,i,o,a){this.removeAll();var s=pc(r,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),s.drift=Qae,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){Ag(this.childAt(0))},t.prototype.downplay=function(){Dg(this.childAt(0))},t.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},t.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},t.prototype.updateData=function(r,n,i,o){this.silent=!1;var a=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),c=a!==this._symbolType,f=o&&o.disableAnimation;if(c){var p=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(a,r,n,l,p)}else{var v=this.childAt(0);v.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};f?v.attr(h):ms(v,h,s,n),Cie(v)}if(this._updateCommon(r,n,l,i,o),c){var v=this.childAt(0);if(!f){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Dp(v,h,s,n)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,i,o,a){var s=this.childAt(0),l=r.hostModel,c,f,p,v,h,g,x,y,b;if(o&&(c=o.emphasisItemStyle,f=o.blurItemStyle,p=o.selectItemStyle,v=o.focus,h=o.blurScope,x=o.labelStatesModels,y=o.hoverScale,b=o.cursorStyle,g=o.emphasisDisabled),!o||r.hasItemOption){var S=o&&o.itemModel?o.itemModel:r.getItemModel(n),_=S.getModel("emphasis");c=_.getModel("itemStyle").getItemStyle(),p=S.getModel(["select","itemStyle"]).getItemStyle(),f=S.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),h=_.get("blurScope"),g=_.get("disabled"),x=Dw(S),y=_.getShallow("scale"),b=S.getShallow("cursor")}var C=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(C||0)*Math.PI/180||0);var k=p5(r.getItemVisual(n,"symbolOffset"),i);k&&(s.x=k[0],s.y=k[1]),b&&s.attr("cursor",b);var T=r.getItemVisual(n,"style"),E=T.fill;if(s instanceof ks){var I=s.style;s.useStyle(Ie({image:I.image,x:I.x,y:I.y,width:I.width,height:I.height},T))}else s.__isEmptyBrush?s.useStyle(Ie({},T)):s.useStyle(T),s.style.decal=null,s.setColor(E,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var D=r.getItemVisual(n,"liftZ"),A=this._z2;D!=null?A==null&&(this._z2=s.z2,s.z2+=D):A!=null&&(s.z2=A,this._z2=null);var L=a&&a.useNameLabel;Aw(s,x,{labelFetcher:l,labelDataIndex:n,defaultText:$,inheritColor:E,defaultOpacity:T.opacity});function $(W){return L?r.getName(W):h5(r,W)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var B=s.ensureState("emphasis");B.style=c,s.ensureState("select").style=p,s.ensureState("blur").style=f;var j=y==null||y===!0?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;B.scaleX=this._sizeX*j,B.scaleY=this._sizeY*j,this.setSymbolScale(1),Zb(this,v,h,g)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var o=this.childAt(0),a=Ut(this).dataIndex,s=i&&i.animation;if(this.silent=o.silent=!0,i&&i.fadeLabel){var l=o.getTextContent();l&&Og(l,{style:{opacity:0}},n,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();Og(o,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:a,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return Yae(r.getItemVisual(n,"symbolSize"))},t}(rn);function Qae(e,t){this.parent.drift(e,t)}function yx(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function kM(e){return e!=null&&!rt(e)&&(e={isIgnore:e}),e||{}}function RM(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Dw(t),cursorStyle:t.get("cursor")}}var Zae=function(){function e(t){this.group=new rn,this._SymbolCtor=t||Uw}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=kM(r);var n=this.group,i=t.hostModel,o=this._data,a=this._SymbolCtor,s=r.disableAnimation,l=RM(t),c={disableAnimation:s},f=r.getSymbolPoint||function(p){return t.getItemLayout(p)};o||n.removeAll(),t.diff(o).add(function(p){var v=f(p);if(yx(t,v,p,r)){var h=new a(t,p,l,c);h.setPosition(v),t.setItemGraphicEl(p,h),n.add(h)}}).update(function(p,v){var h=o.getItemGraphicEl(v),g=f(p);if(!yx(t,g,p,r)){n.remove(h);return}var x=t.getItemVisual(p,"symbol")||"circle",y=h&&h.getSymbolType&&h.getSymbolType();if(!h||y&&y!==x)n.remove(h),h=new a(t,p,l,c),h.setPosition(g);else{h.updateData(t,p,l,c);var b={x:g[0],y:g[1]};s?h.attr(b):ms(h,b,i)}n.add(h),t.setItemGraphicEl(p,h)}).remove(function(p){var v=o.getItemGraphicEl(p);v&&v.fadeOut(function(){n.remove(v)},i)}).execute(),this._getSymbolPoint=f,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var o=t._getSymbolPoint(i);n.setPosition(o),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=RM(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=kM(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var o=t.start;o<t.end;o++){var a=r.getItemLayout(o);if(yx(r,a,o,n)){var s=new this._SymbolCtor(r,o,this._seriesScope);s.traverse(i),s.setPosition(a),this.group.add(s),r.setItemGraphicEl(o,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){Iw(this._progressiveEls||this.group,t)},e.prototype.remove=function(t){var r=this.group,n=this._data;n&&t?n.eachItemGraphicEl(function(i){i.fadeOut(function(){r.remove(i)},n.hostModel)}):r.removeAll()},e}();function v5(e,t,r){var n=e.getBaseAxis(),i=e.getOtherAxis(n),o=Jae(i,r),a=n.dim,s=i.dim,l=t.mapDimension(s),c=t.mapDimension(a),f=s==="x"||s==="radius"?1:0,p=at(e.dimensions,function(g){return t.mapDimension(g)}),v=!1,h=t.getCalculationInfo("stackResultDimension");return rp(t,p[0])&&(v=!0,p[0]=h),rp(t,p[1])&&(v=!0,p[1]=h),{dataDimsForPoint:p,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!v,valueDim:l,baseDim:c,baseDataOffset:f,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Jae(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:ur(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function g5(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var o=e.baseDataOffset,a=[];return a[o]=r.get(e.baseDim,n),a[1-o]=i,t.dataToPoint(a)}var m5=typeof Float32Array<"u",ese=m5?Float32Array:Array;function ju(e){return Be(e)?m5?new Float32Array(e):e:new ese(e)}function tse(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function rse(e,t,r,n,i,o,a,s){for(var l=tse(e,t),c=[],f=[],p=[],v=[],h=[],g=[],x=[],y=v5(i,t,a),b=e.getLayout("points")||[],S=t.getLayout("points")||[],_=0;_<l.length;_++){var C=l[_],k=!0,T=void 0,E=void 0;switch(C.cmd){case"=":T=C.idx*2,E=C.idx1*2;var I=b[T],D=b[T+1],A=S[E],L=S[E+1];(isNaN(I)||isNaN(D))&&(I=A,D=L),c.push(I,D),f.push(A,L),p.push(r[T],r[T+1]),v.push(n[E],n[E+1]),x.push(t.getRawIndex(C.idx1));break;case"+":var $=C.idx,B=y.dataDimsForPoint,j=i.dataToPoint([t.get(B[0],$),t.get(B[1],$)]);E=$*2,c.push(j[0],j[1]),f.push(S[E],S[E+1]);var W=g5(y,i,t,$);p.push(W[0],W[1]),v.push(n[E],n[E+1]),x.push(t.getRawIndex($));break;case"-":k=!1}k&&(h.push(C),g.push(g.length))}g.sort(function(ve,te){return x[ve]-x[te]});for(var q=c.length,Z=ju(q),V=ju(q),G=ju(q),N=ju(q),U=[],_=0;_<g.length;_++){var Q=g[_],H=_*2,oe=Q*2;Z[H]=c[oe],Z[H+1]=c[oe+1],V[H]=f[oe],V[H+1]=f[oe+1],G[H]=p[oe],G[H+1]=p[oe+1],N[H]=v[oe],N[H+1]=v[oe+1],U[_]=h[Q]}return{current:Z,next:V,stackedOnCurrent:G,stackedOnNext:N,status:U}}var Qa=Math.min,Za=Math.max;function Tl(e,t){return isNaN(e)||isNaN(t)}function d_(e,t,r,n,i,o,a,s,l){for(var c,f,p,v,h,g,x=r,y=0;y<n;y++){var b=t[x*2],S=t[x*2+1];if(x>=i||x<0)break;if(Tl(b,S)){if(l){x+=o;continue}break}if(x===r)e[o>0?"moveTo":"lineTo"](b,S),p=b,v=S;else{var _=b-c,C=S-f;if(_*_+C*C<.5){x+=o;continue}if(a>0){for(var k=x+o,T=t[k*2],E=t[k*2+1];T===b&&E===S&&y<n;)y++,k+=o,x+=o,T=t[k*2],E=t[k*2+1],b=t[x*2],S=t[x*2+1],_=b-c,C=S-f;var I=y+1;if(l)for(;Tl(T,E)&&I<n;)I++,k+=o,T=t[k*2],E=t[k*2+1];var D=.5,A=0,L=0,$=void 0,B=void 0;if(I>=n||Tl(T,E))h=b,g=S;else{A=T-c,L=E-f;var j=b-c,W=T-b,q=S-f,Z=E-S,V=void 0,G=void 0;if(s==="x"){V=Math.abs(j),G=Math.abs(W);var N=A>0?1:-1;h=b-N*V*a,g=S,$=b+N*G*a,B=S}else if(s==="y"){V=Math.abs(q),G=Math.abs(Z);var U=L>0?1:-1;h=b,g=S-U*V*a,$=b,B=S+U*G*a}else V=Math.sqrt(j*j+q*q),G=Math.sqrt(W*W+Z*Z),D=G/(G+V),h=b-A*a*(1-D),g=S-L*a*(1-D),$=b+A*a*D,B=S+L*a*D,$=Qa($,Za(T,b)),B=Qa(B,Za(E,S)),$=Za($,Qa(T,b)),B=Za(B,Qa(E,S)),A=$-b,L=B-S,h=b-A*V/G,g=S-L*V/G,h=Qa(h,Za(c,b)),g=Qa(g,Za(f,S)),h=Za(h,Qa(c,b)),g=Za(g,Qa(f,S)),A=b-h,L=S-g,$=b+A*G/V,B=S+L*G/V}e.bezierCurveTo(p,v,h,g,b,S),p=$,v=B}else e.lineTo(b,S)}c=b,f=S,x+=o}return y}var y5=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),nse=function(e){$e(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new y5},t.prototype.buildPath=function(r,n){var i=n.points,o=0,a=i.length/2;if(n.connectNulls){for(;a>0&&Tl(i[a*2-2],i[a*2-1]);a--);for(;o<a&&Tl(i[o*2],i[o*2+1]);o++);}for(;o<a;)o+=d_(r,i,o,a,a,1,n.smooth,n.smoothMonotone,n.connectNulls)+1},t.prototype.getPointOn=function(r,n){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,o=i.data,a=Ol.CMD,s,l,c=n==="x",f=[],p=0;p<o.length;){var v=o[p++],h=void 0,g=void 0,x=void 0,y=void 0,b=void 0,S=void 0,_=void 0;switch(v){case a.M:s=o[p++],l=o[p++];break;case a.L:if(h=o[p++],g=o[p++],_=c?(r-s)/(h-s):(r-l)/(g-l),_<=1&&_>=0){var C=c?(g-l)*_+l:(h-s)*_+s;return c?[r,C]:[C,r]}s=h,l=g;break;case a.C:h=o[p++],g=o[p++],x=o[p++],y=o[p++],b=o[p++],S=o[p++];var k=c?Cg(s,h,x,b,r,f):Cg(l,g,y,S,r,f);if(k>0)for(var T=0;T<k;T++){var E=f[T];if(E<=1&&E>=0){var C=c?Hr(l,g,y,S,E):Hr(s,h,x,b,E);return c?[r,C]:[C,r]}}s=b,l=S;break}}},t}(Kt),ise=function(e){$e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(y5),ose=function(e){$e(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new ise},t.prototype.buildPath=function(r,n){var i=n.points,o=n.stackedOnPoints,a=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&Tl(i[s*2-2],i[s*2-1]);s--);for(;a<s&&Tl(i[a*2],i[a*2+1]);a++);}for(;a<s;){var c=d_(r,i,a,s,s,1,n.smooth,l,n.connectNulls);d_(r,o,a+c-1,c,s,-1,n.stackedOnSmooth,l,n.connectNulls),a+=c+1,r.closePath()}},t}(Kt);function x5(){var e=Ir();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,o=!!r.progressiveRender,a=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==a||o!==s)&&"reset"}}var b5=Ir(),ase=x5(),No=function(){function e(){this.group=new rn,this.uid=Ym("viewChart"),this.renderTask=Pd({plan:sse,reset:lse}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var o=t.getData(i&&i.dataType);o&&PM(o,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var o=t.getData(i&&i.dataType);o&&PM(o,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){Iw(this.group,t)},e.markUpdateMethod=function(t,r){b5(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function EM(e,t,r){e&&Jb(e)&&(t==="emphasis"?Ag:Dg)(e,r)}function PM(e,t,r){var n=Nl(e,t),i=t&&t.highlightKey!=null?Une(t.highlightKey):null;n!=null?X(yn(n),function(o){EM(e.getItemGraphicEl(o),r,i)}):e.eachItemGraphicEl(function(o){EM(o,r,i)})}aw(No);Lm(No);function sse(e){return ase(e.model)}function lse(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,o=t.pipelineContext.progressiveRender,a=e.view,s=i&&b5(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](t,r,n,i),use[l]}var use={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}};function cse(e,t,r,n,i){var o=e.getArea(),a=o.x,s=o.y,l=o.width,c=o.height,f=r.get(["lineStyle","width"])||2;a-=f/2,s-=f/2,l+=f,c+=f,l=Math.ceil(l),a!==Math.floor(a)&&(a=Math.floor(a),l++);var p=new zr({shape:{x:a,y:s,width:l,height:c}});if(t){var v=e.getBaseAxis(),h=v.isHorizontal(),g=v.inverse;h?(g&&(p.shape.x+=l),p.shape.width=0):(g||(p.shape.y+=c),p.shape.height=0);var x=ft(i)?function(y){i(y,p)}:null;Dp(p,{shape:{width:l,height:c,x:a,y:s}},r,null,n,x)}return p}function fse(e,t,r){var n=e.getArea(),i=Tr(n.r0,1),o=Tr(n.r,1),a=new Wm({shape:{cx:Tr(e.cx,1),cy:Tr(e.cy,1),r0:i,r:o,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?a.shape.endAngle=n.startAngle:a.shape.r=i,Dp(a,{shape:{endAngle:n.endAngle,r:o}},r)}return a}function dse(e,t){return e.type===t}function MM(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function IM(e){for(var t=1/0,r=1/0,n=-1/0,i=-1/0,o=0;o<e.length;){var a=e[o++],s=e[o++];isNaN(a)||(t=Math.min(a,t),n=Math.max(a,n)),isNaN(s)||(r=Math.min(s,r),i=Math.max(s,i))}return[[t,r],[n,i]]}function AM(e,t){var r=IM(e),n=r[0],i=r[1],o=IM(t),a=o[0],s=o[1];return Math.max(Math.abs(n[0]-a[0]),Math.abs(n[1]-a[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function DM(e){return ur(e)?e:e?.5:0}function pse(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),i=ju(n*2),o=0;o<n;o++){var a=g5(r,e,t,o);i[o*2]=a[0],i[o*2+1]=a[1]}return i}function Ja(e,t,r,n){var i=t.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,a=[],s=0,l=[],c=[],f=[],p=[];if(n){for(s=0;s<e.length;s+=2)!isNaN(e[s])&&!isNaN(e[s+1])&&p.push(e[s],e[s+1]);e=p}for(s=0;s<e.length-2;s+=2)switch(f[0]=e[s+2],f[1]=e[s+3],c[0]=e[s],c[1]=e[s+1],a.push(c[0],c[1]),r){case"end":l[o]=f[o],l[1-o]=c[1-o],a.push(l[0],l[1]);break;case"middle":var v=(c[o]+f[o])/2,h=[];l[o]=h[o]=v,l[1-o]=c[1-o],h[1-o]=f[1-o],a.push(l[0],l[1]),a.push(h[0],h[1]);break;default:l[o]=c[o],l[1-o]=f[1-o],a.push(l[0],l[1])}return a.push(e[s++],e[s++]),a}function hse(e,t){var r=[],n=e.length,i,o;function a(f,p,v){var h=f.coord,g=(v-h)/(p.coord-h),x=fre(g,[f.color,p.color]);return{coord:v,color:x}}for(var s=0;s<n;s++){var l=e[s],c=l.coord;if(c<0)i=l;else if(c>t){o?r.push(a(o,l,t)):i&&r.push(a(i,l,0),a(i,l,t));break}else i&&(r.push(a(i,l,0)),i=null),r.push(l),o=l}return r}function vse(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var i,o,a=n.length-1;a>=0;a--){var s=e.getDimensionInfo(n[a].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){o=n[a];break}}if(o){var l=t.getAxis(i),c=at(o.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),f=c.length,p=o.outerColors.slice();f&&c[0].coord>c[f-1].coord&&(c.reverse(),p.reverse());var v=hse(c,i==="x"?r.getWidth():r.getHeight()),h=v.length;if(!h&&f)return c[0].coord<0?p[1]?p[1]:c[f-1].color:p[0]?p[0]:c[0].color;var g=10,x=v[0].coord-g,y=v[h-1].coord+g,b=y-x;if(b<.001)return"transparent";X(v,function(_){_.offset=(_.coord-x)/b}),v.push({offset:h?v[h-1].offset:.5,color:p[1]||"transparent"}),v.unshift({offset:h?v[0].offset:.5,color:p[0]||"transparent"});var S=new yN(0,0,0,0,v,!0);return S[i]=x,S[i+"2"]=y,S}}}function gse(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var o=r.getAxesByScale("ordinal")[0];if(o&&!(i&&mse(o,t))){var a=t.mapDimension(o.dim),s={};return X(o.getViewLabels(),function(l){var c=o.scale.getRawOrdinalNumber(l.tickValue);s[c]=1}),function(l){return!s.hasOwnProperty(t.get(a,l))}}}}function mse(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(Uw.getSymbolSize(t,a)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function yse(e,t){return isNaN(e)||isNaN(t)}function xse(e){for(var t=e.length/2;t>0&&yse(e[t*2-2],e[t*2-1]);t--);return t-1}function LM(e,t){return[e[t*2],e[t*2+1]]}function bse(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,o,a,s=0,l=-1,c=0;c<n;c++)if(a=e[c*2+i],!(isNaN(a)||isNaN(e[c*2+1-i]))){if(c===0){o=a;continue}if(o<=t&&a>=t||o>=t&&a<=t){l=c;break}s=c,o=a}return{range:[s,l],t:(t-o)/(a-o)}}function _5(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<jo.length;t++)if(e.get([jo[t],"endLabel","show"]))return!0;return!1}function xx(e,t,r,n){if(dse(t,"cartesian2d")){var i=n.getModel("endLabel"),o=i.get("valueAnimation"),a=n.getData(),s={lastFrameIndex:0},l=_5(n)?function(h,g){e._endLabelOnDuring(h,g,a,s,o,i,t)}:null,c=t.getBaseAxis().isHorizontal(),f=cse(t,r,n,function(){var h=e._endLabel;h&&r&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!n.get("clip",!0)){var p=f.shape,v=Math.max(p.width,p.height);c?(p.y-=v,p.height+=v*2):(p.x-=v,p.width+=v*2)}return l&&l(1,f),f}else return fse(t,r,n)}function _se(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,o=n?i?"right":"left":"center",a=n?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||o,verticalAlign:e.get("verticalAlign")||a}}}var Sse=function(e){$e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new rn,n=new Zae;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r},t.prototype.render=function(r,n,i){var o=this,a=r.coordinateSystem,s=this.group,l=r.getData(),c=r.getModel("lineStyle"),f=r.getModel("areaStyle"),p=l.getLayout("points")||[],v=a.type==="polar",h=this._coordSys,g=this._symbolDraw,x=this._polyline,y=this._polygon,b=this._lineGroup,S=!n.ssr&&r.get("animation"),_=!f.isEmpty(),C=f.get("origin"),k=v5(a,l,C),T=_&&pse(a,l,k),E=r.get("showSymbol"),I=r.get("connectNulls"),D=E&&!v&&gse(r,l,a),A=this._data;A&&A.eachItemGraphicEl(function(te,ge){te.__temp&&(s.remove(te),A.setItemGraphicEl(ge,null))}),E||g.remove(),s.add(b);var L=v?!1:r.get("step"),$;a&&a.getArea&&r.get("clip",!0)&&($=a.getArea(),$.width!=null?($.x-=.1,$.y-=.1,$.width+=.2,$.height+=.2):$.r0&&($.r0-=.5,$.r+=.5)),this._clipShapeForSymbol=$;var B=vse(l,a,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(x&&h.type===a.type&&L===this._step))E&&g.updateData(l,{isIgnore:D,clipShape:$,disableAnimation:!0,getSymbolPoint:function(te){return[p[te*2],p[te*2+1]]}}),S&&this._initSymbolLabelAnimation(l,a,$),L&&(p=Ja(p,a,L,I),T&&(T=Ja(T,a,L,I))),x=this._newPolyline(p),_?y=this._newPolygon(p,T):y&&(b.remove(y),y=this._polygon=null),v||this._initOrUpdateEndLabel(r,a,zl(B)),b.setClipPath(xx(this,a,!0,r));else{_&&!y?y=this._newPolygon(p,T):y&&!_&&(b.remove(y),y=this._polygon=null),v||this._initOrUpdateEndLabel(r,a,zl(B));var j=b.getClipPath();if(j){var W=xx(this,a,!1,r);Dp(j,{shape:W.shape},r)}else b.setClipPath(xx(this,a,!0,r));E&&g.updateData(l,{isIgnore:D,clipShape:$,disableAnimation:!0,getSymbolPoint:function(te){return[p[te*2],p[te*2+1]]}}),(!MM(this._stackedOnPoints,T)||!MM(this._points,p))&&(S?this._doUpdateAnimation(l,T,a,i,L,C,I):(L&&(p=Ja(p,a,L,I),T&&(T=Ja(T,a,L,I))),x.setShape({points:p}),y&&y.setShape({points:p,stackedOnPoints:T})))}var q=r.getModel("emphasis"),Z=q.get("focus"),V=q.get("blurScope"),G=q.get("disabled");if(x.useStyle(Gt(c.getLineStyle(),{fill:"none",stroke:B,lineJoin:"bevel"})),$P(x,r,"lineStyle"),x.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var N=x.getState("emphasis").style;N.lineWidth=+x.style.lineWidth+1}Ut(x).seriesIndex=r.seriesIndex,Zb(x,Z,V,G);var U=DM(r.get("smooth")),Q=r.get("smoothMonotone");if(x.setShape({smooth:U,smoothMonotone:Q,connectNulls:I}),y){var H=l.getCalculationInfo("stackedOnSeries"),oe=0;y.useStyle(Gt(f.getAreaStyle(),{fill:B,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),H&&(oe=DM(H.get("smooth"))),y.setShape({smooth:U,stackedOnSmooth:oe,smoothMonotone:Q,connectNulls:I}),$P(y,r,"areaStyle"),Ut(y).seriesIndex=r.seriesIndex,Zb(y,Z,V,G)}var ve=function(te){o._changePolyState(te)};l.eachItemGraphicEl(function(te){te&&(te.onHoverStateChange=ve)}),this._polyline.onHoverStateChange=ve,this._data=l,this._coordSys=a,this._stackedOnPoints=T,this._points=p,this._step=L,this._valueOrigin=C,r.get("triggerLineEvent")&&(this.packEventData(r,x),y&&this.packEventData(r,y))},t.prototype.packEventData=function(r,n){Ut(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,o){var a=r.getData(),s=Nl(a,o);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=a.getLayout("points"),c=a.getItemGraphicEl(s);if(!c){var f=l[s*2],p=l[s*2+1];if(isNaN(f)||isNaN(p)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(f,p))return;var v=r.get("zlevel")||0,h=r.get("z")||0;c=new Uw(a,s),c.x=f,c.y=p,c.setZ(v,h);var g=c.getSymbolPath().getTextContent();g&&(g.zlevel=v,g.z=h,g.z2=this._polyline.z2+1),c.__temp=!0,a.setItemGraphicEl(s,c),c.stopSymbolAnimation(!0),this.group.add(c)}c.highlight()}else No.prototype.highlight.call(this,r,n,i,o)},t.prototype.downplay=function(r,n,i,o){var a=r.getData(),s=Nl(a,o);if(this._changePolyState("normal"),s!=null&&s>=0){var l=a.getItemGraphicEl(s);l&&(l.__temp?(a.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else No.prototype.downplay.call(this,r,n,i,o)},t.prototype._changePolyState=function(r){var n=this._polygon;DP(this._polyline,r),n&&DP(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new nse({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new ose({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var o,a,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(o=s.isHorizontal(),a=!1):n.type==="polar"&&(o=s.dim==="angle",a=!0);var c=r.hostModel,f=c.get("animationDuration");ft(f)&&(f=f(null));var p=c.get("animationDelay")||0,v=ft(p)?p(null):p;r.eachItemGraphicEl(function(h,g){var x=h;if(x){var y=[h.x,h.y],b=void 0,S=void 0,_=void 0;if(i)if(a){var C=i,k=n.pointToCoord(y);o?(b=C.startAngle,S=C.endAngle,_=-k[1]/180*Math.PI):(b=C.r0,S=C.r,_=k[0])}else{var T=i;o?(b=T.x,S=T.x+T.width,_=h.x):(b=T.y+T.height,S=T.y,_=h.y)}var E=S===b?0:(_-b)/(S-b);l&&(E=1-E);var I=ft(p)?p(g):f*E+v,D=x.getSymbolPath(),A=D.getTextContent();x.attr({scaleX:0,scaleY:0}),x.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:I}),A&&A.animateFrom({style:{opacity:0}},{duration:300,delay:I}),D.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var o=r.getModel("endLabel");if(_5(r)){var a=r.getData(),s=this._polyline,l=a.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var c=this._endLabel;c||(c=this._endLabel=new tn({z2:200}),c.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var f=xse(l);f>=0&&(Aw(s,Dw(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:f,defaultText:function(p,v,h){return h!=null?Xae(a,h):h5(a,p)},enableTextSetter:!0},_se(o,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,o,a,s,l){var c=this._endLabel,f=this._polyline;if(c){r<1&&o.originalX==null&&(o.originalX=c.x,o.originalY=c.y);var p=i.getLayout("points"),v=i.hostModel,h=v.get("connectNulls"),g=s.get("precision"),x=s.get("distance")||0,y=l.getBaseAxis(),b=y.isHorizontal(),S=y.inverse,_=n.shape,C=S?b?_.x:_.y+_.height:b?_.x+_.width:_.y,k=(b?x:0)*(S?-1:1),T=(b?0:-x)*(S?-1:1),E=b?"x":"y",I=bse(p,C,E),D=I.range,A=D[1]-D[0],L=void 0;if(A>=1){if(A>1&&!h){var $=LM(p,D[0]);c.attr({x:$[0]+k,y:$[1]+T}),a&&(L=v.getRawValue(D[0]))}else{var $=f.getPointOn(C,E);$&&c.attr({x:$[0]+k,y:$[1]+T});var B=v.getRawValue(D[0]),j=v.getRawValue(D[1]);a&&(L=Tne(i,g,B,j,I.t))}o.lastFrameIndex=D[0]}else{var W=r===1||o.lastFrameIndex>0?D[0]:0,$=LM(p,W);a&&(L=v.getRawValue(W)),c.attr({x:$[0]+k,y:$[1]+T})}if(a){var q=CN(c);typeof q.setLabelText=="function"&&q.setLabelText(L)}}},t.prototype._doUpdateAnimation=function(r,n,i,o,a,s,l){var c=this._polyline,f=this._polygon,p=r.hostModel,v=rse(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),h=v.current,g=v.stackedOnCurrent,x=v.next,y=v.stackedOnNext;if(a&&(h=Ja(v.current,i,a,l),g=Ja(v.stackedOnCurrent,i,a,l),x=Ja(v.next,i,a,l),y=Ja(v.stackedOnNext,i,a,l)),AM(h,x)>3e3||f&&AM(g,y)>3e3){c.stopAnimation(),c.setShape({points:x}),f&&(f.stopAnimation(),f.setShape({points:x,stackedOnPoints:y}));return}c.shape.__points=v.current,c.shape.points=h;var b={shape:{points:x}};v.current!==h&&(b.shape.__points=v.next),c.stopAnimation(),ms(c,b,p),f&&(f.setShape({points:h,stackedOnPoints:g}),f.stopAnimation(),ms(f,{shape:{stackedOnPoints:y}},p),c.shape.points!==f.shape.points&&(f.shape.points=c.shape.points));for(var S=[],_=v.status,C=0;C<_.length;C++){var k=_[C].cmd;if(k==="="){var T=r.getItemGraphicEl(_[C].idx1);T&&S.push({el:T,ptIdx:C})}}c.animators&&c.animators.length&&c.animators[0].during(function(){f&&f.dirtyShape();for(var E=c.shape.__points,I=0;I<S.length;I++){var D=S[I].el,A=S[I].ptIdx*2;D.x=E[A],D.y=E[A+1],D.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(o,a){o.__temp&&(n.remove(o),i.setItemGraphicEl(a,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(No);function wse(e,t){return{seriesType:e,plan:x5(),reset:function(r){var n=r.getData(),i=r.coordinateSystem;if(r.pipelineContext,!!i){var o=at(i.dimensions,function(p){return n.mapDimension(p)}).slice(0,2),a=o.length,s=n.getCalculationInfo("stackResultDimension");rp(n,o[0])&&(o[0]=s),rp(n,o[1])&&(o[1]=s);var l=n.getStore(),c=n.getDimensionIndex(o[0]),f=n.getDimensionIndex(o[1]);return a&&{progress:function(p,v){for(var h=p.end-p.start,g=ju(h*a),x=[],y=[],b=p.start,S=0;b<p.end;b++){var _=void 0;if(a===1){var C=l.get(c,b);_=i.dataToPoint(C,null,y)}else x[0]=l.get(c,b),x[1]=l.get(f,b),_=i.dataToPoint(x,null,y);g[S++]=_[0],g[S++]=_[1]}v.setLayout("points",g)}}}}}}var Cse={average:function(e){for(var t=0,r=0,n=0;n<e.length;n++)isNaN(e[n])||(t+=e[n],r++);return r===0?NaN:t/r},sum:function(e){for(var t=0,r=0;r<e.length;r++)t+=e[r]||0;return t},max:function(e){for(var t=-1/0,r=0;r<e.length;r++)e[r]>t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r<e.length;r++)e[r]<t&&(t=e[r]);return isFinite(t)?t:NaN},minmax:function(e){for(var t=-1/0,r=-1/0,n=0;n<e.length;n++){var i=e[n],o=Math.abs(i);o>t&&(t=o,r=i)}return isFinite(r)?r:NaN},nearest:function(e){return e[0]}},Tse=function(e){return Math.round(e.length/2)};function kse(e){return{seriesType:e,reset:function(t,r,n){var i=t.getData(),o=t.get("sampling"),a=t.coordinateSystem,s=i.count();if(s>10&&a.type==="cartesian2d"&&o){var l=a.getBaseAxis(),c=a.getOtherAxis(l),f=l.getExtent(),p=n.getDevicePixelRatio(),v=Math.abs(f[1]-f[0])*(p||1),h=Math.round(s/v);if(isFinite(h)&&h>1){o==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(c.dim),1/h));var g=void 0;qe(o)?g=Cse[o]:ft(o)&&(g=o),g&&t.setData(i.downSample(i.mapDimension(c.dim),1/h,g,Tse))}}}}}function Rse(e){e.registerChartView(Sse),e.registerSeriesModel(Kae),e.registerLayout(wse("line")),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,kse("line"))}var Ese="__ec_stack_";function Pse(e){return e.get("stack")||Ese+e.seriesIndex}function S5(e){return e.dim+e.index}function Mse(e,t){var r=[];return t.eachSeriesByType(e,function(n){Ose(n)&&r.push(n)}),r}function Ise(e){var t={};X(e,function(l){var c=l.coordinateSystem,f=c.getBaseAxis();if(!(f.type!=="time"&&f.type!=="value"))for(var p=l.getData(),v=f.dim+"_"+f.index,h=p.getDimensionIndex(p.mapDimension(f.dim)),g=p.getStore(),x=0,y=g.count();x<y;++x){var b=g.get(h,x);t[v]?t[v].push(b):t[v]=[b]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(l,c){return l-c});for(var o=null,a=1;a<i.length;++a){var s=i[a]-i[a-1];s>0&&(o=o===null?s:Math.min(o,s))}r[n]=o}}return r}function Ase(e){var t=Ise(e),r=[];return X(e,function(n){var i=n.coordinateSystem,o=i.getBaseAxis(),a=o.getExtent(),s;if(o.type==="category")s=o.getBandWidth();else if(o.type==="value"||o.type==="time"){var l=o.dim+"_"+o.index,c=t[l],f=Math.abs(a[1]-a[0]),p=o.scale.getExtent(),v=Math.abs(p[1]-p[0]);s=c?f/v*c:f}else{var h=n.getData();s=Math.abs(a[1]-a[0])/h.count()}var g=vn(n.get("barWidth"),s),x=vn(n.get("barMaxWidth"),s),y=vn(n.get("barMinWidth")||(Nse(n)?.5:1),s),b=n.get("barGap"),S=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:g,barMaxWidth:x,barMinWidth:y,barGap:b,barCategoryGap:S,axisKey:S5(o),stackId:Pse(n)})}),Dse(r)}function Dse(e){var t={};X(e,function(n,i){var o=n.axisKey,a=n.bandWidth,s=t[o]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[o]=s;var c=n.stackId;l[c]||s.autoWidthCount++,l[c]=l[c]||{width:0,maxWidth:0};var f=n.barWidth;f&&!l[c].width&&(l[c].width=f,f=Math.min(s.remainedWidth,f),s.remainedWidth-=f);var p=n.barMaxWidth;p&&(l[c].maxWidth=p);var v=n.barMinWidth;v&&(l[c].minWidth=v);var h=n.barGap;h!=null&&(s.gap=h);var g=n.barCategoryGap;g!=null&&(s.categoryGap=g)});var r={};return X(t,function(n,i){r[i]={};var o=n.stacks,a=n.bandWidth,s=n.categoryGap;if(s==null){var l=lr(o).length;s=Math.max(35-l*4,15)+"%"}var c=vn(s,a),f=vn(n.gap,1),p=n.remainedWidth,v=n.autoWidthCount,h=(p-c)/(v+(v-1)*f);h=Math.max(h,0),X(o,function(b){var S=b.maxWidth,_=b.minWidth;if(b.width){var C=b.width;S&&(C=Math.min(C,S)),_&&(C=Math.max(C,_)),b.width=C,p-=C+f*C,v--}else{var C=h;S&&S<C&&(C=Math.min(S,p)),_&&_>C&&(C=_),C!==h&&(b.width=C,p-=C+f*C,v--)}}),h=(p-c)/(v+(v-1)*f),h=Math.max(h,0);var g=0,x;X(o,function(b,S){b.width||(b.width=h),x=b,g+=b.width*(1+f)}),x&&(g-=x.width*f);var y=-g/2;X(o,function(b,S){r[i][S]=r[i][S]||{bandWidth:a,offset:y,width:b.width},y+=b.width*(1+f)})}),r}function Lse(e,t,r){if(e&&t){var n=e[S5(t)];return n}}function Ose(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function Nse(e){return e.pipelineContext&&e.pipelineContext.large}var Fg="\0__throttleOriginMethod",OM="\0__throttleRate",NM="\0__throttleType";function w5(e,t,r){var n,i=0,o=0,a=null,s,l,c,f;t=t||0;function p(){o=new Date().getTime(),a=null,e.apply(l,c||[])}var v=function(){for(var h=[],g=0;g<arguments.length;g++)h[g]=arguments[g];n=new Date().getTime(),l=this,c=h;var x=f||t,y=f||r;f=null,s=n-(y?i:o)-x,clearTimeout(a),y?a=setTimeout(p,x):s>=0?p():a=setTimeout(p,-s),i=n};return v.clear=function(){a&&(clearTimeout(a),a=null)},v.debounceNextCall=function(h){f=h},v}function C5(e,t,r,n){var i=e[t];if(i){var o=i[Fg]||i,a=i[NM],s=i[OM];if(s!==r||a!==n){if(r==null)return e[t]=o;i=e[t]=w5(o,r,n==="debounce"),i[Fg]=o,i[NM]=n,i[OM]=r}return i}}function p_(e,t){var r=e[t];r&&r[Fg]&&(r.clear&&r.clear(),e[t]=r[Fg])}function Ru(e,t,r,n,i){var o=e+t;r.isSilent(o)||n.eachComponent({mainType:"series",subType:"pie"},function(a){for(var s=a.seriesIndex,l=a.option.selectedMap,c=i.selected,f=0;f<c.length;f++)if(c[f].seriesIndex===s){var p=a.getData(),v=Nl(p,i.fromActionPayload);r.trigger(o,{type:o,seriesId:a.id,name:Be(v)?p.getName(v[0]):p.getName(v),selected:qe(l)?l:Ie({},l)})}})}function zse(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(Ru("map","selectchanged",t,i,n),Ru("pie","selectchanged",t,i,n)):n.fromAction==="select"?(Ru("map","selected",t,i,n),Ru("pie","selected",t,i,n)):n.fromAction==="unselect"&&(Ru("map","unselected",t,i,n),Ru("pie","unselected",t,i,n))})}function $se(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var i=n.label,o=i.getComputedTransform(),a=i.getBoundingRect(),s=!o||o[1]<1e-5&&o[2]<1e-5,l=i.style.margin||0,c=a.clone();c.applyTransform(o),c.x-=l/2,c.y-=l/2,c.width+=l,c.height+=l;var f=s?new Lg(a,o):null;t.push({label:i,labelLine:n.labelLine,rect:c,localRect:a,obb:f,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:o})}}return t}function Fse(e){var t=[];e.sort(function(x,y){return y.priority-x.priority});var r=new jt(0,0,0,0);function n(x){if(!x.ignore){var y=x.ensureState("emphasis");y.ignore==null&&(y.ignore=!1)}x.ignore=!0}for(var i=0;i<e.length;i++){var o=e[i],a=o.axisAligned,s=o.localRect,l=o.transform,c=o.label,f=o.labelLine;r.copy(o.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var p=o.obb,v=!1,h=0;h<t.length;h++){var g=t[h];if(r.intersect(g.rect)){if(a&&g.axisAligned){v=!0;break}if(g.obb||(g.obb=new Lg(g.localRect,g.transform)),p||(p=new Lg(s,l)),p.intersect(g.obb)){v=!0;break}}}v?(n(c),f&&n(f)):(c.attr("ignore",o.defaultAttr.ignore),f&&f.attr("ignore",o.defaultAttr.labelGuideIgnore),t.push(o))}}var Eu=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),Bse=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new Eu(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,o=n-this._x,a=i-this._y;this._x=n,this._y=i,r.drift(o,a,t),this.handler.dispatchToElement(new Eu(r,t),"drag",t.event);var s=this.handler.findHover(n,i,r).target,l=this._dropTarget;this._dropTarget=s,r!==s&&(l&&s!==l&&this.handler.dispatchToElement(new Eu(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Eu(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Eu(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Eu(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),jse=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,bx=[],Hse=ut.browser.firefox&&+ut.browser.version.split(".")[0]<39;function h_(e,t,r,n){return r=r||{},n?zM(e,t,r):Hse&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):zM(e,t,r),r}function zM(e,t,r){if(ut.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(GN(e)){var o=e.getBoundingClientRect();r.zrX=n-o.left,r.zrY=i-o.top;return}else if(a_(bx,e,n,i)){r.zrX=bx[0],r.zrY=bx[1];return}}r.zrX=r.zrY=0}function Gw(e){return e||window.event}function bi(e,t,r){if(t=Gw(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var a=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];a&&h_(e,a,t,r)}else{h_(e,t,t,r);var o=Wse(t);t.zrDelta=o?o/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&jse.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function Wse(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),o=n>0?-1:n<0?1:r>0?-1:1;return 3*i*o}function Vse(e,t,r,n){e.addEventListener(t,r,n)}function Use(e,t,r,n){e.removeEventListener(t,r,n)}var T5=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},Gse=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var o={points:[],touches:[],target:r,event:t},a=0,s=i.length;a<s;a++){var l=i[a],c=h_(n,l,{});o.points.push([c.zrX,c.zrY]),o.touches.push(l)}this._track.push(o)}},e.prototype._recognize=function(t){for(var r in _x)if(_x.hasOwnProperty(r)){var n=_x[r](this._track,t);if(n)return n}},e}();function $M(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function qse(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var _x={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,i=(e[r-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var o=$M(n)/$M(i);!isFinite(o)&&(o=1),t.pinchScale=o;var a=qse(n);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}},k5="silent";function Yse(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:Kse}}function Kse(){T5(this.event)}var Xse=function(e){$e(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Uo),$f=function(){function e(t,r){this.x=t,this.y=r}return e}(),Qse=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Sx=new jt(0,0,0,0),R5=function(e){$e(t,e);function t(r,n,i,o,a){var s=e.call(this)||this;return s._hovered=new $f(0,0),s.storage=r,s.painter=n,s.painterRoot=o,s._pointerSize=a,i=i||new Xse,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Bse(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(X(Qse,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,o=E5(this,n,i),a=this._hovered,s=a.target;s&&!s.__zr&&(a=this.findHover(a.x,a.y),s=a.target);var l=this._hovered=o?new $f(n,i):this.findHover(n,i),c=l.target,f=this.proxy;f.setCursor&&f.setCursor(c?c.cursor:"default"),s&&c!==s&&this.dispatchToElement(a,"mouseout",r),this.dispatchToElement(l,"mousemove",r),c&&c!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new $f(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var o=r.target;if(!(o&&o.silent)){for(var a="on"+n,s=Yse(n,r,i);o&&(o[a]&&(s.cancelBubble=!!o[a].call(o,s)),o.trigger(n,s),o=o.__hostTarget?o.__hostTarget:o.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[a]=="function"&&l[a].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var o=this.storage.getDisplayList(),a=new $f(r,n);if(FM(o,a,r,n,i),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,c=l/2,f=new jt(r-c,n-c,l,l),p=o.length-1;p>=0;p--){var v=o[p];v!==i&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(Sx.copy(v.getBoundingRect()),v.transform&&Sx.applyTransform(v.transform),Sx.intersect(f)&&s.push(v))}if(s.length)for(var h=4,g=Math.PI/12,x=Math.PI*2,y=0;y<c;y+=h)for(var b=0;b<x;b+=g){var S=r+y*Math.cos(b),_=n+y*Math.sin(b);if(FM(s,a,S,_,i),a.target)return a}}return a},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new Gse);var i=this._gestureMgr;n==="start"&&i.clear();var o=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),o){var a=o.type;r.gestureEvent=a;var s=new $f;s.target=o.target,this.dispatchToElement(s,a,o.event)}},t}(Uo);X(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){R5.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=E5(this,r,n),o,a;if((e!=="mouseup"||!i)&&(o=this.findHover(r,n),a=o.target),e==="mousedown")this._downEl=a,this._downPoint=[t.zrX,t.zrY],this._upEl=a;else if(e==="mouseup")this._upEl=a;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||ere(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,e,t)}});function Zse(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,o=!1;n;){if(n.ignoreClip&&(o=!0),!o){var a=n.getClipPath();if(a&&!a.contain(t,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?k5:!0}return!1}function FM(e,t,r,n,i){for(var o=e.length-1;o>=0;o--){var a=e[o],s=void 0;if(a!==i&&!a.ignore&&(s=Zse(a,r,n))&&(!t.topTarget&&(t.topTarget=a),s!==k5)){t.target=a;break}}}function E5(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var P5=32,Ff=7;function Jse(e){for(var t=0;e>=P5;)t|=e&1,e>>=1;return e+t}function BM(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i<r&&n(e[i],e[i-1])<0;)i++;ele(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function ele(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function jM(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var o=e[n],a=t,s=n,l;a<s;)l=a+s>>>1,i(o,e[l])<0?s=l:a=l+1;var c=n-a;switch(c){case 3:e[a+3]=e[a+2];case 2:e[a+2]=e[a+1];case 1:e[a+1]=e[a];break;default:for(;c>0;)e[a+c]=e[a+c-1],c--}e[a]=o}}function Cx(e,t,r,n,i,o){var a=0,s=0,l=1;if(o(e,t[r+i])>0){for(s=n-i;l<s&&o(e,t[r+i+l])>0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;l<s&&o(e,t[r+i-l])<=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var c=a;a=i-l,l=i-c}for(a++;a<l;){var f=a+(l-a>>>1);o(e,t[r+f])>0?a=f+1:l=f}return l}function Tx(e,t,r,n,i,o){var a=0,s=0,l=1;if(o(e,t[r+i])<0){for(s=i+1;l<s&&o(e,t[r+i-l])<0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var c=a;a=i-l,l=i-c}else{for(s=n-i;l<s&&o(e,t[r+i+l])>=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a<l;){var f=a+(l-a>>>1);o(e,t[r+f])<0?l=f:a=f+1}return l}function tle(e,t){var r=Ff,n,i,o=0,a=[];n=[],i=[];function s(h,g){n[o]=h,i[o]=g,o+=1}function l(){for(;o>1;){var h=o-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]<i[h+1]&&h--;else if(i[h]>i[h+1])break;f(h)}}function c(){for(;o>1;){var h=o-2;h>0&&i[h-1]<i[h+1]&&h--,f(h)}}function f(h){var g=n[h],x=i[h],y=n[h+1],b=i[h+1];i[h]=x+b,h===o-3&&(n[h+1]=n[h+2],i[h+1]=i[h+2]),o--;var S=Tx(e[y],e,g,x,0,t);g+=S,x-=S,x!==0&&(b=Cx(e[g+x-1],e,y,b,b-1,t),b!==0&&(x<=b?p(g,x,y,b):v(g,x,y,b)))}function p(h,g,x,y){var b=0;for(b=0;b<g;b++)a[b]=e[h+b];var S=0,_=x,C=h;if(e[C++]=e[_++],--y===0){for(b=0;b<g;b++)e[C+b]=a[S+b];return}if(g===1){for(b=0;b<y;b++)e[C+b]=e[_+b];e[C+y]=a[S];return}for(var k=r,T,E,I;;){T=0,E=0,I=!1;do if(t(e[_],a[S])<0){if(e[C++]=e[_++],E++,T=0,--y===0){I=!0;break}}else if(e[C++]=a[S++],T++,E=0,--g===1){I=!0;break}while((T|E)<k);if(I)break;do{if(T=Tx(e[_],a,S,g,0,t),T!==0){for(b=0;b<T;b++)e[C+b]=a[S+b];if(C+=T,S+=T,g-=T,g<=1){I=!0;break}}if(e[C++]=e[_++],--y===0){I=!0;break}if(E=Cx(a[S],e,_,y,0,t),E!==0){for(b=0;b<E;b++)e[C+b]=e[_+b];if(C+=E,_+=E,y-=E,y===0){I=!0;break}}if(e[C++]=a[S++],--g===1){I=!0;break}k--}while(T>=Ff||E>=Ff);if(I)break;k<0&&(k=0),k+=2}if(r=k,r<1&&(r=1),g===1){for(b=0;b<y;b++)e[C+b]=e[_+b];e[C+y]=a[S]}else{if(g===0)throw new Error;for(b=0;b<g;b++)e[C+b]=a[S+b]}}function v(h,g,x,y){var b=0;for(b=0;b<y;b++)a[b]=e[x+b];var S=h+g-1,_=y-1,C=x+y-1,k=0,T=0;if(e[C--]=e[S--],--g===0){for(k=C-(y-1),b=0;b<y;b++)e[k+b]=a[b];return}if(y===1){for(C-=g,S-=g,T=C+1,k=S+1,b=g-1;b>=0;b--)e[T+b]=e[k+b];e[C]=a[_];return}for(var E=r;;){var I=0,D=0,A=!1;do if(t(a[_],e[S])<0){if(e[C--]=e[S--],I++,D=0,--g===0){A=!0;break}}else if(e[C--]=a[_--],D++,I=0,--y===1){A=!0;break}while((I|D)<E);if(A)break;do{if(I=g-Tx(a[_],e,h,g,g-1,t),I!==0){for(C-=I,S-=I,g-=I,T=C+1,k=S+1,b=I-1;b>=0;b--)e[T+b]=e[k+b];if(g===0){A=!0;break}}if(e[C--]=a[_--],--y===1){A=!0;break}if(D=y-Cx(e[S],a,0,y,y-1,t),D!==0){for(C-=D,_-=D,y-=D,T=C+1,k=_+1,b=0;b<D;b++)e[T+b]=a[k+b];if(y<=1){A=!0;break}}if(e[C--]=e[S--],--g===0){A=!0;break}E--}while(I>=Ff||D>=Ff);if(A)break;E<0&&(E=0),E+=2}if(r=E,r<1&&(r=1),y===1){for(C-=g,S-=g,T=C+1,k=S+1,b=g-1;b>=0;b--)e[T+b]=e[k+b];e[C]=a[_]}else{if(y===0)throw new Error;for(k=C-(y-1),b=0;b<y;b++)e[k+b]=a[b]}}return{mergeRuns:l,forceMergeRuns:c,pushRun:s}}function ig(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var o=0;if(i<P5){o=BM(e,r,n,t),jM(e,r,n,r+o,t);return}var a=tle(e,t),s=Jse(i);do{if(o=BM(e,r,n,t),o<s){var l=i;l>s&&(l=s),jM(e,r,r+l,r+o,t),o=l}a.pushRun(r,o),a.mergeRuns(),i-=o,r+=o}while(i!==0);a.forceMergeRuns()}}var HM=!1;function kx(){HM||(HM=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function WM(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var rle=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=WM}return e.prototype.traverse=function(t,r){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(r),n},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,n=this._displayList,i=0,o=r.length;i<o;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,ig(n,WM)},e.prototype._updateAndAddDisplayable=function(t,r,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)r=null;else if(i){r?r=r.slice():r=[];for(var o=i,a=t;o;)o.parent=a,o.updateTransform(),r.push(o),a=o,o=o.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var c=s[l];t.__dirty&&(c.__dirty|=Lo),this._updateAndAddDisplayable(c,r,n)}t.__dirty=0}else{var f=t;r&&r.length?f.__clipPaths=r:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(kx(),f.z=0),isNaN(f.z2)&&(kx(),f.z2=0),isNaN(f.zlevel)&&(kx(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,r,n);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,r,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r<n;r++)this.delRoot(t[r]);return}var i=qt(this._roots,t);i>=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),Bg;Bg=ut.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};function Hu(){return new Date().getTime()}var nle=function(e){$e(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=Hu()-this._pausedTime,i=n-this._time,o=this._head;o;){var a=o.next,s=o.step(n,i);s&&(o.ondestroy(),this.removeClip(o)),o=a}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(Bg(n),!r._paused&&r.update())}Bg(n)},t.prototype.start=function(){this._running||(this._time=Hu(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Hu(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Hu()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new pw(r,n.loop);return this.addAnimator(i),i},t}(Uo),ile=300,Rx=ut.domSupported,Ex=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=at(e,function(i){var o=i.replace("mouse","pointer");return r.hasOwnProperty(o)?o:i});return{mouse:e,touch:t,pointer:n}}(),VM={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},UM=!1;function v_(e){var t=e.pointerType;return t==="pen"||t==="touch"}function ole(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Px(e){e&&(e.zrByTouch=!0)}function ale(e,t){return bi(e.dom,new sle(e,t),!0)}function M5(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var sle=function(){function e(t,r){this.stopPropagation=Fn,this.stopImmediatePropagation=Fn,this.preventDefault=Fn,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),qi={mousedown:function(e){e=bi(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=bi(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=bi(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=bi(this.dom,e);var t=e.toElement||e.relatedTarget;M5(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){UM=!0,e=bi(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){UM||(e=bi(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=bi(this.dom,e),Px(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),qi.mousemove.call(this,e),qi.mousedown.call(this,e)},touchmove:function(e){e=bi(this.dom,e),Px(e),this.handler.processGesture(e,"change"),qi.mousemove.call(this,e)},touchend:function(e){e=bi(this.dom,e),Px(e),this.handler.processGesture(e,"end"),qi.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<ile&&qi.click.call(this,e)},pointerdown:function(e){qi.mousedown.call(this,e)},pointermove:function(e){v_(e)||qi.mousemove.call(this,e)},pointerup:function(e){qi.mouseup.call(this,e)},pointerout:function(e){v_(e)||qi.mouseout.call(this,e)}};X(["click","dblclick","contextmenu"],function(e){qi[e]=function(t){t=bi(this.dom,t),this.trigger(e,t)}});var g_={pointermove:function(e){v_(e)||g_.mousemove.call(this,e)},pointerup:function(e){g_.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function lle(e,t){var r=t.domHandlers;ut.pointerEventsSupported?X(Ex.pointer,function(n){og(t,n,function(i){r[n].call(e,i)})}):(ut.touchEventsSupported&&X(Ex.touch,function(n){og(t,n,function(i){r[n].call(e,i),ole(t)})}),X(Ex.mouse,function(n){og(t,n,function(i){i=Gw(i),t.touching||r[n].call(e,i)})}))}function ule(e,t){ut.pointerEventsSupported?X(VM.pointer,r):ut.touchEventsSupported||X(VM.mouse,r);function r(n){function i(o){o=Gw(o),M5(e,o.target)||(o=ale(e,o),t.domHandlers[n].call(e,o))}og(t,n,i,{capture:!0})}}function og(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,Vse(e.domTarget,t,r,n)}function Mx(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&Use(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var GM=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),cle=function(e){$e(t,e);function t(r,n){var i=e.call(this)||this;return i.__pointerCapturing=!1,i.dom=r,i.painterRoot=n,i._localHandlerScope=new GM(r,qi),Rx&&(i._globalHandlerScope=new GM(document,g_)),lle(i,i._localHandlerScope),i}return t.prototype.dispose=function(){Mx(this._localHandlerScope),Rx&&Mx(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,Rx&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?ule(this,n):Mx(n)}},t}(Uo);/*!
194
- * ZRender, a high performance 2d drawing library.
195
- *
196
- * Copyright (c) 2013, Baidu Inc.
197
- * All rights reserved.
198
- *
199
- * LICENSE
200
- * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
201
- */var ag={},I5={};function fle(e){delete I5[e]}function dle(e){if(!e)return!1;if(typeof e=="string")return Rg(e,1)<Vb;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=Rg(t[i].color,1);return r/=n,r<Vb}return!1}var ple=function(){function e(t,r,n){var i=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,n=n||{},this.dom=r,this.id=t;var o=new rle,a=n.renderer||"canvas";ag[a]||(a=lr(ag)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new ag[a](r,o,n,t),l=n.ssr||s.ssrOnly;this.storage=o,this.painter=s;var c=!ut.node&&!ut.worker&&!l?new cle(s.getViewportRoot(),s.root):null,f=n.useCoarsePointer,p=f==null||f==="auto"?ut.touchEventsSupported:!!f,v=44,h;p&&(h=wt(n.pointerSize,v)),this.handler=new R5(o,s,c,s.root,h),this.animation=new nle({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=dle(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var r,n=Hu();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=Hu();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-n})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this._disposed||this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof rn&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,fle(this.id))},e}();function qM(e,t){var r=new ple(_O(),e,t);return I5[r.id]=r,r}function hle(e,t){ag[e]=t}var A5="";typeof navigator<"u"&&(A5=navigator.platform||"");var Pu="rgba(0, 0, 0, 0.2)";const vle={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Pu,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Pu,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Pu,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Pu,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Pu,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Pu,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:A5.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var gle=yt();function mle(e,t,r){var n=gle.get(t);if(!n)return r;var i=n(e);return i?r.concat(i):r}var Pv,Bf,YM,KM="\0_ec_inner",yle=1,qw=function(e){$e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,o,a,s){o=o||{},this.option=null,this._theme=new yr(o),this._locale=new yr(a),this._optionManager=s},t.prototype.setOption=function(r,n,i){var o=ZM(n);this._optionManager.setOption(r,i,o),this._resetOption(null,o)},t.prototype.resetOption=function(r,n){return this._resetOption(r,ZM(n))},t.prototype._resetOption=function(r,n){var i=!1,o=this._optionManager;if(!r||r==="recreate"){var a=o.mountOption(r==="recreate");!this.option||r==="recreate"?YM(this,a):(this.restoreData(),this._mergeOption(a,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=o.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=o.getMediaOption(this);l.length&&X(l,function(c){i=!0,this._mergeOption(c,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,o=this._componentsMap,a=this._componentsCount,s=[],l=yt(),c=n&&n.replaceMergeMainTypeMap;Qie(this),X(r,function(p,v){p!=null&&(Vt.hasClass(v)?v&&(s.push(v),l.set(v,!0)):i[v]=i[v]==null?Rt(p):Bt(i[v],p,!0))}),c&&c.each(function(p,v){Vt.hasClass(v)&&!l.get(v)&&(s.push(v),l.set(v,!0))}),Vt.topologicalTravel(s,Vt.getAllClassMainTypes(),f,this);function f(p){var v=mle(this,p,yn(r[p])),h=o.get(p),g=h?c&&c.get(p)?"replaceMerge":"normalMerge":"replaceAll",x=pne(h,v,g);bne(x,p,Vt),i[p]=null,o.set(p,null),a.set(p,0);var y=[],b=[],S=0,_;X(x,function(C,k){var T=C.existing,E=C.newOption;if(!E)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var I=p==="series",D=Vt.getClass(p,C.keyInfo.subType,!I);if(!D)return;if(p==="tooltip"){if(_)return;_=!0}if(T&&T.constructor===D)T.name=C.keyInfo.name,T.mergeOption(E,this),T.optionUpdated(E,!1);else{var A=Ie({componentIndex:k},C.keyInfo);T=new D(E,this,this,A),Ie(T,A),C.brandNew&&(T.__requireNewView=!0),T.init(E,this,this),T.optionUpdated(null,!0)}}T?(y.push(T.option),b.push(T),S++):(y.push(void 0),b.push(void 0))},this),i[p]=y,o.set(p,b),a.set(p,S),p==="series"&&Pv(this)}this._seriesIndices||Pv(this)},t.prototype.getOption=function(){var r=Rt(this.option);return X(r,function(n,i){if(Vt.hasClass(i)){for(var o=yn(n),a=o.length,s=!1,l=a-1;l>=0;l--)o[l]&&!ep(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,r[i]=o}}),delete r[KM],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var o=i[n||0];if(o)return o;if(n==null){for(var a=0;a<i.length;a++)if(i[a])return i[a]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,o=r.id,a=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],X(yn(i),function(c){s[c]&&l.push(s[c])})):o!=null?l=XM("id",o,s):a!=null?l=XM("name",a,s):l=hn(s,function(c){return!!c}),QM(l,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,o=s(n),a=o?this.queryComponents(o):hn(this._componentsMap.get(i),function(c){return!!c});return l(QM(a,r));function s(c){var f=i+"Index",p=i+"Id",v=i+"Name";return c&&(c[f]!=null||c[p]!=null||c[v]!=null)?{mainType:i,index:c[f],id:c[p],name:c[v]}:null}function l(c){return r.filter?hn(c,r.filter):c}},t.prototype.eachComponent=function(r,n,i){var o=this._componentsMap;if(ft(r)){var a=n,s=r;o.each(function(p,v){for(var h=0;p&&h<p.length;h++){var g=p[h];g&&s.call(a,v,g,g.componentIndex)}})}else for(var l=qe(r)?o.get(r):rt(r)?this.findComponents(r):null,c=0;l&&c<l.length;c++){var f=l[c];f&&n.call(i,f,f.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=Oo(r,null);return hn(this._componentsMap.get("series"),function(i){return!!i&&n!=null&&i.name===n})},t.prototype.getSeriesByIndex=function(r){return this._componentsMap.get("series")[r]},t.prototype.getSeriesByType=function(r){return hn(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return hn(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){Bf(this),X(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];r.call(n,o,i)},this)},t.prototype.eachRawSeries=function(r,n){X(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){Bf(this),X(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];a.subType===r&&n.call(i,a,o)},this)},t.prototype.eachRawSeriesByType=function(r,n,i){return X(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return Bf(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){Bf(this);var i=[];X(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];r.call(n,a,o)&&i.push(o)},this),this._seriesIndices=i,this._seriesIndicesMap=yt(i)},t.prototype.restoreData=function(r){Pv(this);var n=this._componentsMap,i=[];n.each(function(o,a){Vt.hasClass(a)&&i.push(a)}),Vt.topologicalTravel(i,Vt.getAllClassMainTypes(),function(o){X(n.get(o),function(a){a&&(o!=="series"||!xle(a,r))&&a.restoreData()})})},t.internalField=function(){Pv=function(r){var n=r._seriesIndices=[];X(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=yt(n)},Bf=function(r){},YM=function(r,n){r.option={},r.option[KM]=yle,r._componentsMap=yt({series:[]}),r._componentsCount=yt();var i=n.aria;rt(i)&&i.enabled==null&&(i.enabled=!0),ble(n,r._theme.option),Bt(n,vle,!1),r._mergeOption(n,null)}}(),t}(yr);function xle(e,t){if(t){var r=t.seriesIndex,n=t.seriesId,i=t.seriesName;return r!=null&&e.componentIndex!==r||n!=null&&e.id!==n||i!=null&&e.name!==i}}function ble(e,t){var r=e.color&&!e.colorLayer;X(t,function(n,i){i==="colorLayer"&&r||Vt.hasClass(i)||(typeof n=="object"?e[i]=e[i]?Bt(e[i],n,!1):Rt(n):e[i]==null&&(e[i]=n))})}function XM(e,t,r){if(Be(t)){var n=yt();return X(t,function(o){if(o!=null){var a=Oo(o,null);a!=null&&n.set(o,!0)}}),hn(r,function(o){return o&&n.get(o[e])})}else{var i=Oo(t,null);return hn(r,function(o){return o&&i!=null&&o[e]===i})}}function QM(e,t){return t.hasOwnProperty("subType")?hn(e,function(r){return r&&r.subType===t.subType}):e}function ZM(e){var t=yt();return e&&X(yn(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Vo(qw,Ww);var _le=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],D5=function(){function e(t){X(_le,function(r){this[r]=pr(t[r],t)},this)}return e}(),Sle=/^(min|max)?(.+)$/,wle=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(X(yn(t.series),function(a){a&&a.data&&Wn(a.data)&&Ob(a.data)}),X(yn(t.dataset),function(a){a&&a.source&&Wn(a.source)&&Ob(a.source)})),t=Rt(t);var i=this._optionBackup,o=Cle(t,r,!i);this._newBaseOption=o.baseOption,i?(o.timelineOptions.length&&(i.timelineOptions=o.timelineOptions),o.mediaList.length&&(i.mediaList=o.mediaList),o.mediaDefault&&(i.mediaDefault=o.mediaDefault)):this._optionBackup=o},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],Rt(t?r.baseOption:this._newBaseOption)},e.prototype.getTimelineOption=function(t){var r,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(r=Rt(n[i.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,o=this._mediaDefault,a=[],s=[];if(!i.length&&!o)return s;for(var l=0,c=i.length;l<c;l++)Tle(i[l].query,r,n)&&a.push(l);return!a.length&&o&&(a=[-1]),a.length&&!Rle(a,this._currentMediaIndices)&&(s=at(a,function(f){return Rt(f===-1?o.option:i[f].option)})),this._currentMediaIndices=a,s},e}();function Cle(e,t,r){var n=[],i,o,a=e.baseOption,s=e.timeline,l=e.options,c=e.media,f=!!e.media,p=!!(l||s||a&&a.timeline);a?(o=a,o.timeline||(o.timeline=s)):((p||f)&&(e.options=e.media=null),o=e),f&&Be(c)&&X(c,function(h){h&&h.option&&(h.query?n.push(h):i||(i=h))}),v(o),X(l,function(h){return v(h)}),X(n,function(h){return v(h.option)});function v(h){X(t,function(g){g(h,r)})}return{baseOption:o,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function Tle(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return X(e,function(o,a){var s=a.match(Sle);if(!(!s||!s[1]||!s[2])){var l=s[1],c=s[2].toLowerCase();kle(n[c],o,l)||(i=!1)}}),i}function kle(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function Rle(e,t){return e.join(",")===t.join(",")}var Vi=X,sp=rt,JM=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ix(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=JM.length;r<n;r++){var i=JM[r],o=t.normal,a=t.emphasis;o&&o[i]&&(e[i]=e[i]||{},e[i].normal?Bt(e[i].normal,o[i]):e[i].normal=o[i],o[i]=null),a&&a[i]&&(e[i]=e[i]||{},e[i].emphasis?Bt(e[i].emphasis,a[i]):e[i].emphasis=a[i],a[i]=null)}}function Jr(e,t,r){if(e&&e[t]&&(e[t].normal||e[t].emphasis)){var n=e[t].normal,i=e[t].emphasis;n&&(r?(e[t].normal=e[t].emphasis=null,Gt(e[t],n)):e[t]=n),i&&(e.emphasis=e.emphasis||{},e.emphasis[t]=i,i.focus&&(e.emphasis.focus=i.focus),i.blurScope&&(e.emphasis.blurScope=i.blurScope))}}function nd(e){Jr(e,"itemStyle"),Jr(e,"lineStyle"),Jr(e,"areaStyle"),Jr(e,"label"),Jr(e,"labelLine"),Jr(e,"upperLabel"),Jr(e,"edgeLabel")}function _r(e,t){var r=sp(e)&&e[t],n=sp(r)&&r.textStyle;if(n)for(var i=0,o=EP.length;i<o;i++){var a=EP[i];n.hasOwnProperty(a)&&(r[a]=n[a])}}function _i(e){e&&(nd(e),_r(e,"label"),e.emphasis&&_r(e.emphasis,"label"))}function Ele(e){if(sp(e)){Ix(e),nd(e),_r(e,"label"),_r(e,"upperLabel"),_r(e,"edgeLabel"),e.emphasis&&(_r(e.emphasis,"label"),_r(e.emphasis,"upperLabel"),_r(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Ix(t),_i(t));var r=e.markLine;r&&(Ix(r),_i(r));var n=e.markArea;n&&_i(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var o=e.links||e.edges;if(o&&!Wn(o))for(var a=0;a<o.length;a++)_i(o[a]);X(e.categories,function(c){nd(c)})}if(i&&!Wn(i))for(var a=0;a<i.length;a++)_i(i[a]);if(t=e.markPoint,t&&t.data)for(var s=t.data,a=0;a<s.length;a++)_i(s[a]);if(r=e.markLine,r&&r.data)for(var l=r.data,a=0;a<l.length;a++)Be(l[a])?(_i(l[a][0]),_i(l[a][1])):_i(l[a]);e.type==="gauge"?(_r(e,"axisLabel"),_r(e,"title"),_r(e,"detail")):e.type==="treemap"?(Jr(e.breadcrumb,"itemStyle"),X(e.levels,function(c){nd(c)})):e.type==="tree"&&nd(e.leaves)}}function aa(e){return Be(e)?e:e?[e]:[]}function eI(e){return(Be(e)?e[0]:e)||{}}function Ple(e,t){Vi(aa(e.series),function(n){sp(n)&&Ele(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),Vi(r,function(n){Vi(aa(e[n]),function(i){i&&(_r(i,"axisLabel"),_r(i.axisPointer,"label"))})}),Vi(aa(e.parallel),function(n){var i=n&&n.parallelAxisDefault;_r(i,"axisLabel"),_r(i&&i.axisPointer,"label")}),Vi(aa(e.calendar),function(n){Jr(n,"itemStyle"),_r(n,"dayLabel"),_r(n,"monthLabel"),_r(n,"yearLabel")}),Vi(aa(e.radar),function(n){_r(n,"name"),n.name&&n.axisName==null&&(n.axisName=n.name,delete n.name),n.nameGap!=null&&n.axisNameGap==null&&(n.axisNameGap=n.nameGap,delete n.nameGap)}),Vi(aa(e.geo),function(n){sp(n)&&(_i(n),Vi(aa(n.regions),function(i){_i(i)}))}),Vi(aa(e.timeline),function(n){_i(n),Jr(n,"label"),Jr(n,"itemStyle"),Jr(n,"controlStyle",!0);var i=n.data;Be(i)&&X(i,function(o){rt(o)&&(Jr(o,"label"),Jr(o,"itemStyle"))})}),Vi(aa(e.toolbox),function(n){Jr(n,"iconStyle"),Vi(n.feature,function(i){Jr(i,"iconStyle")})}),_r(eI(e.axisPointer),"label"),_r(eI(e.tooltip).axisPointer,"label")}function Mle(e,t){for(var r=t.split(","),n=e,i=0;i<r.length&&(n=n&&n[r[i]],n!=null);i++);return n}function Ile(e,t,r,n){for(var i=t.split(","),o=e,a,s=0;s<i.length-1;s++)a=i[s],o[a]==null&&(o[a]={}),o=o[a];o[i[s]]==null&&(o[i[s]]=r)}function tI(e){e&&X(Ale,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Ale=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Dle=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Ax=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function jf(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<Ax.length;r++){var n=Ax[r][1],i=Ax[r][0];t[n]!=null&&(t[i]=t[n])}}function rI(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function nI(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Lle(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function L5(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&L5(e[r].children,t)}function O5(e,t){Ple(e,t),e.series=yn(e.series),X(e.series,function(r){if(rt(r)){var n=r.type;if(n==="line")r.clipOverflow!=null&&(r.clip=r.clipOverflow);else if(n==="pie"||n==="gauge"){r.clockWise!=null&&(r.clockwise=r.clockWise),rI(r.label);var i=r.data;if(i&&!Wn(i))for(var o=0;o<i.length;o++)rI(i[o]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var a=Mle(r,"pointer.color");a!=null&&Ile(r,"itemStyle.color",a)}else if(n==="bar"){jf(r),jf(r.backgroundStyle),jf(r.emphasis);var i=r.data;if(i&&!Wn(i))for(var o=0;o<i.length;o++)typeof i[o]=="object"&&(jf(i[o]),jf(i[o]&&i[o].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),nI(r),L5(r.data,nI)}else n==="graph"||n==="sankey"?Lle(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&Gt(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),tI(r)}}),e.dataRange&&(e.visualMap=e.dataRange),X(Dle,function(r){var n=e[r];n&&(Be(n)||(n=[n]),X(n,function(i){tI(i)}))})}function Ole(e){var t=yt();e.eachSeries(function(r){var n=r.get("stack");if(n){var i=t.get(n)||t.set(n,[]),o=r.getData(),a={stackResultDimension:o.getCalculationInfo("stackResultDimension"),stackedOverDimension:o.getCalculationInfo("stackedOverDimension"),stackedDimension:o.getCalculationInfo("stackedDimension"),stackedByDimension:o.getCalculationInfo("stackedByDimension"),isStackedByIndex:o.getCalculationInfo("isStackedByIndex"),data:o,seriesModel:r};if(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;i.length&&o.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(a)}}),t.each(Nle)}function Nle(e){X(e,function(t,r){var n=[],i=[NaN,NaN],o=[t.stackResultDimension,t.stackedOverDimension],a=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(c,f,p){var v=a.get(t.stackedDimension,p);if(isNaN(v))return i;var h,g;s?g=a.getRawIndex(p):h=a.get(t.stackedByDimension,p);for(var x=NaN,y=r-1;y>=0;y--){var b=e[y];if(s||(g=b.data.rawIndexOf(b.stackedByDimension,h)),g>=0){var S=b.data.getByRawIndex(b.stackResultDimension,g);if(l==="all"||l==="positive"&&S>0||l==="negative"&&S<0||l==="samesign"&&v>=0&&S>0||l==="samesign"&&v<=0&&S<0){v=sne(v,S),x=S;break}}}return n[0]=v,n[1]=x,n})})}var ro=function(){function e(){this.group=new rn,this.uid=Ym("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();aw(ro);Lm(ro);var iI=Ir(),oI={itemStyle:Zd(kN,!0),lineStyle:Zd(TN,!0)},zle={lineStyle:"stroke",itemStyle:"fill"};function N5(e,t){var r=e.visualStyleMapper||oI[t];return r||(console.warn("Unknown style type '"+t+"'."),oI.itemStyle)}function z5(e,t){var r=e.visualDrawType||zle[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var $le={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),o=N5(e,n),a=o(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=z5(e,n),c=a[l],f=ft(c)?c:null,p=a.fill==="auto"||a.stroke==="auto";if(!a[l]||f||p){var v=e.getColorFromPalette(e.name,null,t.getSeriesCount());a[l]||(a[l]=v,r.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||ft(a.fill)?v:a.fill,a.stroke=a.stroke==="auto"||ft(a.stroke)?v:a.stroke}if(r.setVisual("style",a),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&f)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,g){var x=e.getDataParams(g),y=Ie({},a);y[l]=f(x),h.setItemVisual(g,"style",y)}}}},Hf=new yr,Fle={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=N5(e,n),o=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[n]){Hf.option=l[n];var c=i(Hf),f=a.ensureUniqueItemVisual(s,"style");Ie(f,c),Hf.option.decal&&(a.setItemVisual(s,"decal",Hf.option.decal),Hf.option.decal.dirty=!0),o in c&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},Ble={performRawSeries:!0,overallReset:function(e){var t=yt();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,o=t.get(i);o||(o={},t.set(i,o)),iI(r).scope=o}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},o=r.getData(),a=iI(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=z5(r,s);o.each(function(c){var f=o.getRawIndex(c);i[f]=c}),n.each(function(c){var f=i[c],p=o.getItemVisual(f,"colorFromPalette");if(p){var v=o.ensureUniqueItemVisual(f,"style"),h=n.getName(c)||c+"",g=n.count();v[l]=r.getColorFromPalette(h,a,g)}})}})}},Mv=Math.PI;function jle(e,t){t=t||{},Gt(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new rn,n=new zr({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new tn({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),o=new zr({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(o);var a;return t.showSpinner&&(a=new Vm({shape:{startAngle:-Mv/2,endAngle:-Mv/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:Mv*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:Mv*3/2}).delay(300).start("circularInOut"),r.add(a)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,c=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),f=e.getHeight()/2;t.showSpinner&&a.setShape({cx:c,cy:f}),o.setShape({x:c-l,y:f-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var $5=function(){function e(t,r,n,i){this._stageTaskMap=yt(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,o=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,a=o?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/a):null;return{step:a,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),o=i.count(),a=n.progressiveEnabled&&r.incrementalPrepareRender&&o>=n.threshold,s=t.get("large")&&o>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?o:null;t.pipelineContext=n.context={progressiveRender:a,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=yt();t.eachSeries(function(i){var o=i.getProgressive(),a=i.uid;n.set(a,{id:a,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:o&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(o||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;X(this._allHandlers,function(i){var o=t.get(i.uid)||t.set(i.uid,{}),a="";xa(!(i.reset&&i.overallReset),a),i.reset&&this._createSeriesStageTask(i,o,r,n),i.overallReset&&this._createOverallStageTask(i,o,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var o=t.renderTask,a=o.context;a.model=r,a.ecModel=n,a.api=i,o.__block=!t.incrementalPrepareRender,this._pipe(r,o)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var o=!1,a=this;X(t,function(l,c){if(!(i.visualType&&i.visualType!==l.visualType)){var f=a._stageTaskMap.get(l.uid),p=f.seriesTaskMap,v=f.overallTask;if(v){var h,g=v.agentStubMap;g.each(function(y){s(i,y)&&(y.dirty(),h=!0)}),h&&v.dirty(),a.updatePayload(v,n);var x=a.getPerformArgs(v,i.block);g.each(function(y){y.perform(x)}),v.perform(x)&&(o=!0)}else p&&p.each(function(y,b){s(i,y)&&y.dirty();var S=a.getPerformArgs(y,i.block);S.skip=!l.performRawSeries&&r.isSeriesFiltered(y.context.model),a.updatePayload(y,n),y.perform(S)&&(o=!0)})}});function s(l,c){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(c.__pipeline.id))}this.unfinished=o||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var o=this,a=r.seriesTaskMap,s=r.seriesTaskMap=yt(),l=t.seriesType,c=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(f):l?n.eachRawSeriesByType(l,f):c&&c(n,i).each(f);function f(p){var v=p.uid,h=s.set(v,a&&a.get(v)||Pd({plan:Gle,reset:qle,count:Kle}));h.context={model:p,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:o},o._pipe(p,h)}},e.prototype._createOverallStageTask=function(t,r,n,i){var o=this,a=r.overallTask=r.overallTask||Pd({reset:Hle});a.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=yt(),c=t.seriesType,f=t.getTargetSeries,p=!0,v=!1,h="";xa(!t.createOnAllSeries,h),c?n.eachRawSeriesByType(c,g):f?f(n,i).each(g):(p=!1,X(n.getSeries(),g));function g(x){var y=x.uid,b=l.set(y,s&&s.get(y)||(v=!0,Pd({reset:Wle,onDirty:Ule})));b.context={model:x,overallProgress:p},b.agent=a,b.__block=p,o._pipe(x,b)}v&&a.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return ft(t)&&(t={overallReset:t,seriesType:Xle(t)}),t.uid=Ym("stageHandler"),r&&(t.visualType=r),t},e}();function Hle(e){e.overallReset(e.ecModel,e.api,e.payload)}function Wle(e){return e.overallProgress&&Vle}function Vle(){this.agent.dirty(),this.getDownstream().dirty()}function Ule(){this.agent&&this.agent.dirty()}function Gle(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function qle(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=yn(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?at(t,function(r,n){return F5(n)}):Yle}var Yle=F5(0);function F5(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var o=t.start;o<t.end;o++)i.dataEach(n,o);else i&&i.progress&&i.progress(t,n)}}function Kle(e){return e.data.count()}function Xle(e){jg=null;try{e(lp,B5)}catch{}return jg}var lp={},B5={},jg;j5(lp,qw);j5(B5,D5);lp.eachSeriesByType=lp.eachRawSeriesByType=function(e){jg=e};lp.eachComponent=function(e){e.mainType==="series"&&e.subType&&(jg=e.subType)};function j5(e,t){for(var r in t.prototype)e[r]=Fn}var aI=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const Qle={color:aI,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],aI]};var fn="#B9B8CE",sI="#100C2A",Iv=function(){return{axisLine:{lineStyle:{color:fn}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},lI=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],H5={darkMode:!0,color:lI,backgroundColor:sI,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:fn}},textStyle:{color:fn},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:fn}},dataZoom:{borderColor:"#71708A",textStyle:{color:fn},brushStyle:{color:"rgba(135,163,206,0.3)"},handleStyle:{color:"#353450",borderColor:"#C5CBE3"},moveHandleStyle:{color:"#B0B6C3",opacity:.3},fillerColor:"rgba(135,163,206,0.2)",emphasis:{handleStyle:{borderColor:"#91B7F2",color:"#4D587D"},moveHandleStyle:{color:"#636D9A",opacity:.7}},dataBackground:{lineStyle:{color:"#71708A",width:1},areaStyle:{color:"#71708A"}},selectedDataBackground:{lineStyle:{color:"#87A3CE"},areaStyle:{color:"#87A3CE"}}},visualMap:{textStyle:{color:fn}},timeline:{lineStyle:{color:fn},label:{color:fn},controlStyle:{color:fn,borderColor:fn}},calendar:{itemStyle:{color:sI},dayLabel:{color:fn},monthLabel:{color:fn},yearLabel:{color:fn}},timeAxis:Iv(),logAxis:Iv(),valueAxis:Iv(),categoryAxis:Iv(),line:{symbol:"circle"},graph:{color:lI},gauge:{title:{color:fn},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:fn},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};H5.categoryAxis.splitLine.show=!1;var Zle=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(qe(t)){var o=Po(t);r.mainType=o.main||null,r.subType=o.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};X(t,function(l,c){for(var f=!1,p=0;p<a.length;p++){var v=a[p],h=c.lastIndexOf(v);if(h>0&&h===c.length-v.length){var g=c.slice(0,h);g!=="data"&&(r.mainType=g,r[v.toLowerCase()]=l,f=!0)}}s.hasOwnProperty(c)&&(n[c]=l,f=!0),f||(i[c]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,o=n.packedEvent,a=n.model,s=n.view;if(!a||!s)return!0;var l=r.cptQuery,c=r.dataQuery;return f(l,a,"mainType")&&f(l,a,"subType")&&f(l,a,"index","componentIndex")&&f(l,a,"name")&&f(l,a,"id")&&f(c,o,"name")&&f(c,o,"dataIndex")&&f(c,o,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,o));function f(p,v,h,g){return p[h]==null||v[g||h]===p[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),m_=["symbol","symbolSize","symbolRotate","symbolOffset"],uI=m_.concat(["symbolKeepAspect"]),Jle={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},o=!1,a=0;a<m_.length;a++){var s=m_[a],l=e.get(s);ft(l)?(o=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(Ie({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var c=lr(i);function f(p,v){for(var h=e.getRawValue(v),g=e.getDataParams(v),x=0;x<c.length;x++){var y=c[x];p.setItemVisual(v,y,i[y](h,g))}}return{dataEach:o?f:null}}},eue={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,o){for(var a=i.getItemModel(o),s=0;s<uI.length;s++){var l=uI[s],c=a.getShallow(l,!0);c!=null&&i.setItemVisual(o,l,c)}}return{dataEach:r.hasItemOption?n:null}}};function tue(e,t,r){switch(r){case"color":var n=e.getItemVisual(t,"style");return n[e.getVisual("drawType")];case"opacity":return e.getItemVisual(t,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getItemVisual(t,r)}}function rue(e,t){switch(t){case"color":var r=e.getVisual("style");return r[e.getVisual("drawType")];case"opacity":return e.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return e.getVisual(t)}}function id(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var nue=Math.round(Math.random()*9),iue=typeof Object.defineProperty=="function",oue=function(){function e(){this._id="__ec_inner_"+nue++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return iue?Object.defineProperty(n,this._id,{value:r,enumerable:!1,configurable:!0}):n[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}();function xl(e){return isFinite(e)}function aue(e,t,r){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,o=t.y==null?0:t.y,a=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,i=i*r.width+r.x,o=o*r.height+r.y,a=a*r.height+r.y),n=xl(n)?n:0,i=xl(i)?i:1,o=xl(o)?o:0,a=xl(a)?a:0;var s=e.createLinearGradient(n,o,i,a);return s}function sue(e,t,r){var n=r.width,i=r.height,o=Math.min(n,i),a=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(a=a*n+r.x,s=s*i+r.y,l=l*o),a=xl(a)?a:.5,s=xl(s)?s:.5,l=l>=0&&xl(l)?l:.5;var c=e.createRadialGradient(a,s,0,a,s,l);return c}function y_(e,t,r){for(var n=t.type==="radial"?sue(e,t,r):aue(e,t,r),i=t.colorStops,o=0;o<i.length;o++)n.addColorStop(i[o].offset,i[o].color);return n}function lue(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function Av(e){return parseInt(e,10)}function Dv(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],o=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[i]||Av(s[n])||Av(e.style[n]))-(Av(s[o])||0)-(Av(s[a])||0)|0}function uue(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:ur(e)?[e]:Be(e)?e:null}function W5(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&uue(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=at(r,function(o){return o/i}),n/=i)}return[r,n]}var cue=new Ol(!0);function Hg(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function cI(e){return typeof e=="string"&&e!=="none"}function Wg(e){var t=e.fill;return t!=null&&t!=="none"}function fI(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function dI(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function x_(e,t,r){var n=PO(t.image,t.__image,r);if(Om(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(t.x||0,t.y||0),o.rotateSelf(0,0,(t.rotation||0)*_te),o.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(o)}return i}}function fue(e,t,r,n){var i,o=Hg(r),a=Wg(r),s=r.strokePercent,l=s<1,c=!t.path;(!t.silent||l)&&c&&t.createPathProxy();var f=t.path||cue,p=t.__dirty;if(!n){var v=r.fill,h=r.stroke,g=a&&!!v.colorStops,x=o&&!!h.colorStops,y=a&&!!v.image,b=o&&!!h.image,S=void 0,_=void 0,C=void 0,k=void 0,T=void 0;(g||x)&&(T=t.getBoundingRect()),g&&(S=p?y_(e,v,T):t.__canvasFillGradient,t.__canvasFillGradient=S),x&&(_=p?y_(e,h,T):t.__canvasStrokeGradient,t.__canvasStrokeGradient=_),y&&(C=p||!t.__canvasFillPattern?x_(e,v,t):t.__canvasFillPattern,t.__canvasFillPattern=C),b&&(k=p||!t.__canvasStrokePattern?x_(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=C),g?e.fillStyle=S:y&&(C?e.fillStyle=C:a=!1),x?e.strokeStyle=_:b&&(k?e.strokeStyle=k:o=!1)}var E=t.getGlobalScale();f.setScale(E[0],E[1],t.segmentIgnoreThreshold);var I,D;e.setLineDash&&r.lineDash&&(i=W5(t),I=i[0],D=i[1]);var A=!0;(c||p&ed)&&(f.setDPR(e.dpr),l?f.setContext(null):(f.setContext(e),A=!1),f.reset(),t.buildPath(f,t.shape,n),f.toStatic(),t.pathUpdated()),A&&f.rebuildPath(e,l?s:1),I&&(e.setLineDash(I),e.lineDashOffset=D),n||(r.strokeFirst?(o&&dI(e,r),a&&fI(e,r)):(a&&fI(e,r),o&&dI(e,r))),I&&e.setLineDash([])}function due(e,t,r){var n=t.__image=PO(r.image,t.__image,t,t.onload);if(!(!n||!Om(n))){var i=r.x||0,o=r.y||0,a=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(a==null&&s!=null?a=s*l:s==null&&a!=null?s=a/l:a==null&&s==null&&(a=n.width,s=n.height),r.sWidth&&r.sHeight){var c=r.sx||0,f=r.sy||0;e.drawImage(n,c,f,r.sWidth,r.sHeight,i,o,a,s)}else if(r.sx&&r.sy){var c=r.sx,f=r.sy,p=a-c,v=s-f;e.drawImage(n,c,f,p,v,i,o,a,s)}else e.drawImage(n,i,o,a,s)}}function pue(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Dl,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var o=void 0,a=void 0;e.setLineDash&&r.lineDash&&(n=W5(t),o=n[0],a=n[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),r.strokeFirst?(Hg(r)&&e.strokeText(i,r.x,r.y),Wg(r)&&e.fillText(i,r.x,r.y)):(Wg(r)&&e.fillText(i,r.x,r.y),Hg(r)&&e.strokeText(i,r.x,r.y)),o&&e.setLineDash([])}}var pI=["shadowBlur","shadowOffsetX","shadowOffsetY"],hI=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function V5(e,t,r,n,i){var o=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Ln(e,i),o=!0;var a=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(a)?wl.opacity:a}(n||t.blend!==r.blend)&&(o||(Ln(e,i),o=!0),e.globalCompositeOperation=t.blend||wl.blend);for(var s=0;s<pI.length;s++){var l=pI[s];(n||t[l]!==r[l])&&(o||(Ln(e,i),o=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(o||(Ln(e,i),o=!0),e.shadowColor=t.shadowColor||wl.shadowColor),o}function vI(e,t,r,n,i){var o=up(t,i.inHover),a=n?null:r&&up(r,i.inHover)||{};if(o===a)return!1;var s=V5(e,o,a,n,i);if((n||o.fill!==a.fill)&&(s||(Ln(e,i),s=!0),cI(o.fill)&&(e.fillStyle=o.fill)),(n||o.stroke!==a.stroke)&&(s||(Ln(e,i),s=!0),cI(o.stroke)&&(e.strokeStyle=o.stroke)),(n||o.opacity!==a.opacity)&&(s||(Ln(e,i),s=!0),e.globalAlpha=o.opacity==null?1:o.opacity),t.hasStroke()){var l=o.lineWidth,c=l/(o.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==c&&(s||(Ln(e,i),s=!0),e.lineWidth=c)}for(var f=0;f<hI.length;f++){var p=hI[f],v=p[0];(n||o[v]!==a[v])&&(s||(Ln(e,i),s=!0),e[v]=o[v]||p[1])}return s}function hue(e,t,r,n,i){return V5(e,up(t,i.inHover),r&&up(r,i.inHover),n,i)}function U5(e,t){var r=t.transform,n=e.dpr||1;r?e.setTransform(n*r[0],n*r[1],n*r[2],n*r[3],n*r[4],n*r[5]):e.setTransform(n,0,0,n,0,0)}function vue(e,t,r){for(var n=!1,i=0;i<e.length;i++){var o=e[i];n=n||o.isZeroArea(),U5(t,o),t.beginPath(),o.buildPath(t,o.shape),t.clip()}r.allClipped=n}function gue(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var gI=1,mI=2,yI=3,xI=4;function mue(e){var t=Wg(e),r=Hg(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function Ln(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function up(e,t){return t&&e.__hoverStyle||e.style}function G5(e,t){bl(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function bl(e,t,r,n){var i=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=-2,t.__isRendered=!1;return}var o=t.__clipPaths,a=r.prevElClipPaths,s=!1,l=!1;if((!a||lue(o,a))&&(a&&a.length&&(Ln(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),o&&o.length&&(Ln(e,r),e.save(),vue(o,e,r),s=!0),r.prevElClipPaths=o),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var c=r.prevEl;c||(l=s=!0);var f=t instanceof Kt&&t.autoBatch&&mue(t.style);s||gue(i,c.transform)?(Ln(e,r),U5(e,t)):f||Ln(e,r);var p=up(t,r.inHover);t instanceof Kt?(r.lastDrawType!==gI&&(l=!0,r.lastDrawType=gI),vI(e,t,c,l,r),(!f||!r.batchFill&&!r.batchStroke)&&e.beginPath(),fue(e,t,p,f),f&&(r.batchFill=p.fill||"",r.batchStroke=p.stroke||"")):t instanceof Pg?(r.lastDrawType!==yI&&(l=!0,r.lastDrawType=yI),vI(e,t,c,l,r),pue(e,t,p)):t instanceof ks?(r.lastDrawType!==mI&&(l=!0,r.lastDrawType=mI),hue(e,t,c,l,r),due(e,t,p)):t.getTemporalDisplayables&&(r.lastDrawType!==xI&&(l=!0,r.lastDrawType=xI),yue(e,t,r)),f&&n&&Ln(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function yue(e,t,r){var n=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var o={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},a,s;for(a=t.getCursor(),s=n.length;a<s;a++){var l=n[a];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),bl(e,l,o,a===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}for(var c=0,f=i.length;c<f;c++){var l=i[c];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),bl(e,l,o,c===f-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var Dx=new oue,bI=new Pp(100),_I=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function b_(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&Dx.delete(e);var o=Dx.get(e);if(o)return o;var a=Gt(e,{symbol:"rect",symbolSize:1,symbolKeepAspect:!0,color:"rgba(0, 0, 0, 0.2)",backgroundColor:null,dashArrayX:5,dashArrayY:5,rotation:0,maxTileWidth:512,maxTileHeight:512});a.backgroundColor==="none"&&(a.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=a.rotation,s.scaleX=s.scaleY=i?1:1/r,Dx.set(e,s),e.dirty=!1,s;function l(c){for(var f=[r],p=!0,v=0;v<_I.length;++v){var h=a[_I[v]];if(h!=null&&!Be(h)&&!qe(h)&&!ur(h)&&typeof h!="boolean"){p=!1;break}f.push(h)}var g;if(p){g=f.join(",")+(i?"-svg":"");var x=bI.get(g);x&&(i?c.svgElement=x:c.image=x)}var y=Y5(a.dashArrayX),b=xue(a.dashArrayY),S=q5(a.symbol),_=bue(y),C=K5(b),k=!i&&yc.createCanvas(),T=i&&{tag:"g",attrs:{},key:"dcl",children:[]},E=D(),I;k&&(k.width=E.width*r,k.height=E.height*r,I=k.getContext("2d")),A(),p&&bI.put(g,k||T),c.image=k,c.svgElement=T,c.svgWidth=E.width,c.svgHeight=E.height;function D(){for(var L=1,$=0,B=_.length;$<B;++$)L=TP(L,_[$]);for(var j=1,$=0,B=S.length;$<B;++$)j=TP(j,S[$].length);L*=j;var W=C*_.length*S.length;return{width:Math.max(1,Math.min(L,a.maxTileWidth)),height:Math.max(1,Math.min(W,a.maxTileHeight))}}function A(){I&&(I.clearRect(0,0,k.width,k.height),a.backgroundColor&&(I.fillStyle=a.backgroundColor,I.fillRect(0,0,k.width,k.height)));for(var L=0,$=0;$<b.length;++$)L+=b[$];if(L<=0)return;for(var B=-C,j=0,W=0,q=0;B<E.height;){if(j%2===0){for(var Z=W/2%S.length,V=0,G=0,N=0;V<E.width*2;){for(var U=0,$=0;$<y[q].length;++$)U+=y[q][$];if(U<=0)break;if(G%2===0){var Q=(1-a.symbolSize)*.5,H=V+y[q][G]*Q,oe=B+b[j]*Q,ve=y[q][G]*a.symbolSize,te=b[j]*a.symbolSize,ge=N/2%S[Z].length;de(H,oe,ve,te,S[Z][ge])}V+=y[q][G],++N,++G,G===y[q].length&&(G=0)}++q,q===y.length&&(q=0)}B+=b[j],++W,++j,j===b.length&&(j=0)}function de(xe,Me,ue,Te,Oe){var Ae=i?1:r,we=pc(Oe,xe*Ae,Me*Ae,ue*Ae,Te*Ae,a.color,a.symbolKeepAspect);if(i){var Mt=n.painter.renderOneToVNode(we);Mt&&T.children.push(Mt)}else G5(I,we)}}}}function q5(e){if(!e||e.length===0)return[["rect"]];if(qe(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!qe(e[r])){t=!1;break}if(t)return q5([e]);for(var n=[],r=0;r<e.length;++r)qe(e[r])?n.push([e[r]]):n.push(e[r]);return n}function Y5(e){if(!e||e.length===0)return[[0,0]];if(ur(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!ur(e[n])){r=!1;break}if(r)return Y5([e]);for(var i=[],n=0;n<e.length;++n)if(ur(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=at(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function xue(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(ur(e)){var t=Math.ceil(e);return[t,t]}var r=at(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function bue(e){return at(e,function(t){return K5(t)})}function K5(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function _ue(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(a){var s=n.getItemVisual(a,"decal");if(s){var l=n.ensureUniqueItemVisual(a,"style");l.decal=b_(s,t)}});var i=n.getVisual("decal");if(i){var o=n.getVisual("style");o.decal=b_(i,t)}}})}var Yi=new Uo,X5={};function Sue(e,t){X5[e]=t}function wue(e){return X5[e]}var Cue=1,Tue=800,kue=900,Rue=1e3,Eue=2e3,Pue=5e3,Q5=1e3,Mue=1100,Yw=2e3,Z5=3e3,Iue=4e3,ry=4500,Aue=4600,Due=5e3,Lue=6e3,J5=7e3,Oue={PROCESSOR:{FILTER:Rue,SERIES_FILTER:Tue,STATISTIC:Pue},VISUAL:{LAYOUT:Q5,PROGRESSIVE_LAYOUT:Mue,GLOBAL:Yw,CHART:Z5,POST_CHART_LAYOUT:Aue,COMPONENT:Iue,BRUSH:Due,CHART_ITEM:ry,ARIA:Lue,DECAL:J5}},Qr="__flagInMainProcess",Mn="__pendingUpdate",Lx="__needsUpdateStatus",SI=/^[a-zA-Z0-9_]+$/,Ox="__connectUpdateStatus",wI=0,Nue=1,zue=2;function e3(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return r3(this,e,t)}}function t3(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return r3(this,e,t)}}function r3(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Uo.prototype[t].apply(e,r)}var n3=function(e){$e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Uo),i3=n3.prototype;i3.on=t3("on");i3.off=t3("off");var Mu,Nx,Lv,es,zx,$x,Fx,Wf,Vf,CI,TI,Bx,kI,Ov,RI,o3,mi,EI,Vg=function(e){$e(t,e);function t(r,n,i){var o=e.call(this,new Zle)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],i=i||{},qe(n)&&(n=a3[n]),o._dom=r;var a="canvas",s="auto",l=!1;i.ssr;var c=o._zr=qM(r,{renderer:i.renderer||a,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:wt(i.useDirtyRect,l),useCoarsePointer:wt(i.useCoarsePointer,s),pointerSize:i.pointerSize});o._ssr=i.ssr,o._throttledZrFlush=w5(pr(c.flush,c),17),n=Rt(n),n&&O5(n,!0),o._theme=n,o._locale=Koe(i.locale||qN),o._coordSysMgr=new Nw;var f=o._api=RI(o);function p(v,h){return v.__prio-h.__prio}return ig(Gg,p),ig(__,p),o._scheduler=new $5(o,f,__,Gg),o._messageCenter=new n3,o._initEvents(),o.resize=pr(o.resize,o),c.animation.on("frame",o._onframe,o),CI(c,o),TI(c,o),Ob(o),o}return t.prototype._onframe=function(){if(!this._disposed){EI(this);var r=this._scheduler;if(this[Mn]){var n=this[Mn].silent;this[Qr]=!0;try{Mu(this),es.update.call(this,null,this[Mn].updateParams)}catch(l){throw this[Qr]=!1,this[Mn]=null,l}this._zr.flush(),this[Qr]=!1,this[Mn]=null,Wf.call(this,n),Vf.call(this,n)}else if(r.unfinished){var i=Cue,o=this._model,a=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(o),r.performDataProcessorTasks(o),$x(this,o),r.performVisualTasks(o),Ov(this,this._model,a,"remain",{}),i-=+new Date-s}while(i>0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(!this[Qr]){if(this._disposed){this.id;return}var o,a,s;if(rt(n)&&(i=n.lazyUpdate,o=n.silent,a=n.replaceMerge,s=n.transition,n=n.notMerge),this[Qr]=!0,!this._model||n){var l=new wle(this._api),c=this._theme,f=this._model=new qw;f.scheduler=this._scheduler,f.ssr=this._ssr,f.init(null,null,null,c,this._locale,l)}this._model.setOption(r,{replaceMerge:a},S_);var p={seriesTransition:s,optionChanged:!0};if(i)this[Mn]={silent:o,updateParams:p},this[Qr]=!1,this.getZr().wakeUp();else{try{Mu(this),es.update.call(this,null,p)}catch(v){throw this[Mn]=null,this[Qr]=!1,v}this._ssr||this._zr.flush(),this[Mn]=null,this[Qr]=!1,Wf.call(this,o),Vf.call(this,o)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||ut.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(ut.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return X(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,o=[],a=this;X(n,function(l){i.eachComponent({mainType:l},function(c){var f=a._componentsMap[c.__viewId];f.group.ignore||(o.push(f),f.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return X(o,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,o=Math.min,a=Math.max,s=1/0;if(C_[i]){var l=s,c=s,f=-s,p=-s,v=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();X(tc,function(_,C){if(_.group===i){var k=n?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas(Rt(r)),T=_.getDom().getBoundingClientRect();l=o(T.left,l),c=o(T.top,c),f=a(T.right,f),p=a(T.bottom,p),v.push({dom:k,left:T.left,top:T.top})}}),l*=h,c*=h,f*=h,p*=h;var g=f-l,x=p-c,y=yc.createCanvas(),b=qM(y,{renderer:n?"svg":"canvas"});if(b.resize({width:g,height:x}),n){var S="";return X(v,function(_){var C=_.left-l,k=_.top-c;S+='<g transform="translate('+C+","+k+')">'+_.dom+"</g>"}),b.painter.getSvgRoot().innerHTML=S,r.connectedBackgroundColor&&b.painter.setBackgroundColor(r.connectedBackgroundColor),b.refreshImmediately(),b.painter.toDataURL()}else return r.connectedBackgroundColor&&b.add(new zr({shape:{x:0,y:0,width:g,height:x},style:{fill:r.connectedBackgroundColor}})),X(v,function(_){var C=new ks({style:{x:_.left*h-l,y:_.top*h-c,image:_.dom}});b.add(C)}),b.refreshImmediately(),y.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return zx(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return zx(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,o,a=tx(i,r);return X(a,function(s,l){l.indexOf("Models")>=0&&X(s,function(c){var f=c.coordinateSystem;if(f&&f.containPoint)o=o||!!f.containPoint(n);else if(l==="seriesModels"){var p=this._chartsMap[c.__viewId];p&&p.containPoint&&(o=o||p.containPoint(n,c))}},this)},this),!!o},t.prototype.getVisual=function(r,n){var i=this._model,o=tx(i,r,{defaultMainType:"series"}),a=o.seriesModel,s=a.getData(),l=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?s.indexOfRawIndex(o.dataIndex):null;return l!=null?tue(s,l,n):rue(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;X($ue,function(n){var i=function(o){var a=r.getModel(),s=o.target,l,c=n==="globalout";if(c?l={}:s&&id(s,function(g){var x=Ut(g);if(x&&x.dataIndex!=null){var y=x.dataModel||a.getSeriesByIndex(x.seriesIndex);return l=y&&y.getDataParams(x.dataIndex,x.dataType,s)||{},!0}else if(x.eventData)return l=Ie({},x.eventData),!0},!0),l){var f=l.componentType,p=l.componentIndex;(f==="markLine"||f==="markPoint"||f==="markArea")&&(f="series",p=l.seriesIndex);var v=f&&p!=null&&a.getComponent(f,p),h=v&&r[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];l.event=o,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:v,view:h},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),X(Md,function(n,i){r._messageCenter.on(i,function(o){this.trigger(i,o)},r)}),X(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),zse(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&tN(this.getDom(),Xw,"");var n=this,i=n._api,o=n._model;X(n._componentsViews,function(a){a.dispose(o,i)}),X(n._chartsViews,function(a){a.dispose(o,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete tc[n.id]},t.prototype.resize=function(r){if(!this[Qr]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),o=r&&r.silent;this[Mn]&&(o==null&&(o=this[Mn].silent),i=!0,this[Mn]=null),this[Qr]=!0;try{i&&Mu(this),es.update.call(this,{type:"resize",animation:Ie({duration:0},r&&r.animation)})}catch(a){throw this[Qr]=!1,a}this[Qr]=!1,Wf.call(this,o),Vf.call(this,o)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(rt(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!w_[r]){var i=w_[r](this._api,n),o=this._zr;this._loadingFX=i,o.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=Ie({},r);return n.type=Md[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(rt(n)||(n={silent:!!n}),!!Ug[r.type]&&this._model){if(this[Qr]){this._pendingActions.push(r);return}var i=n.silent;Fx.call(this,r,i);var o=n.flush;o?this._zr.flush():o!==!1&&ut.browser.weChat&&this._throttledZrFlush(),Wf.call(this,i),Vf.call(this,i)}},t.prototype.updateLabelLayout=function(){Yi.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),o=i.getSeriesByIndex(n);o.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){Mu=function(p){var v=p._scheduler;v.restorePipelines(p._model),v.prepareStageTasks(),Nx(p,!0),Nx(p,!1),v.plan()},Nx=function(p,v){for(var h=p._model,g=p._scheduler,x=v?p._componentsViews:p._chartsViews,y=v?p._componentsMap:p._chartsMap,b=p._zr,S=p._api,_=0;_<x.length;_++)x[_].__alive=!1;v?h.eachComponent(function(T,E){T!=="series"&&C(E)}):h.eachSeries(C);function C(T){var E=T.__requireNewView;T.__requireNewView=!1;var I="_ec_"+T.id+"_"+T.type,D=!E&&y[I];if(!D){var A=Po(T.type),L=v?ro.getClass(A.main,A.sub):No.getClass(A.sub);D=new L,D.init(h,S),y[I]=D,x.push(D),b.add(D.group)}T.__viewId=D.__id=I,D.__alive=!0,D.__model=T,D.group.__ecComponentInfo={mainType:T.mainType,index:T.componentIndex},!v&&g.prepareView(D,T,h,S)}for(var _=0;_<x.length;){var k=x[_];k.__alive?_++:(!v&&k.renderTask.dispose(),b.remove(k.group),k.dispose(h,S),x.splice(_,1),y[k.__id]===k&&delete y[k.__id],k.__id=k.group.__ecComponentInfo=null)}},Lv=function(p,v,h,g,x){var y=p._model;if(y.setUpdatePayload(h),!g){X([].concat(p._componentsViews).concat(p._chartsViews),k);return}var b={};b[g+"Id"]=h[g+"Id"],b[g+"Index"]=h[g+"Index"],b[g+"Name"]=h[g+"Name"];var S={mainType:g,query:b};x&&(S.subType=x);var _=h.excludeSeriesId,C;_!=null&&(C=yt(),X(yn(_),function(T){var E=Oo(T,null);E!=null&&C.set(E,!0)})),y&&y.eachComponent(S,function(T){var E=C&&C.get(T.id)!=null;if(!E)if(FP(h))if(T instanceof xs)h.type===Cl&&!h.notBlur&&!T.get(["emphasis","disabled"])&&zne(T,h,p._api);else{var I=bw(T.mainType,T.componentIndex,h.name,p._api),D=I.focusSelf,A=I.dispatchers;h.type===Cl&&D&&!h.notBlur&&Xb(T.mainType,T.componentIndex,p._api),A&&X(A,function(L){h.type===Cl?Ag(L):Dg(L)})}else e_(h)&&T instanceof xs&&(Bne(T,h,p._api),NP(T),mi(p))},p),y&&y.eachComponent(S,function(T){var E=C&&C.get(T.id)!=null;E||k(p[g==="series"?"_chartsMap":"_componentsMap"][T.__viewId])},p);function k(T){T&&T.__alive&&T[v]&&T[v](T.__model,y,p._api,h)}},es={prepareAndUpdate:function(p){Mu(this),es.update.call(this,p,{optionChanged:p.newOption!=null})},update:function(p,v){var h=this._model,g=this._api,x=this._zr,y=this._coordSysMgr,b=this._scheduler;if(h){h.setUpdatePayload(p),b.restoreData(h,p),b.performSeriesTasks(h),y.create(h,g),b.performDataProcessorTasks(h,p),$x(this,h),y.update(h,g),r(h),b.performVisualTasks(h,p),Bx(this,h,g,p,v);var S=h.get("backgroundColor")||"transparent",_=h.get("darkMode");x.setBackgroundColor(S),_!=null&&_!=="auto"&&x.setDarkMode(_),Yi.trigger("afterupdate",h,g)}},updateTransform:function(p){var v=this,h=this._model,g=this._api;if(h){h.setUpdatePayload(p);var x=[];h.eachComponent(function(b,S){if(b!=="series"){var _=v.getViewOfComponentModel(S);if(_&&_.__alive)if(_.updateTransform){var C=_.updateTransform(S,h,g,p);C&&C.update&&x.push(_)}else x.push(_)}});var y=yt();h.eachSeries(function(b){var S=v._chartsMap[b.__viewId];if(S.updateTransform){var _=S.updateTransform(b,h,g,p);_&&_.update&&y.set(b.uid,1)}else y.set(b.uid,1)}),r(h),this._scheduler.performVisualTasks(h,p,{setDirty:!0,dirtyMap:y}),Ov(this,h,g,p,{},y),Yi.trigger("afterupdate",h,g)}},updateView:function(p){var v=this._model;v&&(v.setUpdatePayload(p),No.markUpdateMethod(p,"updateView"),r(v),this._scheduler.performVisualTasks(v,p,{setDirty:!0}),Bx(this,v,this._api,p,{}),Yi.trigger("afterupdate",v,this._api))},updateVisual:function(p){var v=this,h=this._model;h&&(h.setUpdatePayload(p),h.eachSeries(function(g){g.getData().clearAllVisual()}),No.markUpdateMethod(p,"updateVisual"),r(h),this._scheduler.performVisualTasks(h,p,{visualType:"visual",setDirty:!0}),h.eachComponent(function(g,x){if(g!=="series"){var y=v.getViewOfComponentModel(x);y&&y.__alive&&y.updateVisual(x,h,v._api,p)}}),h.eachSeries(function(g){var x=v._chartsMap[g.__viewId];x.updateVisual(g,h,v._api,p)}),Yi.trigger("afterupdate",h,this._api))},updateLayout:function(p){es.update.call(this,p)}},zx=function(p,v,h,g){if(p._disposed){p.id;return}for(var x=p._model,y=p._coordSysMgr.getCoordinateSystems(),b,S=tx(x,h),_=0;_<y.length;_++){var C=y[_];if(C[v]&&(b=C[v](x,S,g))!=null)return b}},$x=function(p,v){var h=p._chartsMap,g=p._scheduler;v.eachSeries(function(x){g.updateStreamModes(x,h[x.__viewId])})},Fx=function(p,v){var h=this,g=this.getModel(),x=p.type,y=p.escapeConnect,b=Ug[x],S=b.actionInfo,_=(S.update||"update").split(":"),C=_.pop(),k=_[0]!=null&&Po(_[0]);this[Qr]=!0;var T=[p],E=!1;p.batch&&(E=!0,T=at(p.batch,function(j){return j=Gt(Ie({},j),p),j.batch=null,j}));var I=[],D,A=e_(p),L=FP(p);if(L&&cN(this._api),X(T,function(j){if(D=b.action(j,h._model,h._api),D=D||Ie({},j),D.type=S.event||D.type,I.push(D),L){var W=gw(p),q=W.queryOptionMap,Z=W.mainTypeSpecified,V=Z?q.keys()[0]:"series";Lv(h,C,j,V),mi(h)}else A?(Lv(h,C,j,"series"),mi(h)):k&&Lv(h,C,j,k.main,k.sub)}),C!=="none"&&!L&&!A&&!k)try{this[Mn]?(Mu(this),es.update.call(this,p),this[Mn]=null):es[C].call(this,p)}catch(j){throw this[Qr]=!1,j}if(E?D={type:S.event||x,escapeConnect:y,batch:I}:D=I[0],this[Qr]=!1,!v){var $=this._messageCenter;if($.trigger(D.type,D),A){var B={type:"selectchanged",escapeConnect:y,selected:jne(g),isFromClick:p.isFromClick||!1,fromAction:p.type,fromActionPayload:p};$.trigger(B.type,B)}}},Wf=function(p){for(var v=this._pendingActions;v.length;){var h=v.shift();Fx.call(this,h,p)}},Vf=function(p){!p&&this.trigger("updated")},CI=function(p,v){p.on("rendered",function(h){v.trigger("rendered",h),p.animation.isFinished()&&!v[Mn]&&!v._scheduler.unfinished&&!v._pendingActions.length&&v.trigger("finished")})},TI=function(p,v){p.on("mouseover",function(h){var g=h.target,x=id(g,Jb);x&&($ne(x,h,v._api),mi(v))}).on("mouseout",function(h){var g=h.target,x=id(g,Jb);x&&(Fne(x,h,v._api),mi(v))}).on("click",function(h){var g=h.target,x=id(g,function(S){return Ut(S).dataIndex!=null},!0);if(x){var y=x.selected?"unselect":"select",b=Ut(x);v._api.dispatchAction({type:y,dataType:b.dataType,dataIndexInside:b.dataIndex,seriesIndex:b.seriesIndex,isFromClick:!0})}})};function r(p){p.clearColorPalette(),p.eachSeries(function(v){v.clearColorPalette()})}function n(p){var v=[],h=[],g=!1;if(p.eachComponent(function(S,_){var C=_.get("zlevel")||0,k=_.get("z")||0,T=_.getZLevelKey();g=g||!!T,(S==="series"?h:v).push({zlevel:C,z:k,idx:_.componentIndex,type:S,key:T})}),g){var x=v.concat(h),y,b;ig(x,function(S,_){return S.zlevel===_.zlevel?S.z-_.z:S.zlevel-_.zlevel}),X(x,function(S){var _=p.getComponent(S.type,S.idx),C=S.zlevel,k=S.key;y!=null&&(C=Math.max(y,C)),k?(C===y&&k!==b&&C++,b=k):b&&(C===y&&C++,b=""),y=C,_.setZLevel(C)})}}Bx=function(p,v,h,g,x){n(v),kI(p,v,h,g,x),X(p._chartsViews,function(y){y.__alive=!1}),Ov(p,v,h,g,x),X(p._chartsViews,function(y){y.__alive||y.remove(v,h)})},kI=function(p,v,h,g,x,y){X(y||p._componentsViews,function(b){var S=b.__model;c(S,b),b.render(S,v,h,g),s(S,b),f(S,b)})},Ov=function(p,v,h,g,x,y){var b=p._scheduler;x=Ie(x||{},{updatedSeries:v.getSeries()}),Yi.trigger("series:beforeupdate",v,h,x);var S=!1;v.eachSeries(function(_){var C=p._chartsMap[_.__viewId];C.__alive=!0;var k=C.renderTask;b.updatePayload(k,g),c(_,C),y&&y.get(_.uid)&&k.dirty(),k.perform(b.getPerformArgs(k))&&(S=!0),C.group.silent=!!_.get("silent"),a(_,C),NP(_)}),b.unfinished=S||b.unfinished,Yi.trigger("series:layoutlabels",v,h,x),Yi.trigger("series:transition",v,h,x),v.eachSeries(function(_){var C=p._chartsMap[_.__viewId];s(_,C),f(_,C)}),o(p,v),Yi.trigger("series:afterupdate",v,h,x)},mi=function(p){p[Lx]=!0,p.getZr().wakeUp()},EI=function(p){p[Lx]&&(p.getZr().storage.traverse(function(v){kd(v)||i(v)}),p[Lx]=!1)};function i(p){for(var v=[],h=p.currentStates,g=0;g<h.length;g++){var x=h[g];x==="emphasis"||x==="blur"||x==="select"||v.push(x)}p.selected&&p.states.select&&v.push("select"),p.hoverState===Bm&&p.states.emphasis?v.push("emphasis"):p.hoverState===Fm&&p.states.blur&&v.push("blur"),p.useStates(v)}function o(p,v){var h=p._zr,g=h.storage,x=0;g.traverse(function(y){y.isGroup||x++}),x>v.get("hoverLayerThreshold")&&!ut.node&&!ut.worker&&v.eachSeries(function(y){if(!y.preventUsingHoverLayer){var b=p._chartsMap[y.__viewId];b.__alive&&b.eachRendered(function(S){S.states.emphasis&&(S.states.emphasis.hoverLayer=!0)})}})}function a(p,v){var h=p.get("blendMode")||null;v.eachRendered(function(g){g.isGroup||(g.style.blend=h)})}function s(p,v){if(!p.preventAutoZ){var h=p.get("z")||0,g=p.get("zlevel")||0;v.eachRendered(function(x){return l(x,h,g,-1/0),!0})}}function l(p,v,h,g){var x=p.getTextContent(),y=p.getTextGuideLine(),b=p.isGroup;if(b)for(var S=p.childrenRef(),_=0;_<S.length;_++)g=Math.max(l(S[_],v,h,g),g);else p.z=v,p.zlevel=h,g=Math.max(p.z2,g);if(x&&(x.z=v,x.zlevel=h,isFinite(g)&&(x.z2=g+2)),y){var C=p.textGuideLineConfig;y.z=v,y.zlevel=h,isFinite(g)&&(y.z2=g+(C&&C.showAbove?1:-1))}return g}function c(p,v){v.eachRendered(function(h){if(!kd(h)){var g=h.getTextContent(),x=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),x&&x.stateTransition&&(x.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function f(p,v){var h=p.getModel("stateAnimation"),g=p.isAnimationEnabled(),x=h.get("duration"),y=x>0?{duration:x,delay:h.get("delay"),easing:h.get("easing")}:null;v.eachRendered(function(b){if(b.states&&b.states.emphasis){if(kd(b))return;if(b instanceof Kt&&Gne(b),b.__dirty){var S=b.prevStates;S&&b.useStates(S)}if(g){b.stateTransition=y;var _=b.getTextContent(),C=b.getTextGuideLine();_&&(_.stateTransition=y),C&&(C.stateTransition=y)}b.__dirty&&i(b)}})}RI=function(p){return new(function(v){$e(h,v);function h(){return v!==null&&v.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return p._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(g){for(;g;){var x=g.__ecComponentInfo;if(x!=null)return p._model.getComponent(x.mainType,x.index);g=g.parent}},h.prototype.enterEmphasis=function(g,x){Ag(g,x),mi(p)},h.prototype.leaveEmphasis=function(g,x){Dg(g,x),mi(p)},h.prototype.enterBlur=function(g){Nne(g),mi(p)},h.prototype.leaveBlur=function(g){aN(g),mi(p)},h.prototype.enterSelect=function(g){sN(g),mi(p)},h.prototype.leaveSelect=function(g){lN(g),mi(p)},h.prototype.getModel=function(){return p.getModel()},h.prototype.getViewOfComponentModel=function(g){return p.getViewOfComponentModel(g)},h.prototype.getViewOfSeriesModel=function(g){return p.getViewOfSeriesModel(g)},h}(D5))(p)},o3=function(p){function v(h,g){for(var x=0;x<h.length;x++){var y=h[x];y[Ox]=g}}X(Md,function(h,g){p._messageCenter.on(g,function(x){if(C_[p.group]&&p[Ox]!==wI){if(x&&x.escapeConnect)return;var y=p.makeActionFromEvent(x),b=[];X(tc,function(S){S!==p&&S.group===p.group&&b.push(S)}),v(b,wI),X(b,function(S){S[Ox]!==Nue&&S.dispatchAction(y)}),v(b,zue)}})})}}(),t}(Uo),Kw=Vg.prototype;Kw.on=e3("on");Kw.off=e3("off");Kw.one=function(e,t,r){var n=this;function i(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];t&&t.apply&&t.apply(this,o),n.off(e,i)}this.on.call(this,e,i,r)};var $ue=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var Ug={},Md={},__=[],S_=[],Gg=[],a3={},w_={},tc={},C_={},Fue=+new Date-0,Bue=+new Date-0,Xw="_echarts_instance_";function jue(e,t,r){{var n=s3(e);if(n)return n}var i=new Vg(e,t,r);return i.id="ec_"+Fue++,tc[i.id]=i,tN(e,Xw,i.id),o3(i),Yi.trigger("afterinit",i),i}function Hue(e){if(Be(e)){var t=e;e=null,X(t,function(r){r.group!=null&&(e=r.group)}),e=e||"g_"+Bue++,X(t,function(r){r.group=e})}return C_[e]=!0,e}function Wue(e){qe(e)?e=tc[e]:e instanceof Vg||(e=s3(e)),e instanceof Vg&&!e.isDisposed()&&e.dispose()}function s3(e){return tc[wne(e,Xw)]}function l3(e,t){a3[e]=t}function u3(e){qt(S_,e)<0&&S_.push(e)}function c3(e,t){Zw(__,e,t,Eue)}function Vue(e){Qw("afterinit",e)}function Uue(e){Qw("afterupdate",e)}function Qw(e,t){Yi.on(e,t)}function Sc(e,t,r){ft(t)&&(r=t,t="");var n=rt(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!Md[t]&&(xa(SI.test(n)&&SI.test(t)),Ug[n]||(Ug[n]={action:r,actionInfo:e}),Md[t]=n)}function Gue(e,t){Nw.register(e,t)}function que(e,t){Zw(Gg,e,t,Q5,"layout")}function Fl(e,t){Zw(Gg,e,t,Z5,"visual")}var PI=[];function Zw(e,t,r,n,i){if((ft(t)||rt(t))&&(r=t,t=n),!(qt(PI,r)>=0)){PI.push(r);var o=$5.wrapStageHandler(r,i);o.__prio=t,o.__raw=r,e.push(o)}}function f3(e,t){w_[e]=t}function Yue(e,t,r){var n=wue("registerMap");n&&n(e,t,r)}var Kue=xae;Fl(Yw,$le);Fl(ry,Fle);Fl(ry,Ble);Fl(Yw,Jle);Fl(ry,eue);Fl(J5,_ue);u3(O5);c3(kue,Ole);f3("default",jle);Sc({type:Cl,event:Cl,update:Cl},Fn);Sc({type:Zv,event:Zv,update:Zv},Fn);Sc({type:wd,event:wd,update:wd},Fn);Sc({type:Jv,event:Jv,update:Jv},Fn);Sc({type:Cd,event:Cd,update:Cd},Fn);l3("light",Qle);l3("dark",H5);var MI=[],Xue={registerPreprocessor:u3,registerProcessor:c3,registerPostInit:Vue,registerPostUpdate:Uue,registerUpdateLifecycle:Qw,registerAction:Sc,registerCoordinateSystem:Gue,registerLayout:que,registerVisual:Fl,registerTransform:Kue,registerLoading:f3,registerMap:Yue,registerImpl:Sue,PRIORITY:Oue,ComponentModel:Vt,ComponentView:ro,SeriesModel:xs,ChartView:No,registerComponentModel:function(e){Vt.registerClass(e)},registerComponentView:function(e){ro.registerClass(e)},registerSeriesModel:function(e){xs.registerClass(e)},registerChartView:function(e){No.registerClass(e)},registerSubTypeDefaulter:function(e,t){Vt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){hle(e,t)}};function bs(e){if(Be(e)){X(e,function(t){bs(t)});return}qt(MI,e)>=0||(MI.push(e),ft(e)&&(e={install:e}),e.install(Xue))}var Que=function(e){$e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(Vt),Zue=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),T_=function(e){$e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Xi).models[0]},t.type="cartesian2dAxis",t}(Vt);Vo(T_,Zue);var d3={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},Jue=Bt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},d3),Jw=Bt({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},d3),ece=Bt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Jw),tce=Gt({logBase:10},Jw);const rce={category:Jue,value:Jw,time:ece,log:tce};var nce=0,k_=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++nce}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&at(n,ice);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!qe(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=yt(this.categories))},e}();function ice(e){return rt(e)&&e.value!=null?e.value:e+""}var oce={value:1,category:1,time:1,log:1};function II(e,t,r,n){X(oce,function(i,o){var a=Bt(Bt({},rce[o],!0),n,!0),s=function(l){$e(c,l);function c(){var f=l!==null&&l.apply(this,arguments)||this;return f.type=t+"Axis."+o,f}return c.prototype.mergeDefaultAndTheme=function(f,p){var v=op(this),h=v?ty(f):{},g=p.getTheme();Bt(f,g.get(o+"Axis")),Bt(f,this.getDefaultOption()),f.type=AI(f),v&&dc(f,h,v)},c.prototype.optionUpdated=function(){var f=this.option;f.type==="category"&&(this.__ordinalMeta=k_.createByAxisModel(this))},c.prototype.getCategories=function(f){var p=this.option;if(p.type==="category")return f?p.data:this.__ordinalMeta.categories},c.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},c.type=t+"Axis."+o,c.defaultOption=a,c}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",AI)}function AI(e){return e.type||(e.data?"category":"value")}var qo=function(){function e(t){this._setting=t||{},this._extent=[1/0,-1/0]}return e.prototype.getSetting=function(t){return this._setting[t]},e.prototype.unionExtent=function(t){var r=this._extent;t[0]<r[0]&&(r[0]=t[0]),t[1]>r[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();Lm(qo);function R_(e){return e.type==="interval"||e.type==="log"}function ace(e,t,r,n){var i={},o=e[1]-e[0],a=i.interval=XO(o/t);r!=null&&a<r&&(a=i.interval=r),n!=null&&a>n&&(a=i.interval=n);var s=i.intervalPrecision=p3(a),l=i.niceTickExtent=[Tr(Math.ceil(e[0]/a)*a,s),Tr(Math.floor(e[1]/a)*a,s)];return sce(l,e),i}function jx(e){var t=Math.pow(10,hw(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Tr(r*t)}function p3(e){return ca(e)+2}function DI(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function sce(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),DI(e,0,t),DI(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function ny(e,t){return e>=t[0]&&e<=t[1]}function iy(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function oy(e,t){return e*(t[1]-t[0])+t[0]}var eC=function(e){$e(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new k_({})),Be(i)&&(i=new k_({categories:at(i,function(o){return rt(o)?o.value:o})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:qe(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),ny(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),iy(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(oy(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],o=this._ticksByOrdinalNumber=[],a=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);a<l;++a){var c=n[a];i[a]=c,o[c]=a}for(var f=0;a<s;++a){for(;o[f]!=null;)f++;i.push(f),o[f]=a}},t.prototype._getTickNumber=function(r){var n=this._ticksByOrdinalNumber;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getRawOrdinalNumber=function(r){var n=this._ordinalNumbersByTick;return n&&r>=0&&r<n.length?n[r]:r},t.prototype.getLabel=function(r){if(!this.isBlank()){var n=this.getRawOrdinalNumber(r.value),i=this._ordinalMeta.categories[n];return i==null?"":i+""}},t.prototype.count=function(){return this._extent[1]-this._extent[0]+1},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.isInExtentRange=function(r){return r=this._getTickNumber(r),this._extent[0]<=r&&this._extent[1]>=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(qo);qo.registerClass(eC);var al=Tr,wc=function(e){$e(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return ny(r,this._extent)},t.prototype.normalize=function(r){return iy(r,this._extent)},t.prototype.scale=function(r){return oy(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]<n[0]&&(n[0]=r[0]),r[1]>n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=p3(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,o=this._niceExtent,a=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]<o[0]&&(r?s.push({value:al(o[0]-n,a)}):s.push({value:i[0]}));for(var c=o[0];c<=o[1]&&(s.push({value:c}),c=al(c+n,a),c!==s[s.length-1].value);)if(s.length>l)return[];var f=s.length?s[s.length-1].value:o[1];return i[1]>f&&(r?s.push({value:al(f+n,a)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],o=this.getExtent(),a=1;a<n.length;a++){for(var s=n[a],l=n[a-1],c=0,f=[],p=s.value-l.value,v=p/r;c<r-1;){var h=al(l.value+(c+1)*v);h>o[0]&&h<o[1]&&f.push(h),c++}i.push(f)}return i},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=ca(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var o=al(r.value,i,!0);return n5(o)},t.prototype.calcNiceTicks=function(r,n,i){r=r||5;var o=this._extent,a=o[1]-o[0];if(isFinite(a)){a<0&&(a=-a,o.reverse());var s=ace(o,r,n,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1])if(n[0]!==0){var i=Math.abs(n[0]);r.fixMax||(n[1]+=i/2),n[0]-=i/2}else n[1]=1;var o=n[1]-n[0];isFinite(o)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var a=this._interval;r.fixMin||(n[0]=al(Math.floor(n[0]/a)*a)),r.fixMax||(n[1]=al(Math.ceil(n[1]/a)*a))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(qo);qo.registerClass(wc);var lce=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},h3=function(e){$e(t,e);function t(r){var n=e.call(this,r)||this;return n.type="time",n}return t.prototype.getLabel=function(r){var n=this.getSetting("useUTC");return Km(r.value,vM[Joe(Ju(this._minLevelUnit))]||vM.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,i){var o=this.getSetting("useUTC"),a=this.getSetting("locale");return eae(r,n,i,a,o)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,i=[];if(!r)return i;i.push({value:n[0],level:0});var o=this.getSetting("useUTC"),a=vce(this._minLevelUnit,this._approxInterval,o,n);return i=i.concat(a),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Pi,n[1]+=Pi),n[1]===-1/0&&n[0]===1/0){var i=new Date;n[1]=+new Date(i.getFullYear(),i.getMonth(),i.getDate()),n[0]=n[1]-Pi}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,i){r=r||10;var o=this._extent,a=o[1]-o[0];this._approxInterval=a/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=Nv.length,l=Math.min(lce(Nv,this._approxInterval,0,s),s-1);this._interval=Nv[l][1],this._minLevelUnit=Nv[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return ur(r)?r:+ba(r)},t.prototype.contain=function(r){return ny(this.parse(r),this._extent)},t.prototype.normalize=function(r){return iy(this.parse(r),this._extent)},t.prototype.scale=function(r){return oy(r,this._extent)},t.type="time",t}(wc),Nv=[["second",Fw],["minute",Bw],["hour",Rd],["quarter-day",Rd*6],["half-day",Rd*12],["day",Pi*1.2],["half-week",Pi*3.5],["week",Pi*7],["month",Pi*31],["quarter",Pi*95],["half-year",hM/2],["year",hM]];function uce(e,t,r,n){var i=ba(t),o=ba(r),a=function(g){return gM(i,g,n)===gM(o,g,n)},s=function(){return a("year")},l=function(){return s()&&a("month")},c=function(){return l()&&a("day")},f=function(){return c()&&a("hour")},p=function(){return f()&&a("minute")},v=function(){return p()&&a("second")},h=function(){return v()&&a("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return c();case"hour":return f();case"minute":return p();case"second":return v();case"millisecond":return h()}}function cce(e,t){return e/=Pi,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function fce(e){var t=30*Pi;return e/=t,e>6?6:e>3?3:e>2?2:1}function dce(e){return e/=Rd,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function LI(e,t){return e/=t?Bw:Fw,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function pce(e){return XO(e)}function hce(e,t,r){var n=new Date(e);switch(Ju(t)){case"year":case"month":n[QN(r)](0);case"day":n[ZN(r)](1);case"hour":n[JN(r)](0);case"minute":n[e5(r)](0);case"second":n[t5(r)](0),n[r5(r)](0)}return n.getTime()}function vce(e,t,r,n){var i=1e4,o=KN,a=0;function s(A,L,$,B,j,W,q){for(var Z=new Date(L),V=L,G=Z[B]();V<$&&V<=n[1];)q.push({value:V}),G+=A,Z[j](G),V=Z.getTime();q.push({value:V,notAdd:!0})}function l(A,L,$){var B=[],j=!L.length;if(!uce(Ju(A),n[0],n[1],r)){j&&(L=[{value:hce(new Date(n[0]),A,r)},{value:n[1]}]);for(var W=0;W<L.length-1;W++){var q=L[W].value,Z=L[W+1].value;if(q!==Z){var V=void 0,G=void 0,N=void 0,U=!1;switch(A){case"year":V=Math.max(1,Math.round(t/Pi/365)),G=jw(r),N=tae(r);break;case"half-year":case"quarter":case"month":V=fce(t),G=ec(r),N=QN(r);break;case"week":case"half-week":case"day":V=cce(t),G=Xm(r),N=ZN(r),U=!0;break;case"half-day":case"quarter-day":case"hour":V=dce(t),G=np(r),N=JN(r);break;case"minute":V=LI(t,!0),G=Qm(r),N=e5(r);break;case"second":V=LI(t,!1),G=Zm(r),N=t5(r);break;case"millisecond":V=pce(t),G=Jm(r),N=r5(r);break}s(V,q,Z,G,N,U,B),A==="year"&&$.length>1&&W===0&&$.unshift({value:$[0].value-V})}}for(var W=0;W<B.length;W++)$.push(B[W]);return B}}for(var c=[],f=[],p=0,v=0,h=0;h<o.length&&a++<i;++h){var g=Ju(o[h]);if(Zoe(o[h])){l(o[h],c[c.length-1]||[],f);var x=o[h+1]?Ju(o[h+1]):null;if(g!==x){if(f.length){v=p,f.sort(function(A,L){return A.value-L.value});for(var y=[],b=0;b<f.length;++b){var S=f[b].value;(b===0||f[b-1].value!==S)&&(y.push(f[b]),S>=n[0]&&S<=n[1]&&p++)}var _=(n[1]-n[0])/t;if(p>_*1.5&&v>_/1.5||(c.push(y),p>_||e===o[h]))break}f=[]}}}for(var C=hn(at(c,function(A){return hn(A,function(L){return L.value>=n[0]&&L.value<=n[1]&&!L.notAdd})}),function(A){return A.length>0}),k=[],T=C.length-1,h=0;h<C.length;++h)for(var E=C[h],I=0;I<E.length;++I)k.push({value:E[I].value,level:T-h});k.sort(function(A,L){return A.value-L.value});for(var D=[],h=0;h<k.length;++h)(h===0||k[h].value!==k[h-1].value)&&D.push(k[h]);return D}qo.registerClass(h3);var OI=qo.prototype,Id=wc.prototype,gce=Tr,mce=Math.floor,yce=Math.ceil,zv=Math.pow,Ui=Math.log,tC=function(e){$e(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new wc,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,i=this._extent,o=n.getExtent(),a=Id.getTicks.call(this,r);return at(a,function(s){var l=s.value,c=Tr(zv(this.base,l));return c=l===i[0]&&this._fixMin?$v(c,o[0]):c,c=l===i[1]&&this._fixMax?$v(c,o[1]):c,{value:c}},this)},t.prototype.setExtent=function(r,n){var i=Ui(this.base);r=Ui(Math.max(0,r))/i,n=Ui(Math.max(0,n))/i,Id.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=OI.getExtent.call(this);n[0]=zv(r,n[0]),n[1]=zv(r,n[1]);var i=this._originalScale,o=i.getExtent();return this._fixMin&&(n[0]=$v(n[0],o[0])),this._fixMax&&(n[1]=$v(n[1],o[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=Ui(r[0])/Ui(n),r[1]=Ui(r[1])/Ui(n),OI.unionExtent.call(this,r)},t.prototype.unionExtentFromData=function(r,n){this.unionExtent(r.getApproximateExtent(n))},t.prototype.calcNiceTicks=function(r){r=r||10;var n=this._extent,i=n[1]-n[0];if(!(i===1/0||i<=0)){var o=une(i),a=r/i*o;for(a<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var s=[Tr(yce(n[0]/o)*o),Tr(mce(n[1]/o)*o)];this._interval=o,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Id.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=Ui(r)/Ui(this.base),ny(r,this._extent)},t.prototype.normalize=function(r){return r=Ui(r)/Ui(this.base),iy(r,this._extent)},t.prototype.scale=function(r){return r=oy(r,this._extent),zv(this.base,r)},t.type="log",t}(qo),v3=tC.prototype;v3.getMinorTicks=Id.getMinorTicks;v3.getLabel=Id.getLabel;function $v(e,t){return gce(e,ca(t))}qo.registerClass(tC);var xce=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]<n[0]&&(n=[NaN,NaN]),this._dataMin=n[0],this._dataMax=n[1];var i=this._isOrdinal=t.type==="ordinal";this._needCrossZero=t.type==="interval"&&r.getNeedCrossZero&&r.getNeedCrossZero();var o=r.get("min",!0);o==null&&(o=r.get("startValue",!0));var a=this._modelMinRaw=o;ft(a)?this._modelMinNum=Fv(t,a({min:n[0],max:n[1]})):a!=="dataMin"&&(this._modelMinNum=Fv(t,a));var s=this._modelMaxRaw=r.get("max",!0);if(ft(s)?this._modelMaxNum=Fv(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=Fv(t,s)),i)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),c=Be(l)?l:[l||0,l||0];typeof c[0]=="boolean"||typeof c[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Ll(c[0],1),Ll(c[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,a=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,c=s!=null,f=l!=null;s==null&&(s=t?i?0:NaN:r-o[0]*a),l==null&&(l=t?i?i-1:NaN:n+o[1]*a),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var p=wg(s)||wg(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!c&&(s=0),s<0&&l<0&&!f&&(l=0));var v=this._determinedMin,h=this._determinedMax;return v!=null&&(s=v,c=!0),h!=null&&(l=h,f=!0),{min:s,max:l,minFixed:c,maxFixed:f,isBlank:p}},e.prototype.modifyDataMinMax=function(t,r){this[_ce[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=bce[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),bce={min:"_determinedMin",max:"_determinedMax"},_ce={min:"_dataMin",max:"_dataMax"};function Sce(e,t,r){var n=e.rawExtentInfo;return n||(n=new xce(e,t,r),e.rawExtentInfo=n,n)}function Fv(e,t){return t==null?null:wg(t)?NaN:e.parse(t)}function g3(e,t){var r=e.type,n=Sce(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,o=n.max,a=t.ecModel;if(a&&r==="time"){var s=Mse("bar",a),l=!1;if(X(s,function(p){l=l||p.getBaseAxis()===t.axis}),l){var c=Ase(s),f=wce(i,o,t,c);i=f.min,o=f.max}}return{extent:[i,o],fixMin:n.minFixed,fixMax:n.maxFixed}}function wce(e,t,r,n){var i=r.axis.getExtent(),o=i[1]-i[0],a=Lse(n,r.axis);if(a===void 0)return{min:e,max:t};var s=1/0;X(a,function(h){s=Math.min(h.offset,s)});var l=-1/0;X(a,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var c=s+l,f=t-e,p=1-(s+l)/o,v=f/p-f;return t+=v*(l/c),e-=v*(s/c),{min:e,max:t}}function NI(e,t){var r=t,n=g3(e,r),i=n.extent,o=r.get("splitNumber");e instanceof tC&&(e.base=r.get("logBase"));var a=e.type,s=r.get("interval"),l=a==="interval"||a==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:o,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function Cce(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new eC({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new h3({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(qo.getClass(t)||wc)}}function Tce(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Cc(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,o){return e.scale.getFormattedLabel(i,o,n)}}(t):qe(t)?function(n){return function(i){var o=e.scale.getLabel(i),a=n.replace("{value}",o??"");return a}}(t):ft(t)?function(n){return function(i,o){return r!=null&&(o=i.value-r),n(rC(e,i),o,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function rC(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function kce(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,o=r.getExtent();r instanceof eC?i=r.count():(n=r.getTicks(),i=n.length);var a=e.getLabelModel(),s=Cc(e),l,c=1;i>40&&(c=Math.ceil(i/40));for(var f=0;f<i;f+=c){var p=n?n[f]:{value:o[0]+f},v=s(p,f),h=a.getTextRect(v),g=Rce(h,a.get("rotate")||0);l?l.union(g):l=g}return l}}function Rce(e,t){var r=t*Math.PI/180,n=e.width,i=e.height,o=n*Math.abs(Math.cos(r))+Math.abs(i*Math.sin(r)),a=n*Math.abs(Math.sin(r))+Math.abs(i*Math.cos(r)),s=new jt(e.x,e.y,o,a);return s}function nC(e){var t=e.get("interval");return t??"auto"}function m3(e){return e.type==="category"&&nC(e.getLabelModel())===0}function Ece(e,t){var r={};return X(e.mapDimensionsAll(t),function(n){r[Ioe(e,n)]=!0}),lr(r)}var Pce=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return at(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),hn(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}(),E_=["x","y"];function zI(e){return e.type==="interval"||e.type==="time"}var Mce=function(e){$e(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=E_,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!zI(r)||!zI(n))){var i=r.getExtent(),o=n.getExtent(),a=this.dataToPoint([i[0],o[0]]),s=this.dataToPoint([i[1],o[1]]),l=i[1]-i[0],c=o[1]-o[0];if(!(!l||!c)){var f=(s[0]-a[0])/l,p=(s[1]-a[1])/c,v=a[0]-i[0]*f,h=a[1]-o[0]*p,g=this._transform=[f,0,0,p,v,h];this._invTransform=uw([],g)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),o=this.dataToPoint(n),a=this.getArea(),s=new jt(i[0],i[1],o[0]-i[0],o[1]-i[1]);return a.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var o=r[0],a=r[1];if(this._transform&&o!=null&&isFinite(o)&&a!=null&&isFinite(a))return Ii(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(o,n)),i[1]=l.toGlobalCoord(l.dataToCoord(a,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,o=this.getAxis("y").scale,a=i.getExtent(),s=o.getExtent(),l=i.parse(r[0]),c=o.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(a[0],a[1]),l),Math.max(a[0],a[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),c),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return Ii(i,r,this._invTransform);var o=this.getAxis("x"),a=this.getAxis("y");return i[0]=o.coordToData(o.toLocalCoord(r[0]),n),i[1]=a.coordToData(a.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),o=Math.min(n[0],n[1])-r,a=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-o+r,l=Math.max(i[0],i[1])-a+r;return new jt(o,a,s,l)},t}(Pce),cp=Ir();function y3(e,t){var r=at(t,function(n){return e.scale.parse(n)});return e.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function Ice(e){var t=e.getLabelModel().get("customValues");if(t){var r=Cc(e);return{labels:y3(e,t).map(function(n){var i={value:n};return{formattedLabel:r(i),rawLabel:e.scale.getLabel(i),tickValue:n}})}}return e.type==="category"?Dce(e):Oce(e)}function Ace(e,t){var r=e.getTickModel().get("customValues");return r?{ticks:y3(e,r)}:e.type==="category"?Lce(e,t):{ticks:at(e.scale.getTicks(),function(n){return n.value})}}function Dce(e){var t=e.getLabelModel(),r=x3(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function x3(e,t){var r=b3(e,"labels"),n=nC(t),i=_3(r,n);if(i)return i;var o,a;return ft(n)?o=C3(e,n):(a=n==="auto"?Nce(e):n,o=w3(e,a)),S3(r,n,{labels:o,labelCategoryInterval:a})}function Lce(e,t){var r=b3(e,"ticks"),n=nC(t),i=_3(r,n);if(i)return i;var o,a;if((!t.get("show")||e.scale.isBlank())&&(o=[]),ft(n))o=C3(e,n,!0);else if(n==="auto"){var s=x3(e,e.getLabelModel());a=s.labelCategoryInterval,o=at(s.labels,function(l){return l.tickValue})}else a=n,o=w3(e,a,!0);return S3(r,n,{ticks:o,tickCategoryInterval:a})}function Oce(e){var t=e.scale.getTicks(),r=Cc(e);return{labels:at(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function b3(e,t){return cp(e)[t]||(cp(e)[t]=[])}function _3(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function S3(e,t,r){return e.push({key:t,value:r}),r}function Nce(e){var t=cp(e).autoInterval;return t??(cp(e).autoInterval=e.calculateCategoryInterval())}function zce(e){var t=$ce(e),r=Cc(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],c=e.dataToCoord(l+1)-e.dataToCoord(l),f=Math.abs(c*Math.cos(n)),p=Math.abs(c*Math.sin(n)),v=0,h=0;l<=o[1];l+=s){var g=0,x=0,y=cw(r({value:l}),t.font,"center","top");g=y.width*1.3,x=y.height*1.3,v=Math.max(v,g,7),h=Math.max(h,x,7)}var b=v/f,S=h/p;isNaN(b)&&(b=1/0),isNaN(S)&&(S=1/0);var _=Math.max(0,Math.floor(Math.min(b,S))),C=cp(e.model),k=e.getExtent(),T=C.lastAutoInterval,E=C.lastTickCount;return T!=null&&E!=null&&Math.abs(T-_)<=1&&Math.abs(E-a)<=1&&T>_&&C.axisExtent0===k[0]&&C.axisExtent1===k[1]?_=T:(C.lastTickCount=a,C.lastAutoInterval=_,C.axisExtent0=k[0],C.axisExtent1=k[1]),_}function $ce(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function w3(e,t,r){var n=Cc(e),i=e.scale,o=i.getExtent(),a=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),c=o[0],f=i.count();c!==0&&l>1&&f/l>2&&(c=Math.round(Math.ceil(c/l)*l));var p=m3(e),v=a.get("showMinLabel")||p,h=a.get("showMaxLabel")||p;v&&c!==o[0]&&x(o[0]);for(var g=c;g<=o[1];g+=l)x(g);h&&g-l!==o[1]&&x(o[1]);function x(y){var b={value:y};s.push(r?y:{formattedLabel:n(b),rawLabel:i.getLabel(b),tickValue:y})}return s}function C3(e,t,r){var n=e.scale,i=Cc(e),o=[];return X(n.getTicks(),function(a){var s=n.getLabel(a),l=a.value;t(a.value,s)&&o.push(r?l:{formattedLabel:i(a),rawLabel:s,tickValue:l})}),o}var $I=[0,1],Fce=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return ane(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),FI(n,i.count())),CP(t,$I,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),FI(n,i.count()));var o=CP(t,n,$I,r);return this.scale.scale(o)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=Ace(this,r),i=n.ticks,o=at(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=r.get("alignWithLabel");return Bce(this,o,a,t.clamp),o},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=at(n,function(o){return at(o,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return i},e.prototype.getViewLabels=function(){return Ice(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return zce(this)},e}();function FI(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function Bce(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var o=e.getExtent(),a,s;if(i===1)t[0].coord=o[0],a=t[1]={coord:o[1]};else{var l=t[i-1].tickValue-t[0].tickValue,c=(t[i-1].coord-t[0].coord)/l;X(t,function(h){h.coord-=c/2});var f=e.scale.getExtent();s=1+f[1]-t[i-1].tickValue,a={coord:t[i-1].coord+c*s},t.push(a)}var p=o[0]>o[1];v(t[0].coord,o[0])&&(n?t[0].coord=o[0]:t.shift()),n&&v(o[0],t[0].coord)&&t.unshift({coord:o[0]}),v(o[1],a.coord)&&(n?a.coord=o[1]:t.pop()),n&&v(a.coord,o[1])&&t.push({coord:o[1]});function v(h,g){return h=Tr(h),g=Tr(g),p?h>g:h<g}}var jce=function(e){$e(t,e);function t(r,n,i,o,a){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=o||"value",s.position=a||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(Fce);function P_(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,c=i.dim,f=n.getRect(),p=[f.x,f.x+f.width,f.y,f.y+f.height],v={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,g=c==="x"?[p[2]-h,p[3]+h]:[p[0]-h,p[1]+h];if(a){var x=a.toGlobalCoord(a.dataToCoord(0));g[v.onZero]=Math.max(Math.min(x,g[1]),g[0])}o.position=[c==="y"?g[v[l]]:p[0],c==="x"?g[v[l]]:p[3]],o.rotation=Math.PI/2*(c==="x"?0:1);var y={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=y[s],o.labelOffset=a?g[v[s]]-g[v.onZero]:0,t.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),Qd(r.labelInside,t.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var b=t.get(["axisLabel","rotate"]);return o.labelRotate=l==="top"?-b:b,o.z2=1,o}function BI(e){return e.get("coordinateSystem")==="cartesian2d"}function jI(e){var t={xAxisModel:null,yAxisModel:null};return X(t,function(r,n){var i=n.replace(/Model$/,""),o=e.getReferringComponents(i,Xi).models[0];t[n]=o}),t}var Hx=Math.log;function Hce(e,t,r){var n=wc.prototype,i=n.getTicks.call(r),o=n.getTicks.call(r,!0),a=i.length-1,s=n.getInterval.call(r),l=g3(e,t),c=l.extent,f=l.fixMin,p=l.fixMax;if(e.type==="log"){var v=Hx(e.base);c=[Hx(c[0])/v,Hx(c[1])/v]}e.setExtent(c[0],c[1]),e.calcNiceExtent({splitNumber:a,fixMin:f,fixMax:p});var h=n.getExtent.call(e);f&&(c[0]=h[0]),p&&(c[1]=h[1]);var g=n.getInterval.call(e),x=c[0],y=c[1];if(f&&p)g=(y-x)/a;else if(f)for(y=c[0]+g*a;y<c[1]&&isFinite(y)&&isFinite(c[1]);)g=jx(g),y=c[0]+g*a;else if(p)for(x=c[1]-g*a;x>c[0]&&isFinite(x)&&isFinite(c[0]);)g=jx(g),x=c[1]-g*a;else{var b=e.getTicks().length-1;b>a&&(g=jx(g));var S=g*a;y=Math.ceil(c[1]/g)*g,x=Tr(y-S),x<0&&c[0]>=0?(x=0,y=Tr(S)):y>0&&c[1]<=0&&(y=0,x=-Tr(S))}var _=(i[0].value-o[0].value)/s,C=(i[a].value-o[a].value)/s;n.setExtent.call(e,x+g*_,y+g*C),n.setInterval.call(e,g),(_||C)&&n.setNiceExtent.call(e,x+g,y-g)}var Wce=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=E_,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(a){var s,l=lr(a),c=l.length;if(c){for(var f=[],p=c-1;p>=0;p--){var v=+l[p],h=a[v],g=h.model,x=h.scale;R_(x)&&g.get("alignTicks")&&g.get("interval")==null?f.push(h):(NI(x,g),R_(x)&&(s=h))}f.length&&(s||(s=f.pop(),NI(s.scale,s.model)),X(f,function(y){Hce(y.scale,y.model,s.scale)}))}}i(n.x),i(n.y);var o={};X(n.x,function(a){HI(n,"y",a,o)}),X(n.y,function(a){HI(n,"x",a,o)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),o=!n&&t.get("containLabel"),a=ip(i,{width:r.getWidth(),height:r.getHeight()});this._rect=a;var s=this._axesList;l(),o&&(X(s,function(c){if(!c.model.get(["axisLabel","inside"])){var f=kce(c);if(f){var p=c.isHorizontal()?"height":"width",v=c.model.get(["axisLabel","margin"]);a[p]-=f[p]+v,c.position==="top"?a.y+=f.height+v:c.position==="left"&&(a.x+=f.width+v)}}}),l()),X(this._coordsList,function(c){c.calcAffineTransform()});function l(){X(s,function(c){var f=c.isHorizontal(),p=f?[0,a.width]:[0,a.height],v=c.inverse?1:0;c.setExtent(p[v],p[1-v]),Vce(c,f?a.x:a.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}rt(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,o=this._coordsList;i<o.length;i++)if(o[i].getAxis("x").index===t||o[i].getAxis("y").index===r)return o[i]},e.prototype.getCartesians=function(){return this._coordsList.slice()},e.prototype.convertToPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.dataToPoint(n):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(n)):null},e.prototype.convertFromPixel=function(t,r,n){var i=this._findConvertTarget(r);return i.cartesian?i.cartesian.pointToData(n):i.axis?i.axis.coordToData(i.axis.toLocalCoord(n)):null},e.prototype._findConvertTarget=function(t){var r=t.seriesModel,n=t.xAxisModel||r&&r.getReferringComponents("xAxis",Xi).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",Xi).models[0],o=t.gridModel,a=this._coordsList,s,l;if(r)s=r.coordinateSystem,qt(a,s)<0&&(s=null);else if(n&&i)s=this.getCartesian(n.componentIndex,i.componentIndex);else if(n)l=this.getAxis("x",n.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(o){var c=o.coordinateSystem;c===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},e.prototype.containPoint=function(t){var r=this._coordsList[0];if(r)return r.containPoint(t)},e.prototype._initCartesian=function(t,r,n){var i=this,o=this,a={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",c("x"),this),r.eachComponent("yAxis",c("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,X(s.x,function(f,p){X(s.y,function(v,h){var g="x"+p+"y"+h,x=new Mce(g);x.master=i,x.model=t,i._coordsMap[g]=x,i._coordsList.push(x),x.addAxis(f),x.addAxis(v)})});function c(f){return function(p,v){if(Wx(p,t)){var h=p.get("position");f==="x"?h!=="top"&&h!=="bottom"&&(h=a.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=a.left?"right":"left"),a[h]=!0;var g=new jce(f,Cce(p),[0,0],p.get("type"),h),x=g.type==="category";g.onBand=x&&p.get("boundaryGap"),g.inverse=p.get("inverse"),p.axis=g,g.model=p,g.grid=o,g.index=v,o._axesList.push(g),s[f][v]=g,l[f]++}}}},e.prototype._updateScale=function(t,r){X(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var o=i.model.get("categorySortInfo");i.scale.setSortInfo(o)}}),t.eachSeries(function(i){if(BI(i)){var o=jI(i),a=o.xAxisModel,s=o.yAxisModel;if(!Wx(a,r)||!Wx(s,r))return;var l=this.getCartesian(a.componentIndex,s.componentIndex),c=i.getData(),f=l.getAxis("x"),p=l.getAxis("y");n(c,f),n(c,p)}},this);function n(i,o){X(Ece(i,o.dim),function(a){o.scale.unionExtentFromData(i,a)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return X(this.getCartesians(),function(i){var o=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),a=i.getOtherAxis(o);qt(r,o)<0&&r.push(o),qt(n,a)<0&&n.push(a)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(i,o){var a=new e(i,t,r);a.name="grid_"+o,a.resize(i,r,!0),i.coordinateSystem=a,n.push(a)}),t.eachSeries(function(i){if(BI(i)){var o=jI(i),a=o.xAxisModel,s=o.yAxisModel,l=a.getCoordSysModel(),c=l.coordinateSystem;i.coordinateSystem=c.getCartesian(a.componentIndex,s.componentIndex)}}),n},e.dimensions=E_,e}();function Wx(e,t){return e.getCoordSysModel()===t}function HI(e,t,r,n){r.getAxesOnZeroOf=function(){return o?[o]:[]};var i=e[t],o,a=r.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)WI(i[l])&&(o=i[l]);else for(var c in i)if(i.hasOwnProperty(c)&&WI(i[c])&&!n[f(i[c])]){o=i[c];break}o&&(n[f(o)]=!0);function f(p){return p.dim+"_"+p.index}}function WI(e){return e&&e.type!=="category"&&e.type!=="time"&&Tce(e)}function Vce(e,t){var r=e.getExtent(),n=r[0]+r[1];e.toGlobalCoord=e.dim==="x"?function(i){return i+t}:function(i){return n-i+t},e.toLocalCoord=e.dim==="x"?function(i){return i-t}:function(i){return n-i+t}}var ss=Math.PI,ds=function(){function e(t,r){this.group=new rn,this.opt=r,this.axisModel=t,Gt(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new rn({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!VI[t]},e.prototype.add=function(t){VI[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var i=KO(r-t),o,a;return Mg(i)?(a=n>0?"top":"bottom",o="center"):Mg(i-ss)?(a=n>0?"bottom":"top",o="center"):(a="middle",i>0&&i<ss?o=n>0?"right":"left":o=n>0?"left":"right"),{rotation:i,textAlign:o,textVerticalAlign:a}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),VI={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var o=t.axis.getExtent(),a=n.transform,s=[o[0],0],l=[o[1],0],c=s[0]>l[0];a&&(Ii(s,s,a),Ii(l,l,a));var f=Ie({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new gs({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:f,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});tp(p.shape,p.style.lineWidth),p.anid="line",r.add(p);var v=t.get(["axisLine","symbol"]);if(v!=null){var h=t.get(["axisLine","symbolSize"]);qe(v)&&(v=[v,v]),(qe(h)||ur(h))&&(h=[h,h]);var g=p5(t.get(["axisLine","symbolOffset"])||0,h),x=h[0],y=h[1];X([{rotate:e.rotation+Math.PI/2,offset:g[0],r:0},{rotate:e.rotation-Math.PI/2,offset:g[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(b,S){if(v[S]!=="none"&&v[S]!=null){var _=pc(v[S],-x/2,-y/2,x,y,f.stroke,!0),C=b.r+b.offset,k=c?l:s;_.attr({rotation:b.rotate,x:k[0]+C*Math.cos(e.rotation),y:k[1]-C*Math.sin(e.rotation),silent:!0,z2:11}),r.add(_)}})}}},axisTickLabel:function(e,t,r,n){var i=qce(r,n,t,e),o=Kce(r,n,t,e);if(Gce(t,o,i),Yce(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var a=$se(at(o,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Fse(a)}},axisName:function(e,t,r,n){var i=Qd(e.axisName,t.get("name"));if(i){var o=t.get("nameLocation"),a=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,c=t.axis.getExtent(),f=c[0]>c[1]?-1:1,p=[o==="start"?c[0]-f*l:o==="end"?c[1]+f*l:(c[0]+c[1])/2,GI(o)?e.labelOffset+a*l:0],v,h=t.get("nameRotate");h!=null&&(h=h*ss/180);var g;GI(o)?v=ds.innerTextLayout(e.rotation,h??e.rotation,a):(v=Uce(e.rotation,o,h||0,c),g=e.axisNameAvailableWidth,g!=null&&(g=Math.abs(g/Math.sin(v.rotation)),!isFinite(g)&&(g=null)));var x=s.getFont(),y=t.get("nameTruncate",!0)||{},b=y.ellipsis,S=Qd(e.nameTruncateMaxWidth,y.maxWidth,g),_=new tn({x:p[0],y:p[1],rotation:v.rotation,silent:ds.isLabelSilent(t),style:ys(s,{text:i,font:x,overflow:"truncate",width:S,ellipsis:b,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||v.textAlign,verticalAlign:s.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(Mw({el:_,componentModel:t,itemName:i}),_.__fullText=i,_.anid="name",t.get("triggerEvent")){var C=ds.makeAxisEventDataBase(t);C.targetType="axisName",C.name=i,Ut(_).eventData=C}n.add(_),_.updateTransform(),r.add(_),_.decomposeTransform()}}};function Uce(e,t,r,n){var i=KO(r-e),o,a,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Mg(i-ss/2)?(a=l?"bottom":"top",o="center"):Mg(i-ss*1.5)?(a=l?"top":"bottom",o="center"):(a="middle",i<ss*1.5&&i>ss/2?o=l?"left":"right":o=l?"right":"left"),{rotation:i,textAlign:o,textVerticalAlign:a}}function Gce(e,t,r){if(!m3(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var o=t[0],a=t[1],s=t[t.length-1],l=t[t.length-2],c=r[0],f=r[1],p=r[r.length-1],v=r[r.length-2];n===!1?(yi(o),yi(c)):UI(o,a)&&(n?(yi(a),yi(f)):(yi(o),yi(c))),i===!1?(yi(s),yi(p)):UI(l,s)&&(i?(yi(l),yi(v)):(yi(s),yi(p)))}}function yi(e){e&&(e.ignore=!0)}function UI(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=sw([]);return lw(i,i,-e.rotation),r.applyTransform(Ku([],i,e.getLocalTransform())),n.applyTransform(Ku([],i,t.getLocalTransform())),r.intersect(n)}}function GI(e){return e==="middle"||e==="center"}function T3(e,t,r,n,i){for(var o=[],a=[],s=[],l=0;l<e.length;l++){var c=e[l].coord;a[0]=c,a[1]=0,s[0]=c,s[1]=r,t&&(Ii(a,a,t),Ii(s,s,t));var f=new gs({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});tp(f.shape,f.style.lineWidth),f.anid=i+"_"+e[l].tickValue,o.push(f)}return o}function qce(e,t,r,n){var i=r.axis,o=r.getModel("axisTick"),a=o.get("show");if(a==="auto"&&n.handleAutoShown&&(a=n.handleAutoShown("axisTick")),!(!a||i.scale.isBlank())){for(var s=o.getModel("lineStyle"),l=n.tickDirection*o.get("length"),c=i.getTicksCoords(),f=T3(c,t.transform,l,Gt(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),p=0;p<f.length;p++)e.add(f[p]);return f}}function Yce(e,t,r,n){var i=r.axis,o=r.getModel("minorTick");if(!(!o.get("show")||i.scale.isBlank())){var a=i.getMinorTicksCoords();if(a.length)for(var s=o.getModel("lineStyle"),l=n*o.get("length"),c=Gt(s.getLineStyle(),Gt(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),f=0;f<a.length;f++)for(var p=T3(a[f],t.transform,l,c,"minorticks_"+f),v=0;v<p.length;v++)e.add(p[v])}}function Kce(e,t,r,n){var i=r.axis,o=Qd(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!o||i.scale.isBlank())){var a=r.getModel("axisLabel"),s=a.get("margin"),l=i.getViewLabels(),c=(Qd(n.labelRotate,a.get("rotate"))||0)*ss/180,f=ds.innerTextLayout(n.rotation,c,n.labelDirection),p=r.getCategories&&r.getCategories(!0),v=[],h=ds.isLabelSilent(r),g=r.get("triggerEvent");return X(l,function(x,y){var b=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(x.tickValue):x.tickValue,S=x.formattedLabel,_=x.rawLabel,C=a;if(p&&p[b]){var k=p[b];rt(k)&&k.textStyle&&(C=new yr(k.textStyle,a,r.ecModel))}var T=C.getTextColor()||r.get(["axisLine","lineStyle","color"]),E=i.dataToCoord(b),I=C.getShallow("align",!0)||f.textAlign,D=wt(C.getShallow("alignMinLabel",!0),I),A=wt(C.getShallow("alignMaxLabel",!0),I),L=C.getShallow("verticalAlign",!0)||C.getShallow("baseline",!0)||f.textVerticalAlign,$=wt(C.getShallow("verticalAlignMinLabel",!0),L),B=wt(C.getShallow("verticalAlignMaxLabel",!0),L),j=new tn({x:E,y:n.labelOffset+n.labelDirection*s,rotation:f.rotation,silent:h,z2:10+(x.level||0),style:ys(C,{text:S,align:y===0?D:y===l.length-1?A:I,verticalAlign:y===0?$:y===l.length-1?B:L,fill:ft(T)?T(i.type==="category"?_:i.type==="value"?b+"":b,y):T})});if(j.anid="label_"+b,g){var W=ds.makeAxisEventDataBase(r);W.targetType="axisLabel",W.value=_,W.tickIndex=y,i.type==="category"&&(W.dataIndex=b),Ut(j).eventData=W}t.add(j),j.updateTransform(),v.push(j),e.add(j),j.decomposeTransform()}),v}}function Xce(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Qce(r,e,t),r.seriesInvolved&&Jce(r,e),r}function Qce(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];X(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=fp(s.model),c=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var f=s.model,p=f.getModel("tooltip",n);if(X(s.getAxes(),Nr(x,!1,null)),s.getTooltipAxes&&n&&p.get("show")){var v=p.get("trigger")==="axis",h=p.get(["axisPointer","type"])==="cross",g=s.getTooltipAxes(p.get(["axisPointer","axis"]));(v||h)&&X(g.baseAxes,Nr(x,h?"cross":!0,v)),h&&X(g.otherAxes,Nr(x,"cross",!1))}function x(y,b,S){var _=S.model.getModel("axisPointer",i),C=_.get("show");if(!(!C||C==="auto"&&!y&&!M_(_))){b==null&&(b=_.get("triggerTooltip")),_=y?Zce(S,p,i,t,y,b):_;var k=_.get("snap"),T=_.get("triggerEmphasis"),E=fp(S.model),I=b||k||S.type==="category",D=e.axesInfo[E]={key:E,axis:S,coordSys:s,axisPointerModel:_,triggerTooltip:b,triggerEmphasis:T,involveSeries:I,snap:k,useHandle:M_(_),seriesModels:[],linkGroup:null};c[E]=D,e.seriesInvolved=e.seriesInvolved||I;var A=efe(o,S);if(A!=null){var L=a[A]||(a[A]={axesInfo:{}});L.axesInfo[E]=D,L.mapper=o[A].mapper,D.linkGroup=L}}}})}function Zce(e,t,r,n,i,o){var a=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};X(s,function(v){l[v]=Rt(a.get(v))}),l.snap=e.type!=="category"&&!!o,a.get("type")==="cross"&&(l.type="line");var c=l.label||(l.label={});if(c.show==null&&(c.show=!1),i==="cross"){var f=a.get(["label","show"]);if(c.show=f??!0,!o){var p=l.lineStyle=a.get("crossStyle");p&&Gt(c,p.textStyle)}}return e.model.getModel("axisPointer",new yr(l,r,n))}function Jce(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),o=r.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||o===!1||r.get(["axisPointer","show"],!0)===!1||X(e.coordSysAxesInfo[fp(n.model)],function(a){var s=a.axis;n.getAxis(s.dim)===s&&(a.seriesModels.push(r),a.seriesDataCount==null&&(a.seriesDataCount=0),a.seriesDataCount+=r.getData().count())})})}function efe(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var o=e[i]||{};if(Vx(o[n+"AxisId"],r.id)||Vx(o[n+"AxisIndex"],r.componentIndex)||Vx(o[n+"AxisName"],r.name))return i}}function Vx(e,t){return e==="all"||Be(e)&&qt(e,t)>=0||e===t}function tfe(e){var t=iC(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,o=r.get("status"),a=r.get("value");a!=null&&(a=n.parse(a));var s=M_(r);o==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(a==null||a>l[1])&&(a=l[1]),a<l[0]&&(a=l[0]),i.value=a,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function iC(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[fp(e)]}function rfe(e){var t=iC(e);return t&&t.axisPointerModel}function M_(e){return!!e.get(["handle","show"])}function fp(e){return e.type+"||"+e.id}var qI={},k3=function(e){$e(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i,o){this.axisPointerClass&&tfe(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},t.prototype.updateAxisPointer=function(r,n,i,o){this._doUpdateAxisPointerClass(r,i,!1)},t.prototype.remove=function(r,n){var i=this._axisPointer;i&&i.remove(n)},t.prototype.dispose=function(r,n){this._disposeAxisPointer(n),e.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(r,n,i){var o=t.getAxisPointerClass(this.axisPointerClass);if(o){var a=rfe(r);a?(this._axisPointer||(this._axisPointer=new o)).render(r,a,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){qI[r]=n},t.getAxisPointerClass=function(r){return r&&qI[r]},t.type="axis",t}(ro),I_=Ir();function nfe(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitArea"),a=o.getModel("areaStyle"),s=a.get("color"),l=n.coordinateSystem.getRect(),c=i.getTicksCoords({tickModel:o,clamp:!0});if(c.length){var f=s.length,p=I_(e).splitAreaColors,v=yt(),h=0;if(p)for(var g=0;g<c.length;g++){var x=p.get(c[g].tickValue);if(x!=null){h=(x+(f-1)*g)%f;break}}var y=i.toGlobalCoord(c[0].coord),b=a.getAreaStyle();s=Be(s)?s:[s];for(var g=1;g<c.length;g++){var S=i.toGlobalCoord(c[g].coord),_=void 0,C=void 0,k=void 0,T=void 0;i.isHorizontal()?(_=y,C=l.y,k=S-_,T=l.height,y=_+k):(_=l.x,C=y,k=l.width,T=S-C,y=C+T);var E=c[g-1].tickValue;E!=null&&v.set(E,h),t.add(new zr({anid:E!=null?"area_"+E:null,shape:{x:_,y:C,width:k,height:T},style:Gt({fill:s[h]},b),autoBatch:!0,silent:!0})),h=(h+1)%f}I_(e).splitAreaColors=v}}}function ife(e){I_(e).splitAreaColors=null}var ofe=["axisLine","axisTickLabel","axisName"],afe=["splitArea","splitLine","minorSplitLine"],R3=function(e){$e(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="CartesianAxisPointer",r}return t.prototype.render=function(r,n,i,o){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new rn,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=P_(s,r),c=new ds(r,Ie({handleAutoShown:function(p){for(var v=s.coordinateSystem.getCartesians(),h=0;h<v.length;h++)if(R_(v[h].getOtherAxis(r.axis).scale))return!0;return!1}},l));X(ofe,c.add,c),this._axisGroup.add(c.getGroup()),X(afe,function(p){r.get([p,"show"])&&sfe[p](this,this._axisGroup,r,s)},this);var f=o&&o.type==="changeAxisOrder"&&o.isInitSort;f||SN(a,this._axisGroup,r),e.prototype.render.call(this,r,n,i,o)}},t.prototype.remove=function(){ife(this)},t.type="cartesianAxis",t}(k3),sfe={splitLine:function(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=Be(s)?s:[s];for(var l=n.coordinateSystem.getRect(),c=i.isHorizontal(),f=0,p=i.getTicksCoords({tickModel:o}),v=[],h=[],g=a.getLineStyle(),x=0;x<p.length;x++){var y=i.toGlobalCoord(p[x].coord);c?(v[0]=y,v[1]=l.y,h[0]=y,h[1]=l.y+l.height):(v[0]=l.x,v[1]=y,h[0]=l.x+l.width,h[1]=y);var b=f++%s.length,S=p[x].tickValue,_=new gs({anid:S!=null?"line_"+p[x].tickValue:null,autoBatch:!0,shape:{x1:v[0],y1:v[1],x2:h[0],y2:h[1]},style:Gt({stroke:s[b]},g),silent:!0});tp(_.shape,g.lineWidth),t.add(_)}}},minorSplitLine:function(e,t,r,n){var i=r.axis,o=r.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),c=i.getMinorTicksCoords();if(c.length)for(var f=[],p=[],v=a.getLineStyle(),h=0;h<c.length;h++)for(var g=0;g<c[h].length;g++){var x=i.toGlobalCoord(c[h][g].coord);l?(f[0]=x,f[1]=s.y,p[0]=x,p[1]=s.y+s.height):(f[0]=s.x,f[1]=x,p[0]=s.x+s.width,p[1]=x);var y=new gs({anid:"minor_line_"+c[h][g].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:p[0],y2:p[1]},style:v,silent:!0});tp(y.shape,v.lineWidth),t.add(y)}},splitArea:function(e,t,r,n){nfe(e,t,r,n)}},E3=function(e){$e(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(R3),lfe=function(e){$e(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=E3.type,r}return t.type="yAxis",t}(R3),ufe=function(e){$e(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="grid",r}return t.prototype.render=function(r,n){this.group.removeAll(),r.get("show")&&this.group.add(new zr({shape:r.coordinateSystem.getRect(),style:Gt({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(ro),YI={offset:0};function cfe(e){e.registerComponentView(ufe),e.registerComponentModel(Que),e.registerCoordinateSystem("cartesian2d",Wce),II(e,"x",T_,YI),II(e,"y",T_,YI),e.registerComponentView(E3),e.registerComponentView(lfe),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}var vl=Ir(),KI=Rt,Ux=pr,ffe=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var o=r.get("value"),a=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===o&&this._lastStatus===a)){this._lastValue=o,this._lastStatus=a;var s=this._group,l=this._handle;if(!a||a==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var c={};this.makeElOption(c,o,t,r,n);var f=c.graphicKey;f!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=f;var p=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new rn,this.createPointerEl(s,c,t,r),this.createLabelEl(s,c,t,r),n.getZr().add(s);else{var v=Nr(XI,r,p);this.updatePointerEl(s,c,v),this.updateLabelEl(s,c,v,r)}ZI(s,r,!0),this._renderHandle(o)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,o=i.type==="category",a=r.get("snap");if(!a&&!o)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(o&&i.getBandWidth()>s)return!0;if(a){var l=iC(t).seriesDataCount,c=i.getExtent();return Math.abs(c[0]-c[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,o){},e.prototype.createPointerEl=function(t,r,n,i){var o=r.pointer;if(o){var a=vl(t).pointerEl=new Fie[o.type](KI(r.pointer));t.add(a)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var o=vl(t).labelEl=new tn(KI(r.label));t.add(o),QI(o,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=vl(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var o=vl(t).labelEl;o&&(o.setStyle(r.label.style),n(o,{x:r.label.x,y:r.label.y}),QI(o,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,o=r.getModel("handle"),a=r.get("status");if(!o.get("show")||!a||a==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Pw(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(c){T5(c.event)},onmousedown:Ux(this._onHandleDragMove,this,0,0),drift:Ux(this._onHandleDragMove,this),ondragend:Ux(this._onHandleDragEnd,this)}),n.add(i)),ZI(i,r,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");Be(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,C5(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){XI(this._axisPointerModel,!r&&this._moveAnimation,this._handle,Gx(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(Gx(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(Gx(i)),vl(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),p_(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function XI(e,t,r,n){P3(vl(r).lastProp,n)||(vl(r).lastProp=n,t?ms(r,n,e):(r.stopAnimation(),r.attr(n)))}function P3(e,t){if(rt(e)&&rt(t)){var r=!0;return X(t,function(n,i){r=r&&P3(e[i],n)}),!!r}else return e===t}function QI(e,t){e[t.get(["label","show"])?"show":"hide"]()}function Gx(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function ZI(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(o){o.type!=="group"&&(n!=null&&(o.z=n),i!=null&&(o.zlevel=i),o.silent=r)})}function dfe(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function pfe(e,t,r,n,i){var o=r.get("value"),a=M3(o,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=ey(s.get("padding")||0),c=s.getFont(),f=cw(a,c),p=i.position,v=f.width+l[1]+l[3],h=f.height+l[0]+l[2],g=i.align;g==="right"&&(p[0]-=v),g==="center"&&(p[0]-=v/2);var x=i.verticalAlign;x==="bottom"&&(p[1]-=h),x==="middle"&&(p[1]-=h/2),hfe(p,v,h,n);var y=s.get("backgroundColor");(!y||y==="auto")&&(y=t.get(["axisLine","lineStyle","color"])),e.label={x:p[0],y:p[1],style:ys(s,{text:a,font:c,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function hfe(e,t,r,n){var i=n.getWidth(),o=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,o)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function M3(e,t,r,n,i){e=t.scale.parse(e);var o=t.scale.getLabel({value:e},{precision:i.precision}),a=i.formatter;if(a){var s={value:rC(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};X(n,function(l){var c=r.getSeriesByIndex(l.seriesIndex),f=l.dataIndexInside,p=c&&c.getDataParams(f);p&&s.seriesData.push(p)}),qe(a)?o=a.replace("{value}",o):ft(a)&&(o=a(s))}return o}function I3(e,t,r){var n=Yu();return lw(n,n,r.rotation),zb(n,n,r.position),Ew([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function vfe(e,t,r,n,i,o){var a=ds.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),pfe(t,n,i,o,{position:I3(n.axis,e,r),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function gfe(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function mfe(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}var yfe=function(e){$e(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,o,a){var s=i.axis,l=s.grid,c=o.get("type"),f=JI(l,s).getOtherAxis(s).getGlobalExtent(),p=s.toGlobalCoord(s.dataToCoord(n,!0));if(c&&c!=="none"){var v=dfe(o),h=xfe[c](s,p,f);h.style=v,r.graphicKey=h.type,r.pointer=h}var g=P_(l.model,i);vfe(n,r,g,i,o,a)},t.prototype.getHandleTransform=function(r,n,i){var o=P_(n.axis.grid.model,n,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=I3(n.axis,r,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,o){var a=i.axis,s=a.grid,l=a.getGlobalExtent(!0),c=JI(s,a).getOtherAxis(a).getGlobalExtent(),f=a.dim==="x"?0:1,p=[r.x,r.y];p[f]+=n[f],p[f]=Math.min(l[1],p[f]),p[f]=Math.max(l[0],p[f]);var v=(c[1]+c[0])/2,h=[v,v];h[f]=p[f];var g=[{verticalAlign:"middle"},{align:"center"}];return{x:p[0],y:p[1],rotation:r.rotation,cursorPoint:h,tooltipOption:g[f]}},t}(ffe);function JI(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var xfe={line:function(e,t,r){var n=gfe([t,r[0]],[t,r[1]],eA(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:mfe([t-n/2,r[0]],[n,i],eA(e))}}};function eA(e){return e.dim==="x"?0:1}var bfe=function(e){$e(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(Vt),fa=Ir(),_fe=X;function A3(e,t,r){if(!ut.node){var n=t.getZr();fa(n).records||(fa(n).records={}),Sfe(n,t);var i=fa(n).records[e]||(fa(n).records[e]={});i.handler=r}}function Sfe(e,t){if(fa(e).initialized)return;fa(e).initialized=!0,r("click",Nr(tA,"click")),r("mousemove",Nr(tA,"mousemove")),r("globalout",Cfe);function r(n,i){e.on(n,function(o){var a=Tfe(t);_fe(fa(e).records,function(s){s&&i(s,o,a.dispatchAction)}),wfe(a.pendings,t)})}}function wfe(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function Cfe(e,t,r){e.handler("leave",null,r)}function tA(e,t,r,n){t.handler(e,r,n)}function Tfe(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function A_(e,t){if(!ut.node){var r=t.getZr(),n=(fa(r).records||{})[e];n&&(fa(r).records[e]=null)}}var kfe=function(e){$e(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var o=n.getComponent("tooltip"),a=r.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";A3("axisPointer",i,function(s,l,c){a!=="none"&&(s==="leave"||a.indexOf(s)>=0)&&c({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){A_("axisPointer",n)},t.prototype.dispose=function(r,n){A_("axisPointer",n)},t.type="axisPointer",t}(ro);function D3(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var o=i.getData(),a=Nl(o,e);if(a==null||a<0||Be(a))return{point:[]};var s=o.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(e.isStacked){var c=l.getBaseAxis(),f=l.getOtherAxis(c),p=f.dim,v=c.dim,h=p==="x"||p==="radius"?1:0,g=o.mapDimension(v),x=[];x[h]=o.get(g,a),x[1-h]=o.get(o.getCalculationInfo("stackResultDimension"),a),r=l.dataToPoint(x)||[]}else r=l.dataToPoint(o.getValues(at(l.dimensions,function(b){return o.mapDimension(b)}),a))||[];else if(s){var y=s.getBoundingRect().clone();y.applyTransform(s.transform),r=[y.x+y.width/2,y.y+y.height/2]}return{point:r,el:s}}var rA=Ir();function Rfe(e,t,r){var n=e.currTrigger,i=[e.x,e.y],o=e,a=e.dispatchAction||pr(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){sg(i)&&(i=D3({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},t).point);var l=sg(i),c=o.axesInfo,f=s.axesInfo,p=n==="leave"||sg(i),v={},h={},g={list:[],map:{}},x={showPointer:Nr(Pfe,h),showTooltip:Nr(Mfe,g)};X(s.coordSysMap,function(b,S){var _=l||b.containPoint(i);X(s.coordSysAxesInfo[S],function(C,k){var T=C.axis,E=Lfe(c,C);if(!p&&_&&(!c||E)){var I=E&&E.value;I==null&&!l&&(I=T.pointToData(i)),I!=null&&nA(C,I,x,!1,v)}})});var y={};return X(f,function(b,S){var _=b.linkGroup;_&&!h[S]&&X(_.axesInfo,function(C,k){var T=h[k];if(C!==b&&T){var E=T.value;_.mapper&&(E=b.axis.scale.parse(_.mapper(E,iA(C),iA(b)))),y[b.key]=E}})}),X(y,function(b,S){nA(f[S],b,x,!0,v)}),Ife(h,f,v),Afe(g,i,e,a),Dfe(f,a,r),v}}function nA(e,t,r,n,i){var o=e.axis;if(!(o.scale.isBlank()||!o.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var a=Efe(t,e),s=a.payloadBatch,l=a.snapToValue;s[0]&&i.seriesIndex==null&&Ie(i,s[0]),!n&&e.snap&&o.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,a,l)}}function Efe(e,t){var r=t.axis,n=r.dim,i=e,o=[],a=Number.MAX_VALUE,s=-1;return X(t.seriesModels,function(l,c){var f=l.getData().mapDimensionsAll(n),p,v;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(f,e,r);v=h.dataIndices,p=h.nestestValue}else{if(v=l.getData().indicesOfNearest(f[0],e,r.type==="category"?.5:null),!v.length)return;p=l.getData().get(f[0],v[0])}if(!(p==null||!isFinite(p))){var g=e-p,x=Math.abs(g);x<=a&&((x<a||g>=0&&s<0)&&(a=x,s=g,i=p,o.length=0),X(v,function(y){o.push({seriesIndex:l.seriesIndex,dataIndexInside:y,dataIndex:l.getData().getRawIndex(y)})}))}}),{payloadBatch:o,snapToValue:i}}function Pfe(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function Mfe(e,t,r,n){var i=r.payloadBatch,o=t.axis,a=o.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,c=fp(l),f=e.map[c];f||(f=e.map[c]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(f)),f.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function Ife(e,t,r){var n=r.axesInfo=[];X(t,function(i,o){var a=i.axisPointerModel.option,s=e[o];s?(!i.useHandle&&(a.status="show"),a.value=s.value,a.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(a.status="hide"),a.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:a.value})})}function Afe(e,t,r,n){if(sg(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function Dfe(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",o=rA(n)[i]||{},a=rA(n)[i]={};X(e,function(c,f){var p=c.axisPointerModel.option;p.status==="show"&&c.triggerEmphasis&&X(p.seriesDataIndices,function(v){var h=v.seriesIndex+" | "+v.dataIndex;a[h]=v})});var s=[],l=[];X(o,function(c,f){!a[f]&&l.push(c)}),X(a,function(c,f){!o[f]&&s.push(c)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function Lfe(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function iA(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function sg(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function L3(e){k3.registerAxisPointerClass("CartesianAxisPointer",yfe),e.registerComponentModel(bfe),e.registerComponentView(kfe),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!Be(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=Xce(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Rfe)}function Ofe(e){bs(cfe),bs(L3)}function Nfe(e,t){var r=ey(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new zr({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var zfe=function(e){$e(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(Vt);function O3(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function N3(e){if(ut.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var z3=N3(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),$fe=N3(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function $3(e,t){if(!e)return t;t=i5(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function Ffe(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var Bfe=$3($fe,"transition"),oC=$3(z3,"transform"),jfe="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(ut.transform3dSupported?"will-change:transform;":"");function Hfe(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function Wfe(e,t,r){if(!qe(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=zl(t);var o=Hfe(r),a=Math.max(Math.round(i)*1.5,6),s="",l=oC+":",c;qt(["left","right"],o)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(c=o==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(c=o==="top"?225:45)+"deg)");var f=c*Math.PI/180,p=a+i,v=p*Math.abs(Math.cos(f))+p*Math.abs(Math.sin(f)),h=Math.round(((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-p)/2)*100)/100;s+=";"+o+":-"+h+"px";var g=t+" solid "+i+"px;",x=["position:absolute;width:"+a+"px;height:"+a+"px;z-index:-1;",s+";"+l+";","border-bottom:"+g,"border-right:"+g,"background-color:"+n+";"];return'<div style="'+x.join("")+'"></div>'}function Vfe(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=ut.transformSupported?","+oC+n:",left"+n+",top"+n),Bfe+":"+i}function oA(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!ut.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var o=ut.transform3dSupported,a="translate"+(o?"3d":"")+"("+n+","+i+(o?",0":"")+")";return r?"top:0;left:0;"+oC+":"+a+";":[["top",0],["left",0],[z3,a]]}function Ufe(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(r*3/2)+"px");var i=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,a=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&o&&t.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),X(["decoration","align"],function(l){var c=e.get(l);c&&t.push("text-"+l+":"+c)}),t.join(";")}function Gfe(e,t,r){var n=[],i=e.get("transitionDuration"),o=e.get("backgroundColor"),a=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),c=e.get("shadowOffsetY"),f=e.getModel("textStyle"),p=d5(e,"html"),v=l+"px "+c+"px "+a+"px "+s;return n.push("box-shadow:"+v),t&&i&&n.push(Vfe(i,r)),o&&n.push("background-color:"+o),X(["width","color","radius"],function(h){var g="border-"+h,x=i5(g),y=e.get(x);y!=null&&n.push(g+":"+y+(h==="color"?"":"px"))}),n.push(Ufe(f)),p!=null&&n.push("padding:"+ey(p).join("px ")+"px"),n.join(";")+";"}function aA(e,t,r,n,i){var o=t&&t.painter;if(r){var a=o&&o.getViewportRoot();a&&Hoe(e,a,r,n,i)}else{e[0]=n,e[1]=i;var s=o&&o.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var qfe=function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,ut.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),o=r.appendTo,a=o&&(qe(o)?document.querySelector(o):Xd(o)?o:ft(o)&&o(t.getDom()));aA(this._styleCoord,i,a,t.getWidth()/2,t.getHeight()/2),(a||t.getDom()).appendChild(n),this._api=t,this._container=a;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var c=i.handler,f=i.painter.getViewportRoot();bi(f,l,!0),c.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),n=Ffe(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var o=t.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,o=this._styleCoord;n.innerHTML?i.cssText=jfe+Gfe(t,!this._firstShow,this._longHide)+oA(o[0],o[1],!0)+("border-color:"+zl(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,o){var a=this.el;if(t==null){a.innerHTML="";return}var s="";if(qe(o)&&n.get("trigger")==="item"&&!O3(n)&&(s=Wfe(n,i,o)),qe(t))a.innerHTML=t+s;else if(t){a.innerHTML="",Be(t)||(t=[t]);for(var l=0;l<t.length;l++)Xd(t[l])&&t[l].parentNode!==a&&a.appendChild(t[l]);if(s&&a.childNodes.length){var c=document.createElement("div");c.innerHTML=s,a.appendChild(c)}}},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el;return[t.offsetWidth,t.offsetHeight]},e.prototype.moveTo=function(t,r){var n=this._styleCoord;if(aA(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,o=oA(n[0],n[1]);X(o,function(a){i[a[0]]=a[1]})}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){var t=this,r=this.el.style;r.visibility="hidden",r.opacity="0",ut.transform3dSupported&&(r.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(pr(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this.el.parentNode;t&&t.removeChild(this.el),this.el=this._container=null},e}(),Yfe=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),lA(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return e.prototype.update=function(t){var r=t.get("alwaysShowContent");r&&this._moveIfResized(),this._alwaysShowContent=r},e.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},e.prototype.setContent=function(t,r,n,i,o){var a=this;rt(t)&&Dn(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new tn({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:d5(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),X(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(c){a.el.style[c]=n.get(c)}),X(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(c){a.el.style[c]=s.get(c)||0}),this._zr.add(this.el);var l=this;this.el.on("mouseover",function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0}),this.el.on("mouseout",function(){l._enterable&&l._show&&l.hideLater(l._hideDelay),l._inContent=!1})},e.prototype.setEnterable=function(t){this._enterable=t},e.prototype.getSize=function(){var t=this.el,r=this.el.getBoundingRect(),n=sA(t.style);return[r.width+n.left+n.right,r.height+n.top+n.bottom]},e.prototype.moveTo=function(t,r){var n=this.el;if(n){var i=this._styleCoord;lA(i,this._zr,t,r),t=i[0],r=i[1];var o=n.style,a=rs(o.borderWidth||0),s=sA(o);n.x=t+a+s.left,n.y=r+a+s.top,n.markRedraw()}},e.prototype._moveIfResized=function(){var t=this._styleCoord[2],r=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),r*this._zr.getHeight())},e.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},e.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(pr(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function rs(e){return Math.max(0,e)}function sA(e){var t=rs(e.shadowBlur||0),r=rs(e.shadowOffsetX||0),n=rs(e.shadowOffsetY||0);return{left:rs(t-r),right:rs(t+r),top:rs(t-n),bottom:rs(t+n)}}function lA(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Kfe=new zr({shape:{x:-1,y:-1,width:2,height:2}}),Xfe=function(e){$e(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){if(!(ut.node||!n.getDom())){var i=r.getComponent("tooltip"),o=this._renderMode=Cne(i.get("renderMode"));this._tooltipContent=o==="richText"?new Yfe(n):new qfe(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(r,n,i){if(!(ut.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var o=this._tooltipContent;o.update(r),o.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?C5(this,"_updatePosition",50,"fixRate"):p_(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");A3("itemTooltip",this._api,pr(function(i,o,a){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(o,a):i==="leave"&&this._hide(a))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,o=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&o!=="none"&&o!=="click"){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&a.manuallyShowTip(r,n,i,{x:a._lastX,y:a._lastY,dataByCoordSys:a._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,o){if(!(o.from===this.uid||ut.node||!i.getDom())){var a=uA(o,i);this._ticket="";var s=o.dataByCoordSys,l=ede(o,n,i);if(l){var c=l.el.getBoundingRect().clone();c.applyTransform(l.el.transform),this._tryShow({offsetX:c.x+c.width/2,offsetY:c.y+c.height/2,target:l.el,position:o.position,positionDefault:"bottom"},a)}else if(o.tooltip&&o.x!=null&&o.y!=null){var f=Kfe;f.x=o.x,f.y=o.y,f.update(),Ut(f).tooltipConfig={name:null,option:o.tooltip},this._tryShow({offsetX:o.x,offsetY:o.y,target:f},a)}else if(s)this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,dataByCoordSys:s,tooltipOption:o.tooltipOption},a);else if(o.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,o))return;var p=D3(o,n),v=p.point[0],h=p.point[1];v!=null&&h!=null&&this._tryShow({offsetX:v,offsetY:h,target:p.el,position:o.position,positionDefault:"bottom"},a)}else o.x!=null&&o.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:o.x,y:o.y}),this._tryShow({offsetX:o.x,offsetY:o.y,position:o.position,target:i.getZr().findHover(o.x,o.y).target},a))}},t.prototype.manuallyHideTip=function(r,n,i,o){var a=this._tooltipContent;this._tooltipModel&&a.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,o.from!==this.uid&&this._hide(uA(o,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,o){var a=o.seriesIndex,s=o.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(a==null||s==null||l==null)){var c=n.getSeriesByIndex(a);if(c){var f=c.getData(),p=Uf([f.getItemModel(s),c,(c.coordinateSystem||{}).model],this._tooltipModel);if(p.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:a,dataIndex:s,position:o.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,o=this._tooltipModel;if(o){this._lastX=r.offsetX,this._lastY=r.offsetY;var a=r.dataByCoordSys;if(a&&a.length)this._showAxisTooltip(a,r);else if(i){var s=Ut(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,c;id(i,function(f){if(Ut(f).dataIndex!=null)return l=f,!0;if(Ut(f).tooltipConfig!=null)return c=f,!0},!0),l?this._showSeriesItemTooltip(r,l,n):c?this._showComponentItemTooltip(r,c,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=pr(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,o=this._tooltipModel,a=[n.offsetX,n.offsetY],s=Uf([n.tooltipOption],o),l=this._renderMode,c=[],f=ap("section",{blocks:[],noHeader:!0}),p=[],v=new mx;X(r,function(S){X(S.dataByAxis,function(_){var C=i.getComponent(_.axisDim+"Axis",_.axisIndex),k=_.value;if(!(!C||k==null)){var T=M3(k,C.axis,i,_.seriesDataIndices,_.valueLabelOpt),E=ap("section",{header:T,noHeader:!Eo(T),sortBlocks:!0,blocks:[]});f.blocks.push(E),X(_.seriesDataIndices,function(I){var D=i.getSeriesByIndex(I.seriesIndex),A=I.dataIndexInside,L=D.getDataParams(A);if(!(L.dataIndex<0)){L.axisDim=_.axisDim,L.axisIndex=_.axisIndex,L.axisType=_.axisType,L.axisId=_.axisId,L.axisValue=rC(C.axis,{value:k}),L.axisValueLabel=T,L.marker=v.makeTooltipMarker("item",zl(L.color),l);var $=bM(D.formatTooltip(A,!0,null)),B=$.frag;if(B){var j=Uf([D],o).get("valueFormatter");E.blocks.push(j?Ie({valueFormatter:j},B):B)}$.text&&p.push($.text),c.push(L)}})}})}),f.blocks.reverse(),p.reverse();var h=n.position,g=s.get("order"),x=wM(f,v,l,g,i.get("useUTC"),s.get("textStyle"));x&&p.unshift(x);var y=l==="richText"?`
202
-
203
- `:"<br/>",b=p.join(y);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,c)?this._updatePosition(s,h,a[0],a[1],this._tooltipContent,c):this._showTooltipContent(s,b,c,Math.random()+"",a[0],a[1],h,null,v)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var o=this._ecModel,a=Ut(n),s=a.seriesIndex,l=o.getSeriesByIndex(s),c=a.dataModel||l,f=a.dataIndex,p=a.dataType,v=c.getData(p),h=this._renderMode,g=r.positionDefault,x=Uf([v.getItemModel(f),c,l&&(l.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),y=x.get("trigger");if(!(y!=null&&y!=="item")){var b=c.getDataParams(f,p),S=new mx;b.marker=S.makeTooltipMarker("item",zl(b.color),h);var _=bM(c.formatTooltip(f,!1,p)),C=x.get("order"),k=x.get("valueFormatter"),T=_.frag,E=T?wM(k?Ie({valueFormatter:k},T):T,S,h,C,o.get("useUTC"),x.get("textStyle")):_.text,I="item_"+c.name+"_"+f;this._showOrMove(x,function(){this._showTooltipContent(x,E,b,I,r.offsetX,r.offsetY,r.position,r.target,S)}),i({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var o=this._renderMode==="html",a=Ut(n),s=a.tooltipConfig,l=s.option||{},c=l.encodeHTMLContent;if(qe(l)){var f=l;l={content:f,formatter:f},c=!0}c&&o&&l.content&&(l=Rt(l),l.content=ei(l.content));var p=[l],v=this._ecModel.getComponent(a.componentMainType,a.componentIndex);v&&p.push(v),p.push({formatter:l.content});var h=r.positionDefault,g=Uf(p,this._tooltipModel,h?{position:h}:null),x=g.get("content"),y=Math.random()+"",b=new mx;this._showOrMove(g,function(){var S=Rt(g.get("formatterParams")||{});this._showTooltipContent(g,x,S,y,r.offsetX,r.offsetY,r.position,n,b)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,o,a,s,l,c,f){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var p=this._tooltipContent;p.setEnterable(r.get("enterable"));var v=r.get("formatter");l=l||r.get("position");var h=n,g=this._getNearestPoint([a,s],i,r.get("trigger"),r.get("borderColor")),x=g.color;if(v)if(qe(v)){var y=r.ecModel.get("useUTC"),b=Be(i)?i[0]:i,S=b&&b.axisType&&b.axisType.indexOf("time")>=0;h=v,S&&(h=Km(b.axisValue,h,y)),h=o5(h,i,!0)}else if(ft(v)){var _=pr(function(C,k){C===this._ticket&&(p.setContent(k,f,r,x,l),this._updatePosition(r,l,a,s,p,i,c))},this);this._ticket=o,h=v(i,o,_)}else h=v;p.setContent(h,f,r,x,l),p.show(r,x),this._updatePosition(r,l,a,s,p,i,c)}},t.prototype._getNearestPoint=function(r,n,i,o){if(i==="axis"||Be(n))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!Be(n))return{color:o||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,o,a,s,l){var c=this._api.getWidth(),f=this._api.getHeight();n=n||r.get("position");var p=a.getSize(),v=r.get("align"),h=r.get("verticalAlign"),g=l&&l.getBoundingRect().clone();if(l&&g.applyTransform(l.transform),ft(n)&&(n=n([i,o],s,a.el,g,{viewSize:[c,f],contentSize:p.slice()})),Be(n))i=vn(n[0],c),o=vn(n[1],f);else if(rt(n)){var x=n;x.width=p[0],x.height=p[1];var y=ip(x,{width:c,height:f});i=y.x,o=y.y,v=null,h=null}else if(qe(n)&&l){var b=Jfe(n,g,p,r.get("borderWidth"));i=b[0],o=b[1]}else{var b=Qfe(i,o,a,c,f,v?null:20,h?null:20);i=b[0],o=b[1]}if(v&&(i-=cA(v)?p[0]/2:v==="right"?p[0]:0),h&&(o-=cA(h)?p[1]/2:h==="bottom"?p[1]:0),O3(r)){var b=Zfe(i,o,a,c,f);i=b[0],o=b[1]}a.moveTo(i,o)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,o=this._cbParamsList,a=!!i&&i.length===r.length;return a&&X(i,function(s,l){var c=s.dataByAxis||[],f=r[l]||{},p=f.dataByAxis||[];a=a&&c.length===p.length,a&&X(c,function(v,h){var g=p[h]||{},x=v.seriesDataIndices||[],y=g.seriesDataIndices||[];a=a&&v.value===g.value&&v.axisType===g.axisType&&v.axisId===g.axisId&&x.length===y.length,a&&X(x,function(b,S){var _=y[S];a=a&&b.seriesIndex===_.seriesIndex&&b.dataIndex===_.dataIndex}),o&&X(v.seriesDataIndices,function(b){var S=b.seriesIndex,_=n[S],C=o[S];_&&C&&C.data!==_.data&&(a=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!a},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){ut.node||!n.getDom()||(p_(this,"_updatePosition"),this._tooltipContent.dispose(),A_("itemTooltip",n))},t.type="tooltip",t}(ro);function Uf(e,t,r){var n=t.ecModel,i;r?(i=new yr(r,n,n),i=new yr(t.option,i,n)):i=t;for(var o=e.length-1;o>=0;o--){var a=e[o];a&&(a instanceof yr&&(a=a.get("tooltip",!0)),qe(a)&&(a={formatter:a}),a&&(i=new yr(a,i,n)))}return i}function uA(e,t){return e.dispatchAction||pr(t.dispatchAction,t)}function Qfe(e,t,r,n,i,o,a){var s=r.getSize(),l=s[0],c=s[1];return o!=null&&(e+l+o+2>n?e-=l+o:e+=o),a!=null&&(t+c+a>i?t-=c+a:t+=a),[e,t]}function Zfe(e,t,r,n,i){var o=r.getSize(),a=o[0],s=o[1];return e=Math.min(e+a,n)-a,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function Jfe(e,t,r,n){var i=r[0],o=r[1],a=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,c=t.width,f=t.height;switch(e){case"inside":s=t.x+c/2-i/2,l=t.y+f/2-o/2;break;case"top":s=t.x+c/2-i/2,l=t.y-o-a;break;case"bottom":s=t.x+c/2-i/2,l=t.y+f+a;break;case"left":s=t.x-i-a,l=t.y+f/2-o/2;break;case"right":s=t.x+c+a,l=t.y+f/2-o/2}return[s,l]}function cA(e){return e==="center"||e==="middle"}function ede(e,t,r){var n=gw(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var o=Ap(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),a=o.models[0];if(a){var s=r.getViewOfComponentModel(a),l;if(s.group.traverse(function(c){var f=Ut(c).tooltipConfig;if(f&&f.name===e.name)return l=c,!0}),l)return{componentMainType:i,componentIndex:a.componentIndex,el:l}}}}function tde(e){bs(L3),e.registerComponentModel(zfe),e.registerComponentView(Xfe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Fn),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Fn)}var rde=function(e){$e(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t}(Vt),nde=function(e){$e(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var o=this.group,a=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),c=wt(r.get("textBaseline"),r.get("textVerticalAlign")),f=new tn({style:ys(a,{text:r.get("text"),fill:a.getTextColor()},{disableBox:!0}),z2:10}),p=f.getBoundingRect(),v=r.get("subtext"),h=new tn({style:ys(s,{text:v,fill:s.getTextColor(),y:p.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),g=r.get("link"),x=r.get("sublink"),y=r.get("triggerEvent",!0);f.silent=!g&&!y,h.silent=!x&&!y,g&&f.on("click",function(){yM(g,"_"+r.get("target"))}),x&&h.on("click",function(){yM(x,"_"+r.get("subtarget"))}),Ut(f).eventData=Ut(h).eventData=y?{componentType:"title",componentIndex:r.componentIndex}:null,o.add(f),v&&o.add(h);var b=o.getBoundingRect(),S=r.getBoxLayoutParams();S.width=b.width,S.height=b.height;var _=ip(S,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),c||(c=r.get("top")||r.get("bottom"),c==="center"&&(c="middle"),c==="bottom"?_.y+=_.height:c==="middle"&&(_.y+=_.height/2),c=c||"top"),o.x=_.x,o.y=_.y,o.markRedraw();var C={align:l,verticalAlign:c};f.setStyle(C),h.setStyle(C),b=o.getBoundingRect();var k=_.margin,T=r.getItemStyle(["color","opacity"]);T.fill=r.get("backgroundColor");var E=new zr({shape:{x:b.x-k[3],y:b.y-k[0],width:b.width+k[1]+k[3],height:b.height+k[0]+k[2],r:r.get("borderRadius")},style:T,subPixelOptimize:!0,silent:!0});o.add(E)}},t.type="title",t}(ro);function ide(e){e.registerComponentModel(rde),e.registerComponentView(nde)}var ode=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},D_=function(e){$e(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),r.selected=r.selected||{},this._updateSelector(r)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),this._updateSelector(r)},t.prototype._updateSelector=function(r){var n=r.selector,i=this.ecModel;n===!0&&(n=r.selector=["all","inverse"]),Be(n)&&X(n,function(o,a){qe(o)&&(o={type:o}),n[a]=Bt(o,ode(i,o.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var r=this._data;if(r[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<r.length;i++){var o=r[i].get("name");if(this.isSelected(o)){this.select(o),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var c=l.name;i.push(c);var f;if(l.legendVisualProvider){var p=l.legendVisualProvider,v=p.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(v)),v.length?n=n.concat(v):f=!0}else f=!0;f&&vw(l)&&n.push(l.name)}),this._availableNames=i;var o=this.get("data")||n,a=yt(),s=at(o,function(l){return(qe(l)||ur(l))&&(l={name:l}),a.get(l.name)?null:(a.set(l.name,!0),new yr(l,this,this.ecModel))},this);this._data=hn(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(r){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var o=this._data;X(o,function(a){n[a.get("name")]=!1})}n[r]=!0},t.prototype.unSelect=function(r){this.get("selectedMode")!=="single"&&(this.option.selected[r]=!1)},t.prototype.toggleSelected=function(r){var n=this.option.selected;n.hasOwnProperty(r)||(n[r]=!0),this[n[r]?"unSelect":"select"](r)},t.prototype.allSelect=function(){var r=this._data,n=this.option.selected;X(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;X(r,function(i){var o=i.get("name",!0);n.hasOwnProperty(o)||(n[o]=!0),n[o]=!n[o]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&qt(this._availableNames,r)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(Vt),Iu=Nr,L_=X,Bv=rn,F3=function(e){$e(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new Bv),this.group.add(this._selectorGroup=new Bv),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var a=r.get("align"),s=r.get("orient");(!a||a==="auto")&&(a=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),c=r.get("selectorPosition",!0);l&&(!c||c==="auto")&&(c=s==="horizontal"?"end":"start"),this.renderInner(a,r,n,i,l,s,c);var f=r.getBoxLayoutParams(),p={width:i.getWidth(),height:i.getHeight()},v=r.get("padding"),h=ip(f,p,v),g=this.layoutInner(r,a,h,o,l,c),x=ip(Gt({width:g.width,height:g.height},f),p,v);this.group.x=x.x-g.x,this.group.y=x.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Nfe(g,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,o,a,s,l){var c=this.getContentGroup(),f=yt(),p=n.get("selectedMode"),v=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&v.push(h.id)}),L_(n.getData(),function(h,g){var x=h.get("name");if(!this.newlineDisabled&&(x===""||x===`
204
- `)){var y=new Bv;y.newline=!0,c.add(y);return}var b=i.getSeriesByName(x)[0];if(!f.get(x))if(b){var S=b.getData(),_=S.getVisual("legendLineStyle")||{},C=S.getVisual("legendIcon"),k=S.getVisual("style"),T=this._createItem(b,x,g,h,n,r,_,k,C,p,o);T.on("click",Iu(fA,x,null,o,v)).on("mouseover",Iu(O_,b.name,null,o,v)).on("mouseout",Iu(N_,b.name,null,o,v)),i.ssr&&T.eachChild(function(E){var I=Ut(E);I.seriesIndex=b.seriesIndex,I.dataIndex=g,I.ssrType="legend"}),f.set(x,!0)}else i.eachRawSeries(function(E){if(!f.get(x)&&E.legendVisualProvider){var I=E.legendVisualProvider;if(!I.containName(x))return;var D=I.indexOfName(x),A=I.getItemVisual(D,"style"),L=I.getItemVisual(D,"legendIcon"),$=pa(A.fill);$&&$[3]===0&&($[3]=.2,A=Ie(Ie({},A),{fill:Nm($,"rgba")}));var B=this._createItem(E,x,g,h,n,r,{},A,L,p,o);B.on("click",Iu(fA,null,x,o,v)).on("mouseover",Iu(O_,null,x,o,v)).on("mouseout",Iu(N_,null,x,o,v)),i.ssr&&B.eachChild(function(j){var W=Ut(j);W.seriesIndex=E.seriesIndex,W.dataIndex=g,W.ssrType="legend"}),f.set(x,!0)}},this)},this),a&&this._createSelector(a,n,o,s,l)},t.prototype._createSelector=function(r,n,i,o,a){var s=this.getSelectorGroup();L_(r,function(c){var f=c.type,p=new tn({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(p);var v=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);Aw(p,{normal:v,emphasis:h},{defaultText:c.title}),Qb(p)})},t.prototype._createItem=function(r,n,i,o,a,s,l,c,f,p,v){var h=r.visualDrawType,g=a.get("itemWidth"),x=a.get("itemHeight"),y=a.isSelected(n),b=o.get("symbolRotate"),S=o.get("symbolKeepAspect"),_=o.get("icon");f=_||f||"roundRect";var C=ade(f,o,l,c,h,y,v),k=new Bv,T=o.getModel("textStyle");if(ft(r.getLegendIcon)&&(!_||_==="inherit"))k.add(r.getLegendIcon({itemWidth:g,itemHeight:x,icon:f,iconRotate:b,itemStyle:C.itemStyle,lineStyle:C.lineStyle,symbolKeepAspect:S}));else{var E=_==="inherit"&&r.getData().getVisual("symbol")?b==="inherit"?r.getData().getVisual("symbolRotate"):b:0;k.add(sde({itemWidth:g,itemHeight:x,icon:f,iconRotate:E,itemStyle:C.itemStyle,symbolKeepAspect:S}))}var I=s==="left"?g+5:-5,D=s,A=a.get("formatter"),L=n;qe(A)&&A?L=A.replace("{name}",n??""):ft(A)&&(L=A(n));var $=y?T.getTextColor():o.get("inactiveColor");k.add(new tn({style:ys(T,{text:L,x:I,y:x/2,fill:$,align:D,verticalAlign:"middle"},{inheritColor:$})}));var B=new zr({shape:k.getBoundingRect(),style:{fill:"transparent"}}),j=o.getModel("tooltip");return j.get("show")&&Mw({el:B,componentModel:a,itemName:n,itemTooltipOption:j.option}),k.add(B),k.eachChild(function(W){W.silent=!0}),B.silent=!p,this.getContentGroup().add(k),Qb(k),k.__legendDataIndex=i,k},t.prototype.layoutInner=function(r,n,i,o,a,s){var l=this.getContentGroup(),c=this.getSelectorGroup();Ed(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var f=l.getBoundingRect(),p=[-f.x,-f.y];if(c.markRedraw(),l.markRedraw(),a){Ed("horizontal",c,r.get("selectorItemGap",!0));var v=c.getBoundingRect(),h=[-v.x,-v.y],g=r.get("selectorButtonGap",!0),x=r.getOrient().index,y=x===0?"width":"height",b=x===0?"height":"width",S=x===0?"y":"x";s==="end"?h[x]+=f[y]+g:p[x]+=v[y]+g,h[1-x]+=f[b]/2-v[b]/2,c.x=h[0],c.y=h[1],l.x=p[0],l.y=p[1];var _={x:0,y:0};return _[y]=f[y]+g+v[y],_[b]=Math.max(f[b],v[b]),_[S]=Math.min(0,v[S]+h[1-x]),_}else return l.x=p[0],l.y=p[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(ro);function ade(e,t,r,n,i,o,a){function s(y,b){y.lineWidth==="auto"&&(y.lineWidth=b.lineWidth>0?2:0),L_(y,function(S,_){y[_]==="inherit"&&(y[_]=b[_])})}var l=t.getModel("itemStyle"),c=l.getItemStyle(),f=e.lastIndexOf("empty",0)===0?"fill":"stroke",p=l.getShallow("decal");c.decal=!p||p==="inherit"?n.decal:b_(p,a),c.fill==="inherit"&&(c.fill=n[i]),c.stroke==="inherit"&&(c.stroke=n[f]),c.opacity==="inherit"&&(c.opacity=(i==="fill"?n:r).opacity),s(c,n);var v=t.getModel("lineStyle"),h=v.getLineStyle();if(s(h,r),c.fill==="auto"&&(c.fill=n.fill),c.stroke==="auto"&&(c.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!o){var g=t.get("inactiveBorderWidth"),x=c[f];c.lineWidth=g==="auto"?n.lineWidth>0&&x?2:0:c.lineWidth,c.fill=t.get("inactiveColor"),c.stroke=t.get("inactiveBorderColor"),h.stroke=v.get("inactiveColor"),h.lineWidth=v.get("inactiveWidth")}return{itemStyle:c,lineStyle:h}}function sde(e){var t=e.icon||"roundRect",r=pc(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function fA(e,t,r,n){N_(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),O_(e,t,r,n)}function B3(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;n<i&&!(r=t[n].states.emphasis);)n++;return r&&r.hoverLayer}function O_(e,t,r,n){B3(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function N_(e,t,r,n){B3(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}function lde(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(r){for(var n=0;n<t.length;n++)if(!t[n].isSelected(r.name))return!1;return!0})}function Gf(e,t,r){var n={},i=e==="toggleSelected",o;return r.eachComponent("legend",function(a){i&&o!=null?a[o?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?a[e]():(a[e](t.name),o=a.isSelected(t.name));var s=a.getData();X(s,function(l){var c=l.get("name");if(!(c===`
205
- `||c==="")){var f=a.isSelected(c);n.hasOwnProperty(c)?n[c]=n[c]&&f:n[c]=f}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function ude(e){e.registerAction("legendToggleSelect","legendselectchanged",Nr(Gf,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Nr(Gf,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Nr(Gf,"inverseSelect")),e.registerAction("legendSelect","legendselected",Nr(Gf,"select")),e.registerAction("legendUnSelect","legendunselected",Nr(Gf,"unSelect"))}function j3(e){e.registerComponentModel(D_),e.registerComponentView(F3),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,lde),e.registerSubTypeDefaulter("legend",function(){return"plain"}),ude(e)}var cde=function(e){$e(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,i){var o=ty(r);e.prototype.init.call(this,r,n,i),dA(this,r,o)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),dA(this,this.option,r)},t.type="legend.scroll",t.defaultOption=Boe(D_.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(D_);function dA(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,dc(t,r,{type:"box",ignoreSize:!!i})}var pA=rn,qx=["width","height"],Yx=["x","y"],fde=function(e){$e(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!0,r._currentIndex=0,r}return t.prototype.init=function(){e.prototype.init.call(this),this.group.add(this._containerGroup=new pA),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new pA)},t.prototype.resetInner=function(){e.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(r,n,i,o,a,s,l){var c=this;e.prototype.renderInner.call(this,r,n,i,o,a,s,l);var f=this._controllerGroup,p=n.get("pageIconSize",!0),v=Be(p)?p:[p,p];g("pagePrev",0);var h=n.getModel("pageTextStyle");f.add(new tn({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),g("pageNext",1);function g(x,y){var b=x+"DataIndex",S=Pw(n.get("pageIcons",!0)[n.getOrient().name][y],{onclick:pr(c._pageGo,c,b,n,o)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});S.name=x,f.add(S)}},t.prototype.layoutInner=function(r,n,i,o,a,s){var l=this.getSelectorGroup(),c=r.getOrient().index,f=qx[c],p=Yx[c],v=qx[1-c],h=Yx[1-c];a&&Ed("horizontal",l,r.get("selectorItemGap",!0));var g=r.get("selectorButtonGap",!0),x=l.getBoundingRect(),y=[-x.x,-x.y],b=Rt(i);a&&(b[f]=i[f]-x[f]-g);var S=this._layoutContentAndController(r,o,b,c,f,v,h,p);if(a){if(s==="end")y[c]+=S[f]+g;else{var _=x[f]+g;y[c]-=_,S[p]-=_}S[f]+=x[f]+g,y[1-c]+=S[h]+S[v]/2-x[v]/2,S[v]=Math.max(S[v],x[v]),S[h]=Math.min(S[h],x[h]+y[1-c]),l.x=y[0],l.y=y[1],l.markRedraw()}return S},t.prototype._layoutContentAndController=function(r,n,i,o,a,s,l,c){var f=this.getContentGroup(),p=this._containerGroup,v=this._controllerGroup;Ed(r.get("orient"),f,r.get("itemGap"),o?i.width:null,o?null:i.height),Ed("horizontal",v,r.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),g=v.getBoundingRect(),x=this._showController=h[a]>i[a],y=[-h.x,-h.y];n||(y[o]=f[c]);var b=[0,0],S=[-g.x,-g.y],_=wt(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(x){var C=r.get("pageButtonPosition",!0);C==="end"?S[o]+=i[a]-g[a]:b[o]+=g[a]+_}S[1-o]+=h[s]/2-g[s]/2,f.setPosition(y),p.setPosition(b),v.setPosition(S);var k={x:0,y:0};if(k[a]=x?i[a]:h[a],k[s]=Math.max(h[s],g[s]),k[l]=Math.min(0,g[l]+S[1-o]),p.__rectSize=i[a],x){var T={x:0,y:0};T[a]=Math.max(i[a]-g[a]-_,0),T[s]=k[s],p.setClipPath(new zr({shape:T})),p.__rectSize=T[a]}else v.eachChild(function(I){I.attr({invisible:!0,silent:!0})});var E=this._getPageInfo(r);return E.pageIndex!=null&&ms(f,{x:E.contentPosition[0],y:E.contentPosition[1]},x?r:null),this._updatePageInfoView(r,E),k},t.prototype._pageGo=function(r,n,i){var o=this._getPageInfo(n)[r];o!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;X(["pagePrev","pageNext"],function(f){var p=f+"DataIndex",v=n[p]!=null,h=i.childOfName(f);h&&(h.setStyle("fill",v?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=v?"pointer":"default")});var o=i.childOfName("pageText"),a=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,c=n.pageCount;o&&a&&o.setStyle("text",qe(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",c==null?"":c+""):a({current:l,total:c}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),o=this._containerGroup.__rectSize,a=r.getOrient().index,s=qx[a],l=Yx[a],c=this._findTargetItemIndex(n),f=i.children(),p=f[c],v=f.length,h=v?1:0,g={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!p)return g;var x=C(p);g.contentPosition[a]=-x.s;for(var y=c+1,b=x,S=x,_=null;y<=v;++y)_=C(f[y]),(!_&&S.e>b.s+o||_&&!k(_,b.s))&&(S.i>b.i?b=S:b=_,b&&(g.pageNextDataIndex==null&&(g.pageNextDataIndex=b.i),++g.pageCount)),S=_;for(var y=c-1,b=x,S=x,_=null;y>=-1;--y)_=C(f[y]),(!_||!k(S,_.s))&&b.i<S.i&&(S=b,g.pagePrevDataIndex==null&&(g.pagePrevDataIndex=b.i),++g.pageCount,++g.pageIndex),b=_;return g;function C(T){if(T){var E=T.getBoundingRect(),I=E[l]+T[l];return{s:I,e:I+E[s],i:T.__legendDataIndex}}}function k(T,E){return T.e>=E&&T.s<=E+o}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),o;return i.eachChild(function(a,s){var l=a.__legendDataIndex;o==null&&l!=null&&(o=s),l===r&&(n=s)}),n??o},t.type="legend.scroll",t}(F3);function dde(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function pde(e){bs(j3),e.registerComponentModel(cde),e.registerComponentView(fde),dde(e)}function hde(e){bs(j3),bs(pde)}function hA(e,t,r){var n=yc.createCanvas(),i=t.getWidth(),o=t.getHeight(),a=n.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=o+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=o*r,n}var Kx=function(e){$e(t,e);function t(r,n,i){var o=e.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null;var a;i=i||Eg,typeof r=="string"?a=hA(r,n,i):rt(r)&&(a=r,r=a.id),o.id=r,o.dom=a;var s=a.style;return s&&(TO(a),a.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),o.painter=n,o.dpr=i,o}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=hA("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,n,i,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var a=[],s=this.maxRepaintRectCount,l=!1,c=new jt(0,0,0,0);function f(S){if(!(!S.isFinite()||S.isZero()))if(a.length===0){var _=new jt(0,0,0,0);_.copy(S),a.push(_)}else{for(var C=!1,k=1/0,T=0,E=0;E<a.length;++E){var I=a[E];if(I.intersect(S)){var D=new jt(0,0,0,0);D.copy(I),D.union(S),a[E]=D,C=!0;break}else if(l){c.copy(S),c.union(I);var A=S.width*S.height,L=I.width*I.height,$=c.width*c.height,B=$-A-L;B<k&&(k=B,T=E)}}if(l&&(a[T].union(S),C=!0),!C){var _=new jt(0,0,0,0);_.copy(S),a.push(_)}l||(l=a.length>=s)}}for(var p=this.__startIndex;p<this.__endIndex;++p){var v=r[p];if(v){var h=v.shouldBePainted(i,o,!0,!0),g=v.__isRendered&&(v.__dirty&Lo||!h)?v.getPrevPaintRect():null;g&&f(g);var x=h&&(v.__dirty&Lo||!v.__isRendered)?v.getPaintRect():null;x&&f(x)}}for(var p=this.__prevStartIndex;p<this.__prevEndIndex;++p){var v=n[p],h=v&&v.shouldBePainted(i,o,!0,!0);if(v&&(!h||!v.__zr)&&v.__isRendered){var g=v.getPrevPaintRect();g&&f(g)}}var y;do{y=!1;for(var p=0;p<a.length;){if(a[p].isZero()){a.splice(p,1);continue}for(var b=p+1;b<a.length;)a[p].intersect(a[b])?(y=!0,a[p].union(a[b]),a.splice(b,1)):b++;p++}}while(y);return this._paintRects=a,a},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var i=this.dpr,o=this.dom,a=o.style,s=this.domBack;a&&(a.width=r+"px",a.height=n+"px"),o.width=r*i,o.height=n*i,s&&(s.width=r*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(r,n,i){var o=this.dom,a=this.ctx,s=o.width,l=o.height;n=n||this.clearColor;var c=this.motionBlur&&!r,f=this.lastFrameAlpha,p=this.dpr,v=this;c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/p,l/p));var h=this.domBack;function g(x,y,b,S){if(a.clearRect(x,y,b,S),n&&n!=="transparent"){var _=void 0;if(Am(n)){var C=n.global||n.__width===b&&n.__height===S;_=C&&n.__canvasGradient||y_(a,n,{x:0,y:0,width:b,height:S}),n.__canvasGradient=_,n.__width=b,n.__height=S}else gte(n)&&(n.scaleX=n.scaleX||p,n.scaleY=n.scaleY||p,_=x_(a,n,{dirty:function(){v.setUnpainted(),v.painter.refresh()}}));a.save(),a.fillStyle=_||n,a.fillRect(x,y,b,S),a.restore()}c&&(a.save(),a.globalAlpha=f,a.drawImage(h,x,y,b,S),a.restore())}!i||c?g(0,0,s,l):i.length&&X(i,function(x){g(x.x*p,x.y*p,x.width*p,x.height*p)})},t}(Uo),vA=1e5,sl=314159,jv=.01,vde=.001;function gde(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function mde(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var yde=function(){function e(t,r,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=Ie({},n||{}),this.dpr=n.devicePixelRatio||Eg,this._singleCanvas=o,this.root=t;var a=t.style;a&&(TO(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(o){var f=t,p=f.width,v=f.height;n.width!=null&&(p=n.width),n.height!=null&&(v=n.height),this.dpr=n.devicePixelRatio||1,f.width=p*this.dpr,f.height=v*this.dpr,this._width=p,this._height=v;var h=new Kx(f,this,this.dpr);h.__builtin__=!0,h.initContext(),l[sl]=h,h.zlevel=sl,s.push(sl),this._domRoot=t}else{this._width=Dv(t,0,n),this._height=Dv(t,1,n);var c=this._domRoot=mde(this._width,this._height);t.appendChild(c)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,n,t,this._redrawId);for(var o=0;o<i.length;o++){var a=i[o],s=this._layers[a];if(!s.__builtin__&&s.refresh){var l=o===0?this._backgroundColor:null;s.refresh(l)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,n=this._hoverlayer;if(n&&n.clear(),!!r){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},o,a=0;a<r;a++){var s=t[a];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(vA)),o||(o=n.ctx,o.save()),bl(o,s,i,a===r-1))}o&&o.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(vA)},e.prototype.paintOne=function(t,r){G5(t,r)},e.prototype._paintList=function(t,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var o=this._doPaintList(t,r,n),a=o.finished,s=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),a)this.eachLayer(function(c){c.afterBrush&&c.afterBrush()});else{var l=this;Bg(function(){l._paintList(t,r,n,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(sl).ctx,r=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,r,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,r,n)})},e.prototype._doPaintList=function(t,r,n){for(var i=this,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],c=this._layers[l];c.__builtin__&&c!==this._hoverlayer&&(c.__dirty||n)&&o.push(c)}for(var f=!0,p=!1,v=function(x){var y=o[x],b=y.ctx,S=a&&y.createRepaintRects(t,r,h._width,h._height),_=n?y.__startIndex:y.__drawIndex,C=!n&&y.incremental&&Date.now,k=C&&Date.now(),T=y.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(y.__startIndex===y.__endIndex)y.clear(!1,T,S);else if(_===y.__startIndex){var E=t[_];(!E.incremental||!E.notClear||n)&&y.clear(!1,T,S)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=y.__startIndex);var I,D=function(B){var j={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(I=_;I<y.__endIndex;I++){var W=t[I];if(W.__inHover&&(p=!0),i._doPaintEl(W,y,a,B,j,I===y.__endIndex-1),C){var q=Date.now()-k;if(q>15)break}}j.prevElClipPaths&&b.restore()};if(S)if(S.length===0)I=y.__endIndex;else for(var A=h.dpr,L=0;L<S.length;++L){var $=S[L];b.save(),b.beginPath(),b.rect($.x*A,$.y*A,$.width*A,$.height*A),b.clip(),D($),b.restore()}else b.save(),D(),b.restore();y.__drawIndex=I,y.__drawIndex<y.__endIndex&&(f=!1)},h=this,g=0;g<o.length;g++)v(g);return ut.wxa&&X(this._layers,function(x){x&&x.ctx&&x.ctx.draw&&x.ctx.draw()}),{finished:f,needsRefreshHover:p}},e.prototype._doPaintEl=function(t,r,n,i,o,a){var s=r.ctx;if(n){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(bl(s,t,o,a),t.setPrevPaintRect(l))}else bl(s,t,o,a)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=sl);var n=this._layers[t];return n||(n=new Kx("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?Bt(n,this._layerConfig[t],!0):this._layerConfig[t-jv]&&Bt(n,this._layerConfig[t-jv],!0),r&&(n.virtual=r),this.insertLayer(t,n),n.initContext()),n},e.prototype.insertLayer=function(t,r){var n=this._layers,i=this._zlevelList,o=i.length,a=this._domRoot,s=null,l=-1;if(!n[t]&&gde(r)){if(o>0&&t>i[0]){for(l=0;l<o-1&&!(i[l]<t&&i[l+1]>t);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var c=s.dom;c.nextSibling?a.insertBefore(r.dom,c.nextSibling):a.appendChild(r.dom)}else a.firstChild?a.insertBefore(r.dom,a.firstChild):a.appendChild(r.dom);r.painter||(r.painter=this)}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i];t.call(r,this._layers[o],o)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i],a=this._layers[o];a.__builtin__&&t.call(r,a,o)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var o=n[i],a=this._layers[o];a.__builtin__||t.call(r,a,o)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(p,v){p.__dirty=p.__used=!1});function r(p){o&&(o.__endIndex!==p&&(o.__dirty=!0),o.__endIndex=p)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var o=null,a=0,s,l;for(l=0;l<t.length;l++){var i=t[l],c=i.zlevel,f=void 0;s!==c&&(s=c,a=0),i.incremental?(f=this.getLayer(c+vde,this._needsManuallyCompositing),f.incremental=!0,a=1):f=this.getLayer(c+(a>0?jv:0),this._needsManuallyCompositing),f.__builtin__||iw("ZLevel "+c+" has been used by unkown layer "+f.id),f!==o&&(f.__used=!0,f.__startIndex!==l&&(f.__dirty=!0),f.__startIndex=l,f.incremental?f.__drawIndex=-1:f.__drawIndex=l,r(l),o=f),i.__dirty&Lo&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(p,v){!p.__used&&p.getElementCount()>0&&(p.__dirty=!0,p.__startIndex=p.__endIndex=p.__drawIndex=0),p.__dirty&&p.__drawIndex<0&&(p.__drawIndex=p.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,X(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?Bt(n[t],r,!0):n[t]=r;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];if(o===t||o===t+jv){var a=this._layers[o];Bt(a,n[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,n=this._zlevelList,i=r[t];i&&(i.dom.parentNode.removeChild(i.dom),delete r[t],n.splice(qt(n,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,o=this.root;if(t!=null&&(i.width=t),r!=null&&(i.height=r),t=Dv(o,0,i),r=Dv(o,1,i),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var a in this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(sl).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[sl].dom;var r=new Kx("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var n=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=r.dom.width,o=r.dom.height;this.eachLayer(function(p){p.__builtin__?n.drawImage(p.dom,0,0,i,o):p.renderToCanvas&&(n.save(),p.renderToCanvas(n),n.restore())})}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,c=s.length;l<c;l++){var f=s[l];bl(n,f,a,l===c-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function xde(e){e.registerPainter("canvas",yde)}const gA={DARK:{textColor:"#b3c3bc",axisColor:"#5b6f66",backgroundColor:"#27272a",splitLine:"#4c4c52"},LIGHT:{textColor:"#000",axisColor:"#000",backgroundColor:"#fff",splitLine:"#ddd"}},bde=e=>!isNaN(new Date(e).getTime()),_de=e=>e&&bde(e)?new Date(e).toLocaleString():"",H3=({charts:e,lines:t,scatterplot:r})=>t.map(({key:n,name:i})=>({symbolSize:4,type:r?"scatter":"line",name:i,data:e[n]})),mA={type:"value",boundaryGap:[0,"5%"]},Sde=({splitAxis:e,yAxisLabels:t})=>e&&(!t||Array.isArray(t))?Array(2).fill(mA).map((r,n)=>({...r,...t?{name:t[n]}:{}})):{...mA,...t?{name:t}:{}},wde=e=>new Date(e).toLocaleTimeString(),Cde=({chartValueFormatter:e,value:t})=>e?e(t):Array.isArray(t)?t[1]:t,Tde=({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:o,yAxisLabels:a,xAxis:s,grid:l,scatterplot:c})=>({title:{text:t},tooltip:{trigger:"axis",formatter:f=>Array.isArray(f)&&f.length>0&&f.some(p=>!!p.value)?f.reduce((p,{axisValue:v,color:h,seriesName:g,value:x},y)=>`
206
- ${y===0?_de(v):""}
207
- ${p}
208
- <br>
209
- <span style="color:${h};">
210
- ${g}:&nbsp${Cde({chartValueFormatter:i,value:x})}
211
- </span>
212
- `,""):"No data",borderWidth:0},xAxis:s||{type:"time",min:(e.time||[new Date().toISOString()])[0],startValue:(e.time||[])[0],splitNumber:window.innerWidth<900?2:7,minInterval:1,axisLabel:{formatter:wde}},grid:l||{left:60,right:40},yAxis:Sde({splitAxis:o,yAxisLabels:a}),series:H3({charts:e,lines:r,scatterplot:c}),color:n,toolbox:{right:10,feature:{dataZoom:{title:{zoom:"Zoom Select",back:"Zoom Reset"},yAxisIndex:!1},saveAsImage:{name:t.replace(/\s+/g,"_").toLowerCase()+"_"+new Date().getTime()/1e3,title:"Download as PNG",emphasis:{iconStyle:{textPosition:"left"}}}}},legend:{top:25}}),kde=e=>({symbol:"none",label:{formatter:t=>`Run #${t.dataIndex+1}`,padding:[0,0,8,0]},data:(e.markers||[]).map(t=>({xAxis:t}))}),Rde=e=>t=>{const{batch:r}=t;if(!r)return;const[{start:n,startValue:i,end:o}]=r,a=n>0&&o<=100||i>0;e.setOption({dataZoom:[{type:"slider",show:a}]})};bs([Rse,ide,tde,Ofe,hde,xde]);function Ede({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:o,yAxisLabels:a,xAxis:s,grid:l,scatterplot:c,shouldReplaceMergeLines:f=!1,isDarkMode:p=!1}){const[v,h]=O.useState(null),g=O.useRef(null);return O.useEffect(()=>{if(!g.current)return;const x=jue(g.current);x.setOption(Tde({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:o,yAxisLabels:a,xAxis:s,grid:l,scatterplot:c})),x.on("datazoom",Rde(x));const y=()=>{x.resize(),x.setOption({xAxis:{splitNumber:window.innerWidth<900?2:7}})};return window.addEventListener("resize",y),x.group="swarmCharts",Hue("swarmCharts"),h(x),()=>{Wue(x),window.removeEventListener("resize",y)}},[g]),O.useEffect(()=>{const x=r.every(({key:y})=>!!e[y]);v&&x&&v.setOption({series:r.map(({key:y,yAxisIndex:b,...S},_)=>({...S,data:e[y],...o?{yAxisIndex:b||_}:{},..._===0?{markLine:kde(e)}:{}}))})},[e,v,r]),O.useEffect(()=>{if(v){const{textColor:x,axisColor:y,backgroundColor:b,splitLine:S}=p?gA.DARK:gA.LIGHT;v.setOption({backgroundColor:b,textStyle:{color:x},title:{textStyle:{color:x}},legend:{icon:"circle",inactiveColor:x,textStyle:{color:x}},tooltip:{backgroundColor:b,textStyle:{color:x}},xAxis:{axisLine:{lineStyle:{color:y}}},yAxis:{axisLine:{lineStyle:{color:y}},splitLine:{lineStyle:{color:S}}}})}},[v,p]),O.useEffect(()=>{v&&v.setOption({series:H3({charts:e,lines:r,scatterplot:c})},f?{replaceMerge:["series"]}:void 0)},[r]),M.jsx("div",{ref:g,style:{width:"100%",height:"300px"}})}const Pde=Do.percentilesToChart?Do.percentilesToChart.map(e=>({name:`${e*100}th percentile`,key:`responseTimePercentile${e}`})):[],Mde=["#ff9f00","#9966CC","#8A2BE2","#8E4585","#E0B0FF","#C8A2C8","#E6E6FA"],Ide=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:Pde,colors:Mde},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}],colors:["#0099ff"]}];function Ade({charts:e,isDarkMode:t}){return Ide.map((r,n)=>M.jsx(Ede,{...r,charts:e,isDarkMode:t},`swarm-chart-${n}`))}const Dde=({theme:{isDarkMode:e},ui:{charts:t}})=>({charts:t,isDarkMode:e}),Lde=li(Dde)(Ade);function Ode(e){return(e*100).toFixed(1)+"%"}function z_({classRatio:e}){return M.jsx("ul",{children:Object.entries(e).map(([t,{ratio:r,tasks:n}])=>M.jsxs("li",{children:[`${Ode(r)} ${t}`,n&&M.jsx(z_,{classRatio:n})]},`nested-ratio-${t}`))})}function Nde({ratios:{perClass:e,total:t}}){return!e&&!t?null:M.jsxs("div",{children:[e&&M.jsxs(M.Fragment,{children:[M.jsx("h3",{children:"Ratio Per Class"}),M.jsx(z_,{classRatio:e})]}),t&&M.jsxs(M.Fragment,{children:[M.jsx("h3",{children:"Total Ratio"}),M.jsx(z_,{classRatio:t})]})]})}const zde=({ui:{ratios:e}})=>({ratios:e}),$de=li(zde)(Nde);function Fde(){const{data:e,refetch:t}=gK(),r=Ro(vd.setUi),n=bn(({swarm:o})=>o.state),i=n===Vr.SPAWNING||n==Vr.RUNNING;O.useEffect(()=>{e&&r({ratios:e})},[e]),Cp(t,5e3,{shouldRunInterval:i,immediate:!0})}function Bde(){return Fde(),M.jsx($de,{})}const jde=[{key:"id",title:"Worker"},{key:"state",title:"State"},{key:"userCount",title:"# users"},{key:"cpuUsage",title:"CPU usage"},{key:"memoryUsage",title:"Memory usage",formatter:qF}];function Hde({workers:e=[]}){return M.jsx(Tp,{defaultSortKey:"id",rows:e,structure:jde})}const Wde=({ui:{workers:e}})=>({workers:e}),Vde=li(Wde)(Hde),sa={stats:{component:nte,key:"stats",title:"Statistics"},charts:{component:Lde,key:"charts",title:"Charts"},failures:{component:yX,key:"failures",title:"Failures"},exceptions:{component:hX,key:"exceptions",title:"Exceptions"},ratios:{component:Bde,key:"ratios",title:"Current Ratio"},reports:{component:qee,key:"reports",title:"Download Data"},logs:{component:Vee,key:ML,title:"Logs"},workers:{component:Vde,key:"workers",title:"Workers",shouldDisplayTab:e=>e.swarm.isDistributed},locustCloud:{component:jee,key:"locustcloud",title:"Locust Cloud"}},Ude=[sa.stats,sa.charts,sa.failures,sa.exceptions,sa.ratios,sa.reports,sa.logs,sa.workers,sa.locustCloud],Gde=e=>{const t=new URL(window.location.href);for(const[r,n]of Object.entries(e))t.searchParams.set(r,n);window.history.pushState(null,"",t)},qde=()=>window.location.search?GF(window.location.search):null,Yde={query:qde()},W3=Ci({name:"url",initialState:Yde,reducers:{setUrl:wp}}),Kde=W3.actions,Xde=W3.reducer;function Qde({hasNotification:e,title:t}){return M.jsxs(Ct,{sx:{display:"flex",alignItems:"center"},children:[e&&M.jsx(OL,{color:"secondary"}),M.jsx("span",{children:t})]})}function Zde({currentTabIndexFromQuery:e,notification:t,setNotification:r,setUrl:n,tabs:i}){const[o,a]=O.useState(e),s=(l,c)=>{const f=i[c].key;t[f]&&r({[f]:!1}),Gde({tab:f}),n({query:{tab:f}}),a(c)};return O.useEffect(()=>{a(e)},[e]),M.jsxs(Sp,{maxWidth:"xl",children:[M.jsx(Ct,{sx:{mb:2},children:M.jsx(Fq,{onChange:s,scrollButtons:"auto",value:o,variant:"scrollable",children:i.map(({key:l,title:c},f)=>M.jsx(FG,{label:M.jsx(Qde,{hasNotification:t[l],title:c})},`tab-${f}`))})}),i.map(({component:l=iX},c)=>o===c&&M.jsx(l,{},`tabpabel-${c}`))]})}const Jde=(e,{tabs:t,extendedTabs:r})=>{const{notification:n,swarm:{extendedTabs:i},url:{query:o}}=e,s=(t||[...Ude,...r||i||[]]).filter(({shouldDisplayTab:c})=>!c||c&&c(e)),l=o&&o.tab?s.findIndex(({key:c})=>c===o.tab):0;return{notification:n,tabs:s,currentTabIndexFromQuery:l>-1?l:0}},epe={setNotification:AL.setNotification,setUrl:Kde.setUrl},tpe=li(Jde,epe)(Zde),rpe=2e3;function npe(){const e=Ro(Rm.setSwarm),t=Ro(vd.setUi),r=Ro(vd.updateCharts),n=Ro(vd.updateChartMarkers),i=bn(({swarm:p})=>p),o=O.useRef(i.state),[a,s]=O.useState(!1),{data:l,refetch:c}=vK(),f=i.state===Vr.SPAWNING||i.state==Vr.RUNNING;O.useEffect(()=>{if(!l)return;const{state:p,currentResponseTimePercentiles:v,extendedStats:h,stats:g,errors:x,totalRps:y,totalFailPerSec:b,failRatio:S,workers:_,workerCount:C,userCount:k,totalAvgResponseTime:T}=l,E=new Date().toISOString();a&&(s(!1),n(E));const I=Qf(y,2),D=Qf(b,2),A=Qf(S*100),$={...Object.entries(v).reduce((B,[j,W])=>({...B,[j]:[E,W||0]}),{}),currentRps:[E,I],currentFailPerSec:[E,D],totalAvgResponseTime:[E,Qf(T,2)],userCount:[E,k],time:E};t({extendedStats:h,stats:g,errors:x,totalRps:I,failRatio:A,workers:_,userCount:k}),r($),e({state:p,workerCount:C})},[l]),Cp(c,rpe,{shouldRunInterval:f}),O.useEffect(()=>{i.state===Vr.RUNNING&&o.current===Vr.STOPPED&&s(!0),o.current=i.state},[i.state,o])}const ipe=2e3;function ope(){const{data:e,refetch:t}=xK(),r=Ro(Rm.setSwarm),n=bn(({swarm:i})=>i);O.useEffect(()=>{e&&r({workerCount:e.workerCount})},[e]),Cp(t,ipe,{shouldRunInterval:n.isDistributed&&n.state===Vr.READY})}function ape({swarmState:e,tabs:t,extendedTabs:r}){npe(),ope(),XK();const n=gL();return M.jsxs(TD,{theme:n,children:[M.jsx(GD,{}),M.jsx(HK,{children:e===Vr.READY?M.jsx(BS,{}):M.jsx(tpe,{extendedTabs:r,tabs:t})})]})}const spe=({swarm:{state:e}})=>({swarmState:e}),lpe=li(spe)(ape),upe=Yg({[bg.reducerPath]:bg.reducer,logViewer:YK,notification:VK,swarm:TK,theme:vL,ui:dX,url:Xde}),cpe=DA({reducer:upe,middleware:e=>e().concat(bg.middleware)});function fpe(){if(c2){const e=DA({reducer:Yg({theme:vL})});return M.jsx(l2,{store:e,children:M.jsx(oY,{...c2})})}else return M.jsx(l2,{store:cpe,children:M.jsx(lpe,{})})}function dpe({error:e}){return M.jsxs("div",{role:"alert",children:[M.jsx("p",{children:"Something went wrong"}),e.message&&M.jsx("pre",{style:{color:"red"},children:e.message}),"If the issue persists, please consider opening an"," ",M.jsx("a",{href:"https://github.com/locustio/locust/issues/new?assignees=&labels=bug&projects=&template=bug.yml",children:"issue"})]})}const ppe=W4.createRoot(document.getElementById("root"));ppe.render(M.jsx(U4,{fallbackRender:dpe,children:M.jsx(fpe,{})}));