locust 2.35.1.dev28__py3-none-any.whl → 2.35.1.dev32__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.
- locust/_version.py +2 -2
- locust/web.py +4 -0
- locust/webui/dist/assets/index-DL5_lxtG.js +233 -0
- locust/webui/dist/auth.html +1 -1
- locust/webui/dist/index.html +1 -1
- {locust-2.35.1.dev28.dist-info → locust-2.35.1.dev32.dist-info}/METADATA +2 -2
- {locust-2.35.1.dev28.dist-info → locust-2.35.1.dev32.dist-info}/RECORD +10 -10
- locust/webui/dist/assets/index-PPaguH6c.js +0 -233
- {locust-2.35.1.dev28.dist-info → locust-2.35.1.dev32.dist-info}/WHEEL +0 -0
- {locust-2.35.1.dev28.dist-info → locust-2.35.1.dev32.dist-info}/entry_points.txt +0 -0
- {locust-2.35.1.dev28.dist-info → locust-2.35.1.dev32.dist-info}/licenses/LICENSE +0 -0
@@ -1,233 +0,0 @@
|
|
1
|
-
var PY=Object.defineProperty;var DY=(e,t,r)=>t in e?PY(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var m_=(e,t,r)=>DY(e,typeof t!="symbol"?t+"":t,r);function RY(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 a=Object.getOwnPropertyDescriptor(n,i);a&&Object.defineProperty(e,i,a.get?a:{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 a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&n(o)}).observe(document,{childList:!0,subtree:!0});function r(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=r(i);fetch(i.href,a)}})();function ki(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function EY(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 y_={exports:{}},Oh={},x_={exports:{}},Ot={};/**
|
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 QR;function LY(){if(QR)return Ot;QR=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"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),c=Symbol.for("react.lazy"),f=Symbol.iterator;function d(Y){return Y===null||typeof Y!="object"?null:(Y=f&&Y[f]||Y["@@iterator"],typeof Y=="function"?Y:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,g={};function y(Y,Z,j){this.props=Y,this.context=Z,this.refs=g,this.updater=j||h}y.prototype.isReactComponent={},y.prototype.setState=function(Y,Z){if(typeof Y!="object"&&typeof Y!="function"&&Y!=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,Y,Z,"setState")},y.prototype.forceUpdate=function(Y){this.updater.enqueueForceUpdate(this,Y,"forceUpdate")};function x(){}x.prototype=y.prototype;function S(Y,Z,j){this.props=Y,this.context=Z,this.refs=g,this.updater=j||h}var b=S.prototype=new x;b.constructor=S,v(b,y.prototype),b.isPureReactComponent=!0;var w=Array.isArray,T=Object.prototype.hasOwnProperty,C={current:null},A={key:!0,ref:!0,__self:!0,__source:!0};function k(Y,Z,j){var re,ce={},te=null,pe=null;if(Z!=null)for(re in Z.ref!==void 0&&(pe=Z.ref),Z.key!==void 0&&(te=""+Z.key),Z)T.call(Z,re)&&!A.hasOwnProperty(re)&&(ce[re]=Z[re]);var ae=arguments.length-2;if(ae===1)ce.children=j;else if(1<ae){for(var he=Array(ae),ve=0;ve<ae;ve++)he[ve]=arguments[ve+2];ce.children=he}if(Y&&Y.defaultProps)for(re in ae=Y.defaultProps,ae)ce[re]===void 0&&(ce[re]=ae[re]);return{$$typeof:e,type:Y,key:te,ref:pe,props:ce,_owner:C.current}}function I(Y,Z){return{$$typeof:e,type:Y.type,key:Z,ref:Y.ref,props:Y.props,_owner:Y._owner}}function P(Y){return typeof Y=="object"&&Y!==null&&Y.$$typeof===e}function R(Y){var Z={"=":"=0",":":"=2"};return"$"+Y.replace(/[=:]/g,function(j){return Z[j]})}var L=/\/+/g;function O(Y,Z){return typeof Y=="object"&&Y!==null&&Y.key!=null?R(""+Y.key):Z.toString(36)}function z(Y,Z,j,re,ce){var te=typeof Y;(te==="undefined"||te==="boolean")&&(Y=null);var pe=!1;if(Y===null)pe=!0;else switch(te){case"string":case"number":pe=!0;break;case"object":switch(Y.$$typeof){case e:case t:pe=!0}}if(pe)return pe=Y,ce=ce(pe),Y=re===""?"."+O(pe,0):re,w(ce)?(j="",Y!=null&&(j=Y.replace(L,"$&/")+"/"),z(ce,Z,j,"",function(ve){return ve})):ce!=null&&(P(ce)&&(ce=I(ce,j+(!ce.key||pe&&pe.key===ce.key?"":(""+ce.key).replace(L,"$&/")+"/")+Y)),Z.push(ce)),1;if(pe=0,re=re===""?".":re+":",w(Y))for(var ae=0;ae<Y.length;ae++){te=Y[ae];var he=re+O(te,ae);pe+=z(te,Z,j,he,ce)}else if(he=d(Y),typeof he=="function")for(Y=he.call(Y),ae=0;!(te=Y.next()).done;)te=te.value,he=re+O(te,ae++),pe+=z(te,Z,j,he,ce);else if(te==="object")throw Z=String(Y),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(Y).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.");return pe}function F(Y,Z,j){if(Y==null)return Y;var re=[],ce=0;return z(Y,re,"","",function(te){return Z.call(j,te,ce++)}),re}function H(Y){if(Y._status===-1){var Z=Y._result;Z=Z(),Z.then(function(j){(Y._status===0||Y._status===-1)&&(Y._status=1,Y._result=j)},function(j){(Y._status===0||Y._status===-1)&&(Y._status=2,Y._result=j)}),Y._status===-1&&(Y._status=0,Y._result=Z)}if(Y._status===1)return Y._result.default;throw Y._result}var q={current:null},$={transition:null},X={ReactCurrentDispatcher:q,ReactCurrentBatchConfig:$,ReactCurrentOwner:C};function B(){throw Error("act(...) is not supported in production builds of React.")}return Ot.Children={map:F,forEach:function(Y,Z,j){F(Y,function(){Z.apply(this,arguments)},j)},count:function(Y){var Z=0;return F(Y,function(){Z++}),Z},toArray:function(Y){return F(Y,function(Z){return Z})||[]},only:function(Y){if(!P(Y))throw Error("React.Children.only expected to receive a single React element child.");return Y}},Ot.Component=y,Ot.Fragment=r,Ot.Profiler=i,Ot.PureComponent=S,Ot.StrictMode=n,Ot.Suspense=l,Ot.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=X,Ot.act=B,Ot.cloneElement=function(Y,Z,j){if(Y==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+Y+".");var re=v({},Y.props),ce=Y.key,te=Y.ref,pe=Y._owner;if(Z!=null){if(Z.ref!==void 0&&(te=Z.ref,pe=C.current),Z.key!==void 0&&(ce=""+Z.key),Y.type&&Y.type.defaultProps)var ae=Y.type.defaultProps;for(he in Z)T.call(Z,he)&&!A.hasOwnProperty(he)&&(re[he]=Z[he]===void 0&&ae!==void 0?ae[he]:Z[he])}var he=arguments.length-2;if(he===1)re.children=j;else if(1<he){ae=Array(he);for(var ve=0;ve<he;ve++)ae[ve]=arguments[ve+2];re.children=ae}return{$$typeof:e,type:Y.type,key:ce,ref:te,props:re,_owner:pe}},Ot.createContext=function(Y){return Y={$$typeof:o,_currentValue:Y,_currentValue2:Y,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},Y.Provider={$$typeof:a,_context:Y},Y.Consumer=Y},Ot.createElement=k,Ot.createFactory=function(Y){var Z=k.bind(null,Y);return Z.type=Y,Z},Ot.createRef=function(){return{current:null}},Ot.forwardRef=function(Y){return{$$typeof:s,render:Y}},Ot.isValidElement=P,Ot.lazy=function(Y){return{$$typeof:c,_payload:{_status:-1,_result:Y},_init:H}},Ot.memo=function(Y,Z){return{$$typeof:u,type:Y,compare:Z===void 0?null:Z}},Ot.startTransition=function(Y){var Z=$.transition;$.transition={};try{Y()}finally{$.transition=Z}},Ot.unstable_act=B,Ot.useCallback=function(Y,Z){return q.current.useCallback(Y,Z)},Ot.useContext=function(Y){return q.current.useContext(Y)},Ot.useDebugValue=function(){},Ot.useDeferredValue=function(Y){return q.current.useDeferredValue(Y)},Ot.useEffect=function(Y,Z){return q.current.useEffect(Y,Z)},Ot.useId=function(){return q.current.useId()},Ot.useImperativeHandle=function(Y,Z,j){return q.current.useImperativeHandle(Y,Z,j)},Ot.useInsertionEffect=function(Y,Z){return q.current.useInsertionEffect(Y,Z)},Ot.useLayoutEffect=function(Y,Z){return q.current.useLayoutEffect(Y,Z)},Ot.useMemo=function(Y,Z){return q.current.useMemo(Y,Z)},Ot.useReducer=function(Y,Z,j){return q.current.useReducer(Y,Z,j)},Ot.useRef=function(Y){return q.current.useRef(Y)},Ot.useState=function(Y){return q.current.useState(Y)},Ot.useSyncExternalStore=function(Y,Z,j){return q.current.useSyncExternalStore(Y,Z,j)},Ot.useTransition=function(){return q.current.useTransition()},Ot.version="18.3.1",Ot}var JR;function dx(){return JR||(JR=1,x_.exports=LY()),x_.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 eE;function OY(){if(eE)return Oh;eE=1;var e=dx(),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,a={key:!0,ref:!0,__self:!0,__source:!0};function o(s,l,u){var c,f={},d=null,h=null;u!==void 0&&(d=""+u),l.key!==void 0&&(d=""+l.key),l.ref!==void 0&&(h=l.ref);for(c in l)n.call(l,c)&&!a.hasOwnProperty(c)&&(f[c]=l[c]);if(s&&s.defaultProps)for(c in l=s.defaultProps,l)f[c]===void 0&&(f[c]=l[c]);return{$$typeof:t,type:s,key:d,ref:h,props:f,_owner:i.current}}return Oh.Fragment=r,Oh.jsx=o,Oh.jsxs=o,Oh}var tE;function vs(){return tE||(tE=1,y_.exports=OY()),y_.exports}var N=vs(),iy={},S_={exports:{}},Xn={},b_={exports:{}},__={};/**
|
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 rE;function NY(){return rE||(rE=1,function(e){function t($,X){var B=$.length;$.push(X);e:for(;0<B;){var Y=B-1>>>1,Z=$[Y];if(0<i(Z,X))$[Y]=X,$[B]=Z,B=Y;else break e}}function r($){return $.length===0?null:$[0]}function n($){if($.length===0)return null;var X=$[0],B=$.pop();if(B!==X){$[0]=B;e:for(var Y=0,Z=$.length,j=Z>>>1;Y<j;){var re=2*(Y+1)-1,ce=$[re],te=re+1,pe=$[te];if(0>i(ce,B))te<Z&&0>i(pe,ce)?($[Y]=pe,$[te]=B,Y=te):($[Y]=ce,$[re]=B,Y=re);else if(te<Z&&0>i(pe,B))$[Y]=pe,$[te]=B,Y=te;else break e}}return X}function i($,X){var B=$.sortIndex-X.sortIndex;return B!==0?B:$.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],u=[],c=1,f=null,d=3,h=!1,v=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,x=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 b($){for(var X=r(u);X!==null;){if(X.callback===null)n(u);else if(X.startTime<=$)n(u),X.sortIndex=X.expirationTime,t(l,X);else break;X=r(u)}}function w($){if(g=!1,b($),!v)if(r(l)!==null)v=!0,H(T);else{var X=r(u);X!==null&&q(w,X.startTime-$)}}function T($,X){v=!1,g&&(g=!1,x(k),k=-1),h=!0;var B=d;try{for(b(X),f=r(l);f!==null&&(!(f.expirationTime>X)||$&&!R());){var Y=f.callback;if(typeof Y=="function"){f.callback=null,d=f.priorityLevel;var Z=Y(f.expirationTime<=X);X=e.unstable_now(),typeof Z=="function"?f.callback=Z:f===r(l)&&n(l),b(X)}else n(l);f=r(l)}if(f!==null)var j=!0;else{var re=r(u);re!==null&&q(w,re.startTime-X),j=!1}return j}finally{f=null,d=B,h=!1}}var C=!1,A=null,k=-1,I=5,P=-1;function R(){return!(e.unstable_now()-P<I)}function L(){if(A!==null){var $=e.unstable_now();P=$;var X=!0;try{X=A(!0,$)}finally{X?O():(C=!1,A=null)}}else C=!1}var O;if(typeof S=="function")O=function(){S(L)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,F=z.port2;z.port1.onmessage=L,O=function(){F.postMessage(null)}}else O=function(){y(L,0)};function H($){A=$,C||(C=!0,O())}function q($,X){k=y(function(){$(e.unstable_now())},X)}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($){$.callback=null},e.unstable_continueExecution=function(){v||h||(v=!0,H(T))},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):I=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function($){switch(d){case 1:case 2:case 3:var X=3;break;default:X=d}var B=d;d=X;try{return $()}finally{d=B}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function($,X){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var B=d;d=$;try{return X()}finally{d=B}},e.unstable_scheduleCallback=function($,X,B){var Y=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?Y+B:Y):B=Y,$){case 1:var Z=-1;break;case 2:Z=250;break;case 5:Z=1073741823;break;case 4:Z=1e4;break;default:Z=5e3}return Z=B+Z,$={id:c++,callback:X,priorityLevel:$,startTime:B,expirationTime:Z,sortIndex:-1},B>Y?($.sortIndex=B,t(u,$),r(l)===null&&$===r(u)&&(g?(x(k),k=-1):g=!0,q(w,B-Y))):($.sortIndex=Z,t(l,$),v||h||(v=!0,H(T))),$},e.unstable_shouldYield=R,e.unstable_wrapCallback=function($){var X=d;return function(){var B=d;d=X;try{return $.apply(this,arguments)}finally{d=B}}}}(__)),__}var nE;function zY(){return nE||(nE=1,b_.exports=NY()),b_.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 iE;function BY(){if(iE)return Xn;iE=1;var e=dx(),t=zY();function r(p){for(var m="https://reactjs.org/docs/error-decoder.html?invariant="+p,_=1;_<arguments.length;_++)m+="&args[]="+encodeURIComponent(arguments[_]);return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var n=new Set,i={};function a(p,m){o(p,m),o(p+"Capture",m)}function o(p,m){for(i[p]=m,p=0;p<m.length;p++)n.add(m[p])}var s=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l=Object.prototype.hasOwnProperty,u=/^[: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]*$/,c={},f={};function d(p){return l.call(f,p)?!0:l.call(c,p)?!1:u.test(p)?f[p]=!0:(c[p]=!0,!1)}function h(p,m,_,M){if(_!==null&&_.type===0)return!1;switch(typeof m){case"function":case"symbol":return!0;case"boolean":return M?!1:_!==null?!_.acceptsBooleans:(p=p.toLowerCase().slice(0,5),p!=="data-"&&p!=="aria-");default:return!1}}function v(p,m,_,M){if(m===null||typeof m>"u"||h(p,m,_,M))return!0;if(M)return!1;if(_!==null)switch(_.type){case 3:return!m;case 4:return m===!1;case 5:return isNaN(m);case 6:return isNaN(m)||1>m}return!1}function g(p,m,_,M,D,E,W){this.acceptsBooleans=m===2||m===3||m===4,this.attributeName=M,this.attributeNamespace=D,this.mustUseProperty=_,this.propertyName=p,this.type=m,this.sanitizeURL=E,this.removeEmptyString=W}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(p){y[p]=new g(p,0,!1,p,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(p){var m=p[0];y[m]=new g(m,1,!1,p[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(p){y[p]=new g(p,2,!1,p.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(p){y[p]=new g(p,2,!1,p,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(p){y[p]=new g(p,3,!1,p.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(p){y[p]=new g(p,3,!0,p,null,!1,!1)}),["capture","download"].forEach(function(p){y[p]=new g(p,4,!1,p,null,!1,!1)}),["cols","rows","size","span"].forEach(function(p){y[p]=new g(p,6,!1,p,null,!1,!1)}),["rowSpan","start"].forEach(function(p){y[p]=new g(p,5,!1,p.toLowerCase(),null,!1,!1)});var x=/[\-:]([a-z])/g;function S(p){return p[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(p){var m=p.replace(x,S);y[m]=new g(m,1,!1,p,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(p){var m=p.replace(x,S);y[m]=new g(m,1,!1,p,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(p){var m=p.replace(x,S);y[m]=new g(m,1,!1,p,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(p){y[p]=new g(p,1,!1,p.toLowerCase(),null,!1,!1)}),y.xlinkHref=new g("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(p){y[p]=new g(p,1,!1,p.toLowerCase(),null,!0,!0)});function b(p,m,_,M){var D=y.hasOwnProperty(m)?y[m]:null;(D!==null?D.type!==0:M||!(2<m.length)||m[0]!=="o"&&m[0]!=="O"||m[1]!=="n"&&m[1]!=="N")&&(v(m,_,D,M)&&(_=null),M||D===null?d(m)&&(_===null?p.removeAttribute(m):p.setAttribute(m,""+_)):D.mustUseProperty?p[D.propertyName]=_===null?D.type===3?!1:"":_:(m=D.attributeName,M=D.attributeNamespace,_===null?p.removeAttribute(m):(D=D.type,_=D===3||D===4&&_===!0?"":""+_,M?p.setAttributeNS(M,m,_):p.setAttribute(m,_))))}var w=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=Symbol.for("react.element"),C=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),R=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),q=Symbol.for("react.offscreen"),$=Symbol.iterator;function X(p){return p===null||typeof p!="object"?null:(p=$&&p[$]||p["@@iterator"],typeof p=="function"?p:null)}var B=Object.assign,Y;function Z(p){if(Y===void 0)try{throw Error()}catch(_){var m=_.stack.trim().match(/\n( *(at )?)/);Y=m&&m[1]||""}return`
|
34
|
-
`+Y+p}var j=!1;function re(p,m){if(!p||j)return"";j=!0;var _=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(m)if(m=function(){throw Error()},Object.defineProperty(m.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(m,[])}catch(se){var M=se}Reflect.construct(p,[],m)}else{try{m.call()}catch(se){M=se}p.call(m.prototype)}else{try{throw Error()}catch(se){M=se}p()}}catch(se){if(se&&M&&typeof se.stack=="string"){for(var D=se.stack.split(`
|
35
|
-
`),E=M.stack.split(`
|
36
|
-
`),W=D.length-1,K=E.length-1;1<=W&&0<=K&&D[W]!==E[K];)K--;for(;1<=W&&0<=K;W--,K--)if(D[W]!==E[K]){if(W!==1||K!==1)do if(W--,K--,0>K||D[W]!==E[K]){var Q=`
|
37
|
-
`+D[W].replace(" at new "," at ");return p.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",p.displayName)),Q}while(1<=W&&0<=K);break}}}finally{j=!1,Error.prepareStackTrace=_}return(p=p?p.displayName||p.name:"")?Z(p):""}function ce(p){switch(p.tag){case 5:return Z(p.type);case 16:return Z("Lazy");case 13:return Z("Suspense");case 19:return Z("SuspenseList");case 0:case 2:case 15:return p=re(p.type,!1),p;case 11:return p=re(p.type.render,!1),p;case 1:return p=re(p.type,!0),p;default:return""}}function te(p){if(p==null)return null;if(typeof p=="function")return p.displayName||p.name||null;if(typeof p=="string")return p;switch(p){case A:return"Fragment";case C:return"Portal";case I:return"Profiler";case k:return"StrictMode";case O:return"Suspense";case z:return"SuspenseList"}if(typeof p=="object")switch(p.$$typeof){case R:return(p.displayName||"Context")+".Consumer";case P:return(p._context.displayName||"Context")+".Provider";case L:var m=p.render;return p=p.displayName,p||(p=m.displayName||m.name||"",p=p!==""?"ForwardRef("+p+")":"ForwardRef"),p;case F:return m=p.displayName||null,m!==null?m:te(p.type)||"Memo";case H:m=p._payload,p=p._init;try{return te(p(m))}catch{}}return null}function pe(p){var m=p.type;switch(p.tag){case 24:return"Cache";case 9:return(m.displayName||"Context")+".Consumer";case 10:return(m._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return p=m.render,p=p.displayName||p.name||"",m.displayName||(p!==""?"ForwardRef("+p+")":"ForwardRef");case 7:return"Fragment";case 5:return m;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return te(m);case 8:return m===k?"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 m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m}return null}function ae(p){switch(typeof p){case"boolean":case"number":case"string":case"undefined":return p;case"object":return p;default:return""}}function he(p){var m=p.type;return(p=p.nodeName)&&p.toLowerCase()==="input"&&(m==="checkbox"||m==="radio")}function ve(p){var m=he(p)?"checked":"value",_=Object.getOwnPropertyDescriptor(p.constructor.prototype,m),M=""+p[m];if(!p.hasOwnProperty(m)&&typeof _<"u"&&typeof _.get=="function"&&typeof _.set=="function"){var D=_.get,E=_.set;return Object.defineProperty(p,m,{configurable:!0,get:function(){return D.call(this)},set:function(W){M=""+W,E.call(this,W)}}),Object.defineProperty(p,m,{enumerable:_.enumerable}),{getValue:function(){return M},setValue:function(W){M=""+W},stopTracking:function(){p._valueTracker=null,delete p[m]}}}}function fe(p){p._valueTracker||(p._valueTracker=ve(p))}function ge(p){if(!p)return!1;var m=p._valueTracker;if(!m)return!0;var _=m.getValue(),M="";return p&&(M=he(p)?p.checked?"true":"false":p.value),p=M,p!==_?(m.setValue(p),!0):!1}function Re(p){if(p=p||(typeof document<"u"?document:void 0),typeof p>"u")return null;try{return p.activeElement||p.body}catch{return p.body}}function Ie(p,m){var _=m.checked;return B({},m,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:_??p._wrapperState.initialChecked})}function $e(p,m){var _=m.defaultValue==null?"":m.defaultValue,M=m.checked!=null?m.checked:m.defaultChecked;_=ae(m.value!=null?m.value:_),p._wrapperState={initialChecked:M,initialValue:_,controlled:m.type==="checkbox"||m.type==="radio"?m.checked!=null:m.value!=null}}function dt(p,m){m=m.checked,m!=null&&b(p,"checked",m,!1)}function ct(p,m){dt(p,m);var _=ae(m.value),M=m.type;if(_!=null)M==="number"?(_===0&&p.value===""||p.value!=_)&&(p.value=""+_):p.value!==""+_&&(p.value=""+_);else if(M==="submit"||M==="reset"){p.removeAttribute("value");return}m.hasOwnProperty("value")?At(p,m.type,_):m.hasOwnProperty("defaultValue")&&At(p,m.type,ae(m.defaultValue)),m.checked==null&&m.defaultChecked!=null&&(p.defaultChecked=!!m.defaultChecked)}function bt(p,m,_){if(m.hasOwnProperty("value")||m.hasOwnProperty("defaultValue")){var M=m.type;if(!(M!=="submit"&&M!=="reset"||m.value!==void 0&&m.value!==null))return;m=""+p._wrapperState.initialValue,_||m===p.value||(p.value=m),p.defaultValue=m}_=p.name,_!==""&&(p.name=""),p.defaultChecked=!!p._wrapperState.initialChecked,_!==""&&(p.name=_)}function At(p,m,_){(m!=="number"||Re(p.ownerDocument)!==p)&&(_==null?p.defaultValue=""+p._wrapperState.initialValue:p.defaultValue!==""+_&&(p.defaultValue=""+_))}var _t=Array.isArray;function st(p,m,_,M){if(p=p.options,m){m={};for(var D=0;D<_.length;D++)m["$"+_[D]]=!0;for(_=0;_<p.length;_++)D=m.hasOwnProperty("$"+p[_].value),p[_].selected!==D&&(p[_].selected=D),D&&M&&(p[_].defaultSelected=!0)}else{for(_=""+ae(_),m=null,D=0;D<p.length;D++){if(p[D].value===_){p[D].selected=!0,M&&(p[D].defaultSelected=!0);return}m!==null||p[D].disabled||(m=p[D])}m!==null&&(m.selected=!0)}}function rr(p,m){if(m.dangerouslySetInnerHTML!=null)throw Error(r(91));return B({},m,{value:void 0,defaultValue:void 0,children:""+p._wrapperState.initialValue})}function Gt(p,m){var _=m.value;if(_==null){if(_=m.children,m=m.defaultValue,_!=null){if(m!=null)throw Error(r(92));if(_t(_)){if(1<_.length)throw Error(r(93));_=_[0]}m=_}m==null&&(m=""),_=m}p._wrapperState={initialValue:ae(_)}}function It(p,m){var _=ae(m.value),M=ae(m.defaultValue);_!=null&&(_=""+_,_!==p.value&&(p.value=_),m.defaultValue==null&&p.defaultValue!==_&&(p.defaultValue=_)),M!=null&&(p.defaultValue=""+M)}function le(p){var m=p.textContent;m===p._wrapperState.initialValue&&m!==""&&m!==null&&(p.value=m)}function ye(p){switch(p){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 je(p,m){return p==null||p==="http://www.w3.org/1999/xhtml"?ye(m):p==="http://www.w3.org/2000/svg"&&m==="foreignObject"?"http://www.w3.org/1999/xhtml":p}var Ne,Me=function(p){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(m,_,M,D){MSApp.execUnsafeLocalFunction(function(){return p(m,_,M,D)})}:p}(function(p,m){if(p.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in p)p.innerHTML=m;else{for(Ne=Ne||document.createElement("div"),Ne.innerHTML="<svg>"+m.valueOf().toString()+"</svg>",m=Ne.firstChild;p.firstChild;)p.removeChild(p.firstChild);for(;m.firstChild;)p.appendChild(m.firstChild)}});function Pt(p,m){if(m){var _=p.firstChild;if(_&&_===p.lastChild&&_.nodeType===3){_.nodeValue=m;return}}p.textContent=m}var sr={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},ze=["Webkit","ms","Moz","O"];Object.keys(sr).forEach(function(p){ze.forEach(function(m){m=m+p.charAt(0).toUpperCase()+p.substring(1),sr[m]=sr[p]})});function wt(p,m,_){return m==null||typeof m=="boolean"||m===""?"":_||typeof m!="number"||m===0||sr.hasOwnProperty(p)&&sr[p]?(""+m).trim():m+"px"}function Ht(p,m){p=p.style;for(var _ in m)if(m.hasOwnProperty(_)){var M=_.indexOf("--")===0,D=wt(_,m[_],M);_==="float"&&(_="cssFloat"),M?p.setProperty(_,D):p[_]=D}}var ke=B({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 Ue(p,m){if(m){if(ke[p]&&(m.children!=null||m.dangerouslySetInnerHTML!=null))throw Error(r(137,p));if(m.dangerouslySetInnerHTML!=null){if(m.children!=null)throw Error(r(60));if(typeof m.dangerouslySetInnerHTML!="object"||!("__html"in m.dangerouslySetInnerHTML))throw Error(r(61))}if(m.style!=null&&typeof m.style!="object")throw Error(r(62))}}function ht(p,m){if(p.indexOf("-")===-1)return typeof m.is=="string";switch(p){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 Nt=null;function _r(p){return p=p.target||p.srcElement||window,p.correspondingUseElement&&(p=p.correspondingUseElement),p.nodeType===3?p.parentNode:p}var Hn=null,di=null,ca=null;function Ss(p){if(p=Sh(p)){if(typeof Hn!="function")throw Error(r(280));var m=p.stateNode;m&&(m=xm(m),Hn(p.stateNode,p.type,m))}}function Lo(p){di?ca?ca.push(p):ca=[p]:di=p}function qd(){if(di){var p=di,m=ca;if(ca=di=null,Ss(p),m)for(p=0;p<m.length;p++)Ss(m[p])}}function Xd(p,m){return p(m)}function Zd(){}var Kd=!1;function qg(p,m,_){if(Kd)return p(m,_);Kd=!0;try{return Xd(p,m,_)}finally{Kd=!1,(di!==null||ca!==null)&&(Zd(),qd())}}function zl(p,m){var _=p.stateNode;if(_===null)return null;var M=xm(_);if(M===null)return null;_=M[m];e:switch(m){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(M=!M.disabled)||(p=p.type,M=!(p==="button"||p==="input"||p==="select"||p==="textarea")),p=!M;break e;default:p=!1}if(p)return null;if(_&&typeof _!="function")throw Error(r(231,m,typeof _));return _}var Bl=!1;if(s)try{var Fl={};Object.defineProperty(Fl,"passive",{get:function(){Bl=!0}}),window.addEventListener("test",Fl,Fl),window.removeEventListener("test",Fl,Fl)}catch{Bl=!1}function Vl(p,m,_,M,D,E,W,K,Q){var se=Array.prototype.slice.call(arguments,3);try{m.apply(_,se)}catch(Se){this.onError(Se)}}var Oo=!1,dn=null,Va=!1,Qd=null,$l={onError:function(p){Oo=!0,dn=p}};function Jd(p,m,_,M,D,E,W,K,Q){Oo=!1,dn=null,Vl.apply($l,arguments)}function Xg(p,m,_,M,D,E,W,K,Q){if(Jd.apply(this,arguments),Oo){if(Oo){var se=dn;Oo=!1,dn=null}else throw Error(r(198));Va||(Va=!0,Qd=se)}}function $a(p){var m=p,_=p;if(p.alternate)for(;m.return;)m=m.return;else{p=m;do m=p,(m.flags&4098)!==0&&(_=m.return),p=m.return;while(p)}return m.tag===3?_:null}function eh(p){if(p.tag===13){var m=p.memoizedState;if(m===null&&(p=p.alternate,p!==null&&(m=p.memoizedState)),m!==null)return m.dehydrated}return null}function th(p){if($a(p)!==p)throw Error(r(188))}function NS(p){var m=p.alternate;if(!m){if(m=$a(p),m===null)throw Error(r(188));return m!==p?null:p}for(var _=p,M=m;;){var D=_.return;if(D===null)break;var E=D.alternate;if(E===null){if(M=D.return,M!==null){_=M;continue}break}if(D.child===E.child){for(E=D.child;E;){if(E===_)return th(D),p;if(E===M)return th(D),m;E=E.sibling}throw Error(r(188))}if(_.return!==M.return)_=D,M=E;else{for(var W=!1,K=D.child;K;){if(K===_){W=!0,_=D,M=E;break}if(K===M){W=!0,M=D,_=E;break}K=K.sibling}if(!W){for(K=E.child;K;){if(K===_){W=!0,_=E,M=D;break}if(K===M){W=!0,M=E,_=D;break}K=K.sibling}if(!W)throw Error(r(189))}}if(_.alternate!==M)throw Error(r(190))}if(_.tag!==3)throw Error(r(188));return _.stateNode.current===_?p:m}function Zg(p){return p=NS(p),p!==null?Kg(p):null}function Kg(p){if(p.tag===5||p.tag===6)return p;for(p=p.child;p!==null;){var m=Kg(p);if(m!==null)return m;p=p.sibling}return null}var Qg=t.unstable_scheduleCallback,Rt=t.unstable_cancelCallback,Tn=t.unstable_shouldYield,G7=t.unstable_requestPaint,Ir=t.unstable_now,H7=t.unstable_getCurrentPriorityLevel,zS=t.unstable_ImmediatePriority,MP=t.unstable_UserBlockingPriority,Jg=t.unstable_NormalPriority,W7=t.unstable_LowPriority,kP=t.unstable_IdlePriority,em=null,Ga=null;function j7(p){if(Ga&&typeof Ga.onCommitFiberRoot=="function")try{Ga.onCommitFiberRoot(em,p,void 0,(p.current.flags&128)===128)}catch{}}var fa=Math.clz32?Math.clz32:q7,U7=Math.log,Y7=Math.LN2;function q7(p){return p>>>=0,p===0?32:31-(U7(p)/Y7|0)|0}var tm=64,rm=4194304;function rh(p){switch(p&-p){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 p&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return p&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return p}}function nm(p,m){var _=p.pendingLanes;if(_===0)return 0;var M=0,D=p.suspendedLanes,E=p.pingedLanes,W=_&268435455;if(W!==0){var K=W&~D;K!==0?M=rh(K):(E&=W,E!==0&&(M=rh(E)))}else W=_&~D,W!==0?M=rh(W):E!==0&&(M=rh(E));if(M===0)return 0;if(m!==0&&m!==M&&(m&D)===0&&(D=M&-M,E=m&-m,D>=E||D===16&&(E&4194240)!==0))return m;if((M&4)!==0&&(M|=_&16),m=p.entangledLanes,m!==0)for(p=p.entanglements,m&=M;0<m;)_=31-fa(m),D=1<<_,M|=p[_],m&=~D;return M}function X7(p,m){switch(p){case 1:case 2:case 4:return m+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 m+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 Z7(p,m){for(var _=p.suspendedLanes,M=p.pingedLanes,D=p.expirationTimes,E=p.pendingLanes;0<E;){var W=31-fa(E),K=1<<W,Q=D[W];Q===-1?((K&_)===0||(K&M)!==0)&&(D[W]=X7(K,m)):Q<=m&&(p.expiredLanes|=K),E&=~K}}function BS(p){return p=p.pendingLanes&-1073741825,p!==0?p:p&1073741824?1073741824:0}function IP(){var p=tm;return tm<<=1,(tm&4194240)===0&&(tm=64),p}function FS(p){for(var m=[],_=0;31>_;_++)m.push(p);return m}function nh(p,m,_){p.pendingLanes|=m,m!==536870912&&(p.suspendedLanes=0,p.pingedLanes=0),p=p.eventTimes,m=31-fa(m),p[m]=_}function K7(p,m){var _=p.pendingLanes&~m;p.pendingLanes=m,p.suspendedLanes=0,p.pingedLanes=0,p.expiredLanes&=m,p.mutableReadLanes&=m,p.entangledLanes&=m,m=p.entanglements;var M=p.eventTimes;for(p=p.expirationTimes;0<_;){var D=31-fa(_),E=1<<D;m[D]=0,M[D]=-1,p[D]=-1,_&=~E}}function VS(p,m){var _=p.entangledLanes|=m;for(p=p.entanglements;_;){var M=31-fa(_),D=1<<M;D&m|p[M]&m&&(p[M]|=m),_&=~D}}var nr=0;function PP(p){return p&=-p,1<p?4<p?(p&268435455)!==0?16:536870912:4:1}var DP,$S,RP,EP,LP,GS=!1,im=[],bs=null,_s=null,ws=null,ih=new Map,ah=new Map,Cs=[],Q7="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 OP(p,m){switch(p){case"focusin":case"focusout":bs=null;break;case"dragenter":case"dragleave":_s=null;break;case"mouseover":case"mouseout":ws=null;break;case"pointerover":case"pointerout":ih.delete(m.pointerId);break;case"gotpointercapture":case"lostpointercapture":ah.delete(m.pointerId)}}function oh(p,m,_,M,D,E){return p===null||p.nativeEvent!==E?(p={blockedOn:m,domEventName:_,eventSystemFlags:M,nativeEvent:E,targetContainers:[D]},m!==null&&(m=Sh(m),m!==null&&$S(m)),p):(p.eventSystemFlags|=M,m=p.targetContainers,D!==null&&m.indexOf(D)===-1&&m.push(D),p)}function J7(p,m,_,M,D){switch(m){case"focusin":return bs=oh(bs,p,m,_,M,D),!0;case"dragenter":return _s=oh(_s,p,m,_,M,D),!0;case"mouseover":return ws=oh(ws,p,m,_,M,D),!0;case"pointerover":var E=D.pointerId;return ih.set(E,oh(ih.get(E)||null,p,m,_,M,D)),!0;case"gotpointercapture":return E=D.pointerId,ah.set(E,oh(ah.get(E)||null,p,m,_,M,D)),!0}return!1}function NP(p){var m=Gl(p.target);if(m!==null){var _=$a(m);if(_!==null){if(m=_.tag,m===13){if(m=eh(_),m!==null){p.blockedOn=m,LP(p.priority,function(){RP(_)});return}}else if(m===3&&_.stateNode.current.memoizedState.isDehydrated){p.blockedOn=_.tag===3?_.stateNode.containerInfo:null;return}}}p.blockedOn=null}function am(p){if(p.blockedOn!==null)return!1;for(var m=p.targetContainers;0<m.length;){var _=WS(p.domEventName,p.eventSystemFlags,m[0],p.nativeEvent);if(_===null){_=p.nativeEvent;var M=new _.constructor(_.type,_);Nt=M,_.target.dispatchEvent(M),Nt=null}else return m=Sh(_),m!==null&&$S(m),p.blockedOn=_,!1;m.shift()}return!0}function zP(p,m,_){am(p)&&_.delete(m)}function eU(){GS=!1,bs!==null&&am(bs)&&(bs=null),_s!==null&&am(_s)&&(_s=null),ws!==null&&am(ws)&&(ws=null),ih.forEach(zP),ah.forEach(zP)}function sh(p,m){p.blockedOn===m&&(p.blockedOn=null,GS||(GS=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,eU)))}function lh(p){function m(D){return sh(D,p)}if(0<im.length){sh(im[0],p);for(var _=1;_<im.length;_++){var M=im[_];M.blockedOn===p&&(M.blockedOn=null)}}for(bs!==null&&sh(bs,p),_s!==null&&sh(_s,p),ws!==null&&sh(ws,p),ih.forEach(m),ah.forEach(m),_=0;_<Cs.length;_++)M=Cs[_],M.blockedOn===p&&(M.blockedOn=null);for(;0<Cs.length&&(_=Cs[0],_.blockedOn===null);)NP(_),_.blockedOn===null&&Cs.shift()}var Lc=w.ReactCurrentBatchConfig,om=!0;function tU(p,m,_,M){var D=nr,E=Lc.transition;Lc.transition=null;try{nr=1,HS(p,m,_,M)}finally{nr=D,Lc.transition=E}}function rU(p,m,_,M){var D=nr,E=Lc.transition;Lc.transition=null;try{nr=4,HS(p,m,_,M)}finally{nr=D,Lc.transition=E}}function HS(p,m,_,M){if(om){var D=WS(p,m,_,M);if(D===null)sb(p,m,M,sm,_),OP(p,M);else if(J7(D,p,m,_,M))M.stopPropagation();else if(OP(p,M),m&4&&-1<Q7.indexOf(p)){for(;D!==null;){var E=Sh(D);if(E!==null&&DP(E),E=WS(p,m,_,M),E===null&&sb(p,m,M,sm,_),E===D)break;D=E}D!==null&&M.stopPropagation()}else sb(p,m,M,null,_)}}var sm=null;function WS(p,m,_,M){if(sm=null,p=_r(M),p=Gl(p),p!==null)if(m=$a(p),m===null)p=null;else if(_=m.tag,_===13){if(p=eh(m),p!==null)return p;p=null}else if(_===3){if(m.stateNode.current.memoizedState.isDehydrated)return m.tag===3?m.stateNode.containerInfo:null;p=null}else m!==p&&(p=null);return sm=p,null}function BP(p){switch(p){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(H7()){case zS:return 1;case MP:return 4;case Jg:case W7:return 16;case kP:return 536870912;default:return 16}default:return 16}}var Ts=null,jS=null,lm=null;function FP(){if(lm)return lm;var p,m=jS,_=m.length,M,D="value"in Ts?Ts.value:Ts.textContent,E=D.length;for(p=0;p<_&&m[p]===D[p];p++);var W=_-p;for(M=1;M<=W&&m[_-M]===D[E-M];M++);return lm=D.slice(p,1<M?1-M:void 0)}function um(p){var m=p.keyCode;return"charCode"in p?(p=p.charCode,p===0&&m===13&&(p=13)):p=m,p===10&&(p=13),32<=p||p===13?p:0}function cm(){return!0}function VP(){return!1}function hi(p){function m(_,M,D,E,W){this._reactName=_,this._targetInst=D,this.type=M,this.nativeEvent=E,this.target=W,this.currentTarget=null;for(var K in p)p.hasOwnProperty(K)&&(_=p[K],this[K]=_?_(E):E[K]);return this.isDefaultPrevented=(E.defaultPrevented!=null?E.defaultPrevented:E.returnValue===!1)?cm:VP,this.isPropagationStopped=VP,this}return B(m.prototype,{preventDefault:function(){this.defaultPrevented=!0;var _=this.nativeEvent;_&&(_.preventDefault?_.preventDefault():typeof _.returnValue!="unknown"&&(_.returnValue=!1),this.isDefaultPrevented=cm)},stopPropagation:function(){var _=this.nativeEvent;_&&(_.stopPropagation?_.stopPropagation():typeof _.cancelBubble!="unknown"&&(_.cancelBubble=!0),this.isPropagationStopped=cm)},persist:function(){},isPersistent:cm}),m}var Oc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(p){return p.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},US=hi(Oc),uh=B({},Oc,{view:0,detail:0}),nU=hi(uh),YS,qS,ch,fm=B({},uh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ZS,button:0,buttons:0,relatedTarget:function(p){return p.relatedTarget===void 0?p.fromElement===p.srcElement?p.toElement:p.fromElement:p.relatedTarget},movementX:function(p){return"movementX"in p?p.movementX:(p!==ch&&(ch&&p.type==="mousemove"?(YS=p.screenX-ch.screenX,qS=p.screenY-ch.screenY):qS=YS=0,ch=p),YS)},movementY:function(p){return"movementY"in p?p.movementY:qS}}),$P=hi(fm),iU=B({},fm,{dataTransfer:0}),aU=hi(iU),oU=B({},uh,{relatedTarget:0}),XS=hi(oU),sU=B({},Oc,{animationName:0,elapsedTime:0,pseudoElement:0}),lU=hi(sU),uU=B({},Oc,{clipboardData:function(p){return"clipboardData"in p?p.clipboardData:window.clipboardData}}),cU=hi(uU),fU=B({},Oc,{data:0}),GP=hi(fU),dU={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hU={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"},pU={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vU(p){var m=this.nativeEvent;return m.getModifierState?m.getModifierState(p):(p=pU[p])?!!m[p]:!1}function ZS(){return vU}var gU=B({},uh,{key:function(p){if(p.key){var m=dU[p.key]||p.key;if(m!=="Unidentified")return m}return p.type==="keypress"?(p=um(p),p===13?"Enter":String.fromCharCode(p)):p.type==="keydown"||p.type==="keyup"?hU[p.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ZS,charCode:function(p){return p.type==="keypress"?um(p):0},keyCode:function(p){return p.type==="keydown"||p.type==="keyup"?p.keyCode:0},which:function(p){return p.type==="keypress"?um(p):p.type==="keydown"||p.type==="keyup"?p.keyCode:0}}),mU=hi(gU),yU=B({},fm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),HP=hi(yU),xU=B({},uh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ZS}),SU=hi(xU),bU=B({},Oc,{propertyName:0,elapsedTime:0,pseudoElement:0}),_U=hi(bU),wU=B({},fm,{deltaX:function(p){return"deltaX"in p?p.deltaX:"wheelDeltaX"in p?-p.wheelDeltaX:0},deltaY:function(p){return"deltaY"in p?p.deltaY:"wheelDeltaY"in p?-p.wheelDeltaY:"wheelDelta"in p?-p.wheelDelta:0},deltaZ:0,deltaMode:0}),CU=hi(wU),TU=[9,13,27,32],KS=s&&"CompositionEvent"in window,fh=null;s&&"documentMode"in document&&(fh=document.documentMode);var AU=s&&"TextEvent"in window&&!fh,WP=s&&(!KS||fh&&8<fh&&11>=fh),jP=" ",UP=!1;function YP(p,m){switch(p){case"keyup":return TU.indexOf(m.keyCode)!==-1;case"keydown":return m.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function qP(p){return p=p.detail,typeof p=="object"&&"data"in p?p.data:null}var Nc=!1;function MU(p,m){switch(p){case"compositionend":return qP(m);case"keypress":return m.which!==32?null:(UP=!0,jP);case"textInput":return p=m.data,p===jP&&UP?null:p;default:return null}}function kU(p,m){if(Nc)return p==="compositionend"||!KS&&YP(p,m)?(p=FP(),lm=jS=Ts=null,Nc=!1,p):null;switch(p){case"paste":return null;case"keypress":if(!(m.ctrlKey||m.altKey||m.metaKey)||m.ctrlKey&&m.altKey){if(m.char&&1<m.char.length)return m.char;if(m.which)return String.fromCharCode(m.which)}return null;case"compositionend":return WP&&m.locale!=="ko"?null:m.data;default:return null}}var IU={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 XP(p){var m=p&&p.nodeName&&p.nodeName.toLowerCase();return m==="input"?!!IU[p.type]:m==="textarea"}function ZP(p,m,_,M){Lo(M),m=gm(m,"onChange"),0<m.length&&(_=new US("onChange","change",null,_,M),p.push({event:_,listeners:m}))}var dh=null,hh=null;function PU(p){pD(p,0)}function dm(p){var m=$c(p);if(ge(m))return p}function DU(p,m){if(p==="change")return m}var KP=!1;if(s){var QS;if(s){var JS="oninput"in document;if(!JS){var QP=document.createElement("div");QP.setAttribute("oninput","return;"),JS=typeof QP.oninput=="function"}QS=JS}else QS=!1;KP=QS&&(!document.documentMode||9<document.documentMode)}function JP(){dh&&(dh.detachEvent("onpropertychange",eD),hh=dh=null)}function eD(p){if(p.propertyName==="value"&&dm(hh)){var m=[];ZP(m,hh,p,_r(p)),qg(PU,m)}}function RU(p,m,_){p==="focusin"?(JP(),dh=m,hh=_,dh.attachEvent("onpropertychange",eD)):p==="focusout"&&JP()}function EU(p){if(p==="selectionchange"||p==="keyup"||p==="keydown")return dm(hh)}function LU(p,m){if(p==="click")return dm(m)}function OU(p,m){if(p==="input"||p==="change")return dm(m)}function NU(p,m){return p===m&&(p!==0||1/p===1/m)||p!==p&&m!==m}var da=typeof Object.is=="function"?Object.is:NU;function ph(p,m){if(da(p,m))return!0;if(typeof p!="object"||p===null||typeof m!="object"||m===null)return!1;var _=Object.keys(p),M=Object.keys(m);if(_.length!==M.length)return!1;for(M=0;M<_.length;M++){var D=_[M];if(!l.call(m,D)||!da(p[D],m[D]))return!1}return!0}function tD(p){for(;p&&p.firstChild;)p=p.firstChild;return p}function rD(p,m){var _=tD(p);p=0;for(var M;_;){if(_.nodeType===3){if(M=p+_.textContent.length,p<=m&&M>=m)return{node:_,offset:m-p};p=M}e:{for(;_;){if(_.nextSibling){_=_.nextSibling;break e}_=_.parentNode}_=void 0}_=tD(_)}}function nD(p,m){return p&&m?p===m?!0:p&&p.nodeType===3?!1:m&&m.nodeType===3?nD(p,m.parentNode):"contains"in p?p.contains(m):p.compareDocumentPosition?!!(p.compareDocumentPosition(m)&16):!1:!1}function iD(){for(var p=window,m=Re();m instanceof p.HTMLIFrameElement;){try{var _=typeof m.contentWindow.location.href=="string"}catch{_=!1}if(_)p=m.contentWindow;else break;m=Re(p.document)}return m}function eb(p){var m=p&&p.nodeName&&p.nodeName.toLowerCase();return m&&(m==="input"&&(p.type==="text"||p.type==="search"||p.type==="tel"||p.type==="url"||p.type==="password")||m==="textarea"||p.contentEditable==="true")}function zU(p){var m=iD(),_=p.focusedElem,M=p.selectionRange;if(m!==_&&_&&_.ownerDocument&&nD(_.ownerDocument.documentElement,_)){if(M!==null&&eb(_)){if(m=M.start,p=M.end,p===void 0&&(p=m),"selectionStart"in _)_.selectionStart=m,_.selectionEnd=Math.min(p,_.value.length);else if(p=(m=_.ownerDocument||document)&&m.defaultView||window,p.getSelection){p=p.getSelection();var D=_.textContent.length,E=Math.min(M.start,D);M=M.end===void 0?E:Math.min(M.end,D),!p.extend&&E>M&&(D=M,M=E,E=D),D=rD(_,E);var W=rD(_,M);D&&W&&(p.rangeCount!==1||p.anchorNode!==D.node||p.anchorOffset!==D.offset||p.focusNode!==W.node||p.focusOffset!==W.offset)&&(m=m.createRange(),m.setStart(D.node,D.offset),p.removeAllRanges(),E>M?(p.addRange(m),p.extend(W.node,W.offset)):(m.setEnd(W.node,W.offset),p.addRange(m)))}}for(m=[],p=_;p=p.parentNode;)p.nodeType===1&&m.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<m.length;_++)p=m[_],p.element.scrollLeft=p.left,p.element.scrollTop=p.top}}var BU=s&&"documentMode"in document&&11>=document.documentMode,zc=null,tb=null,vh=null,rb=!1;function aD(p,m,_){var M=_.window===_?_.document:_.nodeType===9?_:_.ownerDocument;rb||zc==null||zc!==Re(M)||(M=zc,"selectionStart"in M&&eb(M)?M={start:M.selectionStart,end:M.selectionEnd}:(M=(M.ownerDocument&&M.ownerDocument.defaultView||window).getSelection(),M={anchorNode:M.anchorNode,anchorOffset:M.anchorOffset,focusNode:M.focusNode,focusOffset:M.focusOffset}),vh&&ph(vh,M)||(vh=M,M=gm(tb,"onSelect"),0<M.length&&(m=new US("onSelect","select",null,m,_),p.push({event:m,listeners:M}),m.target=zc)))}function hm(p,m){var _={};return _[p.toLowerCase()]=m.toLowerCase(),_["Webkit"+p]="webkit"+m,_["Moz"+p]="moz"+m,_}var Bc={animationend:hm("Animation","AnimationEnd"),animationiteration:hm("Animation","AnimationIteration"),animationstart:hm("Animation","AnimationStart"),transitionend:hm("Transition","TransitionEnd")},nb={},oD={};s&&(oD=document.createElement("div").style,"AnimationEvent"in window||(delete Bc.animationend.animation,delete Bc.animationiteration.animation,delete Bc.animationstart.animation),"TransitionEvent"in window||delete Bc.transitionend.transition);function pm(p){if(nb[p])return nb[p];if(!Bc[p])return p;var m=Bc[p],_;for(_ in m)if(m.hasOwnProperty(_)&&_ in oD)return nb[p]=m[_];return p}var sD=pm("animationend"),lD=pm("animationiteration"),uD=pm("animationstart"),cD=pm("transitionend"),fD=new Map,dD="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 As(p,m){fD.set(p,m),a(m,[p])}for(var ib=0;ib<dD.length;ib++){var ab=dD[ib],FU=ab.toLowerCase(),VU=ab[0].toUpperCase()+ab.slice(1);As(FU,"on"+VU)}As(sD,"onAnimationEnd"),As(lD,"onAnimationIteration"),As(uD,"onAnimationStart"),As("dblclick","onDoubleClick"),As("focusin","onFocus"),As("focusout","onBlur"),As(cD,"onTransitionEnd"),o("onMouseEnter",["mouseout","mouseover"]),o("onMouseLeave",["mouseout","mouseover"]),o("onPointerEnter",["pointerout","pointerover"]),o("onPointerLeave",["pointerout","pointerover"]),a("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),a("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),a("onBeforeInput",["compositionend","keypress","textInput","paste"]),a("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),a("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gh="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(" "),$U=new Set("cancel close invalid load scroll toggle".split(" ").concat(gh));function hD(p,m,_){var M=p.type||"unknown-event";p.currentTarget=_,Xg(M,m,void 0,p),p.currentTarget=null}function pD(p,m){m=(m&4)!==0;for(var _=0;_<p.length;_++){var M=p[_],D=M.event;M=M.listeners;e:{var E=void 0;if(m)for(var W=M.length-1;0<=W;W--){var K=M[W],Q=K.instance,se=K.currentTarget;if(K=K.listener,Q!==E&&D.isPropagationStopped())break e;hD(D,K,se),E=Q}else for(W=0;W<M.length;W++){if(K=M[W],Q=K.instance,se=K.currentTarget,K=K.listener,Q!==E&&D.isPropagationStopped())break e;hD(D,K,se),E=Q}}}if(Va)throw p=Qd,Va=!1,Qd=null,p}function hr(p,m){var _=m[hb];_===void 0&&(_=m[hb]=new Set);var M=p+"__bubble";_.has(M)||(vD(m,p,2,!1),_.add(M))}function ob(p,m,_){var M=0;m&&(M|=4),vD(_,p,M,m)}var vm="_reactListening"+Math.random().toString(36).slice(2);function mh(p){if(!p[vm]){p[vm]=!0,n.forEach(function(_){_!=="selectionchange"&&($U.has(_)||ob(_,!1,p),ob(_,!0,p))});var m=p.nodeType===9?p:p.ownerDocument;m===null||m[vm]||(m[vm]=!0,ob("selectionchange",!1,m))}}function vD(p,m,_,M){switch(BP(m)){case 1:var D=tU;break;case 4:D=rU;break;default:D=HS}_=D.bind(null,m,_,p),D=void 0,!Bl||m!=="touchstart"&&m!=="touchmove"&&m!=="wheel"||(D=!0),M?D!==void 0?p.addEventListener(m,_,{capture:!0,passive:D}):p.addEventListener(m,_,!0):D!==void 0?p.addEventListener(m,_,{passive:D}):p.addEventListener(m,_,!1)}function sb(p,m,_,M,D){var E=M;if((m&1)===0&&(m&2)===0&&M!==null)e:for(;;){if(M===null)return;var W=M.tag;if(W===3||W===4){var K=M.stateNode.containerInfo;if(K===D||K.nodeType===8&&K.parentNode===D)break;if(W===4)for(W=M.return;W!==null;){var Q=W.tag;if((Q===3||Q===4)&&(Q=W.stateNode.containerInfo,Q===D||Q.nodeType===8&&Q.parentNode===D))return;W=W.return}for(;K!==null;){if(W=Gl(K),W===null)return;if(Q=W.tag,Q===5||Q===6){M=E=W;continue e}K=K.parentNode}}M=M.return}qg(function(){var se=E,Se=_r(_),_e=[];e:{var me=fD.get(p);if(me!==void 0){var Fe=US,Ye=p;switch(p){case"keypress":if(um(_)===0)break e;case"keydown":case"keyup":Fe=mU;break;case"focusin":Ye="focus",Fe=XS;break;case"focusout":Ye="blur",Fe=XS;break;case"beforeblur":case"afterblur":Fe=XS;break;case"click":if(_.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Fe=$P;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Fe=aU;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Fe=SU;break;case sD:case lD:case uD:Fe=lU;break;case cD:Fe=_U;break;case"scroll":Fe=nU;break;case"wheel":Fe=CU;break;case"copy":case"cut":case"paste":Fe=cU;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Fe=HP}var Xe=(m&4)!==0,Pr=!Xe&&p==="scroll",ne=Xe?me!==null?me+"Capture":null:me;Xe=[];for(var ee=se,ie;ee!==null;){ie=ee;var Te=ie.stateNode;if(ie.tag===5&&Te!==null&&(ie=Te,ne!==null&&(Te=zl(ee,ne),Te!=null&&Xe.push(yh(ee,Te,ie)))),Pr)break;ee=ee.return}0<Xe.length&&(me=new Fe(me,Ye,null,_,Se),_e.push({event:me,listeners:Xe}))}}if((m&7)===0){e:{if(me=p==="mouseover"||p==="pointerover",Fe=p==="mouseout"||p==="pointerout",me&&_!==Nt&&(Ye=_.relatedTarget||_.fromElement)&&(Gl(Ye)||Ye[No]))break e;if((Fe||me)&&(me=Se.window===Se?Se:(me=Se.ownerDocument)?me.defaultView||me.parentWindow:window,Fe?(Ye=_.relatedTarget||_.toElement,Fe=se,Ye=Ye?Gl(Ye):null,Ye!==null&&(Pr=$a(Ye),Ye!==Pr||Ye.tag!==5&&Ye.tag!==6)&&(Ye=null)):(Fe=null,Ye=se),Fe!==Ye)){if(Xe=$P,Te="onMouseLeave",ne="onMouseEnter",ee="mouse",(p==="pointerout"||p==="pointerover")&&(Xe=HP,Te="onPointerLeave",ne="onPointerEnter",ee="pointer"),Pr=Fe==null?me:$c(Fe),ie=Ye==null?me:$c(Ye),me=new Xe(Te,ee+"leave",Fe,_,Se),me.target=Pr,me.relatedTarget=ie,Te=null,Gl(Se)===se&&(Xe=new Xe(ne,ee+"enter",Ye,_,Se),Xe.target=ie,Xe.relatedTarget=Pr,Te=Xe),Pr=Te,Fe&&Ye)t:{for(Xe=Fe,ne=Ye,ee=0,ie=Xe;ie;ie=Fc(ie))ee++;for(ie=0,Te=ne;Te;Te=Fc(Te))ie++;for(;0<ee-ie;)Xe=Fc(Xe),ee--;for(;0<ie-ee;)ne=Fc(ne),ie--;for(;ee--;){if(Xe===ne||ne!==null&&Xe===ne.alternate)break t;Xe=Fc(Xe),ne=Fc(ne)}Xe=null}else Xe=null;Fe!==null&&gD(_e,me,Fe,Xe,!1),Ye!==null&&Pr!==null&&gD(_e,Pr,Ye,Xe,!0)}}e:{if(me=se?$c(se):window,Fe=me.nodeName&&me.nodeName.toLowerCase(),Fe==="select"||Fe==="input"&&me.type==="file")var Ke=DU;else if(XP(me))if(KP)Ke=OU;else{Ke=EU;var lt=RU}else(Fe=me.nodeName)&&Fe.toLowerCase()==="input"&&(me.type==="checkbox"||me.type==="radio")&&(Ke=LU);if(Ke&&(Ke=Ke(p,se))){ZP(_e,Ke,_,Se);break e}lt&<(p,me,se),p==="focusout"&&(lt=me._wrapperState)&<.controlled&&me.type==="number"&&At(me,"number",me.value)}switch(lt=se?$c(se):window,p){case"focusin":(XP(lt)||lt.contentEditable==="true")&&(zc=lt,tb=se,vh=null);break;case"focusout":vh=tb=zc=null;break;case"mousedown":rb=!0;break;case"contextmenu":case"mouseup":case"dragend":rb=!1,aD(_e,_,Se);break;case"selectionchange":if(BU)break;case"keydown":case"keyup":aD(_e,_,Se)}var ut;if(KS)e:{switch(p){case"compositionstart":var gt="onCompositionStart";break e;case"compositionend":gt="onCompositionEnd";break e;case"compositionupdate":gt="onCompositionUpdate";break e}gt=void 0}else Nc?YP(p,_)&&(gt="onCompositionEnd"):p==="keydown"&&_.keyCode===229&&(gt="onCompositionStart");gt&&(WP&&_.locale!=="ko"&&(Nc||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&Nc&&(ut=FP()):(Ts=Se,jS="value"in Ts?Ts.value:Ts.textContent,Nc=!0)),lt=gm(se,gt),0<lt.length&&(gt=new GP(gt,p,null,_,Se),_e.push({event:gt,listeners:lt}),ut?gt.data=ut:(ut=qP(_),ut!==null&&(gt.data=ut)))),(ut=AU?MU(p,_):kU(p,_))&&(se=gm(se,"onBeforeInput"),0<se.length&&(Se=new GP("onBeforeInput","beforeinput",null,_,Se),_e.push({event:Se,listeners:se}),Se.data=ut))}pD(_e,m)})}function yh(p,m,_){return{instance:p,listener:m,currentTarget:_}}function gm(p,m){for(var _=m+"Capture",M=[];p!==null;){var D=p,E=D.stateNode;D.tag===5&&E!==null&&(D=E,E=zl(p,_),E!=null&&M.unshift(yh(p,E,D)),E=zl(p,m),E!=null&&M.push(yh(p,E,D))),p=p.return}return M}function Fc(p){if(p===null)return null;do p=p.return;while(p&&p.tag!==5);return p||null}function gD(p,m,_,M,D){for(var E=m._reactName,W=[];_!==null&&_!==M;){var K=_,Q=K.alternate,se=K.stateNode;if(Q!==null&&Q===M)break;K.tag===5&&se!==null&&(K=se,D?(Q=zl(_,E),Q!=null&&W.unshift(yh(_,Q,K))):D||(Q=zl(_,E),Q!=null&&W.push(yh(_,Q,K)))),_=_.return}W.length!==0&&p.push({event:m,listeners:W})}var GU=/\r\n?/g,HU=/\u0000|\uFFFD/g;function mD(p){return(typeof p=="string"?p:""+p).replace(GU,`
|
38
|
-
`).replace(HU,"")}function mm(p,m,_){if(m=mD(m),mD(p)!==m&&_)throw Error(r(425))}function ym(){}var lb=null,ub=null;function cb(p,m){return p==="textarea"||p==="noscript"||typeof m.children=="string"||typeof m.children=="number"||typeof m.dangerouslySetInnerHTML=="object"&&m.dangerouslySetInnerHTML!==null&&m.dangerouslySetInnerHTML.__html!=null}var fb=typeof setTimeout=="function"?setTimeout:void 0,WU=typeof clearTimeout=="function"?clearTimeout:void 0,yD=typeof Promise=="function"?Promise:void 0,jU=typeof queueMicrotask=="function"?queueMicrotask:typeof yD<"u"?function(p){return yD.resolve(null).then(p).catch(UU)}:fb;function UU(p){setTimeout(function(){throw p})}function db(p,m){var _=m,M=0;do{var D=_.nextSibling;if(p.removeChild(_),D&&D.nodeType===8)if(_=D.data,_==="/$"){if(M===0){p.removeChild(D),lh(m);return}M--}else _!=="$"&&_!=="$?"&&_!=="$!"||M++;_=D}while(_);lh(m)}function Ms(p){for(;p!=null;p=p.nextSibling){var m=p.nodeType;if(m===1||m===3)break;if(m===8){if(m=p.data,m==="$"||m==="$!"||m==="$?")break;if(m==="/$")return null}}return p}function xD(p){p=p.previousSibling;for(var m=0;p;){if(p.nodeType===8){var _=p.data;if(_==="$"||_==="$!"||_==="$?"){if(m===0)return p;m--}else _==="/$"&&m++}p=p.previousSibling}return null}var Vc=Math.random().toString(36).slice(2),Ha="__reactFiber$"+Vc,xh="__reactProps$"+Vc,No="__reactContainer$"+Vc,hb="__reactEvents$"+Vc,YU="__reactListeners$"+Vc,qU="__reactHandles$"+Vc;function Gl(p){var m=p[Ha];if(m)return m;for(var _=p.parentNode;_;){if(m=_[No]||_[Ha]){if(_=m.alternate,m.child!==null||_!==null&&_.child!==null)for(p=xD(p);p!==null;){if(_=p[Ha])return _;p=xD(p)}return m}p=_,_=p.parentNode}return null}function Sh(p){return p=p[Ha]||p[No],!p||p.tag!==5&&p.tag!==6&&p.tag!==13&&p.tag!==3?null:p}function $c(p){if(p.tag===5||p.tag===6)return p.stateNode;throw Error(r(33))}function xm(p){return p[xh]||null}var pb=[],Gc=-1;function ks(p){return{current:p}}function pr(p){0>Gc||(p.current=pb[Gc],pb[Gc]=null,Gc--)}function ur(p,m){Gc++,pb[Gc]=p.current,p.current=m}var Is={},hn=ks(Is),Wn=ks(!1),Hl=Is;function Hc(p,m){var _=p.type.contextTypes;if(!_)return Is;var M=p.stateNode;if(M&&M.__reactInternalMemoizedUnmaskedChildContext===m)return M.__reactInternalMemoizedMaskedChildContext;var D={},E;for(E in _)D[E]=m[E];return M&&(p=p.stateNode,p.__reactInternalMemoizedUnmaskedChildContext=m,p.__reactInternalMemoizedMaskedChildContext=D),D}function jn(p){return p=p.childContextTypes,p!=null}function Sm(){pr(Wn),pr(hn)}function SD(p,m,_){if(hn.current!==Is)throw Error(r(168));ur(hn,m),ur(Wn,_)}function bD(p,m,_){var M=p.stateNode;if(m=m.childContextTypes,typeof M.getChildContext!="function")return _;M=M.getChildContext();for(var D in M)if(!(D in m))throw Error(r(108,pe(p)||"Unknown",D));return B({},_,M)}function bm(p){return p=(p=p.stateNode)&&p.__reactInternalMemoizedMergedChildContext||Is,Hl=hn.current,ur(hn,p),ur(Wn,Wn.current),!0}function _D(p,m,_){var M=p.stateNode;if(!M)throw Error(r(169));_?(p=bD(p,m,Hl),M.__reactInternalMemoizedMergedChildContext=p,pr(Wn),pr(hn),ur(hn,p)):pr(Wn),ur(Wn,_)}var zo=null,_m=!1,vb=!1;function wD(p){zo===null?zo=[p]:zo.push(p)}function XU(p){_m=!0,wD(p)}function Ps(){if(!vb&&zo!==null){vb=!0;var p=0,m=nr;try{var _=zo;for(nr=1;p<_.length;p++){var M=_[p];do M=M(!0);while(M!==null)}zo=null,_m=!1}catch(D){throw zo!==null&&(zo=zo.slice(p+1)),Qg(zS,Ps),D}finally{nr=m,vb=!1}}return null}var Wc=[],jc=0,wm=null,Cm=0,Pi=[],Di=0,Wl=null,Bo=1,Fo="";function jl(p,m){Wc[jc++]=Cm,Wc[jc++]=wm,wm=p,Cm=m}function CD(p,m,_){Pi[Di++]=Bo,Pi[Di++]=Fo,Pi[Di++]=Wl,Wl=p;var M=Bo;p=Fo;var D=32-fa(M)-1;M&=~(1<<D),_+=1;var E=32-fa(m)+D;if(30<E){var W=D-D%5;E=(M&(1<<W)-1).toString(32),M>>=W,D-=W,Bo=1<<32-fa(m)+D|_<<D|M,Fo=E+p}else Bo=1<<E|_<<D|M,Fo=p}function gb(p){p.return!==null&&(jl(p,1),CD(p,1,0))}function mb(p){for(;p===wm;)wm=Wc[--jc],Wc[jc]=null,Cm=Wc[--jc],Wc[jc]=null;for(;p===Wl;)Wl=Pi[--Di],Pi[Di]=null,Fo=Pi[--Di],Pi[Di]=null,Bo=Pi[--Di],Pi[Di]=null}var pi=null,vi=null,vr=!1,ha=null;function TD(p,m){var _=Oi(5,null,null,0);_.elementType="DELETED",_.stateNode=m,_.return=p,m=p.deletions,m===null?(p.deletions=[_],p.flags|=16):m.push(_)}function AD(p,m){switch(p.tag){case 5:var _=p.type;return m=m.nodeType!==1||_.toLowerCase()!==m.nodeName.toLowerCase()?null:m,m!==null?(p.stateNode=m,pi=p,vi=Ms(m.firstChild),!0):!1;case 6:return m=p.pendingProps===""||m.nodeType!==3?null:m,m!==null?(p.stateNode=m,pi=p,vi=null,!0):!1;case 13:return m=m.nodeType!==8?null:m,m!==null?(_=Wl!==null?{id:Bo,overflow:Fo}:null,p.memoizedState={dehydrated:m,treeContext:_,retryLane:1073741824},_=Oi(18,null,null,0),_.stateNode=m,_.return=p,p.child=_,pi=p,vi=null,!0):!1;default:return!1}}function yb(p){return(p.mode&1)!==0&&(p.flags&128)===0}function xb(p){if(vr){var m=vi;if(m){var _=m;if(!AD(p,m)){if(yb(p))throw Error(r(418));m=Ms(_.nextSibling);var M=pi;m&&AD(p,m)?TD(M,_):(p.flags=p.flags&-4097|2,vr=!1,pi=p)}}else{if(yb(p))throw Error(r(418));p.flags=p.flags&-4097|2,vr=!1,pi=p}}}function MD(p){for(p=p.return;p!==null&&p.tag!==5&&p.tag!==3&&p.tag!==13;)p=p.return;pi=p}function Tm(p){if(p!==pi)return!1;if(!vr)return MD(p),vr=!0,!1;var m;if((m=p.tag!==3)&&!(m=p.tag!==5)&&(m=p.type,m=m!=="head"&&m!=="body"&&!cb(p.type,p.memoizedProps)),m&&(m=vi)){if(yb(p))throw kD(),Error(r(418));for(;m;)TD(p,m),m=Ms(m.nextSibling)}if(MD(p),p.tag===13){if(p=p.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(r(317));e:{for(p=p.nextSibling,m=0;p;){if(p.nodeType===8){var _=p.data;if(_==="/$"){if(m===0){vi=Ms(p.nextSibling);break e}m--}else _!=="$"&&_!=="$!"&&_!=="$?"||m++}p=p.nextSibling}vi=null}}else vi=pi?Ms(p.stateNode.nextSibling):null;return!0}function kD(){for(var p=vi;p;)p=Ms(p.nextSibling)}function Uc(){vi=pi=null,vr=!1}function Sb(p){ha===null?ha=[p]:ha.push(p)}var ZU=w.ReactCurrentBatchConfig;function bh(p,m,_){if(p=_.ref,p!==null&&typeof p!="function"&&typeof p!="object"){if(_._owner){if(_=_._owner,_){if(_.tag!==1)throw Error(r(309));var M=_.stateNode}if(!M)throw Error(r(147,p));var D=M,E=""+p;return m!==null&&m.ref!==null&&typeof m.ref=="function"&&m.ref._stringRef===E?m.ref:(m=function(W){var K=D.refs;W===null?delete K[E]:K[E]=W},m._stringRef=E,m)}if(typeof p!="string")throw Error(r(284));if(!_._owner)throw Error(r(290,p))}return p}function Am(p,m){throw p=Object.prototype.toString.call(m),Error(r(31,p==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":p))}function ID(p){var m=p._init;return m(p._payload)}function PD(p){function m(ne,ee){if(p){var ie=ne.deletions;ie===null?(ne.deletions=[ee],ne.flags|=16):ie.push(ee)}}function _(ne,ee){if(!p)return null;for(;ee!==null;)m(ne,ee),ee=ee.sibling;return null}function M(ne,ee){for(ne=new Map;ee!==null;)ee.key!==null?ne.set(ee.key,ee):ne.set(ee.index,ee),ee=ee.sibling;return ne}function D(ne,ee){return ne=Bs(ne,ee),ne.index=0,ne.sibling=null,ne}function E(ne,ee,ie){return ne.index=ie,p?(ie=ne.alternate,ie!==null?(ie=ie.index,ie<ee?(ne.flags|=2,ee):ie):(ne.flags|=2,ee)):(ne.flags|=1048576,ee)}function W(ne){return p&&ne.alternate===null&&(ne.flags|=2),ne}function K(ne,ee,ie,Te){return ee===null||ee.tag!==6?(ee=f_(ie,ne.mode,Te),ee.return=ne,ee):(ee=D(ee,ie),ee.return=ne,ee)}function Q(ne,ee,ie,Te){var Ke=ie.type;return Ke===A?Se(ne,ee,ie.props.children,Te,ie.key):ee!==null&&(ee.elementType===Ke||typeof Ke=="object"&&Ke!==null&&Ke.$$typeof===H&&ID(Ke)===ee.type)?(Te=D(ee,ie.props),Te.ref=bh(ne,ee,ie),Te.return=ne,Te):(Te=Zm(ie.type,ie.key,ie.props,null,ne.mode,Te),Te.ref=bh(ne,ee,ie),Te.return=ne,Te)}function se(ne,ee,ie,Te){return ee===null||ee.tag!==4||ee.stateNode.containerInfo!==ie.containerInfo||ee.stateNode.implementation!==ie.implementation?(ee=d_(ie,ne.mode,Te),ee.return=ne,ee):(ee=D(ee,ie.children||[]),ee.return=ne,ee)}function Se(ne,ee,ie,Te,Ke){return ee===null||ee.tag!==7?(ee=Jl(ie,ne.mode,Te,Ke),ee.return=ne,ee):(ee=D(ee,ie),ee.return=ne,ee)}function _e(ne,ee,ie){if(typeof ee=="string"&&ee!==""||typeof ee=="number")return ee=f_(""+ee,ne.mode,ie),ee.return=ne,ee;if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case T:return ie=Zm(ee.type,ee.key,ee.props,null,ne.mode,ie),ie.ref=bh(ne,null,ee),ie.return=ne,ie;case C:return ee=d_(ee,ne.mode,ie),ee.return=ne,ee;case H:var Te=ee._init;return _e(ne,Te(ee._payload),ie)}if(_t(ee)||X(ee))return ee=Jl(ee,ne.mode,ie,null),ee.return=ne,ee;Am(ne,ee)}return null}function me(ne,ee,ie,Te){var Ke=ee!==null?ee.key:null;if(typeof ie=="string"&&ie!==""||typeof ie=="number")return Ke!==null?null:K(ne,ee,""+ie,Te);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case T:return ie.key===Ke?Q(ne,ee,ie,Te):null;case C:return ie.key===Ke?se(ne,ee,ie,Te):null;case H:return Ke=ie._init,me(ne,ee,Ke(ie._payload),Te)}if(_t(ie)||X(ie))return Ke!==null?null:Se(ne,ee,ie,Te,null);Am(ne,ie)}return null}function Fe(ne,ee,ie,Te,Ke){if(typeof Te=="string"&&Te!==""||typeof Te=="number")return ne=ne.get(ie)||null,K(ee,ne,""+Te,Ke);if(typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case T:return ne=ne.get(Te.key===null?ie:Te.key)||null,Q(ee,ne,Te,Ke);case C:return ne=ne.get(Te.key===null?ie:Te.key)||null,se(ee,ne,Te,Ke);case H:var lt=Te._init;return Fe(ne,ee,ie,lt(Te._payload),Ke)}if(_t(Te)||X(Te))return ne=ne.get(ie)||null,Se(ee,ne,Te,Ke,null);Am(ee,Te)}return null}function Ye(ne,ee,ie,Te){for(var Ke=null,lt=null,ut=ee,gt=ee=0,Zr=null;ut!==null&><ie.length;gt++){ut.index>gt?(Zr=ut,ut=null):Zr=ut.sibling;var Ut=me(ne,ut,ie[gt],Te);if(Ut===null){ut===null&&(ut=Zr);break}p&&ut&&Ut.alternate===null&&m(ne,ut),ee=E(Ut,ee,gt),lt===null?Ke=Ut:lt.sibling=Ut,lt=Ut,ut=Zr}if(gt===ie.length)return _(ne,ut),vr&&jl(ne,gt),Ke;if(ut===null){for(;gt<ie.length;gt++)ut=_e(ne,ie[gt],Te),ut!==null&&(ee=E(ut,ee,gt),lt===null?Ke=ut:lt.sibling=ut,lt=ut);return vr&&jl(ne,gt),Ke}for(ut=M(ne,ut);gt<ie.length;gt++)Zr=Fe(ut,ne,gt,ie[gt],Te),Zr!==null&&(p&&Zr.alternate!==null&&ut.delete(Zr.key===null?gt:Zr.key),ee=E(Zr,ee,gt),lt===null?Ke=Zr:lt.sibling=Zr,lt=Zr);return p&&ut.forEach(function(Fs){return m(ne,Fs)}),vr&&jl(ne,gt),Ke}function Xe(ne,ee,ie,Te){var Ke=X(ie);if(typeof Ke!="function")throw Error(r(150));if(ie=Ke.call(ie),ie==null)throw Error(r(151));for(var lt=Ke=null,ut=ee,gt=ee=0,Zr=null,Ut=ie.next();ut!==null&&!Ut.done;gt++,Ut=ie.next()){ut.index>gt?(Zr=ut,ut=null):Zr=ut.sibling;var Fs=me(ne,ut,Ut.value,Te);if(Fs===null){ut===null&&(ut=Zr);break}p&&ut&&Fs.alternate===null&&m(ne,ut),ee=E(Fs,ee,gt),lt===null?Ke=Fs:lt.sibling=Fs,lt=Fs,ut=Zr}if(Ut.done)return _(ne,ut),vr&&jl(ne,gt),Ke;if(ut===null){for(;!Ut.done;gt++,Ut=ie.next())Ut=_e(ne,Ut.value,Te),Ut!==null&&(ee=E(Ut,ee,gt),lt===null?Ke=Ut:lt.sibling=Ut,lt=Ut);return vr&&jl(ne,gt),Ke}for(ut=M(ne,ut);!Ut.done;gt++,Ut=ie.next())Ut=Fe(ut,ne,gt,Ut.value,Te),Ut!==null&&(p&&Ut.alternate!==null&&ut.delete(Ut.key===null?gt:Ut.key),ee=E(Ut,ee,gt),lt===null?Ke=Ut:lt.sibling=Ut,lt=Ut);return p&&ut.forEach(function(IY){return m(ne,IY)}),vr&&jl(ne,gt),Ke}function Pr(ne,ee,ie,Te){if(typeof ie=="object"&&ie!==null&&ie.type===A&&ie.key===null&&(ie=ie.props.children),typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case T:e:{for(var Ke=ie.key,lt=ee;lt!==null;){if(lt.key===Ke){if(Ke=ie.type,Ke===A){if(lt.tag===7){_(ne,lt.sibling),ee=D(lt,ie.props.children),ee.return=ne,ne=ee;break e}}else if(lt.elementType===Ke||typeof Ke=="object"&&Ke!==null&&Ke.$$typeof===H&&ID(Ke)===lt.type){_(ne,lt.sibling),ee=D(lt,ie.props),ee.ref=bh(ne,lt,ie),ee.return=ne,ne=ee;break e}_(ne,lt);break}else m(ne,lt);lt=lt.sibling}ie.type===A?(ee=Jl(ie.props.children,ne.mode,Te,ie.key),ee.return=ne,ne=ee):(Te=Zm(ie.type,ie.key,ie.props,null,ne.mode,Te),Te.ref=bh(ne,ee,ie),Te.return=ne,ne=Te)}return W(ne);case C:e:{for(lt=ie.key;ee!==null;){if(ee.key===lt)if(ee.tag===4&&ee.stateNode.containerInfo===ie.containerInfo&&ee.stateNode.implementation===ie.implementation){_(ne,ee.sibling),ee=D(ee,ie.children||[]),ee.return=ne,ne=ee;break e}else{_(ne,ee);break}else m(ne,ee);ee=ee.sibling}ee=d_(ie,ne.mode,Te),ee.return=ne,ne=ee}return W(ne);case H:return lt=ie._init,Pr(ne,ee,lt(ie._payload),Te)}if(_t(ie))return Ye(ne,ee,ie,Te);if(X(ie))return Xe(ne,ee,ie,Te);Am(ne,ie)}return typeof ie=="string"&&ie!==""||typeof ie=="number"?(ie=""+ie,ee!==null&&ee.tag===6?(_(ne,ee.sibling),ee=D(ee,ie),ee.return=ne,ne=ee):(_(ne,ee),ee=f_(ie,ne.mode,Te),ee.return=ne,ne=ee),W(ne)):_(ne,ee)}return Pr}var Yc=PD(!0),DD=PD(!1),Mm=ks(null),km=null,qc=null,bb=null;function _b(){bb=qc=km=null}function wb(p){var m=Mm.current;pr(Mm),p._currentValue=m}function Cb(p,m,_){for(;p!==null;){var M=p.alternate;if((p.childLanes&m)!==m?(p.childLanes|=m,M!==null&&(M.childLanes|=m)):M!==null&&(M.childLanes&m)!==m&&(M.childLanes|=m),p===_)break;p=p.return}}function Xc(p,m){km=p,bb=qc=null,p=p.dependencies,p!==null&&p.firstContext!==null&&((p.lanes&m)!==0&&(Un=!0),p.firstContext=null)}function Ri(p){var m=p._currentValue;if(bb!==p)if(p={context:p,memoizedValue:m,next:null},qc===null){if(km===null)throw Error(r(308));qc=p,km.dependencies={lanes:0,firstContext:p}}else qc=qc.next=p;return m}var Ul=null;function Tb(p){Ul===null?Ul=[p]:Ul.push(p)}function RD(p,m,_,M){var D=m.interleaved;return D===null?(_.next=_,Tb(m)):(_.next=D.next,D.next=_),m.interleaved=_,Vo(p,M)}function Vo(p,m){p.lanes|=m;var _=p.alternate;for(_!==null&&(_.lanes|=m),_=p,p=p.return;p!==null;)p.childLanes|=m,_=p.alternate,_!==null&&(_.childLanes|=m),_=p,p=p.return;return _.tag===3?_.stateNode:null}var Ds=!1;function Ab(p){p.updateQueue={baseState:p.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ED(p,m){p=p.updateQueue,m.updateQueue===p&&(m.updateQueue={baseState:p.baseState,firstBaseUpdate:p.firstBaseUpdate,lastBaseUpdate:p.lastBaseUpdate,shared:p.shared,effects:p.effects})}function $o(p,m){return{eventTime:p,lane:m,tag:0,payload:null,callback:null,next:null}}function Rs(p,m,_){var M=p.updateQueue;if(M===null)return null;if(M=M.shared,(Wt&2)!==0){var D=M.pending;return D===null?m.next=m:(m.next=D.next,D.next=m),M.pending=m,Vo(p,_)}return D=M.interleaved,D===null?(m.next=m,Tb(M)):(m.next=D.next,D.next=m),M.interleaved=m,Vo(p,_)}function Im(p,m,_){if(m=m.updateQueue,m!==null&&(m=m.shared,(_&4194240)!==0)){var M=m.lanes;M&=p.pendingLanes,_|=M,m.lanes=_,VS(p,_)}}function LD(p,m){var _=p.updateQueue,M=p.alternate;if(M!==null&&(M=M.updateQueue,_===M)){var D=null,E=null;if(_=_.firstBaseUpdate,_!==null){do{var W={eventTime:_.eventTime,lane:_.lane,tag:_.tag,payload:_.payload,callback:_.callback,next:null};E===null?D=E=W:E=E.next=W,_=_.next}while(_!==null);E===null?D=E=m:E=E.next=m}else D=E=m;_={baseState:M.baseState,firstBaseUpdate:D,lastBaseUpdate:E,shared:M.shared,effects:M.effects},p.updateQueue=_;return}p=_.lastBaseUpdate,p===null?_.firstBaseUpdate=m:p.next=m,_.lastBaseUpdate=m}function Pm(p,m,_,M){var D=p.updateQueue;Ds=!1;var E=D.firstBaseUpdate,W=D.lastBaseUpdate,K=D.shared.pending;if(K!==null){D.shared.pending=null;var Q=K,se=Q.next;Q.next=null,W===null?E=se:W.next=se,W=Q;var Se=p.alternate;Se!==null&&(Se=Se.updateQueue,K=Se.lastBaseUpdate,K!==W&&(K===null?Se.firstBaseUpdate=se:K.next=se,Se.lastBaseUpdate=Q))}if(E!==null){var _e=D.baseState;W=0,Se=se=Q=null,K=E;do{var me=K.lane,Fe=K.eventTime;if((M&me)===me){Se!==null&&(Se=Se.next={eventTime:Fe,lane:0,tag:K.tag,payload:K.payload,callback:K.callback,next:null});e:{var Ye=p,Xe=K;switch(me=m,Fe=_,Xe.tag){case 1:if(Ye=Xe.payload,typeof Ye=="function"){_e=Ye.call(Fe,_e,me);break e}_e=Ye;break e;case 3:Ye.flags=Ye.flags&-65537|128;case 0:if(Ye=Xe.payload,me=typeof Ye=="function"?Ye.call(Fe,_e,me):Ye,me==null)break e;_e=B({},_e,me);break e;case 2:Ds=!0}}K.callback!==null&&K.lane!==0&&(p.flags|=64,me=D.effects,me===null?D.effects=[K]:me.push(K))}else Fe={eventTime:Fe,lane:me,tag:K.tag,payload:K.payload,callback:K.callback,next:null},Se===null?(se=Se=Fe,Q=_e):Se=Se.next=Fe,W|=me;if(K=K.next,K===null){if(K=D.shared.pending,K===null)break;me=K,K=me.next,me.next=null,D.lastBaseUpdate=me,D.shared.pending=null}}while(!0);if(Se===null&&(Q=_e),D.baseState=Q,D.firstBaseUpdate=se,D.lastBaseUpdate=Se,m=D.shared.interleaved,m!==null){D=m;do W|=D.lane,D=D.next;while(D!==m)}else E===null&&(D.shared.lanes=0);Xl|=W,p.lanes=W,p.memoizedState=_e}}function OD(p,m,_){if(p=m.effects,m.effects=null,p!==null)for(m=0;m<p.length;m++){var M=p[m],D=M.callback;if(D!==null){if(M.callback=null,M=_,typeof D!="function")throw Error(r(191,D));D.call(M)}}}var _h={},Wa=ks(_h),wh=ks(_h),Ch=ks(_h);function Yl(p){if(p===_h)throw Error(r(174));return p}function Mb(p,m){switch(ur(Ch,m),ur(wh,p),ur(Wa,_h),p=m.nodeType,p){case 9:case 11:m=(m=m.documentElement)?m.namespaceURI:je(null,"");break;default:p=p===8?m.parentNode:m,m=p.namespaceURI||null,p=p.tagName,m=je(m,p)}pr(Wa),ur(Wa,m)}function Zc(){pr(Wa),pr(wh),pr(Ch)}function ND(p){Yl(Ch.current);var m=Yl(Wa.current),_=je(m,p.type);m!==_&&(ur(wh,p),ur(Wa,_))}function kb(p){wh.current===p&&(pr(Wa),pr(wh))}var yr=ks(0);function Dm(p){for(var m=p;m!==null;){if(m.tag===13){var _=m.memoizedState;if(_!==null&&(_=_.dehydrated,_===null||_.data==="$?"||_.data==="$!"))return m}else if(m.tag===19&&m.memoizedProps.revealOrder!==void 0){if((m.flags&128)!==0)return m}else if(m.child!==null){m.child.return=m,m=m.child;continue}if(m===p)break;for(;m.sibling===null;){if(m.return===null||m.return===p)return null;m=m.return}m.sibling.return=m.return,m=m.sibling}return null}var Ib=[];function Pb(){for(var p=0;p<Ib.length;p++)Ib[p]._workInProgressVersionPrimary=null;Ib.length=0}var Rm=w.ReactCurrentDispatcher,Db=w.ReactCurrentBatchConfig,ql=0,xr=null,Vr=null,qr=null,Em=!1,Th=!1,Ah=0,KU=0;function pn(){throw Error(r(321))}function Rb(p,m){if(m===null)return!1;for(var _=0;_<m.length&&_<p.length;_++)if(!da(p[_],m[_]))return!1;return!0}function Eb(p,m,_,M,D,E){if(ql=E,xr=m,m.memoizedState=null,m.updateQueue=null,m.lanes=0,Rm.current=p===null||p.memoizedState===null?tY:rY,p=_(M,D),Th){E=0;do{if(Th=!1,Ah=0,25<=E)throw Error(r(301));E+=1,qr=Vr=null,m.updateQueue=null,Rm.current=nY,p=_(M,D)}while(Th)}if(Rm.current=Nm,m=Vr!==null&&Vr.next!==null,ql=0,qr=Vr=xr=null,Em=!1,m)throw Error(r(300));return p}function Lb(){var p=Ah!==0;return Ah=0,p}function ja(){var p={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qr===null?xr.memoizedState=qr=p:qr=qr.next=p,qr}function Ei(){if(Vr===null){var p=xr.alternate;p=p!==null?p.memoizedState:null}else p=Vr.next;var m=qr===null?xr.memoizedState:qr.next;if(m!==null)qr=m,Vr=p;else{if(p===null)throw Error(r(310));Vr=p,p={memoizedState:Vr.memoizedState,baseState:Vr.baseState,baseQueue:Vr.baseQueue,queue:Vr.queue,next:null},qr===null?xr.memoizedState=qr=p:qr=qr.next=p}return qr}function Mh(p,m){return typeof m=="function"?m(p):m}function Ob(p){var m=Ei(),_=m.queue;if(_===null)throw Error(r(311));_.lastRenderedReducer=p;var M=Vr,D=M.baseQueue,E=_.pending;if(E!==null){if(D!==null){var W=D.next;D.next=E.next,E.next=W}M.baseQueue=D=E,_.pending=null}if(D!==null){E=D.next,M=M.baseState;var K=W=null,Q=null,se=E;do{var Se=se.lane;if((ql&Se)===Se)Q!==null&&(Q=Q.next={lane:0,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null}),M=se.hasEagerState?se.eagerState:p(M,se.action);else{var _e={lane:Se,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null};Q===null?(K=Q=_e,W=M):Q=Q.next=_e,xr.lanes|=Se,Xl|=Se}se=se.next}while(se!==null&&se!==E);Q===null?W=M:Q.next=K,da(M,m.memoizedState)||(Un=!0),m.memoizedState=M,m.baseState=W,m.baseQueue=Q,_.lastRenderedState=M}if(p=_.interleaved,p!==null){D=p;do E=D.lane,xr.lanes|=E,Xl|=E,D=D.next;while(D!==p)}else D===null&&(_.lanes=0);return[m.memoizedState,_.dispatch]}function Nb(p){var m=Ei(),_=m.queue;if(_===null)throw Error(r(311));_.lastRenderedReducer=p;var M=_.dispatch,D=_.pending,E=m.memoizedState;if(D!==null){_.pending=null;var W=D=D.next;do E=p(E,W.action),W=W.next;while(W!==D);da(E,m.memoizedState)||(Un=!0),m.memoizedState=E,m.baseQueue===null&&(m.baseState=E),_.lastRenderedState=E}return[E,M]}function zD(){}function BD(p,m){var _=xr,M=Ei(),D=m(),E=!da(M.memoizedState,D);if(E&&(M.memoizedState=D,Un=!0),M=M.queue,zb($D.bind(null,_,M,p),[p]),M.getSnapshot!==m||E||qr!==null&&qr.memoizedState.tag&1){if(_.flags|=2048,kh(9,VD.bind(null,_,M,D,m),void 0,null),Xr===null)throw Error(r(349));(ql&30)!==0||FD(_,m,D)}return D}function FD(p,m,_){p.flags|=16384,p={getSnapshot:m,value:_},m=xr.updateQueue,m===null?(m={lastEffect:null,stores:null},xr.updateQueue=m,m.stores=[p]):(_=m.stores,_===null?m.stores=[p]:_.push(p))}function VD(p,m,_,M){m.value=_,m.getSnapshot=M,GD(m)&&HD(p)}function $D(p,m,_){return _(function(){GD(m)&&HD(p)})}function GD(p){var m=p.getSnapshot;p=p.value;try{var _=m();return!da(p,_)}catch{return!0}}function HD(p){var m=Vo(p,1);m!==null&&ma(m,p,1,-1)}function WD(p){var m=ja();return typeof p=="function"&&(p=p()),m.memoizedState=m.baseState=p,p={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Mh,lastRenderedState:p},m.queue=p,p=p.dispatch=eY.bind(null,xr,p),[m.memoizedState,p]}function kh(p,m,_,M){return p={tag:p,create:m,destroy:_,deps:M,next:null},m=xr.updateQueue,m===null?(m={lastEffect:null,stores:null},xr.updateQueue=m,m.lastEffect=p.next=p):(_=m.lastEffect,_===null?m.lastEffect=p.next=p:(M=_.next,_.next=p,p.next=M,m.lastEffect=p)),p}function jD(){return Ei().memoizedState}function Lm(p,m,_,M){var D=ja();xr.flags|=p,D.memoizedState=kh(1|m,_,void 0,M===void 0?null:M)}function Om(p,m,_,M){var D=Ei();M=M===void 0?null:M;var E=void 0;if(Vr!==null){var W=Vr.memoizedState;if(E=W.destroy,M!==null&&Rb(M,W.deps)){D.memoizedState=kh(m,_,E,M);return}}xr.flags|=p,D.memoizedState=kh(1|m,_,E,M)}function UD(p,m){return Lm(8390656,8,p,m)}function zb(p,m){return Om(2048,8,p,m)}function YD(p,m){return Om(4,2,p,m)}function qD(p,m){return Om(4,4,p,m)}function XD(p,m){if(typeof m=="function")return p=p(),m(p),function(){m(null)};if(m!=null)return p=p(),m.current=p,function(){m.current=null}}function ZD(p,m,_){return _=_!=null?_.concat([p]):null,Om(4,4,XD.bind(null,m,p),_)}function Bb(){}function KD(p,m){var _=Ei();m=m===void 0?null:m;var M=_.memoizedState;return M!==null&&m!==null&&Rb(m,M[1])?M[0]:(_.memoizedState=[p,m],p)}function QD(p,m){var _=Ei();m=m===void 0?null:m;var M=_.memoizedState;return M!==null&&m!==null&&Rb(m,M[1])?M[0]:(p=p(),_.memoizedState=[p,m],p)}function JD(p,m,_){return(ql&21)===0?(p.baseState&&(p.baseState=!1,Un=!0),p.memoizedState=_):(da(_,m)||(_=IP(),xr.lanes|=_,Xl|=_,p.baseState=!0),m)}function QU(p,m){var _=nr;nr=_!==0&&4>_?_:4,p(!0);var M=Db.transition;Db.transition={};try{p(!1),m()}finally{nr=_,Db.transition=M}}function eR(){return Ei().memoizedState}function JU(p,m,_){var M=Ns(p);if(_={lane:M,action:_,hasEagerState:!1,eagerState:null,next:null},tR(p))rR(m,_);else if(_=RD(p,m,_,M),_!==null){var D=Mn();ma(_,p,M,D),nR(_,m,M)}}function eY(p,m,_){var M=Ns(p),D={lane:M,action:_,hasEagerState:!1,eagerState:null,next:null};if(tR(p))rR(m,D);else{var E=p.alternate;if(p.lanes===0&&(E===null||E.lanes===0)&&(E=m.lastRenderedReducer,E!==null))try{var W=m.lastRenderedState,K=E(W,_);if(D.hasEagerState=!0,D.eagerState=K,da(K,W)){var Q=m.interleaved;Q===null?(D.next=D,Tb(m)):(D.next=Q.next,Q.next=D),m.interleaved=D;return}}catch{}finally{}_=RD(p,m,D,M),_!==null&&(D=Mn(),ma(_,p,M,D),nR(_,m,M))}}function tR(p){var m=p.alternate;return p===xr||m!==null&&m===xr}function rR(p,m){Th=Em=!0;var _=p.pending;_===null?m.next=m:(m.next=_.next,_.next=m),p.pending=m}function nR(p,m,_){if((_&4194240)!==0){var M=m.lanes;M&=p.pendingLanes,_|=M,m.lanes=_,VS(p,_)}}var Nm={readContext:Ri,useCallback:pn,useContext:pn,useEffect:pn,useImperativeHandle:pn,useInsertionEffect:pn,useLayoutEffect:pn,useMemo:pn,useReducer:pn,useRef:pn,useState:pn,useDebugValue:pn,useDeferredValue:pn,useTransition:pn,useMutableSource:pn,useSyncExternalStore:pn,useId:pn,unstable_isNewReconciler:!1},tY={readContext:Ri,useCallback:function(p,m){return ja().memoizedState=[p,m===void 0?null:m],p},useContext:Ri,useEffect:UD,useImperativeHandle:function(p,m,_){return _=_!=null?_.concat([p]):null,Lm(4194308,4,XD.bind(null,m,p),_)},useLayoutEffect:function(p,m){return Lm(4194308,4,p,m)},useInsertionEffect:function(p,m){return Lm(4,2,p,m)},useMemo:function(p,m){var _=ja();return m=m===void 0?null:m,p=p(),_.memoizedState=[p,m],p},useReducer:function(p,m,_){var M=ja();return m=_!==void 0?_(m):m,M.memoizedState=M.baseState=m,p={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:p,lastRenderedState:m},M.queue=p,p=p.dispatch=JU.bind(null,xr,p),[M.memoizedState,p]},useRef:function(p){var m=ja();return p={current:p},m.memoizedState=p},useState:WD,useDebugValue:Bb,useDeferredValue:function(p){return ja().memoizedState=p},useTransition:function(){var p=WD(!1),m=p[0];return p=QU.bind(null,p[1]),ja().memoizedState=p,[m,p]},useMutableSource:function(){},useSyncExternalStore:function(p,m,_){var M=xr,D=ja();if(vr){if(_===void 0)throw Error(r(407));_=_()}else{if(_=m(),Xr===null)throw Error(r(349));(ql&30)!==0||FD(M,m,_)}D.memoizedState=_;var E={value:_,getSnapshot:m};return D.queue=E,UD($D.bind(null,M,E,p),[p]),M.flags|=2048,kh(9,VD.bind(null,M,E,_,m),void 0,null),_},useId:function(){var p=ja(),m=Xr.identifierPrefix;if(vr){var _=Fo,M=Bo;_=(M&~(1<<32-fa(M)-1)).toString(32)+_,m=":"+m+"R"+_,_=Ah++,0<_&&(m+="H"+_.toString(32)),m+=":"}else _=KU++,m=":"+m+"r"+_.toString(32)+":";return p.memoizedState=m},unstable_isNewReconciler:!1},rY={readContext:Ri,useCallback:KD,useContext:Ri,useEffect:zb,useImperativeHandle:ZD,useInsertionEffect:YD,useLayoutEffect:qD,useMemo:QD,useReducer:Ob,useRef:jD,useState:function(){return Ob(Mh)},useDebugValue:Bb,useDeferredValue:function(p){var m=Ei();return JD(m,Vr.memoizedState,p)},useTransition:function(){var p=Ob(Mh)[0],m=Ei().memoizedState;return[p,m]},useMutableSource:zD,useSyncExternalStore:BD,useId:eR,unstable_isNewReconciler:!1},nY={readContext:Ri,useCallback:KD,useContext:Ri,useEffect:zb,useImperativeHandle:ZD,useInsertionEffect:YD,useLayoutEffect:qD,useMemo:QD,useReducer:Nb,useRef:jD,useState:function(){return Nb(Mh)},useDebugValue:Bb,useDeferredValue:function(p){var m=Ei();return Vr===null?m.memoizedState=p:JD(m,Vr.memoizedState,p)},useTransition:function(){var p=Nb(Mh)[0],m=Ei().memoizedState;return[p,m]},useMutableSource:zD,useSyncExternalStore:BD,useId:eR,unstable_isNewReconciler:!1};function pa(p,m){if(p&&p.defaultProps){m=B({},m),p=p.defaultProps;for(var _ in p)m[_]===void 0&&(m[_]=p[_]);return m}return m}function Fb(p,m,_,M){m=p.memoizedState,_=_(M,m),_=_==null?m:B({},m,_),p.memoizedState=_,p.lanes===0&&(p.updateQueue.baseState=_)}var zm={isMounted:function(p){return(p=p._reactInternals)?$a(p)===p:!1},enqueueSetState:function(p,m,_){p=p._reactInternals;var M=Mn(),D=Ns(p),E=$o(M,D);E.payload=m,_!=null&&(E.callback=_),m=Rs(p,E,D),m!==null&&(ma(m,p,D,M),Im(m,p,D))},enqueueReplaceState:function(p,m,_){p=p._reactInternals;var M=Mn(),D=Ns(p),E=$o(M,D);E.tag=1,E.payload=m,_!=null&&(E.callback=_),m=Rs(p,E,D),m!==null&&(ma(m,p,D,M),Im(m,p,D))},enqueueForceUpdate:function(p,m){p=p._reactInternals;var _=Mn(),M=Ns(p),D=$o(_,M);D.tag=2,m!=null&&(D.callback=m),m=Rs(p,D,M),m!==null&&(ma(m,p,M,_),Im(m,p,M))}};function iR(p,m,_,M,D,E,W){return p=p.stateNode,typeof p.shouldComponentUpdate=="function"?p.shouldComponentUpdate(M,E,W):m.prototype&&m.prototype.isPureReactComponent?!ph(_,M)||!ph(D,E):!0}function aR(p,m,_){var M=!1,D=Is,E=m.contextType;return typeof E=="object"&&E!==null?E=Ri(E):(D=jn(m)?Hl:hn.current,M=m.contextTypes,E=(M=M!=null)?Hc(p,D):Is),m=new m(_,E),p.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=zm,p.stateNode=m,m._reactInternals=p,M&&(p=p.stateNode,p.__reactInternalMemoizedUnmaskedChildContext=D,p.__reactInternalMemoizedMaskedChildContext=E),m}function oR(p,m,_,M){p=m.state,typeof m.componentWillReceiveProps=="function"&&m.componentWillReceiveProps(_,M),typeof m.UNSAFE_componentWillReceiveProps=="function"&&m.UNSAFE_componentWillReceiveProps(_,M),m.state!==p&&zm.enqueueReplaceState(m,m.state,null)}function Vb(p,m,_,M){var D=p.stateNode;D.props=_,D.state=p.memoizedState,D.refs={},Ab(p);var E=m.contextType;typeof E=="object"&&E!==null?D.context=Ri(E):(E=jn(m)?Hl:hn.current,D.context=Hc(p,E)),D.state=p.memoizedState,E=m.getDerivedStateFromProps,typeof E=="function"&&(Fb(p,m,E,_),D.state=p.memoizedState),typeof m.getDerivedStateFromProps=="function"||typeof D.getSnapshotBeforeUpdate=="function"||typeof D.UNSAFE_componentWillMount!="function"&&typeof D.componentWillMount!="function"||(m=D.state,typeof D.componentWillMount=="function"&&D.componentWillMount(),typeof D.UNSAFE_componentWillMount=="function"&&D.UNSAFE_componentWillMount(),m!==D.state&&zm.enqueueReplaceState(D,D.state,null),Pm(p,_,D,M),D.state=p.memoizedState),typeof D.componentDidMount=="function"&&(p.flags|=4194308)}function Kc(p,m){try{var _="",M=m;do _+=ce(M),M=M.return;while(M);var D=_}catch(E){D=`
|
39
|
-
Error generating stack: `+E.message+`
|
40
|
-
`+E.stack}return{value:p,source:m,stack:D,digest:null}}function $b(p,m,_){return{value:p,source:null,stack:_??null,digest:m??null}}function Gb(p,m){try{console.error(m.value)}catch(_){setTimeout(function(){throw _})}}var iY=typeof WeakMap=="function"?WeakMap:Map;function sR(p,m,_){_=$o(-1,_),_.tag=3,_.payload={element:null};var M=m.value;return _.callback=function(){Wm||(Wm=!0,n_=M),Gb(p,m)},_}function lR(p,m,_){_=$o(-1,_),_.tag=3;var M=p.type.getDerivedStateFromError;if(typeof M=="function"){var D=m.value;_.payload=function(){return M(D)},_.callback=function(){Gb(p,m)}}var E=p.stateNode;return E!==null&&typeof E.componentDidCatch=="function"&&(_.callback=function(){Gb(p,m),typeof M!="function"&&(Ls===null?Ls=new Set([this]):Ls.add(this));var W=m.stack;this.componentDidCatch(m.value,{componentStack:W!==null?W:""})}),_}function uR(p,m,_){var M=p.pingCache;if(M===null){M=p.pingCache=new iY;var D=new Set;M.set(m,D)}else D=M.get(m),D===void 0&&(D=new Set,M.set(m,D));D.has(_)||(D.add(_),p=yY.bind(null,p,m,_),m.then(p,p))}function cR(p){do{var m;if((m=p.tag===13)&&(m=p.memoizedState,m=m!==null?m.dehydrated!==null:!0),m)return p;p=p.return}while(p!==null);return null}function fR(p,m,_,M,D){return(p.mode&1)===0?(p===m?p.flags|=65536:(p.flags|=128,_.flags|=131072,_.flags&=-52805,_.tag===1&&(_.alternate===null?_.tag=17:(m=$o(-1,1),m.tag=2,Rs(_,m,1))),_.lanes|=1),p):(p.flags|=65536,p.lanes=D,p)}var aY=w.ReactCurrentOwner,Un=!1;function An(p,m,_,M){m.child=p===null?DD(m,null,_,M):Yc(m,p.child,_,M)}function dR(p,m,_,M,D){_=_.render;var E=m.ref;return Xc(m,D),M=Eb(p,m,_,M,E,D),_=Lb(),p!==null&&!Un?(m.updateQueue=p.updateQueue,m.flags&=-2053,p.lanes&=~D,Go(p,m,D)):(vr&&_&&gb(m),m.flags|=1,An(p,m,M,D),m.child)}function hR(p,m,_,M,D){if(p===null){var E=_.type;return typeof E=="function"&&!c_(E)&&E.defaultProps===void 0&&_.compare===null&&_.defaultProps===void 0?(m.tag=15,m.type=E,pR(p,m,E,M,D)):(p=Zm(_.type,null,M,m,m.mode,D),p.ref=m.ref,p.return=m,m.child=p)}if(E=p.child,(p.lanes&D)===0){var W=E.memoizedProps;if(_=_.compare,_=_!==null?_:ph,_(W,M)&&p.ref===m.ref)return Go(p,m,D)}return m.flags|=1,p=Bs(E,M),p.ref=m.ref,p.return=m,m.child=p}function pR(p,m,_,M,D){if(p!==null){var E=p.memoizedProps;if(ph(E,M)&&p.ref===m.ref)if(Un=!1,m.pendingProps=M=E,(p.lanes&D)!==0)(p.flags&131072)!==0&&(Un=!0);else return m.lanes=p.lanes,Go(p,m,D)}return Hb(p,m,_,M,D)}function vR(p,m,_){var M=m.pendingProps,D=M.children,E=p!==null?p.memoizedState:null;if(M.mode==="hidden")if((m.mode&1)===0)m.memoizedState={baseLanes:0,cachePool:null,transitions:null},ur(Jc,gi),gi|=_;else{if((_&1073741824)===0)return p=E!==null?E.baseLanes|_:_,m.lanes=m.childLanes=1073741824,m.memoizedState={baseLanes:p,cachePool:null,transitions:null},m.updateQueue=null,ur(Jc,gi),gi|=p,null;m.memoizedState={baseLanes:0,cachePool:null,transitions:null},M=E!==null?E.baseLanes:_,ur(Jc,gi),gi|=M}else E!==null?(M=E.baseLanes|_,m.memoizedState=null):M=_,ur(Jc,gi),gi|=M;return An(p,m,D,_),m.child}function gR(p,m){var _=m.ref;(p===null&&_!==null||p!==null&&p.ref!==_)&&(m.flags|=512,m.flags|=2097152)}function Hb(p,m,_,M,D){var E=jn(_)?Hl:hn.current;return E=Hc(m,E),Xc(m,D),_=Eb(p,m,_,M,E,D),M=Lb(),p!==null&&!Un?(m.updateQueue=p.updateQueue,m.flags&=-2053,p.lanes&=~D,Go(p,m,D)):(vr&&M&&gb(m),m.flags|=1,An(p,m,_,D),m.child)}function mR(p,m,_,M,D){if(jn(_)){var E=!0;bm(m)}else E=!1;if(Xc(m,D),m.stateNode===null)Fm(p,m),aR(m,_,M),Vb(m,_,M,D),M=!0;else if(p===null){var W=m.stateNode,K=m.memoizedProps;W.props=K;var Q=W.context,se=_.contextType;typeof se=="object"&&se!==null?se=Ri(se):(se=jn(_)?Hl:hn.current,se=Hc(m,se));var Se=_.getDerivedStateFromProps,_e=typeof Se=="function"||typeof W.getSnapshotBeforeUpdate=="function";_e||typeof W.UNSAFE_componentWillReceiveProps!="function"&&typeof W.componentWillReceiveProps!="function"||(K!==M||Q!==se)&&oR(m,W,M,se),Ds=!1;var me=m.memoizedState;W.state=me,Pm(m,M,W,D),Q=m.memoizedState,K!==M||me!==Q||Wn.current||Ds?(typeof Se=="function"&&(Fb(m,_,Se,M),Q=m.memoizedState),(K=Ds||iR(m,_,K,M,me,Q,se))?(_e||typeof W.UNSAFE_componentWillMount!="function"&&typeof W.componentWillMount!="function"||(typeof W.componentWillMount=="function"&&W.componentWillMount(),typeof W.UNSAFE_componentWillMount=="function"&&W.UNSAFE_componentWillMount()),typeof W.componentDidMount=="function"&&(m.flags|=4194308)):(typeof W.componentDidMount=="function"&&(m.flags|=4194308),m.memoizedProps=M,m.memoizedState=Q),W.props=M,W.state=Q,W.context=se,M=K):(typeof W.componentDidMount=="function"&&(m.flags|=4194308),M=!1)}else{W=m.stateNode,ED(p,m),K=m.memoizedProps,se=m.type===m.elementType?K:pa(m.type,K),W.props=se,_e=m.pendingProps,me=W.context,Q=_.contextType,typeof Q=="object"&&Q!==null?Q=Ri(Q):(Q=jn(_)?Hl:hn.current,Q=Hc(m,Q));var Fe=_.getDerivedStateFromProps;(Se=typeof Fe=="function"||typeof W.getSnapshotBeforeUpdate=="function")||typeof W.UNSAFE_componentWillReceiveProps!="function"&&typeof W.componentWillReceiveProps!="function"||(K!==_e||me!==Q)&&oR(m,W,M,Q),Ds=!1,me=m.memoizedState,W.state=me,Pm(m,M,W,D);var Ye=m.memoizedState;K!==_e||me!==Ye||Wn.current||Ds?(typeof Fe=="function"&&(Fb(m,_,Fe,M),Ye=m.memoizedState),(se=Ds||iR(m,_,se,M,me,Ye,Q)||!1)?(Se||typeof W.UNSAFE_componentWillUpdate!="function"&&typeof W.componentWillUpdate!="function"||(typeof W.componentWillUpdate=="function"&&W.componentWillUpdate(M,Ye,Q),typeof W.UNSAFE_componentWillUpdate=="function"&&W.UNSAFE_componentWillUpdate(M,Ye,Q)),typeof W.componentDidUpdate=="function"&&(m.flags|=4),typeof W.getSnapshotBeforeUpdate=="function"&&(m.flags|=1024)):(typeof W.componentDidUpdate!="function"||K===p.memoizedProps&&me===p.memoizedState||(m.flags|=4),typeof W.getSnapshotBeforeUpdate!="function"||K===p.memoizedProps&&me===p.memoizedState||(m.flags|=1024),m.memoizedProps=M,m.memoizedState=Ye),W.props=M,W.state=Ye,W.context=Q,M=se):(typeof W.componentDidUpdate!="function"||K===p.memoizedProps&&me===p.memoizedState||(m.flags|=4),typeof W.getSnapshotBeforeUpdate!="function"||K===p.memoizedProps&&me===p.memoizedState||(m.flags|=1024),M=!1)}return Wb(p,m,_,M,E,D)}function Wb(p,m,_,M,D,E){gR(p,m);var W=(m.flags&128)!==0;if(!M&&!W)return D&&_D(m,_,!1),Go(p,m,E);M=m.stateNode,aY.current=m;var K=W&&typeof _.getDerivedStateFromError!="function"?null:M.render();return m.flags|=1,p!==null&&W?(m.child=Yc(m,p.child,null,E),m.child=Yc(m,null,K,E)):An(p,m,K,E),m.memoizedState=M.state,D&&_D(m,_,!0),m.child}function yR(p){var m=p.stateNode;m.pendingContext?SD(p,m.pendingContext,m.pendingContext!==m.context):m.context&&SD(p,m.context,!1),Mb(p,m.containerInfo)}function xR(p,m,_,M,D){return Uc(),Sb(D),m.flags|=256,An(p,m,_,M),m.child}var jb={dehydrated:null,treeContext:null,retryLane:0};function Ub(p){return{baseLanes:p,cachePool:null,transitions:null}}function SR(p,m,_){var M=m.pendingProps,D=yr.current,E=!1,W=(m.flags&128)!==0,K;if((K=W)||(K=p!==null&&p.memoizedState===null?!1:(D&2)!==0),K?(E=!0,m.flags&=-129):(p===null||p.memoizedState!==null)&&(D|=1),ur(yr,D&1),p===null)return xb(m),p=m.memoizedState,p!==null&&(p=p.dehydrated,p!==null)?((m.mode&1)===0?m.lanes=1:p.data==="$!"?m.lanes=8:m.lanes=1073741824,null):(W=M.children,p=M.fallback,E?(M=m.mode,E=m.child,W={mode:"hidden",children:W},(M&1)===0&&E!==null?(E.childLanes=0,E.pendingProps=W):E=Km(W,M,0,null),p=Jl(p,M,_,null),E.return=m,p.return=m,E.sibling=p,m.child=E,m.child.memoizedState=Ub(_),m.memoizedState=jb,p):Yb(m,W));if(D=p.memoizedState,D!==null&&(K=D.dehydrated,K!==null))return oY(p,m,W,M,K,D,_);if(E){E=M.fallback,W=m.mode,D=p.child,K=D.sibling;var Q={mode:"hidden",children:M.children};return(W&1)===0&&m.child!==D?(M=m.child,M.childLanes=0,M.pendingProps=Q,m.deletions=null):(M=Bs(D,Q),M.subtreeFlags=D.subtreeFlags&14680064),K!==null?E=Bs(K,E):(E=Jl(E,W,_,null),E.flags|=2),E.return=m,M.return=m,M.sibling=E,m.child=M,M=E,E=m.child,W=p.child.memoizedState,W=W===null?Ub(_):{baseLanes:W.baseLanes|_,cachePool:null,transitions:W.transitions},E.memoizedState=W,E.childLanes=p.childLanes&~_,m.memoizedState=jb,M}return E=p.child,p=E.sibling,M=Bs(E,{mode:"visible",children:M.children}),(m.mode&1)===0&&(M.lanes=_),M.return=m,M.sibling=null,p!==null&&(_=m.deletions,_===null?(m.deletions=[p],m.flags|=16):_.push(p)),m.child=M,m.memoizedState=null,M}function Yb(p,m){return m=Km({mode:"visible",children:m},p.mode,0,null),m.return=p,p.child=m}function Bm(p,m,_,M){return M!==null&&Sb(M),Yc(m,p.child,null,_),p=Yb(m,m.pendingProps.children),p.flags|=2,m.memoizedState=null,p}function oY(p,m,_,M,D,E,W){if(_)return m.flags&256?(m.flags&=-257,M=$b(Error(r(422))),Bm(p,m,W,M)):m.memoizedState!==null?(m.child=p.child,m.flags|=128,null):(E=M.fallback,D=m.mode,M=Km({mode:"visible",children:M.children},D,0,null),E=Jl(E,D,W,null),E.flags|=2,M.return=m,E.return=m,M.sibling=E,m.child=M,(m.mode&1)!==0&&Yc(m,p.child,null,W),m.child.memoizedState=Ub(W),m.memoizedState=jb,E);if((m.mode&1)===0)return Bm(p,m,W,null);if(D.data==="$!"){if(M=D.nextSibling&&D.nextSibling.dataset,M)var K=M.dgst;return M=K,E=Error(r(419)),M=$b(E,M,void 0),Bm(p,m,W,M)}if(K=(W&p.childLanes)!==0,Un||K){if(M=Xr,M!==null){switch(W&-W){case 4:D=2;break;case 16:D=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:D=32;break;case 536870912:D=268435456;break;default:D=0}D=(D&(M.suspendedLanes|W))!==0?0:D,D!==0&&D!==E.retryLane&&(E.retryLane=D,Vo(p,D),ma(M,p,D,-1))}return u_(),M=$b(Error(r(421))),Bm(p,m,W,M)}return D.data==="$?"?(m.flags|=128,m.child=p.child,m=xY.bind(null,p),D._reactRetry=m,null):(p=E.treeContext,vi=Ms(D.nextSibling),pi=m,vr=!0,ha=null,p!==null&&(Pi[Di++]=Bo,Pi[Di++]=Fo,Pi[Di++]=Wl,Bo=p.id,Fo=p.overflow,Wl=m),m=Yb(m,M.children),m.flags|=4096,m)}function bR(p,m,_){p.lanes|=m;var M=p.alternate;M!==null&&(M.lanes|=m),Cb(p.return,m,_)}function qb(p,m,_,M,D){var E=p.memoizedState;E===null?p.memoizedState={isBackwards:m,rendering:null,renderingStartTime:0,last:M,tail:_,tailMode:D}:(E.isBackwards=m,E.rendering=null,E.renderingStartTime=0,E.last=M,E.tail=_,E.tailMode=D)}function _R(p,m,_){var M=m.pendingProps,D=M.revealOrder,E=M.tail;if(An(p,m,M.children,_),M=yr.current,(M&2)!==0)M=M&1|2,m.flags|=128;else{if(p!==null&&(p.flags&128)!==0)e:for(p=m.child;p!==null;){if(p.tag===13)p.memoizedState!==null&&bR(p,_,m);else if(p.tag===19)bR(p,_,m);else if(p.child!==null){p.child.return=p,p=p.child;continue}if(p===m)break e;for(;p.sibling===null;){if(p.return===null||p.return===m)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}M&=1}if(ur(yr,M),(m.mode&1)===0)m.memoizedState=null;else switch(D){case"forwards":for(_=m.child,D=null;_!==null;)p=_.alternate,p!==null&&Dm(p)===null&&(D=_),_=_.sibling;_=D,_===null?(D=m.child,m.child=null):(D=_.sibling,_.sibling=null),qb(m,!1,D,_,E);break;case"backwards":for(_=null,D=m.child,m.child=null;D!==null;){if(p=D.alternate,p!==null&&Dm(p)===null){m.child=D;break}p=D.sibling,D.sibling=_,_=D,D=p}qb(m,!0,_,null,E);break;case"together":qb(m,!1,null,null,void 0);break;default:m.memoizedState=null}return m.child}function Fm(p,m){(m.mode&1)===0&&p!==null&&(p.alternate=null,m.alternate=null,m.flags|=2)}function Go(p,m,_){if(p!==null&&(m.dependencies=p.dependencies),Xl|=m.lanes,(_&m.childLanes)===0)return null;if(p!==null&&m.child!==p.child)throw Error(r(153));if(m.child!==null){for(p=m.child,_=Bs(p,p.pendingProps),m.child=_,_.return=m;p.sibling!==null;)p=p.sibling,_=_.sibling=Bs(p,p.pendingProps),_.return=m;_.sibling=null}return m.child}function sY(p,m,_){switch(m.tag){case 3:yR(m),Uc();break;case 5:ND(m);break;case 1:jn(m.type)&&bm(m);break;case 4:Mb(m,m.stateNode.containerInfo);break;case 10:var M=m.type._context,D=m.memoizedProps.value;ur(Mm,M._currentValue),M._currentValue=D;break;case 13:if(M=m.memoizedState,M!==null)return M.dehydrated!==null?(ur(yr,yr.current&1),m.flags|=128,null):(_&m.child.childLanes)!==0?SR(p,m,_):(ur(yr,yr.current&1),p=Go(p,m,_),p!==null?p.sibling:null);ur(yr,yr.current&1);break;case 19:if(M=(_&m.childLanes)!==0,(p.flags&128)!==0){if(M)return _R(p,m,_);m.flags|=128}if(D=m.memoizedState,D!==null&&(D.rendering=null,D.tail=null,D.lastEffect=null),ur(yr,yr.current),M)break;return null;case 22:case 23:return m.lanes=0,vR(p,m,_)}return Go(p,m,_)}var wR,Xb,CR,TR;wR=function(p,m){for(var _=m.child;_!==null;){if(_.tag===5||_.tag===6)p.appendChild(_.stateNode);else if(_.tag!==4&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===m)break;for(;_.sibling===null;){if(_.return===null||_.return===m)return;_=_.return}_.sibling.return=_.return,_=_.sibling}},Xb=function(){},CR=function(p,m,_,M){var D=p.memoizedProps;if(D!==M){p=m.stateNode,Yl(Wa.current);var E=null;switch(_){case"input":D=Ie(p,D),M=Ie(p,M),E=[];break;case"select":D=B({},D,{value:void 0}),M=B({},M,{value:void 0}),E=[];break;case"textarea":D=rr(p,D),M=rr(p,M),E=[];break;default:typeof D.onClick!="function"&&typeof M.onClick=="function"&&(p.onclick=ym)}Ue(_,M);var W;_=null;for(se in D)if(!M.hasOwnProperty(se)&&D.hasOwnProperty(se)&&D[se]!=null)if(se==="style"){var K=D[se];for(W in K)K.hasOwnProperty(W)&&(_||(_={}),_[W]="")}else se!=="dangerouslySetInnerHTML"&&se!=="children"&&se!=="suppressContentEditableWarning"&&se!=="suppressHydrationWarning"&&se!=="autoFocus"&&(i.hasOwnProperty(se)?E||(E=[]):(E=E||[]).push(se,null));for(se in M){var Q=M[se];if(K=D!=null?D[se]:void 0,M.hasOwnProperty(se)&&Q!==K&&(Q!=null||K!=null))if(se==="style")if(K){for(W in K)!K.hasOwnProperty(W)||Q&&Q.hasOwnProperty(W)||(_||(_={}),_[W]="");for(W in Q)Q.hasOwnProperty(W)&&K[W]!==Q[W]&&(_||(_={}),_[W]=Q[W])}else _||(E||(E=[]),E.push(se,_)),_=Q;else se==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,K=K?K.__html:void 0,Q!=null&&K!==Q&&(E=E||[]).push(se,Q)):se==="children"?typeof Q!="string"&&typeof Q!="number"||(E=E||[]).push(se,""+Q):se!=="suppressContentEditableWarning"&&se!=="suppressHydrationWarning"&&(i.hasOwnProperty(se)?(Q!=null&&se==="onScroll"&&hr("scroll",p),E||K===Q||(E=[])):(E=E||[]).push(se,Q))}_&&(E=E||[]).push("style",_);var se=E;(m.updateQueue=se)&&(m.flags|=4)}},TR=function(p,m,_,M){_!==M&&(m.flags|=4)};function Ih(p,m){if(!vr)switch(p.tailMode){case"hidden":m=p.tail;for(var _=null;m!==null;)m.alternate!==null&&(_=m),m=m.sibling;_===null?p.tail=null:_.sibling=null;break;case"collapsed":_=p.tail;for(var M=null;_!==null;)_.alternate!==null&&(M=_),_=_.sibling;M===null?m||p.tail===null?p.tail=null:p.tail.sibling=null:M.sibling=null}}function vn(p){var m=p.alternate!==null&&p.alternate.child===p.child,_=0,M=0;if(m)for(var D=p.child;D!==null;)_|=D.lanes|D.childLanes,M|=D.subtreeFlags&14680064,M|=D.flags&14680064,D.return=p,D=D.sibling;else for(D=p.child;D!==null;)_|=D.lanes|D.childLanes,M|=D.subtreeFlags,M|=D.flags,D.return=p,D=D.sibling;return p.subtreeFlags|=M,p.childLanes=_,m}function lY(p,m,_){var M=m.pendingProps;switch(mb(m),m.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vn(m),null;case 1:return jn(m.type)&&Sm(),vn(m),null;case 3:return M=m.stateNode,Zc(),pr(Wn),pr(hn),Pb(),M.pendingContext&&(M.context=M.pendingContext,M.pendingContext=null),(p===null||p.child===null)&&(Tm(m)?m.flags|=4:p===null||p.memoizedState.isDehydrated&&(m.flags&256)===0||(m.flags|=1024,ha!==null&&(o_(ha),ha=null))),Xb(p,m),vn(m),null;case 5:kb(m);var D=Yl(Ch.current);if(_=m.type,p!==null&&m.stateNode!=null)CR(p,m,_,M,D),p.ref!==m.ref&&(m.flags|=512,m.flags|=2097152);else{if(!M){if(m.stateNode===null)throw Error(r(166));return vn(m),null}if(p=Yl(Wa.current),Tm(m)){M=m.stateNode,_=m.type;var E=m.memoizedProps;switch(M[Ha]=m,M[xh]=E,p=(m.mode&1)!==0,_){case"dialog":hr("cancel",M),hr("close",M);break;case"iframe":case"object":case"embed":hr("load",M);break;case"video":case"audio":for(D=0;D<gh.length;D++)hr(gh[D],M);break;case"source":hr("error",M);break;case"img":case"image":case"link":hr("error",M),hr("load",M);break;case"details":hr("toggle",M);break;case"input":$e(M,E),hr("invalid",M);break;case"select":M._wrapperState={wasMultiple:!!E.multiple},hr("invalid",M);break;case"textarea":Gt(M,E),hr("invalid",M)}Ue(_,E),D=null;for(var W in E)if(E.hasOwnProperty(W)){var K=E[W];W==="children"?typeof K=="string"?M.textContent!==K&&(E.suppressHydrationWarning!==!0&&mm(M.textContent,K,p),D=["children",K]):typeof K=="number"&&M.textContent!==""+K&&(E.suppressHydrationWarning!==!0&&mm(M.textContent,K,p),D=["children",""+K]):i.hasOwnProperty(W)&&K!=null&&W==="onScroll"&&hr("scroll",M)}switch(_){case"input":fe(M),bt(M,E,!0);break;case"textarea":fe(M),le(M);break;case"select":case"option":break;default:typeof E.onClick=="function"&&(M.onclick=ym)}M=D,m.updateQueue=M,M!==null&&(m.flags|=4)}else{W=D.nodeType===9?D:D.ownerDocument,p==="http://www.w3.org/1999/xhtml"&&(p=ye(_)),p==="http://www.w3.org/1999/xhtml"?_==="script"?(p=W.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild)):typeof M.is=="string"?p=W.createElement(_,{is:M.is}):(p=W.createElement(_),_==="select"&&(W=p,M.multiple?W.multiple=!0:M.size&&(W.size=M.size))):p=W.createElementNS(p,_),p[Ha]=m,p[xh]=M,wR(p,m,!1,!1),m.stateNode=p;e:{switch(W=ht(_,M),_){case"dialog":hr("cancel",p),hr("close",p),D=M;break;case"iframe":case"object":case"embed":hr("load",p),D=M;break;case"video":case"audio":for(D=0;D<gh.length;D++)hr(gh[D],p);D=M;break;case"source":hr("error",p),D=M;break;case"img":case"image":case"link":hr("error",p),hr("load",p),D=M;break;case"details":hr("toggle",p),D=M;break;case"input":$e(p,M),D=Ie(p,M),hr("invalid",p);break;case"option":D=M;break;case"select":p._wrapperState={wasMultiple:!!M.multiple},D=B({},M,{value:void 0}),hr("invalid",p);break;case"textarea":Gt(p,M),D=rr(p,M),hr("invalid",p);break;default:D=M}Ue(_,D),K=D;for(E in K)if(K.hasOwnProperty(E)){var Q=K[E];E==="style"?Ht(p,Q):E==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,Q!=null&&Me(p,Q)):E==="children"?typeof Q=="string"?(_!=="textarea"||Q!=="")&&Pt(p,Q):typeof Q=="number"&&Pt(p,""+Q):E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&E!=="autoFocus"&&(i.hasOwnProperty(E)?Q!=null&&E==="onScroll"&&hr("scroll",p):Q!=null&&b(p,E,Q,W))}switch(_){case"input":fe(p),bt(p,M,!1);break;case"textarea":fe(p),le(p);break;case"option":M.value!=null&&p.setAttribute("value",""+ae(M.value));break;case"select":p.multiple=!!M.multiple,E=M.value,E!=null?st(p,!!M.multiple,E,!1):M.defaultValue!=null&&st(p,!!M.multiple,M.defaultValue,!0);break;default:typeof D.onClick=="function"&&(p.onclick=ym)}switch(_){case"button":case"input":case"select":case"textarea":M=!!M.autoFocus;break e;case"img":M=!0;break e;default:M=!1}}M&&(m.flags|=4)}m.ref!==null&&(m.flags|=512,m.flags|=2097152)}return vn(m),null;case 6:if(p&&m.stateNode!=null)TR(p,m,p.memoizedProps,M);else{if(typeof M!="string"&&m.stateNode===null)throw Error(r(166));if(_=Yl(Ch.current),Yl(Wa.current),Tm(m)){if(M=m.stateNode,_=m.memoizedProps,M[Ha]=m,(E=M.nodeValue!==_)&&(p=pi,p!==null))switch(p.tag){case 3:mm(M.nodeValue,_,(p.mode&1)!==0);break;case 5:p.memoizedProps.suppressHydrationWarning!==!0&&mm(M.nodeValue,_,(p.mode&1)!==0)}E&&(m.flags|=4)}else M=(_.nodeType===9?_:_.ownerDocument).createTextNode(M),M[Ha]=m,m.stateNode=M}return vn(m),null;case 13:if(pr(yr),M=m.memoizedState,p===null||p.memoizedState!==null&&p.memoizedState.dehydrated!==null){if(vr&&vi!==null&&(m.mode&1)!==0&&(m.flags&128)===0)kD(),Uc(),m.flags|=98560,E=!1;else if(E=Tm(m),M!==null&&M.dehydrated!==null){if(p===null){if(!E)throw Error(r(318));if(E=m.memoizedState,E=E!==null?E.dehydrated:null,!E)throw Error(r(317));E[Ha]=m}else Uc(),(m.flags&128)===0&&(m.memoizedState=null),m.flags|=4;vn(m),E=!1}else ha!==null&&(o_(ha),ha=null),E=!0;if(!E)return m.flags&65536?m:null}return(m.flags&128)!==0?(m.lanes=_,m):(M=M!==null,M!==(p!==null&&p.memoizedState!==null)&&M&&(m.child.flags|=8192,(m.mode&1)!==0&&(p===null||(yr.current&1)!==0?$r===0&&($r=3):u_())),m.updateQueue!==null&&(m.flags|=4),vn(m),null);case 4:return Zc(),Xb(p,m),p===null&&mh(m.stateNode.containerInfo),vn(m),null;case 10:return wb(m.type._context),vn(m),null;case 17:return jn(m.type)&&Sm(),vn(m),null;case 19:if(pr(yr),E=m.memoizedState,E===null)return vn(m),null;if(M=(m.flags&128)!==0,W=E.rendering,W===null)if(M)Ih(E,!1);else{if($r!==0||p!==null&&(p.flags&128)!==0)for(p=m.child;p!==null;){if(W=Dm(p),W!==null){for(m.flags|=128,Ih(E,!1),M=W.updateQueue,M!==null&&(m.updateQueue=M,m.flags|=4),m.subtreeFlags=0,M=_,_=m.child;_!==null;)E=_,p=M,E.flags&=14680066,W=E.alternate,W===null?(E.childLanes=0,E.lanes=p,E.child=null,E.subtreeFlags=0,E.memoizedProps=null,E.memoizedState=null,E.updateQueue=null,E.dependencies=null,E.stateNode=null):(E.childLanes=W.childLanes,E.lanes=W.lanes,E.child=W.child,E.subtreeFlags=0,E.deletions=null,E.memoizedProps=W.memoizedProps,E.memoizedState=W.memoizedState,E.updateQueue=W.updateQueue,E.type=W.type,p=W.dependencies,E.dependencies=p===null?null:{lanes:p.lanes,firstContext:p.firstContext}),_=_.sibling;return ur(yr,yr.current&1|2),m.child}p=p.sibling}E.tail!==null&&Ir()>ef&&(m.flags|=128,M=!0,Ih(E,!1),m.lanes=4194304)}else{if(!M)if(p=Dm(W),p!==null){if(m.flags|=128,M=!0,_=p.updateQueue,_!==null&&(m.updateQueue=_,m.flags|=4),Ih(E,!0),E.tail===null&&E.tailMode==="hidden"&&!W.alternate&&!vr)return vn(m),null}else 2*Ir()-E.renderingStartTime>ef&&_!==1073741824&&(m.flags|=128,M=!0,Ih(E,!1),m.lanes=4194304);E.isBackwards?(W.sibling=m.child,m.child=W):(_=E.last,_!==null?_.sibling=W:m.child=W,E.last=W)}return E.tail!==null?(m=E.tail,E.rendering=m,E.tail=m.sibling,E.renderingStartTime=Ir(),m.sibling=null,_=yr.current,ur(yr,M?_&1|2:_&1),m):(vn(m),null);case 22:case 23:return l_(),M=m.memoizedState!==null,p!==null&&p.memoizedState!==null!==M&&(m.flags|=8192),M&&(m.mode&1)!==0?(gi&1073741824)!==0&&(vn(m),m.subtreeFlags&6&&(m.flags|=8192)):vn(m),null;case 24:return null;case 25:return null}throw Error(r(156,m.tag))}function uY(p,m){switch(mb(m),m.tag){case 1:return jn(m.type)&&Sm(),p=m.flags,p&65536?(m.flags=p&-65537|128,m):null;case 3:return Zc(),pr(Wn),pr(hn),Pb(),p=m.flags,(p&65536)!==0&&(p&128)===0?(m.flags=p&-65537|128,m):null;case 5:return kb(m),null;case 13:if(pr(yr),p=m.memoizedState,p!==null&&p.dehydrated!==null){if(m.alternate===null)throw Error(r(340));Uc()}return p=m.flags,p&65536?(m.flags=p&-65537|128,m):null;case 19:return pr(yr),null;case 4:return Zc(),null;case 10:return wb(m.type._context),null;case 22:case 23:return l_(),null;case 24:return null;default:return null}}var Vm=!1,gn=!1,cY=typeof WeakSet=="function"?WeakSet:Set,He=null;function Qc(p,m){var _=p.ref;if(_!==null)if(typeof _=="function")try{_(null)}catch(M){wr(p,m,M)}else _.current=null}function Zb(p,m,_){try{_()}catch(M){wr(p,m,M)}}var AR=!1;function fY(p,m){if(lb=om,p=iD(),eb(p)){if("selectionStart"in p)var _={start:p.selectionStart,end:p.selectionEnd};else e:{_=(_=p.ownerDocument)&&_.defaultView||window;var M=_.getSelection&&_.getSelection();if(M&&M.rangeCount!==0){_=M.anchorNode;var D=M.anchorOffset,E=M.focusNode;M=M.focusOffset;try{_.nodeType,E.nodeType}catch{_=null;break e}var W=0,K=-1,Q=-1,se=0,Se=0,_e=p,me=null;t:for(;;){for(var Fe;_e!==_||D!==0&&_e.nodeType!==3||(K=W+D),_e!==E||M!==0&&_e.nodeType!==3||(Q=W+M),_e.nodeType===3&&(W+=_e.nodeValue.length),(Fe=_e.firstChild)!==null;)me=_e,_e=Fe;for(;;){if(_e===p)break t;if(me===_&&++se===D&&(K=W),me===E&&++Se===M&&(Q=W),(Fe=_e.nextSibling)!==null)break;_e=me,me=_e.parentNode}_e=Fe}_=K===-1||Q===-1?null:{start:K,end:Q}}else _=null}_=_||{start:0,end:0}}else _=null;for(ub={focusedElem:p,selectionRange:_},om=!1,He=m;He!==null;)if(m=He,p=m.child,(m.subtreeFlags&1028)!==0&&p!==null)p.return=m,He=p;else for(;He!==null;){m=He;try{var Ye=m.alternate;if((m.flags&1024)!==0)switch(m.tag){case 0:case 11:case 15:break;case 1:if(Ye!==null){var Xe=Ye.memoizedProps,Pr=Ye.memoizedState,ne=m.stateNode,ee=ne.getSnapshotBeforeUpdate(m.elementType===m.type?Xe:pa(m.type,Xe),Pr);ne.__reactInternalSnapshotBeforeUpdate=ee}break;case 3:var ie=m.stateNode.containerInfo;ie.nodeType===1?ie.textContent="":ie.nodeType===9&&ie.documentElement&&ie.removeChild(ie.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Te){wr(m,m.return,Te)}if(p=m.sibling,p!==null){p.return=m.return,He=p;break}He=m.return}return Ye=AR,AR=!1,Ye}function Ph(p,m,_){var M=m.updateQueue;if(M=M!==null?M.lastEffect:null,M!==null){var D=M=M.next;do{if((D.tag&p)===p){var E=D.destroy;D.destroy=void 0,E!==void 0&&Zb(m,_,E)}D=D.next}while(D!==M)}}function $m(p,m){if(m=m.updateQueue,m=m!==null?m.lastEffect:null,m!==null){var _=m=m.next;do{if((_.tag&p)===p){var M=_.create;_.destroy=M()}_=_.next}while(_!==m)}}function Kb(p){var m=p.ref;if(m!==null){var _=p.stateNode;switch(p.tag){case 5:p=_;break;default:p=_}typeof m=="function"?m(p):m.current=p}}function MR(p){var m=p.alternate;m!==null&&(p.alternate=null,MR(m)),p.child=null,p.deletions=null,p.sibling=null,p.tag===5&&(m=p.stateNode,m!==null&&(delete m[Ha],delete m[xh],delete m[hb],delete m[YU],delete m[qU])),p.stateNode=null,p.return=null,p.dependencies=null,p.memoizedProps=null,p.memoizedState=null,p.pendingProps=null,p.stateNode=null,p.updateQueue=null}function kR(p){return p.tag===5||p.tag===3||p.tag===4}function IR(p){e:for(;;){for(;p.sibling===null;){if(p.return===null||kR(p.return))return null;p=p.return}for(p.sibling.return=p.return,p=p.sibling;p.tag!==5&&p.tag!==6&&p.tag!==18;){if(p.flags&2||p.child===null||p.tag===4)continue e;p.child.return=p,p=p.child}if(!(p.flags&2))return p.stateNode}}function Qb(p,m,_){var M=p.tag;if(M===5||M===6)p=p.stateNode,m?_.nodeType===8?_.parentNode.insertBefore(p,m):_.insertBefore(p,m):(_.nodeType===8?(m=_.parentNode,m.insertBefore(p,_)):(m=_,m.appendChild(p)),_=_._reactRootContainer,_!=null||m.onclick!==null||(m.onclick=ym));else if(M!==4&&(p=p.child,p!==null))for(Qb(p,m,_),p=p.sibling;p!==null;)Qb(p,m,_),p=p.sibling}function Jb(p,m,_){var M=p.tag;if(M===5||M===6)p=p.stateNode,m?_.insertBefore(p,m):_.appendChild(p);else if(M!==4&&(p=p.child,p!==null))for(Jb(p,m,_),p=p.sibling;p!==null;)Jb(p,m,_),p=p.sibling}var tn=null,va=!1;function Es(p,m,_){for(_=_.child;_!==null;)PR(p,m,_),_=_.sibling}function PR(p,m,_){if(Ga&&typeof Ga.onCommitFiberUnmount=="function")try{Ga.onCommitFiberUnmount(em,_)}catch{}switch(_.tag){case 5:gn||Qc(_,m);case 6:var M=tn,D=va;tn=null,Es(p,m,_),tn=M,va=D,tn!==null&&(va?(p=tn,_=_.stateNode,p.nodeType===8?p.parentNode.removeChild(_):p.removeChild(_)):tn.removeChild(_.stateNode));break;case 18:tn!==null&&(va?(p=tn,_=_.stateNode,p.nodeType===8?db(p.parentNode,_):p.nodeType===1&&db(p,_),lh(p)):db(tn,_.stateNode));break;case 4:M=tn,D=va,tn=_.stateNode.containerInfo,va=!0,Es(p,m,_),tn=M,va=D;break;case 0:case 11:case 14:case 15:if(!gn&&(M=_.updateQueue,M!==null&&(M=M.lastEffect,M!==null))){D=M=M.next;do{var E=D,W=E.destroy;E=E.tag,W!==void 0&&((E&2)!==0||(E&4)!==0)&&Zb(_,m,W),D=D.next}while(D!==M)}Es(p,m,_);break;case 1:if(!gn&&(Qc(_,m),M=_.stateNode,typeof M.componentWillUnmount=="function"))try{M.props=_.memoizedProps,M.state=_.memoizedState,M.componentWillUnmount()}catch(K){wr(_,m,K)}Es(p,m,_);break;case 21:Es(p,m,_);break;case 22:_.mode&1?(gn=(M=gn)||_.memoizedState!==null,Es(p,m,_),gn=M):Es(p,m,_);break;default:Es(p,m,_)}}function DR(p){var m=p.updateQueue;if(m!==null){p.updateQueue=null;var _=p.stateNode;_===null&&(_=p.stateNode=new cY),m.forEach(function(M){var D=SY.bind(null,p,M);_.has(M)||(_.add(M),M.then(D,D))})}}function ga(p,m){var _=m.deletions;if(_!==null)for(var M=0;M<_.length;M++){var D=_[M];try{var E=p,W=m,K=W;e:for(;K!==null;){switch(K.tag){case 5:tn=K.stateNode,va=!1;break e;case 3:tn=K.stateNode.containerInfo,va=!0;break e;case 4:tn=K.stateNode.containerInfo,va=!0;break e}K=K.return}if(tn===null)throw Error(r(160));PR(E,W,D),tn=null,va=!1;var Q=D.alternate;Q!==null&&(Q.return=null),D.return=null}catch(se){wr(D,m,se)}}if(m.subtreeFlags&12854)for(m=m.child;m!==null;)RR(m,p),m=m.sibling}function RR(p,m){var _=p.alternate,M=p.flags;switch(p.tag){case 0:case 11:case 14:case 15:if(ga(m,p),Ua(p),M&4){try{Ph(3,p,p.return),$m(3,p)}catch(Xe){wr(p,p.return,Xe)}try{Ph(5,p,p.return)}catch(Xe){wr(p,p.return,Xe)}}break;case 1:ga(m,p),Ua(p),M&512&&_!==null&&Qc(_,_.return);break;case 5:if(ga(m,p),Ua(p),M&512&&_!==null&&Qc(_,_.return),p.flags&32){var D=p.stateNode;try{Pt(D,"")}catch(Xe){wr(p,p.return,Xe)}}if(M&4&&(D=p.stateNode,D!=null)){var E=p.memoizedProps,W=_!==null?_.memoizedProps:E,K=p.type,Q=p.updateQueue;if(p.updateQueue=null,Q!==null)try{K==="input"&&E.type==="radio"&&E.name!=null&&dt(D,E),ht(K,W);var se=ht(K,E);for(W=0;W<Q.length;W+=2){var Se=Q[W],_e=Q[W+1];Se==="style"?Ht(D,_e):Se==="dangerouslySetInnerHTML"?Me(D,_e):Se==="children"?Pt(D,_e):b(D,Se,_e,se)}switch(K){case"input":ct(D,E);break;case"textarea":It(D,E);break;case"select":var me=D._wrapperState.wasMultiple;D._wrapperState.wasMultiple=!!E.multiple;var Fe=E.value;Fe!=null?st(D,!!E.multiple,Fe,!1):me!==!!E.multiple&&(E.defaultValue!=null?st(D,!!E.multiple,E.defaultValue,!0):st(D,!!E.multiple,E.multiple?[]:"",!1))}D[xh]=E}catch(Xe){wr(p,p.return,Xe)}}break;case 6:if(ga(m,p),Ua(p),M&4){if(p.stateNode===null)throw Error(r(162));D=p.stateNode,E=p.memoizedProps;try{D.nodeValue=E}catch(Xe){wr(p,p.return,Xe)}}break;case 3:if(ga(m,p),Ua(p),M&4&&_!==null&&_.memoizedState.isDehydrated)try{lh(m.containerInfo)}catch(Xe){wr(p,p.return,Xe)}break;case 4:ga(m,p),Ua(p);break;case 13:ga(m,p),Ua(p),D=p.child,D.flags&8192&&(E=D.memoizedState!==null,D.stateNode.isHidden=E,!E||D.alternate!==null&&D.alternate.memoizedState!==null||(r_=Ir())),M&4&&DR(p);break;case 22:if(Se=_!==null&&_.memoizedState!==null,p.mode&1?(gn=(se=gn)||Se,ga(m,p),gn=se):ga(m,p),Ua(p),M&8192){if(se=p.memoizedState!==null,(p.stateNode.isHidden=se)&&!Se&&(p.mode&1)!==0)for(He=p,Se=p.child;Se!==null;){for(_e=He=Se;He!==null;){switch(me=He,Fe=me.child,me.tag){case 0:case 11:case 14:case 15:Ph(4,me,me.return);break;case 1:Qc(me,me.return);var Ye=me.stateNode;if(typeof Ye.componentWillUnmount=="function"){M=me,_=me.return;try{m=M,Ye.props=m.memoizedProps,Ye.state=m.memoizedState,Ye.componentWillUnmount()}catch(Xe){wr(M,_,Xe)}}break;case 5:Qc(me,me.return);break;case 22:if(me.memoizedState!==null){OR(_e);continue}}Fe!==null?(Fe.return=me,He=Fe):OR(_e)}Se=Se.sibling}e:for(Se=null,_e=p;;){if(_e.tag===5){if(Se===null){Se=_e;try{D=_e.stateNode,se?(E=D.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none"):(K=_e.stateNode,Q=_e.memoizedProps.style,W=Q!=null&&Q.hasOwnProperty("display")?Q.display:null,K.style.display=wt("display",W))}catch(Xe){wr(p,p.return,Xe)}}}else if(_e.tag===6){if(Se===null)try{_e.stateNode.nodeValue=se?"":_e.memoizedProps}catch(Xe){wr(p,p.return,Xe)}}else if((_e.tag!==22&&_e.tag!==23||_e.memoizedState===null||_e===p)&&_e.child!==null){_e.child.return=_e,_e=_e.child;continue}if(_e===p)break e;for(;_e.sibling===null;){if(_e.return===null||_e.return===p)break e;Se===_e&&(Se=null),_e=_e.return}Se===_e&&(Se=null),_e.sibling.return=_e.return,_e=_e.sibling}}break;case 19:ga(m,p),Ua(p),M&4&&DR(p);break;case 21:break;default:ga(m,p),Ua(p)}}function Ua(p){var m=p.flags;if(m&2){try{e:{for(var _=p.return;_!==null;){if(kR(_)){var M=_;break e}_=_.return}throw Error(r(160))}switch(M.tag){case 5:var D=M.stateNode;M.flags&32&&(Pt(D,""),M.flags&=-33);var E=IR(p);Jb(p,E,D);break;case 3:case 4:var W=M.stateNode.containerInfo,K=IR(p);Qb(p,K,W);break;default:throw Error(r(161))}}catch(Q){wr(p,p.return,Q)}p.flags&=-3}m&4096&&(p.flags&=-4097)}function dY(p,m,_){He=p,ER(p)}function ER(p,m,_){for(var M=(p.mode&1)!==0;He!==null;){var D=He,E=D.child;if(D.tag===22&&M){var W=D.memoizedState!==null||Vm;if(!W){var K=D.alternate,Q=K!==null&&K.memoizedState!==null||gn;K=Vm;var se=gn;if(Vm=W,(gn=Q)&&!se)for(He=D;He!==null;)W=He,Q=W.child,W.tag===22&&W.memoizedState!==null?NR(D):Q!==null?(Q.return=W,He=Q):NR(D);for(;E!==null;)He=E,ER(E),E=E.sibling;He=D,Vm=K,gn=se}LR(p)}else(D.subtreeFlags&8772)!==0&&E!==null?(E.return=D,He=E):LR(p)}}function LR(p){for(;He!==null;){var m=He;if((m.flags&8772)!==0){var _=m.alternate;try{if((m.flags&8772)!==0)switch(m.tag){case 0:case 11:case 15:gn||$m(5,m);break;case 1:var M=m.stateNode;if(m.flags&4&&!gn)if(_===null)M.componentDidMount();else{var D=m.elementType===m.type?_.memoizedProps:pa(m.type,_.memoizedProps);M.componentDidUpdate(D,_.memoizedState,M.__reactInternalSnapshotBeforeUpdate)}var E=m.updateQueue;E!==null&&OD(m,E,M);break;case 3:var W=m.updateQueue;if(W!==null){if(_=null,m.child!==null)switch(m.child.tag){case 5:_=m.child.stateNode;break;case 1:_=m.child.stateNode}OD(m,W,_)}break;case 5:var K=m.stateNode;if(_===null&&m.flags&4){_=K;var Q=m.memoizedProps;switch(m.type){case"button":case"input":case"select":case"textarea":Q.autoFocus&&_.focus();break;case"img":Q.src&&(_.src=Q.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(m.memoizedState===null){var se=m.alternate;if(se!==null){var Se=se.memoizedState;if(Se!==null){var _e=Se.dehydrated;_e!==null&&lh(_e)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}gn||m.flags&512&&Kb(m)}catch(me){wr(m,m.return,me)}}if(m===p){He=null;break}if(_=m.sibling,_!==null){_.return=m.return,He=_;break}He=m.return}}function OR(p){for(;He!==null;){var m=He;if(m===p){He=null;break}var _=m.sibling;if(_!==null){_.return=m.return,He=_;break}He=m.return}}function NR(p){for(;He!==null;){var m=He;try{switch(m.tag){case 0:case 11:case 15:var _=m.return;try{$m(4,m)}catch(Q){wr(m,_,Q)}break;case 1:var M=m.stateNode;if(typeof M.componentDidMount=="function"){var D=m.return;try{M.componentDidMount()}catch(Q){wr(m,D,Q)}}var E=m.return;try{Kb(m)}catch(Q){wr(m,E,Q)}break;case 5:var W=m.return;try{Kb(m)}catch(Q){wr(m,W,Q)}}}catch(Q){wr(m,m.return,Q)}if(m===p){He=null;break}var K=m.sibling;if(K!==null){K.return=m.return,He=K;break}He=m.return}}var hY=Math.ceil,Gm=w.ReactCurrentDispatcher,e_=w.ReactCurrentOwner,Li=w.ReactCurrentBatchConfig,Wt=0,Xr=null,Or=null,rn=0,gi=0,Jc=ks(0),$r=0,Dh=null,Xl=0,Hm=0,t_=0,Rh=null,Yn=null,r_=0,ef=1/0,Ho=null,Wm=!1,n_=null,Ls=null,jm=!1,Os=null,Um=0,Eh=0,i_=null,Ym=-1,qm=0;function Mn(){return(Wt&6)!==0?Ir():Ym!==-1?Ym:Ym=Ir()}function Ns(p){return(p.mode&1)===0?1:(Wt&2)!==0&&rn!==0?rn&-rn:ZU.transition!==null?(qm===0&&(qm=IP()),qm):(p=nr,p!==0||(p=window.event,p=p===void 0?16:BP(p.type)),p)}function ma(p,m,_,M){if(50<Eh)throw Eh=0,i_=null,Error(r(185));nh(p,_,M),((Wt&2)===0||p!==Xr)&&(p===Xr&&((Wt&2)===0&&(Hm|=_),$r===4&&zs(p,rn)),qn(p,M),_===1&&Wt===0&&(m.mode&1)===0&&(ef=Ir()+500,_m&&Ps()))}function qn(p,m){var _=p.callbackNode;Z7(p,m);var M=nm(p,p===Xr?rn:0);if(M===0)_!==null&&Rt(_),p.callbackNode=null,p.callbackPriority=0;else if(m=M&-M,p.callbackPriority!==m){if(_!=null&&Rt(_),m===1)p.tag===0?XU(BR.bind(null,p)):wD(BR.bind(null,p)),jU(function(){(Wt&6)===0&&Ps()}),_=null;else{switch(PP(M)){case 1:_=zS;break;case 4:_=MP;break;case 16:_=Jg;break;case 536870912:_=kP;break;default:_=Jg}_=UR(_,zR.bind(null,p))}p.callbackPriority=m,p.callbackNode=_}}function zR(p,m){if(Ym=-1,qm=0,(Wt&6)!==0)throw Error(r(327));var _=p.callbackNode;if(tf()&&p.callbackNode!==_)return null;var M=nm(p,p===Xr?rn:0);if(M===0)return null;if((M&30)!==0||(M&p.expiredLanes)!==0||m)m=Xm(p,M);else{m=M;var D=Wt;Wt|=2;var E=VR();(Xr!==p||rn!==m)&&(Ho=null,ef=Ir()+500,Kl(p,m));do try{gY();break}catch(K){FR(p,K)}while(!0);_b(),Gm.current=E,Wt=D,Or!==null?m=0:(Xr=null,rn=0,m=$r)}if(m!==0){if(m===2&&(D=BS(p),D!==0&&(M=D,m=a_(p,D))),m===1)throw _=Dh,Kl(p,0),zs(p,M),qn(p,Ir()),_;if(m===6)zs(p,M);else{if(D=p.current.alternate,(M&30)===0&&!pY(D)&&(m=Xm(p,M),m===2&&(E=BS(p),E!==0&&(M=E,m=a_(p,E))),m===1))throw _=Dh,Kl(p,0),zs(p,M),qn(p,Ir()),_;switch(p.finishedWork=D,p.finishedLanes=M,m){case 0:case 1:throw Error(r(345));case 2:Ql(p,Yn,Ho);break;case 3:if(zs(p,M),(M&130023424)===M&&(m=r_+500-Ir(),10<m)){if(nm(p,0)!==0)break;if(D=p.suspendedLanes,(D&M)!==M){Mn(),p.pingedLanes|=p.suspendedLanes&D;break}p.timeoutHandle=fb(Ql.bind(null,p,Yn,Ho),m);break}Ql(p,Yn,Ho);break;case 4:if(zs(p,M),(M&4194240)===M)break;for(m=p.eventTimes,D=-1;0<M;){var W=31-fa(M);E=1<<W,W=m[W],W>D&&(D=W),M&=~E}if(M=D,M=Ir()-M,M=(120>M?120:480>M?480:1080>M?1080:1920>M?1920:3e3>M?3e3:4320>M?4320:1960*hY(M/1960))-M,10<M){p.timeoutHandle=fb(Ql.bind(null,p,Yn,Ho),M);break}Ql(p,Yn,Ho);break;case 5:Ql(p,Yn,Ho);break;default:throw Error(r(329))}}}return qn(p,Ir()),p.callbackNode===_?zR.bind(null,p):null}function a_(p,m){var _=Rh;return p.current.memoizedState.isDehydrated&&(Kl(p,m).flags|=256),p=Xm(p,m),p!==2&&(m=Yn,Yn=_,m!==null&&o_(m)),p}function o_(p){Yn===null?Yn=p:Yn.push.apply(Yn,p)}function pY(p){for(var m=p;;){if(m.flags&16384){var _=m.updateQueue;if(_!==null&&(_=_.stores,_!==null))for(var M=0;M<_.length;M++){var D=_[M],E=D.getSnapshot;D=D.value;try{if(!da(E(),D))return!1}catch{return!1}}}if(_=m.child,m.subtreeFlags&16384&&_!==null)_.return=m,m=_;else{if(m===p)break;for(;m.sibling===null;){if(m.return===null||m.return===p)return!0;m=m.return}m.sibling.return=m.return,m=m.sibling}}return!0}function zs(p,m){for(m&=~t_,m&=~Hm,p.suspendedLanes|=m,p.pingedLanes&=~m,p=p.expirationTimes;0<m;){var _=31-fa(m),M=1<<_;p[_]=-1,m&=~M}}function BR(p){if((Wt&6)!==0)throw Error(r(327));tf();var m=nm(p,0);if((m&1)===0)return qn(p,Ir()),null;var _=Xm(p,m);if(p.tag!==0&&_===2){var M=BS(p);M!==0&&(m=M,_=a_(p,M))}if(_===1)throw _=Dh,Kl(p,0),zs(p,m),qn(p,Ir()),_;if(_===6)throw Error(r(345));return p.finishedWork=p.current.alternate,p.finishedLanes=m,Ql(p,Yn,Ho),qn(p,Ir()),null}function s_(p,m){var _=Wt;Wt|=1;try{return p(m)}finally{Wt=_,Wt===0&&(ef=Ir()+500,_m&&Ps())}}function Zl(p){Os!==null&&Os.tag===0&&(Wt&6)===0&&tf();var m=Wt;Wt|=1;var _=Li.transition,M=nr;try{if(Li.transition=null,nr=1,p)return p()}finally{nr=M,Li.transition=_,Wt=m,(Wt&6)===0&&Ps()}}function l_(){gi=Jc.current,pr(Jc)}function Kl(p,m){p.finishedWork=null,p.finishedLanes=0;var _=p.timeoutHandle;if(_!==-1&&(p.timeoutHandle=-1,WU(_)),Or!==null)for(_=Or.return;_!==null;){var M=_;switch(mb(M),M.tag){case 1:M=M.type.childContextTypes,M!=null&&Sm();break;case 3:Zc(),pr(Wn),pr(hn),Pb();break;case 5:kb(M);break;case 4:Zc();break;case 13:pr(yr);break;case 19:pr(yr);break;case 10:wb(M.type._context);break;case 22:case 23:l_()}_=_.return}if(Xr=p,Or=p=Bs(p.current,null),rn=gi=m,$r=0,Dh=null,t_=Hm=Xl=0,Yn=Rh=null,Ul!==null){for(m=0;m<Ul.length;m++)if(_=Ul[m],M=_.interleaved,M!==null){_.interleaved=null;var D=M.next,E=_.pending;if(E!==null){var W=E.next;E.next=D,M.next=W}_.pending=M}Ul=null}return p}function FR(p,m){do{var _=Or;try{if(_b(),Rm.current=Nm,Em){for(var M=xr.memoizedState;M!==null;){var D=M.queue;D!==null&&(D.pending=null),M=M.next}Em=!1}if(ql=0,qr=Vr=xr=null,Th=!1,Ah=0,e_.current=null,_===null||_.return===null){$r=1,Dh=m,Or=null;break}e:{var E=p,W=_.return,K=_,Q=m;if(m=rn,K.flags|=32768,Q!==null&&typeof Q=="object"&&typeof Q.then=="function"){var se=Q,Se=K,_e=Se.tag;if((Se.mode&1)===0&&(_e===0||_e===11||_e===15)){var me=Se.alternate;me?(Se.updateQueue=me.updateQueue,Se.memoizedState=me.memoizedState,Se.lanes=me.lanes):(Se.updateQueue=null,Se.memoizedState=null)}var Fe=cR(W);if(Fe!==null){Fe.flags&=-257,fR(Fe,W,K,E,m),Fe.mode&1&&uR(E,se,m),m=Fe,Q=se;var Ye=m.updateQueue;if(Ye===null){var Xe=new Set;Xe.add(Q),m.updateQueue=Xe}else Ye.add(Q);break e}else{if((m&1)===0){uR(E,se,m),u_();break e}Q=Error(r(426))}}else if(vr&&K.mode&1){var Pr=cR(W);if(Pr!==null){(Pr.flags&65536)===0&&(Pr.flags|=256),fR(Pr,W,K,E,m),Sb(Kc(Q,K));break e}}E=Q=Kc(Q,K),$r!==4&&($r=2),Rh===null?Rh=[E]:Rh.push(E),E=W;do{switch(E.tag){case 3:E.flags|=65536,m&=-m,E.lanes|=m;var ne=sR(E,Q,m);LD(E,ne);break e;case 1:K=Q;var ee=E.type,ie=E.stateNode;if((E.flags&128)===0&&(typeof ee.getDerivedStateFromError=="function"||ie!==null&&typeof ie.componentDidCatch=="function"&&(Ls===null||!Ls.has(ie)))){E.flags|=65536,m&=-m,E.lanes|=m;var Te=lR(E,K,m);LD(E,Te);break e}}E=E.return}while(E!==null)}GR(_)}catch(Ke){m=Ke,Or===_&&_!==null&&(Or=_=_.return);continue}break}while(!0)}function VR(){var p=Gm.current;return Gm.current=Nm,p===null?Nm:p}function u_(){($r===0||$r===3||$r===2)&&($r=4),Xr===null||(Xl&268435455)===0&&(Hm&268435455)===0||zs(Xr,rn)}function Xm(p,m){var _=Wt;Wt|=2;var M=VR();(Xr!==p||rn!==m)&&(Ho=null,Kl(p,m));do try{vY();break}catch(D){FR(p,D)}while(!0);if(_b(),Wt=_,Gm.current=M,Or!==null)throw Error(r(261));return Xr=null,rn=0,$r}function vY(){for(;Or!==null;)$R(Or)}function gY(){for(;Or!==null&&!Tn();)$R(Or)}function $R(p){var m=jR(p.alternate,p,gi);p.memoizedProps=p.pendingProps,m===null?GR(p):Or=m,e_.current=null}function GR(p){var m=p;do{var _=m.alternate;if(p=m.return,(m.flags&32768)===0){if(_=lY(_,m,gi),_!==null){Or=_;return}}else{if(_=uY(_,m),_!==null){_.flags&=32767,Or=_;return}if(p!==null)p.flags|=32768,p.subtreeFlags=0,p.deletions=null;else{$r=6,Or=null;return}}if(m=m.sibling,m!==null){Or=m;return}Or=m=p}while(m!==null);$r===0&&($r=5)}function Ql(p,m,_){var M=nr,D=Li.transition;try{Li.transition=null,nr=1,mY(p,m,_,M)}finally{Li.transition=D,nr=M}return null}function mY(p,m,_,M){do tf();while(Os!==null);if((Wt&6)!==0)throw Error(r(327));_=p.finishedWork;var D=p.finishedLanes;if(_===null)return null;if(p.finishedWork=null,p.finishedLanes=0,_===p.current)throw Error(r(177));p.callbackNode=null,p.callbackPriority=0;var E=_.lanes|_.childLanes;if(K7(p,E),p===Xr&&(Or=Xr=null,rn=0),(_.subtreeFlags&2064)===0&&(_.flags&2064)===0||jm||(jm=!0,UR(Jg,function(){return tf(),null})),E=(_.flags&15990)!==0,(_.subtreeFlags&15990)!==0||E){E=Li.transition,Li.transition=null;var W=nr;nr=1;var K=Wt;Wt|=4,e_.current=null,fY(p,_),RR(_,p),zU(ub),om=!!lb,ub=lb=null,p.current=_,dY(_),G7(),Wt=K,nr=W,Li.transition=E}else p.current=_;if(jm&&(jm=!1,Os=p,Um=D),E=p.pendingLanes,E===0&&(Ls=null),j7(_.stateNode),qn(p,Ir()),m!==null)for(M=p.onRecoverableError,_=0;_<m.length;_++)D=m[_],M(D.value,{componentStack:D.stack,digest:D.digest});if(Wm)throw Wm=!1,p=n_,n_=null,p;return(Um&1)!==0&&p.tag!==0&&tf(),E=p.pendingLanes,(E&1)!==0?p===i_?Eh++:(Eh=0,i_=p):Eh=0,Ps(),null}function tf(){if(Os!==null){var p=PP(Um),m=Li.transition,_=nr;try{if(Li.transition=null,nr=16>p?16:p,Os===null)var M=!1;else{if(p=Os,Os=null,Um=0,(Wt&6)!==0)throw Error(r(331));var D=Wt;for(Wt|=4,He=p.current;He!==null;){var E=He,W=E.child;if((He.flags&16)!==0){var K=E.deletions;if(K!==null){for(var Q=0;Q<K.length;Q++){var se=K[Q];for(He=se;He!==null;){var Se=He;switch(Se.tag){case 0:case 11:case 15:Ph(8,Se,E)}var _e=Se.child;if(_e!==null)_e.return=Se,He=_e;else for(;He!==null;){Se=He;var me=Se.sibling,Fe=Se.return;if(MR(Se),Se===se){He=null;break}if(me!==null){me.return=Fe,He=me;break}He=Fe}}}var Ye=E.alternate;if(Ye!==null){var Xe=Ye.child;if(Xe!==null){Ye.child=null;do{var Pr=Xe.sibling;Xe.sibling=null,Xe=Pr}while(Xe!==null)}}He=E}}if((E.subtreeFlags&2064)!==0&&W!==null)W.return=E,He=W;else e:for(;He!==null;){if(E=He,(E.flags&2048)!==0)switch(E.tag){case 0:case 11:case 15:Ph(9,E,E.return)}var ne=E.sibling;if(ne!==null){ne.return=E.return,He=ne;break e}He=E.return}}var ee=p.current;for(He=ee;He!==null;){W=He;var ie=W.child;if((W.subtreeFlags&2064)!==0&&ie!==null)ie.return=W,He=ie;else e:for(W=ee;He!==null;){if(K=He,(K.flags&2048)!==0)try{switch(K.tag){case 0:case 11:case 15:$m(9,K)}}catch(Ke){wr(K,K.return,Ke)}if(K===W){He=null;break e}var Te=K.sibling;if(Te!==null){Te.return=K.return,He=Te;break e}He=K.return}}if(Wt=D,Ps(),Ga&&typeof Ga.onPostCommitFiberRoot=="function")try{Ga.onPostCommitFiberRoot(em,p)}catch{}M=!0}return M}finally{nr=_,Li.transition=m}}return!1}function HR(p,m,_){m=Kc(_,m),m=sR(p,m,1),p=Rs(p,m,1),m=Mn(),p!==null&&(nh(p,1,m),qn(p,m))}function wr(p,m,_){if(p.tag===3)HR(p,p,_);else for(;m!==null;){if(m.tag===3){HR(m,p,_);break}else if(m.tag===1){var M=m.stateNode;if(typeof m.type.getDerivedStateFromError=="function"||typeof M.componentDidCatch=="function"&&(Ls===null||!Ls.has(M))){p=Kc(_,p),p=lR(m,p,1),m=Rs(m,p,1),p=Mn(),m!==null&&(nh(m,1,p),qn(m,p));break}}m=m.return}}function yY(p,m,_){var M=p.pingCache;M!==null&&M.delete(m),m=Mn(),p.pingedLanes|=p.suspendedLanes&_,Xr===p&&(rn&_)===_&&($r===4||$r===3&&(rn&130023424)===rn&&500>Ir()-r_?Kl(p,0):t_|=_),qn(p,m)}function WR(p,m){m===0&&((p.mode&1)===0?m=1:(m=rm,rm<<=1,(rm&130023424)===0&&(rm=4194304)));var _=Mn();p=Vo(p,m),p!==null&&(nh(p,m,_),qn(p,_))}function xY(p){var m=p.memoizedState,_=0;m!==null&&(_=m.retryLane),WR(p,_)}function SY(p,m){var _=0;switch(p.tag){case 13:var M=p.stateNode,D=p.memoizedState;D!==null&&(_=D.retryLane);break;case 19:M=p.stateNode;break;default:throw Error(r(314))}M!==null&&M.delete(m),WR(p,_)}var jR;jR=function(p,m,_){if(p!==null)if(p.memoizedProps!==m.pendingProps||Wn.current)Un=!0;else{if((p.lanes&_)===0&&(m.flags&128)===0)return Un=!1,sY(p,m,_);Un=(p.flags&131072)!==0}else Un=!1,vr&&(m.flags&1048576)!==0&&CD(m,Cm,m.index);switch(m.lanes=0,m.tag){case 2:var M=m.type;Fm(p,m),p=m.pendingProps;var D=Hc(m,hn.current);Xc(m,_),D=Eb(null,m,M,p,D,_);var E=Lb();return m.flags|=1,typeof D=="object"&&D!==null&&typeof D.render=="function"&&D.$$typeof===void 0?(m.tag=1,m.memoizedState=null,m.updateQueue=null,jn(M)?(E=!0,bm(m)):E=!1,m.memoizedState=D.state!==null&&D.state!==void 0?D.state:null,Ab(m),D.updater=zm,m.stateNode=D,D._reactInternals=m,Vb(m,M,p,_),m=Wb(null,m,M,!0,E,_)):(m.tag=0,vr&&E&&gb(m),An(null,m,D,_),m=m.child),m;case 16:M=m.elementType;e:{switch(Fm(p,m),p=m.pendingProps,D=M._init,M=D(M._payload),m.type=M,D=m.tag=_Y(M),p=pa(M,p),D){case 0:m=Hb(null,m,M,p,_);break e;case 1:m=mR(null,m,M,p,_);break e;case 11:m=dR(null,m,M,p,_);break e;case 14:m=hR(null,m,M,pa(M.type,p),_);break e}throw Error(r(306,M,""))}return m;case 0:return M=m.type,D=m.pendingProps,D=m.elementType===M?D:pa(M,D),Hb(p,m,M,D,_);case 1:return M=m.type,D=m.pendingProps,D=m.elementType===M?D:pa(M,D),mR(p,m,M,D,_);case 3:e:{if(yR(m),p===null)throw Error(r(387));M=m.pendingProps,E=m.memoizedState,D=E.element,ED(p,m),Pm(m,M,null,_);var W=m.memoizedState;if(M=W.element,E.isDehydrated)if(E={element:M,isDehydrated:!1,cache:W.cache,pendingSuspenseBoundaries:W.pendingSuspenseBoundaries,transitions:W.transitions},m.updateQueue.baseState=E,m.memoizedState=E,m.flags&256){D=Kc(Error(r(423)),m),m=xR(p,m,M,_,D);break e}else if(M!==D){D=Kc(Error(r(424)),m),m=xR(p,m,M,_,D);break e}else for(vi=Ms(m.stateNode.containerInfo.firstChild),pi=m,vr=!0,ha=null,_=DD(m,null,M,_),m.child=_;_;)_.flags=_.flags&-3|4096,_=_.sibling;else{if(Uc(),M===D){m=Go(p,m,_);break e}An(p,m,M,_)}m=m.child}return m;case 5:return ND(m),p===null&&xb(m),M=m.type,D=m.pendingProps,E=p!==null?p.memoizedProps:null,W=D.children,cb(M,D)?W=null:E!==null&&cb(M,E)&&(m.flags|=32),gR(p,m),An(p,m,W,_),m.child;case 6:return p===null&&xb(m),null;case 13:return SR(p,m,_);case 4:return Mb(m,m.stateNode.containerInfo),M=m.pendingProps,p===null?m.child=Yc(m,null,M,_):An(p,m,M,_),m.child;case 11:return M=m.type,D=m.pendingProps,D=m.elementType===M?D:pa(M,D),dR(p,m,M,D,_);case 7:return An(p,m,m.pendingProps,_),m.child;case 8:return An(p,m,m.pendingProps.children,_),m.child;case 12:return An(p,m,m.pendingProps.children,_),m.child;case 10:e:{if(M=m.type._context,D=m.pendingProps,E=m.memoizedProps,W=D.value,ur(Mm,M._currentValue),M._currentValue=W,E!==null)if(da(E.value,W)){if(E.children===D.children&&!Wn.current){m=Go(p,m,_);break e}}else for(E=m.child,E!==null&&(E.return=m);E!==null;){var K=E.dependencies;if(K!==null){W=E.child;for(var Q=K.firstContext;Q!==null;){if(Q.context===M){if(E.tag===1){Q=$o(-1,_&-_),Q.tag=2;var se=E.updateQueue;if(se!==null){se=se.shared;var Se=se.pending;Se===null?Q.next=Q:(Q.next=Se.next,Se.next=Q),se.pending=Q}}E.lanes|=_,Q=E.alternate,Q!==null&&(Q.lanes|=_),Cb(E.return,_,m),K.lanes|=_;break}Q=Q.next}}else if(E.tag===10)W=E.type===m.type?null:E.child;else if(E.tag===18){if(W=E.return,W===null)throw Error(r(341));W.lanes|=_,K=W.alternate,K!==null&&(K.lanes|=_),Cb(W,_,m),W=E.sibling}else W=E.child;if(W!==null)W.return=E;else for(W=E;W!==null;){if(W===m){W=null;break}if(E=W.sibling,E!==null){E.return=W.return,W=E;break}W=W.return}E=W}An(p,m,D.children,_),m=m.child}return m;case 9:return D=m.type,M=m.pendingProps.children,Xc(m,_),D=Ri(D),M=M(D),m.flags|=1,An(p,m,M,_),m.child;case 14:return M=m.type,D=pa(M,m.pendingProps),D=pa(M.type,D),hR(p,m,M,D,_);case 15:return pR(p,m,m.type,m.pendingProps,_);case 17:return M=m.type,D=m.pendingProps,D=m.elementType===M?D:pa(M,D),Fm(p,m),m.tag=1,jn(M)?(p=!0,bm(m)):p=!1,Xc(m,_),aR(m,M,D),Vb(m,M,D,_),Wb(null,m,M,!0,p,_);case 19:return _R(p,m,_);case 22:return vR(p,m,_)}throw Error(r(156,m.tag))};function UR(p,m){return Qg(p,m)}function bY(p,m,_,M){this.tag=p,this.key=_,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=m,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=M,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oi(p,m,_,M){return new bY(p,m,_,M)}function c_(p){return p=p.prototype,!(!p||!p.isReactComponent)}function _Y(p){if(typeof p=="function")return c_(p)?1:0;if(p!=null){if(p=p.$$typeof,p===L)return 11;if(p===F)return 14}return 2}function Bs(p,m){var _=p.alternate;return _===null?(_=Oi(p.tag,m,p.key,p.mode),_.elementType=p.elementType,_.type=p.type,_.stateNode=p.stateNode,_.alternate=p,p.alternate=_):(_.pendingProps=m,_.type=p.type,_.flags=0,_.subtreeFlags=0,_.deletions=null),_.flags=p.flags&14680064,_.childLanes=p.childLanes,_.lanes=p.lanes,_.child=p.child,_.memoizedProps=p.memoizedProps,_.memoizedState=p.memoizedState,_.updateQueue=p.updateQueue,m=p.dependencies,_.dependencies=m===null?null:{lanes:m.lanes,firstContext:m.firstContext},_.sibling=p.sibling,_.index=p.index,_.ref=p.ref,_}function Zm(p,m,_,M,D,E){var W=2;if(M=p,typeof p=="function")c_(p)&&(W=1);else if(typeof p=="string")W=5;else e:switch(p){case A:return Jl(_.children,D,E,m);case k:W=8,D|=8;break;case I:return p=Oi(12,_,m,D|2),p.elementType=I,p.lanes=E,p;case O:return p=Oi(13,_,m,D),p.elementType=O,p.lanes=E,p;case z:return p=Oi(19,_,m,D),p.elementType=z,p.lanes=E,p;case q:return Km(_,D,E,m);default:if(typeof p=="object"&&p!==null)switch(p.$$typeof){case P:W=10;break e;case R:W=9;break e;case L:W=11;break e;case F:W=14;break e;case H:W=16,M=null;break e}throw Error(r(130,p==null?p:typeof p,""))}return m=Oi(W,_,m,D),m.elementType=p,m.type=M,m.lanes=E,m}function Jl(p,m,_,M){return p=Oi(7,p,M,m),p.lanes=_,p}function Km(p,m,_,M){return p=Oi(22,p,M,m),p.elementType=q,p.lanes=_,p.stateNode={isHidden:!1},p}function f_(p,m,_){return p=Oi(6,p,null,m),p.lanes=_,p}function d_(p,m,_){return m=Oi(4,p.children!==null?p.children:[],p.key,m),m.lanes=_,m.stateNode={containerInfo:p.containerInfo,pendingChildren:null,implementation:p.implementation},m}function wY(p,m,_,M,D){this.tag=m,this.containerInfo=p,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=FS(0),this.expirationTimes=FS(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=FS(0),this.identifierPrefix=M,this.onRecoverableError=D,this.mutableSourceEagerHydrationData=null}function h_(p,m,_,M,D,E,W,K,Q){return p=new wY(p,m,_,K,Q),m===1?(m=1,E===!0&&(m|=8)):m=0,E=Oi(3,null,null,m),p.current=E,E.stateNode=p,E.memoizedState={element:M,isDehydrated:_,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ab(E),p}function CY(p,m,_){var M=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:C,key:M==null?null:""+M,children:p,containerInfo:m,implementation:_}}function YR(p){if(!p)return Is;p=p._reactInternals;e:{if($a(p)!==p||p.tag!==1)throw Error(r(170));var m=p;do{switch(m.tag){case 3:m=m.stateNode.context;break e;case 1:if(jn(m.type)){m=m.stateNode.__reactInternalMemoizedMergedChildContext;break e}}m=m.return}while(m!==null);throw Error(r(171))}if(p.tag===1){var _=p.type;if(jn(_))return bD(p,_,m)}return m}function qR(p,m,_,M,D,E,W,K,Q){return p=h_(_,M,!0,p,D,E,W,K,Q),p.context=YR(null),_=p.current,M=Mn(),D=Ns(_),E=$o(M,D),E.callback=m??null,Rs(_,E,D),p.current.lanes=D,nh(p,D,M),qn(p,M),p}function Qm(p,m,_,M){var D=m.current,E=Mn(),W=Ns(D);return _=YR(_),m.context===null?m.context=_:m.pendingContext=_,m=$o(E,W),m.payload={element:p},M=M===void 0?null:M,M!==null&&(m.callback=M),p=Rs(D,m,W),p!==null&&(ma(p,D,W,E),Im(p,D,W)),W}function Jm(p){if(p=p.current,!p.child)return null;switch(p.child.tag){case 5:return p.child.stateNode;default:return p.child.stateNode}}function XR(p,m){if(p=p.memoizedState,p!==null&&p.dehydrated!==null){var _=p.retryLane;p.retryLane=_!==0&&_<m?_:m}}function p_(p,m){XR(p,m),(p=p.alternate)&&XR(p,m)}function TY(){return null}var ZR=typeof reportError=="function"?reportError:function(p){console.error(p)};function v_(p){this._internalRoot=p}ey.prototype.render=v_.prototype.render=function(p){var m=this._internalRoot;if(m===null)throw Error(r(409));Qm(p,m,null,null)},ey.prototype.unmount=v_.prototype.unmount=function(){var p=this._internalRoot;if(p!==null){this._internalRoot=null;var m=p.containerInfo;Zl(function(){Qm(null,p,null,null)}),m[No]=null}};function ey(p){this._internalRoot=p}ey.prototype.unstable_scheduleHydration=function(p){if(p){var m=EP();p={blockedOn:null,target:p,priority:m};for(var _=0;_<Cs.length&&m!==0&&m<Cs[_].priority;_++);Cs.splice(_,0,p),_===0&&NP(p)}};function g_(p){return!(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)}function ty(p){return!(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11&&(p.nodeType!==8||p.nodeValue!==" react-mount-point-unstable "))}function KR(){}function AY(p,m,_,M,D){if(D){if(typeof M=="function"){var E=M;M=function(){var se=Jm(W);E.call(se)}}var W=qR(m,M,p,0,null,!1,!1,"",KR);return p._reactRootContainer=W,p[No]=W.current,mh(p.nodeType===8?p.parentNode:p),Zl(),W}for(;D=p.lastChild;)p.removeChild(D);if(typeof M=="function"){var K=M;M=function(){var se=Jm(Q);K.call(se)}}var Q=h_(p,0,!1,null,null,!1,!1,"",KR);return p._reactRootContainer=Q,p[No]=Q.current,mh(p.nodeType===8?p.parentNode:p),Zl(function(){Qm(m,Q,_,M)}),Q}function ry(p,m,_,M,D){var E=_._reactRootContainer;if(E){var W=E;if(typeof D=="function"){var K=D;D=function(){var Q=Jm(W);K.call(Q)}}Qm(m,W,p,D)}else W=AY(_,m,p,D,M);return Jm(W)}DP=function(p){switch(p.tag){case 3:var m=p.stateNode;if(m.current.memoizedState.isDehydrated){var _=rh(m.pendingLanes);_!==0&&(VS(m,_|1),qn(m,Ir()),(Wt&6)===0&&(ef=Ir()+500,Ps()))}break;case 13:Zl(function(){var M=Vo(p,1);if(M!==null){var D=Mn();ma(M,p,1,D)}}),p_(p,1)}},$S=function(p){if(p.tag===13){var m=Vo(p,134217728);if(m!==null){var _=Mn();ma(m,p,134217728,_)}p_(p,134217728)}},RP=function(p){if(p.tag===13){var m=Ns(p),_=Vo(p,m);if(_!==null){var M=Mn();ma(_,p,m,M)}p_(p,m)}},EP=function(){return nr},LP=function(p,m){var _=nr;try{return nr=p,m()}finally{nr=_}},Hn=function(p,m,_){switch(m){case"input":if(ct(p,_),m=_.name,_.type==="radio"&&m!=null){for(_=p;_.parentNode;)_=_.parentNode;for(_=_.querySelectorAll("input[name="+JSON.stringify(""+m)+'][type="radio"]'),m=0;m<_.length;m++){var M=_[m];if(M!==p&&M.form===p.form){var D=xm(M);if(!D)throw Error(r(90));ge(M),ct(M,D)}}}break;case"textarea":It(p,_);break;case"select":m=_.value,m!=null&&st(p,!!_.multiple,m,!1)}},Xd=s_,Zd=Zl;var MY={usingClientEntryPoint:!1,Events:[Sh,$c,xm,Lo,qd,s_]},Lh={findFiberByHostInstance:Gl,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},kY={bundleType:Lh.bundleType,version:Lh.version,rendererPackageName:Lh.rendererPackageName,rendererConfig:Lh.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(p){return p=Zg(p),p===null?null:p.stateNode},findFiberByHostInstance:Lh.findFiberByHostInstance||TY,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 ny=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ny.isDisabled&&ny.supportsFiber)try{em=ny.inject(kY),Ga=ny}catch{}}return Xn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=MY,Xn.createPortal=function(p,m){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g_(m))throw Error(r(200));return CY(p,m,null,_)},Xn.createRoot=function(p,m){if(!g_(p))throw Error(r(299));var _=!1,M="",D=ZR;return m!=null&&(m.unstable_strictMode===!0&&(_=!0),m.identifierPrefix!==void 0&&(M=m.identifierPrefix),m.onRecoverableError!==void 0&&(D=m.onRecoverableError)),m=h_(p,1,!1,null,null,_,!1,M,D),p[No]=m.current,mh(p.nodeType===8?p.parentNode:p),new v_(m)},Xn.findDOMNode=function(p){if(p==null)return null;if(p.nodeType===1)return p;var m=p._reactInternals;if(m===void 0)throw typeof p.render=="function"?Error(r(188)):(p=Object.keys(p).join(","),Error(r(268,p)));return p=Zg(m),p=p===null?null:p.stateNode,p},Xn.flushSync=function(p){return Zl(p)},Xn.hydrate=function(p,m,_){if(!ty(m))throw Error(r(200));return ry(null,p,m,!0,_)},Xn.hydrateRoot=function(p,m,_){if(!g_(p))throw Error(r(405));var M=_!=null&&_.hydratedSources||null,D=!1,E="",W=ZR;if(_!=null&&(_.unstable_strictMode===!0&&(D=!0),_.identifierPrefix!==void 0&&(E=_.identifierPrefix),_.onRecoverableError!==void 0&&(W=_.onRecoverableError)),m=qR(m,null,p,1,_??null,D,!1,E,W),p[No]=m.current,mh(p),M)for(p=0;p<M.length;p++)_=M[p],D=_._getVersion,D=D(_._source),m.mutableSourceEagerHydrationData==null?m.mutableSourceEagerHydrationData=[_,D]:m.mutableSourceEagerHydrationData.push(_,D);return new ey(m)},Xn.render=function(p,m,_){if(!ty(m))throw Error(r(200));return ry(null,p,m,!1,_)},Xn.unmountComponentAtNode=function(p){if(!ty(p))throw Error(r(40));return p._reactRootContainer?(Zl(function(){ry(null,null,p,!1,function(){p._reactRootContainer=null,p[No]=null})}),!0):!1},Xn.unstable_batchedUpdates=s_,Xn.unstable_renderSubtreeIntoContainer=function(p,m,_,M){if(!ty(_))throw Error(r(200));if(p==null||p._reactInternals===void 0)throw Error(r(38));return ry(p,m,_,!1,M)},Xn.version="18.3.1-next-f1338f8080-20240426",Xn}var aE;function oV(){if(aE)return S_.exports;aE=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(),S_.exports=BY(),S_.exports}var oE;function FY(){if(oE)return iy;oE=1;var e=oV();return iy.createRoot=e.createRoot,iy.hydrateRoot=e.hydrateRoot,iy}var VY=FY();const $Y=ki(VY);var G=dx();const Ca=ki(G),bv=RY({__proto__:null,default:Ca},[G]),GY=G.createContext(null),w_={didCatch:!1,error:null};class HY extends G.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=w_}static getDerivedStateFromError(t){return{didCatch:!0,error:t}}resetErrorBoundary(){const{error:t}=this.state;if(t!==null){for(var r,n,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];(r=(n=this.props).onReset)===null||r===void 0||r.call(n,{args:a,reason:"imperative-api"}),this.setState(w_)}}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&&WY(t.resetKeys,i)){var a,o;(a=(o=this.props).onReset)===null||a===void 0||a.call(o,{next:i,prev:t.resetKeys,reason:"keys"}),this.setState(w_)}}render(){const{children:t,fallbackRender:r,FallbackComponent:n,fallback:i}=this.props,{didCatch:a,error:o}=this.state;let s=t;if(a){const l={error:o,resetErrorBoundary:this.resetErrorBoundary};if(typeof r=="function")s=r(l);else if(n)s=G.createElement(n,l);else if(i===null||G.isValidElement(i))s=i;else throw o}return G.createElement(GY.Provider,{value:{didCatch:a,error:o,resetErrorBoundary:this.resetErrorBoundary}},s)}}function WY(){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 nn(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 jY=typeof Symbol=="function"&&Symbol.observable||"@@observable",sE=jY,C_=()=>Math.random().toString(36).substring(7).split("").join("."),UY={INIT:`@@redux/INIT${C_()}`,REPLACE:`@@redux/REPLACE${C_()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${C_()}`},e1=UY;function So(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 sV(e,t,r){if(typeof e!="function")throw new Error(nn(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(nn(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(nn(1));return r(sV)(e,t)}let n=e,i=t,a=new Map,o=a,s=0,l=!1;function u(){o===a&&(o=new Map,a.forEach((y,x)=>{o.set(x,y)}))}function c(){if(l)throw new Error(nn(3));return i}function f(y){if(typeof y!="function")throw new Error(nn(4));if(l)throw new Error(nn(5));let x=!0;u();const S=s++;return o.set(S,y),function(){if(x){if(l)throw new Error(nn(6));x=!1,u(),o.delete(S),a=null}}}function d(y){if(!So(y))throw new Error(nn(7));if(typeof y.type>"u")throw new Error(nn(8));if(typeof y.type!="string")throw new Error(nn(17));if(l)throw new Error(nn(9));try{l=!0,i=n(i,y)}finally{l=!1}return(a=o).forEach(S=>{S()}),y}function h(y){if(typeof y!="function")throw new Error(nn(10));n=y,d({type:e1.REPLACE})}function v(){const y=f;return{subscribe(x){if(typeof x!="object"||x===null)throw new Error(nn(11));function S(){const w=x;w.next&&w.next(c())}return S(),{unsubscribe:y(S)}},[sE](){return this}}}return d({type:e1.INIT}),{dispatch:d,subscribe:f,getState:c,replaceReducer:h,[sE]:v}}function YY(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:e1.INIT})>"u")throw new Error(nn(12));if(typeof r(void 0,{type:e1.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(nn(13))})}function hx(e){const t=Object.keys(e),r={};for(let a=0;a<t.length;a++){const o=t[a];typeof e[o]=="function"&&(r[o]=e[o])}const n=Object.keys(r);let i;try{YY(r)}catch(a){i=a}return function(o={},s){if(i)throw i;let l=!1;const u={};for(let c=0;c<n.length;c++){const f=n[c],d=r[f],h=o[f],v=d(h,s);if(typeof v>"u")throw s&&s.type,new Error(nn(14));u[f]=v,l=l||v!==h}return l=l||n.length!==Object.keys(o).length,l?u:o}}function t1(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function qY(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(nn(15))};const o={getState:i.getState,dispatch:(l,...u)=>a(l,...u)},s=e.map(l=>l(o));return a=t1(...s)(i.dispatch),{...i,dispatch:a}}}function lV(e){return So(e)&&"type"in e&&typeof e.type=="string"}var aM=Symbol.for("immer-nothing"),Yp=Symbol.for("immer-draftable"),si=Symbol.for("immer-state");function sn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var uc=Object.getPrototypeOf;function Pa(e){return!!e&&!!e[si]}function Da(e){var t;return e?uV(e)||Array.isArray(e)||!!e[Yp]||!!((t=e.constructor)!=null&&t[Yp])||fg(e)||dg(e):!1}var XY=Object.prototype.constructor.toString();function uV(e){if(!e||typeof e!="object")return!1;const t=uc(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)===XY}function ZY(e){return Pa(e)||sn(15,e),e[si].base_}function _v(e,t){cc(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function cc(e){const t=e[si];return t?t.type_:Array.isArray(e)?1:fg(e)?2:dg(e)?3:0}function wv(e,t){return cc(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function T_(e,t){return cc(e)===2?e.get(t):e[t]}function cV(e,t,r){const n=cc(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function KY(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function fg(e){return e instanceof Map}function dg(e){return e instanceof Set}function Au(e){return e.copy_||e.base_}function RT(e,t){if(fg(e))return new Map(e);if(dg(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=uV(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[si];let i=Reflect.ownKeys(n);for(let a=0;a<i.length;a++){const o=i[a],s=n[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(n[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[o]})}return Object.create(uc(e),n)}else{const n=uc(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function oM(e,t=!1){return px(e)||Pa(e)||!Da(e)||(cc(e)>1&&(e.set=e.add=e.clear=e.delete=QY),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>oM(n,!0))),e}function QY(){sn(2)}function px(e){return Object.isFrozen(e)}var ET={};function fc(e){const t=ET[e];return t||sn(0,e),t}function JY(e,t){ET[e]||(ET[e]=t)}var Cv;function fV(){return Cv}function eq(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function lE(e,t){t&&(fc("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function LT(e){OT(e),e.drafts_.forEach(tq),e.drafts_=null}function OT(e){e===Cv&&(Cv=e.parent_)}function uE(e){return Cv=eq(Cv,e)}function tq(e){const t=e[si];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function cE(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[si].modified_&&(LT(t),sn(4)),Da(e)&&(e=r1(t,e),t.parent_||n1(t,e)),t.patches_&&fc("Patches").generateReplacementPatches_(r[si].base_,e,t.patches_,t.inversePatches_)):e=r1(t,r,[]),LT(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==aM?e:void 0}function r1(e,t,r){if(px(t))return t;const n=t[si];if(!n)return _v(t,(i,a)=>fE(e,n,t,i,a,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return n1(e,n.base_,!0),n.base_;if(!n.finalized_){n.finalized_=!0,n.scope_.unfinalizedDrafts_--;const i=n.copy_;let a=i,o=!1;n.type_===3&&(a=new Set(i),i.clear(),o=!0),_v(a,(s,l)=>fE(e,n,i,s,l,r,o)),n1(e,i,!1),r&&e.patches_&&fc("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function fE(e,t,r,n,i,a,o){if(Pa(i)){const s=a&&t&&t.type_!==3&&!wv(t.assigned_,n)?a.concat(n):void 0,l=r1(e,i,s);if(cV(r,n,l),Pa(l))e.canAutoFreeze_=!1;else return}else o&&r.add(i);if(Da(i)&&!px(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;r1(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&n1(e,i)}}function n1(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&oM(t,r)}function rq(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:fV(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=sM;r&&(i=[n],a=Tv);const{revoke:o,proxy:s}=Proxy.revocable(i,a);return n.draft_=s,n.revoke_=o,s}var sM={get(e,t){if(t===si)return e;const r=Au(e);if(!wv(r,t))return nq(e,r,t);const n=r[t];return e.finalized_||!Da(n)?n:n===A_(e.base_,t)?(M_(e),e.copy_[t]=zT(n,e)):n},has(e,t){return t in Au(e)},ownKeys(e){return Reflect.ownKeys(Au(e))},set(e,t,r){const n=dV(Au(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=A_(Au(e),t),a=i==null?void 0:i[si];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(KY(r,i)&&(r!==void 0||wv(e.base_,t)))return!0;M_(e),NT(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 A_(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,M_(e),NT(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Au(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){sn(11)},getPrototypeOf(e){return uc(e.base_)},setPrototypeOf(){sn(12)}},Tv={};_v(sM,(e,t)=>{Tv[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Tv.deleteProperty=function(e,t){return Tv.set.call(this,e,t,void 0)};Tv.set=function(e,t,r){return sM.set.call(this,e[0],t,r,e[0])};function A_(e,t){const r=e[si];return(r?Au(r):e)[t]}function nq(e,t,r){var i;const n=dV(t,r);return n?"value"in n?n.value:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function dV(e,t){if(!(t in e))return;let r=uc(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=uc(r)}}function NT(e){e.modified_||(e.modified_=!0,e.parent_&&NT(e.parent_))}function M_(e){e.copy_||(e.copy_=RT(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var iq=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,r,n)=>{if(typeof t=="function"&&typeof r!="function"){const a=r;r=t;const o=this;return function(l=a,...u){return o.produce(l,c=>r.call(this,c,...u))}}typeof r!="function"&&sn(6),n!==void 0&&typeof n!="function"&&sn(7);let i;if(Da(t)){const a=uE(this),o=zT(t,void 0);let s=!0;try{i=r(o),s=!1}finally{s?LT(a):OT(a)}return lE(a,n),cE(i,a)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===aM&&(i=void 0),this.autoFreeze_&&oM(i,!0),n){const a=[],o=[];fc("Patches").generateReplacementPatches_(t,i,a,o),n(a,o)}return i}else sn(1,t)},this.produceWithPatches=(t,r)=>{if(typeof t=="function")return(o,...s)=>this.produceWithPatches(o,l=>t(l,...s));let n,i;return[this.produce(t,r,(o,s)=>{n=o,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){Da(e)||sn(8),Pa(e)&&(e=hV(e));const t=uE(this),r=zT(e,void 0);return r[si].isManual_=!0,OT(t),r}finishDraft(e,t){const r=e&&e[si];(!r||!r.isManual_)&&sn(9);const{scope_:n}=r;return lE(n,t),cE(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=fc("Patches").applyPatches_;return Pa(e)?n(e,t):this.produce(e,i=>n(i,t))}};function zT(e,t){const r=fg(e)?fc("MapSet").proxyMap_(e,t):dg(e)?fc("MapSet").proxySet_(e,t):rq(e,t);return(t?t.scope_:fV()).drafts_.push(r),r}function hV(e){return Pa(e)||sn(10,e),pV(e)}function pV(e){if(!Da(e)||px(e))return e;const t=e[si];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=RT(e,t.scope_.immer_.useStrictShallowCopy_)}else r=RT(e,!0);return _v(r,(n,i)=>{cV(r,n,pV(i))}),t&&(t.finalized_=!1),r}function aq(){const t="replace",r="add",n="remove";function i(d,h,v,g){switch(d.type_){case 0:case 2:return o(d,h,v,g);case 1:return a(d,h,v,g);case 3:return s(d,h,v,g)}}function a(d,h,v,g){let{base_:y,assigned_:x}=d,S=d.copy_;S.length<y.length&&([y,S]=[S,y],[v,g]=[g,v]);for(let b=0;b<y.length;b++)if(x[b]&&S[b]!==y[b]){const w=h.concat([b]);v.push({op:t,path:w,value:f(S[b])}),g.push({op:t,path:w,value:f(y[b])})}for(let b=y.length;b<S.length;b++){const w=h.concat([b]);v.push({op:r,path:w,value:f(S[b])})}for(let b=S.length-1;y.length<=b;--b){const w=h.concat([b]);g.push({op:n,path:w})}}function o(d,h,v,g){const{base_:y,copy_:x}=d;_v(d.assigned_,(S,b)=>{const w=T_(y,S),T=T_(x,S),C=b?wv(y,S)?t:r:n;if(w===T&&C===t)return;const A=h.concat(S);v.push(C===n?{op:C,path:A}:{op:C,path:A,value:T}),g.push(C===r?{op:n,path:A}:C===n?{op:r,path:A,value:f(w)}:{op:t,path:A,value:f(w)})})}function s(d,h,v,g){let{base_:y,copy_:x}=d,S=0;y.forEach(b=>{if(!x.has(b)){const w=h.concat([S]);v.push({op:n,path:w,value:b}),g.unshift({op:r,path:w,value:b})}S++}),S=0,x.forEach(b=>{if(!y.has(b)){const w=h.concat([S]);v.push({op:r,path:w,value:b}),g.unshift({op:n,path:w,value:b})}S++})}function l(d,h,v,g){v.push({op:t,path:[],value:h===aM?void 0:h}),g.push({op:t,path:[],value:d})}function u(d,h){return h.forEach(v=>{const{path:g,op:y}=v;let x=d;for(let T=0;T<g.length-1;T++){const C=cc(x);let A=g[T];typeof A!="string"&&typeof A!="number"&&(A=""+A),(C===0||C===1)&&(A==="__proto__"||A==="constructor")&&sn(19),typeof x=="function"&&A==="prototype"&&sn(19),x=T_(x,A),typeof x!="object"&&sn(18,g.join("/"))}const S=cc(x),b=c(v.value),w=g[g.length-1];switch(y){case t:switch(S){case 2:return x.set(w,b);case 3:sn(16);default:return x[w]=b}case r:switch(S){case 1:return w==="-"?x.push(b):x.splice(w,0,b);case 2:return x.set(w,b);case 3:return x.add(b);default:return x[w]=b}case n:switch(S){case 1:return x.splice(w,1);case 2:return x.delete(w);case 3:return x.delete(v.value);default:return delete x[w]}default:sn(17,y)}}),d}function c(d){if(!Da(d))return d;if(Array.isArray(d))return d.map(c);if(fg(d))return new Map(Array.from(d.entries()).map(([v,g])=>[v,c(g)]));if(dg(d))return new Set(Array.from(d).map(c));const h=Object.create(uc(d));for(const v in d)h[v]=c(d[v]);return wv(d,Yp)&&(h[Yp]=d[Yp]),h}function f(d){return Pa(d)?c(d):d}JY("Patches",{applyPatches_:u,generatePatches_:i,generateReplacementPatches_:l})}var Ai=new iq,hg=Ai.produce,vV=Ai.produceWithPatches.bind(Ai);Ai.setAutoFreeze.bind(Ai);Ai.setUseStrictShallowCopy.bind(Ai);var dE=Ai.applyPatches.bind(Ai);Ai.createDraft.bind(Ai);Ai.finishDraft.bind(Ai);function oq(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function sq(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function lq(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 hE=e=>Array.isArray(e)?e:[e];function uq(e){const t=Array.isArray(e[0])?e[0]:e;return lq(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function cq(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var fq=class{constructor(e){this.value=e}deref(){return this.value}},dq=typeof WeakRef<"u"?WeakRef:fq,hq=0,pE=1;function ay(){return{s:hq,v:void 0,o:null,p:null}}function Av(e,t={}){let r=ay();const{resultEqualityCheck:n}=t;let i,a=0;function o(){var f;let s=r;const{length:l}=arguments;for(let d=0,h=l;d<h;d++){const v=arguments[d];if(typeof v=="function"||typeof v=="object"&&v!==null){let g=s.o;g===null&&(s.o=g=new WeakMap);const y=g.get(v);y===void 0?(s=ay(),g.set(v,s)):s=y}else{let g=s.p;g===null&&(s.p=g=new Map);const y=g.get(v);y===void 0?(s=ay(),g.set(v,s)):s=y}}const u=s;let c;if(s.s===pE)c=s.v;else if(c=e.apply(null,arguments),a++,n){const d=((f=i==null?void 0:i.deref)==null?void 0:f.call(i))??i;d!=null&&n(d,c)&&(c=d,a!==0&&a--),i=typeof c=="object"&&c!==null||typeof c=="function"?new dq(c):c}return u.s=pE,u.v=c,c}return o.clearCache=()=>{r=ay(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function gV(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let a=0,o=0,s,l={},u=i.pop();typeof u=="object"&&(l=u,u=i.pop()),oq(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const c={...r,...l},{memoize:f,memoizeOptions:d=[],argsMemoize:h=Av,argsMemoizeOptions:v=[]}=c,g=hE(d),y=hE(v),x=uq(i),S=f(function(){return a++,u.apply(null,arguments)},...g),b=h(function(){o++;const T=cq(x,arguments);return s=S.apply(null,T),s},...y);return Object.assign(b,{resultFunc:u,memoizedResultFunc:S,dependencies:x,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>s,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:h})};return Object.assign(n,{withTypes:()=>n}),n}var lM=gV(Av),pq=Object.assign((e,t=lM)=>{sq(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(a=>e[a]);return t(n,(...a)=>a.reduce((o,s,l)=>(o[r[l]]=s,o),{}))},{withTypes:()=>pq});function mV(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var vq=mV(),gq=mV,mq=(...e)=>{const t=gV(...e),r=Object.assign((...n)=>{const i=t(...n),a=(o,...s)=>i(Pa(o)?hV(o):o,...s);return Object.assign(a,i),a},{withTypes:()=>r});return r};mq(Av);var yq=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?t1:t1.apply(null,arguments)},xq=e=>e&&typeof e.match=="function";function Ln(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(_n(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=>lV(n)&&n.type===e,r}var yV=class Pp extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Pp.prototype)}static get[Symbol.species](){return Pp}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Pp(...t[0].concat(this)):new Pp(...t.concat(this))}};function vE(e){return Da(e)?hg(e,()=>{}):e}function gE(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(_n(10));const n=r.insert(t,e);return e.set(t,n),n}function Sq(e){return typeof e=="boolean"}var bq=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new yV;return r&&(Sq(r)?o.push(vq):o.push(gq(r.extraArgument))),o},Vf="RTK_autoBatch",Nh=()=>e=>({payload:e,meta:{[Vf]:!0}}),xV=e=>t=>{setTimeout(t,e)},_q=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:xV(10),wq=(e={type:"raf"})=>t=>(...r)=>{const n=t(...r);let i=!0,a=!1,o=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?_q:e.type==="callback"?e.queueNotification:xV(e.timeout),u=()=>{o=!1,a&&(a=!1,s.forEach(c=>c()))};return Object.assign({},n,{subscribe(c){const f=()=>i&&c(),d=n.subscribe(f);return s.add(c),()=>{d(),s.delete(c)}},dispatch(c){var f;try{return i=!((f=c==null?void 0:c.meta)!=null&&f[Vf]),a=!i,a&&(o||(o=!0,l(u))),n.dispatch(c)}finally{i=!0}}})},Cq=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new yV(e);return n&&i.push(wq(typeof n=="object"?n:void 0)),i};function SV(e){const t=bq(),{reducer:r=void 0,middleware:n,devTools:i=!0,preloadedState:a=void 0,enhancers:o=void 0}=e||{};let s;if(typeof r=="function")s=r;else if(So(r))s=hx(r);else throw new Error(_n(1));let l;typeof n=="function"?l=n(t):l=t();let u=t1;i&&(u=yq({trace:!1,...typeof i=="object"&&i}));const c=qY(...l),f=Cq(c);let d=typeof o=="function"?o(f):f();const h=u(...d);return sV(s,a,h)}function bV(e){const t={},r=[];let n;const i={addCase(a,o){const s=typeof a=="string"?a:a.type;if(!s)throw new Error(_n(28));if(s in t)throw new Error(_n(29));return t[s]=o,i},addMatcher(a,o){return r.push({matcher:a,reducer:o}),i},addDefaultCase(a){return n=a,i}};return e(i),[t,r,n]}function Tq(e){return typeof e=="function"}function Aq(e,t){let[r,n,i]=bV(t),a;if(Tq(e))a=()=>vE(e());else{const s=vE(e);a=()=>s}function o(s=a(),l){let u=[r[l.type],...n.filter(({matcher:c})=>c(l)).map(({reducer:c})=>c)];return u.filter(c=>!!c).length===0&&(u=[i]),u.reduce((c,f)=>{if(f)if(Pa(c)){const h=f(c,l);return h===void 0?c:h}else{if(Da(c))return hg(c,d=>f(d,l));{const d=f(c,l);if(d===void 0){if(c===null)return c;throw new Error(_n(9))}return d}}return c},s)}return o.getInitialState=a,o}var Mq="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",uM=(e=21)=>{let t="",r=e;for(;r--;)t+=Mq[Math.random()*64|0];return t},_V=(e,t)=>xq(e)?e.match(t):e(t);function is(...e){return t=>e.some(r=>_V(r,t))}function qp(...e){return t=>e.every(r=>_V(r,t))}function vx(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 pg(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function cM(...e){return e.length===0?t=>vx(t,["pending"]):pg(e)?is(...e.map(t=>t.pending)):cM()(e[0])}function ad(...e){return e.length===0?t=>vx(t,["rejected"]):pg(e)?is(...e.map(t=>t.rejected)):ad()(e[0])}function gx(...e){const t=r=>r&&r.meta&&r.meta.rejectedWithValue;return e.length===0?qp(ad(...e),t):pg(e)?qp(ad(...e),t):gx()(e[0])}function xl(...e){return e.length===0?t=>vx(t,["fulfilled"]):pg(e)?is(...e.map(t=>t.fulfilled)):xl()(e[0])}function BT(...e){return e.length===0?t=>vx(t,["pending","fulfilled","rejected"]):pg(e)?is(...e.flatMap(t=>[t.pending,t.rejected,t.fulfilled])):BT()(e[0])}var kq=["name","message","stack","code"],k_=class{constructor(e,t){m_(this,"_type");this.payload=e,this.meta=t}},mE=class{constructor(e,t){m_(this,"_type");this.payload=e,this.meta=t}},Iq=e=>{if(typeof e=="object"&&e!==null){const t={};for(const r of kq)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},yE=(()=>{function e(t,r,n){const i=Ln(t+"/fulfilled",(l,u,c,f)=>({payload:l,meta:{...f||{},arg:c,requestId:u,requestStatus:"fulfilled"}})),a=Ln(t+"/pending",(l,u,c)=>({payload:void 0,meta:{...c||{},arg:u,requestId:l,requestStatus:"pending"}})),o=Ln(t+"/rejected",(l,u,c,f,d)=>({payload:f,error:(n&&n.serializeError||Iq)(l||"Rejected"),meta:{...d||{},arg:c,requestId:u,rejectedWithValue:!!f,requestStatus:"rejected",aborted:(l==null?void 0:l.name)==="AbortError",condition:(l==null?void 0:l.name)==="ConditionError"}}));function s(l){return(u,c,f)=>{const d=n!=null&&n.idGenerator?n.idGenerator(l):uM(),h=new AbortController;let v,g;function y(S){g=S,h.abort()}const x=async function(){var w,T;let S;try{let C=(w=n==null?void 0:n.condition)==null?void 0:w.call(n,l,{getState:c,extra:f});if(Dq(C)&&(C=await C),C===!1||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const A=new Promise((k,I)=>{v=()=>{I({name:"AbortError",message:g||"Aborted"})},h.signal.addEventListener("abort",v)});u(a(d,l,(T=n==null?void 0:n.getPendingMeta)==null?void 0:T.call(n,{requestId:d,arg:l},{getState:c,extra:f}))),S=await Promise.race([A,Promise.resolve(r(l,{dispatch:u,getState:c,extra:f,requestId:d,signal:h.signal,abort:y,rejectWithValue:(k,I)=>new k_(k,I),fulfillWithValue:(k,I)=>new mE(k,I)})).then(k=>{if(k instanceof k_)throw k;return k instanceof mE?i(k.payload,d,l,k.meta):i(k,d,l)})])}catch(C){S=C instanceof k_?o(null,d,l,C.payload,C.meta):o(C,d,l)}finally{v&&h.signal.removeEventListener("abort",v)}return n&&!n.dispatchConditionRejection&&o.match(S)&&S.meta.condition||u(S),S}();return Object.assign(x,{abort:y,requestId:d,arg:l,unwrap(){return x.then(Pq)}})}}return Object.assign(s,{pending:a,rejected:o,fulfilled:i,settled:is(o,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Pq(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Dq(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Rq=Symbol.for("rtk-slice-createasyncthunk");function Eq(e,t){return`${e}/${t}`}function Lq({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[Rq];return function(i){const{name:a,reducerPath:o=a}=i;if(!a)throw new Error(_n(11));const s=(typeof i.reducers=="function"?i.reducers(Nq()):i.reducers)||{},l=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(b,w){const T=typeof b=="string"?b:b.type;if(!T)throw new Error(_n(12));if(T in u.sliceCaseReducersByType)throw new Error(_n(13));return u.sliceCaseReducersByType[T]=w,c},addMatcher(b,w){return u.sliceMatchers.push({matcher:b,reducer:w}),c},exposeAction(b,w){return u.actionCreators[b]=w,c},exposeCaseReducer(b,w){return u.sliceCaseReducersByName[b]=w,c}};l.forEach(b=>{const w=s[b],T={reducerName:b,type:Eq(a,b),createNotation:typeof i.reducers=="function"};Bq(w)?Vq(T,w,c,t):zq(T,w,c)});function f(){const[b={},w=[],T=void 0]=typeof i.extraReducers=="function"?bV(i.extraReducers):[i.extraReducers],C={...b,...u.sliceCaseReducersByType};return Aq(i.initialState,A=>{for(let k in C)A.addCase(k,C[k]);for(let k of u.sliceMatchers)A.addMatcher(k.matcher,k.reducer);for(let k of w)A.addMatcher(k.matcher,k.reducer);T&&A.addDefaultCase(T)})}const d=b=>b,h=new Map;let v;function g(b,w){return v||(v=f()),v(b,w)}function y(){return v||(v=f()),v.getInitialState()}function x(b,w=!1){function T(A){let k=A[b];return typeof k>"u"&&w&&(k=y()),k}function C(A=d){const k=gE(h,w,{insert:()=>new WeakMap});return gE(k,A,{insert:()=>{const I={};for(const[P,R]of Object.entries(i.selectors??{}))I[P]=Oq(R,A,y,w);return I}})}return{reducerPath:b,getSelectors:C,get selectors(){return C(T)},selectSlice:T}}const S={name:a,reducer:g,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:y,...x(o),injectInto(b,{reducerPath:w,...T}={}){const C=w??o;return b.inject({reducerPath:C,reducer:g},T),{...S,...x(C,!0)}}};return S}}function Oq(e,t,r,n){function i(a,...o){let s=t(a);return typeof s>"u"&&n&&(s=r()),e(s,...o)}return i.unwrapped=e,i}var Ui=Lq();function Nq(){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 zq({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!Fq(n))throw new Error(_n(17));a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Ln(e,o):Ln(e))}function Bq(e){return e._reducerDefinitionType==="asyncThunk"}function Fq(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Vq({type:e,reducerName:t},r,n,i){if(!i)throw new Error(_n(18));const{payloadCreator:a,fulfilled:o,pending:s,rejected:l,settled:u,options:c}=r,f=i(e,a,c);n.exposeAction(t,f),o&&n.addCase(f.fulfilled,o),s&&n.addCase(f.pending,s),l&&n.addCase(f.rejected,l),u&&n.addMatcher(f.settled,u),n.exposeCaseReducer(t,{fulfilled:o||oy,pending:s||oy,rejected:l||oy,settled:u||oy})}function oy(){}var $q=(e,t)=>{if(typeof e!="function")throw new Error(_n(32))},fM="listenerMiddleware",Gq=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=Ln(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(_n(21));return $q(a),{predicate:i,type:t,effect:a}},Hq=Object.assign(e=>{const{type:t,predicate:r,effect:n}=Gq(e);return{id:uM(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(_n(22))}}},{withTypes:()=>Hq}),Wq=Object.assign(Ln(`${fM}/add`),{withTypes:()=>Wq});Ln(`${fM}/removeAll`);var jq=Object.assign(Ln(`${fM}/remove`),{withTypes:()=>jq});function _n(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 I_={exports:{}},P_={};/**
|
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 xE;function Uq(){if(xE)return P_;xE=1;var e=dx();function t(l,u){return l===u&&(l!==0||1/l===1/u)||l!==l&&u!==u}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,o=e.useMemo,s=e.useDebugValue;return P_.useSyncExternalStoreWithSelector=function(l,u,c,f,d){var h=i(null);if(h.current===null){var v={hasValue:!1,value:null};h.current=v}else v=h.current;h=o(function(){function y(T){if(!x){if(x=!0,S=T,T=f(T),d!==void 0&&v.hasValue){var C=v.value;if(d(C,T))return b=C}return b=T}if(C=b,r(S,T))return C;var A=f(T);return d!==void 0&&d(C,A)?C:(S=T,b=A)}var x=!1,S,b,w=c===void 0?null:c;return[function(){return y(u())},w===null?void 0:function(){return y(w())}]},[u,c,f,d]);var g=n(l,h[0],h[1]);return a(function(){v.hasValue=!0,v.value=g},[g]),s(g),g},P_}var SE;function Yq(){return SE||(SE=1,I_.exports=Uq()),I_.exports}var qq=Yq(),Vt="default"in bv?Ca:bv,bE=Symbol.for("react-redux-context"),_E=typeof globalThis<"u"?globalThis:{};function Xq(){if(!Vt.createContext)return{};const e=_E[bE]??(_E[bE]=new Map);let t=e.get(Vt.createContext);return t||(t=Vt.createContext(null),e.set(Vt.createContext,t)),t}var as=Xq(),wV=()=>{throw new Error("uSES not initialized!")};function dM(e=as){return function(){return Vt.useContext(e)}}var CV=dM(),TV=wV,Zq=e=>{TV=e},Kq=(e,t)=>e===t;function Qq(e=as){const t=e===as?CV:dM(e),r=(n,i={})=>{const{equalityFn:a=Kq,devModeChecks:o={}}=typeof i=="function"?{equalityFn:i}:i,{store:s,subscription:l,getServerState:u,stabilityCheck:c,identityFunctionCheck:f}=t();Vt.useRef(!0);const d=Vt.useCallback({[n.name](v){return n(v)}}[n.name],[n,c,o.stabilityCheck]),h=TV(l.addNestedSub,s.getState,u||s.getState,d,a);return Vt.useDebugValue(h),h};return Object.assign(r,{withTypes:()=>r}),r}var AV=Qq(),Jq=Symbol.for("react.element"),eX=Symbol.for("react.portal"),tX=Symbol.for("react.fragment"),rX=Symbol.for("react.strict_mode"),nX=Symbol.for("react.profiler"),iX=Symbol.for("react.provider"),aX=Symbol.for("react.context"),oX=Symbol.for("react.server_context"),MV=Symbol.for("react.forward_ref"),sX=Symbol.for("react.suspense"),lX=Symbol.for("react.suspense_list"),hM=Symbol.for("react.memo"),uX=Symbol.for("react.lazy"),cX=MV,fX=hM;function dX(e){if(typeof e=="object"&&e!==null){const t=e.$$typeof;switch(t){case Jq:{const r=e.type;switch(r){case tX:case nX:case rX:case sX:case lX:return r;default:{const n=r&&r.$$typeof;switch(n){case oX:case aX:case MV:case uX:case hM:case iX:return n;default:return t}}}}case eX:return t}}}function hX(e){return dX(e)===hM}function pX(e,t,r,n,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:o}){let s=!1,l,u,c,f,d;function h(S,b){return l=S,u=b,c=e(l,u),f=t(n,u),d=r(c,f,u),s=!0,d}function v(){return c=e(l,u),t.dependsOnOwnProps&&(f=t(n,u)),d=r(c,f,u),d}function g(){return e.dependsOnOwnProps&&(c=e(l,u)),t.dependsOnOwnProps&&(f=t(n,u)),d=r(c,f,u),d}function y(){const S=e(l,u),b=!o(S,c);return c=S,b&&(d=r(c,f,u)),d}function x(S,b){const w=!a(b,u),T=!i(S,l,b,u);return l=S,u=b,w&&T?v():w?g():T?y():d}return function(b,w){return s?x(b,w):h(b,w)}}function vX(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:n,...i}){const a=t(e,i),o=r(e,i),s=n(e,i);return pX(a,o,s,e,i)}function gX(e,t){const r={};for(const n in e){const i=e[n];typeof i=="function"&&(r[n]=(...a)=>t(i(...a)))}return r}function FT(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function wE(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function kV(e,t){return function(n,{displayName:i}){const a=function(s,l){return a.dependsOnOwnProps?a.mapToProps(s,l):a.mapToProps(s,void 0)};return a.dependsOnOwnProps=!0,a.mapToProps=function(s,l){a.mapToProps=e,a.dependsOnOwnProps=wE(e);let u=a(s,l);return typeof u=="function"&&(a.mapToProps=u,a.dependsOnOwnProps=wE(u),u=a(s,l)),u},a}}function pM(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function mX(e){return e&&typeof e=="object"?FT(t=>gX(e,t)):e?typeof e=="function"?kV(e):pM(e,"mapDispatchToProps"):FT(t=>({dispatch:t}))}function yX(e){return e?typeof e=="function"?kV(e):pM(e,"mapStateToProps"):FT(()=>({}))}function xX(e,t,r){return{...r,...e,...t}}function SX(e){return function(r,{displayName:n,areMergedPropsEqual:i}){let a=!1,o;return function(l,u,c){const f=e(l,u,c);return a?i(f,o)||(o=f):(a=!0,o=f),o}}}function bX(e){return e?typeof e=="function"?SX(e):pM(e,"mergeProps"):()=>xX}function IV(e){e()}function _X(){let e=null,t=null;return{clear(){e=null,t=null},notify(){IV(()=>{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 CE={notify(){},get:()=>[]};function PV(e,t){let r,n=CE,i=0,a=!1;function o(g){c();const y=n.subscribe(g);let x=!1;return()=>{x||(x=!0,y(),f())}}function s(){n.notify()}function l(){v.onStateChange&&v.onStateChange()}function u(){return a}function c(){i++,r||(r=t?t.addNestedSub(l):e.subscribe(l),n=_X())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=CE)}function d(){a||(a=!0,c())}function h(){a&&(a=!1,f())}const v={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:u,trySubscribe:d,tryUnsubscribe:h,getListeners:()=>n};return v}var wX=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",CX=typeof navigator<"u"&&navigator.product==="ReactNative",i1=wX||CX?Vt.useLayoutEffect:Vt.useEffect;function TE(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function pl(e,t){if(TE(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])||!TE(e[r[i]],t[r[i]]))return!1;return!0}var TX={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},AX={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},MX={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},DV={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},kX={[cX]:MX,[fX]:DV};function AE(e){return hX(e)?DV:kX[e.$$typeof]||TX}var IX=Object.defineProperty,PX=Object.getOwnPropertyNames,ME=Object.getOwnPropertySymbols,DX=Object.getOwnPropertyDescriptor,RX=Object.getPrototypeOf,kE=Object.prototype;function VT(e,t){if(typeof t!="string"){if(kE){const a=RX(t);a&&a!==kE&&VT(e,a)}let r=PX(t);ME&&(r=r.concat(ME(t)));const n=AE(e),i=AE(t);for(let a=0;a<r.length;++a){const o=r[a];if(!AX[o]&&!(i&&i[o])&&!(n&&n[o])){const s=DX(t,o);try{IX(e,o,s)}catch{}}}}return e}var RV=wV,EX=e=>{RV=e},LX=[null,null];function OX(e,t,r){i1(()=>e(...t),r)}function NX(e,t,r,n,i,a){e.current=n,r.current=!1,i.current&&(i.current=null,a())}function zX(e,t,r,n,i,a,o,s,l,u,c){if(!e)return()=>{};let f=!1,d=null;const h=()=>{if(f||!s.current)return;const g=t.getState();let y,x;try{y=n(g,i.current)}catch(S){x=S,d=S}x||(d=null),y===a.current?o.current||u():(a.current=y,l.current=y,o.current=!0,c())};return r.onStateChange=h,r.trySubscribe(),h(),()=>{if(f=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}function BX(e,t){return e===t}function FX(e,t,r,{pure:n,areStatesEqual:i=BX,areOwnPropsEqual:a=pl,areStatePropsEqual:o=pl,areMergedPropsEqual:s=pl,forwardRef:l=!1,context:u=as}={}){const c=u,f=yX(e),d=mX(t),h=bX(r),v=!!e;return y=>{const x=y.displayName||y.name||"Component",S=`Connect(${x})`,b={shouldHandleStateChanges:v,displayName:S,wrappedComponentName:x,WrappedComponent:y,initMapStateToProps:f,initMapDispatchToProps:d,initMergeProps:h,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:s};function w(A){const[k,I,P]=Vt.useMemo(()=>{const{reactReduxForwardedRef:ge,...Re}=A;return[A.context,ge,Re]},[A]),R=Vt.useMemo(()=>{let ge=c;return k!=null&&k.Consumer,ge},[k,c]),L=Vt.useContext(R),O=!!A.store&&!!A.store.getState&&!!A.store.dispatch,z=!!L&&!!L.store,F=O?A.store:L.store,H=z?L.getServerState:F.getState,q=Vt.useMemo(()=>vX(F.dispatch,b),[F]),[$,X]=Vt.useMemo(()=>{if(!v)return LX;const ge=PV(F,O?void 0:L.subscription),Re=ge.notifyNestedSubs.bind(ge);return[ge,Re]},[F,O,L]),B=Vt.useMemo(()=>O?L:{...L,subscription:$},[O,L,$]),Y=Vt.useRef(void 0),Z=Vt.useRef(P),j=Vt.useRef(void 0),re=Vt.useRef(!1),ce=Vt.useRef(!1),te=Vt.useRef(void 0);i1(()=>(ce.current=!0,()=>{ce.current=!1}),[]);const pe=Vt.useMemo(()=>()=>j.current&&P===Z.current?j.current:q(F.getState(),P),[F,P]),ae=Vt.useMemo(()=>Re=>$?zX(v,F,$,q,Z,Y,re,ce,j,X,Re):()=>{},[$]);OX(NX,[Z,Y,re,P,j,X]);let he;try{he=RV(ae,pe,H?()=>q(H(),P):pe)}catch(ge){throw te.current&&(ge.message+=`
|
49
|
-
The error may be correlated with this previous error:
|
50
|
-
${te.current.stack}
|
51
|
-
|
52
|
-
`),ge}i1(()=>{te.current=void 0,j.current=void 0,Y.current=he});const ve=Vt.useMemo(()=>Vt.createElement(y,{...he,ref:I}),[I,y,he]);return Vt.useMemo(()=>v?Vt.createElement(R.Provider,{value:B},ve):ve,[R,ve,B])}const C=Vt.memo(w);if(C.WrappedComponent=y,C.displayName=w.displayName=S,l){const k=Vt.forwardRef(function(P,R){return Vt.createElement(C,{...P,reactReduxForwardedRef:R})});return k.displayName=S,k.WrappedComponent=y,VT(k,y)}return VT(C,y)}}var Ii=FX;function VX({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",identityFunctionCheck:a="once"}){const o=Vt.useMemo(()=>{const u=PV(e);return{store:e,subscription:u,getServerState:n?()=>n:void 0,stabilityCheck:i,identityFunctionCheck:a}},[e,n,i,a]),s=Vt.useMemo(()=>e.getState(),[e]);i1(()=>{const{subscription:u}=o;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),s!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[o,s]);const l=t||as;return Vt.createElement(l.Provider,{value:o},r)}var IE=VX;function EV(e=as){const t=e===as?CV:dM(e),r=()=>{const{store:n}=t();return n};return Object.assign(r,{withTypes:()=>r}),r}var LV=EV();function $X(e=as){const t=e===as?LV:EV(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var OV=$X(),GX=IV;Zq(qq.useSyncExternalStoreWithSelector);EX(G.useSyncExternalStore);function NV(e,t,r){return t&&(Array.isArray(t)?t.map(n=>NV(e,n,r)):typeof t=="object"?vM(t,r):t)}const vM=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[t(n)]:NV(e,i,t)}),{}),zV=e=>e.replace(/_([a-z0-9])/g,(t,r)=>r.toUpperCase()),HX=e=>e[0]===e[0].toUpperCase()?e:e.replace(/([a-z0-9])([A-Z0-9])/g,"$1_$2").toLowerCase(),$f=e=>vM(e,zV),PE=e=>vM(e,HX),$T=e=>e.replace(/([a-z0-9])([A-Z0-9])/g,"$1 $2").replace(/^./,t=>t.toUpperCase()),WX=e=>Object.fromEntries(new URLSearchParams(e).entries()),jX=(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"],a=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,a)).toFixed(n))+" "+i[a]},DE=!!window.authArgs&&$f(window.authArgs),Mv={black:"#000",white:"#fff"},el={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828",900:"#b71c1c"},rf={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Mu={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},nf={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},af={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},UX={900:"#ff6f00"},zh={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},YX={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 U(){return U=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},U.apply(null,arguments)}function Nu(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function BV(e){if(!Nu(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=BV(e[r])}),t}function ni(e,t,r={clone:!0}){const n=r.clone?U({},e):e;return Nu(e)&&Nu(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(Nu(t[i])&&i in e&&Nu(e[i])?n[i]=ni(e[i],t[i],r):r.clone?n[i]=Nu(t[i])?BV(t[i]):t[i]:n[i]=t[i])}),n}function Sl(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 Le(e){if(typeof e!="string")throw new Error(Sl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function GT(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function Md(e,t=166){let r;function n(...i){const a=()=>{e.apply(this,i)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function qX(e,t){return()=>null}function Xp(e,t){return G.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function ln(e){return e&&e.ownerDocument||document}function ta(e){return ln(e).defaultView||window}function XX(e,t){return()=>null}function a1(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Ra=typeof window<"u"?G.useLayoutEffect:G.useEffect;let RE=0;function ZX(e){const[t,r]=G.useState(e),n=e||t;return G.useEffect(()=>{t==null&&(RE+=1,r(`mui-${RE}`))},[t]),n}const EE=bv.useId;function gM(e){if(EE!==void 0){const t=EE();return e??t}return ZX(e)}function KX(e,t,r,n,i){return null}function od({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=G.useRef(e!==void 0),[a,o]=G.useState(t),s=i?e:a,l=G.useCallback(u=>{i||o(u)},[]);return[s,l]}function Ta(e){const t=G.useRef(e);return Ra(()=>{t.current=e}),G.useCallback((...r)=>(0,t.current)(...r),[])}function kr(...e){return G.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{a1(r,t)})},e)}let mx=!0,HT=!1,LE;const QX={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 JX(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&QX[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function eZ(e){e.metaKey||e.altKey||e.ctrlKey||(mx=!0)}function D_(){mx=!1}function tZ(){this.visibilityState==="hidden"&&HT&&(mx=!0)}function rZ(e){e.addEventListener("keydown",eZ,!0),e.addEventListener("mousedown",D_,!0),e.addEventListener("pointerdown",D_,!0),e.addEventListener("touchstart",D_,!0),e.addEventListener("visibilitychange",tZ,!0)}function nZ(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return mx||JX(t)}function yx(){const e=G.useCallback(i=>{i!=null&&rZ(i.ownerDocument)},[]),t=G.useRef(!1);function r(){return t.current?(HT=!0,window.clearTimeout(LE),LE=window.setTimeout(()=>{HT=!1},100),t.current=!1,!0):!1}function n(i){return nZ(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function FV(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let of;function VV(){if(of)return of;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),of="reverse",e.scrollLeft>0?of="default":(e.scrollLeft=1,e.scrollLeft===0&&(of="negative")),document.body.removeChild(e),of}function iZ(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(VV()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}function mM(e,t){const r=U({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=U({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const i=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=i:!i||!Object.keys(i)?r[n]=a:(r[n]=U({},a),Object.keys(i).forEach(o=>{r[n][o]=mM(i[o],a[o])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function it(e,t,r=void 0){const n={};return Object.keys(e).forEach(i=>{n[i]=e[i].reduce((a,o)=>{if(o){const s=t(o);s!==""&&a.push(s),r&&r[o]&&a.push(r[o])}return a},[]).join(" ")}),n}const OE=e=>e,aZ=()=>{let e=OE;return{configure(t){e=t},generate(t){return e(t)},reset(){e=OE}}},yM=aZ(),oZ={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 tt(e,t,r="Mui"){const n=oZ[t];return n?`${r}-${n}`:`${yM.generate(e)}-${t}`}function at(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=tt(e,i,r)}),n}const dc="$$material";function De(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 $V(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var sZ=/^((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)-.*))$/,lZ=$V(function(e){return sZ.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function uZ(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 cZ(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 fZ=function(){function e(r){var n=this;this._insertTag=function(i){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,a),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(cZ(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=uZ(i);try{a.insertRule(n,a.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}(),xn="-ms-",o1="-moz-",qt="-webkit-",GV="comm",xM="rule",SM="decl",dZ="@import",HV="@keyframes",hZ="@layer",pZ=Math.abs,xx=String.fromCharCode,vZ=Object.assign;function gZ(e,t){return on(e,0)^45?(((t<<2^on(e,0))<<2^on(e,1))<<2^on(e,2))<<2^on(e,3):0}function WV(e){return e.trim()}function mZ(e,t){return(e=t.exec(e))?e[0]:e}function Xt(e,t,r){return e.replace(t,r)}function WT(e,t){return e.indexOf(t)}function on(e,t){return e.charCodeAt(t)|0}function kv(e,t,r){return e.slice(t,r)}function ro(e){return e.length}function bM(e){return e.length}function sy(e,t){return t.push(e),e}function yZ(e,t){return e.map(t).join("")}var Sx=1,sd=1,jV=0,li=0,zr=0,kd="";function bx(e,t,r,n,i,a,o){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:Sx,column:sd,length:o,return:""}}function Bh(e,t){return vZ(bx("",null,null,"",null,null,0),e,{length:-e.length},t)}function xZ(){return zr}function SZ(){return zr=li>0?on(kd,--li):0,sd--,zr===10&&(sd=1,Sx--),zr}function _i(){return zr=li<jV?on(kd,li++):0,sd++,zr===10&&(sd=1,Sx++),zr}function ho(){return on(kd,li)}function M0(){return li}function vg(e,t){return kv(kd,e,t)}function Iv(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 UV(e){return Sx=sd=1,jV=ro(kd=e),li=0,[]}function YV(e){return kd="",e}function k0(e){return WV(vg(li-1,jT(e===91?e+2:e===40?e+1:e)))}function bZ(e){for(;(zr=ho())&&zr<33;)_i();return Iv(e)>2||Iv(zr)>3?"":" "}function _Z(e,t){for(;--t&&_i()&&!(zr<48||zr>102||zr>57&&zr<65||zr>70&&zr<97););return vg(e,M0()+(t<6&&ho()==32&&_i()==32))}function jT(e){for(;_i();)switch(zr){case e:return li;case 34:case 39:e!==34&&e!==39&&jT(zr);break;case 40:e===41&&jT(e);break;case 92:_i();break}return li}function wZ(e,t){for(;_i()&&e+zr!==57;)if(e+zr===84&&ho()===47)break;return"/*"+vg(t,li-1)+"*"+xx(e===47?e:_i())}function CZ(e){for(;!Iv(ho());)_i();return vg(e,li)}function TZ(e){return YV(I0("",null,null,null,[""],e=UV(e),0,[0],e))}function I0(e,t,r,n,i,a,o,s,l){for(var u=0,c=0,f=o,d=0,h=0,v=0,g=1,y=1,x=1,S=0,b="",w=i,T=a,C=n,A=b;y;)switch(v=S,S=_i()){case 40:if(v!=108&&on(A,f-1)==58){WT(A+=Xt(k0(S),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:A+=k0(S);break;case 9:case 10:case 13:case 32:A+=bZ(v);break;case 92:A+=_Z(M0()-1,7);continue;case 47:switch(ho()){case 42:case 47:sy(AZ(wZ(_i(),M0()),t,r),l);break;default:A+="/"}break;case 123*g:s[u++]=ro(A)*x;case 125*g:case 59:case 0:switch(S){case 0:case 125:y=0;case 59+c:x==-1&&(A=Xt(A,/\f/g,"")),h>0&&ro(A)-f&&sy(h>32?zE(A+";",n,r,f-1):zE(Xt(A," ","")+";",n,r,f-2),l);break;case 59:A+=";";default:if(sy(C=NE(A,t,r,u,c,i,s,b,w=[],T=[],f),a),S===123)if(c===0)I0(A,t,C,C,w,a,f,s,T);else switch(d===99&&on(A,3)===110?100:d){case 100:case 108:case 109:case 115:I0(e,C,C,n&&sy(NE(e,C,C,0,0,i,s,b,i,w=[],f),T),i,T,f,s,n?w:T);break;default:I0(A,C,C,C,[""],T,0,s,T)}}u=c=h=0,g=x=1,b=A="",f=o;break;case 58:f=1+ro(A),h=v;default:if(g<1){if(S==123)--g;else if(S==125&&g++==0&&SZ()==125)continue}switch(A+=xx(S),S*g){case 38:x=c>0?1:(A+="\f",-1);break;case 44:s[u++]=(ro(A)-1)*x,x=1;break;case 64:ho()===45&&(A+=k0(_i())),d=ho(),c=f=ro(b=A+=CZ(M0())),S++;break;case 45:v===45&&ro(A)==2&&(g=0)}}return a}function NE(e,t,r,n,i,a,o,s,l,u,c){for(var f=i-1,d=i===0?a:[""],h=bM(d),v=0,g=0,y=0;v<n;++v)for(var x=0,S=kv(e,f+1,f=pZ(g=o[v])),b=e;x<h;++x)(b=WV(g>0?d[x]+" "+S:Xt(S,/&\f/g,d[x])))&&(l[y++]=b);return bx(e,t,r,i===0?xM:s,l,u,c)}function AZ(e,t,r){return bx(e,t,r,GV,xx(xZ()),kv(e,2,-2),0)}function zE(e,t,r,n){return bx(e,t,r,SM,kv(e,0,n),kv(e,n+1,-1),n)}function Yf(e,t){for(var r="",n=bM(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function MZ(e,t,r,n){switch(e.type){case hZ:if(e.children.length)break;case dZ:case SM:return e.return=e.return||e.value;case GV:return"";case HV:return e.return=e.value+"{"+Yf(e.children,n)+"}";case xM:e.value=e.props.join(",")}return ro(r=Yf(e.children,n))?e.return=e.value+"{"+r+"}":""}function kZ(e){var t=bM(e);return function(r,n,i,a){for(var o="",s=0;s<t;s++)o+=e[s](r,n,i,a)||"";return o}}function IZ(e){return function(t){t.root||(t=t.return)&&e(t)}}var PZ=function(t,r,n){for(var i=0,a=0;i=a,a=ho(),i===38&&a===12&&(r[n]=1),!Iv(a);)_i();return vg(t,li)},DZ=function(t,r){var n=-1,i=44;do switch(Iv(i)){case 0:i===38&&ho()===12&&(r[n]=1),t[n]+=PZ(li-1,r,n);break;case 2:t[n]+=k0(i);break;case 4:if(i===44){t[++n]=ho()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=xx(i)}while(i=_i());return t},RZ=function(t,r){return YV(DZ(UV(t),r))},BE=new WeakMap,EZ=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&&!BE.get(n))&&!i){BE.set(t,!0);for(var a=[],o=RZ(r,a),s=n.props,l=0,u=0;l<o.length;l++)for(var c=0;c<s.length;c++,u++)t.props[u]=a[l]?o[l].replace(/&\f/g,s[c]):s[c]+" "+o[l]}}},LZ=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function qV(e,t){switch(gZ(e,t)){case 5103:return qt+"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 qt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return qt+e+o1+e+xn+e+e;case 6828:case 4268:return qt+e+xn+e+e;case 6165:return qt+e+xn+"flex-"+e+e;case 5187:return qt+e+Xt(e,/(\w+).+(:[^]+)/,qt+"box-$1$2"+xn+"flex-$1$2")+e;case 5443:return qt+e+xn+"flex-item-"+Xt(e,/flex-|-self/,"")+e;case 4675:return qt+e+xn+"flex-line-pack"+Xt(e,/align-content|flex-|-self/,"")+e;case 5548:return qt+e+xn+Xt(e,"shrink","negative")+e;case 5292:return qt+e+xn+Xt(e,"basis","preferred-size")+e;case 6060:return qt+"box-"+Xt(e,"-grow","")+qt+e+xn+Xt(e,"grow","positive")+e;case 4554:return qt+Xt(e,/([^-])(transform)/g,"$1"+qt+"$2")+e;case 6187:return Xt(Xt(Xt(e,/(zoom-|grab)/,qt+"$1"),/(image-set)/,qt+"$1"),e,"")+e;case 5495:case 3959:return Xt(e,/(image-set\([^]*)/,qt+"$1$`$1");case 4968:return Xt(Xt(e,/(.+:)(flex-)?(.*)/,qt+"box-pack:$3"+xn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+qt+e+e;case 4095:case 3583:case 4068:case 2532:return Xt(e,/(.+)-inline(.+)/,qt+"$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(ro(e)-1-t>6)switch(on(e,t+1)){case 109:if(on(e,t+4)!==45)break;case 102:return Xt(e,/(.+:)(.+)-([^]+)/,"$1"+qt+"$2-$3$1"+o1+(on(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~WT(e,"stretch")?qV(Xt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(on(e,t+1)!==115)break;case 6444:switch(on(e,ro(e)-3-(~WT(e,"!important")&&10))){case 107:return Xt(e,":",":"+qt)+e;case 101:return Xt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+qt+(on(e,14)===45?"inline-":"")+"box$3$1"+qt+"$2$3$1"+xn+"$2box$3")+e}break;case 5936:switch(on(e,t+11)){case 114:return qt+e+xn+Xt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return qt+e+xn+Xt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return qt+e+xn+Xt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return qt+e+xn+e+e}return e}var OZ=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case SM:t.return=qV(t.value,t.length);break;case HV:return Yf([Bh(t,{value:Xt(t.value,"@","@"+qt)})],i);case xM:if(t.length)return yZ(t.props,function(a){switch(mZ(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Yf([Bh(t,{props:[Xt(a,/:(read-\w+)/,":"+o1+"$1")]})],i);case"::placeholder":return Yf([Bh(t,{props:[Xt(a,/:(plac\w+)/,":"+qt+"input-$1")]}),Bh(t,{props:[Xt(a,/:(plac\w+)/,":"+o1+"$1")]}),Bh(t,{props:[Xt(a,/:(plac\w+)/,xn+"input-$1")]})],i)}return""})}},NZ=[OZ],zZ=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(g){var y=g.getAttribute("data-emotion");y.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var i=t.stylisPlugins||NZ,a={},o,s=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(g){for(var y=g.getAttribute("data-emotion").split(" "),x=1;x<y.length;x++)a[y[x]]=!0;s.push(g)});var l,u=[EZ,LZ];{var c,f=[MZ,IZ(function(g){c.insert(g)})],d=kZ(u.concat(i,f)),h=function(y){return Yf(TZ(y),d)};l=function(y,x,S,b){c=S,h(y?y+"{"+x.styles+"}":x.styles),b&&(v.inserted[x.name]=!0)}}var v={key:r,sheet:new fZ({key:r,container:o,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:l};return v.sheet.hydrate(s),v},R_={exports:{}},Qt={};/** @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 FE;function BZ(){if(FE)return Qt;FE=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,a=e?Symbol.for("react.profiler"):60114,o=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,l=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,c=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,h=e?Symbol.for("react.memo"):60115,v=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,x=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function b(T){if(typeof T=="object"&&T!==null){var C=T.$$typeof;switch(C){case t:switch(T=T.type,T){case l:case u:case n:case a:case i:case f:return T;default:switch(T=T&&T.$$typeof,T){case s:case c:case v:case h:case o:return T;default:return C}}case r:return C}}}function w(T){return b(T)===u}return Qt.AsyncMode=l,Qt.ConcurrentMode=u,Qt.ContextConsumer=s,Qt.ContextProvider=o,Qt.Element=t,Qt.ForwardRef=c,Qt.Fragment=n,Qt.Lazy=v,Qt.Memo=h,Qt.Portal=r,Qt.Profiler=a,Qt.StrictMode=i,Qt.Suspense=f,Qt.isAsyncMode=function(T){return w(T)||b(T)===l},Qt.isConcurrentMode=w,Qt.isContextConsumer=function(T){return b(T)===s},Qt.isContextProvider=function(T){return b(T)===o},Qt.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},Qt.isForwardRef=function(T){return b(T)===c},Qt.isFragment=function(T){return b(T)===n},Qt.isLazy=function(T){return b(T)===v},Qt.isMemo=function(T){return b(T)===h},Qt.isPortal=function(T){return b(T)===r},Qt.isProfiler=function(T){return b(T)===a},Qt.isStrictMode=function(T){return b(T)===i},Qt.isSuspense=function(T){return b(T)===f},Qt.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===n||T===u||T===a||T===i||T===f||T===d||typeof T=="object"&&T!==null&&(T.$$typeof===v||T.$$typeof===h||T.$$typeof===o||T.$$typeof===s||T.$$typeof===c||T.$$typeof===y||T.$$typeof===x||T.$$typeof===S||T.$$typeof===g)},Qt.typeOf=b,Qt}var VE;function FZ(){return VE||(VE=1,R_.exports=BZ()),R_.exports}var E_,$E;function VZ(){if($E)return E_;$E=1;var e=FZ(),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},a={};a[e.ForwardRef]=n,a[e.Memo]=i;function o(v){return e.isMemo(v)?i:a[v.$$typeof]||t}var s=Object.defineProperty,l=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,c=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,d=Object.prototype;function h(v,g,y){if(typeof g!="string"){if(d){var x=f(g);x&&x!==d&&h(v,x,y)}var S=l(g);u&&(S=S.concat(u(g)));for(var b=o(v),w=o(g),T=0;T<S.length;++T){var C=S[T];if(!r[C]&&!(y&&y[C])&&!(w&&w[C])&&!(b&&b[C])){var A=c(g,C);try{s(v,C,A)}catch{}}}}return v}return E_=h,E_}VZ();var $Z=!0;function GZ(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):n+=i+" "}),n}var XV=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||$Z===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},ZV=function(t,r,n){XV(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function HZ(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 WZ={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},jZ=/[A-Z]|^ms/g,UZ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,KV=function(t){return t.charCodeAt(1)===45},GE=function(t){return t!=null&&typeof t!="boolean"},L_=$V(function(e){return KV(e)?e:e.replace(jZ,"-$&").toLowerCase()}),HE=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(UZ,function(n,i,a){return no={name:i,styles:a,next:no},i})}return WZ[t]!==1&&!KV(t)&&typeof r=="number"&&r!==0?r+"px":r};function Pv(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 no={name:r.name,styles:r.styles,next:no},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)no={name:n.name,styles:n.styles,next:no},n=n.next;var i=r.styles+";";return i}return YZ(e,t,r)}case"function":{if(e!==void 0){var a=no,o=r(e);return no=a,Pv(e,t,o)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function YZ(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Pv(e,t,r[i])+";";else for(var a in r){var o=r[a];if(typeof o!="object")t!=null&&t[o]!==void 0?n+=a+"{"+t[o]+"}":GE(o)&&(n+=L_(a)+":"+HE(a,o)+";");else if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var s=0;s<o.length;s++)GE(o[s])&&(n+=L_(a)+":"+HE(a,o[s])+";");else{var l=Pv(e,t,o);switch(a){case"animation":case"animationName":{n+=L_(a)+":"+l+";";break}default:n+=a+"{"+l+"}"}}}return n}var WE=/label:\s*([^\s;\n{]+)\s*(;|$)/g,no,_M=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,a="";no=void 0;var o=t[0];o==null||o.raw===void 0?(i=!1,a+=Pv(n,r,o)):a+=o[0];for(var s=1;s<t.length;s++)a+=Pv(n,r,t[s]),i&&(a+=o[s]);WE.lastIndex=0;for(var l="",u;(u=WE.exec(a))!==null;)l+="-"+u[1];var c=HZ(a)+l;return{name:c,styles:a,next:no}},qZ=function(t){return t()},QV=bv.useInsertionEffect?bv.useInsertionEffect:!1,XZ=QV||qZ,jE=QV||G.useLayoutEffect,JV=G.createContext(typeof HTMLElement<"u"?zZ({key:"css"}):null);JV.Provider;var e$=function(t){return G.forwardRef(function(r,n){var i=G.useContext(JV);return t(r,i,n)})},_x=G.createContext({}),ZZ=e$(function(e,t){var r=e.styles,n=_M([r],void 0,G.useContext(_x)),i=G.useRef();return jE(function(){var a=t.key+"-global",o=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+a+" "+n.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",a),o.hydrate([l])),i.current=[o,s],function(){o.flush()}},[t]),jE(function(){var a=i.current,o=a[0],s=a[1];if(s){a[1]=!1;return}if(n.next!==void 0&&ZV(t,n.next,!0),o.tags.length){var l=o.tags[o.tags.length-1].nextElementSibling;o.before=l,o.flush()}t.insert("",n,o,!1)},[t,n.name]),null});function KZ(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return _M(t)}var wM=function(){var t=KZ.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_"}}},QZ=lZ,JZ=function(t){return t!=="theme"},UE=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?QZ:JZ},YE=function(t,r,n){var i;if(r){var a=r.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(o){return t.__emotion_forwardProp(o)&&a(o)}:a}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},eK=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return XV(r,n,i),XZ(function(){return ZV(r,n,i)}),null},tK=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,a,o;r!==void 0&&(a=r.label,o=r.target);var s=YE(t,r,n),l=s||UE(i),u=!l("as");return function(){var c=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var d=c.length,h=1;h<d;h++)f.push(c[h],c[0][h])}var v=e$(function(g,y,x){var S=u&&g.as||i,b="",w=[],T=g;if(g.theme==null){T={};for(var C in g)T[C]=g[C];T.theme=G.useContext(_x)}typeof g.className=="string"?b=GZ(y.registered,w,g.className):g.className!=null&&(b=g.className+" ");var A=_M(f.concat(w),y.registered,T);b+=y.key+"-"+A.name,o!==void 0&&(b+=" "+o);var k=u&&s===void 0?UE(S):l,I={};for(var P in g)u&&P==="as"||k(P)&&(I[P]=g[P]);return I.className=b,I.ref=x,G.createElement(G.Fragment,null,G.createElement(eK,{cache:y,serialized:A,isStringTag:typeof S=="string"}),G.createElement(S,I))});return v.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=i,v.__emotion_styles=f,v.__emotion_forwardProp=s,Object.defineProperty(v,"toString",{value:function(){return"."+o}}),v.withComponent=function(g,y){return e(g,U({},r,y,{shouldForwardProp:YE(v,y,!0)})).apply(void 0,f)},v}},rK=["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"],UT=tK.bind();rK.forEach(function(e){UT[e]=UT(e)});function nK(e){return e==null||Object.keys(e).length===0}function iK(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?i=>t(nK(i)?r:i):t;return N.jsx(ZZ,{styles:n})}function t$(e,t){return UT(e,t)}const aK=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},oK=["values","unit","step"],sK=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)=>U({},r,{[n.key]:n.val}),{})};function lK(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=De(e,oK),a=sK(t),o=Object.keys(a);function s(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r})`}function l(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-n/100}${r})`}function u(d,h){const v=o.indexOf(h);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${r}) and (max-width:${(v!==-1&&typeof t[o[v]]=="number"?t[o[v]]:h)-n/100}${r})`}function c(d){return o.indexOf(d)+1<o.length?u(d,o[o.indexOf(d)+1]):s(d)}function f(d){const h=o.indexOf(d);return h===0?s(o[1]):h===o.length-1?l(o[h]):u(d,o[o.indexOf(d)+1]).replace("@media","@media not all and")}return U({keys:o,values:a,up:s,down:l,between:u,only:c,not:f,unit:r},i)}const uK={borderRadius:4};function Zp(e,t){return t?ni(e,t,{clone:!1}):e}const CM={xs:0,sm:600,md:900,lg:1200,xl:1536},qE={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${CM[e]}px)`};function Ea(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||qE;return t.reduce((o,s,l)=>(o[a.up(a.keys[l])]=r(t[l]),o),{})}if(typeof t=="object"){const a=n.breakpoints||qE;return Object.keys(t).reduce((o,s)=>{if(Object.keys(a.values||CM).indexOf(s)!==-1){const l=a.up(s);o[l]=r(t[s],s)}else{const l=s;o[l]=t[l]}return o},{})}return r(t)}function r$(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function n$(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function cK(e,...t){const r=r$(e),n=[r,...t].reduce((i,a)=>ni(i,a),{});return n$(Object.keys(r),n)}function fK(e,t){if(typeof e!="object")return{};const r={},n=Object.keys(t);return Array.isArray(e)?n.forEach((i,a)=>{a<e.length&&(r[i]=!0)}):n.forEach(i=>{e[i]!=null&&(r[i]=!0)}),r}function O_({values:e,breakpoints:t,base:r}){const n=r||fK(e,t),i=Object.keys(n);if(i.length===0)return e;let a;return i.reduce((o,s,l)=>(Array.isArray(e)?(o[s]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(o[s]=e[s]!=null?e[s]:e[a],a=s):o[s]=e,o),{})}function ld(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,i)=>n&&n[i]!=null?n[i]:null,e)}function s1(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=ld(e,r)||n,t&&(i=t(i,n,e)),i}function tr(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:i}=e,a=o=>{if(o[t]==null)return null;const s=o[t],l=o.theme,u=ld(l,n)||{};return Ea(o,s,f=>{let d=s1(u,i,f);return f===d&&typeof f=="string"&&(d=s1(u,i,`${t}${f==="default"?"":Le(f)}`,f)),r===!1?d:{[r]:d}})};return a.propTypes={},a.filterProps=[t],a}function dK(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const hK={m:"margin",p:"padding"},pK={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},XE={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},vK=dK(e=>{if(e.length>2)if(XE[e])e=XE[e];else return[e];const[t,r]=e.split(""),n=hK[t],i=pK[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),TM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],AM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...TM,...AM];function gg(e,t,r,n){var i;const a=(i=ld(e,t,!1))!=null?i:r;return typeof a=="number"?o=>typeof o=="string"?o:a*o:Array.isArray(a)?o=>typeof o=="string"?o:a[o]:typeof a=="function"?a:()=>{}}function MM(e){return gg(e,"spacing",8)}function hc(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 gK(e,t){return r=>e.reduce((n,i)=>(n[i]=hc(t,r),n),{})}function mK(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=vK(r),a=gK(i,n),o=e[r];return Ea(e,o,a)}function i$(e,t){const r=MM(e.theme);return Object.keys(e).map(n=>mK(e,t,n,r)).reduce(Zp,{})}function Cr(e){return i$(e,TM)}Cr.propTypes={};Cr.filterProps=TM;function Tr(e){return i$(e,AM)}Tr.propTypes={};Tr.filterProps=AM;function yK(e=8){if(e.mui)return e;const t=MM({spacing:e}),r=(...n)=>(n.length===0?[1]:n).map(a=>{const o=t(a);return typeof o=="number"?`${o}px`:o}).join(" ");return r.mui=!0,r}function Cx(...e){const t=e.reduce((n,i)=>(i.filterProps.forEach(a=>{n[a]=i}),n),{}),r=n=>Object.keys(n).reduce((i,a)=>t[a]?Zp(i,t[a](n)):i,{});return r.propTypes={},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function io(e){return typeof e!="number"?e:`${e}px solid`}const xK=tr({prop:"border",themeKey:"borders",transform:io}),SK=tr({prop:"borderTop",themeKey:"borders",transform:io}),bK=tr({prop:"borderRight",themeKey:"borders",transform:io}),_K=tr({prop:"borderBottom",themeKey:"borders",transform:io}),wK=tr({prop:"borderLeft",themeKey:"borders",transform:io}),CK=tr({prop:"borderColor",themeKey:"palette"}),TK=tr({prop:"borderTopColor",themeKey:"palette"}),AK=tr({prop:"borderRightColor",themeKey:"palette"}),MK=tr({prop:"borderBottomColor",themeKey:"palette"}),kK=tr({prop:"borderLeftColor",themeKey:"palette"}),Tx=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=gg(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:hc(t,n)});return Ea(e,e.borderRadius,r)}return null};Tx.propTypes={};Tx.filterProps=["borderRadius"];Cx(xK,SK,bK,_K,wK,CK,TK,AK,MK,kK,Tx);const Ax=e=>{if(e.gap!==void 0&&e.gap!==null){const t=gg(e.theme,"spacing",8),r=n=>({gap:hc(t,n)});return Ea(e,e.gap,r)}return null};Ax.propTypes={};Ax.filterProps=["gap"];const Mx=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=gg(e.theme,"spacing",8),r=n=>({columnGap:hc(t,n)});return Ea(e,e.columnGap,r)}return null};Mx.propTypes={};Mx.filterProps=["columnGap"];const kx=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=gg(e.theme,"spacing",8),r=n=>({rowGap:hc(t,n)});return Ea(e,e.rowGap,r)}return null};kx.propTypes={};kx.filterProps=["rowGap"];const IK=tr({prop:"gridColumn"}),PK=tr({prop:"gridRow"}),DK=tr({prop:"gridAutoFlow"}),RK=tr({prop:"gridAutoColumns"}),EK=tr({prop:"gridAutoRows"}),LK=tr({prop:"gridTemplateColumns"}),OK=tr({prop:"gridTemplateRows"}),NK=tr({prop:"gridTemplateAreas"}),zK=tr({prop:"gridArea"});Cx(Ax,Mx,kx,IK,PK,DK,RK,EK,LK,OK,NK,zK);function qf(e,t){return t==="grey"?t:e}const BK=tr({prop:"color",themeKey:"palette",transform:qf}),FK=tr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:qf}),VK=tr({prop:"backgroundColor",themeKey:"palette",transform:qf});Cx(BK,FK,VK);function xi(e){return e<=1&&e!==0?`${e*100}%`:e}const $K=tr({prop:"width",transform:xi}),kM=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,i;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||CM[r];return a?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:xi(r)}};return Ea(e,e.maxWidth,t)}return null};kM.filterProps=["maxWidth"];const GK=tr({prop:"minWidth",transform:xi}),HK=tr({prop:"height",transform:xi}),WK=tr({prop:"maxHeight",transform:xi}),jK=tr({prop:"minHeight",transform:xi});tr({prop:"size",cssProperty:"width",transform:xi});tr({prop:"size",cssProperty:"height",transform:xi});const UK=tr({prop:"boxSizing"});Cx($K,kM,GK,HK,WK,jK,UK);const Ix={border:{themeKey:"borders",transform:io},borderTop:{themeKey:"borders",transform:io},borderRight:{themeKey:"borders",transform:io},borderBottom:{themeKey:"borders",transform:io},borderLeft:{themeKey:"borders",transform:io},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Tx},color:{themeKey:"palette",transform:qf},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:qf},backgroundColor:{themeKey:"palette",transform:qf},p:{style:Tr},pt:{style:Tr},pr:{style:Tr},pb:{style:Tr},pl:{style:Tr},px:{style:Tr},py:{style:Tr},padding:{style:Tr},paddingTop:{style:Tr},paddingRight:{style:Tr},paddingBottom:{style:Tr},paddingLeft:{style:Tr},paddingX:{style:Tr},paddingY:{style:Tr},paddingInline:{style:Tr},paddingInlineStart:{style:Tr},paddingInlineEnd:{style:Tr},paddingBlock:{style:Tr},paddingBlockStart:{style:Tr},paddingBlockEnd:{style:Tr},m:{style:Cr},mt:{style:Cr},mr:{style:Cr},mb:{style:Cr},ml:{style:Cr},mx:{style:Cr},my:{style:Cr},margin:{style:Cr},marginTop:{style:Cr},marginRight:{style:Cr},marginBottom:{style:Cr},marginLeft:{style:Cr},marginX:{style:Cr},marginY:{style:Cr},marginInline:{style:Cr},marginInlineStart:{style:Cr},marginInlineEnd:{style:Cr},marginBlock:{style:Cr},marginBlockStart:{style:Cr},marginBlockEnd:{style:Cr},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:Ax},rowGap:{style:kx},columnGap:{style:Mx},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:xi},maxWidth:{style:kM},minWidth:{transform:xi},height:{transform:xi},maxHeight:{transform:xi},minHeight:{transform:xi},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function YK(...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 qK(e,t){return typeof e=="function"?e(t):e}function XK(){function e(r,n,i,a){const o={[r]:n,theme:i},s=a[r];if(!s)return{[r]:n};const{cssProperty:l=r,themeKey:u,transform:c,style:f}=s;if(n==null)return null;if(u==="typography"&&n==="inherit")return{[r]:n};const d=ld(i,u)||{};return f?f(o):Ea(o,n,v=>{let g=s1(d,c,v);return v===g&&typeof v=="string"&&(g=s1(d,c,`${r}${v==="default"?"":Le(v)}`,v)),l===!1?g:{[l]:g}})}function t(r){var n;const{sx:i,theme:a={}}=r||{};if(!i)return null;const o=(n=a.unstable_sxConfig)!=null?n:Ix;function s(l){let u=l;if(typeof l=="function")u=l(a);else if(typeof l!="object")return l;if(!u)return null;const c=r$(a.breakpoints),f=Object.keys(c);let d=c;return Object.keys(u).forEach(h=>{const v=qK(u[h],a);if(v!=null)if(typeof v=="object")if(o[h])d=Zp(d,e(h,v,a,o));else{const g=Ea({theme:a},v,y=>({[h]:y}));YK(g,v)?d[h]=t({sx:v,theme:a}):d=Zp(d,g)}else d=Zp(d,e(h,v,a,o))}),n$(f,d)}return Array.isArray(i)?i.map(s):s(i)}return t}const mg=XK();mg.filterProps=["sx"];const ZK=["breakpoints","palette","spacing","shape"];function yg(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=e,o=De(e,ZK),s=lK(r),l=yK(i);let u=ni({breakpoints:s,direction:"ltr",components:{},palette:U({mode:"light"},n),spacing:l,shape:U({},uK,a)},o);return u=t.reduce((c,f)=>ni(c,f),u),u.unstable_sxConfig=U({},Ix,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return mg({sx:f,theme:this})},u}function KK(e){return Object.keys(e).length===0}function IM(e=null){const t=G.useContext(_x);return!t||KK(t)?e:t}const QK=yg();function Px(e=QK){return IM(e)}function JK({styles:e,themeId:t,defaultTheme:r={}}){const n=Px(r),i=typeof e=="function"?e(t&&n[t]||n):e;return N.jsx(iK,{styles:i})}const eQ=["sx"],tQ=e=>{var t,r;const n={systemProps:{},otherProps:{}},i=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Ix;return Object.keys(e).forEach(a=>{i[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function PM(e){const{sx:t}=e,r=De(e,eQ),{systemProps:n,otherProps:i}=tQ(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...o)=>{const s=t(...o);return Nu(s)?U({},n,s):n}:a=U({},n,t),U({},i,{sx:a})}function a$(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=a$(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Ee(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=a$(e))&&(n&&(n+=" "),n+=t);return n}const rQ=["className","component"];function nQ(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:i}=e,a=t$("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(mg);return G.forwardRef(function(l,u){const c=Px(r),f=PM(l),{className:d,component:h="div"}=f,v=De(f,rQ);return N.jsx(a,U({as:h,ref:u,className:Ee(d,i?i(n):n),theme:t&&c[t]||c},v))})}const iQ=["variant"];function ZE(e){return e.length===0}function o$(e){const{variant:t}=e,r=De(e,iQ);let n=t||"";return Object.keys(r).sort().forEach(i=>{i==="color"?n+=ZE(n)?e[i]:Le(e[i]):n+=`${ZE(n)?i:Le(i)}${Le(e[i].toString())}`}),n}const aQ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function oQ(e){return Object.keys(e).length===0}function sQ(e){return typeof e=="string"&&e.charCodeAt(0)>96}const lQ=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,uQ=(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 a=o$(i.props);n[a]=i.style}),n},cQ=(e,t,r,n)=>{var i;const{ownerState:a={}}=e,o=[],s=r==null||(i=r.components)==null||(i=i[n])==null?void 0:i.variants;return s&&s.forEach(l=>{let u=!0;Object.keys(l.props).forEach(c=>{a[c]!==l.props[c]&&e[c]!==l.props[c]&&(u=!1)}),u&&o.push(t[o$(l.props)])}),o};function Kp(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const fQ=yg(),dQ=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Fh({defaultTheme:e,theme:t,themeId:r}){return oQ(t)?e:t[r]||t}function hQ(e){return e?(t,r)=>r[e]:null}function s$(e={}){const{themeId:t,defaultTheme:r=fQ,rootShouldForwardProp:n=Kp,slotShouldForwardProp:i=Kp}=e,a=o=>mg(U({},o,{theme:Fh(U({},o,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(o,s={})=>{aK(o,w=>w.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:d=hQ(dQ(u))}=s,h=De(s,aQ),v=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,g=f||!1;let y,x=Kp;u==="Root"||u==="root"?x=n:u?x=i:sQ(o)&&(x=void 0);const S=t$(o,U({shouldForwardProp:x,label:y},h)),b=(w,...T)=>{const C=T?T.map(P=>typeof P=="function"&&P.__emotion_real!==P?R=>P(U({},R,{theme:Fh(U({},R,{defaultTheme:r,themeId:t}))})):P):[];let A=w;l&&d&&C.push(P=>{const R=Fh(U({},P,{defaultTheme:r,themeId:t})),L=lQ(l,R);if(L){const O={};return Object.entries(L).forEach(([z,F])=>{O[z]=typeof F=="function"?F(U({},P,{theme:R})):F}),d(P,O)}return null}),l&&!v&&C.push(P=>{const R=Fh(U({},P,{defaultTheme:r,themeId:t}));return cQ(P,uQ(l,R),R,l)}),g||C.push(a);const k=C.length-T.length;if(Array.isArray(w)&&k>0){const P=new Array(k).fill("");A=[...w,...P],A.raw=[...w.raw,...P]}else typeof w=="function"&&w.__emotion_real!==w&&(A=P=>w(U({},P,{theme:Fh(U({},P,{defaultTheme:r,themeId:t}))})));const I=S(A,...C);return o.muiName&&(I.muiName=o.muiName),I};return S.withConfig&&(b.withConfig=S.withConfig),b}}const l$=s$();function pQ(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:mM(t.components[r].defaultProps,n)}function DM({props:e,name:t,defaultTheme:r,themeId:n}){let i=Px(r);return n&&(i=i[n]||i),pQ({theme:i,name:t,props:e})}function RM(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function vQ(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 pc(e){if(e.type)return e;if(e.charAt(0)==="#")return pc(vQ(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Sl(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(Sl(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}function Dx(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((i,a)=>a<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 gQ(e){e=pc(e);const{values:t}=e,r=t[0],n=t[1]/100,i=t[2]/100,a=n*Math.min(i,1-i),o=(u,c=(u+r/30)%12)=>i-a*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const l=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(s+="a",l.push(t[3])),Dx({type:s,values:l})}function KE(e){e=pc(e);let t=e.type==="hsl"||e.type==="hsla"?pc(gQ(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 mQ(e,t){const r=KE(e),n=KE(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Sr(e,t){return e=pc(e),t=RM(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Dx(e)}function Dv(e,t){if(e=pc(e),t=RM(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 Dx(e)}function Rv(e,t){if(e=pc(e),t=RM(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 Dx(e)}const u$=G.createContext(null);function c$(){return G.useContext(u$)}const yQ=typeof Symbol=="function"&&Symbol.for,xQ=yQ?Symbol.for("mui.nested"):"__THEME_NESTED__";function SQ(e,t){return typeof t=="function"?t(e):U({},e,t)}function bQ(e){const{children:t,theme:r}=e,n=c$(),i=G.useMemo(()=>{const a=n===null?r:SQ(n,r);return a!=null&&(a[xQ]=n!==null),a},[r,n]);return N.jsx(u$.Provider,{value:i,children:t})}const QE={};function JE(e,t,r,n=!1){return G.useMemo(()=>{const i=e&&t[e]||t;if(typeof r=="function"){const a=r(i),o=e?U({},t,{[e]:a}):a;return n?()=>o:o}return e?U({},t,{[e]:r}):U({},t,r)},[e,t,r,n])}function _Q(e){const{children:t,theme:r,themeId:n}=e,i=IM(QE),a=c$()||QE,o=JE(n,i,r),s=JE(n,a,r,!0);return N.jsx(bQ,{theme:s,children:N.jsx(_x.Provider,{value:o,children:t})})}const wQ=["className","component","disableGutters","fixed","maxWidth","classes"],CQ=yg(),TQ=l$("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Le(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),AQ=e=>DM({props:e,name:"MuiContainer",defaultTheme:CQ}),MQ=(e,t)=>{const r=l=>tt(t,l),{classes:n,fixed:i,disableGutters:a,maxWidth:o}=e,s={root:["root",o&&`maxWidth${Le(String(o))}`,i&&"fixed",a&&"disableGutters"]};return it(s,r,n)};function kQ(e={}){const{createStyledComponent:t=TQ,useThemeProps:r=AQ,componentName:n="MuiContainer"}=e,i=t(({theme:o,ownerState:s})=>U({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!s.disableGutters&&{paddingLeft:o.spacing(2),paddingRight:o.spacing(2),[o.breakpoints.up("sm")]:{paddingLeft:o.spacing(3),paddingRight:o.spacing(3)}}),({theme:o,ownerState:s})=>s.fixed&&Object.keys(o.breakpoints.values).reduce((l,u)=>{const c=u,f=o.breakpoints.values[c];return f!==0&&(l[o.breakpoints.up(c)]={maxWidth:`${f}${o.breakpoints.unit}`}),l},{}),({theme:o,ownerState:s})=>U({},s.maxWidth==="xs"&&{[o.breakpoints.up("xs")]:{maxWidth:Math.max(o.breakpoints.values.xs,444)}},s.maxWidth&&s.maxWidth!=="xs"&&{[o.breakpoints.up(s.maxWidth)]:{maxWidth:`${o.breakpoints.values[s.maxWidth]}${o.breakpoints.unit}`}}));return G.forwardRef(function(s,l){const u=r(s),{className:c,component:f="div",disableGutters:d=!1,fixed:h=!1,maxWidth:v="lg"}=u,g=De(u,wQ),y=U({},u,{component:f,disableGutters:d,fixed:h,maxWidth:v}),x=MQ(y,n);return N.jsx(i,U({as:f,ownerState:y,className:Ee(x.root,c),ref:l},g))})}const IQ=["component","direction","spacing","divider","children","className","useFlexGap"],PQ=yg(),DQ=l$("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function RQ(e){return DM({props:e,name:"MuiStack",defaultTheme:PQ})}function EQ(e,t){const r=G.Children.toArray(e).filter(Boolean);return r.reduce((n,i,a)=>(n.push(i),a<r.length-1&&n.push(G.cloneElement(t,{key:`separator-${a}`})),n),[])}const LQ=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],OQ=({ownerState:e,theme:t})=>{let r=U({display:"flex",flexDirection:"column"},Ea({theme:t},O_({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=MM(t),i=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),a=O_({values:e.direction,base:i}),o=O_({values:e.spacing,base:i});typeof a=="object"&&Object.keys(a).forEach((l,u,c)=>{if(!a[l]){const d=u>0?a[c[u-1]]:"column";a[l]=d}}),r=ni(r,Ea({theme:t},o,(l,u)=>e.useFlexGap?{gap:hc(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${LQ(u?a[u]:e.direction)}`]:hc(n,l)}}))}return r=cK(t.breakpoints,r),r};function NQ(e={}){const{createStyledComponent:t=DQ,useThemeProps:r=RQ,componentName:n="MuiStack"}=e,i=()=>it({root:["root"]},l=>tt(n,l),{}),a=t(OQ);return G.forwardRef(function(l,u){const c=r(l),f=PM(c),{component:d="div",direction:h="column",spacing:v=0,divider:g,children:y,className:x,useFlexGap:S=!1}=f,b=De(f,IQ),w={direction:h,spacing:v,useFlexGap:S},T=i();return N.jsx(a,U({as:d,ownerState:w,ref:u,className:Ee(T.root,x)},b,{children:g?EQ(y,g):y}))})}function zQ(e,t){return U({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const BQ=["mode","contrastThreshold","tonalOffset"],eL={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:Mv.white,default:Mv.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}},N_={text:{primary:Mv.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:Mv.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 tL(e,t,r,n){const i=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Rv(e.main,i):t==="dark"&&(e.dark=Dv(e.main,a)))}function FQ(e="light"){return e==="dark"?{main:Mu[200],light:Mu[50],dark:Mu[400]}:{main:Mu[700],light:Mu[400],dark:Mu[800]}}function VQ(e="light"){return e==="dark"?{main:rf[200],light:rf[50],dark:rf[400]}:{main:rf[500],light:rf[300],dark:rf[700]}}function $Q(e="light"){return e==="dark"?{main:el[500],light:el[300],dark:el[700]}:{main:el[700],light:el[400],dark:el[800]}}function GQ(e="light"){return e==="dark"?{main:nf[400],light:nf[300],dark:nf[700]}:{main:nf[700],light:nf[500],dark:nf[900]}}function HQ(e="light"){return e==="dark"?{main:af[400],light:af[300],dark:af[700]}:{main:af[800],light:af[500],dark:af[900]}}function WQ(e="light"){return e==="dark"?{main:zh[400],light:zh[300],dark:zh[700]}:{main:"#ed6c02",light:zh[500],dark:zh[900]}}function jQ(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=De(e,BQ),a=e.primary||FQ(t),o=e.secondary||VQ(t),s=e.error||$Q(t),l=e.info||GQ(t),u=e.success||HQ(t),c=e.warning||WQ(t);function f(g){return mQ(g,N_.text.primary)>=r?N_.text.primary:eL.text.primary}const d=({color:g,name:y,mainShade:x=500,lightShade:S=300,darkShade:b=700})=>{if(g=U({},g),!g.main&&g[x]&&(g.main=g[x]),!g.hasOwnProperty("main"))throw new Error(Sl(11,y?` (${y})`:"",x));if(typeof g.main!="string")throw new Error(Sl(12,y?` (${y})`:"",JSON.stringify(g.main)));return tL(g,"light",S,n),tL(g,"dark",b,n),g.contrastText||(g.contrastText=f(g.main)),g},h={dark:N_,light:eL};return ni(U({common:U({},Mv),mode:t,primary:d({color:a,name:"primary"}),secondary:d({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:d({color:s,name:"error"}),warning:d({color:c,name:"warning"}),info:d({color:l,name:"info"}),success:d({color:u,name:"success"}),grey:YX,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},h[t]),i)}const UQ=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function YQ(e){return Math.round(e*1e5)/1e5}const rL={textTransform:"uppercase"},nL='"Roboto", "Helvetica", "Arial", sans-serif';function qQ(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=nL,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=r,d=De(r,UQ),h=i/14,v=f||(x=>`${x/u*h}rem`),g=(x,S,b,w,T)=>U({fontFamily:n,fontWeight:x,fontSize:v(S),lineHeight:b},n===nL?{letterSpacing:`${YQ(w/S)}em`}:{},T,c),y={h1:g(a,96,1.167,-1.5),h2:g(a,60,1.2,-.5),h3:g(o,48,1.167,0),h4:g(o,34,1.235,.25),h5:g(o,24,1.334,0),h6:g(s,20,1.6,.15),subtitle1:g(o,16,1.75,.15),subtitle2:g(s,14,1.57,.1),body1:g(o,16,1.5,.15),body2:g(o,14,1.43,.15),button:g(s,14,1.75,.4,rL),caption:g(o,12,1.66,.4),overline:g(o,12,2.66,1,rL),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ni(U({htmlFontSize:u,pxToRem:v,fontFamily:n,fontSize:i,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:l},y),d,{clone:!1})}const XQ=.2,ZQ=.14,KQ=.12;function gr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${XQ})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ZQ})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${KQ})`].join(",")}const QQ=["none",gr(0,2,1,-1,0,1,1,0,0,1,3,0),gr(0,3,1,-2,0,2,2,0,0,1,5,0),gr(0,3,3,-2,0,3,4,0,0,1,8,0),gr(0,2,4,-1,0,4,5,0,0,1,10,0),gr(0,3,5,-1,0,5,8,0,0,1,14,0),gr(0,3,5,-1,0,6,10,0,0,1,18,0),gr(0,4,5,-2,0,7,10,1,0,2,16,1),gr(0,5,5,-3,0,8,10,1,0,3,14,2),gr(0,5,6,-3,0,9,12,1,0,3,16,2),gr(0,6,6,-3,0,10,14,1,0,4,18,3),gr(0,6,7,-4,0,11,15,1,0,4,20,3),gr(0,7,8,-4,0,12,17,2,0,5,22,4),gr(0,7,8,-4,0,13,19,2,0,5,24,4),gr(0,7,9,-4,0,14,21,2,0,5,26,4),gr(0,8,9,-5,0,15,22,2,0,6,28,5),gr(0,8,10,-5,0,16,24,2,0,6,30,5),gr(0,8,11,-5,0,17,26,2,0,6,32,5),gr(0,9,11,-5,0,18,28,2,0,7,34,6),gr(0,9,12,-6,0,19,29,2,0,7,36,6),gr(0,10,13,-6,0,20,31,3,0,8,38,7),gr(0,10,13,-6,0,21,33,3,0,8,40,7),gr(0,10,14,-6,0,22,35,3,0,8,42,7),gr(0,11,14,-7,0,23,36,3,0,9,44,8),gr(0,11,15,-7,0,24,38,3,0,9,46,8)],JQ=["duration","easing","delay"],eJ={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)"},f$={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function iL(e){return`${Math.round(e)}ms`}function tJ(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function rJ(e){const t=U({},eJ,e.easing),r=U({},f$,e.duration);return U({getAutoHeightDuration:tJ,create:(i=["all"],a={})=>{const{duration:o=r.standard,easing:s=t.easeInOut,delay:l=0}=a;return De(a,JQ),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof o=="string"?o:iL(o)} ${s} ${typeof l=="string"?l:iL(l)}`).join(",")}},e,{easing:t,duration:r})}const nJ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},iJ=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function EM(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:a={}}=e,o=De(e,iJ);if(e.vars)throw new Error(Sl(18));const s=jQ(n),l=yg(e);let u=ni(l,{mixins:zQ(l.breakpoints,r),palette:s,shadows:QQ.slice(),typography:qQ(s,a),transitions:rJ(i),zIndex:U({},nJ)});return u=ni(u,o),u=t.reduce((c,f)=>ni(c,f),u),u.unstable_sxConfig=U({},Ix,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return mg({sx:f,theme:this})},u}const Rx=EM();function Io(){const e=Px(Rx);return e[dc]||e}function ot({props:e,name:t}){return DM({props:e,name:t,defaultTheme:Rx,themeId:dc})}const za=e=>Kp(e)&&e!=="classes",aJ=Kp,be=s$({themeId:dc,defaultTheme:Rx,rootShouldForwardProp:za}),oJ=["theme"];function d$(e){let{theme:t}=e,r=De(e,oJ);const n=t[dc];return N.jsx(_Q,U({},r,{themeId:n?dc:void 0,theme:n||t}))}const aL=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function sJ(e){return tt("MuiSvgIcon",e)}at("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const lJ=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],uJ=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${Le(t)}`,`fontSize${Le(r)}`]};return it(i,sJ,n)},cJ=be("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${Le(r.color)}`],t[`fontSize${Le(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,i,a,o,s,l,u,c,f,d,h,v;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:((a=e.typography)==null||(o=a.pxToRem)==null?void 0:o.call(a,20))||"1.25rem",medium:((s=e.typography)==null||(l=s.pxToRem)==null?void 0:l.call(s,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(d=(e.vars||e).palette)==null||(d=d[t.color])==null?void 0:d.main)!=null?f:{action:(h=(e.vars||e).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),YT=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:o="inherit",component:s="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:d="0 0 24 24"}=n,h=De(n,lJ),v=G.isValidElement(i)&&i.type==="svg",g=U({},n,{color:o,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:v}),y={};c||(y.viewBox=d);const x=uJ(g);return N.jsxs(cJ,U({as:s,className:Ee(x.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},y,h,v&&i.props,{ownerState:g,children:[v?i.props.children:i,f?N.jsx("title",{children:f}):null]}))});YT.muiName="SvgIcon";function ci(e,t){function r(n,i){return N.jsx(YT,U({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return r.muiName=YT.muiName,G.memo(G.forwardRef(r))}const fJ={configure:e=>{yM.configure(e)}},dJ=Object.freeze(Object.defineProperty({__proto__:null,capitalize:Le,createChainedFunction:GT,createSvgIcon:ci,debounce:Md,deprecatedPropType:qX,isMuiElement:Xp,ownerDocument:ln,ownerWindow:ta,requirePropFactory:XX,setRef:a1,unstable_ClassNameGenerator:fJ,unstable_useEnhancedEffect:Ra,unstable_useId:gM,unsupportedProp:KX,useControlled:od,useEventCallback:Ta,useForkRef:kr,useIsFocusVisible:yx},Symbol.toStringTag,{value:"Module"}));var z_={exports:{}},Jt={};/**
|
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 oL;function hJ(){if(oL)return Jt;oL=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"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),s=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),v;v=Symbol.for("react.module.reference");function g(y){if(typeof y=="object"&&y!==null){var x=y.$$typeof;switch(x){case e:switch(y=y.type,y){case r:case i:case n:case u:case c:return y;default:switch(y=y&&y.$$typeof,y){case s:case o:case l:case d:case f:case a:return y;default:return x}}case t:return x}}}return Jt.ContextConsumer=o,Jt.ContextProvider=a,Jt.Element=e,Jt.ForwardRef=l,Jt.Fragment=r,Jt.Lazy=d,Jt.Memo=f,Jt.Portal=t,Jt.Profiler=i,Jt.StrictMode=n,Jt.Suspense=u,Jt.SuspenseList=c,Jt.isAsyncMode=function(){return!1},Jt.isConcurrentMode=function(){return!1},Jt.isContextConsumer=function(y){return g(y)===o},Jt.isContextProvider=function(y){return g(y)===a},Jt.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Jt.isForwardRef=function(y){return g(y)===l},Jt.isFragment=function(y){return g(y)===r},Jt.isLazy=function(y){return g(y)===d},Jt.isMemo=function(y){return g(y)===f},Jt.isPortal=function(y){return g(y)===t},Jt.isProfiler=function(y){return g(y)===i},Jt.isStrictMode=function(y){return g(y)===n},Jt.isSuspense=function(y){return g(y)===u},Jt.isSuspenseList=function(y){return g(y)===c},Jt.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===i||y===n||y===u||y===c||y===h||typeof y=="object"&&y!==null&&(y.$$typeof===d||y.$$typeof===f||y.$$typeof===a||y.$$typeof===o||y.$$typeof===l||y.$$typeof===v||y.getModuleId!==void 0)},Jt.typeOf=g,Jt}var sL;function pJ(){return sL||(sL=1,z_.exports=hJ()),z_.exports}pJ();function qT(e,t){return qT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},qT(e,t)}function h$(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,qT(e,t)}var LM=oV();const ly=ki(LM),lL={disabled:!1},l1=Ca.createContext(null);var vJ=function(t){return t.scrollTop},Dp="unmounted",ku="exited",Iu="entering",Ef="entered",XT="exiting",aa=function(e){h$(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=i,s=o&&!o.isMounting?n.enter:n.appear,l;return a.appearStatus=null,n.in?s?(l=ku,a.appearStatus=Iu):l=Ef:n.unmountOnExit||n.mountOnEnter?l=Dp:l=ku,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===Dp?{status:ku}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==Iu&&o!==Ef&&(a=Iu):(o===Iu||o===Ef)&&(a=XT)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,o,s;return a=o=s=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,s=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:s}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Iu){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:ly.findDOMNode(this);o&&vJ(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ku&&this.setState({status:Dp})},r.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[ly.findDOMNode(this),s],u=l[0],c=l[1],f=this.getTimeouts(),d=s?f.appear:f.enter;if(!i&&!o||lL.disabled){this.safeSetState({status:Ef},function(){a.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Iu},function(){a.props.onEntering(u,c),a.onTransitionEnd(d,function(){a.safeSetState({status:Ef},function(){a.props.onEntered(u,c)})})})},r.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),s=this.props.nodeRef?void 0:ly.findDOMNode(this);if(!a||lL.disabled){this.safeSetState({status:ku},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:XT},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:ku},function(){i.props.onExited(s)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(s){o&&(o=!1,a.nextCallback=null,i(s))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:ly.findDOMNode(this),s=i==null&&!this.props.addEndListener;if(!o||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===Dp)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var s=De(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ca.createElement(l1.Provider,{value:null},typeof o=="function"?o(i,s):Ca.cloneElement(Ca.Children.only(o),s))},t}(Ca.Component);aa.contextType=l1;aa.propTypes={};function sf(){}aa.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:sf,onEntering:sf,onEntered:sf,onExit:sf,onExiting:sf,onExited:sf};aa.UNMOUNTED=Dp;aa.EXITED=ku;aa.ENTERING=Iu;aa.ENTERED=Ef;aa.EXITING=XT;function gJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OM(e,t){var r=function(a){return t&&G.isValidElement(a)?t(a):a},n=Object.create(null);return e&&G.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function mJ(e,t){e=e||{},t=t||{};function r(c){return c in t?t[c]:e[c]}var n=Object.create(null),i=[];for(var a in e)a in t?i.length&&(n[a]=i,i=[]):i.push(a);var o,s={};for(var l in t){if(n[l])for(o=0;o<n[l].length;o++){var u=n[l][o];s[n[l][o]]=r(u)}s[l]=r(l)}for(o=0;o<i.length;o++)s[i[o]]=r(i[o]);return s}function Gu(e,t,r){return r[t]!=null?r[t]:e.props[t]}function yJ(e,t){return OM(e.children,function(r){return G.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:Gu(r,"appear",e),enter:Gu(r,"enter",e),exit:Gu(r,"exit",e)})})}function xJ(e,t,r){var n=OM(e.children),i=mJ(t,n);return Object.keys(i).forEach(function(a){var o=i[a];if(G.isValidElement(o)){var s=a in t,l=a in n,u=t[a],c=G.isValidElement(u)&&!u.props.in;l&&(!s||c)?i[a]=G.cloneElement(o,{onExited:r.bind(null,o),in:!0,exit:Gu(o,"exit",e),enter:Gu(o,"enter",e)}):!l&&s&&!c?i[a]=G.cloneElement(o,{in:!1}):l&&s&&G.isValidElement(u)&&(i[a]=G.cloneElement(o,{onExited:r.bind(null,o),in:u.props.in,exit:Gu(o,"exit",e),enter:Gu(o,"enter",e)}))}}),i}var SJ=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},bJ={component:"div",childFactory:function(t){return t}},NM=function(e){h$(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=a.handleExited.bind(gJ(a));return a.state={contextValue:{isMounting:!0},handleExited:o,firstRender:!0},a}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,a){var o=a.children,s=a.handleExited,l=a.firstRender;return{children:l?yJ(i,s):xJ(i,o,s),firstRender:!1}},r.handleExited=function(i,a){var o=OM(this.props.children);i.key in o||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(s){var l=U({},s.children);return delete l[i.key],{children:l}}))},r.render=function(){var i=this.props,a=i.component,o=i.childFactory,s=De(i,["component","childFactory"]),l=this.state.contextValue,u=SJ(this.state.children).map(o);return delete s.appear,delete s.enter,delete s.exit,a===null?Ca.createElement(l1.Provider,{value:l},u):Ca.createElement(l1.Provider,{value:l},Ca.createElement(a,s,u))},t}(Ca.Component);NM.propTypes={};NM.defaultProps=bJ;const zM=e=>e.scrollTop;function bl(e,t){var r,n;const{timeout:i,easing:a,style:o={}}=e;return{duration:(r=o.transitionDuration)!=null?r:typeof i=="number"?i:i[t.mode]||0,easing:(n=o.transitionTimingFunction)!=null?n:typeof a=="object"?a[t.mode]:a,delay:o.transitionDelay}}function _J(e){return tt("MuiCollapse",e)}at("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const wJ=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],CJ=e=>{const{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return it(n,_J,r)},TJ=be("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})=>U({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&U({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),AJ=be("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>U({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),MJ=be("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>U({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),p$=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiCollapse"}),{addEndListener:i,children:a,className:o,collapsedSize:s="0px",component:l,easing:u,in:c,onEnter:f,onEntered:d,onEntering:h,onExit:v,onExited:g,onExiting:y,orientation:x="vertical",style:S,timeout:b=f$.standard,TransitionComponent:w=aa}=n,T=De(n,wJ),C=U({},n,{orientation:x,collapsedSize:s}),A=CJ(C),k=Io(),I=G.useRef(),P=G.useRef(null),R=G.useRef(),L=typeof s=="number"?`${s}px`:s,O=x==="horizontal",z=O?"width":"height";G.useEffect(()=>()=>{clearTimeout(I.current)},[]);const F=G.useRef(null),H=kr(r,F),q=te=>pe=>{if(te){const ae=F.current;pe===void 0?te(ae):te(ae,pe)}},$=()=>P.current?P.current[O?"clientWidth":"clientHeight"]:0,X=q((te,pe)=>{P.current&&O&&(P.current.style.position="absolute"),te.style[z]=L,f&&f(te,pe)}),B=q((te,pe)=>{const ae=$();P.current&&O&&(P.current.style.position="");const{duration:he,easing:ve}=bl({style:S,timeout:b,easing:u},{mode:"enter"});if(b==="auto"){const fe=k.transitions.getAutoHeightDuration(ae);te.style.transitionDuration=`${fe}ms`,R.current=fe}else te.style.transitionDuration=typeof he=="string"?he:`${he}ms`;te.style[z]=`${ae}px`,te.style.transitionTimingFunction=ve,h&&h(te,pe)}),Y=q((te,pe)=>{te.style[z]="auto",d&&d(te,pe)}),Z=q(te=>{te.style[z]=`${$()}px`,v&&v(te)}),j=q(g),re=q(te=>{const pe=$(),{duration:ae,easing:he}=bl({style:S,timeout:b,easing:u},{mode:"exit"});if(b==="auto"){const ve=k.transitions.getAutoHeightDuration(pe);te.style.transitionDuration=`${ve}ms`,R.current=ve}else te.style.transitionDuration=typeof ae=="string"?ae:`${ae}ms`;te.style[z]=L,te.style.transitionTimingFunction=he,y&&y(te)}),ce=te=>{b==="auto"&&(I.current=setTimeout(te,R.current||0)),i&&i(F.current,te)};return N.jsx(w,U({in:c,onEnter:X,onEntered:Y,onEntering:B,onExit:Z,onExited:j,onExiting:re,addEndListener:ce,nodeRef:F,timeout:b==="auto"?null:b},T,{children:(te,pe)=>N.jsx(TJ,U({as:l,className:Ee(A.root,o,{entered:A.entered,exited:!c&&L==="0px"&&A.hidden}[te]),style:U({[O?"minWidth":"minHeight"]:L},S),ownerState:U({},C,{state:te}),ref:H},pe,{children:N.jsx(AJ,{ownerState:U({},C,{state:te}),className:A.wrapper,ref:P,children:N.jsx(MJ,{ownerState:U({},C,{state:te}),className:A.wrapperInner,children:a})})}))}))});p$.muiSupportAuto=!0;function kJ(e){return tt("MuiPaper",e)}at("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 IJ=["className","component","elevation","square","variant"],PJ=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return it(a,kJ,i)},DJ=be("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 U({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"&&U({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Sr("#fff",aL(t.elevation))}, ${Sr("#fff",aL(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),gs=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:o=1,square:s=!1,variant:l="elevation"}=n,u=De(n,IJ),c=U({},n,{component:a,elevation:o,square:s,variant:l}),f=PJ(c);return N.jsx(DJ,U({as:a,ownerState:c,className:Ee(f.root,i),ref:r},u))}),v$=G.createContext({});function RJ(e){return tt("MuiAccordion",e)}const uy=at("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),EJ=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],LJ=e=>{const{classes:t,square:r,expanded:n,disabled:i,disableGutters:a}=e;return it({root:["root",!r&&"rounded",n&&"expanded",i&&"disabled",!a&&"gutters"],region:["region"]},RJ,t)},OJ=be(gs,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${uy.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"}},[`&.${uy.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${uy.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>U({},!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&&{[`&.${uy.expanded}`]:{margin:"16px 0"}})),BM=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiAccordion"}),{children:i,className:a,defaultExpanded:o=!1,disabled:s=!1,disableGutters:l=!1,expanded:u,onChange:c,square:f=!1,TransitionComponent:d=p$,TransitionProps:h}=n,v=De(n,EJ),[g,y]=od({controlled:u,default:o,name:"Accordion",state:"expanded"}),x=G.useCallback(A=>{y(!g),c&&c(A,!g)},[g,c,y]),[S,...b]=G.Children.toArray(i),w=G.useMemo(()=>({expanded:g,disabled:s,disableGutters:l,toggle:x}),[g,s,l,x]),T=U({},n,{square:f,disabled:s,disableGutters:l,expanded:g}),C=LJ(T);return N.jsxs(OJ,U({className:Ee(C.root,a),ref:r,ownerState:T,square:f},v,{children:[N.jsx(v$.Provider,{value:w,children:S}),N.jsx(d,U({in:g,timeout:"auto"},h,{children:N.jsx("div",{"aria-labelledby":S.props.id,id:S.props["aria-controls"],role:"region",className:C.region,children:b})}))]}))});function NJ(e){return tt("MuiAccordionDetails",e)}at("MuiAccordionDetails",["root"]);const zJ=["className"],BJ=e=>{const{classes:t}=e;return it({root:["root"]},NJ,t)},FJ=be("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),FM=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiAccordionDetails"}),{className:i}=n,a=De(n,zJ),o=n,s=BJ(o);return N.jsx(FJ,U({className:Ee(s.root,i),ref:r,ownerState:o},a))});function VJ(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:l,timeout:u}=e,[c,f]=G.useState(!1),d=Ee(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),h={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},v=Ee(r.child,c&&r.childLeaving,n&&r.childPulsate);return!s&&!c&&f(!0),G.useEffect(()=>{if(!s&&l!=null){const g=setTimeout(l,u);return()=>{clearTimeout(g)}}},[l,s,u]),N.jsx("span",{className:d,style:h,children:N.jsx("span",{className:v})})}const ji=at("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),$J=["center","classes","className"];let Ex=e=>e,uL,cL,fL,dL;const ZT=550,GJ=80,HJ=wM(uL||(uL=Ex`
|
68
|
-
0% {
|
69
|
-
transform: scale(0);
|
70
|
-
opacity: 0.1;
|
71
|
-
}
|
72
|
-
|
73
|
-
100% {
|
74
|
-
transform: scale(1);
|
75
|
-
opacity: 0.3;
|
76
|
-
}
|
77
|
-
`)),WJ=wM(cL||(cL=Ex`
|
78
|
-
0% {
|
79
|
-
opacity: 1;
|
80
|
-
}
|
81
|
-
|
82
|
-
100% {
|
83
|
-
opacity: 0;
|
84
|
-
}
|
85
|
-
`)),jJ=wM(fL||(fL=Ex`
|
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
|
-
`)),UJ=be("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),YJ=be(VJ,{name:"MuiTouchRipple",slot:"Ripple"})(dL||(dL=Ex`
|
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
|
-
`),ji.rippleVisible,HJ,ZT,({theme:e})=>e.transitions.easing.easeInOut,ji.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ji.child,ji.childLeaving,WJ,ZT,({theme:e})=>e.transitions.easing.easeInOut,ji.childPulsate,jJ,({theme:e})=>e.transitions.easing.easeInOut),qJ=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:o}=n,s=De(n,$J),[l,u]=G.useState([]),c=G.useRef(0),f=G.useRef(null);G.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const d=G.useRef(!1),h=G.useRef(0),v=G.useRef(null),g=G.useRef(null);G.useEffect(()=>()=>{h.current&&clearTimeout(h.current)},[]);const y=G.useCallback(w=>{const{pulsate:T,rippleX:C,rippleY:A,rippleSize:k,cb:I}=w;u(P=>[...P,N.jsx(YJ,{classes:{ripple:Ee(a.ripple,ji.ripple),rippleVisible:Ee(a.rippleVisible,ji.rippleVisible),ripplePulsate:Ee(a.ripplePulsate,ji.ripplePulsate),child:Ee(a.child,ji.child),childLeaving:Ee(a.childLeaving,ji.childLeaving),childPulsate:Ee(a.childPulsate,ji.childPulsate)},timeout:ZT,pulsate:T,rippleX:C,rippleY:A,rippleSize:k},c.current)]),c.current+=1,f.current=I},[a]),x=G.useCallback((w={},T={},C=()=>{})=>{const{pulsate:A=!1,center:k=i||T.pulsate,fakeElement:I=!1}=T;if((w==null?void 0:w.type)==="mousedown"&&d.current){d.current=!1;return}(w==null?void 0:w.type)==="touchstart"&&(d.current=!0);const P=I?null:g.current,R=P?P.getBoundingClientRect():{width:0,height:0,left:0,top:0};let L,O,z;if(k||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)L=Math.round(R.width/2),O=Math.round(R.height/2);else{const{clientX:F,clientY:H}=w.touches&&w.touches.length>0?w.touches[0]:w;L=Math.round(F-R.left),O=Math.round(H-R.top)}if(k)z=Math.sqrt((2*R.width**2+R.height**2)/3),z%2===0&&(z+=1);else{const F=Math.max(Math.abs((P?P.clientWidth:0)-L),L)*2+2,H=Math.max(Math.abs((P?P.clientHeight:0)-O),O)*2+2;z=Math.sqrt(F**2+H**2)}w!=null&&w.touches?v.current===null&&(v.current=()=>{y({pulsate:A,rippleX:L,rippleY:O,rippleSize:z,cb:C})},h.current=setTimeout(()=>{v.current&&(v.current(),v.current=null)},GJ)):y({pulsate:A,rippleX:L,rippleY:O,rippleSize:z,cb:C})},[i,y]),S=G.useCallback(()=>{x({},{pulsate:!0})},[x]),b=G.useCallback((w,T)=>{if(clearTimeout(h.current),(w==null?void 0:w.type)==="touchend"&&v.current){v.current(),v.current=null,h.current=setTimeout(()=>{b(w,T)});return}v.current=null,u(C=>C.length>0?C.slice(1):C),f.current=T},[]);return G.useImperativeHandle(r,()=>({pulsate:S,start:x,stop:b}),[S,x,b]),N.jsx(UJ,U({className:Ee(ji.root,a.root,o),ref:g},s,{children:N.jsx(NM,{component:null,exit:!0,children:l})}))});function XJ(e){return tt("MuiButtonBase",e)}const ZJ=at("MuiButtonBase",["root","disabled","focusVisible"]),KJ=["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"],QJ=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=it({root:["root",t&&"disabled",r&&"focusVisible"]},XJ,i);return r&&n&&(o.root+=` ${n}`),o},JJ=be("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"},[`&.${ZJ.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),wc=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:o,className:s,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:d=!1,LinkComponent:h="a",onBlur:v,onClick:g,onContextMenu:y,onDragLeave:x,onFocus:S,onFocusVisible:b,onKeyDown:w,onKeyUp:T,onMouseDown:C,onMouseLeave:A,onMouseUp:k,onTouchEnd:I,onTouchMove:P,onTouchStart:R,tabIndex:L=0,TouchRippleProps:O,touchRippleRef:z,type:F}=n,H=De(n,KJ),q=G.useRef(null),$=G.useRef(null),X=kr($,z),{isFocusVisibleRef:B,onFocus:Y,onBlur:Z,ref:j}=yx(),[re,ce]=G.useState(!1);u&&re&&ce(!1),G.useImperativeHandle(i,()=>({focusVisible:()=>{ce(!0),q.current.focus()}}),[]);const[te,pe]=G.useState(!1);G.useEffect(()=>{pe(!0)},[]);const ae=te&&!c&&!u;G.useEffect(()=>{re&&d&&!c&&te&&$.current.pulsate()},[c,d,re,te]);function he(Me,Pt,sr=f){return Ta(ze=>(Pt&&Pt(ze),!sr&&$.current&&$.current[Me](ze),!0))}const ve=he("start",C),fe=he("stop",y),ge=he("stop",x),Re=he("stop",k),Ie=he("stop",Me=>{re&&Me.preventDefault(),A&&A(Me)}),$e=he("start",R),dt=he("stop",I),ct=he("stop",P),bt=he("stop",Me=>{Z(Me),B.current===!1&&ce(!1),v&&v(Me)},!1),At=Ta(Me=>{q.current||(q.current=Me.currentTarget),Y(Me),B.current===!0&&(ce(!0),b&&b(Me)),S&&S(Me)}),_t=()=>{const Me=q.current;return l&&l!=="button"&&!(Me.tagName==="A"&&Me.href)},st=G.useRef(!1),rr=Ta(Me=>{d&&!st.current&&re&&$.current&&Me.key===" "&&(st.current=!0,$.current.stop(Me,()=>{$.current.start(Me)})),Me.target===Me.currentTarget&&_t()&&Me.key===" "&&Me.preventDefault(),w&&w(Me),Me.target===Me.currentTarget&&_t()&&Me.key==="Enter"&&!u&&(Me.preventDefault(),g&&g(Me))}),Gt=Ta(Me=>{d&&Me.key===" "&&$.current&&re&&!Me.defaultPrevented&&(st.current=!1,$.current.stop(Me,()=>{$.current.pulsate(Me)})),T&&T(Me),g&&Me.target===Me.currentTarget&&_t()&&Me.key===" "&&!Me.defaultPrevented&&g(Me)});let It=l;It==="button"&&(H.href||H.to)&&(It=h);const le={};It==="button"?(le.type=F===void 0?"button":F,le.disabled=u):(!H.href&&!H.to&&(le.role="button"),u&&(le["aria-disabled"]=u));const ye=kr(r,j,q),je=U({},n,{centerRipple:a,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:d,tabIndex:L,focusVisible:re}),Ne=QJ(je);return N.jsxs(JJ,U({as:It,className:Ee(Ne.root,s),ownerState:je,onBlur:bt,onClick:g,onContextMenu:fe,onFocus:At,onKeyDown:rr,onKeyUp:Gt,onMouseDown:ve,onMouseLeave:Ie,onMouseUp:Re,onDragLeave:ge,onTouchEnd:dt,onTouchMove:ct,onTouchStart:$e,ref:ye,tabIndex:u?-1:L,type:F},le,H,{children:[o,ae?N.jsx(qJ,U({ref:X,center:a},O)):null]}))});function eee(e){return tt("MuiAccordionSummary",e)}const Gf=at("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),tee=["children","className","expandIcon","focusVisibleClassName","onClick"],ree=e=>{const{classes:t,expanded:r,disabled:n,disableGutters:i}=e;return it({root:["root",r&&"expanded",n&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]},eee,t)},nee=be(wc,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={duration:e.transitions.duration.shortest};return U({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],r),[`&.${Gf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Gf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${Gf.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${Gf.expanded}`]:{minHeight:64}})}),iee=be("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>U({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${Gf.expanded}`]:{margin:"20px 0"}})),aee=be("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}),[`&.${Gf.expanded}`]:{transform:"rotate(180deg)"}})),VM=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiAccordionSummary"}),{children:i,className:a,expandIcon:o,focusVisibleClassName:s,onClick:l}=n,u=De(n,tee),{disabled:c=!1,disableGutters:f,expanded:d,toggle:h}=G.useContext(v$),v=x=>{h&&h(x),l&&l(x)},g=U({},n,{expanded:d,disabled:c,disableGutters:f}),y=ree(g);return N.jsxs(nee,U({focusRipple:!1,disableRipple:!0,disabled:c,component:"div","aria-expanded":d,className:Ee(y.root,a),focusVisibleClassName:Ee(y.focusVisible,s),onClick:v,ref:r,ownerState:g},u,{children:[N.jsx(iee,{className:y.content,ownerState:g,children:i}),o&&N.jsx(aee,{className:y.expandIconWrapper,ownerState:g,children:o})]}))});function oee(e){return tt("MuiAlert",e)}const hL=at("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function see(e){return tt("MuiIconButton",e)}const lee=at("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),uee=["edge","children","className","color","disabled","disableFocusRipple","size"],cee=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a}=e,o={root:["root",r&&"disabled",n!=="default"&&`color${Le(n)}`,i&&`edge${Le(i)}`,`size${Le(a)}`]};return it(o,see,t)},fee=be(wc,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${Le(r.color)}`],r.edge&&t[`edge${Le(r.edge)}`],t[`size${Le(r.size)}`]]}})(({theme:e,ownerState:t})=>U({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})`:Sr(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 U({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&U({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":U({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Sr(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)},{[`&.${lee.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Cc=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:o,color:s="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=n,f=De(n,uee),d=U({},n,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),h=cee(d);return N.jsx(fee,U({className:Ee(h.root,o),centerRipple:!0,focusRipple:!u,disabled:l,ref:r,ownerState:d},f,{children:a}))}),dee=ci(N.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"),hee=ci(N.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),pee=ci(N.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"),vee=ci(N.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"),gee=ci(N.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"),mee=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],yee=e=>{const{variant:t,color:r,severity:n,classes:i}=e,a={root:["root",`${t}${Le(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return it(a,oee,i)},xee=be(gs,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Le(r.color||r.severity)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?Dv:Rv,n=e.palette.mode==="light"?Rv:Dv,i=t.color||t.severity;return U({},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),[`& .${hL.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}`,[`& .${hL.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}},i&&t.variant==="filled"&&U({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)}))}),See=be("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),bee=be("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),pL=be("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),vL={success:N.jsx(dee,{fontSize:"inherit"}),warning:N.jsx(hee,{fontSize:"inherit"}),error:N.jsx(pee,{fontSize:"inherit"}),info:N.jsx(vee,{fontSize:"inherit"})},tl=G.forwardRef(function(t,r){var n,i,a,o,s,l;const u=ot({props:t,name:"MuiAlert"}),{action:c,children:f,className:d,closeText:h="Close",color:v,components:g={},componentsProps:y={},icon:x,iconMapping:S=vL,onClose:b,role:w="alert",severity:T="success",slotProps:C={},slots:A={},variant:k="standard"}=u,I=De(u,mee),P=U({},u,{color:v,severity:T,variant:k}),R=yee(P),L=(n=(i=A.closeButton)!=null?i:g.CloseButton)!=null?n:Cc,O=(a=(o=A.closeIcon)!=null?o:g.CloseIcon)!=null?a:gee,z=(s=C.closeButton)!=null?s:y.closeButton,F=(l=C.closeIcon)!=null?l:y.closeIcon;return N.jsxs(xee,U({role:w,elevation:0,ownerState:P,className:Ee(R.root,d),ref:r},I,{children:[x!==!1?N.jsx(See,{ownerState:P,className:R.icon,children:x||S[T]||vL[T]}):null,N.jsx(bee,{ownerState:P,className:R.message,children:f}),c!=null?N.jsx(pL,{ownerState:P,className:R.action,children:c}):null,c==null&&b?N.jsx(pL,{ownerState:P,className:R.action,children:N.jsx(L,U({size:"small","aria-label":h,title:h,color:"inherit",onClick:b},z,{children:N.jsx(O,U({fontSize:"small"},F))}))}):null]}))});function _ee(e){return tt("MuiTypography",e)}at("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const wee=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Cee=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:o}=e,s={root:["root",a,e.align!=="inherit"&&`align${Le(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return it(s,_ee,o)},Tee=be("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${Le(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>U({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})),gL={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Aee={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Mee=e=>Aee[e]||e,Et=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiTypography"}),i=Mee(n.color),a=PM(U({},n,{color:i})),{align:o="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:d="body1",variantMapping:h=gL}=a,v=De(a,wee),g=U({},a,{align:o,color:i,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:d,variantMapping:h}),y=l||(f?"p":h[d]||gL[d])||"span",x=Cee(g);return N.jsx(Tee,U({as:y,ref:r,ownerState:g,className:Ee(x.root,s)},v))});function kee(e){return tt("MuiAppBar",e)}at("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const Iee=["className","color","enableColorOnDark","position"],Pee=e=>{const{color:t,position:r,classes:n}=e,i={root:["root",`color${Le(t)}`,`position${Le(r)}`]};return it(i,kee,n)},cy=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Dee=be(gs,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Le(r.position)}`],t[`color${Le(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return U({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&&U({},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"&&U({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&U({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:cy(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:cy(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:cy(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:cy(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"}))}),Ree=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:o=!1,position:s="fixed"}=n,l=De(n,Iee),u=U({},n,{color:a,position:s,enableColorOnDark:o}),c=Pee(u);return N.jsx(Dee,U({square:!0,component:"header",ownerState:u,elevation:4,className:Ee(c.root,i,s==="fixed"&&"mui-fixed"),ref:r},l))});function ud(e){return typeof e=="string"}function Rp(e,t,r){return e===void 0||ud(e)?t:U({},t,{ownerState:U({},t.ownerState,r)})}const Eee={disableDefaultClasses:!1},Lee=G.createContext(Eee);function Oee(e){const{disableDefaultClasses:t}=G.useContext(Lee);return r=>t?"":e(r)}function g$(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 Nee(e,t,r){return typeof e=="function"?e(t,r):e}function mL(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 zee(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const h=Ee(i==null?void 0:i.className,n==null?void 0:n.className,a,r==null?void 0:r.className),v=U({},r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),g=U({},r,i,n);return h.length>0&&(g.className=h),Object.keys(v).length>0&&(g.style=v),{props:g,internalRef:void 0}}const o=g$(U({},i,n)),s=mL(n),l=mL(i),u=t(o),c=Ee(u==null?void 0:u.className,r==null?void 0:r.className,a,i==null?void 0:i.className,n==null?void 0:n.className),f=U({},u==null?void 0:u.style,r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),d=U({},u,r,l,s);return c.length>0&&(d.className=c),Object.keys(f).length>0&&(d.style=f),{props:d,internalRef:u.ref}}const Bee=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function La(e){var t;const{elementType:r,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:a=!1}=e,o=De(e,Bee),s=a?{}:Nee(n,i),{props:l,internalRef:u}=zee(U({},o,{externalSlotProps:s})),c=kr(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return Rp(r,U({},l,{ref:c}),i)}const Fee=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Vee(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 $ee(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 Gee(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||$ee(e))}function Hee(e){const t=[],r=[];return Array.from(e.querySelectorAll(Fee)).forEach((n,i)=>{const a=Vee(n);a===-1||!Gee(n)||(a===0?t.push(n):r.push({documentOrder:i,tabIndex:a,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 Wee(){return!0}function jee(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=Hee,isEnabled:o=Wee,open:s}=e,l=G.useRef(!1),u=G.useRef(null),c=G.useRef(null),f=G.useRef(null),d=G.useRef(null),h=G.useRef(!1),v=G.useRef(null),g=kr(t.ref,v),y=G.useRef(null);G.useEffect(()=>{!s||!v.current||(h.current=!r)},[r,s]),G.useEffect(()=>{if(!s||!v.current)return;const b=ln(v.current);return v.current.contains(b.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),h.current&&v.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),G.useEffect(()=>{if(!s||!v.current)return;const b=ln(v.current),w=A=>{y.current=A,!(n||!o()||A.key!=="Tab")&&b.activeElement===v.current&&A.shiftKey&&(l.current=!0,c.current&&c.current.focus())},T=()=>{const A=v.current;if(A===null)return;if(!b.hasFocus()||!o()||l.current){l.current=!1;return}if(A.contains(b.activeElement)||n&&b.activeElement!==u.current&&b.activeElement!==c.current)return;if(b.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!h.current)return;let k=[];if((b.activeElement===u.current||b.activeElement===c.current)&&(k=a(v.current)),k.length>0){var I,P;const R=!!((I=y.current)!=null&&I.shiftKey&&((P=y.current)==null?void 0:P.key)==="Tab"),L=k[0],O=k[k.length-1];typeof L!="string"&&typeof O!="string"&&(R?O.focus():L.focus())}else A.focus()};b.addEventListener("focusin",T),b.addEventListener("keydown",w,!0);const C=setInterval(()=>{b.activeElement&&b.activeElement.tagName==="BODY"&&T()},50);return()=>{clearInterval(C),b.removeEventListener("focusin",T),b.removeEventListener("keydown",w,!0)}},[r,n,i,o,s,a]);const x=b=>{f.current===null&&(f.current=b.relatedTarget),h.current=!0,d.current=b.target;const w=t.props.onFocus;w&&w(b)},S=b=>{f.current===null&&(f.current=b.relatedTarget),h.current=!0};return N.jsxs(G.Fragment,{children:[N.jsx("div",{tabIndex:s?0:-1,onFocus:S,ref:u,"data-testid":"sentinelStart"}),G.cloneElement(t,{ref:g,onFocus:x}),N.jsx("div",{tabIndex:s?0:-1,onFocus:S,ref:c,"data-testid":"sentinelEnd"})]})}var ii="top",ra="bottom",na="right",ai="left",$M="auto",xg=[ii,ra,na,ai],cd="start",Ev="end",Uee="clippingParents",m$="viewport",Vh="popper",Yee="reference",yL=xg.reduce(function(e,t){return e.concat([t+"-"+cd,t+"-"+Ev])},[]),y$=[].concat(xg,[$M]).reduce(function(e,t){return e.concat([t,t+"-"+cd,t+"-"+Ev])},[]),qee="beforeRead",Xee="read",Zee="afterRead",Kee="beforeMain",Qee="main",Jee="afterMain",ete="beforeWrite",tte="write",rte="afterWrite",nte=[qee,Xee,Zee,Kee,Qee,Jee,ete,tte,rte];function bo(e){return e?(e.nodeName||"").toLowerCase():null}function Mi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function vc(e){var t=Mi(e).Element;return e instanceof t||e instanceof Element}function Ji(e){var t=Mi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function GM(e){if(typeof ShadowRoot>"u")return!1;var t=Mi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function ite(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},a=t.elements[r];!Ji(a)||!bo(a)||(Object.assign(a.style,n),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function ate(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],a=t.attributes[n]||{},o=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),s=o.reduce(function(l,u){return l[u]="",l},{});!Ji(i)||!bo(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}const ote={name:"applyStyles",enabled:!0,phase:"write",fn:ite,effect:ate,requires:["computeStyles"]};function po(e){return e.split("-")[0]}var Ju=Math.max,u1=Math.min,fd=Math.round;function KT(){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 x$(){return!/^((?!chrome|android).)*safari/i.test(KT())}function dd(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&Ji(e)&&(i=e.offsetWidth>0&&fd(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&fd(n.height)/e.offsetHeight||1);var o=vc(e)?Mi(e):window,s=o.visualViewport,l=!x$()&&r,u=(n.left+(l&&s?s.offsetLeft:0))/i,c=(n.top+(l&&s?s.offsetTop:0))/a,f=n.width/i,d=n.height/a;return{width:f,height:d,top:c,right:u+f,bottom:c+d,left:u,x:u,y:c}}function HM(e){var t=dd(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 S$(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&GM(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function os(e){return Mi(e).getComputedStyle(e)}function ste(e){return["table","td","th"].indexOf(bo(e))>=0}function Pl(e){return((vc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Lx(e){return bo(e)==="html"?e:e.assignedSlot||e.parentNode||(GM(e)?e.host:null)||Pl(e)}function xL(e){return!Ji(e)||os(e).position==="fixed"?null:e.offsetParent}function lte(e){var t=/firefox/i.test(KT()),r=/Trident/i.test(KT());if(r&&Ji(e)){var n=os(e);if(n.position==="fixed")return null}var i=Lx(e);for(GM(i)&&(i=i.host);Ji(i)&&["html","body"].indexOf(bo(i))<0;){var a=os(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function Sg(e){for(var t=Mi(e),r=xL(e);r&&ste(r)&&os(r).position==="static";)r=xL(r);return r&&(bo(r)==="html"||bo(r)==="body"&&os(r).position==="static")?t:r||lte(e)||t}function WM(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Qp(e,t,r){return Ju(e,u1(t,r))}function ute(e,t,r){var n=Qp(e,t,r);return n>r?r:n}function b$(){return{top:0,right:0,bottom:0,left:0}}function _$(e){return Object.assign({},b$(),e)}function w$(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var cte=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,_$(typeof t!="number"?t:w$(t,xg))};function fte(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,o=r.modifiersData.popperOffsets,s=po(r.placement),l=WM(s),u=[ai,na].indexOf(s)>=0,c=u?"height":"width";if(!(!a||!o)){var f=cte(i.padding,r),d=HM(a),h=l==="y"?ii:ai,v=l==="y"?ra:na,g=r.rects.reference[c]+r.rects.reference[l]-o[l]-r.rects.popper[c],y=o[l]-r.rects.reference[l],x=Sg(a),S=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,b=g/2-y/2,w=f[h],T=S-d[c]-f[v],C=S/2-d[c]/2+b,A=Qp(w,C,T),k=l;r.modifiersData[n]=(t={},t[k]=A,t.centerOffset=A-C,t)}}function dte(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)||S$(t.elements.popper,i)&&(t.elements.arrow=i))}const hte={name:"arrow",enabled:!0,phase:"main",fn:fte,effect:dte,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function hd(e){return e.split("-")[1]}var pte={top:"auto",right:"auto",bottom:"auto",left:"auto"};function vte(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:fd(r*i)/i||0,y:fd(n*i)/i||0}}function SL(e){var t,r=e.popper,n=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=o.x,h=d===void 0?0:d,v=o.y,g=v===void 0?0:v,y=typeof c=="function"?c({x:h,y:g}):{x:h,y:g};h=y.x,g=y.y;var x=o.hasOwnProperty("x"),S=o.hasOwnProperty("y"),b=ai,w=ii,T=window;if(u){var C=Sg(r),A="clientHeight",k="clientWidth";if(C===Mi(r)&&(C=Pl(r),os(C).position!=="static"&&s==="absolute"&&(A="scrollHeight",k="scrollWidth")),C=C,i===ii||(i===ai||i===na)&&a===Ev){w=ra;var I=f&&C===T&&T.visualViewport?T.visualViewport.height:C[A];g-=I-n.height,g*=l?1:-1}if(i===ai||(i===ii||i===ra)&&a===Ev){b=na;var P=f&&C===T&&T.visualViewport?T.visualViewport.width:C[k];h-=P-n.width,h*=l?1:-1}}var R=Object.assign({position:s},u&&pte),L=c===!0?vte({x:h,y:g},Mi(r)):{x:h,y:g};if(h=L.x,g=L.y,l){var O;return Object.assign({},R,(O={},O[w]=S?"0":"",O[b]=x?"0":"",O.transform=(T.devicePixelRatio||1)<=1?"translate("+h+"px, "+g+"px)":"translate3d("+h+"px, "+g+"px, 0)",O))}return Object.assign({},R,(t={},t[w]=S?g+"px":"",t[b]=x?h+"px":"",t.transform="",t))}function gte(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,a=r.adaptive,o=a===void 0?!0:a,s=r.roundOffsets,l=s===void 0?!0:s,u={placement:po(t.placement),variation:hd(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,SL(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,SL(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const mte={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:gte,data:{}};var fy={passive:!0};function yte(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,a=i===void 0?!0:i,o=n.resize,s=o===void 0?!0:o,l=Mi(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(c){c.addEventListener("scroll",r.update,fy)}),s&&l.addEventListener("resize",r.update,fy),function(){a&&u.forEach(function(c){c.removeEventListener("scroll",r.update,fy)}),s&&l.removeEventListener("resize",r.update,fy)}}const xte={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:yte,data:{}};var Ste={left:"right",right:"left",bottom:"top",top:"bottom"};function P0(e){return e.replace(/left|right|bottom|top/g,function(t){return Ste[t]})}var bte={start:"end",end:"start"};function bL(e){return e.replace(/start|end/g,function(t){return bte[t]})}function jM(e){var t=Mi(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function UM(e){return dd(Pl(e)).left+jM(e).scrollLeft}function _te(e,t){var r=Mi(e),n=Pl(e),i=r.visualViewport,a=n.clientWidth,o=n.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;var u=x$();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+UM(e),y:l}}function wte(e){var t,r=Pl(e),n=jM(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=Ju(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Ju(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+UM(e),l=-n.scrollTop;return os(i||r).direction==="rtl"&&(s+=Ju(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function YM(e){var t=os(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function C$(e){return["html","body","#document"].indexOf(bo(e))>=0?e.ownerDocument.body:Ji(e)&&YM(e)?e:C$(Lx(e))}function Jp(e,t){var r;t===void 0&&(t=[]);var n=C$(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=Mi(n),o=i?[a].concat(a.visualViewport||[],YM(n)?n:[]):n,s=t.concat(o);return i?s:s.concat(Jp(Lx(o)))}function QT(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Cte(e,t){var r=dd(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 _L(e,t,r){return t===m$?QT(_te(e,r)):vc(t)?Cte(t,r):QT(wte(Pl(e)))}function Tte(e){var t=Jp(Lx(e)),r=["absolute","fixed"].indexOf(os(e).position)>=0,n=r&&Ji(e)?Sg(e):e;return vc(n)?t.filter(function(i){return vc(i)&&S$(i,n)&&bo(i)!=="body"}):[]}function Ate(e,t,r,n){var i=t==="clippingParents"?Tte(e):[].concat(t),a=[].concat(i,[r]),o=a[0],s=a.reduce(function(l,u){var c=_L(e,u,n);return l.top=Ju(c.top,l.top),l.right=u1(c.right,l.right),l.bottom=u1(c.bottom,l.bottom),l.left=Ju(c.left,l.left),l},_L(e,o,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function T$(e){var t=e.reference,r=e.element,n=e.placement,i=n?po(n):null,a=n?hd(n):null,o=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(i){case ii:l={x:o,y:t.y-r.height};break;case ra:l={x:o,y:t.y+t.height};break;case na:l={x:t.x+t.width,y:s};break;case ai:l={x:t.x-r.width,y:s};break;default:l={x:t.x,y:t.y}}var u=i?WM(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(a){case cd:l[u]=l[u]-(t[c]/2-r[c]/2);break;case Ev:l[u]=l[u]+(t[c]/2-r[c]/2);break}}return l}function Lv(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,a=r.strategy,o=a===void 0?e.strategy:a,s=r.boundary,l=s===void 0?Uee:s,u=r.rootBoundary,c=u===void 0?m$:u,f=r.elementContext,d=f===void 0?Vh:f,h=r.altBoundary,v=h===void 0?!1:h,g=r.padding,y=g===void 0?0:g,x=_$(typeof y!="number"?y:w$(y,xg)),S=d===Vh?Yee:Vh,b=e.rects.popper,w=e.elements[v?S:d],T=Ate(vc(w)?w:w.contextElement||Pl(e.elements.popper),l,c,o),C=dd(e.elements.reference),A=T$({reference:C,element:b,placement:i}),k=QT(Object.assign({},b,A)),I=d===Vh?k:C,P={top:T.top-I.top+x.top,bottom:I.bottom-T.bottom+x.bottom,left:T.left-I.left+x.left,right:I.right-T.right+x.right},R=e.modifiersData.offset;if(d===Vh&&R){var L=R[i];Object.keys(P).forEach(function(O){var z=[na,ra].indexOf(O)>=0?1:-1,F=[ii,ra].indexOf(O)>=0?"y":"x";P[O]+=L[F]*z})}return P}function Mte(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,a=r.rootBoundary,o=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,u=l===void 0?y$:l,c=hd(n),f=c?s?yL:yL.filter(function(v){return hd(v)===c}):xg,d=f.filter(function(v){return u.indexOf(v)>=0});d.length===0&&(d=f);var h=d.reduce(function(v,g){return v[g]=Lv(e,{placement:g,boundary:i,rootBoundary:a,padding:o})[po(g)],v},{});return Object.keys(h).sort(function(v,g){return h[v]-h[g]})}function kte(e){if(po(e)===$M)return[];var t=P0(e);return[bL(e),t,bL(t)]}function Ite(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!0:o,l=r.fallbackPlacements,u=r.padding,c=r.boundary,f=r.rootBoundary,d=r.altBoundary,h=r.flipVariations,v=h===void 0?!0:h,g=r.allowedAutoPlacements,y=t.options.placement,x=po(y),S=x===y,b=l||(S||!v?[P0(y)]:kte(y)),w=[y].concat(b).reduce(function(re,ce){return re.concat(po(ce)===$M?Mte(t,{placement:ce,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:g}):ce)},[]),T=t.rects.reference,C=t.rects.popper,A=new Map,k=!0,I=w[0],P=0;P<w.length;P++){var R=w[P],L=po(R),O=hd(R)===cd,z=[ii,ra].indexOf(L)>=0,F=z?"width":"height",H=Lv(t,{placement:R,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),q=z?O?na:ai:O?ra:ii;T[F]>C[F]&&(q=P0(q));var $=P0(q),X=[];if(a&&X.push(H[L]<=0),s&&X.push(H[q]<=0,H[$]<=0),X.every(function(re){return re})){I=R,k=!1;break}A.set(R,X)}if(k)for(var B=v?3:1,Y=function(ce){var te=w.find(function(pe){var ae=A.get(pe);if(ae)return ae.slice(0,ce).every(function(he){return he})});if(te)return I=te,"break"},Z=B;Z>0;Z--){var j=Y(Z);if(j==="break")break}t.placement!==I&&(t.modifiersData[n]._skip=!0,t.placement=I,t.reset=!0)}}const Pte={name:"flip",enabled:!0,phase:"main",fn:Ite,requiresIfExists:["offset"],data:{_skip:!1}};function wL(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 CL(e){return[ii,na,ra,ai].some(function(t){return e[t]>=0})}function Dte(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Lv(t,{elementContext:"reference"}),s=Lv(t,{altBoundary:!0}),l=wL(o,n),u=wL(s,i,a),c=CL(l),f=CL(u);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const Rte={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Dte};function Ete(e,t,r){var n=po(e),i=[ai,ii].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[ai,na].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function Lte(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,o=y$.reduce(function(c,f){return c[f]=Ete(f,t.rects,a),c},{}),s=o[t.placement],l=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[n]=o}const Ote={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Lte};function Nte(e){var t=e.state,r=e.name;t.modifiersData[r]=T$({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const zte={name:"popperOffsets",enabled:!0,phase:"read",fn:Nte,data:{}};function Bte(e){return e==="x"?"y":"x"}function Fte(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,a=i===void 0?!0:i,o=r.altAxis,s=o===void 0?!1:o,l=r.boundary,u=r.rootBoundary,c=r.altBoundary,f=r.padding,d=r.tether,h=d===void 0?!0:d,v=r.tetherOffset,g=v===void 0?0:v,y=Lv(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),x=po(t.placement),S=hd(t.placement),b=!S,w=WM(x),T=Bte(w),C=t.modifiersData.popperOffsets,A=t.rects.reference,k=t.rects.popper,I=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,P=typeof I=="number"?{mainAxis:I,altAxis:I}:Object.assign({mainAxis:0,altAxis:0},I),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(C){if(a){var O,z=w==="y"?ii:ai,F=w==="y"?ra:na,H=w==="y"?"height":"width",q=C[w],$=q+y[z],X=q-y[F],B=h?-k[H]/2:0,Y=S===cd?A[H]:k[H],Z=S===cd?-k[H]:-A[H],j=t.elements.arrow,re=h&&j?HM(j):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:b$(),te=ce[z],pe=ce[F],ae=Qp(0,A[H],re[H]),he=b?A[H]/2-B-ae-te-P.mainAxis:Y-ae-te-P.mainAxis,ve=b?-A[H]/2+B+ae+pe+P.mainAxis:Z+ae+pe+P.mainAxis,fe=t.elements.arrow&&Sg(t.elements.arrow),ge=fe?w==="y"?fe.clientTop||0:fe.clientLeft||0:0,Re=(O=R==null?void 0:R[w])!=null?O:0,Ie=q+he-Re-ge,$e=q+ve-Re,dt=Qp(h?u1($,Ie):$,q,h?Ju(X,$e):X);C[w]=dt,L[w]=dt-q}if(s){var ct,bt=w==="x"?ii:ai,At=w==="x"?ra:na,_t=C[T],st=T==="y"?"height":"width",rr=_t+y[bt],Gt=_t-y[At],It=[ii,ai].indexOf(x)!==-1,le=(ct=R==null?void 0:R[T])!=null?ct:0,ye=It?rr:_t-A[st]-k[st]-le+P.altAxis,je=It?_t+A[st]+k[st]-le-P.altAxis:Gt,Ne=h&&It?ute(ye,_t,je):Qp(h?ye:rr,_t,h?je:Gt);C[T]=Ne,L[T]=Ne-_t}t.modifiersData[n]=L}}const Vte={name:"preventOverflow",enabled:!0,phase:"main",fn:Fte,requiresIfExists:["offset"]};function $te(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Gte(e){return e===Mi(e)||!Ji(e)?jM(e):$te(e)}function Hte(e){var t=e.getBoundingClientRect(),r=fd(t.width)/e.offsetWidth||1,n=fd(t.height)/e.offsetHeight||1;return r!==1||n!==1}function Wte(e,t,r){r===void 0&&(r=!1);var n=Ji(t),i=Ji(t)&&Hte(t),a=Pl(t),o=dd(e,i,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((bo(t)!=="body"||YM(a))&&(s=Gte(t)),Ji(t)?(l=dd(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=UM(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function jte(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function i(a){r.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!r.has(s)){var l=t.get(s);l&&i(l)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||i(a)}),n}function Ute(e){var t=jte(e);return nte.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function Yte(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function qte(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 TL={placement:"bottom",modifiers:[],strategy:"absolute"};function AL(){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 Xte(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?TL:i;return function(s,l,u){u===void 0&&(u=a);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},TL,a),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],d=!1,h={state:c,setOptions:function(x){var S=typeof x=="function"?x(c.options):x;g(),c.options=Object.assign({},a,c.options,S),c.scrollParents={reference:vc(s)?Jp(s):s.contextElement?Jp(s.contextElement):[],popper:Jp(l)};var b=Ute(qte([].concat(n,c.options.modifiers)));return c.orderedModifiers=b.filter(function(w){return w.enabled}),v(),h.update()},forceUpdate:function(){if(!d){var x=c.elements,S=x.reference,b=x.popper;if(AL(S,b)){c.rects={reference:Wte(S,Sg(b),c.options.strategy==="fixed"),popper:HM(b)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(P){return c.modifiersData[P.name]=Object.assign({},P.data)});for(var w=0;w<c.orderedModifiers.length;w++){if(c.reset===!0){c.reset=!1,w=-1;continue}var T=c.orderedModifiers[w],C=T.fn,A=T.options,k=A===void 0?{}:A,I=T.name;typeof C=="function"&&(c=C({state:c,options:k,name:I,instance:h})||c)}}}},update:Yte(function(){return new Promise(function(y){h.forceUpdate(),y(c)})}),destroy:function(){g(),d=!0}};if(!AL(s,l))return h;h.setOptions(u).then(function(y){!d&&u.onFirstUpdate&&u.onFirstUpdate(y)});function v(){c.orderedModifiers.forEach(function(y){var x=y.name,S=y.options,b=S===void 0?{}:S,w=y.effect;if(typeof w=="function"){var T=w({state:c,name:x,instance:h,options:b}),C=function(){};f.push(T||C)}})}function g(){f.forEach(function(y){return y()}),f=[]}return h}}var Zte=[xte,zte,mte,ote,Ote,Pte,Vte,hte,Rte],Kte=Xte({defaultModifiers:Zte});function Qte(e){return typeof e=="function"?e():e}const A$=G.forwardRef(function(t,r){const{children:n,container:i,disablePortal:a=!1}=t,[o,s]=G.useState(null),l=kr(G.isValidElement(n)?n.ref:null,r);if(Ra(()=>{a||s(Qte(i)||document.body)},[i,a]),Ra(()=>{if(o&&!a)return a1(r,o),()=>{a1(r,null)}},[r,o,a]),a){if(G.isValidElement(n)){const u={ref:l};return G.cloneElement(n,u)}return N.jsx(G.Fragment,{children:n})}return N.jsx(G.Fragment,{children:o&&LM.createPortal(n,o)})});function Jte(e){return tt("MuiPopper",e)}at("MuiPopper",["root"]);const ere=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],tre=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function rre(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 JT(e){return typeof e=="function"?e():e}function nre(e){return e.nodeType!==void 0}const ire=()=>it({root:["root"]},Oee(Jte)),are={},ore=G.forwardRef(function(t,r){var n;const{anchorEl:i,children:a,direction:o,disablePortal:s,modifiers:l,open:u,placement:c,popperOptions:f,popperRef:d,slotProps:h={},slots:v={},TransitionProps:g}=t,y=De(t,ere),x=G.useRef(null),S=kr(x,r),b=G.useRef(null),w=kr(b,d),T=G.useRef(w);Ra(()=>{T.current=w},[w]),G.useImperativeHandle(d,()=>b.current,[]);const C=rre(c,o),[A,k]=G.useState(C),[I,P]=G.useState(JT(i));G.useEffect(()=>{b.current&&b.current.forceUpdate()}),G.useEffect(()=>{i&&P(JT(i))},[i]),Ra(()=>{if(!I||!u)return;const F=$=>{k($.placement)};let H=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:$})=>{F($)}}];l!=null&&(H=H.concat(l)),f&&f.modifiers!=null&&(H=H.concat(f.modifiers));const q=Kte(I,x.current,U({placement:C},f,{modifiers:H}));return T.current(q),()=>{q.destroy(),T.current(null)}},[I,s,l,u,f,C]);const R={placement:A};g!==null&&(R.TransitionProps=g);const L=ire(),O=(n=v.root)!=null?n:"div",z=La({elementType:O,externalSlotProps:h.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:S},ownerState:t,className:L.root});return N.jsx(O,U({},z,{children:typeof a=="function"?a(R):a}))}),sre=G.forwardRef(function(t,r){const{anchorEl:n,children:i,container:a,direction:o="ltr",disablePortal:s=!1,keepMounted:l=!1,modifiers:u,open:c,placement:f="bottom",popperOptions:d=are,popperRef:h,style:v,transition:g=!1,slotProps:y={},slots:x={}}=t,S=De(t,tre),[b,w]=G.useState(!0),T=()=>{w(!1)},C=()=>{w(!0)};if(!l&&!c&&(!g||b))return null;let A;if(a)A=a;else if(n){const P=JT(n);A=P&&nre(P)?ln(P).body:ln(null).body}const k=!c&&l&&(!g||b)?"none":void 0,I=g?{in:c,onEnter:T,onExited:C}:void 0;return N.jsx(A$,{disablePortal:s,container:A,children:N.jsx(ore,U({anchorEl:n,direction:o,disablePortal:s,modifiers:u,ref:r,open:g?!b:c,placement:f,popperOptions:d,popperRef:h,slotProps:y,slots:x},S,{style:U({position:"fixed",top:0,left:0,display:k},v),TransitionProps:I,children:i}))})});function lre(e){const t=ln(e);return t.body===e?ta(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ev(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ML(e){return parseInt(ta(e).getComputedStyle(e).paddingRight,10)||0}function ure(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 kL(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,o=>{const s=a.indexOf(o)===-1,l=!ure(o);s&&l&&ev(o,i)})}function B_(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function cre(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(lre(n)){const o=FV(ln(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${ML(n)+o}px`;const s=ln(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${ML(l)+o}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=ln(n).body;else{const o=n.parentElement,s=ta(n);a=(o==null?void 0:o.nodeName)==="HTML"&&s.getComputedStyle(o).overflowY==="scroll"?o:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:o,property:s})=>{a?o.style.setProperty(s,a):o.style.removeProperty(s)})}}function fre(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class dre{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&&ev(t.modalRef,!1);const i=fre(r);kL(r,t.mount,t.modalRef,i,!0);const a=B_(this.containers,o=>o.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:i}),n)}mount(t,r){const n=B_(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[n];i.restore||(i.restore=cre(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=B_(this.containers,o=>o.modals.indexOf(t)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&ev(t.modalRef,r),kL(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const o=a.modals[a.modals.length-1];o.modalRef&&ev(o.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function hre(e){return typeof e=="function"?e():e}function pre(e){return e?e.props.hasOwnProperty("in"):!1}const vre=new dre;function gre(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=vre,closeAfterTransition:a=!1,onTransitionEnter:o,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:f}=e,d=G.useRef({}),h=G.useRef(null),v=G.useRef(null),g=kr(v,f),[y,x]=G.useState(!c),S=pre(l);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const w=()=>ln(h.current),T=()=>(d.current.modalRef=v.current,d.current.mount=h.current,d.current),C=()=>{i.mount(T(),{disableScrollLock:n}),v.current&&(v.current.scrollTop=0)},A=Ta(()=>{const H=hre(t)||w().body;i.add(T(),H),v.current&&C()}),k=G.useCallback(()=>i.isTopModal(T()),[i]),I=Ta(H=>{h.current=H,H&&(c&&k()?C():v.current&&ev(v.current,b))}),P=G.useCallback(()=>{i.remove(T(),b)},[b,i]);G.useEffect(()=>()=>{P()},[P]),G.useEffect(()=>{c?A():(!S||!a)&&P()},[c,P,S,a,A]);const R=H=>q=>{var $;($=H.onKeyDown)==null||$.call(H,q),!(q.key!=="Escape"||!k())&&(r||(q.stopPropagation(),u&&u(q,"escapeKeyDown")))},L=H=>q=>{var $;($=H.onClick)==null||$.call(H,q),q.target===q.currentTarget&&u&&u(q,"backdropClick")};return{getRootProps:(H={})=>{const q=g$(e);delete q.onTransitionEnter,delete q.onTransitionExited;const $=U({},q,H);return U({role:"presentation"},$,{onKeyDown:R($),ref:g})},getBackdropProps:(H={})=>{const q=H;return U({"aria-hidden":!0},q,{onClick:L(q),open:c})},getTransitionProps:()=>{const H=()=>{x(!1),o&&o()},q=()=>{x(!0),s&&s(),a&&P()};return{onEnter:GT(H,l==null?void 0:l.props.onEnter),onExited:GT(q,l==null?void 0:l.props.onExited)}},rootRef:g,portalRef:I,isTopModal:k,exited:y,hasTransition:S}}const mre=["onChange","maxRows","minRows","style","value"];function dy(e){return parseInt(e,10)||0}const yre={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function IL(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const xre=G.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:a=1,style:o,value:s}=t,l=De(t,mre),{current:u}=G.useRef(s!=null),c=G.useRef(null),f=kr(r,c),d=G.useRef(null),h=G.useRef(0),[v,g]=G.useState({outerHeightStyle:0}),y=G.useCallback(()=>{const T=c.current,A=ta(T).getComputedStyle(T);if(A.width==="0px")return{outerHeightStyle:0};const k=d.current;k.style.width=A.width,k.value=T.value||t.placeholder||"x",k.value.slice(-1)===`
|
141
|
-
`&&(k.value+=" ");const I=A.boxSizing,P=dy(A.paddingBottom)+dy(A.paddingTop),R=dy(A.borderBottomWidth)+dy(A.borderTopWidth),L=k.scrollHeight;k.value="x";const O=k.scrollHeight;let z=L;a&&(z=Math.max(Number(a)*O,z)),i&&(z=Math.min(Number(i)*O,z)),z=Math.max(z,O);const F=z+(I==="border-box"?P+R:0),H=Math.abs(z-L)<=1;return{outerHeightStyle:F,overflow:H}},[i,a,t.placeholder]),x=(T,C)=>{const{outerHeightStyle:A,overflow:k}=C;return h.current<20&&(A>0&&Math.abs((T.outerHeightStyle||0)-A)>1||T.overflow!==k)?(h.current+=1,{overflow:k,outerHeightStyle:A}):T},S=G.useCallback(()=>{const T=y();IL(T)||g(C=>x(C,T))},[y]),b=()=>{const T=y();IL(T)||LM.flushSync(()=>{g(C=>x(C,T))})};G.useEffect(()=>{const T=()=>{h.current=0,c.current&&b()},C=Md(()=>{h.current=0,c.current&&b()});let A;const k=c.current,I=ta(k);return I.addEventListener("resize",C),typeof ResizeObserver<"u"&&(A=new ResizeObserver(T),A.observe(k)),()=>{C.clear(),I.removeEventListener("resize",C),A&&A.disconnect()}}),Ra(()=>{S()}),G.useEffect(()=>{h.current=0},[s]);const w=T=>{h.current=0,u||S(),n&&n(T)};return N.jsxs(G.Fragment,{children:[N.jsx("textarea",U({value:s,onChange:w,ref:f,rows:a,style:U({height:v.outerHeightStyle,overflow:v.overflow?"hidden":void 0},o)},l)),N.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:d,tabIndex:-1,style:U({},yre.shadow,o,{paddingTop:0,paddingBottom:0})})]})}),Sre=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],bre=be(sre,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),M$=G.forwardRef(function(t,r){var n;const i=IM(),a=ot({props:t,name:"MuiPopper"}),{anchorEl:o,component:s,components:l,componentsProps:u,container:c,disablePortal:f,keepMounted:d,modifiers:h,open:v,placement:g,popperOptions:y,popperRef:x,transition:S,slots:b,slotProps:w}=a,T=De(a,Sre),C=(n=b==null?void 0:b.root)!=null?n:l==null?void 0:l.Root,A=U({anchorEl:o,container:c,disablePortal:f,keepMounted:d,modifiers:h,open:v,placement:g,popperOptions:y,popperRef:x,transition:S},T);return N.jsx(bre,U({as:s,direction:i==null?void 0:i.direction,slots:{root:C},slotProps:w??u},A,{ref:r}))});function Dl({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 Ox=G.createContext(void 0);function Po(){return G.useContext(Ox)}function k$(e){return N.jsx(JK,U({},e,{defaultTheme:Rx,themeId:dc}))}function PL(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function c1(e,t=!1){return e&&(PL(e.value)&&e.value!==""||t&&PL(e.defaultValue)&&e.defaultValue!=="")}function _re(e){return e.startAdornment}function wre(e){return tt("MuiInputBase",e)}const pd=at("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Cre=["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"],Nx=(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${Le(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},zx=(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]},Tre=e=>{const{classes:t,color:r,disabled:n,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:f,size:d,startAdornment:h,type:v}=e,g={root:["root",`color${Le(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",o&&"focused",s&&"formControl",d&&d!=="medium"&&`size${Le(d)}`,c&&"multiline",h&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",v==="search"&&"inputTypeSearch",c&&"inputMultiline",d==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return it(g,wre,t)},Bx=be("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Nx})(({theme:e,ownerState:t})=>U({},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",[`&.${pd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&U({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Fx=be("input",{name:"MuiInputBase",slot:"Input",overridesResolver:zx})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=U({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"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return U({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] + .${pd.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${pd.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"})}),Are=N.jsx(k$,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),qM=G.forwardRef(function(t,r){var n;const i=ot({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:o,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:f,disabled:d,disableInjectingGlobalStyles:h,endAdornment:v,fullWidth:g=!1,id:y,inputComponent:x="input",inputProps:S={},inputRef:b,maxRows:w,minRows:T,multiline:C=!1,name:A,onBlur:k,onChange:I,onClick:P,onFocus:R,onKeyDown:L,onKeyUp:O,placeholder:z,readOnly:F,renderSuffix:H,rows:q,slotProps:$={},slots:X={},startAdornment:B,type:Y="text",value:Z}=i,j=De(i,Cre),re=S.value!=null?S.value:Z,{current:ce}=G.useRef(re!=null),te=G.useRef(),pe=G.useCallback(Ne=>{},[]),ae=kr(te,b,S.ref,pe),[he,ve]=G.useState(!1),fe=Po(),ge=Dl({props:i,muiFormControl:fe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ge.focused=fe?fe.focused:he,G.useEffect(()=>{!fe&&d&&he&&(ve(!1),k&&k())},[fe,d,he,k]);const Re=fe&&fe.onFilled,Ie=fe&&fe.onEmpty,$e=G.useCallback(Ne=>{c1(Ne)?Re&&Re():Ie&&Ie()},[Re,Ie]);Ra(()=>{ce&&$e({value:re})},[re,$e,ce]);const dt=Ne=>{if(ge.disabled){Ne.stopPropagation();return}R&&R(Ne),S.onFocus&&S.onFocus(Ne),fe&&fe.onFocus?fe.onFocus(Ne):ve(!0)},ct=Ne=>{k&&k(Ne),S.onBlur&&S.onBlur(Ne),fe&&fe.onBlur?fe.onBlur(Ne):ve(!1)},bt=(Ne,...Me)=>{if(!ce){const Pt=Ne.target||te.current;if(Pt==null)throw new Error(Sl(1));$e({value:Pt.value})}S.onChange&&S.onChange(Ne,...Me),I&&I(Ne,...Me)};G.useEffect(()=>{$e(te.current)},[]);const At=Ne=>{te.current&&Ne.currentTarget===Ne.target&&te.current.focus(),P&&P(Ne)};let _t=x,st=S;C&&_t==="input"&&(q?st=U({type:void 0,minRows:q,maxRows:q},st):st=U({type:void 0,maxRows:w,minRows:T},st),_t=xre);const rr=Ne=>{$e(Ne.animationName==="mui-auto-fill-cancel"?te.current:{value:"x"})};G.useEffect(()=>{fe&&fe.setAdornedStart(!!B)},[fe,B]);const Gt=U({},i,{color:ge.color||"primary",disabled:ge.disabled,endAdornment:v,error:ge.error,focused:ge.focused,formControl:fe,fullWidth:g,hiddenLabel:ge.hiddenLabel,multiline:C,size:ge.size,startAdornment:B,type:Y}),It=Tre(Gt),le=X.root||u.Root||Bx,ye=$.root||c.root||{},je=X.input||u.Input||Fx;return st=U({},st,(n=$.input)!=null?n:c.input),N.jsxs(G.Fragment,{children:[!h&&Are,N.jsxs(le,U({},ye,!ud(le)&&{ownerState:U({},Gt,ye.ownerState)},{ref:r,onClick:At},j,{className:Ee(It.root,ye.className,l,F&&"MuiInputBase-readOnly"),children:[B,N.jsx(Ox.Provider,{value:null,children:N.jsx(je,U({ownerState:Gt,"aria-invalid":ge.error,"aria-describedby":a,autoComplete:o,autoFocus:s,defaultValue:f,disabled:ge.disabled,id:y,onAnimationStart:rr,name:A,placeholder:z,readOnly:F,required:ge.required,rows:q,value:re,onKeyDown:L,onKeyUp:O,type:Y},st,!ud(je)&&{as:_t,ownerState:U({},Gt,st.ownerState)},{ref:ae,className:Ee(It.input,st.className,F&&"MuiInputBase-readOnly"),onBlur:ct,onChange:bt,onFocus:dt}))}),v,H?H(U({},ge,{startAdornment:B})):null]}))]})});function Mre(e){return tt("MuiInput",e)}const $h=U({},pd,at("MuiInput",["root","underline","input"]));function kre(e){return tt("MuiOutlinedInput",e)}const Vs=U({},pd,at("MuiOutlinedInput",["root","notchedOutline","input"]));function Ire(e){return tt("MuiFilledInput",e)}const eu=U({},pd,at("MuiFilledInput",["root","underline","input"])),Pre=ci(N.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Dre=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Rre={entering:{opacity:1},entered:{opacity:1}},Ere=G.forwardRef(function(t,r){const n=Io(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:o=!0,children:s,easing:l,in:u,onEnter:c,onEntered:f,onEntering:d,onExit:h,onExited:v,onExiting:g,style:y,timeout:x=i,TransitionComponent:S=aa}=t,b=De(t,Dre),w=G.useRef(null),T=kr(w,s.ref,r),C=z=>F=>{if(z){const H=w.current;F===void 0?z(H):z(H,F)}},A=C(d),k=C((z,F)=>{zM(z);const H=bl({style:y,timeout:x,easing:l},{mode:"enter"});z.style.webkitTransition=n.transitions.create("opacity",H),z.style.transition=n.transitions.create("opacity",H),c&&c(z,F)}),I=C(f),P=C(g),R=C(z=>{const F=bl({style:y,timeout:x,easing:l},{mode:"exit"});z.style.webkitTransition=n.transitions.create("opacity",F),z.style.transition=n.transitions.create("opacity",F),h&&h(z)}),L=C(v),O=z=>{a&&a(w.current,z)};return N.jsx(S,U({appear:o,in:u,nodeRef:w,onEnter:k,onEntered:I,onEntering:A,onExit:R,onExited:L,onExiting:P,addEndListener:O,timeout:x},b,{children:(z,F)=>G.cloneElement(s,U({style:U({opacity:0,visibility:z==="exited"&&!u?"hidden":void 0},Rre[z],y,s.props.style),ref:T},F))}))});function Lre(e){return tt("MuiBackdrop",e)}at("MuiBackdrop",["root","invisible"]);const Ore=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Nre=e=>{const{classes:t,invisible:r}=e;return it({root:["root",r&&"invisible"]},Lre,t)},zre=be("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>U({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"})),Bre=G.forwardRef(function(t,r){var n,i,a;const o=ot({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:f={},invisible:d=!1,open:h,slotProps:v={},slots:g={},TransitionComponent:y=Ere,transitionDuration:x}=o,S=De(o,Ore),b=U({},o,{component:u,invisible:d}),w=Nre(b),T=(n=v.root)!=null?n:f.root;return N.jsx(y,U({in:h,timeout:x},S,{children:N.jsx(zre,U({"aria-hidden":!0},T,{as:(i=(a=g.root)!=null?a:c.Root)!=null?i:u,className:Ee(w.root,l,T==null?void 0:T.className),ownerState:U({},b,T==null?void 0:T.ownerState),classes:w,ref:r,children:s}))}))}),Fre=EM(),Bt=nQ({themeId:dc,defaultTheme:Fre,defaultClassName:"MuiBox-root",generateClassName:yM.generate});function Vre(e){return tt("MuiButton",e)}const hy=at("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"]),$re=G.createContext({}),Gre=G.createContext(void 0),Hre=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Wre=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,classes:o}=e,s={root:["root",a,`${a}${Le(t)}`,`size${Le(i)}`,`${a}Size${Le(i)}`,t==="inherit"&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Le(i)}`],endIcon:["endIcon",`iconSize${Le(i)}`]},l=it(s,Vre,o);return U({},o,l)},I$=e=>U({},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}}),jre=be(wc,{shouldForwardProp:e=>za(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${Le(r.color)}`],t[`size${Le(r.size)}`],t[`${r.variant}Size${Le(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],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return U({},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":U({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Sr(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})`:Sr(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})`:Sr(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:a,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":U({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${hy.focusVisible}`]:U({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${hy.disabled}`]:U({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 ${Sr(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"},[`&.${hy.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${hy.disabled}`]:{boxShadow:"none"}}),Ure=be("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${Le(r.size)}`]]}})(({ownerState:e})=>U({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},I$(e))),Yre=be("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${Le(r.size)}`]]}})(({ownerState:e})=>U({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},I$(e))),_o=G.forwardRef(function(t,r){const n=G.useContext($re),i=G.useContext(Gre),a=mM(n,t),o=ot({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:c,disabled:f=!1,disableElevation:d=!1,disableFocusRipple:h=!1,endIcon:v,focusVisibleClassName:g,fullWidth:y=!1,size:x="medium",startIcon:S,type:b,variant:w="text"}=o,T=De(o,Hre),C=U({},o,{color:l,component:u,disabled:f,disableElevation:d,disableFocusRipple:h,fullWidth:y,size:x,type:b,variant:w}),A=Wre(C),k=S&&N.jsx(Ure,{className:A.startIcon,ownerState:C,children:S}),I=v&&N.jsx(Yre,{className:A.endIcon,ownerState:C,children:v}),P=i||"";return N.jsxs(jre,U({ownerState:C,className:Ee(n.className,A.root,c,P),component:u,disabled:f,focusRipple:!h,focusVisibleClassName:Ee(A.focusVisible,g),ref:r,type:b},T,{classes:A,children:[k,s,I]}))});function qre(e){return tt("PrivateSwitchBase",e)}at("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Xre=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Zre=e=>{const{classes:t,checked:r,disabled:n,edge:i}=e,a={root:["root",r&&"checked",n&&"disabled",i&&`edge${Le(i)}`],input:["input"]};return it(a,qre,t)},Kre=be(wc)(({ownerState:e})=>U({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Qre=be("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),P$=G.forwardRef(function(t,r){const{autoFocus:n,checked:i,checkedIcon:a,className:o,defaultChecked:s,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:f,id:d,inputProps:h,inputRef:v,name:g,onBlur:y,onChange:x,onFocus:S,readOnly:b,required:w=!1,tabIndex:T,type:C,value:A}=t,k=De(t,Xre),[I,P]=od({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),R=Po(),L=X=>{S&&S(X),R&&R.onFocus&&R.onFocus(X)},O=X=>{y&&y(X),R&&R.onBlur&&R.onBlur(X)},z=X=>{if(X.nativeEvent.defaultPrevented)return;const B=X.target.checked;P(B),x&&x(X,B)};let F=l;R&&typeof F>"u"&&(F=R.disabled);const H=C==="checkbox"||C==="radio",q=U({},t,{checked:I,disabled:F,disableFocusRipple:u,edge:c}),$=Zre(q);return N.jsxs(Kre,U({component:"span",className:Ee($.root,o),centerRipple:!0,focusRipple:!u,disabled:F,tabIndex:null,role:void 0,onFocus:L,onBlur:O,ownerState:q,ref:r},k,{children:[N.jsx(Qre,U({autoFocus:n,checked:i,defaultChecked:s,className:$.input,disabled:F,id:H?d:void 0,name:g,onChange:z,readOnly:b,ref:v,required:w,ownerState:q,tabIndex:T,type:C},C==="checkbox"&&A===void 0?{}:{value:A},h)),I?a:f]}))}),Jre=ci(N.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"),ene=ci(N.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"),tne=ci(N.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 rne(e){return tt("MuiCheckbox",e)}const F_=at("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),nne=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],ine=e=>{const{classes:t,indeterminate:r,color:n,size:i}=e,a={root:["root",r&&"indeterminate",`color${Le(n)}`,`size${Le(i)}`]},o=it(a,rne,t);return U({},t,o)},ane=be(P$,{shouldForwardProp:e=>za(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${Le(r.color)}`]]}})(({theme:e,ownerState:t})=>U({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})`:Sr(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${F_.checked}, &.${F_.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${F_.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),one=N.jsx(ene,{}),sne=N.jsx(Jre,{}),lne=N.jsx(tne,{}),e2=G.forwardRef(function(t,r){var n,i;const a=ot({props:t,name:"MuiCheckbox"}),{checkedIcon:o=one,color:s="primary",icon:l=sne,indeterminate:u=!1,indeterminateIcon:c=lne,inputProps:f,size:d="medium",className:h}=a,v=De(a,nne),g=u?c:l,y=u?c:o,x=U({},a,{color:s,indeterminate:u,size:d}),S=ine(x);return N.jsx(ane,U({type:"checkbox",inputProps:U({"data-indeterminate":u},f),icon:G.cloneElement(g,{fontSize:(n=g.props.fontSize)!=null?n:d}),checkedIcon:G.cloneElement(y,{fontSize:(i=y.props.fontSize)!=null?i:d}),ownerState:x,ref:r,className:Ee(S.root,h)},v,{classes:S}))}),bg=kQ({createStyledComponent:be("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${Le(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>ot({props:e,name:"MuiContainer"})}),une=(e,t)=>U({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),cne=e=>U({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}}),fne=(e,t=!1)=>{var r;const n={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([o,s])=>{var l;n[e.getColorSchemeSelector(o).replace(/\s*&/,"")]={colorScheme:(l=s.palette)==null?void 0:l.mode}});let i=U({html:une(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:U({margin:0},cne(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},n);const a=(r=e.components)==null||(r=r.MuiCssBaseline)==null?void 0:r.styleOverrides;return a&&(i=[i,a]),i};function D$(e){const t=ot({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return N.jsxs(G.Fragment,{children:[N.jsx(k$,{styles:i=>fne(i,n)}),r]})}function dne(e){return tt("MuiModal",e)}at("MuiModal",["root","hidden","backdrop"]);const hne=["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"],pne=e=>{const{open:t,exited:r,classes:n}=e;return it({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},dne,n)},vne=be("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})=>U({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),gne=be(Bre,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),XM=G.forwardRef(function(t,r){var n,i,a,o,s,l;const u=ot({name:"MuiModal",props:t}),{BackdropComponent:c=gne,BackdropProps:f,className:d,closeAfterTransition:h=!1,children:v,container:g,component:y,components:x={},componentsProps:S={},disableAutoFocus:b=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:T=!1,disablePortal:C=!1,disableRestoreFocus:A=!1,disableScrollLock:k=!1,hideBackdrop:I=!1,keepMounted:P=!1,onBackdropClick:R,open:L,slotProps:O,slots:z}=u,F=De(u,hne),H=U({},u,{closeAfterTransition:h,disableAutoFocus:b,disableEnforceFocus:w,disableEscapeKeyDown:T,disablePortal:C,disableRestoreFocus:A,disableScrollLock:k,hideBackdrop:I,keepMounted:P}),{getRootProps:q,getBackdropProps:$,getTransitionProps:X,portalRef:B,isTopModal:Y,exited:Z,hasTransition:j}=gre(U({},H,{rootRef:r})),re=U({},H,{exited:Z}),ce=pne(re),te={};if(v.props.tabIndex===void 0&&(te.tabIndex="-1"),j){const{onEnter:Re,onExited:Ie}=X();te.onEnter=Re,te.onExited=Ie}const pe=(n=(i=z==null?void 0:z.root)!=null?i:x.Root)!=null?n:vne,ae=(a=(o=z==null?void 0:z.backdrop)!=null?o:x.Backdrop)!=null?a:c,he=(s=O==null?void 0:O.root)!=null?s:S.root,ve=(l=O==null?void 0:O.backdrop)!=null?l:S.backdrop,fe=La({elementType:pe,externalSlotProps:he,externalForwardedProps:F,getSlotProps:q,additionalProps:{ref:r,as:y},ownerState:re,className:Ee(d,he==null?void 0:he.className,ce==null?void 0:ce.root,!re.open&&re.exited&&(ce==null?void 0:ce.hidden))}),ge=La({elementType:ae,externalSlotProps:ve,additionalProps:f,getSlotProps:Re=>$(U({},Re,{onClick:Ie=>{R&&R(Ie),Re!=null&&Re.onClick&&Re.onClick(Ie)}})),className:Ee(ve==null?void 0:ve.className,f==null?void 0:f.className,ce==null?void 0:ce.backdrop),ownerState:re});return!P&&!L&&(!j||Z)?null:N.jsx(A$,{ref:B,container:g,disablePortal:C,children:N.jsxs(pe,U({},fe,{children:[!I&&c?N.jsx(ae,U({},ge)):null,N.jsx(jee,{disableEnforceFocus:w,disableAutoFocus:b,disableRestoreFocus:A,isEnabled:Y,open:L,children:G.cloneElement(v,te)})]}))})});function mne(e){return tt("MuiDivider",e)}at("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const yne=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],xne=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:a,orientation:o,textAlign:s,variant:l}=e;return it({root:["root",t&&"absolute",l,a&&"light",o==="vertical"&&"vertical",i&&"flexItem",r&&"withChildren",r&&o==="vertical"&&"withChildrenVertical",s==="right"&&o!=="vertical"&&"textAlignRight",s==="left"&&o!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",o==="vertical"&&"wrapperVertical"]},mne,n)},Sne=be("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})=>U({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)`:Sr(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})=>U({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>U({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>U({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>U({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),bne=be("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>U({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)`})),Lf=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:o,component:s=a?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:f=s!=="hr"?"separator":void 0,textAlign:d="center",variant:h="fullWidth"}=n,v=De(n,yne),g=U({},n,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:f,textAlign:d,variant:h}),y=xne(g);return N.jsx(Sne,U({as:s,className:Ee(y.root,o),role:f,ref:r,ownerState:g},v,{children:a?N.jsx(bne,{className:y.wrapper,ownerState:g,children:a}):null}))});Lf.muiSkipListHighlight=!0;const _ne=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function wne(e,t,r){const n=t.getBoundingClientRect(),i=r&&r.getBoundingClientRect(),a=ta(t);let o;if(t.fakeTransform)o=t.fakeTransform;else{const u=a.getComputedStyle(t);o=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let s=0,l=0;if(o&&o!=="none"&&typeof o=="string"){const u=o.split("(")[1].split(")")[0].split(",");s=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+s-n.left}px)`:`translateX(${a.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(${a.innerHeight+l-n.top}px)`:i?`translateY(-${n.top-i.top+n.height-l}px)`:`translateY(-${n.top+n.height-l}px)`}function Cne(e){return typeof e=="function"?e():e}function py(e,t,r){const n=Cne(r),i=wne(e,t,n);i&&(t.style.webkitTransform=i,t.style.transform=i)}const Tne=G.forwardRef(function(t,r){const n=Io(),i={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},a={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:l,container:u,direction:c="down",easing:f=i,in:d,onEnter:h,onEntered:v,onEntering:g,onExit:y,onExited:x,onExiting:S,style:b,timeout:w=a,TransitionComponent:T=aa}=t,C=De(t,_ne),A=G.useRef(null),k=kr(l.ref,A,r),I=$=>X=>{$&&(X===void 0?$(A.current):$(A.current,X))},P=I(($,X)=>{py(c,$,u),zM($),h&&h($,X)}),R=I(($,X)=>{const B=bl({timeout:w,style:b,easing:f},{mode:"enter"});$.style.webkitTransition=n.transitions.create("-webkit-transform",U({},B)),$.style.transition=n.transitions.create("transform",U({},B)),$.style.webkitTransform="none",$.style.transform="none",g&&g($,X)}),L=I(v),O=I(S),z=I($=>{const X=bl({timeout:w,style:b,easing:f},{mode:"exit"});$.style.webkitTransition=n.transitions.create("-webkit-transform",X),$.style.transition=n.transitions.create("transform",X),py(c,$,u),y&&y($)}),F=I($=>{$.style.webkitTransition="",$.style.transition="",x&&x($)}),H=$=>{o&&o(A.current,$)},q=G.useCallback(()=>{A.current&&py(c,A.current,u)},[c,u]);return G.useEffect(()=>{if(d||c==="down"||c==="right")return;const $=Md(()=>{A.current&&py(c,A.current,u)}),X=ta(A.current);return X.addEventListener("resize",$),()=>{$.clear(),X.removeEventListener("resize",$)}},[c,d,u]),G.useEffect(()=>{d||q()},[d,q]),N.jsx(T,U({nodeRef:A,onEnter:P,onEntered:L,onEntering:R,onExit:z,onExited:F,onExiting:O,addEndListener:H,appear:s,in:d,timeout:w},C,{children:($,X)=>G.cloneElement(l,U({ref:k,style:U({visibility:$==="exited"&&!d?"hidden":void 0},b,l.props.style)},X))}))});function Ane(e){return tt("MuiDrawer",e)}at("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Mne=["BackdropProps"],kne=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],R$=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},Ine=e=>{const{classes:t,anchor:r,variant:n}=e,i={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Le(r)}`,n!=="temporary"&&`paperAnchorDocked${Le(r)}`]};return it(i,Ane,t)},Pne=be(XM,{name:"MuiDrawer",slot:"Root",overridesResolver:R$})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),DL=be("div",{shouldForwardProp:za,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:R$})({flex:"0 0 auto"}),Dne=be(gs,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${Le(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${Le(r.anchor)}`]]}})(({theme:e,ownerState:t})=>U({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}`})),E$={left:"right",right:"left",top:"down",bottom:"up"};function Rne(e){return["left","right"].indexOf(e)!==-1}function Ene(e,t){return e.direction==="rtl"&&Rne(t)?E$[t]:t}const Lne=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiDrawer"}),i=Io(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:o="left",BackdropProps:s,children:l,className:u,elevation:c=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:d}={},onClose:h,open:v=!1,PaperProps:g={},SlideProps:y,TransitionComponent:x=Tne,transitionDuration:S=a,variant:b="temporary"}=n,w=De(n.ModalProps,Mne),T=De(n,kne),C=G.useRef(!1);G.useEffect(()=>{C.current=!0},[]);const A=Ene(i,o),I=U({},n,{anchor:o,elevation:c,open:v,variant:b},T),P=Ine(I),R=N.jsx(Dne,U({elevation:b==="temporary"?c:0,square:!0},g,{className:Ee(P.paper,g.className),ownerState:I,children:l}));if(b==="permanent")return N.jsx(DL,U({className:Ee(P.root,P.docked,u),ownerState:I,ref:r},T,{children:R}));const L=N.jsx(x,U({in:v,direction:E$[A],timeout:S,appear:C.current},y,{children:R}));return b==="persistent"?N.jsx(DL,U({className:Ee(P.root,P.docked,u),ownerState:I,ref:r},T,{children:L})):N.jsx(Pne,U({BackdropProps:U({},s,d,{transitionDuration:S}),className:Ee(P.root,P.modal,u),open:v,ownerState:I,onClose:h,hideBackdrop:f,ref:r},T,w,{children:L}))}),One=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Nne=e=>{const{classes:t,disableUnderline:r}=e,i=it({root:["root",!r&&"underline"],input:["input"]},Ire,t);return U({},t,i)},zne=be(Bx,{shouldForwardProp:e=>za(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Nx(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)",a=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=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 U({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${eu.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${eu.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"},[`&.${eu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${eu.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(.${eu.disabled}, .${eu.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${eu.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&U({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),Bne=be(Fx,{name:"MuiFilledInput",slot:"Input",overridesResolver:zx})(({theme:e,ownerState:t})=>U({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})),ZM=G.forwardRef(function(t,r){var n,i,a,o;const s=ot({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:d=!1,slotProps:h,slots:v={},type:g="text"}=s,y=De(s,One),x=U({},s,{fullWidth:c,inputComponent:f,multiline:d,type:g}),S=Nne(s),b={root:{ownerState:x},input:{ownerState:x}},w=h??u?ni(h??u,b):b,T=(n=(i=v.root)!=null?i:l.Root)!=null?n:zne,C=(a=(o=v.input)!=null?o:l.Input)!=null?a:Bne;return N.jsx(qM,U({slots:{root:T,input:C},componentsProps:w,fullWidth:c,inputComponent:f,multiline:d,ref:r,type:g},y,{classes:S}))});ZM.muiName="Input";function Fne(e){return tt("MuiFormControl",e)}at("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Vne=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],$ne=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${Le(r)}`,n&&"fullWidth"]};return it(i,Fne,t)},Gne=be("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>U({},t.root,t[`margin${Le(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>U({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%"})),KM=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiFormControl"}),{children:i,className:a,color:o="primary",component:s="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:f=!1,hiddenLabel:d=!1,margin:h="none",required:v=!1,size:g="medium",variant:y="outlined"}=n,x=De(n,Vne),S=U({},n,{color:o,component:s,disabled:l,error:u,fullWidth:f,hiddenLabel:d,margin:h,required:v,size:g,variant:y}),b=$ne(S),[w,T]=G.useState(()=>{let O=!1;return i&&G.Children.forEach(i,z=>{if(!Xp(z,["Input","Select"]))return;const F=Xp(z,["Select"])?z.props.input:z;F&&_re(F.props)&&(O=!0)}),O}),[C,A]=G.useState(()=>{let O=!1;return i&&G.Children.forEach(i,z=>{Xp(z,["Input","Select"])&&(c1(z.props,!0)||c1(z.props.inputProps,!0))&&(O=!0)}),O}),[k,I]=G.useState(!1);l&&k&&I(!1);const P=c!==void 0&&!l?c:k;let R;const L=G.useMemo(()=>({adornedStart:w,setAdornedStart:T,color:o,disabled:l,error:u,filled:C,focused:P,fullWidth:f,hiddenLabel:d,size:g,onBlur:()=>{I(!1)},onEmpty:()=>{A(!1)},onFilled:()=>{A(!0)},onFocus:()=>{I(!0)},registerEffect:R,required:v,variant:y}),[w,o,l,u,C,P,f,d,R,v,g,y]);return N.jsx(Ox.Provider,{value:L,children:N.jsx(Gne,U({as:s,ownerState:S,className:Ee(b.root,a),ref:r},x,{children:i}))})}),L$=NQ({createStyledComponent:be("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>ot({props:e,name:"MuiStack"})});function Hne(e){return tt("MuiFormControlLabel",e)}const Ep=at("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Wne=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],jne=e=>{const{classes:t,disabled:r,labelPlacement:n,error:i,required:a}=e,o={root:["root",r&&"disabled",`labelPlacement${Le(n)}`,i&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return it(o,Hne,t)},Une=be("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Ep.label}`]:t.label},t.root,t[`labelPlacement${Le(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>U({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Ep.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},{[`& .${Ep.label}`]:{[`&.${Ep.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),Yne=be("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Ep.error}`]:{color:(e.vars||e).palette.error.main}})),O$=G.forwardRef(function(t,r){var n,i;const a=ot({props:t,name:"MuiFormControlLabel"}),{className:o,componentsProps:s={},control:l,disabled:u,disableTypography:c,label:f,labelPlacement:d="end",required:h,slotProps:v={}}=a,g=De(a,Wne),y=Po(),x=(n=u??l.props.disabled)!=null?n:y==null?void 0:y.disabled,S=h??l.props.required,b={disabled:x,required:S};["checked","name","onChange","value","inputRef"].forEach(I=>{typeof l.props[I]>"u"&&typeof a[I]<"u"&&(b[I]=a[I])});const w=Dl({props:a,muiFormControl:y,states:["error"]}),T=U({},a,{disabled:x,labelPlacement:d,required:S,error:w.error}),C=jne(T),A=(i=v.typography)!=null?i:s.typography;let k=f;return k!=null&&k.type!==Et&&!c&&(k=N.jsx(Et,U({component:"span"},A,{className:Ee(C.label,A==null?void 0:A.className),children:k}))),N.jsxs(Une,U({className:Ee(C.root,o),ownerState:T,ref:r},g,{children:[G.cloneElement(l,b),S?N.jsxs(L$,{direction:"row",alignItems:"center",children:[k,N.jsxs(Yne,{ownerState:T,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):k]}))});function qne(e){return tt("MuiFormGroup",e)}at("MuiFormGroup",["root","row","error"]);const Xne=["className","row"],Zne=e=>{const{classes:t,row:r,error:n}=e;return it({root:["root",r&&"row",n&&"error"]},qne,t)},Kne=be("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>U({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),N$=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1}=n,o=De(n,Xne),s=Po(),l=Dl({props:n,muiFormControl:s,states:["error"]}),u=U({},n,{row:a,error:l.error}),c=Zne(u);return N.jsx(Kne,U({className:Ee(c.root,i),ownerState:u,ref:r},o))});function Qne(e){return tt("MuiFormHelperText",e)}const RL=at("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var EL;const Jne=["children","className","component","disabled","error","filled","focused","margin","required","variant"],eie=e=>{const{classes:t,contained:r,size:n,disabled:i,error:a,filled:o,focused:s,required:l}=e,u={root:["root",i&&"disabled",a&&"error",n&&`size${Le(n)}`,r&&"contained",s&&"focused",o&&"filled",l&&"required"]};return it(u,Qne,t)},tie=be("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${Le(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>U({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${RL.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${RL.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),rie=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:o="p"}=n,s=De(n,Jne),l=Po(),u=Dl({props:n,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=U({},n,{component:o,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=eie(c);return N.jsx(tie,U({as:o,ownerState:c,className:Ee(f.root,a),ref:r},s,{children:i===" "?EL||(EL=N.jsx("span",{className:"notranslate",children:""})):i}))});function nie(e){return tt("MuiFormLabel",e)}const tv=at("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),iie=["children","className","color","component","disabled","error","filled","focused","required"],aie=e=>{const{classes:t,color:r,focused:n,disabled:i,error:a,filled:o,required:s}=e,l={root:["root",`color${Le(r)}`,i&&"disabled",a&&"error",o&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return it(l,nie,t)},oie=be("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>U({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>U({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${tv.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${tv.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${tv.error}`]:{color:(e.vars||e).palette.error.main}})),sie=be("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${tv.error}`]:{color:(e.vars||e).palette.error.main}})),lie=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:o="label"}=n,s=De(n,iie),l=Po(),u=Dl({props:n,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=U({},n,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=aie(c);return N.jsxs(oie,U({as:o,ownerState:c,className:Ee(f.root,a),ref:r},s,{children:[i,u.required&&N.jsxs(sie,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),uie=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function t2(e){return`scale(${e}, ${e**2})`}const cie={entering:{opacity:1,transform:t2(1)},entered:{opacity:1,transform:"none"}},V_=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),f1=G.forwardRef(function(t,r){const{addEndListener:n,appear:i=!0,children:a,easing:o,in:s,onEnter:l,onEntered:u,onEntering:c,onExit:f,onExited:d,onExiting:h,style:v,timeout:g="auto",TransitionComponent:y=aa}=t,x=De(t,uie),S=G.useRef(),b=G.useRef(),w=Io(),T=G.useRef(null),C=kr(T,a.ref,r),A=F=>H=>{if(F){const q=T.current;H===void 0?F(q):F(q,H)}},k=A(c),I=A((F,H)=>{zM(F);const{duration:q,delay:$,easing:X}=bl({style:v,timeout:g,easing:o},{mode:"enter"});let B;g==="auto"?(B=w.transitions.getAutoHeightDuration(F.clientHeight),b.current=B):B=q,F.style.transition=[w.transitions.create("opacity",{duration:B,delay:$}),w.transitions.create("transform",{duration:V_?B:B*.666,delay:$,easing:X})].join(","),l&&l(F,H)}),P=A(u),R=A(h),L=A(F=>{const{duration:H,delay:q,easing:$}=bl({style:v,timeout:g,easing:o},{mode:"exit"});let X;g==="auto"?(X=w.transitions.getAutoHeightDuration(F.clientHeight),b.current=X):X=H,F.style.transition=[w.transitions.create("opacity",{duration:X,delay:q}),w.transitions.create("transform",{duration:V_?X:X*.666,delay:V_?q:q||X*.333,easing:$})].join(","),F.style.opacity=0,F.style.transform=t2(.75),f&&f(F)}),O=A(d),z=F=>{g==="auto"&&(S.current=setTimeout(F,b.current||0)),n&&n(T.current,F)};return G.useEffect(()=>()=>{clearTimeout(S.current)},[]),N.jsx(y,U({appear:i,in:s,nodeRef:T,onEnter:I,onEntered:P,onEntering:k,onExit:L,onExited:O,onExiting:R,addEndListener:z,timeout:g==="auto"?null:g},x,{children:(F,H)=>G.cloneElement(a,U({style:U({opacity:0,transform:t2(.75),visibility:F==="exited"&&!s?"hidden":void 0},cie[F],v,a.props.style),ref:C},H))}))});f1.muiSupportAuto=!0;const fie=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],die=e=>{const{classes:t,disableUnderline:r}=e,i=it({root:["root",!r&&"underline"],input:["input"]},Mre,t);return U({},t,i)},hie=be(Bx,{shouldForwardProp:e=>za(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Nx(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})`),U({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"},[`&.${$h.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${$h.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(.${$h.disabled}, .${$h.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${$h.disabled}:before`]:{borderBottomStyle:"dotted"}})}),pie=be(Fx,{name:"MuiInput",slot:"Input",overridesResolver:zx})({}),QM=G.forwardRef(function(t,r){var n,i,a,o;const s=ot({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:d="input",multiline:h=!1,slotProps:v,slots:g={},type:y="text"}=s,x=De(s,fie),S=die(s),w={root:{ownerState:{disableUnderline:l}}},T=v??c?ni(v??c,w):w,C=(n=(i=g.root)!=null?i:u.Root)!=null?n:hie,A=(a=(o=g.input)!=null?o:u.Input)!=null?a:pie;return N.jsx(qM,U({slots:{root:C,input:A},slotProps:T,fullWidth:f,inputComponent:d,multiline:h,ref:r,type:y},x,{classes:S}))});QM.muiName="Input";function vie(e){return tt("MuiInputAdornment",e)}const LL=at("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var OL;const gie=["children","className","component","disablePointerEvents","disableTypography","position","variant"],mie=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${Le(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},yie=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:i,size:a,variant:o}=e,s={root:["root",r&&"disablePointerEvents",i&&`position${Le(i)}`,o,n&&"hiddenLabel",a&&`size${Le(a)}`]};return it(s,vie,t)},xie=be("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:mie})(({theme:e,ownerState:t})=>U({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${LL.positionStart}&:not(.${LL.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),Sie=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiInputAdornment"}),{children:i,className:a,component:o="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=n,f=De(n,gie),d=Po()||{};let h=c;c&&d.variant,d&&!h&&(h=d.variant);const v=U({},n,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:s,position:u,variant:h}),g=yie(v);return N.jsx(Ox.Provider,{value:null,children:N.jsx(xie,U({as:o,ownerState:v,className:Ee(g.root,a),ref:r},f,{children:typeof i=="string"&&!l?N.jsx(Et,{color:"text.secondary",children:i}):N.jsxs(G.Fragment,{children:[u==="start"?OL||(OL=N.jsx("span",{className:"notranslate",children:""})):null,i]})}))})});function bie(e){return tt("MuiInputLabel",e)}at("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const _ie=["disableAnimation","margin","shrink","variant","className"],wie=e=>{const{classes:t,formControl:r,size:n,shrink:i,disableAnimation:a,variant:o,required:s}=e,l={root:["root",r&&"formControl",!a&&"animated",i&&"shrink",n&&n!=="normal"&&`size${Le(n)}`,o],asterisk:[s&&"asterisk"]},u=it(l,bie,t);return U({},t,u)},Cie=be(lie,{shouldForwardProp:e=>za(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${tv.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})=>U({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"&&U({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&&U({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"&&U({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)"}))),Vx=G.forwardRef(function(t,r){const n=ot({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:o}=n,s=De(n,_ie),l=Po();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=Dl({props:n,muiFormControl:l,states:["size","variant","required"]}),f=U({},n,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),d=wie(f);return N.jsx(Cie,U({"data-shrink":u,ownerState:f,ref:r,className:Ee(d.root,o)},s,{classes:d}))});function Tie(e){return tt("MuiLink",e)}const Aie=at("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),z$={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Mie=e=>z$[e]||e,kie=({theme:e,ownerState:t})=>{const r=Mie(t.color),n=ld(e,`palette.${r}`,!1)||t.color,i=ld(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:Sr(n,.4)},Iie=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Pie=e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e,a={root:["root",`underline${Le(i)}`,r==="button"&&"button",n&&"focusVisible"]};return it(a,Tie,t)},Die=be(Et,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${Le(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>U({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&U({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:kie({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"},[`&.${Aie.focusVisible}`]:{outline:"auto"}})),Kr=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiLink"}),{className:i,color:a="primary",component:o="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:c="always",variant:f="inherit",sx:d}=n,h=De(n,Iie),{isFocusVisibleRef:v,onBlur:g,onFocus:y,ref:x}=yx(),[S,b]=G.useState(!1),w=kr(r,x),T=I=>{g(I),v.current===!1&&b(!1),s&&s(I)},C=I=>{y(I),v.current===!0&&b(!0),l&&l(I)},A=U({},n,{color:a,component:o,focusVisible:S,underline:c,variant:f}),k=Pie(A);return N.jsx(Die,U({color:a,className:Ee(k.root,i),classes:u,component:o,onBlur:T,onFocus:C,ref:w,ownerState:A,variant:f,sx:[...Object.keys(z$).includes(a)?[]:[{color:a}],...Array.isArray(d)?d:[d]]},h))}),rv=G.createContext({});function Rie(e){return tt("MuiList",e)}at("MuiList",["root","padding","dense","subheader"]);const Eie=["children","className","component","dense","disablePadding","subheader"],Lie=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return it({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},Rie,t)},Oie=be("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})=>U({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),B$=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiList"}),{children:i,className:a,component:o="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=n,c=De(n,Eie),f=G.useMemo(()=>({dense:s}),[s]),d=U({},n,{component:o,dense:s,disablePadding:l}),h=Lie(d);return N.jsx(rv.Provider,{value:f,children:N.jsxs(Oie,U({as:o,className:Ee(h.root,a),ref:r,ownerState:d},c,{children:[u,i]}))})});function Nie(e){return tt("MuiListItem",e)}const Of=at("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),zie=at("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Bie(e){return tt("MuiListItemSecondaryAction",e)}at("MuiListItemSecondaryAction",["root","disableGutters"]);const Fie=["className"],Vie=e=>{const{disableGutters:t,classes:r}=e;return it({root:["root",t&&"disableGutters"]},Bie,r)},$ie=be("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>U({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),F$=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=n,a=De(n,Fie),o=G.useContext(rv),s=U({},n,{disableGutters:o.disableGutters}),l=Vie(s);return N.jsx($ie,U({className:Ee(l.root,i),ownerState:s,ref:r},a))});F$.muiName="ListItemSecondaryAction";const Gie=["className"],Hie=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Wie=(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]},jie=e=>{const{alignItems:t,button:r,classes:n,dense:i,disabled:a,disableGutters:o,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return it({root:["root",i&&"dense",!o&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},Nie,n)},Uie=be("div",{name:"MuiListItem",slot:"Root",overridesResolver:Wie})(({theme:e,ownerState:t})=>U({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&U({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${zie.root}`]:{paddingRight:48}},{[`&.${Of.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Of.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Sr(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Of.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Sr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Of.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"}},[`&.${Of.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Sr(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})`:Sr(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Yie=be("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),lf=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:a=!1,button:o=!1,children:s,className:l,component:u,components:c={},componentsProps:f={},ContainerComponent:d="li",ContainerProps:{className:h}={},dense:v=!1,disabled:g=!1,disableGutters:y=!1,disablePadding:x=!1,divider:S=!1,focusVisibleClassName:b,secondaryAction:w,selected:T=!1,slotProps:C={},slots:A={}}=n,k=De(n.ContainerProps,Gie),I=De(n,Hie),P=G.useContext(rv),R=G.useMemo(()=>({dense:v||P.dense||!1,alignItems:i,disableGutters:y}),[i,P.dense,v,y]),L=G.useRef(null);Ra(()=>{a&&L.current&&L.current.focus()},[a]);const O=G.Children.toArray(s),z=O.length&&Xp(O[O.length-1],["ListItemSecondaryAction"]),F=U({},n,{alignItems:i,autoFocus:a,button:o,dense:R.dense,disabled:g,disableGutters:y,disablePadding:x,divider:S,hasSecondaryAction:z,selected:T}),H=jie(F),q=kr(L,r),$=A.root||c.Root||Uie,X=C.root||f.root||{},B=U({className:Ee(H.root,X.className,l),disabled:g},I);let Y=u||"li";return o&&(B.component=u||"div",B.focusVisibleClassName=Ee(Of.focusVisible,b),Y=wc),z?(Y=!B.component&&!u?"div":Y,d==="li"&&(Y==="li"?Y="div":B.component==="li"&&(B.component="div")),N.jsx(rv.Provider,{value:R,children:N.jsxs(Yie,U({as:d,className:Ee(H.container,h),ref:q,ownerState:F},k,{children:[N.jsx($,U({},X,!ud($)&&{as:Y,ownerState:U({},F,X.ownerState)},B,{children:O})),O.pop()]}))})):N.jsx(rv.Provider,{value:R,children:N.jsxs($,U({},X,{as:Y,ref:q},!ud($)&&{ownerState:U({},F,X.ownerState)},B,{children:[O,w&&N.jsx(F$,{children:w})]}))})}),qie=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function $_(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function NL(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function V$(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 Gh(e,t,r,n,i,a){let o=!1,s=i(e,t,t?r:!1);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}const l=n?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!V$(s,a)||l)s=i(e,s,r);else return s.focus(),!0}return!1}const Xie=G.forwardRef(function(t,r){const{actions:n,autoFocus:i=!1,autoFocusItem:a=!1,children:o,className:s,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:f="selectedMenu"}=t,d=De(t,qie),h=G.useRef(null),v=G.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ra(()=>{i&&h.current.focus()},[i]),G.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(b,w)=>{const T=!h.current.style.width;if(b.clientHeight<h.current.clientHeight&&T){const C=`${FV(ln(b))}px`;h.current.style[w.direction==="rtl"?"paddingLeft":"paddingRight"]=C,h.current.style.width=`calc(100% + ${C})`}return h.current}}),[]);const g=b=>{const w=h.current,T=b.key,C=ln(w).activeElement;if(T==="ArrowDown")b.preventDefault(),Gh(w,C,u,l,$_);else if(T==="ArrowUp")b.preventDefault(),Gh(w,C,u,l,NL);else if(T==="Home")b.preventDefault(),Gh(w,null,u,l,$_);else if(T==="End")b.preventDefault(),Gh(w,null,u,l,NL);else if(T.length===1){const A=v.current,k=T.toLowerCase(),I=performance.now();A.keys.length>0&&(I-A.lastTime>500?(A.keys=[],A.repeating=!0,A.previousKeyMatched=!0):A.repeating&&k!==A.keys[0]&&(A.repeating=!1)),A.lastTime=I,A.keys.push(k);const P=C&&!A.repeating&&V$(C,A);A.previousKeyMatched&&(P||Gh(w,C,!1,l,$_,A))?b.preventDefault():A.previousKeyMatched=!1}c&&c(b)},y=kr(h,r);let x=-1;G.Children.forEach(o,(b,w)=>{if(!G.isValidElement(b)){x===w&&(x+=1,x>=o.length&&(x=-1));return}b.props.disabled||(f==="selectedMenu"&&b.props.selected||x===-1)&&(x=w),x===w&&(b.props.disabled||b.props.muiSkipListHighlight||b.type.muiSkipListHighlight)&&(x+=1,x>=o.length&&(x=-1))});const S=G.Children.map(o,(b,w)=>{if(w===x){const T={};return a&&(T.autoFocus=!0),b.props.tabIndex===void 0&&f==="selectedMenu"&&(T.tabIndex=0),G.cloneElement(b,T)}return b});return N.jsx(B$,U({role:"menu",ref:y,className:s,onKeyDown:g,tabIndex:i?0:-1},d,{children:S}))});function Zie(e){return tt("MuiPopover",e)}at("MuiPopover",["root","paper"]);const Kie=["onEntering"],Qie=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Jie=["slotProps"];function zL(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function BL(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function FL(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function G_(e){return typeof e=="function"?e():e}const eae=e=>{const{classes:t}=e;return it({root:["root"],paper:["paper"]},Zie,t)},tae=be(XM,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),$$=be(gs,{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}),G$=G.forwardRef(function(t,r){var n,i,a;const o=ot({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:d,className:h,container:v,elevation:g=8,marginThreshold:y=16,open:x,PaperProps:S={},slots:b,slotProps:w,transformOrigin:T={vertical:"top",horizontal:"left"},TransitionComponent:C=f1,transitionDuration:A="auto",TransitionProps:{onEntering:k}={},disableScrollLock:I=!1}=o,P=De(o.TransitionProps,Kie),R=De(o,Qie),L=(n=w==null?void 0:w.paper)!=null?n:S,O=G.useRef(),z=kr(O,L.ref),F=U({},o,{anchorOrigin:u,anchorReference:f,elevation:g,marginThreshold:y,externalPaperSlotProps:L,transformOrigin:T,TransitionComponent:C,transitionDuration:A,TransitionProps:P}),H=eae(F),q=G.useCallback(()=>{if(f==="anchorPosition")return c;const Re=G_(l),$e=(Re&&Re.nodeType===1?Re:ln(O.current).body).getBoundingClientRect();return{top:$e.top+zL($e,u.vertical),left:$e.left+BL($e,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),$=G.useCallback(Re=>({vertical:zL(Re,T.vertical),horizontal:BL(Re,T.horizontal)}),[T.horizontal,T.vertical]),X=G.useCallback(Re=>{const Ie={width:Re.offsetWidth,height:Re.offsetHeight},$e=$(Ie);if(f==="none")return{top:null,left:null,transformOrigin:FL($e)};const dt=q();let ct=dt.top-$e.vertical,bt=dt.left-$e.horizontal;const At=ct+Ie.height,_t=bt+Ie.width,st=ta(G_(l)),rr=st.innerHeight-y,Gt=st.innerWidth-y;if(y!==null&&ct<y){const It=ct-y;ct-=It,$e.vertical+=It}else if(y!==null&&At>rr){const It=At-rr;ct-=It,$e.vertical+=It}if(y!==null&&bt<y){const It=bt-y;bt-=It,$e.horizontal+=It}else if(_t>Gt){const It=_t-Gt;bt-=It,$e.horizontal+=It}return{top:`${Math.round(ct)}px`,left:`${Math.round(bt)}px`,transformOrigin:FL($e)}},[l,f,q,$,y]),[B,Y]=G.useState(x),Z=G.useCallback(()=>{const Re=O.current;if(!Re)return;const Ie=X(Re);Ie.top!==null&&(Re.style.top=Ie.top),Ie.left!==null&&(Re.style.left=Ie.left),Re.style.transformOrigin=Ie.transformOrigin,Y(!0)},[X]);G.useEffect(()=>(I&&window.addEventListener("scroll",Z),()=>window.removeEventListener("scroll",Z)),[l,I,Z]);const j=(Re,Ie)=>{k&&k(Re,Ie),Z()},re=()=>{Y(!1)};G.useEffect(()=>{x&&Z()}),G.useImperativeHandle(s,()=>x?{updatePosition:()=>{Z()}}:null,[x,Z]),G.useEffect(()=>{if(!x)return;const Re=Md(()=>{Z()}),Ie=ta(l);return Ie.addEventListener("resize",Re),()=>{Re.clear(),Ie.removeEventListener("resize",Re)}},[l,x,Z]);let ce=A;A==="auto"&&!C.muiSupportAuto&&(ce=void 0);const te=v||(l?ln(G_(l)).body:void 0),pe=(i=b==null?void 0:b.root)!=null?i:tae,ae=(a=b==null?void 0:b.paper)!=null?a:$$,he=La({elementType:ae,externalSlotProps:U({},L,{style:B?L.style:U({},L.style,{opacity:0})}),additionalProps:{elevation:g,ref:z},ownerState:F,className:Ee(H.paper,L==null?void 0:L.className)}),ve=La({elementType:pe,externalSlotProps:(w==null?void 0:w.root)||{},externalForwardedProps:R,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:te,open:x},ownerState:F,className:Ee(H.root,h)}),{slotProps:fe}=ve,ge=De(ve,Jie);return N.jsx(pe,U({},ge,!ud(pe)&&{slotProps:fe,disableScrollLock:I},{children:N.jsx(C,U({appear:!0,in:x,onEntering:j,onExited:re,timeout:ce},P,{children:N.jsx(ae,U({},he,{children:d}))}))}))});function rae(e){return tt("MuiMenu",e)}at("MuiMenu",["root","paper","list"]);const nae=["onEntering"],iae=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],aae={vertical:"top",horizontal:"right"},oae={vertical:"top",horizontal:"left"},sae=e=>{const{classes:t}=e;return it({root:["root"],paper:["paper"],list:["list"]},rae,t)},lae=be(G$,{shouldForwardProp:e=>za(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),uae=be($$,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),cae=be(Xie,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),fae=G.forwardRef(function(t,r){var n,i;const a=ot({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:f,open:d,PaperProps:h={},PopoverClasses:v,transitionDuration:g="auto",TransitionProps:{onEntering:y}={},variant:x="selectedMenu",slots:S={},slotProps:b={}}=a,w=De(a.TransitionProps,nae),T=De(a,iae),C=Io(),A=C.direction==="rtl",k=U({},a,{autoFocus:o,disableAutoFocusItem:u,MenuListProps:c,onEntering:y,PaperProps:h,transitionDuration:g,TransitionProps:w,variant:x}),I=sae(k),P=o&&!u&&d,R=G.useRef(null),L=(X,B)=>{R.current&&R.current.adjustStyleForScrollbar(X,C),y&&y(X,B)},O=X=>{X.key==="Tab"&&(X.preventDefault(),f&&f(X,"tabKeyDown"))};let z=-1;G.Children.map(s,(X,B)=>{G.isValidElement(X)&&(X.props.disabled||(x==="selectedMenu"&&X.props.selected||z===-1)&&(z=B))});const F=(n=S.paper)!=null?n:uae,H=(i=b.paper)!=null?i:h,q=La({elementType:S.root,externalSlotProps:b.root,ownerState:k,className:[I.root,l]}),$=La({elementType:F,externalSlotProps:H,ownerState:k,className:I.paper});return N.jsx(lae,U({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:A?"right":"left"},transformOrigin:A?aae:oae,slots:{paper:F,root:S.root},slotProps:{root:q,paper:$},open:d,ref:r,transitionDuration:g,TransitionProps:U({onEntering:L},w),ownerState:k},T,{classes:v,children:N.jsx(cae,U({onKeyDown:O,actions:R,autoFocus:o&&(z===-1||u),autoFocusItem:P,variant:x},c,{className:Ee(I.list,c.className),children:s}))}))});function dae(e){return tt("MuiNativeSelect",e)}const JM=at("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),hae=["className","disabled","error","IconComponent","inputRef","variant"],pae=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:o}=e,s={select:["select",r,n&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${Le(r)}`,a&&"iconOpen",n&&"disabled"]};return it(s,dae,t)},H$=({ownerState:e,theme:t})=>U({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":U({},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"},[`&.${JM.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}}),vae=be("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:za,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${JM.multiple}`]:t.multiple}]}})(H$),W$=({ownerState:e,theme:t})=>U({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${JM.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),gae=be("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Le(r.variant)}`],r.open&&t.iconOpen]}})(W$),mae=G.forwardRef(function(t,r){const{className:n,disabled:i,error:a,IconComponent:o,inputRef:s,variant:l="standard"}=t,u=De(t,hae),c=U({},t,{disabled:i,variant:l,error:a}),f=pae(c);return N.jsxs(G.Fragment,{children:[N.jsx(vae,U({ownerState:c,className:Ee(f.select,n),disabled:i,ref:s||r},u)),t.multiple?null:N.jsx(gae,{as:o,ownerState:c,className:f.icon})]})});var VL;const yae=["children","classes","className","label","notched"],xae=be("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%"}),Sae=be("legend")(({ownerState:e,theme:t})=>U({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&&U({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 bae(e){const{className:t,label:r,notched:n}=e,i=De(e,yae),a=r!=null&&r!=="",o=U({},e,{notched:n,withLabel:a});return N.jsx(xae,U({"aria-hidden":!0,className:t,ownerState:o},i,{children:N.jsx(Sae,{ownerState:o,children:a?N.jsx("span",{children:r}):VL||(VL=N.jsx("span",{className:"notranslate",children:""}))})}))}const _ae=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],wae=e=>{const{classes:t}=e,n=it({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},kre,t);return U({},t,n)},Cae=be(Bx,{shouldForwardProp:e=>za(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Nx})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return U({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Vs.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Vs.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${Vs.focused} .${Vs.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Vs.error} .${Vs.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Vs.disabled} .${Vs.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&U({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),Tae=be(bae,{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}}),Aae=be(Fx,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:zx})(({theme:e,ownerState:t})=>U({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})),$x=G.forwardRef(function(t,r){var n,i,a,o,s;const l=ot({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:d,multiline:h=!1,notched:v,slots:g={},type:y="text"}=l,x=De(l,_ae),S=wae(l),b=Po(),w=Dl({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T=U({},l,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:b,fullWidth:c,hiddenLabel:w.hiddenLabel,multiline:h,size:w.size,type:y}),C=(n=(i=g.root)!=null?i:u.Root)!=null?n:Cae,A=(a=(o=g.input)!=null?o:u.Input)!=null?a:Aae;return N.jsx(qM,U({slots:{root:C,input:A},renderSuffix:k=>N.jsx(Tae,{ownerState:T,className:S.notchedOutline,label:d!=null&&d!==""&&w.required?s||(s=N.jsxs(G.Fragment,{children:[d," ","*"]})):d,notched:typeof v<"u"?v:!!(k.startAdornment||k.filled||k.focused)}),fullWidth:c,inputComponent:f,multiline:h,ref:r,type:y},x,{classes:U({},S,{notchedOutline:null})}))});$x.muiName="Input";function Mae(e){return tt("MuiSelect",e)}const Hh=at("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var $L;const kae=["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"],Iae=be("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Hh.select}`]:t.select},{[`&.${Hh.select}`]:t[r.variant]},{[`&.${Hh.error}`]:t.error},{[`&.${Hh.multiple}`]:t.multiple}]}})(H$,{[`&.${Hh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Pae=be("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${Le(r.variant)}`],r.open&&t.iconOpen]}})(W$),Dae=be("input",{shouldForwardProp:e=>aJ(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 GL(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function Rae(e){return e==null||typeof e=="string"&&!e.trim()}const Eae=e=>{const{classes:t,variant:r,disabled:n,multiple:i,open:a,error:o}=e,s={select:["select",r,n&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${Le(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return it(s,Mae,t)},Lae=G.forwardRef(function(t,r){var n;const{"aria-describedby":i,"aria-label":a,autoFocus:o,autoWidth:s,children:l,className:u,defaultOpen:c,defaultValue:f,disabled:d,displayEmpty:h,error:v=!1,IconComponent:g,inputRef:y,labelId:x,MenuProps:S={},multiple:b,name:w,onBlur:T,onChange:C,onClose:A,onFocus:k,onOpen:I,open:P,readOnly:R,renderValue:L,SelectDisplayProps:O={},tabIndex:z,value:F,variant:H="standard"}=t,q=De(t,kae),[$,X]=od({controlled:F,default:f,name:"Select"}),[B,Y]=od({controlled:P,default:c,name:"Select"}),Z=G.useRef(null),j=G.useRef(null),[re,ce]=G.useState(null),{current:te}=G.useRef(P!=null),[pe,ae]=G.useState(),he=kr(r,y),ve=G.useCallback(ze=>{j.current=ze,ze&&ce(ze)},[]),fe=re==null?void 0:re.parentNode;G.useImperativeHandle(he,()=>({focus:()=>{j.current.focus()},node:Z.current,value:$}),[$]),G.useEffect(()=>{c&&B&&re&&!te&&(ae(s?null:fe.clientWidth),j.current.focus())},[re,s]),G.useEffect(()=>{o&&j.current.focus()},[o]),G.useEffect(()=>{if(!x)return;const ze=ln(j.current).getElementById(x);if(ze){const wt=()=>{getSelection().isCollapsed&&j.current.focus()};return ze.addEventListener("click",wt),()=>{ze.removeEventListener("click",wt)}}},[x]);const ge=(ze,wt)=>{ze?I&&I(wt):A&&A(wt),te||(ae(s?null:fe.clientWidth),Y(ze))},Re=ze=>{ze.button===0&&(ze.preventDefault(),j.current.focus(),ge(!0,ze))},Ie=ze=>{ge(!1,ze)},$e=G.Children.toArray(l),dt=ze=>{const wt=$e.find(Ht=>Ht.props.value===ze.target.value);wt!==void 0&&(X(wt.props.value),C&&C(ze,wt))},ct=ze=>wt=>{let Ht;if(wt.currentTarget.hasAttribute("tabindex")){if(b){Ht=Array.isArray($)?$.slice():[];const ke=$.indexOf(ze.props.value);ke===-1?Ht.push(ze.props.value):Ht.splice(ke,1)}else Ht=ze.props.value;if(ze.props.onClick&&ze.props.onClick(wt),$!==Ht&&(X(Ht),C)){const ke=wt.nativeEvent||wt,Ue=new ke.constructor(ke.type,ke);Object.defineProperty(Ue,"target",{writable:!0,value:{value:Ht,name:w}}),C(Ue,ze)}b||ge(!1,wt)}},bt=ze=>{R||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ze.key)!==-1&&(ze.preventDefault(),ge(!0,ze))},At=re!==null&&B,_t=ze=>{!At&&T&&(Object.defineProperty(ze,"target",{writable:!0,value:{value:$,name:w}}),T(ze))};delete q["aria-invalid"];let st,rr;const Gt=[];let It=!1;(c1({value:$})||h)&&(L?st=L($):It=!0);const le=$e.map(ze=>{if(!G.isValidElement(ze))return null;let wt;if(b){if(!Array.isArray($))throw new Error(Sl(2));wt=$.some(Ht=>GL(Ht,ze.props.value)),wt&&It&&Gt.push(ze.props.children)}else wt=GL($,ze.props.value),wt&&It&&(rr=ze.props.children);return G.cloneElement(ze,{"aria-selected":wt?"true":"false",onClick:ct(ze),onKeyUp:Ht=>{Ht.key===" "&&Ht.preventDefault(),ze.props.onKeyUp&&ze.props.onKeyUp(Ht)},role:"option",selected:wt,value:void 0,"data-value":ze.props.value})});It&&(b?Gt.length===0?st=null:st=Gt.reduce((ze,wt,Ht)=>(ze.push(wt),Ht<Gt.length-1&&ze.push(", "),ze),[]):st=rr);let ye=pe;!s&&te&&re&&(ye=fe.clientWidth);let je;typeof z<"u"?je=z:je=d?null:0;const Ne=O.id||(w?`mui-component-select-${w}`:void 0),Me=U({},t,{variant:H,value:$,open:At,error:v}),Pt=Eae(Me),sr=U({},S.PaperProps,(n=S.slotProps)==null?void 0:n.paper);return N.jsxs(G.Fragment,{children:[N.jsx(Iae,U({ref:ve,tabIndex:je,role:"button","aria-disabled":d?"true":void 0,"aria-expanded":At?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[x,Ne].filter(Boolean).join(" ")||void 0,"aria-describedby":i,onKeyDown:bt,onMouseDown:d||R?null:Re,onBlur:_t,onFocus:k},O,{ownerState:Me,className:Ee(O.className,Pt.select,u),id:Ne,children:Rae(st)?$L||($L=N.jsx("span",{className:"notranslate",children:""})):st})),N.jsx(Dae,U({"aria-invalid":v,value:Array.isArray($)?$.join(","):$,name:w,ref:Z,"aria-hidden":!0,onChange:dt,tabIndex:-1,disabled:d,className:Pt.nativeInput,autoFocus:o,ownerState:Me},q)),N.jsx(Pae,{as:g,className:Pt.icon,ownerState:Me}),N.jsx(fae,U({id:`menu-${w||""}`,anchorEl:fe,open:At,onClose:Ie,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},S,{MenuListProps:U({"aria-labelledby":x,role:"listbox",disableListWrap:!0},S.MenuListProps),slotProps:{paper:U({},sr,{style:U({minWidth:ye},sr!=null?sr.style:null)})},children:le}))]})}),Oae=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Nae=["root"],zae=e=>{const{classes:t}=e;return t},ek={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>za(e)&&e!=="variant",slot:"Root"},Bae=be(QM,ek)(""),Fae=be($x,ek)(""),Vae=be(ZM,ek)(""),tk=G.forwardRef(function(t,r){const n=ot({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:o={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=Pre,id:f,input:d,inputProps:h,label:v,labelId:g,MenuProps:y,multiple:x=!1,native:S=!1,onClose:b,onOpen:w,open:T,renderValue:C,SelectDisplayProps:A,variant:k="outlined"}=n,I=De(n,Oae),P=S?mae:Lae,R=Po(),L=Dl({props:n,muiFormControl:R,states:["variant","error"]}),O=L.variant||k,z=U({},n,{variant:O,classes:o}),F=zae(z),H=De(F,Nae),q=d||{standard:N.jsx(Bae,{ownerState:z}),outlined:N.jsx(Fae,{label:v,ownerState:z}),filled:N.jsx(Vae,{ownerState:z})}[O],$=kr(r,q.ref);return N.jsx(G.Fragment,{children:G.cloneElement(q,U({inputComponent:P,inputProps:U({children:a,error:L.error,IconComponent:c,variant:O,type:void 0,multiple:x},S?{id:f}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:g,MenuProps:y,onClose:b,onOpen:w,open:T,renderValue:C,SelectDisplayProps:U({id:f},A)},h,{classes:h?ni(H,h.classes):H},d?d.props.inputProps:{})},x&&S&&O==="outlined"?{notched:!0}:{},{ref:$,className:Ee(q.props.className,s,F.root)},!d&&{variant:O},I))})});tk.muiName="Select";function $ae(e){return tt("MuiTooltip",e)}const il=at("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Gae=["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 Hae(e){return Math.round(e*1e5)/1e5}const Wae=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:i,placement:a}=e,o={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",i&&"touch",`tooltipPlacement${Le(a.split("-")[0])}`],arrow:["arrow"]};return it(o,$ae,t)},jae=be(M$,{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})=>U({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${il.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${il.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${il.arrow}`]:U({},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"] .${il.arrow}`]:U({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Uae=be("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${Le(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>U({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Sr(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:`${Hae(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${il.popper}[data-popper-placement*="left"] &`]:U({transformOrigin:"right center"},t.isRtl?U({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):U({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${il.popper}[data-popper-placement*="right"] &`]:U({transformOrigin:"left center"},t.isRtl?U({marginRight:"14px"},t.touch&&{marginRight:"24px"}):U({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${il.popper}[data-popper-placement*="top"] &`]:U({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${il.popper}[data-popper-placement*="bottom"] &`]:U({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Yae=be("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:Sr(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let vy=!1,H_=null,Wh={x:0,y:0};function gy(e,t){return r=>{t&&t(r),e(r)}}const j$=G.forwardRef(function(t,r){var n,i,a,o,s,l,u,c,f,d,h,v,g,y,x,S,b,w,T;const C=ot({props:t,name:"MuiTooltip"}),{arrow:A=!1,children:k,components:I={},componentsProps:P={},describeChild:R=!1,disableFocusListener:L=!1,disableHoverListener:O=!1,disableInteractive:z=!1,disableTouchListener:F=!1,enterDelay:H=100,enterNextDelay:q=0,enterTouchDelay:$=700,followCursor:X=!1,id:B,leaveDelay:Y=0,leaveTouchDelay:Z=1500,onClose:j,onOpen:re,open:ce,placement:te="bottom",PopperComponent:pe,PopperProps:ae={},slotProps:he={},slots:ve={},title:fe,TransitionComponent:ge=f1,TransitionProps:Re}=C,Ie=De(C,Gae),$e=G.isValidElement(k)?k:N.jsx("span",{children:k}),dt=Io(),ct=dt.direction==="rtl",[bt,At]=G.useState(),[_t,st]=G.useState(null),rr=G.useRef(!1),Gt=z||X,It=G.useRef(),le=G.useRef(),ye=G.useRef(),je=G.useRef(),[Ne,Me]=od({controlled:ce,default:!1,name:"Tooltip",state:"open"});let Pt=Ne;const sr=gM(B),ze=G.useRef(),wt=G.useCallback(()=>{ze.current!==void 0&&(document.body.style.WebkitUserSelect=ze.current,ze.current=void 0),clearTimeout(je.current)},[]);G.useEffect(()=>()=>{clearTimeout(It.current),clearTimeout(le.current),clearTimeout(ye.current),wt()},[wt]);const Ht=Rt=>{clearTimeout(H_),vy=!0,Me(!0),re&&!Pt&&re(Rt)},ke=Ta(Rt=>{clearTimeout(H_),H_=setTimeout(()=>{vy=!1},800+Y),Me(!1),j&&Pt&&j(Rt),clearTimeout(It.current),It.current=setTimeout(()=>{rr.current=!1},dt.transitions.duration.shortest)}),Ue=Rt=>{rr.current&&Rt.type!=="touchstart"||(bt&&bt.removeAttribute("title"),clearTimeout(le.current),clearTimeout(ye.current),H||vy&&q?le.current=setTimeout(()=>{Ht(Rt)},vy?q:H):Ht(Rt))},ht=Rt=>{clearTimeout(le.current),clearTimeout(ye.current),ye.current=setTimeout(()=>{ke(Rt)},Y)},{isFocusVisibleRef:Nt,onBlur:_r,onFocus:Hn,ref:di}=yx(),[,ca]=G.useState(!1),Ss=Rt=>{_r(Rt),Nt.current===!1&&(ca(!1),ht(Rt))},Lo=Rt=>{bt||At(Rt.currentTarget),Hn(Rt),Nt.current===!0&&(ca(!0),Ue(Rt))},qd=Rt=>{rr.current=!0;const Tn=$e.props;Tn.onTouchStart&&Tn.onTouchStart(Rt)},Xd=Ue,Zd=ht,Kd=Rt=>{qd(Rt),clearTimeout(ye.current),clearTimeout(It.current),wt(),ze.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",je.current=setTimeout(()=>{document.body.style.WebkitUserSelect=ze.current,Ue(Rt)},$)},qg=Rt=>{$e.props.onTouchEnd&&$e.props.onTouchEnd(Rt),wt(),clearTimeout(ye.current),ye.current=setTimeout(()=>{ke(Rt)},Z)};G.useEffect(()=>{if(!Pt)return;function Rt(Tn){(Tn.key==="Escape"||Tn.key==="Esc")&&ke(Tn)}return document.addEventListener("keydown",Rt),()=>{document.removeEventListener("keydown",Rt)}},[ke,Pt]);const zl=kr($e.ref,di,At,r);!fe&&fe!==0&&(Pt=!1);const Bl=G.useRef(),Fl=Rt=>{const Tn=$e.props;Tn.onMouseMove&&Tn.onMouseMove(Rt),Wh={x:Rt.clientX,y:Rt.clientY},Bl.current&&Bl.current.update()},Vl={},Oo=typeof fe=="string";R?(Vl.title=!Pt&&Oo&&!O?fe:null,Vl["aria-describedby"]=Pt?sr:null):(Vl["aria-label"]=Oo?fe:null,Vl["aria-labelledby"]=Pt&&!Oo?sr:null);const dn=U({},Vl,Ie,$e.props,{className:Ee(Ie.className,$e.props.className),onTouchStart:qd,ref:zl},X?{onMouseMove:Fl}:{}),Va={};F||(dn.onTouchStart=Kd,dn.onTouchEnd=qg),O||(dn.onMouseOver=gy(Xd,dn.onMouseOver),dn.onMouseLeave=gy(Zd,dn.onMouseLeave),Gt||(Va.onMouseOver=Xd,Va.onMouseLeave=Zd)),L||(dn.onFocus=gy(Lo,dn.onFocus),dn.onBlur=gy(Ss,dn.onBlur),Gt||(Va.onFocus=Lo,Va.onBlur=Ss));const Qd=G.useMemo(()=>{var Rt;let Tn=[{name:"arrow",enabled:!!_t,options:{element:_t,padding:4}}];return(Rt=ae.popperOptions)!=null&&Rt.modifiers&&(Tn=Tn.concat(ae.popperOptions.modifiers)),U({},ae.popperOptions,{modifiers:Tn})},[_t,ae]),$l=U({},C,{isRtl:ct,arrow:A,disableInteractive:Gt,placement:te,PopperComponentProp:pe,touch:rr.current}),Jd=Wae($l),Xg=(n=(i=ve.popper)!=null?i:I.Popper)!=null?n:jae,$a=(a=(o=(s=ve.transition)!=null?s:I.Transition)!=null?o:ge)!=null?a:f1,eh=(l=(u=ve.tooltip)!=null?u:I.Tooltip)!=null?l:Uae,th=(c=(f=ve.arrow)!=null?f:I.Arrow)!=null?c:Yae,NS=Rp(Xg,U({},ae,(d=he.popper)!=null?d:P.popper,{className:Ee(Jd.popper,ae==null?void 0:ae.className,(h=(v=he.popper)!=null?v:P.popper)==null?void 0:h.className)}),$l),Zg=Rp($a,U({},Re,(g=he.transition)!=null?g:P.transition),$l),Kg=Rp(eh,U({},(y=he.tooltip)!=null?y:P.tooltip,{className:Ee(Jd.tooltip,(x=(S=he.tooltip)!=null?S:P.tooltip)==null?void 0:x.className)}),$l),Qg=Rp(th,U({},(b=he.arrow)!=null?b:P.arrow,{className:Ee(Jd.arrow,(w=(T=he.arrow)!=null?T:P.arrow)==null?void 0:w.className)}),$l);return N.jsxs(G.Fragment,{children:[G.cloneElement($e,dn),N.jsx(Xg,U({as:pe??M$,placement:te,anchorEl:X?{getBoundingClientRect:()=>({top:Wh.y,left:Wh.x,right:Wh.x,bottom:Wh.y,width:0,height:0})}:bt,popperRef:Bl,open:bt?Pt:!1,id:sr,transition:!0},Va,NS,{popperOptions:Qd,children:({TransitionProps:Rt})=>N.jsx($a,U({timeout:dt.transitions.duration.shorter},Rt,Zg,{children:N.jsxs(eh,U({},Kg,{children:[fe,A?N.jsx(th,U({},Qg,{ref:st})):null]}))}))}))]})});function qae(e){return tt("MuiSwitch",e)}const Pn=at("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Xae=["className","color","edge","size","sx"],Zae=e=>{const{classes:t,edge:r,size:n,color:i,checked:a,disabled:o}=e,s={root:["root",r&&`edge${Le(r)}`,`size${Le(n)}`],switchBase:["switchBase",`color${Le(i)}`,a&&"checked",o&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=it(s,qae,t);return U({},t,l)},Kae=be("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${Le(r.edge)}`],t[`size${Le(r.size)}`]]}})(({ownerState:e})=>U({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,[`& .${Pn.thumb}`]:{width:16,height:16},[`& .${Pn.switchBase}`]:{padding:4,[`&.${Pn.checked}`]:{transform:"translateX(16px)"}}})),Qae=be(P$,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${Pn.input}`]:t.input},r.color!=="default"&&t[`color${Le(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}),[`&.${Pn.checked}`]:{transform:"translateX(20px)"},[`&.${Pn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Pn.checked} + .${Pn.track}`]:{opacity:.5},[`&.${Pn.disabled} + .${Pn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Pn.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>U({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Sr(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Pn.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})`:Sr(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Pn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Rv(e.palette[t.color].main,.62):Dv(e.palette[t.color].main,.55)}`}},[`&.${Pn.checked} + .${Pn.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),Jae=be("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}`})),eoe=be("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%"})),toe=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiSwitch"}),{className:i,color:a="primary",edge:o=!1,size:s="medium",sx:l}=n,u=De(n,Xae),c=U({},n,{color:a,edge:o,size:s}),f=Zae(c),d=N.jsx(eoe,{className:f.thumb,ownerState:c});return N.jsxs(Kae,{className:Ee(f.root,i),sx:l,ownerState:c,children:[N.jsx(Qae,U({type:"checkbox",icon:d,checkedIcon:d,ref:r,ownerState:c},u,{classes:U({},f,{root:f.switchBase})})),N.jsx(Jae,{className:f.track,ownerState:c})]})});function roe(e){return tt("MuiTab",e)}const tu=at("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),noe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],ioe=e=>{const{classes:t,textColor:r,fullWidth:n,wrapped:i,icon:a,label:o,selected:s,disabled:l}=e,u={root:["root",a&&o&&"labelIcon",`textColor${Le(r)}`,n&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return it(u,roe,t)},aoe=be(wc,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${Le(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>U({},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,[`& > .${tu.iconWrapper}`]:U({},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,[`&.${tu.selected}`]:{opacity:1},[`&.${tu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${tu.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${tu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${tu.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${tu.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)})),ooe=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiTab"}),{className:i,disabled:a=!1,disableFocusRipple:o=!1,fullWidth:s,icon:l,iconPosition:u="top",indicator:c,label:f,onChange:d,onClick:h,onFocus:v,selected:g,selectionFollowsFocus:y,textColor:x="inherit",value:S,wrapped:b=!1}=n,w=De(n,noe),T=U({},n,{disabled:a,disableFocusRipple:o,selected:g,icon:!!l,iconPosition:u,label:!!f,fullWidth:s,textColor:x,wrapped:b}),C=ioe(T),A=l&&f&&G.isValidElement(l)?G.cloneElement(l,{className:Ee(C.iconWrapper,l.props.className)}):l,k=P=>{!g&&d&&d(P,S),h&&h(P)},I=P=>{y&&!g&&d&&d(P,S),v&&v(P)};return N.jsxs(aoe,U({focusRipple:!o,className:Ee(C.root,i),ref:r,role:"tab","aria-selected":g,disabled:a,onClick:k,onFocus:I,ownerState:T,tabIndex:g?0:-1},w,{children:[u==="top"||u==="start"?N.jsxs(G.Fragment,{children:[A,f]}):N.jsxs(G.Fragment,{children:[f,A]}),c]}))}),U$=G.createContext();function soe(e){return tt("MuiTable",e)}at("MuiTable",["root","stickyHeader"]);const loe=["className","component","padding","size","stickyHeader"],uoe=e=>{const{classes:t,stickyHeader:r}=e;return it({root:["root",r&&"stickyHeader"]},soe,t)},coe=be("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>U({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":U({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),HL="table",Y$=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiTable"}),{className:i,component:a=HL,padding:o="normal",size:s="medium",stickyHeader:l=!1}=n,u=De(n,loe),c=U({},n,{component:a,padding:o,size:s,stickyHeader:l}),f=uoe(c),d=G.useMemo(()=>({padding:o,size:s,stickyHeader:l}),[o,s,l]);return N.jsx(U$.Provider,{value:d,children:N.jsx(coe,U({as:a,role:a===HL?null:"table",ref:r,className:Ee(f.root,i),ownerState:c},u))})}),Gx=G.createContext();function foe(e){return tt("MuiTableBody",e)}at("MuiTableBody",["root"]);const doe=["className","component"],hoe=e=>{const{classes:t}=e;return it({root:["root"]},foe,t)},poe=be("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),voe={variant:"body"},WL="tbody",q$=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiTableBody"}),{className:i,component:a=WL}=n,o=De(n,doe),s=U({},n,{component:a}),l=hoe(s);return N.jsx(Gx.Provider,{value:voe,children:N.jsx(poe,U({className:Ee(l.root,i),as:a,ref:r,role:a===WL?null:"rowgroup",ownerState:s},o))})});function goe(e){return tt("MuiTableCell",e)}const moe=at("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),yoe=["align","className","component","padding","scope","size","sortDirection","variant"],xoe=e=>{const{classes:t,variant:r,align:n,padding:i,size:a,stickyHeader:o}=e,s={root:["root",r,o&&"stickyHeader",n!=="inherit"&&`align${Le(n)}`,i!=="normal"&&`padding${Le(i)}`,`size${Le(a)}`]};return it(s,goe,t)},Soe=be("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${Le(r.size)}`],r.padding!=="normal"&&t[`padding${Le(r.padding)}`],r.align!=="inherit"&&t[`align${Le(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>U({},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"?Rv(Sr(e.palette.divider,1),.88):Dv(Sr(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",[`&.${moe.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})),zu=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:o,padding:s,scope:l,size:u,sortDirection:c,variant:f}=n,d=De(n,yoe),h=G.useContext(U$),v=G.useContext(Gx),g=v&&v.variant==="head";let y;o?y=o:y=g?"th":"td";let x=l;y==="td"?x=void 0:!x&&g&&(x="col");const S=f||v&&v.variant,b=U({},n,{align:i,component:y,padding:s||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:S==="head"&&h&&h.stickyHeader,variant:S}),w=xoe(b);let T=null;return c&&(T=c==="asc"?"ascending":"descending"),N.jsx(Soe,U({as:y,ref:r,className:Ee(w.root,a),"aria-sort":T,scope:x,ownerState:b},d))});function boe(e){return tt("MuiTableContainer",e)}at("MuiTableContainer",["root"]);const _oe=["className","component"],woe=e=>{const{classes:t}=e;return it({root:["root"]},boe,t)},Coe=be("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),X$=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=n,o=De(n,_oe),s=U({},n,{component:a}),l=woe(s);return N.jsx(Coe,U({ref:r,as:a,className:Ee(l.root,i),ownerState:s},o))});function Toe(e){return tt("MuiTableHead",e)}at("MuiTableHead",["root"]);const Aoe=["className","component"],Moe=e=>{const{classes:t}=e;return it({root:["root"]},Toe,t)},koe=be("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Ioe={variant:"head"},jL="thead",Z$=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiTableHead"}),{className:i,component:a=jL}=n,o=De(n,Aoe),s=U({},n,{component:a}),l=Moe(s);return N.jsx(Gx.Provider,{value:Ioe,children:N.jsx(koe,U({as:a,className:Ee(l.root,i),ref:r,role:a===jL?null:"rowgroup",ownerState:s},o))})});function Poe(e){return tt("MuiToolbar",e)}at("MuiToolbar",["root","gutters","regular","dense"]);const Doe=["className","component","disableGutters","variant"],Roe=e=>{const{classes:t,disableGutters:r,variant:n}=e;return it({root:["root",!r&&"gutters",n]},Poe,t)},Eoe=be("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})=>U({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),Loe=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:o=!1,variant:s="regular"}=n,l=De(n,Doe),u=U({},n,{component:a,disableGutters:o,variant:s}),c=Roe(u);return N.jsx(Eoe,U({as:a,className:Ee(c.root,i),ref:r,ownerState:u},l))}),Ooe=ci(N.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Noe=ci(N.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function zoe(e){return tt("MuiTableRow",e)}const UL=at("MuiTableRow",["root","selected","hover","head","footer"]),Boe=["className","component","hover","selected"],Foe=e=>{const{classes:t,selected:r,hover:n,head:i,footer:a}=e;return it({root:["root",r&&"selected",n&&"hover",i&&"head",a&&"footer"]},zoe,t)},Voe=be("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,[`&.${UL.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${UL.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Sr(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}))`:Sr(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),YL="tr",d1=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiTableRow"}),{className:i,component:a=YL,hover:o=!1,selected:s=!1}=n,l=De(n,Boe),u=G.useContext(Gx),c=U({},n,{component:a,hover:o,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=Foe(c);return N.jsx(Voe,U({as:a,ref:r,className:Ee(f.root,i),role:a===YL?null:"row",ownerState:c},l))});function $oe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Goe(e,t,r,n={},i=()=>{}){const{ease:a=$oe,duration:o=300}=n;let s=null;const l=t[e];let u=!1;const c=()=>{u=!0},f=d=>{if(u){i(new Error("Animation cancelled"));return}s===null&&(s=d);const h=Math.min(1,(d-s)/o);if(t[e]=a(h)*(r-l)+l,h>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(f)};return l===r?(i(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const Hoe=["onChange"],Woe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function joe(e){const{onChange:t}=e,r=De(e,Hoe),n=G.useRef(),i=G.useRef(null),a=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return Ra(()=>{const o=Md(()=>{const l=n.current;a(),l!==n.current&&t(n.current)}),s=ta(i.current);return s.addEventListener("resize",o),()=>{o.clear(),s.removeEventListener("resize",o)}},[t]),G.useEffect(()=>{a(),t(n.current)},[t]),N.jsx("div",U({style:Woe,ref:i},r))}function Uoe(e){return tt("MuiTabScrollButton",e)}const Yoe=at("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),qoe=["className","slots","slotProps","direction","orientation","disabled"],Xoe=e=>{const{classes:t,orientation:r,disabled:n}=e;return it({root:["root",r,n&&"disabled"]},Uoe,t)},Zoe=be(wc,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>U({width:40,flexShrink:0,opacity:.8,[`&.${Yoe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Koe=G.forwardRef(function(t,r){var n,i;const a=ot({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:l={},direction:u}=a,c=De(a,qoe),d=Io().direction==="rtl",h=U({isRtl:d},a),v=Xoe(h),g=(n=s.StartScrollButtonIcon)!=null?n:Ooe,y=(i=s.EndScrollButtonIcon)!=null?i:Noe,x=La({elementType:g,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h}),S=La({elementType:y,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:h});return N.jsx(Zoe,U({component:"div",className:Ee(v.root,o),ref:r,role:null,ownerState:h,tabIndex:null},c,{children:u==="left"?N.jsx(g,U({},x)):N.jsx(y,U({},S))}))});function Qoe(e){return tt("MuiTabs",e)}const W_=at("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Joe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],qL=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,XL=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,my=(e,t,r)=>{let n=!1,i=r(e,t);for(;i;){if(i===e.firstChild){if(n)return;n=!0}const a=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||a)i=r(e,i);else{i.focus();return}}},ese=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:l}=e;return it({root:["root",t&&"vertical"],scroller:["scroller",r&&"fixed",n&&"hideScrollbar",i&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",o&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[n&&"hideScrollbar"]},Qoe,l)},tse=be("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${W_.scrollButtons}`]:t.scrollButtons},{[`& .${W_.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>U({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${W_.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),rse=be("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})=>U({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"})),nse=be("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})=>U({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),ise=be("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>U({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})),ase=be(joe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),ZL={},ose=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiTabs"}),i=Io(),a=i.direction==="rtl",{"aria-label":o,"aria-labelledby":s,action:l,centered:u=!1,children:c,className:f,component:d="div",allowScrollButtonsMobile:h=!1,indicatorColor:v="primary",onChange:g,orientation:y="horizontal",ScrollButtonComponent:x=Koe,scrollButtons:S="auto",selectionFollowsFocus:b,slots:w={},slotProps:T={},TabIndicatorProps:C={},TabScrollButtonProps:A={},textColor:k="primary",value:I,variant:P="standard",visibleScrollbar:R=!1}=n,L=De(n,Joe),O=P==="scrollable",z=y==="vertical",F=z?"scrollTop":"scrollLeft",H=z?"top":"left",q=z?"bottom":"right",$=z?"clientHeight":"clientWidth",X=z?"height":"width",B=U({},n,{component:d,allowScrollButtonsMobile:h,indicatorColor:v,orientation:y,vertical:z,scrollButtons:S,textColor:k,variant:P,visibleScrollbar:R,fixed:!O,hideScrollbar:O&&!R,scrollableX:O&&!z,scrollableY:O&&z,centered:u&&!O,scrollButtonsHideMobile:!h}),Y=ese(B),Z=La({elementType:w.StartScrollButtonIcon,externalSlotProps:T.startScrollButtonIcon,ownerState:B}),j=La({elementType:w.EndScrollButtonIcon,externalSlotProps:T.endScrollButtonIcon,ownerState:B}),[re,ce]=G.useState(!1),[te,pe]=G.useState(ZL),[ae,he]=G.useState(!1),[ve,fe]=G.useState(!1),[ge,Re]=G.useState(!1),[Ie,$e]=G.useState({overflow:"hidden",scrollbarWidth:0}),dt=new Map,ct=G.useRef(null),bt=G.useRef(null),At=()=>{const ke=ct.current;let Ue;if(ke){const Nt=ke.getBoundingClientRect();Ue={clientWidth:ke.clientWidth,scrollLeft:ke.scrollLeft,scrollTop:ke.scrollTop,scrollLeftNormalized:iZ(ke,i.direction),scrollWidth:ke.scrollWidth,top:Nt.top,bottom:Nt.bottom,left:Nt.left,right:Nt.right}}let ht;if(ke&&I!==!1){const Nt=bt.current.children;if(Nt.length>0){const _r=Nt[dt.get(I)];ht=_r?_r.getBoundingClientRect():null}}return{tabsMeta:Ue,tabMeta:ht}},_t=Ta(()=>{const{tabsMeta:ke,tabMeta:Ue}=At();let ht=0,Nt;if(z)Nt="top",Ue&&ke&&(ht=Ue.top-ke.top+ke.scrollTop);else if(Nt=a?"right":"left",Ue&&ke){const Hn=a?ke.scrollLeftNormalized+ke.clientWidth-ke.scrollWidth:ke.scrollLeft;ht=(a?-1:1)*(Ue[Nt]-ke[Nt]+Hn)}const _r={[Nt]:ht,[X]:Ue?Ue[X]:0};if(isNaN(te[Nt])||isNaN(te[X]))pe(_r);else{const Hn=Math.abs(te[Nt]-_r[Nt]),di=Math.abs(te[X]-_r[X]);(Hn>=1||di>=1)&&pe(_r)}}),st=(ke,{animation:Ue=!0}={})=>{Ue?Goe(F,ct.current,ke,{duration:i.transitions.duration.standard}):ct.current[F]=ke},rr=ke=>{let Ue=ct.current[F];z?Ue+=ke:(Ue+=ke*(a?-1:1),Ue*=a&&VV()==="reverse"?-1:1),st(Ue)},Gt=()=>{const ke=ct.current[$];let Ue=0;const ht=Array.from(bt.current.children);for(let Nt=0;Nt<ht.length;Nt+=1){const _r=ht[Nt];if(Ue+_r[$]>ke){Nt===0&&(Ue=ke);break}Ue+=_r[$]}return Ue},It=()=>{rr(-1*Gt())},le=()=>{rr(Gt())},ye=G.useCallback(ke=>{$e({overflow:null,scrollbarWidth:ke})},[]),je=()=>{const ke={};ke.scrollbarSizeListener=O?N.jsx(ase,{onChange:ye,className:Ee(Y.scrollableX,Y.hideScrollbar)}):null;const ht=O&&(S==="auto"&&(ae||ve)||S===!0);return ke.scrollButtonStart=ht?N.jsx(x,U({slots:{StartScrollButtonIcon:w.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Z},orientation:y,direction:a?"right":"left",onClick:It,disabled:!ae},A,{className:Ee(Y.scrollButtons,A.className)})):null,ke.scrollButtonEnd=ht?N.jsx(x,U({slots:{EndScrollButtonIcon:w.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:j},orientation:y,direction:a?"left":"right",onClick:le,disabled:!ve},A,{className:Ee(Y.scrollButtons,A.className)})):null,ke},Ne=Ta(ke=>{const{tabsMeta:Ue,tabMeta:ht}=At();if(!(!ht||!Ue)){if(ht[H]<Ue[H]){const Nt=Ue[F]+(ht[H]-Ue[H]);st(Nt,{animation:ke})}else if(ht[q]>Ue[q]){const Nt=Ue[F]+(ht[q]-Ue[q]);st(Nt,{animation:ke})}}}),Me=Ta(()=>{O&&S!==!1&&Re(!ge)});G.useEffect(()=>{const ke=Md(()=>{ct.current&&_t()}),Ue=ta(ct.current);Ue.addEventListener("resize",ke);let ht;return typeof ResizeObserver<"u"&&(ht=new ResizeObserver(ke),Array.from(bt.current.children).forEach(Nt=>{ht.observe(Nt)})),()=>{ke.clear(),Ue.removeEventListener("resize",ke),ht&&ht.disconnect()}},[_t]),G.useEffect(()=>{const ke=Array.from(bt.current.children),Ue=ke.length;if(typeof IntersectionObserver<"u"&&Ue>0&&O&&S!==!1){const ht=ke[0],Nt=ke[Ue-1],_r={root:ct.current,threshold:.99},Hn=Lo=>{he(!Lo[0].isIntersecting)},di=new IntersectionObserver(Hn,_r);di.observe(ht);const ca=Lo=>{fe(!Lo[0].isIntersecting)},Ss=new IntersectionObserver(ca,_r);return Ss.observe(Nt),()=>{di.disconnect(),Ss.disconnect()}}},[O,S,ge,c==null?void 0:c.length]),G.useEffect(()=>{ce(!0)},[]),G.useEffect(()=>{_t()}),G.useEffect(()=>{Ne(ZL!==te)},[Ne,te]),G.useImperativeHandle(l,()=>({updateIndicator:_t,updateScrollButtons:Me}),[_t,Me]);const Pt=N.jsx(ise,U({},C,{className:Ee(Y.indicator,C.className),ownerState:B,style:U({},te,C.style)}));let sr=0;const ze=G.Children.map(c,ke=>{if(!G.isValidElement(ke))return null;const Ue=ke.props.value===void 0?sr:ke.props.value;dt.set(Ue,sr);const ht=Ue===I;return sr+=1,G.cloneElement(ke,U({fullWidth:P==="fullWidth",indicator:ht&&!re&&Pt,selected:ht,selectionFollowsFocus:b,onChange:g,textColor:k,value:Ue},sr===1&&I===!1&&!ke.props.tabIndex?{tabIndex:0}:{}))}),wt=ke=>{const Ue=bt.current,ht=ln(Ue).activeElement;if(ht.getAttribute("role")!=="tab")return;let _r=y==="horizontal"?"ArrowLeft":"ArrowUp",Hn=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&a&&(_r="ArrowRight",Hn="ArrowLeft"),ke.key){case _r:ke.preventDefault(),my(Ue,ht,XL);break;case Hn:ke.preventDefault(),my(Ue,ht,qL);break;case"Home":ke.preventDefault(),my(Ue,null,qL);break;case"End":ke.preventDefault(),my(Ue,null,XL);break}},Ht=je();return N.jsxs(tse,U({className:Ee(Y.root,f),ownerState:B,ref:r,as:d},L,{children:[Ht.scrollButtonStart,Ht.scrollbarSizeListener,N.jsxs(rse,{className:Y.scroller,ownerState:B,style:{overflow:Ie.overflow,[z?`margin${a?"Left":"Right"}`:"marginBottom"]:R?void 0:-Ie.scrollbarWidth},ref:ct,children:[N.jsx(nse,{"aria-label":o,"aria-labelledby":s,"aria-orientation":y==="vertical"?"vertical":null,className:Y.flexContainer,ownerState:B,onKeyDown:wt,ref:bt,role:"tablist",children:ze}),re&&Pt]}),Ht.scrollButtonEnd]}))});function sse(e){return tt("MuiTextField",e)}at("MuiTextField",["root"]);const lse=["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"],use={standard:QM,filled:ZM,outlined:$x},cse=e=>{const{classes:t}=e;return it({root:["root"]},sse,t)},fse=be(KM,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vd=G.forwardRef(function(t,r){const n=ot({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:o,className:s,color:l="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:d,fullWidth:h=!1,helperText:v,id:g,InputLabelProps:y,inputProps:x,InputProps:S,inputRef:b,label:w,maxRows:T,minRows:C,multiline:A=!1,name:k,onBlur:I,onChange:P,onFocus:R,placeholder:L,required:O=!1,rows:z,select:F=!1,SelectProps:H,type:q,value:$,variant:X="outlined"}=n,B=De(n,lse),Y=U({},n,{autoFocus:a,color:l,disabled:c,error:f,fullWidth:h,multiline:A,required:O,select:F,variant:X}),Z=cse(Y),j={};X==="outlined"&&(y&&typeof y.shrink<"u"&&(j.notched=y.shrink),j.label=w),F&&((!H||!H.native)&&(j.id=void 0),j["aria-describedby"]=void 0);const re=gM(g),ce=v&&re?`${re}-helper-text`:void 0,te=w&&re?`${re}-label`:void 0,pe=use[X],ae=N.jsx(pe,U({"aria-describedby":ce,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:h,multiline:A,name:k,rows:z,maxRows:T,minRows:C,type:q,value:$,id:re,inputRef:b,onBlur:I,onChange:P,onFocus:R,placeholder:L,inputProps:x},j,S));return N.jsxs(fse,U({className:Ee(Z.root,s),disabled:c,error:f,fullWidth:h,ref:r,required:O,color:l,variant:X,ownerState:Y},B,{children:[w!=null&&w!==""&&N.jsx(Vx,U({htmlFor:re,id:te},y,{children:w})),F?N.jsx(tk,U({"aria-describedby":ce,id:re,labelId:te,value:$,input:ae},H,{children:o})):ae,v&&N.jsx(rie,U({id:ce},d,{children:v}))]}))});function K$(){return N.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:[N.jsx("title",{children:"Locust"}),N.jsx("path",{d:"M36.694,18.975L48.943,6.626L47.341,5.012L35.092,17.361L36.694,18.975Z",fill:"rgb(184,238,75)"}),N.jsx("path",{d:"M40.954,20.093L53.03,8.017L51.416,6.403L39.34,18.479L40.954,20.093Z",fill:"rgb(184,238,75)"}),N.jsx("rect",{fill:"rgb(184,238,75)",height:"7.152",width:"2.459",x:"37.215",y:"17.411"}),N.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"}),N.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)"}),N.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 dse=ci(N.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"),hse=ci(N.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 Q$({name:e="password",label:t="Password",defaultValue:r,isRequired:n}){const[i,a]=G.useState(!1),o=()=>a(!i);return N.jsxs(KM,{variant:"outlined",children:[N.jsx(Vx,{htmlFor:`${t}-${e}-field`,children:t}),N.jsx($x,{defaultValue:r,endAdornment:N.jsx(Sie,{position:"end",children:N.jsx(Cc,{edge:"end",onClick:o,children:i?N.jsx(hse,{}):N.jsx(dse,{})})}),id:`${t}-${e}-field`,label:t,name:e,required:n,type:i?"text":"password"})]})}function rk({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,size:a="medium",sx:o,...s}){return N.jsxs(KM,{size:a,sx:o,children:[N.jsx(Vx,{htmlFor:t,shrink:!0,children:e}),N.jsx(tk,{...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,u)=>N.jsx("option",{value:l,children:l},`option-${l}-${u}`))})]})}function pse(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const vse=/[ \t\n\f\r]/g;function gse(e){return typeof e=="object"?e.type==="text"?KL(e.value):!1:KL(e)}function KL(e){return e.replace(vse,"")===""}class _g{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}_g.prototype.property={};_g.prototype.normal={};_g.prototype.space=null;function J$(e,t){const r={},n={};let i=-1;for(;++i<e.length;)Object.assign(r,e[i].property),Object.assign(n,e[i].normal);return new _g(r,n,t)}function r2(e){return e.toLowerCase()}class oa{constructor(t,r){this.property=t,this.attribute=r}}oa.prototype.space=null;oa.prototype.boolean=!1;oa.prototype.booleanish=!1;oa.prototype.overloadedBoolean=!1;oa.prototype.number=!1;oa.prototype.commaSeparated=!1;oa.prototype.spaceSeparated=!1;oa.prototype.commaOrSpaceSeparated=!1;oa.prototype.mustUseProperty=!1;oa.prototype.defined=!1;let mse=0;const Mt=Tc(),Nr=Tc(),e6=Tc(),Ce=Tc(),cr=Tc(),Xf=Tc(),yi=Tc();function Tc(){return 2**++mse}const n2=Object.freeze(Object.defineProperty({__proto__:null,boolean:Mt,booleanish:Nr,commaOrSpaceSeparated:yi,commaSeparated:Xf,number:Ce,overloadedBoolean:e6,spaceSeparated:cr},Symbol.toStringTag,{value:"Module"})),j_=Object.keys(n2);class nk extends oa{constructor(t,r,n,i){let a=-1;if(super(t,r),QL(this,"space",i),typeof n=="number")for(;++a<j_.length;){const o=j_[a];QL(this,j_[a],(n&n2[o])===n2[o])}}}nk.prototype.defined=!0;function QL(e,t,r){r&&(e[t]=r)}const yse={}.hasOwnProperty;function Id(e){const t={},r={};let n;for(n in e.properties)if(yse.call(e.properties,n)){const i=e.properties[n],a=new nk(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[r2(n)]=n,r[r2(a.attribute)]=n}return new _g(t,r,e.space)}const t6=Id({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),r6=Id({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function n6(e,t){return t in e?e[t]:t}function i6(e,t){return n6(e,t.toLowerCase())}const a6=Id({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:i6,properties:{xmlns:null,xmlnsXLink:null}}),o6=Id({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Nr,ariaAutoComplete:null,ariaBusy:Nr,ariaChecked:Nr,ariaColCount:Ce,ariaColIndex:Ce,ariaColSpan:Ce,ariaControls:cr,ariaCurrent:null,ariaDescribedBy:cr,ariaDetails:null,ariaDisabled:Nr,ariaDropEffect:cr,ariaErrorMessage:null,ariaExpanded:Nr,ariaFlowTo:cr,ariaGrabbed:Nr,ariaHasPopup:null,ariaHidden:Nr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:cr,ariaLevel:Ce,ariaLive:null,ariaModal:Nr,ariaMultiLine:Nr,ariaMultiSelectable:Nr,ariaOrientation:null,ariaOwns:cr,ariaPlaceholder:null,ariaPosInSet:Ce,ariaPressed:Nr,ariaReadOnly:Nr,ariaRelevant:null,ariaRequired:Nr,ariaRoleDescription:cr,ariaRowCount:Ce,ariaRowIndex:Ce,ariaRowSpan:Ce,ariaSelected:Nr,ariaSetSize:Ce,ariaSort:null,ariaValueMax:Ce,ariaValueMin:Ce,ariaValueNow:Ce,ariaValueText:null,role:null}}),xse=Id({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:i6,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Xf,acceptCharset:cr,accessKey:cr,action:null,allow:null,allowFullScreen:Mt,allowPaymentRequest:Mt,allowUserMedia:Mt,alt:null,as:null,async:Mt,autoCapitalize:null,autoComplete:cr,autoFocus:Mt,autoPlay:Mt,blocking:cr,capture:Mt,charSet:null,checked:Mt,cite:null,className:cr,cols:Ce,colSpan:null,content:null,contentEditable:Nr,controls:Mt,controlsList:cr,coords:Ce|Xf,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Mt,defer:Mt,dir:null,dirName:null,disabled:Mt,download:e6,draggable:Nr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Mt,formTarget:null,headers:cr,height:Ce,hidden:Mt,high:Ce,href:null,hrefLang:null,htmlFor:cr,httpEquiv:cr,id:null,imageSizes:null,imageSrcSet:null,inert:Mt,inputMode:null,integrity:null,is:null,isMap:Mt,itemId:null,itemProp:cr,itemRef:cr,itemScope:Mt,itemType:cr,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Mt,low:Ce,manifest:null,max:null,maxLength:Ce,media:null,method:null,min:null,minLength:Ce,multiple:Mt,muted:Mt,name:null,nonce:null,noModule:Mt,noValidate:Mt,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint: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:Mt,optimum:Ce,pattern:null,ping:cr,placeholder:null,playsInline:Mt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Mt,referrerPolicy:null,rel:cr,required:Mt,reversed:Mt,rows:Ce,rowSpan:Ce,sandbox:cr,scope:null,scoped:Mt,seamless:Mt,selected:Mt,shape:null,size:Ce,sizes:null,slot:null,span:Ce,spellCheck:Nr,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:Mt,useMap:null,value:Nr,width:Ce,wrap:null,align:null,aLink:null,archive:cr,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:Mt,declare:Mt,event:null,face:null,frame:null,frameBorder:null,hSpace:Ce,leftMargin:Ce,link:null,longDesc:null,lowSrc:null,marginHeight:Ce,marginWidth:Ce,noResize:Mt,noHref:Mt,noShade:Mt,noWrap:Mt,object:null,profile:null,prompt:null,rev:null,rightMargin:Ce,rules:null,scheme:null,scrolling:Nr,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:Mt,disableRemotePlayback:Mt,prefix:null,property:null,results:Ce,security:null,unselectable:null}}),Sse=Id({space:"svg",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"},transform:n6,properties:{about:yi,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:cr,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:Mt,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:Xf,g2:Xf,glyphName:Xf,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:yi,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:cr,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ce,pointsAtY:Ce,pointsAtZ:Ce,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:yi,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:yi,rev:yi,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:yi,requiredFeatures:yi,requiredFonts:yi,requiredFormats:yi,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:yi,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:yi,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:yi,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}}),bse=/^data[-\w.:]+$/i,JL=/-[a-z]/g,_se=/[A-Z]/g;function wse(e,t){const r=r2(t);let n=t,i=oa;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&bse.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(JL,Tse);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!JL.test(a)){let o=a.replace(_se,Cse);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=nk}return new i(n,t)}function Cse(e){return"-"+e.toLowerCase()}function Tse(e){return e.charAt(1).toUpperCase()}const Ase={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"},Mse=J$([r6,t6,a6,o6,xse],"html"),s6=J$([r6,t6,a6,o6,Sse],"svg");function kse(e){return e.join(" ").trim()}var yy={exports:{}},U_,eO;function Ise(){if(eO)return U_;eO=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
|
143
|
-
`,u="/",c="*",f="",d="comment",h="declaration";U_=function(g,y){if(typeof g!="string")throw new TypeError("First argument must be a string");if(!g)return[];y=y||{};var x=1,S=1;function b(O){var z=O.match(t);z&&(x+=z.length);var F=O.lastIndexOf(l);S=~F?O.length-F:S+O.length}function w(){var O={line:x,column:S};return function(z){return z.position=new T(O),k(),z}}function T(O){this.start=O,this.end={line:x,column:S},this.source=y.source}T.prototype.content=g;function C(O){var z=new Error(y.source+":"+x+":"+S+": "+O);if(z.reason=O,z.filename=y.source,z.line=x,z.column=S,z.source=g,!y.silent)throw z}function A(O){var z=O.exec(g);if(z){var F=z[0];return b(F),g=g.slice(F.length),z}}function k(){A(r)}function I(O){var z;for(O=O||[];z=P();)z!==!1&&O.push(z);return O}function P(){var O=w();if(!(u!=g.charAt(0)||c!=g.charAt(1))){for(var z=2;f!=g.charAt(z)&&(c!=g.charAt(z)||u!=g.charAt(z+1));)++z;if(z+=2,f===g.charAt(z-1))return C("End of comment missing");var F=g.slice(2,z-2);return S+=2,b(F),g=g.slice(z),S+=2,O({type:d,comment:F})}}function R(){var O=w(),z=A(n);if(z){if(P(),!A(i))return C("property missing ':'");var F=A(a),H=O({type:h,property:v(z[0].replace(e,f)),value:F?v(F[0].replace(e,f)):f});return A(o),H}}function L(){var O=[];I(O);for(var z;z=R();)z!==!1&&(O.push(z),I(O));return O}return k(),L()};function v(g){return g?g.replace(s,f):f}return U_}var tO;function Pse(){if(tO)return yy.exports;tO=1;var e=Ise();function t(r,n){var i=null;if(!r||typeof r!="string")return i;for(var a,o=e(r),s=typeof n=="function",l,u,c=0,f=o.length;c<f;c++)a=o[c],l=a.property,u=a.value,s?n(l,u,a):u&&(i||(i={}),i[l]=u);return i}return yy.exports=t,yy.exports.default=t,yy.exports}var Dse=Pse();const Rse=ki(Dse),l6=u6("end"),ik=u6("start");function u6(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 Ese(e){const t=ik(e),r=l6(e);if(t&&r)return{start:t,end:r}}function nv(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?rO(e.position):"start"in e||"end"in e?rO(e):"line"in e||"column"in e?i2(e):""}function i2(e){return nO(e&&e.line)+":"+nO(e&&e.column)}function rO(e){return i2(e&&e.start)+"-"+i2(e&&e.end)}function nO(e){return e&&typeof e=="number"?e:1}class $n extends Error{constructor(t,r,n){super(),typeof r=="string"&&(n=r,r=void 0);let i="",a={},o=!1;if(r&&("line"in r&&"column"in r?a={place:r}:"start"in r&&"end"in r?a={place:r}:"type"in r?a={ancestors:[r],place:r.position}:a={...r}),typeof t=="string"?i=t:!a.cause&&t&&(o=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof n=="string"){const l=n.indexOf(":");l===-1?a.ruleId=n:(a.source=n.slice(0,l),a.ruleId=n.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.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=nv(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}$n.prototype.file="";$n.prototype.name="";$n.prototype.reason="";$n.prototype.message="";$n.prototype.stack="";$n.prototype.column=void 0;$n.prototype.line=void 0;$n.prototype.ancestors=void 0;$n.prototype.cause=void 0;$n.prototype.fatal=void 0;$n.prototype.place=void 0;$n.prototype.ruleId=void 0;$n.prototype.source=void 0;const ak={}.hasOwnProperty,Lse=new Map,Ose=/[A-Z]/g,Nse=/-([a-z])/g,zse=new Set(["table","tbody","thead","tfoot","tr"]),Bse=new Set(["td","th"]);function Fse(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=$se(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=Vse(r,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:n,elementAttributeNameCase:t.elementAttributeNameCase||"react",filePath:r,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?s6:Mse,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=c6(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function c6(e,t,r){if(t.type==="element"||t.type==="root"){const n=e.schema;let i=n;t.type==="element"&&t.tagName.toLowerCase()==="svg"&&n.space==="html"&&(i=s6,e.schema=i),e.ancestors.push(t);let a=Gse(e,t);const o=Hse(e,e.ancestors);let s=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(a&&zse.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!gse(l):!0})),ak.call(e.components,t.tagName)){const l=t.tagName;s=e.components[l],typeof s!="string"&&s!==e.Fragment&&e.passNode&&(o.node=t)}else s=t.tagName;if(a.length>0){const l=a.length>1?a:a[0];l&&(o.children=l)}return e.schema=n,e.create(t,s,o,r)}if(t.type==="text")return t.value}function Vse(e,t,r){return n;function n(i,a,o,s){const u=Array.isArray(o.children)?r:t;return s?u(a,o,s):u(a,o)}}function $se(e,t){return r;function r(n,i,a,o){const s=Array.isArray(a.children),l=ik(n);return t(i,a,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function Gse(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:Lse;for(;++n<t.children.length;){const a=t.children[n];let o;if(e.passKeys&&a.type==="element"){const l=i.get(a.tagName)||0;o=a.tagName+"-"+l,i.set(a.tagName,l+1)}const s=c6(e,a,o);s!==void 0&&r.push(s)}return r}function Hse(e,t){const r=t[t.length-1],n={};let i;if("properties"in r&&r.properties){let a;for(i in r.properties)if(i!=="children"&&ak.call(r.properties,i)){const o=Wse(e,t,i,r.properties[i]);if(o){const[s,l]=o;e.tableCellAlignToStyle&&s==="align"&&typeof l=="string"&&Bse.has(r.tagName)?a=l:n[s]=l}}if(a){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=a}}return n}function Wse(e,t,r,n){const i=wse(e.schema,r);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?pse(n):kse(n)),i.property==="style"){let a=typeof n=="object"?n:jse(e,t,String(n));return e.stylePropertyNameCase==="css"&&(a=Use(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&i.space?Ase[i.property]||i.property:i.attribute,n]}}function jse(e,t,r){const n={};try{Rse(r,i)}catch(a){if(!e.ignoreInvalidStyle){const o=a,s=new $n("Cannot parse `style` attribute",{ancestors:t,cause:o,source:"hast-util-to-jsx-runtime",ruleId:"style"});throw s.file=e.filePath||void 0,s.url="https://github.com/syntax-tree/hast-util-to-jsx-runtime#cannot-parse-style-attribute",s}}return n;function i(a,o){let s=a;s.slice(0,2)!=="--"&&(s.slice(0,4)==="-ms-"&&(s="ms-"+s.slice(4)),s=s.replace(Nse,qse)),n[s]=o}}function Use(e){const t={};let r;for(r in e)ak.call(e,r)&&(t[Yse(r)]=e[r]);return t}function Yse(e){let t=e.replace(Ose,Xse);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function qse(e,t){return t.toUpperCase()}function Xse(e){return"-"+e.toLowerCase()}const Y_={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"]},Zse={};function Kse(e,t){const r=Zse,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return f6(e,n,i)}function f6(e,t,r){if(Qse(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 iO(e.children,t,r)}return Array.isArray(e)?iO(e,t,r):""}function iO(e,t,r){const n=[];let i=-1;for(;++i<e.length;)n[i]=f6(e[i],t,r);return n.join("")}function Qse(e){return!!(e&&typeof e=="object")}const aO=document.createElement("i");function ok(e){const t="&"+e+";";aO.innerHTML=t;const r=aO.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function wo(e,t,r,n){const i=e.length;let a=0,o;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,r=r>0?r:0,n.length<1e4)o=Array.from(n),o.unshift(t,r),e.splice(...o);else for(r&&e.splice(t,r);a<n.length;)o=n.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function Yi(e,t){return e.length>0?(wo(e,e.length,0,t),e):t}const oO={}.hasOwnProperty;function Jse(e){const t={};let r=-1;for(;++r<e.length;)ele(t,e[r]);return t}function ele(e,t){let r;for(r in t){const i=(oO.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let o;if(a)for(o in a){oO.call(i,o)||(i[o]=[]);const s=a[o];tle(i[o],Array.isArray(s)?s:s?[s]:[])}}}function tle(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);wo(e,0,0,n)}function d6(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.fromCharCode(r)}function Zf(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const rle=Rl(new RegExp("\\p{P}","u")),ao=Rl(/[A-Za-z]/),Si=Rl(/[\dA-Za-z]/),nle=Rl(/[#-'*+\--9=?A-Z^-~]/);function a2(e){return e!==null&&(e<32||e===127)}const o2=Rl(/\d/),ile=Rl(/[\dA-Fa-f]/),h6=Rl(/[!-/:-@[-`{-~]/);function mt(e){return e!==null&&e<-2}function oi(e){return e!==null&&(e<0||e===32)}function Zt(e){return e===-2||e===-1||e===32}function ale(e){return h6(e)||rle(e)}const ole=Rl(/\s/);function Rl(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Pd(e){const t=[];let r=-1,n=0,i=0;for(;++r<e.length;){const a=e.charCodeAt(r);let o="";if(a===37&&Si(e.charCodeAt(r+1))&&Si(e.charCodeAt(r+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){const s=e.charCodeAt(r+1);a<56320&&s>56319&&s<57344?(o=String.fromCharCode(a,s),i=1):o="�"}else o=String.fromCharCode(a);o&&(t.push(e.slice(n,r),encodeURIComponent(o)),n=r+i+1,o=""),i&&(r+=i,i=0)}return t.join("")+e.slice(n)}function fr(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return Zt(l)?(e.enter(r),s(l)):t(l)}function s(l){return Zt(l)&&a++<i?(e.consume(l),s):(e.exit(r),t(l))}}const sle={tokenize:lle};function lle(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"),fr(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),a(s)}function a(s){const l=e.enter("chunkText",{contentType:"text",previous:r});return r&&(r.next=l),r=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return mt(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),o)}}const ule={tokenize:cle},sO={tokenize:fle};function cle(e){const t=this,r=[];let n=0,i,a,o;return s;function s(b){if(n<r.length){const w=r[n];return t.containerState=w[1],e.attempt(w[0].continuation,l,u)(b)}return u(b)}function l(b){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&S();const w=t.events.length;let T=w,C;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){C=t.events[T][1].end;break}x(n);let A=w;for(;A<t.events.length;)t.events[A][1].end=Object.assign({},C),A++;return wo(t.events,T+1,0,t.events.slice(w)),t.events.length=A,u(b)}return s(b)}function u(b){if(n===r.length){if(!i)return d(b);if(i.currentConstruct&&i.currentConstruct.concrete)return v(b);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(sO,c,f)(b)}function c(b){return i&&S(),x(n),d(b)}function f(b){return t.parser.lazy[t.now().line]=n!==r.length,o=t.now().offset,v(b)}function d(b){return t.containerState={},e.attempt(sO,h,v)(b)}function h(b){return n++,r.push([t.currentConstruct,t.containerState]),d(b)}function v(b){if(b===null){i&&S(),x(0),e.consume(b);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:a,_tokenizer:i}),g(b)}function g(b){if(b===null){y(e.exit("chunkFlow"),!0),x(0),e.consume(b);return}return mt(b)?(e.consume(b),y(e.exit("chunkFlow")),n=0,t.interrupt=void 0,s):(e.consume(b),g)}function y(b,w){const T=t.sliceStream(b);if(w&&T.push(null),b.previous=a,a&&(a.next=b),a=b,i.defineSkip(b.start),i.write(T),t.parser.lazy[b.start.line]){let C=i.events.length;for(;C--;)if(i.events[C][1].start.offset<o&&(!i.events[C][1].end||i.events[C][1].end.offset>o))return;const A=t.events.length;let k=A,I,P;for(;k--;)if(t.events[k][0]==="exit"&&t.events[k][1].type==="chunkFlow"){if(I){P=t.events[k][1].end;break}I=!0}for(x(n),C=A;C<t.events.length;)t.events[C][1].end=Object.assign({},P),C++;wo(t.events,k+1,0,t.events.slice(A)),t.events.length=C}}function x(b){let w=r.length;for(;w-- >b;){const T=r[w];t.containerState=T[1],T[0].exit.call(t,e)}r.length=b}function S(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function fle(e,t,r){return fr(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function lO(e){if(e===null||oi(e)||ole(e))return 1;if(ale(e))return 2}function sk(e,t,r){const n=[];let i=-1;for(;++i<e.length;){const a=e[i].resolveAll;a&&!n.includes(a)&&(t=a(t,r),n.push(a))}return t}const s2={name:"attention",tokenize:hle,resolveAll:dle};function dle(e,t){let r=-1,n,i,a,o,s,l,u,c;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 f=Object.assign({},e[n][1].end),d=Object.assign({},e[r][1].start);uO(f,-l),uO(d,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},s={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[r][1].start),end:d},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[r][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[n][1].end=Object.assign({},o.start),e[r][1].start=Object.assign({},s.end),u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=Yi(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=Yi(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=Yi(u,sk(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=Yi(u,[["exit",a,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[r][1].end.offset-e[r][1].start.offset?(c=2,u=Yi(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,wo(e,n-1,r-n+3,u),r=n+u.length-c-2;break}}for(r=-1;++r<e.length;)e[r][1].type==="attentionSequence"&&(e[r][1].type="data");return e}function hle(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=lO(n);let a;return o;function o(l){return a=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===a)return e.consume(l),s;const u=e.exit("attentionSequence"),c=lO(l),f=!c||c===2&&i||r.includes(l),d=!i||i===2&&c||r.includes(n);return u._open=!!(a===42?f:f&&(i||!d)),u._close=!!(a===42?d:d&&(c||!f)),t(l)}}function uO(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const ple={name:"autolink",tokenize:vle};function vle(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"),a}function a(h){return ao(h)?(e.consume(h),o):u(h)}function o(h){return h===43||h===45||h===46||Si(h)?(n=1,s(h)):u(h)}function s(h){return h===58?(e.consume(h),n=0,l):(h===43||h===45||h===46||Si(h))&&n++<32?(e.consume(h),s):(n=0,u(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||a2(h)?r(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):nle(h)?(e.consume(h),u):r(h)}function c(h){return Si(h)?f(h):r(h)}function f(h){return h===46?(e.consume(h),n=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):d(h)}function d(h){if((h===45||Si(h))&&n++<63){const v=h===45?d:f;return e.consume(h),v}return r(h)}}const Hx={tokenize:gle,partial:!0};function gle(e,t,r){return n;function n(a){return Zt(a)?fr(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||mt(a)?t(a):r(a)}}const p6={name:"blockQuote",tokenize:mle,continuation:{tokenize:yle},exit:xle};function mle(e,t,r){const n=this;return i;function i(o){if(o===62){const s=n.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),a}return r(o)}function a(o){return Zt(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function yle(e,t,r){const n=this;return i;function i(o){return Zt(o)?fr(e,a,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(p6,t,r)(o)}}function xle(e){e.exit("blockQuote")}const v6={name:"characterEscape",tokenize:Sle};function Sle(e,t,r){return n;function n(a){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(a),e.exit("escapeMarker"),i}function i(a){return h6(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const g6={name:"characterReference",tokenize:ble};function ble(e,t,r){const n=this;let i=0,a,o;return s;function s(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),a=31,o=Si,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),a=6,o=ile,c):(e.enter("characterReferenceValue"),a=7,o=o2,c(f))}function c(f){if(f===59&&i){const d=e.exit("characterReferenceValue");return o===Si&&!ok(n.sliceSerialize(d))?r(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(f)&&i++<a?(e.consume(f),c):r(f)}}const cO={tokenize:wle,partial:!0},fO={name:"codeFenced",tokenize:_le,concrete:!0};function _le(e,t,r){const n=this,i={tokenize:T,partial:!0};let a=0,o=0,s;return l;function l(C){return u(C)}function u(C){const A=n.events[n.events.length-1];return a=A&&A[1].type==="linePrefix"?A[2].sliceSerialize(A[1],!0).length:0,s=C,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(C)}function c(C){return C===s?(o++,e.consume(C),c):o<3?r(C):(e.exit("codeFencedFenceSequence"),Zt(C)?fr(e,f,"whitespace")(C):f(C))}function f(C){return C===null||mt(C)?(e.exit("codeFencedFence"),n.interrupt?t(C):e.check(cO,g,w)(C)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(C))}function d(C){return C===null||mt(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(C)):Zt(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),fr(e,h,"whitespace")(C)):C===96&&C===s?r(C):(e.consume(C),d)}function h(C){return C===null||mt(C)?f(C):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(C))}function v(C){return C===null||mt(C)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(C)):C===96&&C===s?r(C):(e.consume(C),v)}function g(C){return e.attempt(i,w,y)(C)}function y(C){return e.enter("lineEnding"),e.consume(C),e.exit("lineEnding"),x}function x(C){return a>0&&Zt(C)?fr(e,S,"linePrefix",a+1)(C):S(C)}function S(C){return C===null||mt(C)?e.check(cO,g,w)(C):(e.enter("codeFlowValue"),b(C))}function b(C){return C===null||mt(C)?(e.exit("codeFlowValue"),S(C)):(e.consume(C),b)}function w(C){return e.exit("codeFenced"),t(C)}function T(C,A,k){let I=0;return P;function P(F){return C.enter("lineEnding"),C.consume(F),C.exit("lineEnding"),R}function R(F){return C.enter("codeFencedFence"),Zt(F)?fr(C,L,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):L(F)}function L(F){return F===s?(C.enter("codeFencedFenceSequence"),O(F)):k(F)}function O(F){return F===s?(I++,C.consume(F),O):I>=o?(C.exit("codeFencedFenceSequence"),Zt(F)?fr(C,z,"whitespace")(F):z(F)):k(F)}function z(F){return F===null||mt(F)?(C.exit("codeFencedFence"),A(F)):k(F)}}}function wle(e,t,r){const n=this;return i;function i(o){return o===null?r(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}const q_={name:"codeIndented",tokenize:Tle},Cle={tokenize:Ale,partial:!0};function Tle(e,t,r){const n=this;return i;function i(u){return e.enter("codeIndented"),fr(e,a,"linePrefix",5)(u)}function a(u){const c=n.events[n.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):r(u)}function o(u){return u===null?l(u):mt(u)?e.attempt(Cle,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||mt(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function Ale(e,t,r){const n=this;return i;function i(o){return n.parser.lazy[n.now().line]?r(o):mt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):fr(e,a,"linePrefix",5)(o)}function a(o){const s=n.events[n.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):mt(o)?i(o):r(o)}}const Mle={name:"codeText",tokenize:Ple,resolve:kle,previous:Ile};function kle(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 Ile(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Ple(e,t,r){let n=0,i,a;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),s(f)}function s(f){return f===96?(e.consume(f),n++,s):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?r(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(a=e.enter("codeTextSequence"),i=0,c(f)):mt(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||mt(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),i++,c):i===n?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(a.type="codeTextData",u(f))}}function m6(e){const t={};let r=-1,n,i,a,o,s,l,u;for(;++r<e.length;){for(;r in t;)r=t[r];if(n=e[r],r&&n[1].type==="chunkFlow"&&e[r-1][1].type==="listItemPrefix"&&(l=n[1]._tokenizer.events,a=0,a<l.length&&l[a][1].type==="lineEndingBlank"&&(a+=2),a<l.length&&l[a][1].type==="content"))for(;++a<l.length&&l[a][1].type!=="content";)l[a][1].type==="chunkText"&&(l[a][1]._isInFirstContentOfListItem=!0,a++);if(n[0]==="enter")n[1].contentType&&(Object.assign(t,Dle(e,r)),r=t[r],u=!0);else if(n[1]._container){for(a=r,i=void 0;a--&&(o=e[a],o[1].type==="lineEnding"||o[1].type==="lineEndingBlank");)o[0]==="enter"&&(i&&(e[i][1].type="lineEndingBlank"),o[1].type="lineEnding",i=a);i&&(n[1].end=Object.assign({},e[i][1].start),s=e.slice(i,r),s.unshift(n),wo(e,i,r-i+1,s))}}return!u}function Dle(e,t){const r=e[t][1],n=e[t][2];let i=t-1;const a=[],o=r._tokenizer||n.parser[r.contentType](r.start),s=o.events,l=[],u={};let c,f,d=-1,h=r,v=0,g=0;const y=[g];for(;h;){for(;e[++i][1]!==h;);a.push(i),h._tokenizer||(c=n.sliceStream(h),h.next||c.push(null),f&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=r;++d<s.length;)s[d][0]==="exit"&&s[d-1][0]==="enter"&&s[d][1].type===s[d-1][1].type&&s[d][1].start.line!==s[d][1].end.line&&(g=d+1,y.push(g),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):y.pop(),d=y.length;d--;){const x=s.slice(y[d],y[d+1]),S=a.pop();l.unshift([S,S+x.length-1]),wo(e,S,2,x)}for(d=-1;++d<l.length;)u[v+l[d][0]]=v+l[d][1],v+=l[d][1]-l[d][0]-1;return u}const Rle={tokenize:Ole,resolve:Lle},Ele={tokenize:Nle,partial:!0};function Lle(e){return m6(e),e}function Ole(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?a(s):mt(s)?e.check(Ele,o,a)(s):(e.consume(s),i)}function a(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),r.next=e.enter("chunkContent",{contentType:"content",previous:r}),r=r.next,i}}function Nle(e,t,r){const n=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),fr(e,a,"linePrefix")}function a(o){if(o===null||mt(o))return r(o);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(o):e.interrupt(n.parser.constructs.flow,r,t)(o)}}function y6(e,t,r,n,i,a,o,s,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(x){return x===60?(e.enter(n),e.enter(i),e.enter(a),e.consume(x),e.exit(a),d):x===null||x===32||x===41||a2(x)?r(x):(e.enter(n),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),g(x))}function d(x){return x===62?(e.enter(a),e.consume(x),e.exit(a),e.exit(i),e.exit(n),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),h(x))}function h(x){return x===62?(e.exit("chunkString"),e.exit(s),d(x)):x===null||x===60||mt(x)?r(x):(e.consume(x),x===92?v:h)}function v(x){return x===60||x===62||x===92?(e.consume(x),h):h(x)}function g(x){return!c&&(x===null||x===41||oi(x))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(n),t(x)):c<u&&x===40?(e.consume(x),c++,g):x===41?(e.consume(x),c--,g):x===null||x===32||x===40||a2(x)?r(x):(e.consume(x),x===92?y:g)}function y(x){return x===40||x===41||x===92?(e.consume(x),g):g(x)}}function x6(e,t,r,n,i,a){const o=this;let s=0,l;return u;function u(h){return e.enter(n),e.enter(i),e.consume(h),e.exit(i),e.enter(a),c}function c(h){return s>999||h===null||h===91||h===93&&!l||h===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?r(h):h===93?(e.exit(a),e.enter(i),e.consume(h),e.exit(i),e.exit(n),t):mt(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||mt(h)||s++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!Zt(h)),h===92?d:f)}function d(h){return h===91||h===92||h===93?(e.consume(h),s++,f):f(h)}}function S6(e,t,r,n,i,a){let o;return s;function s(d){return d===34||d===39||d===40?(e.enter(n),e.enter(i),e.consume(d),e.exit(i),o=d===40?41:d,l):r(d)}function l(d){return d===o?(e.enter(i),e.consume(d),e.exit(i),e.exit(n),t):(e.enter(a),u(d))}function u(d){return d===o?(e.exit(a),l(o)):d===null?r(d):mt(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),fr(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||mt(d)?(e.exit("chunkString"),u(d)):(e.consume(d),d===92?f:c)}function f(d){return d===o||d===92?(e.consume(d),c):c(d)}}function iv(e,t){let r;return n;function n(i){return mt(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):Zt(i)?fr(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const zle={name:"definition",tokenize:Fle},Ble={tokenize:Vle,partial:!0};function Fle(e,t,r){const n=this;let i;return a;function a(h){return e.enter("definition"),o(h)}function o(h){return x6.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function s(h){return i=Zf(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 oi(h)?iv(e,u)(h):u(h)}function u(h){return y6(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(Ble,f,f)(h)}function f(h){return Zt(h)?fr(e,d,"whitespace")(h):d(h)}function d(h){return h===null||mt(h)?(e.exit("definition"),n.parser.defined.push(i),t(h)):r(h)}}function Vle(e,t,r){return n;function n(s){return oi(s)?iv(e,i)(s):r(s)}function i(s){return S6(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return Zt(s)?fr(e,o,"whitespace")(s):o(s)}function o(s){return s===null||mt(s)?t(s):r(s)}}const $le={name:"hardBreakEscape",tokenize:Gle};function Gle(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return mt(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const Hle={name:"headingAtx",tokenize:jle,resolve:Wle};function Wle(e,t){let r=e.length-2,n=3,i,a;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},a={type:"chunkText",start:e[n][1].start,end:e[r][1].end,contentType:"text"},wo(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function jle(e,t,r){let n=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&n++<6?(e.consume(c),o):c===null||oi(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||mt(c)?(e.exit("atxHeading"),t(c)):Zt(c)?fr(e,s,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),s(c))}function u(c){return c===null||c===35||oi(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const Ule=["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"],dO=["pre","script","style","textarea"],Yle={name:"htmlFlow",tokenize:Kle,resolveTo:Zle,concrete:!0},qle={tokenize:Jle,partial:!0},Xle={tokenize:Qle,partial:!0};function Zle(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 Kle(e,t,r){const n=this;let i,a,o,s,l;return u;function u(j){return c(j)}function c(j){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(j),f}function f(j){return j===33?(e.consume(j),d):j===47?(e.consume(j),a=!0,g):j===63?(e.consume(j),i=3,n.interrupt?t:B):ao(j)?(e.consume(j),o=String.fromCharCode(j),y):r(j)}function d(j){return j===45?(e.consume(j),i=2,h):j===91?(e.consume(j),i=5,s=0,v):ao(j)?(e.consume(j),i=4,n.interrupt?t:B):r(j)}function h(j){return j===45?(e.consume(j),n.interrupt?t:B):r(j)}function v(j){const re="CDATA[";return j===re.charCodeAt(s++)?(e.consume(j),s===re.length?n.interrupt?t:L:v):r(j)}function g(j){return ao(j)?(e.consume(j),o=String.fromCharCode(j),y):r(j)}function y(j){if(j===null||j===47||j===62||oi(j)){const re=j===47,ce=o.toLowerCase();return!re&&!a&&dO.includes(ce)?(i=1,n.interrupt?t(j):L(j)):Ule.includes(o.toLowerCase())?(i=6,re?(e.consume(j),x):n.interrupt?t(j):L(j)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(j):a?S(j):b(j))}return j===45||Si(j)?(e.consume(j),o+=String.fromCharCode(j),y):r(j)}function x(j){return j===62?(e.consume(j),n.interrupt?t:L):r(j)}function S(j){return Zt(j)?(e.consume(j),S):P(j)}function b(j){return j===47?(e.consume(j),P):j===58||j===95||ao(j)?(e.consume(j),w):Zt(j)?(e.consume(j),b):P(j)}function w(j){return j===45||j===46||j===58||j===95||Si(j)?(e.consume(j),w):T(j)}function T(j){return j===61?(e.consume(j),C):Zt(j)?(e.consume(j),T):b(j)}function C(j){return j===null||j===60||j===61||j===62||j===96?r(j):j===34||j===39?(e.consume(j),l=j,A):Zt(j)?(e.consume(j),C):k(j)}function A(j){return j===l?(e.consume(j),l=null,I):j===null||mt(j)?r(j):(e.consume(j),A)}function k(j){return j===null||j===34||j===39||j===47||j===60||j===61||j===62||j===96||oi(j)?T(j):(e.consume(j),k)}function I(j){return j===47||j===62||Zt(j)?b(j):r(j)}function P(j){return j===62?(e.consume(j),R):r(j)}function R(j){return j===null||mt(j)?L(j):Zt(j)?(e.consume(j),R):r(j)}function L(j){return j===45&&i===2?(e.consume(j),H):j===60&&i===1?(e.consume(j),q):j===62&&i===4?(e.consume(j),Y):j===63&&i===3?(e.consume(j),B):j===93&&i===5?(e.consume(j),X):mt(j)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(qle,Z,O)(j)):j===null||mt(j)?(e.exit("htmlFlowData"),O(j)):(e.consume(j),L)}function O(j){return e.check(Xle,z,Z)(j)}function z(j){return e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),F}function F(j){return j===null||mt(j)?O(j):(e.enter("htmlFlowData"),L(j))}function H(j){return j===45?(e.consume(j),B):L(j)}function q(j){return j===47?(e.consume(j),o="",$):L(j)}function $(j){if(j===62){const re=o.toLowerCase();return dO.includes(re)?(e.consume(j),Y):L(j)}return ao(j)&&o.length<8?(e.consume(j),o+=String.fromCharCode(j),$):L(j)}function X(j){return j===93?(e.consume(j),B):L(j)}function B(j){return j===62?(e.consume(j),Y):j===45&&i===2?(e.consume(j),B):L(j)}function Y(j){return j===null||mt(j)?(e.exit("htmlFlowData"),Z(j)):(e.consume(j),Y)}function Z(j){return e.exit("htmlFlow"),t(j)}}function Qle(e,t,r){const n=this;return i;function i(o){return mt(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):r(o)}function a(o){return n.parser.lazy[n.now().line]?r(o):t(o)}}function Jle(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Hx,t,r)}}const eue={name:"htmlText",tokenize:tue};function tue(e,t,r){const n=this;let i,a,o;return s;function s(B){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(B),l}function l(B){return B===33?(e.consume(B),u):B===47?(e.consume(B),T):B===63?(e.consume(B),b):ao(B)?(e.consume(B),k):r(B)}function u(B){return B===45?(e.consume(B),c):B===91?(e.consume(B),a=0,v):ao(B)?(e.consume(B),S):r(B)}function c(B){return B===45?(e.consume(B),h):r(B)}function f(B){return B===null?r(B):B===45?(e.consume(B),d):mt(B)?(o=f,q(B)):(e.consume(B),f)}function d(B){return B===45?(e.consume(B),h):f(B)}function h(B){return B===62?H(B):B===45?d(B):f(B)}function v(B){const Y="CDATA[";return B===Y.charCodeAt(a++)?(e.consume(B),a===Y.length?g:v):r(B)}function g(B){return B===null?r(B):B===93?(e.consume(B),y):mt(B)?(o=g,q(B)):(e.consume(B),g)}function y(B){return B===93?(e.consume(B),x):g(B)}function x(B){return B===62?H(B):B===93?(e.consume(B),x):g(B)}function S(B){return B===null||B===62?H(B):mt(B)?(o=S,q(B)):(e.consume(B),S)}function b(B){return B===null?r(B):B===63?(e.consume(B),w):mt(B)?(o=b,q(B)):(e.consume(B),b)}function w(B){return B===62?H(B):b(B)}function T(B){return ao(B)?(e.consume(B),C):r(B)}function C(B){return B===45||Si(B)?(e.consume(B),C):A(B)}function A(B){return mt(B)?(o=A,q(B)):Zt(B)?(e.consume(B),A):H(B)}function k(B){return B===45||Si(B)?(e.consume(B),k):B===47||B===62||oi(B)?I(B):r(B)}function I(B){return B===47?(e.consume(B),H):B===58||B===95||ao(B)?(e.consume(B),P):mt(B)?(o=I,q(B)):Zt(B)?(e.consume(B),I):H(B)}function P(B){return B===45||B===46||B===58||B===95||Si(B)?(e.consume(B),P):R(B)}function R(B){return B===61?(e.consume(B),L):mt(B)?(o=R,q(B)):Zt(B)?(e.consume(B),R):I(B)}function L(B){return B===null||B===60||B===61||B===62||B===96?r(B):B===34||B===39?(e.consume(B),i=B,O):mt(B)?(o=L,q(B)):Zt(B)?(e.consume(B),L):(e.consume(B),z)}function O(B){return B===i?(e.consume(B),i=void 0,F):B===null?r(B):mt(B)?(o=O,q(B)):(e.consume(B),O)}function z(B){return B===null||B===34||B===39||B===60||B===61||B===96?r(B):B===47||B===62||oi(B)?I(B):(e.consume(B),z)}function F(B){return B===47||B===62||oi(B)?I(B):r(B)}function H(B){return B===62?(e.consume(B),e.exit("htmlTextData"),e.exit("htmlText"),t):r(B)}function q(B){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),$}function $(B){return Zt(B)?fr(e,X,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):X(B)}function X(B){return e.enter("htmlTextData"),o(B)}}const lk={name:"labelEnd",tokenize:sue,resolveTo:oue,resolveAll:aue},rue={tokenize:lue},nue={tokenize:uue},iue={tokenize:cue};function aue(e){let t=-1;for(;++t<e.length;){const r=e[t][1];(r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd")&&(e.splice(t+1,r.type==="labelImage"?4:2),r.type="data",t++)}return e}function oue(e,t){let r=e.length,n=0,i,a,o,s;for(;r--;)if(i=e[r][1],a){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[r][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(o){if(e[r][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(a=r,i.type!=="labelLink")){n=2;break}}else i.type==="labelEnd"&&(o=r);const l={type:e[a][1].type==="labelLink"?"link":"image",start:Object.assign({},e[a][1].start),end:Object.assign({},e[e.length-1][1].end)},u={type:"label",start:Object.assign({},e[a][1].start),end:Object.assign({},e[o][1].end)},c={type:"labelText",start:Object.assign({},e[a+n+2][1].end),end:Object.assign({},e[o-2][1].start)};return s=[["enter",l,t],["enter",u,t]],s=Yi(s,e.slice(a+1,a+n+3)),s=Yi(s,[["enter",c,t]]),s=Yi(s,sk(t.parser.constructs.insideSpan.null,e.slice(a+n+4,o-3),t)),s=Yi(s,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),s=Yi(s,e.slice(o+1)),s=Yi(s,[["exit",l,t]]),wo(e,a,e.length,s),e}function sue(e,t,r){const n=this;let i=n.events.length,a,o;for(;i--;)if((n.events[i][1].type==="labelImage"||n.events[i][1].type==="labelLink")&&!n.events[i][1]._balanced){a=n.events[i][1];break}return s;function s(d){return a?a._inactive?f(d):(o=n.parser.defined.includes(Zf(n.sliceSerialize({start:a.end,end:n.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),l):r(d)}function l(d){return d===40?e.attempt(rue,c,o?c:f)(d):d===91?e.attempt(nue,c,o?u:f)(d):o?c(d):f(d)}function u(d){return e.attempt(iue,c,f)(d)}function c(d){return t(d)}function f(d){return a._balanced=!0,r(d)}}function lue(e,t,r){return n;function n(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),i}function i(f){return oi(f)?iv(e,a)(f):a(f)}function a(f){return f===41?c(f):y6(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return oi(f)?iv(e,l)(f):c(f)}function s(f){return r(f)}function l(f){return f===34||f===39||f===40?S6(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return oi(f)?iv(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):r(f)}}function uue(e,t,r){const n=this;return i;function i(s){return x6.call(n,e,a,o,"reference","referenceMarker","referenceString")(s)}function a(s){return n.parser.defined.includes(Zf(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(s):r(s)}function o(s){return r(s)}}function cue(e,t,r){return n;function n(a){return e.enter("reference"),e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),i}function i(a){return a===93?(e.enter("referenceMarker"),e.consume(a),e.exit("referenceMarker"),e.exit("reference"),t):r(a)}}const fue={name:"labelStartImage",tokenize:due,resolveAll:lk.resolveAll};function due(e,t,r){const n=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),a}function a(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):r(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(s):t(s)}}const hue={name:"labelStartLink",tokenize:pue,resolveAll:lk.resolveAll};function pue(e,t,r){const n=this;return i;function i(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),a}function a(o){return o===94&&"_hiddenFootnoteSupport"in n.parser.constructs?r(o):t(o)}}const X_={name:"lineEnding",tokenize:vue};function vue(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),fr(e,t,"linePrefix")}}const D0={name:"thematicBreak",tokenize:gue};function gue(e,t,r){let n=0,i;return a;function a(u){return e.enter("thematicBreak"),o(u)}function o(u){return i=u,s(u)}function s(u){return u===i?(e.enter("thematicBreakSequence"),l(u)):n>=3&&(u===null||mt(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===i?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),Zt(u)?fr(e,s,"whitespace")(u):s(u))}}const Qn={name:"list",tokenize:xue,continuation:{tokenize:Sue},exit:_ue},mue={tokenize:wue,partial:!0},yue={tokenize:bue,partial:!0};function xue(e,t,r){const n=this,i=n.events[n.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(h){const v=n.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!n.containerState.marker||h===n.containerState.marker:o2(h)){if(n.containerState.type||(n.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(D0,r,u)(h):u(h);if(!n.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return r(h)}function l(h){return o2(h)&&++o<10?(e.consume(h),l):(!n.interrupt||o<2)&&(n.containerState.marker?h===n.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):r(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||h,e.check(Hx,n.interrupt?r:c,e.attempt(mue,d,f))}function c(h){return n.containerState.initialBlankLine=!0,a++,d(h)}function f(h){return Zt(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),d):r(h)}function d(h){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function Sue(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(Hx,i,a);function i(s){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,fr(e,t,"listItemIndent",n.containerState.size+1)(s)}function a(s){return n.containerState.furtherBlankLines||!Zt(s)?(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,o(s)):(n.containerState.furtherBlankLines=void 0,n.containerState.initialBlankLine=void 0,e.attempt(yue,t,o)(s))}function o(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,fr(e,e.attempt(Qn,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function bue(e,t,r){const n=this;return fr(e,i,"listItemIndent",n.containerState.size+1);function i(a){const o=n.events[n.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===n.containerState.size?t(a):r(a)}}function _ue(e){e.exit(this.containerState.type)}function wue(e,t,r){const n=this;return fr(e,i,"listItemPrefixWhitespace",n.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const o=n.events[n.events.length-1];return!Zt(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const hO={name:"setextUnderline",tokenize:Tue,resolveTo:Cue};function Cue(e,t){let r=e.length,n,i,a;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),!a&&e[r][1].type==="definition"&&(a=r);const o={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",o,t]),e.splice(a+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[a][1].end)):e[n][1]=o,e.push(["exit",o,t]),e}function Tue(e,t,r){const n=this;let i;return a;function a(u){let c=n.events.length,f;for(;c--;)if(n.events[c][1].type!=="lineEnding"&&n.events[c][1].type!=="linePrefix"&&n.events[c][1].type!=="content"){f=n.events[c][1].type==="paragraph";break}return!n.parser.lazy[n.now().line]&&(n.interrupt||f)?(e.enter("setextHeadingLine"),i=u,o(u)):r(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===i?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),Zt(u)?fr(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||mt(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const Aue={tokenize:Mue};function Mue(e){const t=this,r=e.attempt(Hx,n,e.attempt(this.parser.constructs.flowInitial,i,fr(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Rle,i)),"linePrefix")));return r;function n(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,r}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,r}}const kue={resolveAll:_6()},Iue=b6("string"),Pue=b6("text");function b6(e){return{tokenize:t,resolveAll:_6(e==="text"?Due:void 0)};function t(r){const n=this,i=this.parser.constructs[e],a=r.attempt(i,o,s);return o;function o(c){return u(c)?a(c):s(c)}function s(c){if(c===null){r.consume(c);return}return r.enter("data"),r.consume(c),l}function l(c){return u(c)?(r.exit("data"),a(c)):(r.consume(c),l)}function u(c){if(c===null)return!0;const f=i[c];let d=-1;if(f)for(;++d<f.length;){const h=f[d];if(!h.previous||h.previous.call(n,n.previous))return!0}return!1}}}function _6(e){return t;function t(r,n){let i=-1,a;for(;++i<=r.length;)a===void 0?r[i]&&r[i][1].type==="data"&&(a=i,i++):(!r[i]||r[i][1].type!=="data")&&(i!==a+2&&(r[a][1].end=r[i-1][1].end,r.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(r,n):r}}function Due(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 a=i.length,o=-1,s=0,l;for(;a--;){const u=i[a];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(u===-2)l=!0,s++;else if(u!==-1){a++;break}}if(s){const u={type:r===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{line:n.end.line,column:n.end.column-s,offset:n.end.offset-s,_index:n.start._index+a,_bufferIndex:a?o:n.start._bufferIndex+o},end:Object.assign({},n.end)};n.end=Object.assign({},u.start),n.start.offset===n.end.offset?Object.assign(n,u):(e.splice(r,0,["enter",u,t],["exit",u,t]),r+=2)}r++}return e}function Rue(e,t,r){let n=Object.assign(r?Object.assign({},r):{line:1,column:1,offset:0},{_index:0,_bufferIndex:-1});const i={},a=[];let o=[],s=[];const l={consume:S,enter:b,exit:w,attempt:A(T),check:A(C),interrupt:A(C,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:h,sliceSerialize:d,now:v,defineSkip:g,write:f};let c=t.tokenize.call(u,l);return t.resolveAll&&a.push(t),u;function f(R){return o=Yi(o,R),y(),o[o.length-1]!==null?[]:(k(t,0),u.events=sk(a,u.events,u),u.events)}function d(R,L){return Lue(h(R),L)}function h(R){return Eue(o,R)}function v(){const{line:R,column:L,offset:O,_index:z,_bufferIndex:F}=n;return{line:R,column:L,offset:O,_index:z,_bufferIndex:F}}function g(R){i[R.line]=R.column,P()}function y(){let R;for(;n._index<o.length;){const L=o[n._index];if(typeof L=="string")for(R=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===R&&n._bufferIndex<L.length;)x(L.charCodeAt(n._bufferIndex));else x(L)}}function x(R){c=c(R)}function S(R){mt(R)?(n.line++,n.column=1,n.offset+=R===-3?2:1,P()):R!==-1&&(n.column++,n.offset++),n._bufferIndex<0?n._index++:(n._bufferIndex++,n._bufferIndex===o[n._index].length&&(n._bufferIndex=-1,n._index++)),u.previous=R}function b(R,L){const O=L||{};return O.type=R,O.start=v(),u.events.push(["enter",O,u]),s.push(O),O}function w(R){const L=s.pop();return L.end=v(),u.events.push(["exit",L,u]),L}function T(R,L){k(R,L.from)}function C(R,L){L.restore()}function A(R,L){return O;function O(z,F,H){let q,$,X,B;return Array.isArray(z)?Z(z):"tokenize"in z?Z([z]):Y(z);function Y(te){return pe;function pe(ae){const he=ae!==null&&te[ae],ve=ae!==null&&te.null,fe=[...Array.isArray(he)?he:he?[he]:[],...Array.isArray(ve)?ve:ve?[ve]:[]];return Z(fe)(ae)}}function Z(te){return q=te,$=0,te.length===0?H:j(te[$])}function j(te){return pe;function pe(ae){return B=I(),X=te,te.partial||(u.currentConstruct=te),te.name&&u.parser.constructs.disable.null.includes(te.name)?ce():te.tokenize.call(L?Object.assign(Object.create(u),L):u,l,re,ce)(ae)}}function re(te){return R(X,B),F}function ce(te){return B.restore(),++$<q.length?j(q[$]):H}}}function k(R,L){R.resolveAll&&!a.includes(R)&&a.push(R),R.resolve&&wo(u.events,L,u.events.length-L,R.resolve(u.events.slice(L),u)),R.resolveTo&&(u.events=R.resolveTo(u.events,u))}function I(){const R=v(),L=u.previous,O=u.currentConstruct,z=u.events.length,F=Array.from(s);return{restore:H,from:z};function H(){n=R,u.previous=L,u.currentConstruct=O,u.events.length=z,s=F,P()}}function P(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function Eue(e,t){const r=t.start._index,n=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex;let o;if(r===i)o=[e[r].slice(n,a)];else{if(o=e.slice(r,i),n>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(n):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Lue(e,t){let r=-1;const n=[];let i;for(;++r<e.length;){const a=e[r];let o;if(typeof a=="string")o=a;else switch(a){case-5:{o="\r";break}case-4:{o=`
|
144
|
-
`;break}case-3:{o=`\r
|
145
|
-
`;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&i)continue;o=" ";break}default:o=String.fromCharCode(a)}i=a===-2,n.push(o)}return n.join("")}const Oue={42:Qn,43:Qn,45:Qn,48:Qn,49:Qn,50:Qn,51:Qn,52:Qn,53:Qn,54:Qn,55:Qn,56:Qn,57:Qn,62:p6},Nue={91:zle},zue={[-2]:q_,[-1]:q_,32:q_},Bue={35:Hle,42:D0,45:[hO,D0],60:Yle,61:hO,95:D0,96:fO,126:fO},Fue={38:g6,92:v6},Vue={[-5]:X_,[-4]:X_,[-3]:X_,33:fue,38:g6,42:s2,60:[ple,eue],91:hue,92:[$le,v6],93:lk,95:s2,96:Mle},$ue={null:[s2,kue]},Gue={null:[42,95]},Hue={null:[]},Wue=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Gue,contentInitial:Nue,disable:Hue,document:Oue,flow:Bue,flowInitial:zue,insideSpan:$ue,string:Fue,text:Vue},Symbol.toStringTag,{value:"Module"}));function jue(e){const r=Jse([Wue,...(e||{}).extensions||[]]),n={defined:[],lazy:{},constructs:r,content:i(sle),document:i(ule),flow:i(Aue),string:i(Iue),text:i(Pue)};return n;function i(a){return o;function o(s){return Rue(n,a,s)}}}function Uue(e){for(;!m6(e););return e}const pO=/[\0\t\n\r]/g;function Yue(){let e=1,t="",r=!0,n;return i;function i(a,o,s){const l=[];let u,c,f,d,h;for(a=t+(typeof a=="string"?a.toString():new TextDecoder(o||void 0).decode(a)),f=0,t="",r&&(a.charCodeAt(0)===65279&&f++,r=void 0);f<a.length;){if(pO.lastIndex=f,u=pO.exec(a),d=u&&u.index!==void 0?u.index:a.length,h=a.charCodeAt(d),!u){t=a.slice(f);break}if(h===10&&f===d&&n)l.push(-3),n=void 0;else switch(n&&(l.push(-5),n=void 0),f<d&&(l.push(a.slice(f,d)),e+=d-f),h){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:n=!0,e=1}f=d+1}return s&&(n&&l.push(-5),t&&l.push(t),l.push(null)),l}}const que=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Xue(e){return e.replace(que,Zue)}function Zue(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),a=i===120||i===88;return d6(r.slice(a?2:1),a?16:10)}return ok(r)||e}const w6={}.hasOwnProperty;function Kue(e,t,r){return typeof t!="string"&&(r=t,t=void 0),Que(r)(Uue(jue(r).document().write(Yue()(e,t,!0))))}function Que(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(bt),autolinkProtocol:I,autolinkEmail:I,atxHeading:a(Ie),blockQuote:a(he),characterEscape:I,characterReference:I,codeFenced:a(ve),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(ve,o),codeText:a(fe,o),codeTextData:I,data:I,codeFlowValue:I,definition:a(ge),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(Re),hardBreakEscape:a($e),hardBreakTrailing:a($e),htmlFlow:a(dt,o),htmlFlowData:I,htmlText:a(dt,o),htmlTextData:I,image:a(ct),label:o,link:a(bt),listItem:a(_t),listItemValue:d,listOrdered:a(At,f),listUnordered:a(At),paragraph:a(st),reference:j,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(Ie),strong:a(rr),thematicBreak:a(It)},exit:{atxHeading:l(),atxHeadingSequence:T,autolink:l(),autolinkEmail:ae,autolinkProtocol:pe,blockQuote:l(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:ce,characterReferenceMarkerNumeric:ce,characterReferenceValue:te,codeFenced:l(y),codeFencedFence:g,codeFencedFenceInfo:h,codeFencedFenceMeta:v,codeFlowValue:P,codeIndented:l(x),codeText:l(F),codeTextData:P,data:P,definition:l(),definitionDestinationString:w,definitionLabelString:S,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(L),hardBreakTrailing:l(L),htmlFlow:l(O),htmlFlowData:P,htmlText:l(z),htmlTextData:P,image:l(q),label:X,labelText:$,lineEnding:R,link:l(H),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:re,resourceDestinationString:B,resourceTitleString:Y,resource:Z,setextHeading:l(k),setextHeadingLineSequence:A,setextHeadingText:C,strong:l(),thematicBreak:l()}};C6(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(le){let ye={type:"root",children:[]};const je={stack:[ye],tokenStack:[],config:t,enter:s,exit:u,buffer:o,resume:c,data:r},Ne=[];let Me=-1;for(;++Me<le.length;)if(le[Me][1].type==="listOrdered"||le[Me][1].type==="listUnordered")if(le[Me][0]==="enter")Ne.push(Me);else{const Pt=Ne.pop();Me=i(le,Pt,Me)}for(Me=-1;++Me<le.length;){const Pt=t[le[Me][0]];w6.call(Pt,le[Me][1].type)&&Pt[le[Me][1].type].call(Object.assign({sliceSerialize:le[Me][2].sliceSerialize},je),le[Me][1])}if(je.tokenStack.length>0){const Pt=je.tokenStack[je.tokenStack.length-1];(Pt[1]||vO).call(je,void 0,Pt[0])}for(ye.position={start:$s(le.length>0?le[0][1].start:{line:1,column:1,offset:0}),end:$s(le.length>0?le[le.length-2][1].end:{line:1,column:1,offset:0})},Me=-1;++Me<t.transforms.length;)ye=t.transforms[Me](ye)||ye;return ye}function i(le,ye,je){let Ne=ye-1,Me=-1,Pt=!1,sr,ze,wt,Ht;for(;++Ne<=je;){const ke=le[Ne];switch(ke[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ke[0]==="enter"?Me++:Me--,Ht=void 0;break}case"lineEndingBlank":{ke[0]==="enter"&&(sr&&!Ht&&!Me&&!wt&&(wt=Ne),Ht=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Ht=void 0}if(!Me&&ke[0]==="enter"&&ke[1].type==="listItemPrefix"||Me===-1&&ke[0]==="exit"&&(ke[1].type==="listUnordered"||ke[1].type==="listOrdered")){if(sr){let Ue=Ne;for(ze=void 0;Ue--;){const ht=le[Ue];if(ht[1].type==="lineEnding"||ht[1].type==="lineEndingBlank"){if(ht[0]==="exit")continue;ze&&(le[ze][1].type="lineEndingBlank",Pt=!0),ht[1].type="lineEnding",ze=Ue}else if(!(ht[1].type==="linePrefix"||ht[1].type==="blockQuotePrefix"||ht[1].type==="blockQuotePrefixWhitespace"||ht[1].type==="blockQuoteMarker"||ht[1].type==="listItemIndent"))break}wt&&(!ze||wt<ze)&&(sr._spread=!0),sr.end=Object.assign({},ze?le[ze][1].start:ke[1].end),le.splice(ze||Ne,0,["exit",sr,ke[2]]),Ne++,je++}if(ke[1].type==="listItemPrefix"){const Ue={type:"listItem",_spread:!1,start:Object.assign({},ke[1].start),end:void 0};sr=Ue,le.splice(Ne,0,["enter",Ue,ke[2]]),Ne++,je++,wt=void 0,Ht=!0}}}return le[ye][1]._spread=Pt,je}function a(le,ye){return je;function je(Ne){s.call(this,le(Ne),Ne),ye&&ye.call(this,Ne)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(le,ye,je){this.stack[this.stack.length-1].children.push(le),this.stack.push(le),this.tokenStack.push([ye,je]),le.position={start:$s(ye.start),end:void 0}}function l(le){return ye;function ye(je){le&&le.call(this,je),u.call(this,je)}}function u(le,ye){const je=this.stack.pop(),Ne=this.tokenStack.pop();if(Ne)Ne[0].type!==le.type&&(ye?ye.call(this,le,Ne[0]):(Ne[1]||vO).call(this,le,Ne[0]));else throw new Error("Cannot close `"+le.type+"` ("+nv({start:le.start,end:le.end})+"): it’s not open");je.position.end=$s(le.end)}function c(){return Kse(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(le){if(this.data.expectingFirstListItemValue){const ye=this.stack[this.stack.length-2];ye.start=Number.parseInt(this.sliceSerialize(le),10),this.data.expectingFirstListItemValue=void 0}}function h(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.lang=le}function v(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.meta=le}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.value=le.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.value=le.replace(/(\r?\n|\r)$/g,"")}function S(le){const ye=this.resume(),je=this.stack[this.stack.length-1];je.label=ye,je.identifier=Zf(this.sliceSerialize(le)).toLowerCase()}function b(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.title=le}function w(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.url=le}function T(le){const ye=this.stack[this.stack.length-1];if(!ye.depth){const je=this.sliceSerialize(le).length;ye.depth=je}}function C(){this.data.setextHeadingSlurpLineEnding=!0}function A(le){const ye=this.stack[this.stack.length-1];ye.depth=this.sliceSerialize(le).codePointAt(0)===61?1:2}function k(){this.data.setextHeadingSlurpLineEnding=void 0}function I(le){const je=this.stack[this.stack.length-1].children;let Ne=je[je.length-1];(!Ne||Ne.type!=="text")&&(Ne=Gt(),Ne.position={start:$s(le.start),end:void 0},je.push(Ne)),this.stack.push(Ne)}function P(le){const ye=this.stack.pop();ye.value+=this.sliceSerialize(le),ye.position.end=$s(le.end)}function R(le){const ye=this.stack[this.stack.length-1];if(this.data.atHardBreak){const je=ye.children[ye.children.length-1];je.position.end=$s(le.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(ye.type)&&(I.call(this,le),P.call(this,le))}function L(){this.data.atHardBreak=!0}function O(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.value=le}function z(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.value=le}function F(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.value=le}function H(){const le=this.stack[this.stack.length-1];if(this.data.inReference){const ye=this.data.referenceType||"shortcut";le.type+="Reference",le.referenceType=ye,delete le.url,delete le.title}else delete le.identifier,delete le.label;this.data.referenceType=void 0}function q(){const le=this.stack[this.stack.length-1];if(this.data.inReference){const ye=this.data.referenceType||"shortcut";le.type+="Reference",le.referenceType=ye,delete le.url,delete le.title}else delete le.identifier,delete le.label;this.data.referenceType=void 0}function $(le){const ye=this.sliceSerialize(le),je=this.stack[this.stack.length-2];je.label=Xue(ye),je.identifier=Zf(ye).toLowerCase()}function X(){const le=this.stack[this.stack.length-1],ye=this.resume(),je=this.stack[this.stack.length-1];if(this.data.inReference=!0,je.type==="link"){const Ne=le.children;je.children=Ne}else je.alt=ye}function B(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.url=le}function Y(){const le=this.resume(),ye=this.stack[this.stack.length-1];ye.title=le}function Z(){this.data.inReference=void 0}function j(){this.data.referenceType="collapsed"}function re(le){const ye=this.resume(),je=this.stack[this.stack.length-1];je.label=ye,je.identifier=Zf(this.sliceSerialize(le)).toLowerCase(),this.data.referenceType="full"}function ce(le){this.data.characterReferenceType=le.type}function te(le){const ye=this.sliceSerialize(le),je=this.data.characterReferenceType;let Ne;je?(Ne=d6(ye,je==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):Ne=ok(ye);const Me=this.stack.pop();Me.value+=Ne,Me.position.end=$s(le.end)}function pe(le){P.call(this,le);const ye=this.stack[this.stack.length-1];ye.url=this.sliceSerialize(le)}function ae(le){P.call(this,le);const ye=this.stack[this.stack.length-1];ye.url="mailto:"+this.sliceSerialize(le)}function he(){return{type:"blockquote",children:[]}}function ve(){return{type:"code",lang:null,meta:null,value:""}}function fe(){return{type:"inlineCode",value:""}}function ge(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Re(){return{type:"emphasis",children:[]}}function Ie(){return{type:"heading",depth:0,children:[]}}function $e(){return{type:"break"}}function dt(){return{type:"html",value:""}}function ct(){return{type:"image",title:null,url:"",alt:null}}function bt(){return{type:"link",title:null,url:"",children:[]}}function At(le){return{type:"list",ordered:le.type==="listOrdered",start:null,spread:le._spread,children:[]}}function _t(le){return{type:"listItem",spread:le._spread,checked:null,children:[]}}function st(){return{type:"paragraph",children:[]}}function rr(){return{type:"strong",children:[]}}function Gt(){return{type:"text",value:""}}function It(){return{type:"thematicBreak"}}}function $s(e){return{line:e.line,column:e.column,offset:e.offset}}function C6(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?C6(e,n):Jue(e,n)}}function Jue(e,t){let r;for(r in t)if(w6.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 vO(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+nv({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+nv({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+nv({start:t.start,end:t.end})+") is still open")}function ece(e){const t=this;t.parser=r;function r(n){return Kue(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function tce(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 rce(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
|
146
|
-
`}]}function nce(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 ice(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function ace(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function oce(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),i=Pd(n.toLowerCase()),a=e.footnoteOrder.indexOf(n);let o,s=e.footnoteCounts.get(n);s===void 0?(s=0,e.footnoteOrder.push(n),o=e.footnoteOrder.length):o=a+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(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function sce(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 lce(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function T6(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),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=n:i.push({type:"text",value:n}),i}function uce(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return T6(e,t);const i={src:Pd(n.url||""),alt:t.alt};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function cce(e,t){const r={src:Pd(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 fce(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 dce(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return T6(e,t);const i={href:Pd(n.url||"")};n.title!==null&&n.title!==void 0&&(i.title=n.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function hce(e,t){const r={href:Pd(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 pce(e,t,r){const n=e.all(t),i=r?vce(r):A6(t),a={},o=[];if(typeof t.checked=="boolean"){const c=n[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},n.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let s=-1;for(;++s<n.length;){const c=n[s];(i||s!==0||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
|
148
|
-
`}),c.type==="element"&&c.tagName==="p"&&!i?o.push(...c.children):o.push(c)}const l=n[n.length-1];l&&(i||l.type!=="element"||l.tagName!=="p")&&o.push({type:"text",value:`
|
149
|
-
`});const u={type:"element",tagName:"li",properties:a,children:o};return e.patch(t,u),e.applyData(t,u)}function vce(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=A6(r[n])}return t}function A6(e){const t=e.spread;return t??e.children.length>1}function gce(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 o=n[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){r.className=["contains-task-list"];break}}const a={type:"element",tagName:t.ordered?"ol":"ul",properties:r,children:e.wrap(n,!0)};return e.patch(t,a),e.applyData(t,a)}function mce(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function yce(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function xce(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Sce(e,t){const r=e.all(t),n=r.shift(),i=[];if(n){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([n],!0)};e.patch(t.children[0],o),i.push(o)}if(r.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(r,!0)},s=ik(t.children[1]),l=l6(t.children[t.children.length-1]);s&&l&&(o.position={start:s,end:l}),i.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function bce(e,t,r){const n=r?r.children:void 0,a=(n?n.indexOf(t):1)===0?"th":"td",o=r&&r.type==="table"?r.align:void 0,s=o?o.length:t.children.length;let l=-1;const u=[];for(;++l<s;){const f=t.children[l],d={},h=o?o[l]:void 0;h&&(d.align=h);let v={type:"element",tagName:a,properties:d,children:[]};f&&(v.children=e.all(f),e.patch(f,v),v=e.applyData(f,v)),u.push(v)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function _ce(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const gO=9,mO=32;function wce(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),i=0;const a=[];for(;n;)a.push(yO(t.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return a.push(yO(t.slice(i),i>0,!1)),a.join("")}function yO(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===gO||a===mO;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===gO||a===mO;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function Cce(e,t){const r={type:"text",value:wce(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function Tce(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const Ace={blockquote:tce,break:rce,code:nce,delete:ice,emphasis:ace,footnoteReference:oce,heading:sce,html:lce,imageReference:uce,image:cce,inlineCode:fce,linkReference:dce,link:hce,listItem:pce,list:gce,paragraph:mce,root:yce,strong:xce,table:Sce,tableCell:_ce,tableRow:bce,text:Cce,thematicBreak:Tce,toml:xy,yaml:xy,definition:xy,footnoteDefinition:xy};function xy(){}const M6=-1,Wx=0,h1=1,p1=2,uk=3,ck=4,fk=5,dk=6,k6=7,I6=8,xO=typeof self=="object"?self:globalThis,Mce=(e,t)=>{const r=(i,a)=>(e.set(a,i),i),n=i=>{if(e.has(i))return e.get(i);const[a,o]=t[i];switch(a){case Wx:case M6:return r(o,i);case h1:{const s=r([],i);for(const l of o)s.push(n(l));return s}case p1:{const s=r({},i);for(const[l,u]of o)s[n(l)]=n(u);return s}case uk:return r(new Date(o),i);case ck:{const{source:s,flags:l}=o;return r(new RegExp(s,l),i)}case fk:{const s=r(new Map,i);for(const[l,u]of o)s.set(n(l),n(u));return s}case dk:{const s=r(new Set,i);for(const l of o)s.add(n(l));return s}case k6:{const{name:s,message:l}=o;return r(new xO[s](l),i)}case I6:return r(BigInt(o),i);case"BigInt":return r(Object(BigInt(o)),i)}return r(new xO[a](o),i)};return n},SO=e=>Mce(new Map,e)(0),uf="",{toString:kce}={},{keys:Ice}=Object,jh=e=>{const t=typeof e;if(t!=="object"||!e)return[Wx,t];const r=kce.call(e).slice(8,-1);switch(r){case"Array":return[h1,uf];case"Object":return[p1,uf];case"Date":return[uk,uf];case"RegExp":return[ck,uf];case"Map":return[fk,uf];case"Set":return[dk,uf]}return r.includes("Array")?[h1,r]:r.includes("Error")?[k6,r]:[p1,r]},Sy=([e,t])=>e===Wx&&(t==="function"||t==="symbol"),Pce=(e,t,r,n)=>{const i=(o,s)=>{const l=n.push(o)-1;return r.set(s,l),l},a=o=>{if(r.has(o))return r.get(o);let[s,l]=jh(o);switch(s){case Wx:{let c=o;switch(l){case"bigint":s=I6,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([M6],o)}return i([s,c],o)}case h1:{if(l)return i([l,[...o]],o);const c=[],f=i([s,c],o);for(const d of o)c.push(a(d));return f}case p1:{if(l)switch(l){case"BigInt":return i([l,o.toString()],o);case"Boolean":case"Number":case"String":return i([l,o.valueOf()],o)}if(t&&"toJSON"in o)return a(o.toJSON());const c=[],f=i([s,c],o);for(const d of Ice(o))(e||!Sy(jh(o[d])))&&c.push([a(d),a(o[d])]);return f}case uk:return i([s,o.toISOString()],o);case ck:{const{source:c,flags:f}=o;return i([s,{source:c,flags:f}],o)}case fk:{const c=[],f=i([s,c],o);for(const[d,h]of o)(e||!(Sy(jh(d))||Sy(jh(h))))&&c.push([a(d),a(h)]);return f}case dk:{const c=[],f=i([s,c],o);for(const d of o)(e||!Sy(jh(d)))&&c.push(a(d));return f}}const{message:u}=o;return i([s,{name:l,message:u}],o)};return a},bO=(e,{json:t,lossy:r}={})=>{const n=[];return Pce(!(t||r),!!t,new Map,n)(e),n},v1=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?SO(bO(e,t)):structuredClone(e):(e,t)=>SO(bO(e,t));function Dce(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 Rce(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Ece(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||Dce,n=e.options.footnoteBackLabel||Rce,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),f=String(u.identifier).toUpperCase(),d=Pd(f.toLowerCase());let h=0;const v=[],g=e.footnoteCounts.get(f);for(;g!==void 0&&++h<=g;){v.length>0&&v.push({type:"text",value:" "});let S=typeof r=="string"?r:r(l,h);typeof S=="string"&&(S={type:"text",value:S}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,h),className:["data-footnote-backref"]},children:Array.isArray(S)?S:[S]})}const y=c[c.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(...v)}else c.push(...v);const x={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(c,!0)};e.patch(u,x),s.push(x)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...v1(o),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 P6=function(e){if(e==null)return zce;if(typeof e=="function")return jx(e);if(typeof e=="object")return Array.isArray(e)?Lce(e):Oce(e);if(typeof e=="string")return Nce(e);throw new Error("Expected function, string, or object as test")};function Lce(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=P6(e[r]);return jx(n);function n(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function Oce(e){const t=e;return jx(r);function r(n){const i=n;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function Nce(e){return jx(t);function t(r){return r&&r.type===e}}function jx(e){return t;function t(r,n,i){return!!(Bce(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function zce(){return!0}function Bce(e){return e!==null&&typeof e=="object"&&"type"in e}const D6=[],Fce=!0,_O=!1,Vce="skip";function $ce(e,t,r,n){let i;typeof t=="function"&&typeof r!="function"?(n=r,r=t):i=t;const a=P6(i),o=n?-1:1;s(e,void 0,[])();function s(l,u,c){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return d;function d(){let h=D6,v,g,y;if((!t||a(l,u,c[c.length-1]||void 0))&&(h=Gce(r(l,c)),h[0]===_O))return h;if("children"in l&&l.children){const x=l;if(x.children&&h[0]!==Vce)for(g=(n?x.children.length:-1)+o,y=c.concat(x);g>-1&&g<x.children.length;){const S=x.children[g];if(v=s(S,g,y)(),v[0]===_O)return v;g=typeof v[1]=="number"?v[1]:g+o}}return h}}}function Gce(e){return Array.isArray(e)?e:typeof e=="number"?[Fce,e]:e==null?D6:[e]}function R6(e,t,r,n){let i,a,o;typeof t=="function"?(a=void 0,o=t,i=r):(a=t,o=r,i=n),$ce(e,a,s,i);function s(l,u){const c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return o(l,f,c)}}const l2={}.hasOwnProperty,Hce={};function Wce(e,t){const r=t||Hce,n=new Map,i=new Map,a=new Map,o={...Ace,...r.handlers},s={all:u,applyData:Uce,definitionById:n,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:l,options:r,patch:jce,wrap:qce};return R6(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?n:i,d=String(c.identifier).toUpperCase();f.has(d)||f.set(d,c)}}),s;function l(c,f){const d=c.type,h=s.handlers[d];if(l2.call(s.handlers,d)&&h)return h(s,c,f);if(s.options.passThrough&&s.options.passThrough.includes(d)){if("children"in c){const{children:g,...y}=c,x=v1(y);return x.children=s.all(c),x}return v1(c)}return(s.options.unknownHandler||Yce)(s,c,f)}function u(c){const f=[];if("children"in c){const d=c.children;let h=-1;for(;++h<d.length;){const v=s.one(d[h],c);if(v){if(h&&d[h-1].type==="break"&&(!Array.isArray(v)&&v.type==="text"&&(v.value=wO(v.value)),!Array.isArray(v)&&v.type==="element")){const g=v.children[0];g&&g.type==="text"&&(g.value=wO(g.value))}Array.isArray(v)?f.push(...v):f.push(v)}}}return f}}function jce(e,t){e.position&&(t.position=Ese(e))}function Uce(e,t){let r=t;if(e&&e.data){const n=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;if(typeof n=="string")if(r.type==="element")r.tagName=n;else{const o="children"in r?r.children:[r];r={type:"element",tagName:n,properties:{},children:o}}r.type==="element"&&a&&Object.assign(r.properties,v1(a)),"children"in r&&r.children&&i!==null&&i!==void 0&&(r.children=i)}return r}function Yce(e,t){const r=t.data||{},n="value"in t&&!(l2.call(r,"hProperties")||l2.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 qce(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 wO(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function CO(e,t){const r=Wce(e,t),n=r.one(e,void 0),i=Ece(r),a=Array.isArray(n)?{type:"root",children:n}:n||{type:"root",children:[]};return i&&a.children.push({type:"text",value:`
|
155
|
-
`},i),a}function Xce(e,t){return e&&"run"in e?async function(r,n){const i=CO(r,t);await e.run(i,n)}:function(r){return CO(r,t||e)}}function TO(e){if(e)throw e}var Z_,AO;function Zce(){if(AO)return Z_;AO=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},a=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var c=e.call(u,"constructor"),f=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!c&&!f)return!1;var d;for(d in u);return typeof d>"u"||e.call(u,d)},o=function(u,c){r&&c.name==="__proto__"?r(u,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):u[c.name]=c.newValue},s=function(u,c){if(c==="__proto__")if(e.call(u,c)){if(n)return n(u,c).value}else return;return u[c]};return Z_=function l(){var u,c,f,d,h,v,g=arguments[0],y=1,x=arguments.length,S=!1;for(typeof g=="boolean"&&(S=g,g=arguments[1]||{},y=2),(g==null||typeof g!="object"&&typeof g!="function")&&(g={});y<x;++y)if(u=arguments[y],u!=null)for(c in u)f=s(g,c),d=s(u,c),g!==d&&(S&&d&&(a(d)||(h=i(d)))?(h?(h=!1,v=f&&i(f)?f:[]):v=f&&a(f)?f:{},o(g,{name:c,newValue:l(S,v,d)})):typeof d<"u"&&o(g,{name:c,newValue:d}));return g},Z_}var Kce=Zce();const K_=ki(Kce);function u2(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 Qce(){const e=[],t={run:r,use:n};return t;function r(...i){let a=-1;const o=i.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);s(null,...i);function s(l,...u){const c=e[++a];let f=-1;if(l){o(l);return}for(;++f<i.length;)(u[f]===null||u[f]===void 0)&&(u[f]=i[f]);i=u,c?Jce(c,s)(...u):o(null,...u)}}function n(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Jce(e,t){let r;return n;function n(...o){const s=e.length>o.length;let l;s&&o.push(i);try{l=e.apply(this,o)}catch(u){const c=u;if(s&&r)throw c;return i(c)}s||(l instanceof Promise?l.then(a,i):l instanceof Error?i(l):a(l))}function i(o,...s){r||(r=!0,t(o,...s))}function a(o){i(null,o)}}const eo={basename:efe,dirname:tfe,extname:rfe,join:nfe,sep:"/"};function efe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');wg(e);let r=0,n=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else n<0&&(a=!0,n=i+1);return n<0?"":e.slice(r,n)}if(t===e)return"";let o=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){r=i+1;break}}else o<0&&(a=!0,o=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(n=i):(s=-1,n=o));return r===n?n=o:n<0&&(n=e.length),e.slice(r,n)}function tfe(e){if(wg(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 rfe(e){wg(e);let t=e.length,r=-1,n=0,i=-1,a=0,o;for(;t--;){const s=e.codePointAt(t);if(s===47){if(o){n=t+1;break}continue}r<0&&(o=!0,r=t+1),s===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||r<0||a===0||a===1&&i===r-1&&i===n+1?"":e.slice(i,r)}function nfe(...e){let t=-1,r;for(;++t<e.length;)wg(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":ife(r)}function ife(e){wg(e);const t=e.codePointAt(0)===47;let r=afe(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function afe(e,t){let r="",n=0,i=-1,a=0,o=-1,s,l;for(;++o<=e.length;){if(o<e.length)s=e.codePointAt(o);else{if(s===47)break;s=47}if(s===47){if(!(i===o-1||a===1))if(i!==o-1&&a===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=o,a=0;continue}}else if(r.length>0){r="",n=0,i=o,a=0;continue}}t&&(r=r.length>0?r+"/..":"..",n=2)}else r.length>0?r+="/"+e.slice(i+1,o):r=e.slice(i+1,o),n=o-i-1;i=o,a=0}else s===46&&a>-1?a++:a=-1}return r}function wg(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const ofe={cwd:sfe};function sfe(){return"/"}function c2(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function lfe(e){if(typeof e=="string")e=new URL(e);else if(!c2(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 ufe(e)}function ufe(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 Q_=["history","path","basename","stem","extname","dirname"];class E6{constructor(t){let r;t?c2(t)?r={path:t}:typeof t=="string"||cfe(t)?r={value:t}:r=t:r={},this.cwd=ofe.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<Q_.length;){const a=Q_[n];a in r&&r[a]!==void 0&&r[a]!==null&&(this[a]=a==="history"?[...r[a]]:r[a])}let i;for(i in r)Q_.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?eo.basename(this.path):void 0}set basename(t){ew(t,"basename"),J_(t,"basename"),this.path=eo.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?eo.dirname(this.path):void 0}set dirname(t){MO(this.basename,"dirname"),this.path=eo.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?eo.extname(this.path):void 0}set extname(t){if(J_(t,"extname"),MO(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=eo.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){c2(t)&&(t=lfe(t)),ew(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?eo.basename(this.path,this.extname):void 0}set stem(t){ew(t,"stem"),J_(t,"stem"),this.path=eo.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 $n(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 J_(e,t){if(e&&e.includes(eo.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+eo.sep+"`")}function ew(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function MO(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function cfe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ffe=function(e){const n=this.constructor.prototype,i=n[e],a=function(){return i.apply(a,arguments)};Object.setPrototypeOf(a,n);const o=Object.getOwnPropertyNames(i);for(const s of o){const l=Object.getOwnPropertyDescriptor(i,s);l&&Object.defineProperty(a,s,l)}return a},dfe={}.hasOwnProperty;class hk extends ffe{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=Qce()}copy(){const t=new hk;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];t.use(...n)}return t.data(K_(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(nw("data",this.frozen),this.namespace[t]=r,this):dfe.call(this.namespace,t)&&this.namespace[t]||void 0:t?(nw("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=by(t),n=this.parser||this.Parser;return tw("parse",n),n(String(r),r)}process(t,r){const n=this;return this.freeze(),tw("process",this.parser||this.Parser),rw("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(a,o){const s=by(t),l=n.parse(s);n.run(l,s,function(c,f,d){if(c||!f||!d)return u(c);const h=f,v=n.stringify(h,d);vfe(v)?d.value=v:d.result=v,u(c,d)});function u(c,f){c||!f?o(c):a?a(f):r(void 0,f)}}}processSync(t){let r=!1,n;return this.freeze(),tw("processSync",this.parser||this.Parser),rw("processSync",this.compiler||this.Compiler),this.process(t,i),IO("processSync","process",r),n;function i(a,o){r=!0,TO(a),n=o}}run(t,r,n){kO(t),this.freeze();const i=this.transformers;return!n&&typeof r=="function"&&(n=r,r=void 0),n?a(void 0,n):new Promise(a);function a(o,s){const l=by(r);i.run(t,l,u);function u(c,f,d){const h=f||t;c?s(c):o?o(h):n(void 0,h,d)}}}runSync(t,r){let n=!1,i;return this.run(t,r,a),IO("runSync","run",n),i;function a(o,s){TO(o),i=s,n=!0}}stringify(t,r){this.freeze();const n=by(r),i=this.compiler||this.Compiler;return rw("stringify",i),kO(t),i(t,n)}use(t,...r){const n=this.attachers,i=this.namespace;if(nw("use",this.frozen),t!=null)if(typeof t=="function")l(t,r);else if(typeof t=="object")Array.isArray(t)?s(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function a(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...f]=u;l(c,f)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))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(u.plugins),u.settings&&(i.settings=K_(!0,i.settings,u.settings))}function s(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const f=u[c];a(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,d=-1;for(;++f<n.length;)if(n[f][0]===u){d=f;break}if(d===-1)n.push([u,...c]);else if(c.length>0){let[h,...v]=c;const g=n[d][1];u2(g)&&u2(h)&&(h=K_(!0,g,h)),n[d]=[u,h,...v]}}}}const hfe=new hk().freeze();function tw(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function rw(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function nw(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 kO(e){if(!u2(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function IO(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function by(e){return pfe(e)?e:new E6(e)}function pfe(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function vfe(e){return typeof e=="string"||gfe(e)}function gfe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const mfe="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",PO=[],DO={allowDangerousHtml:!0},yfe=/^(https?|ircs?|mailto|xmpp)$/i,xfe=[{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:"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 Sfe(e){const t=e.allowedElements,r=e.allowElement,n=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||PO,l=e.remarkPlugins||PO,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...DO}:DO,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||bfe,h=hfe().use(ece).use(l).use(Xce,u).use(s),v=new E6;typeof n=="string"&&(v.value=n);for(const S of xfe)Object.hasOwn(e,S.from)&&(""+S.from+(S.to?"use `"+S.to+"` instead":"remove it")+mfe+S.id,void 0);const g=h.parse(v);let y=h.runSync(g,v);return i&&(y={type:"element",tagName:"div",properties:{className:i},children:y.type==="root"?y.children:[y]}),R6(y,x),Fse(y,{Fragment:N.Fragment,components:a,ignoreInvalidStyle:!0,jsx:N.jsx,jsxs:N.jsxs,passKeys:!0,passNode:!0});function x(S,b,w){if(S.type==="raw"&&w&&typeof b=="number")return c?w.children.splice(b,1):w.children[b]={type:"text",value:S.value},b;if(S.type==="element"){let T;for(T in Y_)if(Object.hasOwn(Y_,T)&&Object.hasOwn(S.properties,T)){const C=S.properties[T],A=Y_[T];(A===null||A.includes(S.tagName))&&(S.properties[T]=d(String(C||""),T,S))}}if(S.type==="element"){let T=t?!t.includes(S.tagName):o?o.includes(S.tagName):!1;if(!T&&r&&typeof b=="number"&&(T=!r(S,b,w)),T&&w&&typeof b=="number")return f&&S.children?w.children.splice(b,1,...S.children):w.children.splice(b,1),b}}}function bfe(e){const t=e.indexOf(":"),r=e.indexOf("?"),n=e.indexOf("#"),i=e.indexOf("/");return t<0||i>-1&&t>i||r>-1&&t>r||n>-1&&t>n||yfe.test(e.slice(0,t))?e:""}function Hu({content:e}){return N.jsx(Sfe,{components:{a:Kr},skipHtml:!1,children:e})}function pk({name:e,label:t,type:r="text",defaultValue:n,choices:i,isSecret:a,isRequired:o}){return i?N.jsx(rk,{defaultValue:n,label:t,name:e,options:i,required:o,sx:{width:"100%"}}):typeof n=="boolean"?N.jsx(O$,{control:N.jsx(e2,{defaultChecked:n,required:o}),label:N.jsx(Hu,{content:t}),name:e}):a?N.jsx(Q$,{defaultValue:n,isRequired:o,label:t,name:e}):N.jsx(vd,{defaultValue:n,label:t,name:e,required:o,sx:{width:"100%"},type:r})}var Uh={},iw={exports:{}},RO;function El(){return RO||(RO=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}(iw)),iw.exports}var aw={};const _fe=EY(dJ);var EO;function Ll(){return EO||(EO=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=_fe}(aw)),aw}var LO;function wfe(){if(LO)return Uh;LO=1;var e=El();Object.defineProperty(Uh,"__esModule",{value:!0}),Uh.default=void 0;var t=e(Ll()),r=vs(),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 Uh.default=n,Uh}var Cfe=wfe();const Tfe=ki(Cfe);var Yh={},OO;function Afe(){if(OO)return Yh;OO=1;var e=El();Object.defineProperty(Yh,"__esModule",{value:!0}),Yh.default=void 0;var t=e(Ll()),r=vs(),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 Yh.default=n,Yh}var Mfe=Afe();const kfe=ki(Mfe),vo={DARK:"dark",LIGHT:"light"},Ife=localStorage.theme===vo.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?vo.DARK:vo.LIGHT,fi=AV,Pfe=OV;function Zo(e,t){const r=Pfe();return G.useCallback(n=>{r(e(n))},[e,r])}const Dfe={isDarkMode:!1},L6=Ui({name:"theme",initialState:Dfe,reducers:{setIsDarkMode:(e,{payload:t})=>{e.isDarkMode=t}}}),Rfe=L6.actions,O6=L6.reducer;function f2(){const e=fi(({theme:{isDarkMode:n}})=>n),t=Zo(Rfe.setIsDarkMode);G.useEffect(()=>{t(Ife===vo.DARK)},[]);const r=()=>{localStorage.theme=e?vo.LIGHT:vo.DARK,t(!e)};return N.jsx(Cc,{color:"inherit",onClick:r,children:e?N.jsx(kfe,{}):N.jsx(Tfe,{})})}const Efe=e=>EM({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}},components:{MuiCssBaseline:{styleOverrides:{":root":{"--footer-height":"40px"},p:{margin:0},ul:{paddingLeft:"16px"}}}}});function N6(){const e=fi(({theme:{isDarkMode:r}})=>r);return G.useMemo(()=>Efe(e?vo.DARK:vo.LIGHT),[e])}function Lfe({authProviders:e,customForm:t,error:r,info:n,usernamePasswordCallback:i}){const a=N6();return N.jsxs(d$,{theme:a,children:[N.jsx(D$,{}),N.jsx(Bt,{sx:{position:"absolute",top:4,right:4},children:N.jsx(f2,{})}),N.jsxs(Bt,{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:[N.jsx(Bt,{sx:{display:"flex",justifyContent:"center",columnGap:2},children:N.jsx(K$,{})}),i&&!t&&N.jsx("form",{action:i,method:"POST",children:N.jsxs(Bt,{sx:{display:"flex",flexDirection:"column",rowGap:2},children:[N.jsx(vd,{label:"Username",name:"username"}),N.jsx(Q$,{}),n&&N.jsx(tl,{severity:"info",children:N.jsx(Hu,{content:n})}),r&&N.jsx(tl,{severity:"error",children:r}),N.jsx(_o,{size:"large",type:"submit",variant:"contained",children:"Login"})]})}),t&&N.jsx("form",{action:t.callbackUrl,method:"POST",children:N.jsxs(Bt,{sx:{display:"flex",flexDirection:"column",rowGap:2},children:[t.inputs.map((o,s)=>N.jsx(pk,{...o},`custom-form-input-${s}`)),n&&N.jsx(tl,{severity:"info",children:N.jsx(Hu,{content:n})}),r&&N.jsx(tl,{severity:"error",children:r}),N.jsx(_o,{size:"large",type:"submit",variant:"contained",children:t.submitButtonText||"Login"})]})}),n&&!t&&!i&&N.jsx(tl,{severity:"info",children:N.jsx(Hu,{content:n})}),r&&!t&&!i&&N.jsx(tl,{severity:"error",children:N.jsx(Hu,{content:r})}),e&&N.jsx(Bt,{sx:{display:"flex",flexDirection:"column",rowGap:1},children:e.map(({label:o,callbackUrl:s,iconUrl:l},u)=>N.jsxs(Cc,{href:s,sx:{display:"flex",justifyContent:"center",alignItems:"center",columnGap:2,borderRadius:2,borderWidth:"1px",borderStyle:"solid",borderColor:"primary"},children:[N.jsx("img",{height:"32",src:l}),N.jsx(Et,{height:"32",variant:"button",children:o})]},`auth-provider-${u}`))})]})]})}var qh={},NO;function Ofe(){if(NO)return qh;NO=1;var e=El();Object.defineProperty(qh,"__esModule",{value:!0}),qh.default=void 0;var t=e(Ll()),r=vs(),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 qh.default=n,qh}var Nfe=Ofe();const zfe=ki(Nfe);function Ux({open:e,onClose:t,children:r}){return N.jsx(XM,{onClose:t,open:e,children:N.jsxs(bg,{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:[N.jsx(Cc,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:N.jsx(zfe,{})}),r]})})}function Bfe(){const[e,t]=G.useState(!1),r=fi(({swarm:n})=>n.version);return N.jsxs(N.Fragment,{children:[N.jsx(Bt,{sx:{display:"flex",justifyContent:"flex-end"},children:N.jsx(_o,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),N.jsxs(Ux,{onClose:()=>t(!1),open:e,children:[N.jsxs("div",{children:[N.jsx(Et,{component:"h2",mb:1,variant:"h4",children:"About"}),N.jsxs(Et,{component:"p",variant:"subtitle1",children:["Locust is free and open source software released under the"," ",N.jsx(Kr,{href:"https://github.com/locustio/locust/blob/master/LICENSE",children:"MIT License"})]}),N.jsxs(Et,{component:"p",sx:{mt:2},variant:"subtitle1",children:["It was originally developed by Carl Byström and"," ",N.jsx(Kr,{href:"https://twitter.com/jonatanheyman",children:"Jonatan Heyman"}),". Since 2019, it is primarily maintained by ",N.jsx(Kr,{href:"https://github.com/cyberw",children:"Lars Holmberg"}),"."]}),N.jsxs(Et,{component:"p",sx:{mt:2},variant:"subtitle1",children:["Many thanks to all our wonderful"," ",N.jsx(Kr,{href:"https://github.com/locustio/locust/graphs/contributors",children:"contributors"}),"!"]})]}),N.jsxs("div",{children:[N.jsx(Et,{component:"h2",mb:1,variant:"h4",children:"Need help getting started?"}),N.jsx(Kr,{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"]}),N.jsxs("div",{children:[N.jsx(Et,{component:"h2",mb:1,variant:"h4",children:"Version"}),N.jsx(Kr,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),N.jsxs("div",{children:[N.jsx(Et,{component:"h2",mb:1,variant:"h4",children:"Links"}),N.jsx(Et,{component:"p",variant:"subtitle1",children:N.jsx(Kr,{href:"https://github.com/locustio/locust",children:"GitHub"})}),N.jsx(Et,{component:"p",variant:"subtitle1",children:N.jsx(Kr,{href:"https://docs.locust.io/en/stable",children:"Documentation"})}),N.jsx(Et,{component:"p",variant:"subtitle1",children:N.jsx(Kr,{href:"https://medium.com/locust-cloud",children:"Blog"})})]})]})]})}function Ffe(){return N.jsx(bg,{maxWidth:"xl",sx:{display:"flex",height:"var(--footer-height)",alignItems:"center",justifyContent:"flex-end"},children:N.jsx(Bfe,{})})}var Xh={},zO;function Vfe(){if(zO)return Xh;zO=1;var e=El();Object.defineProperty(Xh,"__esModule",{value:!0}),Xh.default=void 0;var t=e(Ll()),r=vs(),n=(0,t.default)((0,r.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");return Xh.default=n,Xh}var $fe=Vfe();const Gfe=ki($fe),z6=e=>(Array.isArray(e)?e.length:Object.keys(e).length)===0;function Hfe(e,t){return{...e,...t}}const Wfe=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},Yx=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e),bn={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning"},go=window.templateArgs?$f(window.templateArgs):{};go.isReport&&{...go,charts:(go.history||[]).reduce((e,{currentResponseTimePercentiles:t,...r})=>Yx(e,{...t,...r}),{})};function jfe({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:a,workerCount:o}){return N.jsxs(Bt,{sx:{display:"flex",columnGap:2,rowGap:1,flexDirection:{xs:"column",md:"row"}},children:[N.jsxs(Bt,{sx:{display:"flex",flexDirection:"column"},children:[N.jsx(Et,{sx:{fontWeight:"bold"},children:"Host"}),N.jsx(j$,{title:r,children:N.jsx(Et,{noWrap:!0,sx:{overflow:"hidden",textOverflow:"ellipsis",maxWidth:{xs:"180px",lg:"400px"}},children:r})})]}),N.jsx(Lf,{flexItem:!0,orientation:"vertical"}),N.jsxs(Bt,{sx:{display:"flex",flexDirection:"column"},children:[N.jsx(Et,{sx:{fontWeight:"bold"},children:"Status"}),N.jsx(Et,{variant:"button",children:t})]}),(t===bn.RUNNING||t===bn.SPAWNING)&&N.jsxs(N.Fragment,{children:[N.jsx(Lf,{flexItem:!0,orientation:"vertical"}),N.jsxs(Bt,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[N.jsx(Et,{sx:{fontWeight:"bold"},children:"Users"}),N.jsx(Et,{noWrap:!0,variant:"button",children:a})]})]}),e&&N.jsxs(N.Fragment,{children:[N.jsx(Lf,{flexItem:!0,orientation:"vertical"}),N.jsxs(Bt,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[N.jsx(Et,{sx:{fontWeight:"bold"},children:"Workers"}),N.jsx(Et,{noWrap:!0,variant:"button",children:o})]})]}),N.jsx(Lf,{flexItem:!0,orientation:"vertical"}),N.jsxs(Bt,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[N.jsx(Et,{sx:{fontWeight:"bold"},children:"RPS"}),N.jsx(Et,{noWrap:!0,variant:"button",children:n})]}),N.jsx(Lf,{flexItem:!0,orientation:"vertical"}),N.jsxs(Bt,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[N.jsx(Et,{sx:{fontWeight:"bold"},children:"Failures"}),N.jsx(Et,{noWrap:!0,variant:"button",children:`${i}%`})]})]})}const Ufe=({swarm:{isDistributed:e,state:t,host:r,workerCount:n},ui:{totalRps:i,failRatio:a,userCount:o}})=>({isDistributed:e,state:t,host:r,totalRps:i,failRatio:a,userCount:o,workerCount:n}),BO=Ii(Ufe)(jfe);var Zh={},FO;function Yfe(){if(FO)return Zh;FO=1;var e=El();Object.defineProperty(Zh,"__esModule",{value:!0}),Zh.default=void 0;var t=e(Ll()),r=vs(),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 Zh.default=n,Zh}var qfe=Yfe();const vk=ki(qfe),Xfe="input, select, textarea",Zfe=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 B6({children:e,onSubmit:t,onChange:r}){const n=G.useCallback(async i=>{i.preventDefault();const o=[...i.target.querySelectorAll(Xfe)].reduce((s,l)=>({...s,[l.name]:Zfe(l)}),{});t(o)},[t]);return N.jsx("form",{onChange:r,onSubmit:n,children:e})}function VO({defaultValue:e,...t}){const[r,n]=G.useState(e||""),i=a=>{t.onChange&&t.onChange(a),!((a.target.value.match(/\./g)||[]).length>1)&&n(a.target.value.replace(/[^0-9.]/g,""))};return G.useEffect(()=>{e&&n(e)},[e]),N.jsx(vd,{...t,onChange:i,value:r})}function Kfe({extraOptions:e}){return N.jsxs(BM,{children:[N.jsx(VM,{expandIcon:N.jsx(vk,{}),children:N.jsx(Et,{children:"Custom parameters"})}),N.jsx(FM,{children:N.jsx(Bt,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:Object.entries(e).map(([t,r],n)=>G.createElement(pk,{...r,key:`valid-parameter-${n}`,label:r.helpText?`${$T(t)} (${r.helpText})`:$T(t),name:t}))})})]})}var Kh={},$O;function Qfe(){if($O)return Kh;$O=1;var e=El();Object.defineProperty(Kh,"__esModule",{value:!0}),Kh.default=void 0;var t=e(Ll()),r=vs(),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 Kh.default=n,Kh}var Jfe=Qfe();const ede=ki(Jfe);var F6=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(F6||{});function tde(e){return{status:e,isUninitialized:e==="uninitialized",isLoading:e==="pending",isSuccess:e==="fulfilled",isError:e==="rejected"}}function rde(e){return new RegExp("(^|:)//").test(e)}var nde=e=>e.replace(/\/$/,""),ide=e=>e.replace(/^\//,"");function ade(e,t){if(!e)return t;if(!t)return e;if(rde(t))return t;const r=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=nde(e),t=ide(t),`${e}${r}${t}`}var GO=e=>[].concat(...e);function ode(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function sde(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var HO=So;function V6(e,t){if(e===t||!(HO(e)&&HO(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 a=Array.isArray(t)?[]:{};for(const o of r)a[o]=V6(e[o],t[o]),i&&(i=e[o]===a[o]);return i?e:a}var WO=(...e)=>fetch(...e),lde=e=>e.status>=200&&e.status<=299,ude=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function jO(e){if(!So(e))return e;const t={...e};for(const[r,n]of Object.entries(t))n===void 0&&delete t[r];return t}function cde({baseUrl:e,prepareHeaders:t=f=>f,fetchFn:r=WO,paramsSerializer:n,isJsonContentType:i=ude,jsonContentType:a="application/json",jsonReplacer:o,timeout:s,responseHandler:l,validateStatus:u,...c}={}){return typeof fetch>"u"&&r===WO&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(d,h)=>{const{signal:v,getState:g,extra:y,endpoint:x,forced:S,type:b}=h;let w,{url:T,headers:C=new Headers(c.headers),params:A=void 0,responseHandler:k=l??"json",validateStatus:I=u??lde,timeout:P=s,...R}=typeof d=="string"?{url:d}:d,L={...c,signal:v,...R};C=new Headers(jO(C)),L.headers=await t(C,{getState:g,extra:y,endpoint:x,forced:S,type:b})||C;const O=Z=>typeof Z=="object"&&(So(Z)||Array.isArray(Z)||typeof Z.toJSON=="function");if(!L.headers.has("content-type")&&O(L.body)&&L.headers.set("content-type",a),O(L.body)&&i(L.headers)&&(L.body=JSON.stringify(L.body,o)),A){const Z=~T.indexOf("?")?"&":"?",j=n?n(A):new URLSearchParams(jO(A));T+=Z+j}T=ade(e,T);const z=new Request(T,L);w={request:new Request(T,L)};let H,q=!1,$=P&&setTimeout(()=>{q=!0,h.abort()},P);try{H=await r(z)}catch(Z){return{error:{status:q?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(Z)},meta:w}}finally{$&&clearTimeout($)}const X=H.clone();w.response=X;let B,Y="";try{let Z;if(await Promise.all([f(H,k).then(j=>B=j,j=>Z=j),X.text().then(j=>Y=j,()=>{})]),Z)throw Z}catch(Z){return{error:{status:"PARSING_ERROR",originalStatus:H.status,data:Y,error:String(Z)},meta:w}}return I(H,B)?{data:B,meta:w}:{error:{status:H.status,data:B},meta:w}};async function f(d,h){if(typeof h=="function")return h(d);if(h==="content-type"&&(h=i(d.headers)?"json":"text"),h==="json"){const v=await d.text();return v.length?JSON.parse(v):null}return d.text()}}var UO=class{constructor(e,t=void 0){this.value=e,this.meta=t}},gk=Ln("__rtkq/focused"),$6=Ln("__rtkq/unfocused"),mk=Ln("__rtkq/online"),G6=Ln("__rtkq/offline");function H6(e){return e.type==="query"}function fde(e){return e.type==="mutation"}function yk(e,t,r,n,i,a){return dde(e)?e(t,r,n,i).map(d2).map(a):Array.isArray(e)?e.map(d2).map(a):[]}function dde(e){return typeof e=="function"}function d2(e){return typeof e=="string"?{type:e}:e}function YO(e){return e!=null}function Kf(e){let t=0;for(const r in e)t++;return t}function hde(e,t){return e.catch(t)}var Ov=Symbol("forceQueryFn"),h2=e=>typeof e[Ov]=="function";function pde({serializeQueryArgs:e,queryThunk:t,mutationThunk:r,api:n,context:i}){const a=new Map,o=new Map,{unsubscribeQueryResult:s,removeMutationResult:l,updateSubscriptionOptions:u}=n.internalActions;return{buildInitiateQuery:v,buildInitiateMutation:g,getRunningQueryThunk:c,getRunningMutationThunk:f,getRunningQueriesThunk:d,getRunningMutationsThunk:h};function c(y,x){return S=>{var T;const b=i.endpointDefinitions[y],w=e({queryArgs:x,endpointDefinition:b,endpointName:y});return(T=a.get(S))==null?void 0:T[w]}}function f(y,x){return S=>{var b;return(b=o.get(S))==null?void 0:b[x]}}function d(){return y=>Object.values(a.get(y)||{}).filter(YO)}function h(){return y=>Object.values(o.get(y)||{}).filter(YO)}function v(y,x){const S=(b,{subscribe:w=!0,forceRefetch:T,subscriptionOptions:C,[Ov]:A,...k}={})=>(I,P)=>{var Z;const R=e({queryArgs:b,endpointDefinition:x,endpointName:y}),L=t({...k,type:"query",subscribe:w,forceRefetch:T,subscriptionOptions:C,endpointName:y,originalArgs:b,queryCacheKey:R,[Ov]:A}),O=n.endpoints[y].select(b),z=I(L),F=O(P()),{requestId:H,abort:q}=z,$=F.requestId!==H,X=(Z=a.get(I))==null?void 0:Z[R],B=()=>O(P()),Y=Object.assign(A?z.then(B):$&&!X?Promise.resolve(F):Promise.all([X,z]).then(B),{arg:b,requestId:H,subscriptionOptions:C,queryCacheKey:R,abort:q,async unwrap(){const j=await Y;if(j.isError)throw j.error;return j.data},refetch:()=>I(S(b,{subscribe:!1,forceRefetch:!0})),unsubscribe(){w&&I(s({queryCacheKey:R,requestId:H}))},updateSubscriptionOptions(j){Y.subscriptionOptions=j,I(u({endpointName:y,requestId:H,queryCacheKey:R,options:j}))}});if(!X&&!$&&!A){const j=a.get(I)||{};j[R]=Y,a.set(I,j),Y.then(()=>{delete j[R],Kf(j)||a.delete(I)})}return Y};return S}function g(y){return(x,{track:S=!0,fixedCacheKey:b}={})=>(w,T)=>{const C=r({type:"mutation",endpointName:y,originalArgs:x,track:S,fixedCacheKey:b}),A=w(C),{requestId:k,abort:I,unwrap:P}=A,R=hde(A.unwrap().then(F=>({data:F})),F=>({error:F})),L=()=>{w(l({requestId:k,fixedCacheKey:b}))},O=Object.assign(R,{arg:A.arg,requestId:k,abort:I,unwrap:P,reset:L}),z=o.get(w)||{};return o.set(w,z),z[k]=O,O.then(()=>{delete z[k],Kf(z)||o.delete(w)}),b&&(z[b]=O,O.then(()=>{z[b]===O&&(delete z[b],Kf(z)||o.delete(w))})),O}}}function qO(e){return e}function vde({reducerPath:e,baseQuery:t,context:{endpointDefinitions:r},serializeQueryArgs:n,api:i,assertTagType:a}){const o=(S,b,w,T)=>(C,A)=>{const k=r[S],I=n({queryArgs:b,endpointDefinition:k,endpointName:S});if(C(i.internalActions.queryResultPatched({queryCacheKey:I,patches:w})),!T)return;const P=i.endpoints[S].select(b)(A()),R=yk(k.providesTags,P.data,void 0,b,{},a);C(i.internalActions.updateProvidedBy({queryCacheKey:I,providedTags:R}))},s=(S,b,w,T=!0)=>(C,A)=>{const I=i.endpoints[S].select(b)(A());let P={patches:[],inversePatches:[],undo:()=>C(i.util.patchQueryData(S,b,P.inversePatches,T))};if(I.status==="uninitialized")return P;let R;if("data"in I)if(Da(I.data)){const[L,O,z]=vV(I.data,w);P.patches.push(...O),P.inversePatches.push(...z),R=L}else R=w(I.data),P.patches.push({op:"replace",path:[],value:R}),P.inversePatches.push({op:"replace",path:[],value:I.data});return P.patches.length===0||C(i.util.patchQueryData(S,b,P.patches,T)),P},l=(S,b,w)=>T=>T(i.endpoints[S].initiate(b,{subscribe:!1,forceRefetch:!0,[Ov]:()=>({data:w})})),u=async(S,{signal:b,abort:w,rejectWithValue:T,fulfillWithValue:C,dispatch:A,getState:k,extra:I})=>{const P=r[S.endpointName];try{let R=qO,L;const O={signal:b,abort:w,dispatch:A,getState:k,extra:I,endpoint:S.endpointName,type:S.type,forced:S.type==="query"?c(S,k()):void 0},z=S.type==="query"?S[Ov]:void 0;if(z?L=z():P.query?(L=await t(P.query(S.originalArgs),O,P.extraOptions),P.transformResponse&&(R=P.transformResponse)):L=await P.queryFn(S.originalArgs,O,P.extraOptions,F=>t(F,O,P.extraOptions)),typeof process<"u",L.error)throw new UO(L.error,L.meta);return C(await R(L.data,L.meta,S.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:L.meta,[Vf]:!0})}catch(R){let L=R;if(L instanceof UO){let O=qO;P.query&&P.transformErrorResponse&&(O=P.transformErrorResponse);try{return T(await O(L.value,L.meta,S.originalArgs),{baseQueryMeta:L.meta,[Vf]:!0})}catch(z){L=z}}throw console.error(L),L}};function c(S,b){var k,I,P;const w=(I=(k=b[e])==null?void 0:k.queries)==null?void 0:I[S.queryCacheKey],T=(P=b[e])==null?void 0:P.config.refetchOnMountOrArgChange,C=w==null?void 0:w.fulfilledTimeStamp,A=S.forceRefetch??(S.subscribe&&T);return A?A===!0||(Number(new Date)-Number(C))/1e3>=A:!1}const f=yE(`${e}/executeQuery`,u,{getPendingMeta(){return{startedTimeStamp:Date.now(),[Vf]:!0}},condition(S,{getState:b}){var P,R,L;const w=b(),T=(R=(P=w[e])==null?void 0:P.queries)==null?void 0:R[S.queryCacheKey],C=T==null?void 0:T.fulfilledTimeStamp,A=S.originalArgs,k=T==null?void 0:T.originalArgs,I=r[S.endpointName];return h2(S)?!0:(T==null?void 0:T.status)==="pending"?!1:c(S,w)||H6(I)&&((L=I==null?void 0:I.forceRefetch)!=null&&L.call(I,{currentArg:A,previousArg:k,endpointState:T,state:w}))?!0:!C},dispatchConditionRejection:!0}),d=yE(`${e}/executeMutation`,u,{getPendingMeta(){return{startedTimeStamp:Date.now(),[Vf]:!0}}}),h=S=>"force"in S,v=S=>"ifOlderThan"in S,g=(S,b,w)=>(T,C)=>{const A=h(w)&&w.force,k=v(w)&&w.ifOlderThan,I=(R=!0)=>{const L={forceRefetch:R,isPrefetch:!0};return i.endpoints[S].initiate(b,L)},P=i.endpoints[S].select(b)(C());if(A)T(I());else if(k){const R=P==null?void 0:P.fulfilledTimeStamp;if(!R){T(I());return}(Number(new Date)-Number(new Date(R)))/1e3>=k&&T(I())}else T(I(!1))};function y(S){return b=>{var w,T;return((T=(w=b==null?void 0:b.meta)==null?void 0:w.arg)==null?void 0:T.endpointName)===S}}function x(S,b){return{matchPending:qp(cM(S),y(b)),matchFulfilled:qp(xl(S),y(b)),matchRejected:qp(ad(S),y(b))}}return{queryThunk:f,mutationThunk:d,prefetch:g,updateQueryData:s,upsertQueryData:l,patchQueryData:o,buildMatchThunkActions:x}}function W6(e,t,r,n){return yk(r[e.meta.arg.endpointName][t],xl(e)?e.payload:void 0,gx(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function _y(e,t,r){const n=e[t];n&&r(n)}function Nv(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function XO(e,t,r){const n=e[Nv(t)];n&&r(n)}var Qh={};function gde({reducerPath:e,queryThunk:t,mutationThunk:r,context:{endpointDefinitions:n,apiUid:i,extractRehydrationInfo:a,hasRehydrationInfo:o},assertTagType:s,config:l}){const u=Ln(`${e}/resetApiState`),c=Ui({name:`${e}/queries`,initialState:Qh,reducers:{removeQueryResult:{reducer(b,{payload:{queryCacheKey:w}}){delete b[w]},prepare:Nh()},queryResultPatched:{reducer(b,{payload:{queryCacheKey:w,patches:T}}){_y(b,w,C=>{C.data=dE(C.data,T.concat())})},prepare:Nh()}},extraReducers(b){b.addCase(t.pending,(w,{meta:T,meta:{arg:C}})=>{var k;const A=h2(C);w[k=C.queryCacheKey]??(w[k]={status:"uninitialized",endpointName:C.endpointName}),_y(w,C.queryCacheKey,I=>{I.status="pending",I.requestId=A&&I.requestId?I.requestId:T.requestId,C.originalArgs!==void 0&&(I.originalArgs=C.originalArgs),I.startedTimeStamp=T.startedTimeStamp})}).addCase(t.fulfilled,(w,{meta:T,payload:C})=>{_y(w,T.arg.queryCacheKey,A=>{if(A.requestId!==T.requestId&&!h2(T.arg))return;const{merge:k}=n[T.arg.endpointName];if(A.status="fulfilled",k)if(A.data!==void 0){const{fulfilledTimeStamp:I,arg:P,baseQueryMeta:R,requestId:L}=T;let O=hg(A.data,z=>k(z,C,{arg:P.originalArgs,baseQueryMeta:R,fulfilledTimeStamp:I,requestId:L}));A.data=O}else A.data=C;else A.data=n[T.arg.endpointName].structuralSharing??!0?V6(Pa(A.data)?ZY(A.data):A.data,C):C;delete A.error,A.fulfilledTimeStamp=T.fulfilledTimeStamp})}).addCase(t.rejected,(w,{meta:{condition:T,arg:C,requestId:A},error:k,payload:I})=>{_y(w,C.queryCacheKey,P=>{if(!T){if(P.requestId!==A)return;P.status="rejected",P.error=I??k}})}).addMatcher(o,(w,T)=>{const{queries:C}=a(T);for(const[A,k]of Object.entries(C))((k==null?void 0:k.status)==="fulfilled"||(k==null?void 0:k.status)==="rejected")&&(w[A]=k)})}}),f=Ui({name:`${e}/mutations`,initialState:Qh,reducers:{removeMutationResult:{reducer(b,{payload:w}){const T=Nv(w);T in b&&delete b[T]},prepare:Nh()}},extraReducers(b){b.addCase(r.pending,(w,{meta:T,meta:{requestId:C,arg:A,startedTimeStamp:k}})=>{A.track&&(w[Nv(T)]={requestId:C,status:"pending",endpointName:A.endpointName,startedTimeStamp:k})}).addCase(r.fulfilled,(w,{payload:T,meta:C})=>{C.arg.track&&XO(w,C,A=>{A.requestId===C.requestId&&(A.status="fulfilled",A.data=T,A.fulfilledTimeStamp=C.fulfilledTimeStamp)})}).addCase(r.rejected,(w,{payload:T,error:C,meta:A})=>{A.arg.track&&XO(w,A,k=>{k.requestId===A.requestId&&(k.status="rejected",k.error=T??C)})}).addMatcher(o,(w,T)=>{const{mutations:C}=a(T);for(const[A,k]of Object.entries(C))((k==null?void 0:k.status)==="fulfilled"||(k==null?void 0:k.status)==="rejected")&&A!==(k==null?void 0:k.requestId)&&(w[A]=k)})}}),d=Ui({name:`${e}/invalidation`,initialState:Qh,reducers:{updateProvidedBy:{reducer(b,w){var A,k;const{queryCacheKey:T,providedTags:C}=w.payload;for(const I of Object.values(b))for(const P of Object.values(I)){const R=P.indexOf(T);R!==-1&&P.splice(R,1)}for(const{type:I,id:P}of C){const R=(A=b[I]??(b[I]={}))[k=P||"__internal_without_id"]??(A[k]=[]);R.includes(T)||R.push(T)}},prepare:Nh()}},extraReducers(b){b.addCase(c.actions.removeQueryResult,(w,{payload:{queryCacheKey:T}})=>{for(const C of Object.values(w))for(const A of Object.values(C)){const k=A.indexOf(T);k!==-1&&A.splice(k,1)}}).addMatcher(o,(w,T)=>{var A,k;const{provided:C}=a(T);for(const[I,P]of Object.entries(C))for(const[R,L]of Object.entries(P)){const O=(A=w[I]??(w[I]={}))[k=R||"__internal_without_id"]??(A[k]=[]);for(const z of L)O.includes(z)||O.push(z)}}).addMatcher(is(xl(t),gx(t)),(w,T)=>{const C=W6(T,"providesTags",n,s),{queryCacheKey:A}=T.meta.arg;d.caseReducers.updateProvidedBy(w,d.actions.updateProvidedBy({queryCacheKey:A,providedTags:C}))})}}),h=Ui({name:`${e}/subscriptions`,initialState:Qh,reducers:{updateSubscriptionOptions(b,w){},unsubscribeQueryResult(b,w){},internal_getRTKQSubscriptions(){}}}),v=Ui({name:`${e}/internalSubscriptions`,initialState:Qh,reducers:{subscriptionsUpdated:{reducer(b,w){return dE(b,w.payload)},prepare:Nh()}}}),g=Ui({name:`${e}/config`,initialState:{online:ode(),focused:sde(),middlewareRegistered:!1,...l},reducers:{middlewareRegistered(b,{payload:w}){b.middlewareRegistered=b.middlewareRegistered==="conflict"||i!==w?"conflict":!0}},extraReducers:b=>{b.addCase(mk,w=>{w.online=!0}).addCase(G6,w=>{w.online=!1}).addCase(gk,w=>{w.focused=!0}).addCase($6,w=>{w.focused=!1}).addMatcher(o,w=>({...w}))}}),y=hx({queries:c.reducer,mutations:f.reducer,provided:d.reducer,subscriptions:v.reducer,config:g.reducer}),x=(b,w)=>y(u.match(w)?void 0:b,w),S={...g.actions,...c.actions,...h.actions,...v.actions,...f.actions,...d.actions,resetApiState:u};return{reducer:x,actions:S}}var Wu=Symbol.for("RTKQ/skipToken"),j6={status:"uninitialized"},ZO=hg(j6,()=>{}),KO=hg(j6,()=>{});function mde({serializeQueryArgs:e,reducerPath:t,createSelector:r}){const n=f=>ZO,i=f=>KO;return{buildQuerySelector:s,buildMutationSelector:l,selectInvalidatedBy:u,selectCachedArgsForQuery:c};function a(f){return{...f,...tde(f.status)}}function o(f){return f[t]}function s(f,d){return h=>{const v=e({queryArgs:h,endpointDefinition:d,endpointName:f});return r(h===Wu?n:x=>{var S,b;return((b=(S=o(x))==null?void 0:S.queries)==null?void 0:b[v])??ZO},a)}}function l(){return f=>{let d;return typeof f=="object"?d=Nv(f)??Wu:d=f,r(d===Wu?i:g=>{var y,x;return((x=(y=o(g))==null?void 0:y.mutations)==null?void 0:x[d])??KO},a)}}function u(f,d){const h=f[t],v=new Set;for(const g of d.map(d2)){const y=h.provided[g.type];if(!y)continue;let x=(g.id!==void 0?y[g.id]:GO(Object.values(y)))??[];for(const S of x)v.add(S)}return GO(Array.from(v.values()).map(g=>{const y=h.queries[g];return y?[{queryCacheKey:g,endpointName:y.endpointName,originalArgs:y.originalArgs}]:[]}))}function c(f,d){return Object.values(f[t].queries).filter(h=>(h==null?void 0:h.endpointName)===d&&h.status!=="uninitialized").map(h=>h.originalArgs)}}var cf=WeakMap?new WeakMap:void 0,QO=({endpointName:e,queryArgs:t})=>{let r="";const n=cf==null?void 0:cf.get(t);if(typeof n=="string")r=n;else{const i=JSON.stringify(t,(a,o)=>(o=typeof o=="bigint"?{$bigint:o.toString()}:o,o=So(o)?Object.keys(o).sort().reduce((s,l)=>(s[l]=o[l],s),{}):o,o));So(t)&&(cf==null||cf.set(t,i)),r=i}return`${e}(${r})`};function U6(...e){return function(r){const n=Av(u=>{var c;return(c=r.extractRehydrationInfo)==null?void 0:c.call(r,u,{reducerPath:r.reducerPath??"api"})}),i={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...r,extractRehydrationInfo:n,serializeQueryArgs(u){let c=QO;if("serializeQueryArgs"in u.endpointDefinition){const f=u.endpointDefinition.serializeQueryArgs;c=d=>{const h=f(d);return typeof h=="string"?h:QO({...d,queryArgs:h})}}else r.serializeQueryArgs&&(c=r.serializeQueryArgs);return c(u)},tagTypes:[...r.tagTypes||[]]},a={endpointDefinitions:{},batch(u){u()},apiUid:uM(),extractRehydrationInfo:n,hasRehydrationInfo:Av(u=>n(u)!=null)},o={injectEndpoints:l,enhanceEndpoints({addTagTypes:u,endpoints:c}){if(u)for(const f of u)i.tagTypes.includes(f)||i.tagTypes.push(f);if(c)for(const[f,d]of Object.entries(c))typeof d=="function"?d(a.endpointDefinitions[f]):Object.assign(a.endpointDefinitions[f]||{},d);return o}},s=e.map(u=>u.init(o,i,a));function l(u){const c=u.endpoints({query:f=>({...f,type:"query"}),mutation:f=>({...f,type:"mutation"})});for(const[f,d]of Object.entries(c)){if(u.overrideExisting!==!0&&f in a.endpointDefinitions){if(u.overrideExisting==="throw")throw new Error(_n(39));continue}a.endpointDefinitions[f]=d;for(const h of s)h.injectEndpoint(f,d)}return o}return o.injectEndpoints({endpoints:r.endpoints})}}function yde(e){for(let t in e)return!1;return!0}var xde=2147483647/1e3-1,Sde=({reducerPath:e,api:t,queryThunk:r,context:n,internalState:i})=>{const{removeQueryResult:a,unsubscribeQueryResult:o}=t.internalActions,s=is(o.match,r.fulfilled,r.rejected);function l(d){const h=i.currentSubscriptions[d];return!!h&&!yde(h)}const u={},c=(d,h,v)=>{var g;if(s(d)){const y=h.getState()[e],{queryCacheKey:x}=o.match(d)?d.payload:d.meta.arg;f(x,(g=y.queries[x])==null?void 0:g.endpointName,h,y.config)}if(t.util.resetApiState.match(d))for(const[y,x]of Object.entries(u))x&&clearTimeout(x),delete u[y];if(n.hasRehydrationInfo(d)){const y=h.getState()[e],{queries:x}=n.extractRehydrationInfo(d);for(const[S,b]of Object.entries(x))f(S,b==null?void 0:b.endpointName,h,y.config)}};function f(d,h,v,g){const y=n.endpointDefinitions[h],x=(y==null?void 0:y.keepUnusedDataFor)??g.keepUnusedDataFor;if(x===1/0)return;const S=Math.max(0,Math.min(x,xde));if(!l(d)){const b=u[d];b&&clearTimeout(b),u[d]=setTimeout(()=>{l(d)||v.dispatch(a({queryCacheKey:d})),delete u[d]},S*1e3)}}return c},bde=({reducerPath:e,context:t,context:{endpointDefinitions:r},mutationThunk:n,queryThunk:i,api:a,assertTagType:o,refetchQuery:s,internalState:l})=>{const{removeQueryResult:u}=a.internalActions,c=is(xl(n),gx(n)),f=is(xl(n,i),ad(n,i));let d=[];const h=(y,x)=>{c(y)?g(W6(y,"invalidatesTags",r,o),x):f(y)?g([],x):a.util.invalidateTags.match(y)&&g(yk(y.payload,void 0,void 0,void 0,void 0,o),x)};function v(y){var x,S;for(const b in y.queries)if(((x=y.queries[b])==null?void 0:x.status)==="pending")return!0;for(const b in y.mutations)if(((S=y.mutations[b])==null?void 0:S.status)==="pending")return!0;return!1}function g(y,x){const S=x.getState(),b=S[e];if(d.push(...y),b.config.invalidationBehavior==="delayed"&&v(b))return;const w=d;if(d=[],w.length===0)return;const T=a.util.selectInvalidatedBy(S,w);t.batch(()=>{const C=Array.from(T.values());for(const{queryCacheKey:A}of C){const k=b.queries[A],I=l.currentSubscriptions[A]??{};k&&(Kf(I)===0?x.dispatch(u({queryCacheKey:A})):k.status!=="uninitialized"&&x.dispatch(s(k,A)))}})}return h},_de=({reducerPath:e,queryThunk:t,api:r,refetchQuery:n,internalState:i})=>{const a={},o=(d,h)=>{(r.internalActions.updateSubscriptionOptions.match(d)||r.internalActions.unsubscribeQueryResult.match(d))&&l(d.payload,h),(t.pending.match(d)||t.rejected.match(d)&&d.meta.condition)&&l(d.meta.arg,h),(t.fulfilled.match(d)||t.rejected.match(d)&&!d.meta.condition)&&s(d.meta.arg,h),r.util.resetApiState.match(d)&&c()};function s({queryCacheKey:d},h){const v=h.getState()[e],g=v.queries[d],y=i.currentSubscriptions[d];if(!g||g.status==="uninitialized")return;const{lowestPollingInterval:x,skipPollingIfUnfocused:S}=f(y);if(!Number.isFinite(x))return;const b=a[d];b!=null&&b.timeout&&(clearTimeout(b.timeout),b.timeout=void 0);const w=Date.now()+x;a[d]={nextPollTimestamp:w,pollingInterval:x,timeout:setTimeout(()=>{(v.config.focused||!S)&&h.dispatch(n(g,d)),s({queryCacheKey:d},h)},x)}}function l({queryCacheKey:d},h){const g=h.getState()[e].queries[d],y=i.currentSubscriptions[d];if(!g||g.status==="uninitialized")return;const{lowestPollingInterval:x}=f(y);if(!Number.isFinite(x)){u(d);return}const S=a[d],b=Date.now()+x;(!S||b<S.nextPollTimestamp)&&s({queryCacheKey:d},h)}function u(d){const h=a[d];h!=null&&h.timeout&&clearTimeout(h.timeout),delete a[d]}function c(){for(const d of Object.keys(a))u(d)}function f(d={}){let h=!1,v=Number.POSITIVE_INFINITY;for(let g in d)d[g].pollingInterval&&(v=Math.min(d[g].pollingInterval,v),h=d[g].skipPollingIfUnfocused||h);return{lowestPollingInterval:v,skipPollingIfUnfocused:h}}return o},wde=({reducerPath:e,context:t,api:r,refetchQuery:n,internalState:i})=>{const{removeQueryResult:a}=r.internalActions,o=(l,u)=>{gk.match(l)&&s(u,"refetchOnFocus"),mk.match(l)&&s(u,"refetchOnReconnect")};function s(l,u){const c=l.getState()[e],f=c.queries,d=i.currentSubscriptions;t.batch(()=>{for(const h of Object.keys(d)){const v=f[h],g=d[h];if(!g||!v)continue;(Object.values(g).some(x=>x[u]===!0)||Object.values(g).every(x=>x[u]===void 0)&&c.config[u])&&(Kf(g)===0?l.dispatch(a({queryCacheKey:h})):v.status!=="uninitialized"&&l.dispatch(n(v,h)))}})}return o},JO=new Error("Promise never resolved before cacheEntryRemoved."),Cde=({api:e,reducerPath:t,context:r,queryThunk:n,mutationThunk:i,internalState:a})=>{const o=BT(n),s=BT(i),l=xl(n,i),u={},c=(h,v,g)=>{const y=f(h);if(n.pending.match(h)){const x=g[t].queries[y],S=v.getState()[t].queries[y];!x&&S&&d(h.meta.arg.endpointName,h.meta.arg.originalArgs,y,v,h.meta.requestId)}else if(i.pending.match(h))v.getState()[t].mutations[y]&&d(h.meta.arg.endpointName,h.meta.arg.originalArgs,y,v,h.meta.requestId);else if(l(h)){const x=u[y];x!=null&&x.valueResolved&&(x.valueResolved({data:h.payload,meta:h.meta.baseQueryMeta}),delete x.valueResolved)}else if(e.internalActions.removeQueryResult.match(h)||e.internalActions.removeMutationResult.match(h)){const x=u[y];x&&(delete u[y],x.cacheEntryRemoved())}else if(e.util.resetApiState.match(h))for(const[x,S]of Object.entries(u))delete u[x],S.cacheEntryRemoved()};function f(h){return o(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)?Nv(h.payload):""}function d(h,v,g,y,x){const S=r.endpointDefinitions[h],b=S==null?void 0:S.onCacheEntryAdded;if(!b)return;let w={};const T=new Promise(R=>{w.cacheEntryRemoved=R}),C=Promise.race([new Promise(R=>{w.valueResolved=R}),T.then(()=>{throw JO})]);C.catch(()=>{}),u[g]=w;const A=e.endpoints[h].select(S.type==="query"?v:g),k=y.dispatch((R,L,O)=>O),I={...y,getCacheEntry:()=>A(y.getState()),requestId:x,extra:k,updateCachedData:S.type==="query"?R=>y.dispatch(e.util.updateQueryData(h,v,R)):void 0,cacheDataLoaded:C,cacheEntryRemoved:T},P=b(v,I);Promise.resolve(P).catch(R=>{if(R!==JO)throw R})}return c},Tde=({api:e,context:t,queryThunk:r,mutationThunk:n})=>{const i=cM(r,n),a=ad(r,n),o=xl(r,n),s={};return(u,c)=>{var f,d;if(i(u)){const{requestId:h,arg:{endpointName:v,originalArgs:g}}=u.meta,y=t.endpointDefinitions[v],x=y==null?void 0:y.onQueryStarted;if(x){const S={},b=new Promise((A,k)=>{S.resolve=A,S.reject=k});b.catch(()=>{}),s[h]=S;const w=e.endpoints[v].select(y.type==="query"?g:h),T=c.dispatch((A,k,I)=>I),C={...c,getCacheEntry:()=>w(c.getState()),requestId:h,extra:T,updateCachedData:y.type==="query"?A=>c.dispatch(e.util.updateQueryData(v,g,A)):void 0,queryFulfilled:b};x(g,C)}}else if(o(u)){const{requestId:h,baseQueryMeta:v}=u.meta;(f=s[h])==null||f.resolve({data:u.payload,meta:v}),delete s[h]}else if(a(u)){const{requestId:h,rejectedWithValue:v,baseQueryMeta:g}=u.meta;(d=s[h])==null||d.reject({error:u.payload??u.error,isUnhandledError:!v,meta:g}),delete s[h]}}},Ade=({api:e,context:{apiUid:t},reducerPath:r})=>(n,i)=>{e.util.resetApiState.match(n)&&i.dispatch(e.internalActions.middlewareRegistered(t))},Mde=({api:e,queryThunk:t,internalState:r})=>{const n=`${e.reducerPath}/subscriptions`;let i=null,a=null;const{updateSubscriptionOptions:o,unsubscribeQueryResult:s}=e.internalActions,l=(h,v)=>{var y,x,S;if(o.match(v)){const{queryCacheKey:b,requestId:w,options:T}=v.payload;return(y=h==null?void 0:h[b])!=null&&y[w]&&(h[b][w]=T),!0}if(s.match(v)){const{queryCacheKey:b,requestId:w}=v.payload;return h[b]&&delete h[b][w],!0}if(e.internalActions.removeQueryResult.match(v))return delete h[v.payload.queryCacheKey],!0;if(t.pending.match(v)){const{meta:{arg:b,requestId:w}}=v,T=h[x=b.queryCacheKey]??(h[x]={});return T[`${w}_running`]={},b.subscribe&&(T[w]=b.subscriptionOptions??T[w]??{}),!0}let g=!1;if(t.fulfilled.match(v)||t.rejected.match(v)){const b=h[v.meta.arg.queryCacheKey]||{},w=`${v.meta.requestId}_running`;g||(g=!!b[w]),delete b[w]}if(t.rejected.match(v)){const{meta:{condition:b,arg:w,requestId:T}}=v;if(b&&w.subscribe){const C=h[S=w.queryCacheKey]??(h[S]={});C[T]=w.subscriptionOptions??C[T]??{},g=!0}}return g},u=()=>r.currentSubscriptions,d={getSubscriptions:u,getSubscriptionCount:h=>{const g=u()[h]??{};return Kf(g)},isRequestSubscribed:(h,v)=>{var y;const g=u();return!!((y=g==null?void 0:g[h])!=null&&y[v])}};return(h,v)=>{if(i||(i=JSON.parse(JSON.stringify(r.currentSubscriptions))),e.util.resetApiState.match(h))return i=r.currentSubscriptions={},a=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(h))return[!1,d];const g=l(r.currentSubscriptions,h);let y=!0;if(g){a||(a=setTimeout(()=>{const b=JSON.parse(JSON.stringify(r.currentSubscriptions)),[,w]=vV(i,()=>b);v.next(e.internalActions.subscriptionsUpdated(w)),i=b,a=null},500));const x=typeof h.type=="string"&&!!h.type.startsWith(n),S=t.rejected.match(h)&&h.meta.condition&&!!h.meta.arg.subscribe;y=!x&&!S}return[y,!1]}};function kde(e){const{reducerPath:t,queryThunk:r,api:n,context:i}=e,{apiUid:a}=i,o={invalidateTags:Ln(`${t}/invalidateTags`)},s=f=>f.type.startsWith(`${t}/`),l=[Ade,Sde,bde,_de,Cde,Tde];return{middleware:f=>{let d=!1;const v={...e,internalState:{currentSubscriptions:{}},refetchQuery:c,isThisApiSliceAction:s},g=l.map(S=>S(v)),y=Mde(v),x=wde(v);return S=>b=>{if(!lV(b))return S(b);d||(d=!0,f.dispatch(n.internalActions.middlewareRegistered(a)));const w={...f,next:S},T=f.getState(),[C,A]=y(b,w,T);let k;if(C?k=S(b):k=A,f.getState()[t]&&(x(b,w,T),s(b)||i.hasRehydrationInfo(b)))for(let I of g)I(b,w,T);return k}},actions:o};function c(f,d,h={}){return r({type:"query",endpointName:f.endpointName,originalArgs:f.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:d,...h})}}function Gs(e,...t){return Object.assign(e,...t)}var eN=Symbol(),Y6=({createSelector:e=lM}={})=>({name:eN,init(t,{baseQuery:r,tagTypes:n,reducerPath:i,serializeQueryArgs:a,keepUnusedDataFor:o,refetchOnMountOrArgChange:s,refetchOnFocus:l,refetchOnReconnect:u,invalidationBehavior:c},f){aq();const d=$=>$;Object.assign(t,{reducerPath:i,endpoints:{},internalActions:{onOnline:mk,onOffline:G6,onFocus:gk,onFocusLost:$6},util:{}});const{queryThunk:h,mutationThunk:v,patchQueryData:g,updateQueryData:y,upsertQueryData:x,prefetch:S,buildMatchThunkActions:b}=vde({baseQuery:r,reducerPath:i,context:f,api:t,serializeQueryArgs:a,assertTagType:d}),{reducer:w,actions:T}=gde({context:f,queryThunk:h,mutationThunk:v,reducerPath:i,assertTagType:d,config:{refetchOnFocus:l,refetchOnReconnect:u,refetchOnMountOrArgChange:s,keepUnusedDataFor:o,reducerPath:i,invalidationBehavior:c}});Gs(t.util,{patchQueryData:g,updateQueryData:y,upsertQueryData:x,prefetch:S,resetApiState:T.resetApiState}),Gs(t.internalActions,T);const{middleware:C,actions:A}=kde({reducerPath:i,context:f,queryThunk:h,mutationThunk:v,api:t,assertTagType:d});Gs(t.util,A),Gs(t,{reducer:w,middleware:C});const{buildQuerySelector:k,buildMutationSelector:I,selectInvalidatedBy:P,selectCachedArgsForQuery:R}=mde({serializeQueryArgs:a,reducerPath:i,createSelector:e});Gs(t.util,{selectInvalidatedBy:P,selectCachedArgsForQuery:R});const{buildInitiateQuery:L,buildInitiateMutation:O,getRunningMutationThunk:z,getRunningMutationsThunk:F,getRunningQueriesThunk:H,getRunningQueryThunk:q}=pde({queryThunk:h,mutationThunk:v,api:t,serializeQueryArgs:a,context:f});return Gs(t.util,{getRunningMutationThunk:z,getRunningMutationsThunk:F,getRunningQueryThunk:q,getRunningQueriesThunk:H}),{name:eN,injectEndpoint($,X){var Y;const B=t;(Y=B.endpoints)[$]??(Y[$]={}),H6(X)?Gs(B.endpoints[$],{name:$,select:k($,X),initiate:L($,X)},b(h,$)):fde(X)&&Gs(B.endpoints[$],{name:$,select:I(),initiate:O($)},b(v,$))}}}});Y6();function Ide(e){return e.type==="query"}function Pde(e){return e.type==="mutation"}function wy(e,...t){return Object.assign(e,...t)}function ow(e){return e.replace(e[0],e[0].toUpperCase())}var ff=WeakMap?new WeakMap:void 0,Dde=({endpointName:e,queryArgs:t})=>{let r="";const n=ff==null?void 0:ff.get(t);if(typeof n=="string")r=n;else{const i=JSON.stringify(t,(a,o)=>(o=typeof o=="bigint"?{$bigint:o.toString()}:o,o=So(o)?Object.keys(o).sort().reduce((s,l)=>(s[l]=o[l],s),{}):o,o));So(t)&&(ff==null||ff.set(t,i)),r=i}return`${e}(${r})`},sw=Symbol();function tN(e,t,r,n){const i=G.useMemo(()=>({queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:r,endpointName:n}):e}),[e,t,r,n]),a=G.useRef(i);return G.useEffect(()=>{a.current.serialized!==i.serialized&&(a.current=i)},[i]),a.current.serialized===i.serialized?a.current.queryArgs:e}function lw(e){const t=G.useRef(e);return G.useEffect(()=>{pl(t.current,e)||(t.current=e)},[e]),pl(t.current,e)?t.current:e}var Rde=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Ede=Rde(),Lde=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Ode=Lde(),Nde=()=>Ede||Ode?G.useLayoutEffect:G.useEffect,zde=Nde(),Bde=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:F6.pending}:e;function Fde({api:e,moduleOptions:{batch:t,hooks:{useDispatch:r,useSelector:n,useStore:i},unstable__sideEffectsInRender:a,createSelector:o},serializeQueryArgs:s,context:l}){const u=a?v=>v():G.useEffect;return{buildQueryHooks:d,buildMutationHook:h,usePrefetch:f};function c(v,g,y){if(g!=null&&g.endpointName&&v.isUninitialized){const{endpointName:C}=g,A=l.endpointDefinitions[C];s({queryArgs:g.originalArgs,endpointDefinition:A,endpointName:C})===s({queryArgs:y,endpointDefinition:A,endpointName:C})&&(g=void 0)}let x=v.isSuccess?v.data:g==null?void 0:g.data;x===void 0&&(x=v.data);const S=x!==void 0,b=v.isLoading,w=(!g||g.isLoading||g.isUninitialized)&&!S&&b,T=v.isSuccess||b&&S;return{...v,data:x,currentData:v.data,isFetching:b,isLoading:w,isSuccess:T}}function f(v,g){const y=r(),x=lw(g);return G.useCallback((S,b)=>y(e.util.prefetch(v,S,{...x,...b})),[v,y,x])}function d(v){const g=(S,{refetchOnReconnect:b,refetchOnFocus:w,refetchOnMountOrArgChange:T,skip:C=!1,pollingInterval:A=0,skipPollingIfUnfocused:k=!1}={})=>{const{initiate:I}=e.endpoints[v],P=r(),R=G.useRef(void 0);if(!R.current){const B=P(e.internalActions.internal_getRTKQSubscriptions());R.current=B}const L=tN(C?Wu:S,Dde,l.endpointDefinitions[v],v),O=lw({refetchOnReconnect:b,refetchOnFocus:w,pollingInterval:A,skipPollingIfUnfocused:k}),z=G.useRef(!1),F=G.useRef(void 0);let{queryCacheKey:H,requestId:q}=F.current||{},$=!1;H&&q&&($=R.current.isRequestSubscribed(H,q));const X=!$&&z.current;return u(()=>{z.current=$}),u(()=>{X&&(F.current=void 0)},[X]),u(()=>{var Z;const B=F.current;if(L===Wu){B==null||B.unsubscribe(),F.current=void 0;return}const Y=(Z=F.current)==null?void 0:Z.subscriptionOptions;if(!B||B.arg!==L){B==null||B.unsubscribe();const j=P(I(L,{subscriptionOptions:O,forceRefetch:T}));F.current=j}else O!==Y&&B.updateSubscriptionOptions(O)},[P,I,T,L,O,X]),G.useEffect(()=>()=>{var B;(B=F.current)==null||B.unsubscribe(),F.current=void 0},[]),G.useMemo(()=>({refetch:()=>{var B;if(!F.current)throw new Error(_n(38));return(B=F.current)==null?void 0:B.refetch()}}),[])},y=({refetchOnReconnect:S,refetchOnFocus:b,pollingInterval:w=0,skipPollingIfUnfocused:T=!1}={})=>{const{initiate:C}=e.endpoints[v],A=r(),[k,I]=G.useState(sw),P=G.useRef(void 0),R=lw({refetchOnReconnect:S,refetchOnFocus:b,pollingInterval:w,skipPollingIfUnfocused:T});u(()=>{var F,H;const z=(F=P.current)==null?void 0:F.subscriptionOptions;R!==z&&((H=P.current)==null||H.updateSubscriptionOptions(R))},[R]);const L=G.useRef(R);u(()=>{L.current=R},[R]);const O=G.useCallback(function(z,F=!1){let H;return t(()=>{var q;(q=P.current)==null||q.unsubscribe(),P.current=H=A(C(z,{subscriptionOptions:L.current,forceRefetch:!F})),I(z)}),H},[A,C]);return G.useEffect(()=>()=>{var z;(z=P==null?void 0:P.current)==null||z.unsubscribe()},[]),G.useEffect(()=>{k!==sw&&!P.current&&O(k,!0)},[k,O]),G.useMemo(()=>[O,k],[O,k])},x=(S,{skip:b=!1,selectFromResult:w}={})=>{const{select:T}=e.endpoints[v],C=tN(b?Wu:S,s,l.endpointDefinitions[v],v),A=G.useRef(void 0),k=G.useMemo(()=>o([T(C),(O,z)=>z,O=>C],c,{memoizeOptions:{resultEqualityCheck:pl}}),[T,C]),I=G.useMemo(()=>w?o([k],w,{devModeChecks:{identityFunctionCheck:"never"}}):k,[k,w]),P=n(O=>I(O,A.current),pl),R=i(),L=k(R.getState(),A.current);return zde(()=>{A.current=L},[L]),P};return{useQueryState:x,useQuerySubscription:g,useLazyQuerySubscription:y,useLazyQuery(S){const[b,w]=y(S),T=x(w,{...S,skip:w===sw}),C=G.useMemo(()=>({lastArg:w}),[w]);return G.useMemo(()=>[b,T,C],[b,T,C])},useQuery(S,b){const w=g(S,b),T=x(S,{selectFromResult:S===Wu||b!=null&&b.skip?void 0:Bde,...b}),{data:C,status:A,isLoading:k,isSuccess:I,isError:P,error:R}=T;return G.useDebugValue({data:C,status:A,isLoading:k,isSuccess:I,isError:P,error:R}),G.useMemo(()=>({...T,...w}),[T,w])}}}function h(v){return({selectFromResult:g,fixedCacheKey:y}={})=>{const{select:x,initiate:S}=e.endpoints[v],b=r(),[w,T]=G.useState();G.useEffect(()=>()=>{w!=null&&w.arg.fixedCacheKey||w==null||w.reset()},[w]);const C=G.useCallback(function(Y){const Z=b(S(Y,{fixedCacheKey:y}));return T(Z),Z},[b,S,y]),{requestId:A}=w||{},k=G.useMemo(()=>x({fixedCacheKey:y,requestId:w==null?void 0:w.requestId}),[y,w,x]),I=G.useMemo(()=>g?o([k],g):k,[g,k]),P=n(I,pl),R=y==null?w==null?void 0:w.arg.originalArgs:void 0,L=G.useCallback(()=>{t(()=>{w&&T(void 0),y&&b(e.internalActions.removeMutationResult({requestId:A,fixedCacheKey:y}))})},[b,y,w,A]),{endpointName:O,data:z,status:F,isLoading:H,isSuccess:q,isError:$,error:X}=P;G.useDebugValue({endpointName:O,data:z,status:F,isLoading:H,isSuccess:q,isError:$,error:X});const B=G.useMemo(()=>({...P,originalArgs:R,reset:L}),[P,R,L]);return G.useMemo(()=>[C,B],[C,B])}}}var Vde=Symbol(),$de=({batch:e=GX,hooks:t={useDispatch:OV,useSelector:AV,useStore:LV},createSelector:r=lM,unstable__sideEffectsInRender:n=!1,...i}={})=>({name:Vde,init(a,{serializeQueryArgs:o},s){const l=a,{buildQueryHooks:u,buildMutationHook:c,usePrefetch:f}=Fde({api:a,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:n,createSelector:r},serializeQueryArgs:o,context:s});return wy(l,{usePrefetch:f}),wy(s,{batch:e}),{injectEndpoint(d,h){if(Ide(h)){const{useQuery:v,useLazyQuery:g,useLazyQuerySubscription:y,useQueryState:x,useQuerySubscription:S}=u(d);wy(l.endpoints[d],{useQuery:v,useLazyQuery:g,useLazyQuerySubscription:y,useQueryState:x,useQuerySubscription:S}),a[`use${ow(d)}Query`]=v,a[`useLazy${ow(d)}Query`]=g}else if(Pde(h)){const v=c(d);wy(l.endpoints[d],{useMutation:v}),a[`use${ow(d)}Mutation`]=v}}}}}),Gde=U6(Y6(),$de());const Hde=(e,t,r)=>cde(window.baseUrl?{baseUrl:window.baseUrl,credentials:"include"}:void 0)(e,t,r),g1=Gde({baseQuery:Hde,endpoints:e=>({getStats:e.query({query:()=>"stats/requests",transformResponse:$f}),getTasks:e.query({query:()=>"tasks",transformResponse:$f}),getExceptions:e.query({query:()=>"exceptions",transformResponse:$f}),getLogs:e.query({query:()=>"logs",transformResponse:$f}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:Wfe(PE(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})}),updateUserSettings:e.mutation({query:t=>({url:"user",method:"POST",body:PE(t)})})})}),{useGetStatsQuery:Wde,useGetTasksQuery:jde,useGetExceptionsQuery:Ude,useGetLogsQuery:Yde,useStartSwarmMutation:qde,useUpdateUserSettingsMutation:Xde}=g1;function Cg(e,{payload:t}){return Hfe(e,t)}const Zde=go,q6=Ui({name:"swarm",initialState:Zde,reducers:{setSwarm:Cg}}),xk=q6.actions,Kde=q6.reducer;function Qde({availableTasks:e,userToEdit:t,handleEditUser:r}){const{tasks:n,...i}=t.userClass;return N.jsx(B6,{onSubmit:r,children:N.jsxs(Bt,{sx:{display:"flex",flexDirection:"column",rowGap:4,my:2},children:[N.jsx(Et,{children:`${t.userClassName} Settings`}),N.jsx(rk,{defaultValue:n,label:"Tasks",multiple:!0,name:"tasks",options:e}),Object.entries(i).map(([a,o])=>N.jsx(vd,{defaultValue:o,inputProps:{"data-type":typeof o=="number"?"number":"text"},label:$T(a),name:a},`user-to-edit-${a}`)),N.jsx(_o,{size:"large",type:"submit",variant:"contained",children:"Save"})]})})}function Jde({availableUserClasses:e,availableUserTasks:t,selectedUserClasses:r,setSelectedUserClasses:n,setSwarm:i,users:a}){const[o,s]=G.useState(!1),[l,u]=G.useState(),[c]=Xde(),f=y=>{l&&(i({users:{...a,[l.userClassName]:y}}),c({...y,userClassName:l.userClassName}),s(!1))},d=y=>()=>r.includes(y)?n(r.filter(x=>x!==y)):n(r.concat(y)),h=r.length,v=e.length,g=y=>y.target.checked?n(e):n([]);return N.jsxs(N.Fragment,{children:[N.jsx(Bt,{sx:{position:"relative",border:"1px",borderColor:"divider",borderStyle:"solid",padding:2,borderRadius:1},children:N.jsxs(Bt,{sx:{maxHeight:"30vh",overflow:"auto"},children:[N.jsx(Vx,{shrink:!0,sx:{position:"absolute",backgroundColor:"background.paper",width:"fit-content",top:"0",marginTop:"-5px",padding:"0 5px"},children:"User Classes"}),N.jsx(N$,{children:N.jsx(X$,{component:gs,children:N.jsxs(Y$,{children:[N.jsx(Z$,{children:N.jsx(d1,{children:N.jsx(zu,{colSpan:4,padding:"checkbox",children:N.jsx(e2,{checked:v>0&&h===v,indeterminate:h>0&&h<v,onChange:g})})})}),N.jsx(q$,{children:Object.entries(a).map(([y,x])=>N.jsxs(d1,{hover:!0,children:[N.jsx(zu,{onClick:d(y),padding:"checkbox",children:N.jsx(e2,{checked:r.includes(y)})}),N.jsx(zu,{children:y}),N.jsx(zu,{children:N.jsx(Et,{variant:"subtitle2",children:x.host})}),N.jsx(zu,{align:"right",children:N.jsx(Cc,{onClick:()=>{s(!o),u({userClass:x,userClassName:y})},children:N.jsx(ede,{})})})]},`user-class-${y}`))})]})})})]})}),N.jsx(Ux,{onClose:()=>s(!1),open:o,children:l&&N.jsx(Qde,{availableTasks:t[l.userClassName],handleEditUser:f,userToEdit:l})})]})}const ehe={setSwarm:xk.setSwarm},the=({swarm:{availableUserTasks:e,users:t}})=>({availableUserTasks:e,users:t}),rhe=Ii(the,ehe)(Jde);function nhe({availableShapeClasses:e,availableUserClasses:t,host:r,extraOptions:n,hideCommonOptions:i,shapeUseCommonOptions:a,numUsers:o,userCount:s,overrideHostWarning:l,runTime:u,setSwarm:c,showUserclassPicker:f,spawnRate:d,alert:h,isDisabled:v=!1,isEditSwarm:g=!1,onFormChange:y,onFormSubmit:x,advancedOptions:S}){const[b]=qde(),[w,T]=G.useState(""),[C,A]=G.useState(t),k=async R=>{const{data:L}=await b({...R,...f&&C?{userClasses:C}:{}});L&&L.success?c({state:bn.RUNNING,host:R.host||r,runTime:R.runTime,spawnRate:R.spawnRate,userCount:R.userCount}):T(L?L.message:"An unknown error occured."),x&&x(R)},I=R=>{w&&T(""),y&&y(R)},P=R=>{if(!a){const L=R.target.value!==e[0];c({hideCommonOptions:L})}};return N.jsxs(bg,{maxWidth:"md",sx:{my:2},children:[N.jsx(Et,{component:"h2",noWrap:!0,variant:"h6",children:g?"Edit running load test":"Start new load test"}),!g&&f&&N.jsx(Bt,{marginBottom:2,marginTop:2,children:N.jsx(rhe,{availableUserClasses:t,selectedUserClasses:C,setSelectedUserClasses:A})}),N.jsx(B6,{onChange:I,onSubmit:k,children:N.jsxs(Bt,{sx:{marginBottom:2,marginTop:2,display:"flex",flexDirection:"column",rowGap:4},children:[!g&&f&&N.jsx(rk,{label:"Shape Class",name:"shapeClass",onChange:P,options:e}),N.jsx(VO,{defaultValue:i&&"0"||s||o||1,disabled:!!i,label:"Number of users (peak concurrency)",name:"userCount",required:!0,title:i?"Disabled for tests using LoadTestShape class":""}),N.jsx(VO,{defaultValue:i&&"0"||d||1,disabled:!!i,label:"Ramp up (users started/second)",name:"spawnRate",required:!0,title:i?"Disabled for tests using LoadTestShape class":""}),!g&&N.jsxs(N.Fragment,{children:[N.jsx(vd,{defaultValue:r,label:`Host ${l?"(setting this will override the host for the User classes)":""}`,name:"host"}),N.jsxs(BM,{children:[N.jsx(VM,{expandIcon:N.jsx(vk,{}),children:N.jsx(Et,{children:"Advanced options"})}),N.jsxs(FM,{children:[N.jsx(vd,{defaultValue:u,disabled:!!i,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"},title:i?"Disabled for tests using LoadTestShape class":""}),S&&N.jsx(Bt,{sx:{display:"flex",flexDirection:"column",rowGap:4,mt:4},children:S.map((R,L)=>G.createElement(pk,{...R,key:`advanced-parameter-${L}`}))})]})]})]}),!!n&&!z6(n)&&N.jsx(Kfe,{extraOptions:n}),h&&!w&&N.jsx(tl,{severity:h.level||"info",children:h.message}),w&&N.jsx(tl,{severity:"error",children:w}),N.jsx(_o,{disabled:v,size:"large",type:"submit",variant:"contained",children:g?"Update":"Start"})]})})]})}const ihe=({swarm:{availableShapeClasses:e,availableUserClasses:t,extraOptions:r,hideCommonOptions:n,shapeUseCommonOptions:i,host:a,numUsers:o,userCount:s,overrideHostWarning:l,runTime:u,spawnRate:c,showUserclassPicker:f}})=>({availableShapeClasses:e,availableUserClasses:t,extraOptions:r,hideCommonOptions:n,shapeUseCommonOptions:i,host:a,overrideHostWarning:l,showUserclassPicker:f,numUsers:o,userCount:s,runTime:u,spawnRate:c}),ahe={setSwarm:xk.setSwarm},Sk=Ii(ihe,ahe)(nhe);function ohe(e){const[t,r]=G.useState(!1),{hideCommonOptions:n}=fi(({swarm:i})=>i);return N.jsxs(N.Fragment,{children:[N.jsx(j$,{title:n?"Disabled for tests using LoadTestShape class":"",children:N.jsx(Bt,{children:N.jsx(_o,{color:"secondary",disabled:!!n,onClick:()=>r(!0),sx:{minHeight:"100%"},type:"button",variant:"contained",children:"Edit"})})}),N.jsx(Ux,{onClose:()=>r(!1),open:t,children:N.jsx(Sk,{...e,isEditSwarm:!0,onFormSubmit:()=>r(!1)})})]})}function she(e){const[t,r]=G.useState(!1);return N.jsxs(N.Fragment,{children:[N.jsx(_o,{color:"success",onClick:()=>r(!0),type:"button",variant:"contained",children:"New"}),N.jsx(Ux,{onClose:()=>r(!1),open:t,children:N.jsx(Sk,{...e})})]})}function lhe(){const e=()=>{fetch((window.baseUrl?`${window.baseUrl}/`:"")+"stats/reset",window.baseUrl?{credentials:"include"}:void 0)};return N.jsx(_o,{color:"warning",onClick:e,type:"button",variant:"contained",children:"Reset"})}function uhe(){const[e,t]=G.useState(!1);G.useEffect(()=>{t(!1)},[]);const r=()=>{fetch((window.baseUrl?`${window.baseUrl}/`:"")+"stop",window.baseUrl?{credentials:"include"}:void 0),t(!0)};return N.jsx(_o,{color:"error",disabled:e,onClick:r,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function rN(){const e=fi(({swarm:t})=>t.state);return e===bn.READY?null:N.jsxs(Bt,{sx:{display:"flex",columnGap:2,marginY:"auto",height:"50px"},children:[e===bn.STOPPED?N.jsx(she,{}):N.jsxs(N.Fragment,{children:[N.jsx(ohe,{}),N.jsx(uhe,{})]}),N.jsx(lhe,{})]})}function che(){const e=Io(),[t,r]=G.useState(!1);G.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 N.jsxs(N.Fragment,{children:[N.jsx(Ree,{position:"static",children:N.jsx(bg,{maxWidth:"xl",children:N.jsxs(Loe,{disableGutters:!0,sx:{display:"flex",justifyContent:"space-between",columnGap:2},children:[N.jsx(Kr,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center"},underline:"none",children:N.jsx(K$,{})}),N.jsx(Cc,{"aria-label":"menu",color:"inherit",edge:"start",onClick:n(!0),sx:{display:{xs:"block",md:"none"}},children:N.jsx(Gfe,{})}),N.jsxs(Bt,{sx:{display:{xs:"none",md:"flex"},columnGap:{md:2,lg:6}},children:[N.jsx(BO,{}),N.jsx(rN,{}),N.jsx(f2,{})]})]})})}),N.jsx(Lne,{anchor:"right",onClose:n(!1),open:t,children:N.jsxs(Bt,{sx:{display:"flex",flexDirection:"column",columnGap:{md:2,lg:6},rowGap:2,p:2,maxWidth:"100vw"},children:[N.jsx(Bt,{sx:{display:"flex",justifyContent:"flex-end"},children:N.jsx(f2,{})}),N.jsx(rN,{}),N.jsx(BO,{})]})})]})}function fhe({children:e}){return N.jsxs(N.Fragment,{children:[N.jsxs(Bt,{sx:{minHeight:"calc(100vh - var(--footer-height))"},children:[N.jsx(che,{}),N.jsx("main",{children:e})]}),N.jsx(Ffe,{})]})}const X6=e=>e.includes("WARNING")||e.includes("ERROR")||e.includes("CRITICAL"),Z6="logViewer";function qx(e,t,{shouldRunInterval:r,immediate:n}={shouldRunInterval:!0,immediate:!1}){const i=G.useRef(e);G.useEffect(()=>{i.current=e},[e]),G.useEffect(()=>{if(!r)return;n&&i.current();const a=setInterval(()=>i.current(),t);return()=>{clearInterval(a)}},[t,r])}const dhe={},K6=Ui({name:"notification",initialState:dhe,reducers:{setNotification:Cg}}),Q6=K6.actions,hhe=K6.reducer;function phe(e,{key:t,shouldNotify:r}){const n=Zo(Q6.setNotification),i=fi(({url:{query:o}})=>o&&o.tab),a=`${t}Notification`;G.useEffect(()=>{e.length>0&&e.length<localStorage[a]&&(localStorage[a]=e.length),e.length>(localStorage[a]||0)&&(!i||i!==t)&&(!r||r&&r(a))&&(n({[t]:!0}),localStorage[a]=e.length)},[e])}const vhe={master:[],workers:{}},J6=Ui({name:"logViewer",initialState:vhe,reducers:{setLogs:Cg}}),ghe=J6.actions,mhe=J6.reducer,eG=e=>e.reduce((t,r)=>t.concat(Array.isArray(r)?eG(r):r),[]),yhe={master:[],workers:{}};function xhe(){const e=fi(({swarm:l})=>l),t=Zo(ghe.setLogs),{data:r,refetch:n}=Yde(),i=r||yhe,a=G.useMemo(()=>eG(Object.values(i.workers)),[i.workers]),o=G.useMemo(()=>[...i.master].concat(a),[i.master,i.workers]),s=G.useCallback(l=>o.slice(localStorage[l]).some(X6),[o]);return qx(n,5e3,{shouldRunInterval:e.state===bn.SPAWNING||e.state==bn.RUNNING}),phe(o,{key:Z6,shouldNotify:s}),G.useEffect(()=>{t(i)},[i]),i}var Jh={},nN;function She(){if(nN)return Jh;nN=1;var e=El();Object.defineProperty(Jh,"__esModule",{value:!0}),Jh.default=void 0;var t=e(Ll()),r=vs(),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 Jh.default=n,Jh}var bhe=She();const tG=ki(bhe);function _he(e,t){const r=t?-1:1;return function(n,i){const a=n[e],o=i[e];return a<o?r*-1:a>o?r*1:0}}function whe(e,{hasTotalRow:t=!1,defaultSortKey:r="name"}={hasTotalRow:!1,defaultSortKey:"name"}){const[n,i]=G.useState(e),[a,o]=G.useState(!1),s=G.useRef(),l=c=>{const d=(t?e.slice(0,-1):[...e]).sort(_he(c,c===s.current&&!a));i(t?[...d,...e.slice(-1)]:d)},u=G.useCallback(c=>{s.current||(s.current=r);const f=c.target.getAttribute("data-sortkey");if(f===s.current)if(a){o(!1),s.current=void 0,l(r);return}else o(!0);else a&&o(!1);l(f),s.current=f},[s,e,a]);return G.useEffect(()=>{e.length?l(s.current||r):l.length&&i(e)},[e]),{onTableHeadClick:u,sortedRows:n,currentSortField:s.current}}const Lp=(e,t=0)=>{const r=Math.pow(10,t);return Math.round(e*r)/r};function Che({content:e,formatter:t,round:r,markdown:n}){return t?t(e):r?Lp(e,r):n?N.jsx(Hu,{content:e}):e}function Tg({rows:e,structure:t,hasTotalRow:r,defaultSortKey:n}){const{onTableHeadClick:i,sortedRows:a,currentSortField:o}=whe(e,{hasTotalRow:r,defaultSortKey:n});return N.jsx(X$,{component:gs,children:N.jsxs(Y$,{children:[N.jsx(Z$,{sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper"},children:N.jsx(d1,{children:t.map(({title:s,key:l})=>N.jsx(zu,{"data-sortkey":l,onClick:i,sx:{cursor:"pointer",color:o===l?"primary.main":"text.primary"},children:s},`table-head-${l}`))})}),N.jsx(q$,{children:a.map((s,l)=>N.jsx(d1,{children:t.map(({key:u,...c},f)=>N.jsx(zu,{children:N.jsx(Che,{content:s[u],...c})},`table-row=${f}`))},`${s.name}-${l}`))})]})})}function The({rows:e,tableStructure:t}){return t?N.jsx(Tg,{rows:e,structure:t}):null}const Ahe=({swarm:{extendedTables:e},ui:{extendedStats:t},url:{query:r}})=>{const n=r&&r.tab&&e&&e.find(({key:a})=>a===r.tab),i=r&&r.tab&&t&&t.find(({key:a})=>a===r.tab);return{tableStructure:n?n.structure.map(({key:a,...o})=>({key:zV(a),...o})):null,rows:i?i.data:[]}},Mhe=Ii(Ahe)(The),khe=[{key:"count",title:"# occurrences"},{key:"msg",title:"Message",markdown:!0},{key:"traceback",title:"Traceback",markdown:!0}];function Ihe({exceptions:e}){return N.jsx(Tg,{rows:e,structure:khe})}const Phe=({ui:{exceptions:e}})=>({exceptions:e}),Dhe=Ii(Phe)(Ihe),Rhe={totalRps:0,failRatio:0,startTime:"",stats:[],errors:[],exceptions:[],charts:(go.history||[]).reduce(Yx,{}),ratios:{},userCount:0};var aV;const Ehe=(aV=go.percentilesToChart)==null?void 0:aV.reduce((e,t)=>({...e,[`responseTimePercentile${t}`]:{value:null}}),{}),Lhe=e=>Yx(e,{...Ehe,currentRps:{value:null},currentFailPerSec:{value:null},totalAvgResponseTime:{value:null},userCount:{value:null},time:""}),rG=Ui({name:"ui",initialState:Rhe,reducers:{setUi:Cg,updateCharts:(e,{payload:t})=>({...e,charts:Yx(e.charts,t)}),updateChartMarkers:(e,{payload:t})=>({...e,charts:{...Lhe(e.charts),markers:e.charts.markers?[...e.charts.markers,t]:[(e.charts.time||[""])[0],t]}})}}),av=rG.actions,Ohe=rG.reducer,Nhe=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)},zhe=()=>window.location.search?WX(window.location.search):null,Bhe={query:zhe()},nG=Ui({name:"url",initialState:Bhe,reducers:{setUrl:Cg}}),Fhe=nG.actions,Vhe=nG.reducer,$he=hx({[g1.reducerPath]:g1.reducer,logViewer:mhe,notification:hhe,swarm:Kde,theme:O6,ui:Ohe,url:Vhe}),Ghe=SV({reducer:$he,middleware:e=>e().concat(g1.middleware)});/*! *****************************************************************************
|
156
|
-
Copyright (c) Microsoft Corporation.
|
157
|
-
|
158
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
159
|
-
purpose with or without fee is hereby granted.
|
160
|
-
|
161
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
162
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
163
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
164
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
165
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
166
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
167
|
-
PERFORMANCE OF THIS SOFTWARE.
|
168
|
-
***************************************************************************** */var p2=function(e,t){return p2=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])},p2(e,t)};function J(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");p2(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Hhe=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Whe=function(){function e(){this.browser=new Hhe,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}(),yt=new Whe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(yt.wxa=!0,yt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?yt.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(yt.node=!0,yt.svgSupported=!0):jhe(navigator.userAgent,yt);function jhe(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(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 bk=12,iG="sans-serif",_l=bk+"px "+iG,Uhe=20,Yhe=100,qhe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Xhe(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)-Uhe)/Yhe;t[n]=i}return t}var Zhe=Xhe(qhe),wl={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var i=wl.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||_l),e.measureText(r);r=r||"",n=n||_l;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||bk,s=0;if(n.indexOf("mono")>=0)s=o*r.length;else for(var l=0;l<r.length;l++){var u=Zhe[r[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(e,t,r){var n=new Image;return n.onload=t,n.onerror=r,n.src=e,n}},aG=Co(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),oG=Co(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),Dd=Object.prototype.toString,Xx=Array.prototype,Khe=Xx.forEach,Qhe=Xx.filter,_k=Xx.slice,Jhe=Xx.map,iN=(function(){}).constructor,Cy=iN?iN.prototype:null,wk="__proto__",epe=2311;function sG(){return epe++}function Ck(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function We(e){if(e==null||typeof e!="object")return e;var t=e,r=Dd.call(e);if(r==="[object Array]"){if(!ov(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=We(e[n])}}else if(oG[r]){if(!ov(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}}}else if(!aG[r]&&!ov(e)&&!gd(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==wk&&(t[o]=We(e[o]))}return t}function rt(e,t,r){if(!Ge(t)||!Ge(e))return r?We(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==wk){var i=e[n],a=t[n];Ge(a)&&Ge(i)&&!ue(a)&&!ue(i)&&!gd(a)&&!gd(i)&&!aN(a)&&!aN(i)&&!ov(a)&&!ov(i)?rt(i,a,r):(r||!(n in e))&&(e[n]=We(t[n]))}return e}function Tk(e,t){for(var r=e[0],n=1,i=e.length;n<i;n++)r=rt(r,e[n],t);return r}function oe(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==wk&&(e[r]=t[r]);return e}function Ve(e,t,r){for(var n=St(t),i=0;i<n.length;i++){var a=n[i];(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}return e}function ft(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 tpe(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 Lr(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 a=n[i];a!=="constructor"&&(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else Ve(e,t,r)}function wn(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function V(e,t,r){if(e&&t)if(e.forEach&&e.forEach===Khe)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 a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function de(e,t,r){if(!e)return[];if(!t)return Ak(e);if(e.map&&e.map===Jhe)return e.map(t,r);for(var n=[],i=0,a=e.length;i<a;i++)n.push(t.call(r,e[i],i,e));return n}function Co(e,t,r,n){if(e&&t){for(var i=0,a=e.length;i<a;i++)r=t.call(n,r,e[i],i,e);return r}}function jt(e,t,r){if(!e)return[];if(!t)return Ak(e);if(e.filter&&e.filter===Qhe)return e.filter(t,r);for(var n=[],i=0,a=e.length;i<a;i++)t.call(r,e[i],i,e)&&n.push(e[i]);return n}function rpe(e,t,r){if(e&&t){for(var n=0,i=e.length;n<i;n++)if(t.call(r,e[n],n,e))return e[n]}}function St(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 npe(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(_k.call(arguments)))}}var Ae=Cy&&Be(Cy.bind)?Cy.call.bind(Cy.bind):npe;function Je(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(_k.call(arguments)))}}function ue(e){return Array.isArray?Array.isArray(e):Dd.call(e)==="[object Array]"}function Be(e){return typeof e=="function"}function we(e){return typeof e=="string"}function v2(e){return Dd.call(e)==="[object String]"}function Dt(e){return typeof e=="number"}function Ge(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function aN(e){return!!aG[Dd.call(e)]}function ui(e){return!!oG[Dd.call(e)]}function gd(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Zx(e){return e.colorStops!=null}function ipe(e){return e.image!=null}function ape(e){return Dd.call(e)==="[object RegExp]"}function zv(e){return e!==e}function Jr(){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 Qe(e,t){return e??t}function mo(e,t,r){return e??t??r}function Ak(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return _k.apply(e,t)}function Mk(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 zn(e,t){if(!e)throw new Error(t)}function Aa(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var lG="__ec_primitive__";function m1(e){e[lG]=!0}function ov(e){return e[lG]}var ope=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 St(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),uG=typeof Map=="function";function spe(){return uG?new Map:new ope}var lpe=function(){function e(t){var r=ue(t);this.data=spe();var n=this;t instanceof e?t.each(i):t&&V(t,i);function i(a,o){r?n.set(a,o):n.set(o,a)}}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 uG?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function Oe(e){return new lpe(e)}function y1(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 Kx(e,t){var r;if(Object.create)r=Object.create(e);else{var n=function(){};n.prototype=e,r=new n}return t&&oe(r,t),r}function cG(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Pe(e,t){return e.hasOwnProperty(t)}function Mr(){}var R0=180/Math.PI;function Ac(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Dn(e,t){return e[0]=t[0],e[1]=t[1],e}function Jo(e){return[e[0],e[1]]}function upe(e,t,r){return e[0]=t,e[1]=r,e}function oN(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function g2(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e}function ju(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function m2(e){return Math.sqrt(cpe(e))}function cpe(e){return e[0]*e[0]+e[1]*e[1]}function E0(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Rd(e,t){var r=m2(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function y2(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var al=y2;function fpe(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var ec=fpe;function L0(e,t,r,n){return e[0]=t[0]+n*(r[0]-t[0]),e[1]=t[1]+n*(r[1]-t[1]),e}function un(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 ol(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function sl(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var df=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),dpe=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 df(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,r.drift(a,o,t),this.handler.dispatchToElement(new df(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 df(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new df(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new df(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new df(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),sa=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(i=n,n=r,r=null),!n||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var l={h:n,query:r,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,c=a[t][u];return c&&c.callAtLast?a[t].splice(u,0,l):a[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=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==r&&i.push(n[t][a]);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],a=this._$eventProcessor;if(i)for(var o=r.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,r[0]);break;case 2:u.h.call(u.ctx,r[0],r[1]);break;default:u.h.apply(u.ctx,r);break}}return a&&a.afterTrigger&&a.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],a=this._$eventProcessor;if(i)for(var o=r.length,s=r[o-1],l=i.length,u=0;u<l;u++){var c=i[u];if(!(a&&a.filter&&c.query!=null&&!a.filter(t,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,r[0]);break;case 2:c.h.call(s,r[0],r[1]);break;default:c.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e}(),hpe=Math.log(2);function x2(e,t,r,n,i,a){var o=n+"-"+i,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/hpe);return e[r][l]}for(var u=n|1<<r,c=r+1;n&1<<c;)c++;for(var f=0,d=0,h=0;d<s;d++){var v=1<<d;v&i||(f+=(h%2?-1:1)*e[r][d]*x2(e,t-1,c,u,i|v,a),h++)}return a[o]=f,f}function sN(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=x2(r,8,0,0,0,n);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*x2(r,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,c){var f=u*a[6]+c*a[7]+1;l[0]=(u*a[0]+c*a[1]+a[2])/f,l[1]=(u*a[3]+c*a[4]+a[5])/f}}}var lN="___zrEVENTSAVED",uw=[];function ppe(e,t,r,n,i){return S2(uw,t,n,i,!0)&&S2(e,r,uw[0],uw[1])}function S2(e,t,r,n,i){if(t.getBoundingClientRect&&yt.domSupported&&!fG(t)){var a=t[lN]||(t[lN]={}),o=vpe(t,a),s=gpe(o,a,i);if(s)return s(e,r,n),!0}return!1}function vpe(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>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[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function gpe(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),f=2*u,d=c.left,h=c.top;o.push(d,h),l=l&&a&&d===a[f]&&h===a[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?sN(s,o):sN(o,s))}function fG(e){return e.nodeName.toUpperCase()==="CANVAS"}var mpe=/([&<>"'])/g,ype={"&":"&","<":"<",">":">",'"':""","'":"'"};function Jn(e){return e==null?"":(e+"").replace(mpe,function(t,r){return ype[r]})}var xpe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cw=[],Spe=yt.browser.firefox&&+yt.browser.version.split(".")[0]<39;function b2(e,t,r,n){return r=r||{},n?uN(e,t,r):Spe&&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):uN(e,t,r),r}function uN(e,t,r){if(yt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(fG(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(S2(cw,e,n,i)){r.zrX=cw[0],r.zrY=cw[1];return}}r.zrX=r.zrY=0}function kk(e){return e||window.event}function $i(e,t,r){if(t=kk(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&b2(e,o,t,r)}else{b2(e,t,t,r);var a=bpe(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&xpe.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function bpe(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),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function _2(e,t,r,n){e.addEventListener(t,r,n)}function _pe(e,t,r,n){e.removeEventListener(t,r,n)}var ss=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function cN(e){return e.which===2||e.which===3}var wpe=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 a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=b2(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in fw)if(fw.hasOwnProperty(r)){var n=fw[r](this._track,t);if(n)return n}},e}();function fN(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function Cpe(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var fw={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 a=fN(n)/fN(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Cpe(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function wi(){return[1,0,0,1,0,0]}function Qx(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function Ik(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 es(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=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]=a,e[3]=o,e[4]=s,e[5]=l,e}function To(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 Mc(e,t,r,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(r),f=Math.cos(r);return e[0]=i*f+s*c,e[1]=-i*c+s*f,e[2]=a*f+l*c,e[3]=-a*c+f*l,e[4]=f*(o-n[0])+c*(u-n[1])+n[0],e[5]=f*(u-n[1])-c*(o-n[0])+n[1],e}function Pk(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 Ed(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}function Tpe(e){var t=wi();return Ik(t,e),t}var et=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 a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}(),Ty=Math.min,Ay=Math.max,ru=new et,nu=new et,iu=new et,au=new et,ep=new et,tp=new et,nt=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=Ty(t.x,this.x),n=Ty(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ay(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ay(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,a=wi();return To(a,a,[-r.x,-r.y]),Pk(a,a,[n,i]),To(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,f=t.y+t.height,d=!(a<l||u<i||s<c||f<o);if(r){var h=1/0,v=0,g=Math.abs(a-l),y=Math.abs(u-i),x=Math.abs(s-c),S=Math.abs(f-o),b=Math.min(g,y),w=Math.min(x,S);a<l||u<i?b>v&&(v=b,g<y?et.set(tp,-g,0):et.set(tp,y,0)):b<h&&(h=b,g<y?et.set(ep,g,0):et.set(ep,-y,0)),s<c||f<o?w>v&&(v=w,x<S?et.set(tp,0,-x):et.set(tp,0,S)):b<h&&(h=b,x<S?et.set(ep,0,x):et.set(ep,0,-S))}return r&&et.copy(r,d?ep:tp),d},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],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}ru.x=iu.x=r.x,ru.y=au.y=r.y,nu.x=au.x=r.x+r.width,nu.y=iu.y=r.y+r.height,ru.transform(n),au.transform(n),nu.transform(n),iu.transform(n),t.x=Ty(ru.x,nu.x,iu.x,au.x),t.y=Ty(ru.y,nu.y,iu.y,au.y);var l=Ay(ru.x,nu.x,iu.x,au.x),u=Ay(ru.y,nu.y,iu.y,au.y);t.width=l-t.x,t.height=u-t.y},e}(),dG="silent";function Ape(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:Mpe}}function Mpe(){ss(this.event)}var kpe=function(e){J(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}(sa),rp=function(){function e(t,r){this.x=t,this.y=r}return e}(),Ipe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],dw=new nt(0,0,0,0),hG=function(e){J(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new rp(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new kpe,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new dpe(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(V(Ipe,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,a=pG(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new rp(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==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 rp(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 a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=Ape(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new rp(r,n);if(dN(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new nt(r-u,n-u,l,l),f=a.length-1;f>=0;f--){var d=a[f];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(dw.copy(d.getBoundingRect()),d.transform&&dw.applyTransform(d.transform),dw.intersect(c)&&s.push(d))}if(s.length)for(var h=4,v=Math.PI/12,g=Math.PI*2,y=0;y<u;y+=h)for(var x=0;x<g;x+=v){var S=r+y*Math.cos(x),b=n+y*Math.sin(x);if(dN(s,o,S,b,i),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new wpe);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;r.gestureEvent=o;var s=new rp;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(sa);V(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){hG.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=pG(this,r,n),a,o;if((e!=="mouseup"||!i)&&(a=this.findHover(r,n),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||al(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function Ppe(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?dG:!0}return!1}function dN(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=Ppe(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==dG)){t.target=o;break}}}function pG(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var vG=32,np=7;function Dpe(e){for(var t=0;e>=vG;)t|=e&1,e>>=1;return e+t}function hN(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++;Rpe(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function Rpe(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function pN(e,t,r,n,i){for(n===t&&n++;n<r;n++){for(var a=e[n],o=t,s=n,l;o<s;)l=o+s>>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function hw(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-i;l<s&&a(e,t[r+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(e,t[r+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var c=o+(l-o>>>1);a(e,t[r+c])>0?o=c+1:l=c}return l}function pw(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;l<s&&a(e,t[r+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(e,t[r+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var c=o+(l-o>>>1);a(e,t[r+c])<0?l=c:o=c+1}return l}function Epe(e,t){var r=np,n,i,a=0,o=[];n=[],i=[];function s(h,v){n[a]=h,i[a]=v,a+=1}function l(){for(;a>1;){var h=a-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;c(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]<i[h+1]&&h--,c(h)}}function c(h){var v=n[h],g=i[h],y=n[h+1],x=i[h+1];i[h]=g+x,h===a-3&&(n[h+1]=n[h+2],i[h+1]=i[h+2]),a--;var S=pw(e[y],e,v,g,0,t);v+=S,g-=S,g!==0&&(x=hw(e[v+g-1],e,y,x,x-1,t),x!==0&&(g<=x?f(v,g,y,x):d(v,g,y,x)))}function f(h,v,g,y){var x=0;for(x=0;x<v;x++)o[x]=e[h+x];var S=0,b=g,w=h;if(e[w++]=e[b++],--y===0){for(x=0;x<v;x++)e[w+x]=o[S+x];return}if(v===1){for(x=0;x<y;x++)e[w+x]=e[b+x];e[w+y]=o[S];return}for(var T=r,C,A,k;;){C=0,A=0,k=!1;do if(t(e[b],o[S])<0){if(e[w++]=e[b++],A++,C=0,--y===0){k=!0;break}}else if(e[w++]=o[S++],C++,A=0,--v===1){k=!0;break}while((C|A)<T);if(k)break;do{if(C=pw(e[b],o,S,v,0,t),C!==0){for(x=0;x<C;x++)e[w+x]=o[S+x];if(w+=C,S+=C,v-=C,v<=1){k=!0;break}}if(e[w++]=e[b++],--y===0){k=!0;break}if(A=hw(o[S],e,b,y,0,t),A!==0){for(x=0;x<A;x++)e[w+x]=e[b+x];if(w+=A,b+=A,y-=A,y===0){k=!0;break}}if(e[w++]=o[S++],--v===1){k=!0;break}T--}while(C>=np||A>=np);if(k)break;T<0&&(T=0),T+=2}if(r=T,r<1&&(r=1),v===1){for(x=0;x<y;x++)e[w+x]=e[b+x];e[w+y]=o[S]}else{if(v===0)throw new Error;for(x=0;x<v;x++)e[w+x]=o[S+x]}}function d(h,v,g,y){var x=0;for(x=0;x<y;x++)o[x]=e[g+x];var S=h+v-1,b=y-1,w=g+y-1,T=0,C=0;if(e[w--]=e[S--],--v===0){for(T=w-(y-1),x=0;x<y;x++)e[T+x]=o[x];return}if(y===1){for(w-=v,S-=v,C=w+1,T=S+1,x=v-1;x>=0;x--)e[C+x]=e[T+x];e[w]=o[b];return}for(var A=r;;){var k=0,I=0,P=!1;do if(t(o[b],e[S])<0){if(e[w--]=e[S--],k++,I=0,--v===0){P=!0;break}}else if(e[w--]=o[b--],I++,k=0,--y===1){P=!0;break}while((k|I)<A);if(P)break;do{if(k=v-pw(o[b],e,h,v,v-1,t),k!==0){for(w-=k,S-=k,v-=k,C=w+1,T=S+1,x=k-1;x>=0;x--)e[C+x]=e[T+x];if(v===0){P=!0;break}}if(e[w--]=o[b--],--y===1){P=!0;break}if(I=y-hw(e[S],o,0,y,y-1,t),I!==0){for(w-=I,b-=I,y-=I,C=w+1,T=b+1,x=0;x<I;x++)e[C+x]=o[T+x];if(y<=1){P=!0;break}}if(e[w--]=e[S--],--v===0){P=!0;break}A--}while(k>=np||I>=np);if(P)break;A<0&&(A=0),A+=2}if(r=A,r<1&&(r=1),y===1){for(w-=v,S-=v,C=w+1,T=S+1,x=v-1;x>=0;x--)e[C+x]=e[T+x];e[w]=o[b]}else{if(y===0)throw new Error;for(T=w-(y-1),x=0;x<y;x++)e[T+x]=o[x]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function O0(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<vG){a=hN(e,r,n,t),pN(e,r,n,r+a,t);return}var o=Epe(e,t),s=Dpe(i);do{if(a=hN(e,r,n,t),a<s){var l=i;l>s&&(l=s),pN(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var yo=1,N0=2,Op=4,vN=!1;function vw(){vN||(vN=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function gN(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Lpe=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=gN}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,a=r.length;i<a;i++)this._updateAndAddDisplayable(r[i],null,t);n.length=this._displayListLen,O0(n,gN)},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 a=i,o=t;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=yo),this._updateAndAddDisplayable(u,r,n)}t.__dirty=0}else{var c=t;r&&r.length?c.__clipPaths=r:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(vw(),c.z=0),isNaN(c.z2)&&(vw(),c.z2=0),isNaN(c.zlevel)&&(vw(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=t.getDecalElement&&t.getDecalElement();f&&this._updateAndAddDisplayable(f,r,n);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,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=ft(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}(),x1;x1=yt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var sv={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-sv.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?sv.bounceIn(e*2)*.5:sv.bounceOut(e*2-1)*.5+.5}},My=Math.pow,vl=Math.sqrt,gG=1e-8,mG=1e-4,mN=vl(3),ky=1/3,oo=Ac(),qi=Ac(),Qf=Ac();function ll(e){return e>-1e-8&&e<gG}function yG(e){return e>gG||e<-1e-8}function Gr(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function yN(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function S1(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,h=0;if(ll(c)&&ll(f))if(ll(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[h++]=v)}else{var g=f*f-4*c*d;if(ll(g)){var y=f/c,v=-s/o+y,x=-y/2;v>=0&&v<=1&&(a[h++]=v),x>=0&&x<=1&&(a[h++]=x)}else if(g>0){var S=vl(g),b=c*s+1.5*o*(-f+S),w=c*s+1.5*o*(-f-S);b<0?b=-My(-b,ky):b=My(b,ky),w<0?w=-My(-w,ky):w=My(w,ky);var v=(-s-(b+w))/(3*o);v>=0&&v<=1&&(a[h++]=v)}else{var T=(2*c*s-3*o*f)/(2*vl(c*c*c)),C=Math.acos(T)/3,A=vl(c),k=Math.cos(C),v=(-s-2*A*k)/(3*o),x=(-s+A*(k+mN*Math.sin(C)))/(3*o),I=(-s+A*(k-mN*Math.sin(C)))/(3*o);v>=0&&v<=1&&(a[h++]=v),x>=0&&x<=1&&(a[h++]=x),I>=0&&I<=1&&(a[h++]=I)}}return h}function xG(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(ll(o)){if(yG(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(ll(c))i[0]=-a/(2*o);else if(c>0){var f=vl(c),u=(-a+f)/(2*o),d=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function Cl(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=n}function SG(e,t,r,n,i,a,o,s,l,u,c){var f,d=.005,h=1/0,v,g,y,x;oo[0]=l,oo[1]=u;for(var S=0;S<1;S+=.05)qi[0]=Gr(e,r,i,o,S),qi[1]=Gr(t,n,a,s,S),y=ec(oo,qi),y<h&&(f=S,h=y);h=1/0;for(var b=0;b<32&&!(d<mG);b++)v=f-d,g=f+d,qi[0]=Gr(e,r,i,o,v),qi[1]=Gr(t,n,a,s,v),y=ec(qi,oo),v>=0&&y<h?(f=v,h=y):(Qf[0]=Gr(e,r,i,o,g),Qf[1]=Gr(t,n,a,s,g),x=ec(Qf,oo),g<=1&&x<h?(f=g,h=x):d*=.5);return c&&(c[0]=Gr(e,r,i,o,f),c[1]=Gr(t,n,a,s,f)),vl(h)}function Ope(e,t,r,n,i,a,o,s,l){for(var u=e,c=t,f=0,d=1/l,h=1;h<=l;h++){var v=h*d,g=Gr(e,r,i,o,v),y=Gr(t,n,a,s,v),x=g-u,S=y-c;f+=Math.sqrt(x*x+S*S),u=g,c=y}return f}function Qr(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function w2(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function Npe(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(ll(a)){if(yG(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(ll(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=vl(c),u=(-o+f)/(2*a),d=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function bG(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Bv(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function _G(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;oo[0]=o,oo[1]=s;for(var d=0;d<1;d+=.05){qi[0]=Qr(e,r,i,d),qi[1]=Qr(t,n,a,d);var h=ec(oo,qi);h<f&&(u=d,f=h)}f=1/0;for(var v=0;v<32&&!(c<mG);v++){var g=u-c,y=u+c;qi[0]=Qr(e,r,i,g),qi[1]=Qr(t,n,a,g);var h=ec(qi,oo);if(g>=0&&h<f)u=g,f=h;else{Qf[0]=Qr(e,r,i,y),Qf[1]=Qr(t,n,a,y);var x=ec(Qf,oo);y<=1&&x<f?(u=y,f=x):c*=.5}}return l&&(l[0]=Qr(e,r,i,u),l[1]=Qr(t,n,a,u)),vl(f)}function zpe(e,t,r,n,i,a,o){for(var s=e,l=t,u=0,c=1/o,f=1;f<=o;f++){var d=f*c,h=Qr(e,r,i,d),v=Qr(t,n,a,d),g=h-s,y=v-l;u+=Math.sqrt(g*g+y*y),s=h,l=v}return u}var Bpe=/cubic-bezier\(([0-9,\.e ]+)\)/;function Dk(e){var t=e&&Bpe.exec(e);if(t){var r=t[1].split(","),n=+Aa(r[0]),i=+Aa(r[1]),a=+Aa(r[2]),o=+Aa(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:S1(0,n,a,1,l,s)&&Gr(0,i,o,1,s[0])}}}var Fpe=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||Mr,this.ondestroy=t.ondestroy||Mr,this.onrestart=t.onrestart||Mr,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,a=i/n;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===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=Be(t)?t:sv[t]||Dk(t)},e}(),wG=function(){function e(t){this.value=t}return e}(),Vpe=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new wG(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}(),Ag=function(){function e(t){this._list=new Vpe,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new wG(r),s.key=t,n.insertEntry(s),i[t]=s}return a},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}(),xN={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 ka(e){return e=Math.round(e),e<0?0:e>255?255:e}function $pe(e){return e=Math.round(e),e<0?0:e>360?360:e}function Fv(e){return e<0?0:e>1?1:e}function gw(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?ka(parseFloat(t)/100*255):ka(parseInt(t,10))}function tc(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Fv(parseFloat(t)/100):Fv(parseFloat(t))}function mw(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 ul(e,t,r){return e+(t-e)*r}function Vi(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function C2(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var CG=new Ag(20),Iy=null;function hf(e,t){Iy&&C2(Iy,t),Iy=CG.put(e,Iy||t.slice())}function Ci(e,t){if(e){t=t||[];var r=CG.get(e);if(r)return C2(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in xN)return C2(t,xN[n]),hf(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){Vi(t,0,0,0,1);return}return Vi(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),hf(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){Vi(t,0,0,0,1);return}return Vi(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),hf(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Vi(t,+u[0],+u[1],+u[2],1):Vi(t,0,0,0,1);c=tc(u.pop());case"rgb":if(u.length>=3)return Vi(t,gw(u[0]),gw(u[1]),gw(u[2]),u.length===3?c:tc(u[3])),hf(e,t),t;Vi(t,0,0,0,1);return;case"hsla":if(u.length!==4){Vi(t,0,0,0,1);return}return u[3]=tc(u[3]),T2(u,t),hf(e,t),t;case"hsl":if(u.length!==3){Vi(t,0,0,0,1);return}return T2(u,t),hf(e,t),t;default:return}}Vi(t,0,0,0,1)}}function T2(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=tc(e[1]),i=tc(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],Vi(t,ka(mw(o,a,r+1/3)*255),ka(mw(o,a,r)*255),ka(mw(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Gpe(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var c=((a-t)/6+o/2)/o,f=((a-r)/6+o/2)/o,d=((a-n)/6+o/2)/o;t===a?l=d-f:r===a?l=1/3+c-d:n===a&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return e[3]!=null&&h.push(e[3]),h}}function A2(e,t){var r=Ci(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return ts(r,r.length===4?"rgba":"rgb")}}function yw(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return r[0]=ka(ul(o[0],s[0],l)),r[1]=ka(ul(o[1],s[1],l)),r[2]=ka(ul(o[2],s[2],l)),r[3]=Fv(ul(o[3],s[3],l)),r}}function Hpe(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=Ci(t[i]),s=Ci(t[a]),l=n-i,u=ts([ka(ul(o[0],s[0],l)),ka(ul(o[1],s[1],l)),ka(ul(o[2],s[2],l)),Fv(ul(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function lv(e,t,r,n){var i=Ci(e);if(e)return i=Gpe(i),t!=null&&(i[0]=$pe(t)),r!=null&&(i[1]=tc(r)),n!=null&&(i[2]=tc(n)),ts(T2(i),"rgba")}function b1(e,t){var r=Ci(e);if(r&&t!=null)return r[3]=Fv(t),ts(r,"rgba")}function ts(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 _1(e,t){var r=Ci(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var SN=new Ag(100);function M2(e){if(we(e)){var t=SN.get(e);return t||(t=A2(e,-.1),SN.put(e,t)),t}else if(Zx(e)){var r=oe({},e);return r.colorStops=de(e.colorStops,function(n){return{offset:n.offset,color:A2(n.color,-.1)}}),r}return e}var w1=Math.round;function Vv(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=Ci(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var Wpe=1e-4;function cl(e){return e<Wpe&&e>-1e-4}function Py(e){return w1(e*1e3)/1e3}function k2(e){return w1(e*1e4)/1e4}function jpe(e){return"matrix("+Py(e[0])+","+Py(e[1])+","+Py(e[2])+","+Py(e[3])+","+k2(e[4])+","+k2(e[5])+")"}var Upe={left:"start",right:"end",center:"middle",middle:"middle"};function Ype(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function qpe(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Xpe(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function TG(e){return e&&!!e.image}function Zpe(e){return e&&!!e.svgElement}function Rk(e){return TG(e)||Zpe(e)}function AG(e){return e.type==="linear"}function MG(e){return e.type==="radial"}function kG(e){return e&&(e.type==="linear"||e.type==="radial")}function Jx(e){return"url(#"+e+")"}function IG(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function PG(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*R0,i=Qe(e.scaleX,1),a=Qe(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+w1(o*R0)+"deg, "+w1(s*R0)+"deg)"),l.join(" ")}var Kpe=function(){return yt.hasGlobalWindow&&Be(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}}(),I2=Array.prototype.slice;function qo(e,t,r){return(t-e)*r+e}function xw(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=qo(t[a],r[a],n);return e}function Qpe(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=qo(t[o][s],r[o][s],n)}return e}function Dy(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function bN(e,t,r,n){for(var i=t.length,a=i&&t[0].length,o=0;o<i;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*n}return e}function Jpe(e,t){for(var r=e.length,n=t.length,i=r>n?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,n);s++)i.push({offset:o.offset,color:o.color.slice()})}function eve(e,t,r){var n=e,i=t;if(!(!n.push||!i.push)){var a=n.length,o=i.length;if(a!==o){var s=a>o;if(s)n.length=o;else for(var l=a;l<o;l++)n.push(r===1?i[l]:I2.call(i[l]))}for(var u=n[0]&&n[0].length,l=0;l<n.length;l++)if(r===1)isNaN(n[l])&&(n[l]=i[l]);else for(var c=0;c<u;c++)isNaN(n[l][c])&&(n[l][c]=i[l][c])}}function uv(e){if(wn(e)){var t=e.length;if(wn(e[0])){for(var r=[],n=0;n<t;n++)r.push(I2.call(e[n]));return r}return I2.call(e)}return e}function z0(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 tve(e){return wn(e&&e[0])?2:1}var Ry=0,B0=1,DG=2,Np=3,P2=4,D2=5,_N=6;function wN(e){return e===P2||e===D2}function Ey(e){return e===B0||e===DG}var ip=[0,0,0,0],rve=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,a=i.length,o=!1,s=_N,l=r;if(wn(r)){var u=tve(r);s=u,(u===1&&!Dt(r[0])||u===2&&!Dt(r[0][0]))&&(o=!0)}else if(Dt(r)&&!zv(r))s=Ry;else if(we(r))if(!isNaN(+r))s=Ry;else{var c=Ci(r);c&&(l=c,s=Np)}else if(Zx(r)){var f=oe({},l);f.colorStops=de(r.colorStops,function(h){return{offset:h.offset,color:Ci(h.color)}}),AG(r)?s=P2:MG(r)&&(s=D2),l=f}a===0?this.valType=s:(s!==this.valType||s===_N)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=Be(n)?n:sv[n]||Dk(n)),i.push(d),d},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(g,y){return g.time-y.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=Ey(i),u=wN(i),c=0;c<a;c++){var f=n[c],d=f.value,h=o.value;f.percent=f.time/t,s||(l&&c!==a-1?eve(d,h,i):u&&Jpe(d.colorStops,h.colorStops))}if(!s&&i!==D2&&r&&this.needsAnimate()&&r.needsAnimate()&&i===r.valType&&!r._finished){this._additiveTrack=r;for(var v=n[0].value,c=0;c<a;c++)i===Ry?n[c].additiveValue=n[c].value-v:i===Np?n[c].additiveValue=Dy([],n[c].value,v,-1):Ey(i)&&(n[c].additiveValue=i===B0?Dy([],n[c].value,v,-1):bN([],n[c].value,v,-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",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===Np,c,f=this._lastFr,d=Math.min,h,v;if(s===1)h=v=o[0];else{if(r<0)c=0;else if(r<this._lastFrP){var g=d(f+1,s-1);for(c=g;c>=0&&!(o[c].percent<=r);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>r);c++);c=d(c-1,s-2)}v=o[c+1],h=o[c]}if(h&&v){this._lastFr=c,this._lastFrP=r;var y=v.percent-h.percent,x=y===0?1:d((r-h.percent)/y,1);v.easingFunc&&(x=v.easingFunc(x));var S=n?this._additiveValue:u?ip:t[l];if((Ey(a)||u)&&!S&&(S=this._additiveValue=[]),this.discrete)t[l]=x<1?h.rawValue:v.rawValue;else if(Ey(a))a===B0?xw(S,h[i],v[i],x):Qpe(S,h[i],v[i],x);else if(wN(a)){var b=h[i],w=v[i],T=a===P2;t[l]={type:T?"linear":"radial",x:qo(b.x,w.x,x),y:qo(b.y,w.y,x),colorStops:de(b.colorStops,function(A,k){var I=w.colorStops[k];return{offset:qo(A.offset,I.offset,x),color:z0(xw([],A.color,I.color,x))}}),global:w.global},T?(t[l].x2=qo(b.x2,w.x2,x),t[l].y2=qo(b.y2,w.y2,x)):t[l].r=qo(b.r,w.r,x)}else if(u)xw(S,h[i],v[i],x),n||(t[l]=z0(S));else{var C=qo(h[i],v[i],x);n?this._additiveValue=C:t[l]=C}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===Ry?t[n]=t[n]+i:r===Np?(Ci(t[n],ip),Dy(ip,ip,i,1),t[n]=z0(ip)):r===B0?Dy(t[n],t[n],i,1):r===DG&&bN(t[n],t[n],i,1)},e}(),Ek=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){Ck("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,St(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o<n.length;o++){var s=n[o],l=a[s];if(!l){l=a[s]=new rve(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,d=f[f.length-1];u=d&&d.value,c.valType===Np&&u&&(u=z0(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,uv(u),i),this._trackKeys.push(s)}l.addKeyframe(t,uv(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 a=n[i].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),u=s.keyframes,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(r._target[s.propName]=f.rawValue),s.setFinished()}else n.push(s)}if(n.length||this._force){var d=new Fpe({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){r._started=2;var v=r._additiveAnimators;if(v){for(var g=!1,y=0;y<v.length;y++)if(v[y]._clip){g=!0;break}g||(r._additiveAnimators=null)}for(var y=0;y<n.length;y++)n[y].step(r._target,h);var x=r._onframeCbs;if(x)for(var y=0;y<x.length;y++)x[y](r._target,h)},ondestroy:function(){r._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),t&&d.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 de(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,a=0;a<t.length;a++){var o=n[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!n[i[a]].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 a=r[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[n?0:s.length-1];l&&(t[a]=uv(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||St(t);for(var n=0;n<r.length;n++){var i=r[n],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();function Hf(){return new Date().getTime()}var nve=function(e){J(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=Hf()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}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&&(x1(n),!r._paused&&r.update())}x1(n)},t.prototype.start=function(){this._running||(this._time=Hf(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=Hf(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=Hf()-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 Ek(r,n.loop);return this.addAnimator(i),i},t}(sa),ive=300,Sw=yt.domSupported,bw=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=de(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),CN={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},TN=!1;function R2(e){var t=e.pointerType;return t==="pen"||t==="touch"}function ave(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 _w(e){e&&(e.zrByTouch=!0)}function ove(e,t){return $i(e.dom,new sve(e,t),!0)}function RG(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 sve=function(){function e(t,r){this.stopPropagation=Mr,this.stopImmediatePropagation=Mr,this.preventDefault=Mr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),ba={mousedown:function(e){e=$i(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=$i(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=$i(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=$i(this.dom,e);var t=e.toElement||e.relatedTarget;RG(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){TN=!0,e=$i(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){TN||(e=$i(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=$i(this.dom,e),_w(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),ba.mousemove.call(this,e),ba.mousedown.call(this,e)},touchmove:function(e){e=$i(this.dom,e),_w(e),this.handler.processGesture(e,"change"),ba.mousemove.call(this,e)},touchend:function(e){e=$i(this.dom,e),_w(e),this.handler.processGesture(e,"end"),ba.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<ive&&ba.click.call(this,e)},pointerdown:function(e){ba.mousedown.call(this,e)},pointermove:function(e){R2(e)||ba.mousemove.call(this,e)},pointerup:function(e){ba.mouseup.call(this,e)},pointerout:function(e){R2(e)||ba.mouseout.call(this,e)}};V(["click","dblclick","contextmenu"],function(e){ba[e]=function(t){t=$i(this.dom,t),this.trigger(e,t)}});var E2={pointermove:function(e){R2(e)||E2.mousemove.call(this,e)},pointerup:function(e){E2.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 lve(e,t){var r=t.domHandlers;yt.pointerEventsSupported?V(bw.pointer,function(n){F0(t,n,function(i){r[n].call(e,i)})}):(yt.touchEventsSupported&&V(bw.touch,function(n){F0(t,n,function(i){r[n].call(e,i),ave(t)})}),V(bw.mouse,function(n){F0(t,n,function(i){i=kk(i),t.touching||r[n].call(e,i)})}))}function uve(e,t){yt.pointerEventsSupported?V(CN.pointer,r):yt.touchEventsSupported||V(CN.mouse,r);function r(n){function i(a){a=kk(a),RG(e,a.target)||(a=ove(e,a),t.domHandlers[n].call(e,a))}F0(t,n,i,{capture:!0})}}function F0(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,_2(e.domTarget,t,r,n)}function ww(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&_pe(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var AN=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),cve=function(e){J(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 AN(r,ba),Sw&&(i._globalHandlerScope=new AN(document,E2)),lve(i,i._localHandlerScope),i}return t.prototype.dispose=function(){ww(this._localHandlerScope),Sw&&ww(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,Sw&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?uve(this,n):ww(n)}},t}(sa),EG=1;yt.hasGlobalWindow&&(EG=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var C1=EG,L2=.4,O2="#333",N2="#ccc",fve="#eee",MN=Qx,dve=5e-5;function ou(e){return e>dve||e<-5e-5}var su=[],pf=[],Cw=wi(),Tw=Math.abs,Ko=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 ou(this.rotation)||ou(this.x)||ou(this.y)||ou(this.scaleX-1)||ou(this.scaleY-1)||ou(this.skewX)||ou(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(MN(n),this.invTransform=null);return}n=n||wi(),r?this.getLocalTransform(n):MN(n),t&&(r?es(n,t,n):Ik(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(su);var n=su[0]<0?-1:1,i=su[1]<0?-1:1,a=((su[0]-n)*r+n)/su[0]||0,o=((su[1]-i)*r+i)/su[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||wi(),Ed(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]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,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||wi(),es(pf,t.invTransform,r),r=pf);var n=this.originX,i=this.originY;(n||i)&&(Cw[4]=n,Cw[5]=i,es(pf,r,Cw),pf[4]-=n,pf[5]-=i,r=pf),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&&un(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&un(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Tw(t[0]-1)>1e-10&&Tw(t[3]-1)>1e-10?Math.sqrt(Tw(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){LG(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,f=t.y,d=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var v=n+s,g=i+l;r[4]=-v*a-d*g*o,r[5]=-g*o-h*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=d*o,u&&Mc(r,r,u),r[4]+=n+c,r[5]+=i+f,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}(),Ao=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function LG(e,t){for(var r=0;r<Ao.length;r++){var n=Ao[r];e[n]=t[n]}}var kN={};function Ti(e,t){t=t||_l;var r=kN[t];r||(r=kN[t]=new Ag(500));var n=r.get(e);return n==null&&(n=wl.measureText(e,t).width,r.put(e,n)),n}function IN(e,t,r,n){var i=Ti(e,t),a=eS(t),o=zp(0,i,r),s=Nf(0,a,n),l=new nt(o,s,i,a);return l}function Mg(e,t,r,n){var i=((e||"")+"").split(`
|
169
|
-
`),a=i.length;if(a===1)return IN(i[0],t,r,n);for(var o=new nt(0,0,0,0),s=0;s<i.length;s++){var l=IN(i[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function zp(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function Nf(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function eS(e){return Ti("国",e)}function Oa(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function T1(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,c="left",f="top";if(n instanceof Array)l+=Oa(n[0],r.width),u+=Oa(n[1],r.height),c=null,f=null;else switch(n){case"left":l-=i,u+=s,c="right",f="middle";break;case"right":l+=i+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",f="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=f,e}var Aw="__zr_normal__",Mw=Ao.concat(["ignore"]),hve=Co(Ao,function(e,t){return e[t]=!0,e},{ignore:!1}),vf={},pve=new nt(0,0,0,0),tS=function(){function e(t){this.id=sG(),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,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var c=pve;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(vf,n,c):T1(vf,n,c),a.x=vf.x,a.y=vf.y,o=vf.align,s=vf.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=Oa(f[0],c.width),h=Oa(f[1],c.height)),u=!0,a.originX=-a.x+d+(i?0:c.x),a.originY=-a.y+h+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var v=n.offset;v&&(a.x+=v[0],a.y+=v[1],u||(a.originX=-v[0],a.originY=-v[1]));var g=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),x=void 0,S=void 0,b=void 0;g&&this.canBeInsideText()?(x=n.insideFill,S=n.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(S==null||S==="auto")&&(S=this.getInsideTextStroke(x),b=!0)):(x=n.outsideFill,S=n.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(S==null||S==="auto")&&(S=this.getOutsideStroke(x),b=!0)),x=x||"#000",(x!==y.fill||S!==y.stroke||b!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=x,y.stroke=S,y.autoStroke=b,y.align=o,y.verticalAlign=s,r.setDefaultTextStyle(y)),r.__dirty|=yo,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()?N2:O2},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&Ci(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,ts(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||{},oe(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(Ge(t))for(var n=t,i=St(n),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,t[o])}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],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==Aw)){var o=i.targetName,s=o?r[o]: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,Mw)},e.prototype._savePrimaryToNormal=function(t,r,n){for(var i=0;i<n.length;i++){var a=n[i];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},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(Aw,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===Aw,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(ft(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){Ck("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(t,r,n,c),d&&d.useState(t,r,n,c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(t[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;l++){var u=t[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,t)),c||(c=this.states[u]),c&&i.push(c)}var f=i[o-1],d=!!(f&&f.hoverLayer||n);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),v=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(t.join(","),h,this._normalState,!1,!r&&!this.__inHover&&v&&v.duration>0,v);var g=this._textContent,y=this._textGuide;g&&g.useStates(t,r,d),y&&y.useStates(t,r,d),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!d&&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=ft(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(),a=ft(i,t),o=ft(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&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 a=t[i];oe(r,a),a.textConfig&&(n=n||{},oe(n,a.textConfig))}return n&&(r.textConfig=n),r},e.prototype._applyStateObj=function(t,r,n,i,a,o){var s=!(r&&i);r&&r.textConfig?(this.textConfig=oe({},i?this.textConfig:n.textConfig),oe(this.textConfig,r.textConfig)):s&&n.textConfig&&(this.textConfig=n.textConfig);for(var l={},u=!1,c=0;c<Mw.length;c++){var f=Mw[c],d=a&&hve[f];r&&r[f]!=null?d?(u=!0,l[f]=r[f]):this[f]=r[f]:s&&n[f]!=null&&(d?(u=!0,l[f]=n[f]):this[f]=n[f])}if(!a)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],v=h.targetName;h.getLoop()||h.__changeFinalValue(v?(r||n)[v]:r||n)}u&&this._transitionState(t,l,o)},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 Ko,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),oe(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|=yo;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,a=new Ek(i,r,n);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var n=this.__zr,i=this;t.during(function(){i.updateDuringAnimation(r)}).done(function(){var a=i.animators,o=ft(a,t);o>=0&&a.splice(o,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,a=[],o=0;o<i;o++){var s=n[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,n){kw(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){kw(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var a=kw(this,r,n,i),o=0;o<a.length;o++)a[o].__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=yo;function r(n,i,a,o){Object.defineProperty(t,n,{get:function(){if(!this[i]){var l=this[i]=[];s(this,l)}return this[i]},set:function(l){this[a]=l[0],this[o]=l[1],this[i]=l,s(this,l)}});function s(l,u){Object.defineProperty(u,0,{get:function(){return l[a]},set:function(c){l[a]=c}}),Object.defineProperty(u,1,{get:function(){return l[o]},set:function(c){l[o]=c}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();Lr(tS,sa);Lr(tS,Ko);function kw(e,t,r,n,i){r=r||{};var a=[];OG(e,"",e,t,r,n,a,i);var o=a.length,s=!1,l=r.done,u=r.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&r.during&&a[0].during(function(v,g){r.during(g)});for(var d=0;d<a.length;d++){var h=a[d];c&&h.done(c),f&&h.aborted(f),r.force&&h.duration(r.duration),h.start(r.easing)}return a}function Iw(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function vve(e){return wn(e[0])}function gve(e,t,r){if(wn(t[r]))if(wn(e[r])||(e[r]=[]),ui(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),Iw(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if(vve(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Iw(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Iw(a,i,o);a.length=i.length}else e[r]=t[r]}function mve(e,t){return e===t||wn(e)&&wn(t)&&yve(e,t)}function yve(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 OG(e,t,r,n,i,a,o,s){for(var l=St(n),u=i.duration,c=i.delay,f=i.additive,d=i.setToFinal,h=!Ge(a),v=e.animators,g=[],y=0;y<l.length;y++){var x=l[y],S=n[x];if(S!=null&&r[x]!=null&&(h||a[x]))if(Ge(S)&&!wn(S)&&!Zx(S)){if(t){s||(r[x]=S,e.updateDuringAnimation(t));continue}OG(e,x,r[x],S,i,a&&a[x],o,s)}else g.push(x);else s||(r[x]=S,e.updateDuringAnimation(t),g.push(x))}var b=g.length;if(!f&&b)for(var w=0;w<v.length;w++){var T=v[w];if(T.targetName===t){var C=T.stopTracks(g);if(C){var A=ft(v,T);v.splice(A,1)}}}if(i.force||(g=jt(g,function(R){return!mve(n[R],r[R])}),b=g.length),b>0||i.force&&!o.length){var k=void 0,I=void 0,P=void 0;if(s){I={},d&&(k={});for(var w=0;w<b;w++){var x=g[w];I[x]=r[x],d?k[x]=n[x]:r[x]=n[x]}}else if(d){P={};for(var w=0;w<b;w++){var x=g[w];P[x]=uv(r[x]),gve(r,n,x)}}var T=new Ek(r,!1,!1,f?jt(v,function(L){return L.targetName===t}):null);T.targetName=t,i.scope&&(T.scope=i.scope),d&&k&&T.whenWithKeys(0,k,g),P&&T.whenWithKeys(0,P,g),T.whenWithKeys(u??500,s?I:n,g).delay(c||0),e.addAnimator(T,t),o.push(T)}}var qe=function(e){J(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,a=i.indexOf(n);a>=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=ft(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),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,a=ft(i,r);return a<0?this:(i.splice(a,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 a=r[i];n&&a.removeSelfFromZr(n),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,n){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];r.call(n,o,a)}return this},t.prototype.traverse=function(r,n){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=r.call(n,a);a.isGroup&&!o&&a.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 nt(0,0,0,0),i=r||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(a);c?(nt.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(tS);qe.prototype.type="group";/*!
|
170
|
-
* ZRender, a high performance 2d drawing library.
|
171
|
-
*
|
172
|
-
* Copyright (c) 2013, Baidu Inc.
|
173
|
-
* All rights reserved.
|
174
|
-
*
|
175
|
-
* LICENSE
|
176
|
-
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
177
|
-
*/var V0={},NG={};function xve(e){delete NG[e]}function Sve(e){if(!e)return!1;if(typeof e=="string")return _1(e,1)<L2;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=_1(t[i].color,1);return r/=n,r<L2}return!1}var bve=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 a=new Lpe,o=n.renderer||"canvas";V0[o]||(o=St(V0)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new V0[o](r,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!yt.node&&!yt.worker&&!l?new cve(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,f=c==null||c==="auto"?yt.touchEventsSupported:!!c,d=44,h;f&&(h=Qe(n.pointerSize,d)),this.handler=new hG(a,s,u,s.root,h),this.animation=new nve({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=Sve(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=Hf();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=Hf();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 qe&&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,xve(this.id))},e}();function PN(e,t){var r=new bve(sG(),e,t);return NG[r.id]=r,r}function _ve(e,t){V0[e]=t}var z2;function wve(e){if(typeof z2=="function")return z2(e)}function Cve(e){z2=e}var Tve=1e-4,zG=20;function Ave(e){return e.replace(/^\s+|\s+$/g,"")}function $t(e,t,r,n){var i=t[0],a=t[1],o=r[0],s=r[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function xe(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 we(e)?Ave(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function br(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),zG),e=(+e).toFixed(t),r?e:+e}function Qi(e){return e.sort(function(t,r){return t-r}),e}function lo(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 Mve(e)}function Mve(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function BG(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function kve(e,t){var r=Co(e,function(h,v){return h+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=de(e,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=de(i,function(h){return Math.floor(h)}),s=Co(o,function(h,v){return h+v},0),l=de(i,function(h,v){return h-o[v]});s<a;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,d=l.length;f<d;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return de(o,function(h){return h/n})}function Ive(e,t){var r=Math.max(lo(e),lo(t)),n=e+t;return r>zG?n:br(n,r)}var DN=9007199254740991;function FG(e){var t=Math.PI*2;return(e%t+t)%t}function $v(e){return e>-1e-4&&e<Tve}var Pve=/^(?:(\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 Mo(e){if(e instanceof Date)return e;if(we(e)){var t=Pve.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 Dve(e){return Math.pow(10,Lk(e))}function Lk(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 VG(e,t){var r=Lk(e),n=Math.pow(10,r),i=e/n,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function Pw(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),i=+e[n-1],a=r-n;return a?i+a*(e[n]-i):i}function RN(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,r=1,n=0;n<e.length;){for(var i=e[n].interval,a=e[n].close,o=0;o<2;o++)i[o]<=t&&(i[o]=t,a[o]=o?1:1-r),t=i[o],r=a[o];i[0]===i[1]&&a[0]*a[1]!==1?e.splice(n,1):n++}return e;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function ls(e){var t=parseFloat(e);return t==e&&(t!==0||!we(e)||e.indexOf("x")<=0)?t:NaN}function $G(e){return!isNaN(ls(e))}function GG(){return Math.round(Math.random()*9)}function HG(e,t){return t===0?e:HG(t,e%t)}function EN(e,t){return e==null?t:t==null?e:e*t/HG(e,t)}function zt(e){throw new Error(e)}function LN(e,t,r){return(t-e)*r+e}var WG="series\0",jG="\0_ec_\0";function Yt(e){return e instanceof Array?e:e==null?[]:[e]}function gc(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 a=r[n];!e.emphasis[t].hasOwnProperty(a)&&e[t].hasOwnProperty(a)&&(e.emphasis[t][a]=e[t][a])}}}var ON=["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 Ld(e){return Ge(e)&&!ue(e)&&!(e instanceof Date)?e.value:e}function Rve(e){return Ge(e)&&!(e instanceof Array)}function UG(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=Oe();V(t,function(l,u){if(!Ge(l)){t[u]=null;return}});var s=Eve(e,o,r);return(n||i)&&Lve(s,e,o,t),n&&Ove(s,t),n||i?Nve(s,t,i):a&&zve(s,t),Bve(s),s}function Eve(e,t,r){var n=[];if(r==="replaceAll")return n;for(var i=0;i<e.length;i++){var a=e[i];a&&a.id!=null&&t.set(a.id,i),n.push({existing:r==="replaceMerge"||Gv(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function Lve(e,t,r,n){V(n,function(i,a){if(!(!i||i.id==null)){var o=cv(i.id),s=r.get(o);if(s!=null){var l=e[s];zn(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function Ove(e,t){V(t,function(r,n){if(!(!r||r.name==null))for(var i=0;i<e.length;i++){var a=e[i].existing;if(!e[i].newOption&&a&&(a.id==null||r.id==null)&&!Gv(r)&&!Gv(a)&&YG("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function Nve(e,t,r){V(t,function(n){if(n){for(var i,a=0;(i=e[a])&&(i.newOption||Gv(i.existing)||i.existing&&n.id!=null&&!YG("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function zve(e,t){V(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function Bve(e){var t=Oe();V(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),V(e,function(r){var n=r.newOption;zn(!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={})}),V(e,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(Ge(a)){if(o.name=a.name!=null?cv(a.name):i?i.name:WG+n,i)o.id=cv(i.id);else if(a.id!=null)o.id=cv(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(t.get(o.id))}t.set(o.id,r)}})}function YG(e,t,r){var n=Br(t[e],null),i=Br(r[e],null);return n!=null&&i!=null&&n===i}function cv(e){return Br(e,"")}function Br(e,t){return e==null?t:we(e)?e:Dt(e)||v2(e)?e+"":t}function Ok(e){var t=e.name;return!!(t&&t.indexOf(WG))}function Gv(e){return e&&e.id!=null&&cv(e.id).indexOf(jG)===0}function Fve(e){return jG+e}function Vve(e,t,r){V(e,function(n){var i=n.newOption;Ge(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=$ve(t,i,n.existing,r))})}function $ve(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function Gve(e,t){var r={},n={};return i(e||[],r),i(t||[],n,r),[a(r),a(n)];function i(o,s,l){for(var u=0,c=o.length;u<c;u++){var f=Br(o[u].seriesId,null);if(f==null)return;for(var d=Yt(o[u].dataIndex),h=l&&l[f],v=0,g=d.length;v<g;v++){var y=d[v];h&&h[y]?h[y]=null:(s[f]||(s[f]={}))[y]=1}}}function a(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=a(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function mc(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return ue(t.dataIndex)?de(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return ue(t.name)?de(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function Tt(){var e="__ec_inner_"+Hve++;return function(t){return t[e]||(t[e]={})}}var Hve=GG();function fv(e,t,r){var n=Nk(t,r),i=n.mainTypeSpecified,a=n.queryOptionMap,o=n.others,s=o,l=r?r.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,c){var f=kg(e,c,u,{useDefault:l===c,enableAll:r&&r.enableAll!=null?r.enableAll:!0,enableNone:r&&r.enableNone!=null?r.enableNone:!0});s[c+"Models"]=f.models,s[c+"Model"]=f.models[0]}),s}function Nk(e,t){var r;if(we(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=Oe(),a={},o=!1;return V(r,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||t&&t.includeMainTypes&&ft(t.includeMainTypes,c)<0)){o=o||!!c;var d=i.get(c)||i.set(c,{});d[f]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var Rr={useDefault:!0,enableAll:!1,enableNone:!1},Wve={useDefault:!1,enableAll:!0,enableNone:!0};function kg(e,t,r,n){n=n||Rr;var i=r.index,a=r.id,o=r.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=n.useDefault&&(l=e.getComponent(t))?[l]:[],s}return i==="none"||i===!1?(zn(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(zn(n.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=e.queryComponents({mainType:t,index:i,id:a,name:o}),s)}function qG(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function jve(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Uve(e){return e==="auto"?yt.domSupported?"html":"richText":e||"html"}function B2(e,t){var r=Oe(),n=[];return V(e,function(i){var a=t(i);(r.get(a)||(n.push(a),r.set(a,[]))).push(i)}),{keys:n,buckets:r}}function XG(e,t,r,n,i){var a=t==null||t==="auto";if(n==null)return n;if(Dt(n)){var o=LN(r||0,n,i);return br(o,a?Math.max(lo(r||0),lo(n)):t)}else{if(we(n))return i<1?r:n;for(var s=[],l=r,u=n,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var d=e.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(i<1&&l?l:u)[f];else{var h=l&&l[f]?l[f]:0,v=u[f],o=LN(h,v,i);s[f]=br(o,a?Math.max(lo(h),lo(v)):t)}}return s}}var Yve=".",lu="___EC__COMPONENT__CONTAINER___",ZG="___EC__EXTENDED_CLASS___";function uo(e){var t={main:"",sub:""};if(e){var r=e.split(Yve);t.main=r[0]||"",t.sub=r[1]||""}return t}function qve(e){zn(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function Xve(e){return!!(e&&e[ZG])}function zk(e,t){e.$constructor=e,e.extend=function(r){var n=this,i;return Zve(n)?i=function(a){J(o,a);function o(){return a.apply(this,arguments)||this}return o}(n):(i=function(){(r.$constructor||n).apply(this,arguments)},tpe(i,this)),oe(i.prototype,r),i[ZG]=!0,i.extend=this.extend,i.superCall=Jve,i.superApply=ege,i.superClass=n,i}}function Zve(e){return Be(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function KG(e,t){e.extend=t.extend}var Kve=Math.round(Math.random()*10);function Qve(e){var t=["__\0is_clz",Kve++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function Jve(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 ege(e,t,r){return this.superClass.prototype[t].apply(e,r)}function rS(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){qve(i),n.prototype.type=i;var a=uo(i);if(!a.sub)t[a.main]=n;else if(a.sub!==lu){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[lu]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+n+"."+(i||"")+" is used but not imported.":n+".type should be specified.");return o},e.getClassesByMainType=function(n){var i=uo(n),a=[],o=t[i.main];return o&&o[lu]?V(o,function(s,l){l!==lu&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=uo(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return V(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=uo(n),a=t[i.main];return a&&a[lu]};function r(n){var i=t[n.main];return(!i||!i[lu])&&(i=t[n.main]={},i[lu]=!0),i}}function yc(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,a){for(var o={},s=0;s<e.length;s++){var l=e[s][1];if(!(i&&ft(i,l)>=0||a&&ft(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var tge=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],rge=yc(tge),nge=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return rge(this,t,r)},e}(),F2=new Ag(50);function ige(e){if(typeof e=="string"){var t=F2.get(e);return t&&t.image}else return e}function Bk(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=F2.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!nS(t)&&a.pending.push(o)):(t=wl.loadImage(e,NN,NN),t.__zrImageSrc=e,F2.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function NN(){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 nS(e){return e&&e.width&&e.height}var Dw=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function age(e,t,r,n,i){if(!t)return"";var a=(e+"").split(`
|
178
|
-
`);i=QG(t,r,n,i);for(var o=0,s=a.length;o<s;o++)a[o]=JG(a[o],i);return a.join(`
|
179
|
-
`)}function QG(e,t,r,n){n=n||{};var i=oe({},n);i.font=t,r=Qe(r,"..."),i.maxIterations=Qe(n.maxIterations,2);var a=i.minChar=Qe(n.minChar,0);i.cnCharWidth=Ti("国",t);var o=i.ascCharWidth=Ti("a",t);i.placeholder=Qe(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var u=Ti(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function JG(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Ti(e,n);if(a<=r)return e;for(var o=0;;o++){if(a<=i||o>=t.maxIterations){e+=t.ellipsis;break}var s=o===0?oge(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Ti(e,n)}return e===""&&(e=t.placeholder),e}function oge(e,t,r,n){for(var i=0,a=0,o=e.length;a<o&&i<t;a++){var s=e.charCodeAt(a);i+=0<=s&&s<=127?r:n}return a}function sge(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,i=t.font,a=r==="truncate",o=eS(i),s=Qe(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=t.width,f;c!=null&&(r==="break"||r==="breakAll")?f=e?eH(e,t.font,c,r==="breakAll",0).lines:[]:f=e?e.split(`
|
180
|
-
`):[];var d=f.length*s,h=Qe(t.height,d);if(d>h&&u){var v=Math.floor(h/s);f=f.slice(0,v)}if(e&&a&&c!=null)for(var g=QG(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y=0;y<f.length;y++)f[y]=JG(f[y],g);for(var x=h,S=0,y=0;y<f.length;y++)S=Math.max(Ti(f[y],i),S);c==null&&(c=S);var b=S;return n&&(x+=n[0]+n[2],b+=n[1]+n[3],c+=n[1]+n[3]),l&&(b=c),{lines:f,height:h,outerWidth:b,outerHeight:x,lineHeight:s,calculatedLineHeight:o,contentWidth:S,contentHeight:d,width:c}}var lge=function(){function e(){}return e}(),zN=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),uge=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 cge(e,t){var r=new uge;if(e!=null&&(e+=""),!e)return r;for(var n=t.width,i=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&n!=null?{width:n,accumWidth:0,breakAll:a==="breakAll"}:null,s=Dw.lastIndex=0,l;(l=Dw.exec(e))!=null;){var u=l.index;u>s&&Rw(r,e.substring(s,u),t,o),Rw(r,l[2],t,o,l[1]),s=Dw.lastIndex}s<e.length&&Rw(r,e.substring(s,e.length),t,o);var c=[],f=0,d=0,h=t.padding,v=a==="truncate",g=t.lineOverflow==="truncate";function y($,X,B){$.width=X,$.lineHeight=B,f+=B,d=Math.max(d,X)}e:for(var x=0;x<r.lines.length;x++){for(var S=r.lines[x],b=0,w=0,T=0;T<S.tokens.length;T++){var C=S.tokens[T],A=C.styleName&&t.rich[C.styleName]||{},k=C.textPadding=A.padding,I=k?k[1]+k[3]:0,P=C.font=A.font||t.font;C.contentHeight=eS(P);var R=Qe(A.height,C.contentHeight);if(C.innerHeight=R,k&&(R+=k[0]+k[2]),C.height=R,C.lineHeight=mo(A.lineHeight,t.lineHeight,R),C.align=A&&A.align||t.align,C.verticalAlign=A&&A.verticalAlign||"middle",g&&i!=null&&f+C.lineHeight>i){T>0?(S.tokens=S.tokens.slice(0,T),y(S,w,b),r.lines=r.lines.slice(0,x+1)):r.lines=r.lines.slice(0,x);break e}var L=A.width,O=L==null||L==="auto";if(typeof L=="string"&&L.charAt(L.length-1)==="%")C.percentWidth=L,c.push(C),C.contentWidth=Ti(C.text,P);else{if(O){var z=A.backgroundColor,F=z&&z.image;F&&(F=ige(F),nS(F)&&(C.width=Math.max(C.width,F.width*R/F.height)))}var H=v&&n!=null?n-w:null;H!=null&&H<C.width?!O||H<I?(C.text="",C.width=C.contentWidth=0):(C.text=age(C.text,H-I,P,t.ellipsis,{minChar:t.truncateMinChar}),C.width=C.contentWidth=Ti(C.text,P)):C.contentWidth=Ti(C.text,P)}C.width+=I,w+=C.width,A&&(b=Math.max(b,C.lineHeight))}y(S,w,b)}r.outerWidth=r.width=Qe(n,d),r.outerHeight=r.height=Qe(i,f),r.contentHeight=f,r.contentWidth=d,h&&(r.outerWidth+=h[1]+h[3],r.outerHeight+=h[0]+h[2]);for(var x=0;x<c.length;x++){var C=c[x],q=C.percentWidth;C.width=parseInt(q,10)/100*r.width}return r}function Rw(e,t,r,n,i){var a=t==="",o=i&&r.rich[i]||{},s=e.lines,l=o.font||r.font,u=!1,c,f;if(n){var d=o.padding,h=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var v=Oa(o.width,n.width)+h;s.length>0&&v+n.accumWidth>n.width&&(c=t.split(`
|
181
|
-
`),u=!0),n.accumWidth=v}else{var g=eH(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+h,f=g.linesWidths,c=g.lines}}else c=t.split(`
|
182
|
-
`);for(var y=0;y<c.length;y++){var x=c[y],S=new lge;if(S.styleName=i,S.text=x,S.isLineHolder=!x&&!a,typeof o.width=="number"?S.width=o.width:S.width=f?f[y]:Ti(x,l),!y&&!u){var b=(s[s.length-1]||(s[0]=new zN)).tokens,w=b.length;w===1&&b[0].isLineHolder?b[0]=S:(x||!w||a)&&b.push(S)}else s.push(new zN([S]))}}function fge(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var dge=Co(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function hge(e){return fge(e)?!!dge[e]:!0}function eH(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=0;f<e.length;f++){var d=e.charAt(f);if(d===`
|
183
|
-
`){l&&(s+=l,c+=u),a.push(s),o.push(c),s="",l="",u=0,c=0;continue}var h=Ti(d,t),v=n?!1:!hge(d);if(a.length?c+h>r:i+c+h>r){c?(s||l)&&(v?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=d,c=h)):v?(a.push(l),o.push(u),l=d,u=h):(a.push(d),o.push(h));continue}c+=h,v?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!a.length&&!s&&(s=e,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var V2="__zr_style_"+Math.round(Math.random()*10),rc={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},iS={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};rc[V2]=!0;var BN=["z","z2","invisible"],pge=["invisible"],ia=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=St(r),i=0;i<n.length;i++){var a=n[i];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}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,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&vge(this,r,n)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&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),a=this.getBoundingRect();return a.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(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new nt(0,0,0,0)),n?nt.applyTransform(r,i,n):r.copy(i),(o||s||l)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(l),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+l-o));var u=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-u),r.y=Math.floor(r.y-u),r.width=Math.ceil(r.width+1+u*2),r.height=Math.ceil(r.height+1+u*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new nt(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:oe(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=N0,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&N0)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(r){return Kx(rc,r)},t.prototype.useStyle=function(r){r[V2]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[V2]},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,BN)},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.style?o?a?u=n.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,n.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,n.style)):l&&(u=i.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=St(c),d=0;d<f.length;d++){var h=f[d];h in u&&(u[h]=u[h],this.style[h]=c[h])}for(var v=St(u),d=0;d<v.length;d++){var h=v[d];this.style[h]=this.style[h]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var g=this.__inHover?pge:BN,d=0;d<g.length;d++){var h=g[d];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,a=0;a<r.length;a++){var o=r[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(n.style=i),n},t.prototype._mergeStyle=function(r,n){return oe(r,n),r},t.prototype.getAnimationStyleProps=function(){return iS},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=yo|N0}(),t}(tS),Ew=new nt(0,0,0,0),Lw=new nt(0,0,0,0);function vge(e,t,r){return Ew.copy(e.getBoundingRect()),e.transform&&Ew.applyTransform(e.transform),Lw.width=t,Lw.height=r,!Ew.intersect(Lw)}var ei=Math.min,ti=Math.max,Ow=Math.sin,Nw=Math.cos,uu=Math.PI*2,Ly=Ac(),Oy=Ac(),Ny=Ac();function aS(e,t,r){if(e.length!==0){for(var n=e[0],i=n[0],a=n[0],o=n[1],s=n[1],l=1;l<e.length;l++)n=e[l],i=ei(i,n[0]),a=ti(a,n[0]),o=ei(o,n[1]),s=ti(s,n[1]);t[0]=i,t[1]=o,r[0]=a,r[1]=s}}function FN(e,t,r,n,i,a){i[0]=ei(e,r),i[1]=ei(t,n),a[0]=ti(e,r),a[1]=ti(t,n)}var VN=[],$N=[];function gge(e,t,r,n,i,a,o,s,l,u){var c=xG,f=Gr,d=c(e,r,i,o,VN);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<d;h++){var v=f(e,r,i,o,VN[h]);l[0]=ei(v,l[0]),u[0]=ti(v,u[0])}d=c(t,n,a,s,$N);for(var h=0;h<d;h++){var g=f(t,n,a,s,$N[h]);l[1]=ei(g,l[1]),u[1]=ti(g,u[1])}l[0]=ei(e,l[0]),u[0]=ti(e,u[0]),l[0]=ei(o,l[0]),u[0]=ti(o,u[0]),l[1]=ei(t,l[1]),u[1]=ti(t,u[1]),l[1]=ei(s,l[1]),u[1]=ti(s,u[1])}function mge(e,t,r,n,i,a,o,s){var l=bG,u=Qr,c=ti(ei(l(e,r,i),1),0),f=ti(ei(l(t,n,a),1),0),d=u(e,r,i,c),h=u(t,n,a,f);o[0]=ei(e,i,d),o[1]=ei(t,a,h),s[0]=ti(e,i,d),s[1]=ti(t,a,h)}function yge(e,t,r,n,i,a,o,s,l){var u=ol,c=sl,f=Math.abs(i-a);if(f%uu<1e-4&&f>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(Ly[0]=Nw(i)*r+e,Ly[1]=Ow(i)*n+t,Oy[0]=Nw(a)*r+e,Oy[1]=Ow(a)*n+t,u(s,Ly,Oy),c(l,Ly,Oy),i=i%uu,i<0&&(i=i+uu),a=a%uu,a<0&&(a=a+uu),i>a&&!o?a+=uu:i<a&&o&&(i+=uu),o){var d=a;a=i,i=d}for(var h=0;h<a;h+=Math.PI/2)h>i&&(Ny[0]=Nw(h)*r+e,Ny[1]=Ow(h)*n+t,u(s,Ny,s),c(l,Ny,l))}var er={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},cu=[],fu=[],Ya=[],Hs=[],qa=[],Xa=[],zw=Math.min,Bw=Math.max,du=Math.cos,hu=Math.sin,Wo=Math.abs,$2=Math.PI,Qs=$2*2,Fw=typeof Float32Array<"u",ap=[];function Vw(e){var t=Math.round(e/$2*1e8)/1e8;return t%2*$2}function Fk(e,t){var r=Vw(e[0]);r<0&&(r+=Qs);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Qs?i=r+Qs:t&&r-i>=Qs?i=r-Qs:!t&&r>i?i=r+(Qs-Vw(r-i)):t&&r<i&&(i=r-(Qs-Vw(i-r))),e[0]=r,e[1]=i}var ko=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=Wo(n/C1/t)||0,this._uy=Wo(n/C1/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(er.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=Wo(t-this._xi),i=Wo(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(er.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(er.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(er.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,a,o){this._drawPendingPt(),ap[0]=i,ap[1]=a,Fk(ap,o),i=ap[0],a=ap[1];var s=a-i;return this.addData(er.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=du(a)*n+t,this._yi=hu(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(er.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(er.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)&&Fw&&(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,a=0;a<r;a++)n+=t[a].len();Fw&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+n));for(var a=0;a<r;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},e.prototype.addData=function(t,r,n,i,a,o,s,l,u){if(this._saveData){var c=this.data;this._len+arguments.length>c.length&&(this._expandData(),c=this.data);for(var f=0;f<arguments.length;f++)c[this._len++]=arguments[f]}},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,Fw&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Ya[0]=Ya[1]=qa[0]=qa[1]=Number.MAX_VALUE,Hs[0]=Hs[1]=Xa[0]=Xa[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],l=o===1;switch(l&&(r=t[o],n=t[o+1],i=r,a=n),s){case er.M:r=i=t[o++],n=a=t[o++],qa[0]=i,qa[1]=a,Xa[0]=i,Xa[1]=a;break;case er.L:FN(r,n,t[o],t[o+1],qa,Xa),r=t[o++],n=t[o++];break;case er.C:gge(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],qa,Xa),r=t[o++],n=t[o++];break;case er.Q:mge(r,n,t[o++],t[o++],t[o],t[o+1],qa,Xa),r=t[o++],n=t[o++];break;case er.A:var u=t[o++],c=t[o++],f=t[o++],d=t[o++],h=t[o++],v=t[o++]+h;o+=1;var g=!t[o++];l&&(i=du(h)*f+u,a=hu(h)*d+c),yge(u,c,f,d,h,v,g,qa,Xa),r=du(v)*f+u,n=hu(v)*d+c;break;case er.R:i=r=t[o++],a=n=t[o++];var y=t[o++],x=t[o++];FN(i,a,i+y,a+x,qa,Xa);break;case er.Z:r=i,n=a;break}ol(Ya,Ya,qa),sl(Hs,Hs,Xa)}return o===0&&(Ya[0]=Ya[1]=Hs[0]=Hs[1]=0),new nt(Ya[0],Ya[1],Hs[0]-Ya[0],Hs[1]-Ya[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,n=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,d=0;d<r;){var h=t[d++],v=d===1;v&&(a=t[d],o=t[d+1],s=a,l=o);var g=-1;switch(h){case er.M:a=s=t[d++],o=l=t[d++];break;case er.L:{var y=t[d++],x=t[d++],S=y-a,b=x-o;(Wo(S)>n||Wo(b)>i||d===r-1)&&(g=Math.sqrt(S*S+b*b),a=y,o=x);break}case er.C:{var w=t[d++],T=t[d++],y=t[d++],x=t[d++],C=t[d++],A=t[d++];g=Ope(a,o,w,T,y,x,C,A,10),a=C,o=A;break}case er.Q:{var w=t[d++],T=t[d++],y=t[d++],x=t[d++];g=zpe(a,o,w,T,y,x,10),a=y,o=x;break}case er.A:var k=t[d++],I=t[d++],P=t[d++],R=t[d++],L=t[d++],O=t[d++],z=O+L;d+=1,v&&(s=du(L)*P+k,l=hu(L)*R+I),g=Bw(P,R)*zw(Qs,Math.abs(O)),a=du(z)*P+k,o=hu(z)*R+I;break;case er.R:{s=a=t[d++],l=o=t[d++];var F=t[d++],H=t[d++];g=F*2+H*2;break}case er.Z:{var S=s-a,b=l-o;g=Math.sqrt(S*S+b*b),a=s,o=l;break}}g>=0&&(u[f++]=g,c+=g)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,f,d,h=r<1,v,g,y=0,x=0,S,b=0,w,T;if(!(h&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,g=this._pathLen,S=r*g,!S)))e:for(var C=0;C<o;){var A=n[C++],k=C===1;switch(k&&(u=n[C],c=n[C+1],s=u,l=c),A!==er.L&&b>0&&(t.lineTo(w,T),b=0),A){case er.M:s=u=n[C++],l=c=n[C++],t.moveTo(u,c);break;case er.L:{f=n[C++],d=n[C++];var I=Wo(f-u),P=Wo(d-c);if(I>i||P>a){if(h){var R=v[x++];if(y+R>S){var L=(S-y)/R;t.lineTo(u*(1-L)+f*L,c*(1-L)+d*L);break e}y+=R}t.lineTo(f,d),u=f,c=d,b=0}else{var O=I*I+P*P;O>b&&(w=f,T=d,b=O)}break}case er.C:{var z=n[C++],F=n[C++],H=n[C++],q=n[C++],$=n[C++],X=n[C++];if(h){var R=v[x++];if(y+R>S){var L=(S-y)/R;Cl(u,z,H,$,L,cu),Cl(c,F,q,X,L,fu),t.bezierCurveTo(cu[1],fu[1],cu[2],fu[2],cu[3],fu[3]);break e}y+=R}t.bezierCurveTo(z,F,H,q,$,X),u=$,c=X;break}case er.Q:{var z=n[C++],F=n[C++],H=n[C++],q=n[C++];if(h){var R=v[x++];if(y+R>S){var L=(S-y)/R;Bv(u,z,H,L,cu),Bv(c,F,q,L,fu),t.quadraticCurveTo(cu[1],fu[1],cu[2],fu[2]);break e}y+=R}t.quadraticCurveTo(z,F,H,q),u=H,c=q;break}case er.A:var B=n[C++],Y=n[C++],Z=n[C++],j=n[C++],re=n[C++],ce=n[C++],te=n[C++],pe=!n[C++],ae=Z>j?Z:j,he=Wo(Z-j)>.001,ve=re+ce,fe=!1;if(h){var R=v[x++];y+R>S&&(ve=re+ce*(S-y)/R,fe=!0),y+=R}if(he&&t.ellipse?t.ellipse(B,Y,Z,j,te,re,ve,pe):t.arc(B,Y,ae,re,ve,pe),fe)break e;k&&(s=du(re)*Z+B,l=hu(re)*j+Y),u=du(ve)*Z+B,c=hu(ve)*j+Y;break;case er.R:s=u=n[C],l=c=n[C+1],f=n[C++],d=n[C++];var ge=n[C++],Re=n[C++];if(h){var R=v[x++];if(y+R>S){var Ie=S-y;t.moveTo(f,d),t.lineTo(f+zw(Ie,ge),d),Ie-=ge,Ie>0&&t.lineTo(f+ge,d+zw(Ie,Re)),Ie-=Re,Ie>0&&t.lineTo(f+Bw(ge-Ie,0),d+Re),Ie-=ge,Ie>0&&t.lineTo(f,d+Bw(Re-Ie,0));break e}y+=R}t.rect(f,d,ge,Re);break;case er.Z:if(h){var R=v[x++];if(y+R>S){var L=(S-y)/R;t.lineTo(u*(1-L)+s*L,c*(1-L)+l*L);break e}y+=R}t.closePath(),u=s,c=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=er,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function rl(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||o<t-s&&o<n-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)l=(t-n)/(e-r),u=(e*n-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var c=l*a-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function xge(e,t,r,n,i,a,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>t+f&&c>n+f&&c>a+f&&c>s+f||c<t-f&&c<n-f&&c<a-f&&c<s-f||u>e+f&&u>r+f&&u>i+f&&u>o+f||u<e-f&&u<r-f&&u<i-f&&u<o-f)return!1;var d=SG(e,t,r,n,i,a,o,s,u,c,null);return d<=f/2}function tH(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>t+u&&l>n+u&&l>a+u||l<t-u&&l<n-u&&l<a-u||s>e+u&&s>r+u&&s>i+u||s<e-u&&s<r-u&&s<i-u)return!1;var c=_G(e,t,r,n,i,a,s,l,null);return c<=u/2}var GN=Math.PI*2;function bi(e){return e%=GN,e<0&&(e+=GN),e}var op=Math.PI*2;function Sge(e,t,r,n,i,a,o,s,l){if(o===0)return!1;var u=o;s-=e,l-=t;var c=Math.sqrt(s*s+l*l);if(c-u>r||c+u<r)return!1;if(Math.abs(n-i)%op<1e-4)return!0;if(a){var f=n;n=bi(i),i=bi(f)}else n=bi(n),i=bi(i);n>i&&(i+=op);var d=Math.atan2(l,s);return d<0&&(d+=op),d>=n&&d<=i||d+op>=n&&d+op<=i}function Xo(e,t,r,n,i,a){if(a>t&&a>n||a<t&&a<n||n===t)return 0;var o=(a-t)/(n-t),s=n<t?1:-1;(o===1||o===0)&&(s=n<t?.5:-.5);var l=o*(r-e)+e;return l===i?1/0:l>i?s:0}var Ws=ko.CMD,pu=Math.PI*2,bge=1e-4;function _ge(e,t){return Math.abs(e-t)<bge}var Rn=[-1,-1,-1],Hi=[-1,-1];function wge(){var e=Hi[0];Hi[0]=Hi[1],Hi[1]=e}function Cge(e,t,r,n,i,a,o,s,l,u){if(u>t&&u>n&&u>a&&u>s||u<t&&u<n&&u<a&&u<s)return 0;var c=S1(t,n,a,s,u,Rn);if(c===0)return 0;for(var f=0,d=-1,h=void 0,v=void 0,g=0;g<c;g++){var y=Rn[g],x=y===0||y===1?.5:1,S=Gr(e,r,i,o,y);S<l||(d<0&&(d=xG(t,n,a,s,Hi),Hi[1]<Hi[0]&&d>1&&wge(),h=Gr(t,n,a,s,Hi[0]),d>1&&(v=Gr(t,n,a,s,Hi[1]))),d===2?y<Hi[0]?f+=h<t?x:-x:y<Hi[1]?f+=v<h?x:-x:f+=s<v?x:-x:y<Hi[0]?f+=h<t?x:-x:f+=s<h?x:-x)}return f}function Tge(e,t,r,n,i,a,o,s){if(s>t&&s>n&&s>a||s<t&&s<n&&s<a)return 0;var l=Npe(t,n,a,s,Rn);if(l===0)return 0;var u=bG(t,n,a);if(u>=0&&u<=1){for(var c=0,f=Qr(t,n,a,u),d=0;d<l;d++){var h=Rn[d]===0||Rn[d]===1?.5:1,v=Qr(e,r,i,Rn[d]);v<o||(Rn[d]<u?c+=f<t?h:-h:c+=a<f?h:-h)}return c}else{var h=Rn[0]===0||Rn[0]===1?.5:1,v=Qr(e,r,i,Rn[0]);return v<o?0:a<t?h:-h}}function Age(e,t,r,n,i,a,o,s){if(s-=t,s>r||s<-r)return 0;var l=Math.sqrt(r*r-s*s);Rn[0]=-l,Rn[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=pu-1e-4){n=0,i=pu;var c=a?1:-1;return o>=Rn[0]+e&&o<=Rn[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=pu,i+=pu);for(var d=0,h=0;h<2;h++){var v=Rn[h];if(v+e>o){var g=Math.atan2(s,v),c=a?1:-1;g<0&&(g=pu+g),(g>=n&&g<=i||g+pu>=n&&g+pu<=i)&&(g>Math.PI/2&&g<Math.PI*1.5&&(c=-c),d+=c)}}return d}function rH(e,t,r,n,i){for(var a=e.data,o=e.len(),s=0,l=0,u=0,c=0,f=0,d,h,v=0;v<o;){var g=a[v++],y=v===1;switch(g===Ws.M&&v>1&&(r||(s+=Xo(l,u,c,f,n,i))),y&&(l=a[v],u=a[v+1],c=l,f=u),g){case Ws.M:c=a[v++],f=a[v++],l=c,u=f;break;case Ws.L:if(r){if(rl(l,u,a[v],a[v+1],t,n,i))return!0}else s+=Xo(l,u,a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Ws.C:if(r){if(xge(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=Cge(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Ws.Q:if(r){if(tH(l,u,a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=Tge(l,u,a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case Ws.A:var x=a[v++],S=a[v++],b=a[v++],w=a[v++],T=a[v++],C=a[v++];v+=1;var A=!!(1-a[v++]);d=Math.cos(T)*b+x,h=Math.sin(T)*w+S,y?(c=d,f=h):s+=Xo(l,u,d,h,n,i);var k=(n-x)*w/b+x;if(r){if(Sge(x,S,w,T,T+C,A,t,k,i))return!0}else s+=Age(x,S,w,T,T+C,A,k,i);l=Math.cos(T+C)*b+x,u=Math.sin(T+C)*w+S;break;case Ws.R:c=l=a[v++],f=u=a[v++];var I=a[v++],P=a[v++];if(d=c+I,h=f+P,r){if(rl(c,f,d,f,t,n,i)||rl(d,f,d,h,t,n,i)||rl(d,h,c,h,t,n,i)||rl(c,h,c,f,t,n,i))return!0}else s+=Xo(d,f,d,h,n,i),s+=Xo(c,h,c,f,n,i);break;case Ws.Z:if(r){if(rl(l,u,c,f,t,n,i))return!0}else s+=Xo(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!_ge(u,f)&&(s+=Xo(l,u,c,f,n,i)||0),s!==0}function Mge(e,t,r){return rH(e,0,!1,t,r)}function kge(e,t,r,n){return rH(e,t,!0,r,n)}var A1=Ve({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},rc),Ige={style:Ve({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},iS.style)},$w=Ao.concat(["invisible","culling","z","z2","zlevel","parent"]),vt=function(e){J(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 a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s<$w.length;++s)i[$w[s]]=this[$w[s]];i.__dirty|=yo}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=St(r);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<n.length;a++){var o=n[a],s=r[o];o==="style"?this.style?oe(this.style,s):this.useStyle(s):o==="shape"?oe(this.shape,s):e.prototype.attrKV.call(this,o,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(we(r)){var n=_1(r,0);return n>.5?O2:n>.2?fve:N2}else if(r)return N2}return O2},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(we(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=_1(r,0)<L2;if(a===o)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 ko(!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 a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&Op)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.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,u=n.lineWidth;if(!this.hasFill()){var c=this.strokeContainThreshold;u=Math.max(u,c??4)}l>1e-10&&(s.width+=u/l,s.height+=u/l,s.x-=u/l/2,s.y-=u/l/2)}return s}return r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),kge(s,l/u,r,n)))return!0}if(this.hasFill())return Mge(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Op,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:oe(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&Op)},t.prototype.createStyle=function(r){return Kx(A1,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=oe({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=oe({},i.shape),oe(u,n.shape)):(u=oe({},a?this.shape:i.shape),oe(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=oe({},this.shape);for(var c={},f=St(u),d=0;d<f.length;d++){var h=f[d];typeof u[h]=="object"?this.shape[h]=u[h]:c[h]=u[h]}this._transitionState(r,{shape:c},s)}else this.shape=u,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var n=e.prototype._mergeStates.call(this,r),i,a=0;a<r.length;a++){var o=r[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(n.shape=i),n},t.prototype.getAnimationStyleProps=function(){return Ige},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var n=function(a){J(o,a);function o(s){var l=a.call(this,s)||this;return r.init&&r.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return We(r.style)},o.prototype.getDefaultShape=function(){return We(r.shape)},o}(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=yo|N0|Op}(),t}(ia),Pge=Ve({strokeFirst:!0,font:_l,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},A1),md=function(e){J(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 Kx(Pge,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=Mg(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(ia);md.prototype.type="tspan";var Dge=Ve({x:0,y:0},rc),Rge={style:Ve({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},iS.style)};function Ege(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var en=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Kx(Dge,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=Ege(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return Rge},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new nt(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(ia);en.prototype.type="image";function Lge(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,c;i<0&&(r=r+i,i=-i),a<0&&(n=n+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[3]):s=l=u=c=0;var f;s+l>i&&(f=s+l,s*=i/f,l*=i/f),u+c>i&&(f=u+c,u*=i/f,c*=i/f),l+u>a&&(f=l+u,l*=a/f,u*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/f),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+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+c,n+a),c!==0&&e.arc(r+c,n+a-c,c,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 Wf=Math.round;function nH(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(Wf(n*2)===Wf(i*2)&&(e.x1=e.x2=Uu(n,s,!0)),Wf(a*2)===Wf(o*2)&&(e.y1=e.y2=Uu(a,s,!0))),e}}function iH(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=Uu(n,s,!0),e.y=Uu(i,s,!0),e.width=Math.max(Uu(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(Uu(i+o,s,!1)-e.y,o===0?0:1)),e}}function Uu(e,t,r){if(!t)return e;var n=Wf(e*2);return(n+Wf(t))%2===0?n/2:(n+(r?1:-1))/2}var Oge=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),Nge={},Ct=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Oge},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=iH(Nge,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?Lge(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(vt);Ct.prototype.type="rect";var HN={fill:"#000"},WN=2,zge={style:Ve({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},iS.style)},kt=function(e){J(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=HN,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,Vge(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 nt(0,0,0,0),n=this._children,i=[],a=null,o=0;o<n.length;o++){var s=n[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(r.copy(l),r.applyTransform(u),a=a||r.clone(),a.union(r)):(a=a||l.clone(),a.union(l))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||HN},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,n){if(!n)return r;var i=n.rich,a=r.rich||i&&{};return oe(r,n),i&&a?(this._mergeRich(a,i),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,n){for(var i=St(n),a=0;a<i.length;a++){var o=i[a];r[o]=r[o]||{},oe(r[o],n[o])}},t.prototype.getAnimationStyleProps=function(){return zge},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||_l,i=r.padding,a=KN(r),o=sge(a,r),s=Gw(r),l=!!r.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,d=o.lines,h=o.lineHeight,v=this._defaultStyle,g=r.x||0,y=r.y||0,x=r.align||v.align||"left",S=r.verticalAlign||v.verticalAlign||"top",b=g,w=Nf(y,o.contentHeight,S);if(s||i){var T=zp(g,c,x),C=Nf(y,u,S);s&&this._renderBackground(r,r,T,C,c,u)}w+=h/2,i&&(b=ZN(g,x,i),S==="top"?w+=i[0]:S==="bottom"&&(w-=i[2]));for(var A=0,k=!1,I=XN("fill"in r?r.fill:(k=!0,v.fill)),P=qN("stroke"in r?r.stroke:!l&&(!v.autoStroke||k)?(A=WN,v.stroke):null),R=r.textShadowBlur>0,L=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),O=o.calculatedLineHeight,z=0;z<d.length;z++){var F=this._getOrCreateChild(md),H=F.createStyle();F.useStyle(H),H.text=d[z],H.x=b,H.y=w,H.textAlign=x,H.textBaseline="middle",H.opacity=r.opacity,H.strokeFirst=!0,R&&(H.shadowBlur=r.textShadowBlur||0,H.shadowColor=r.textShadowColor||"transparent",H.shadowOffsetX=r.textShadowOffsetX||0,H.shadowOffsetY=r.textShadowOffsetY||0),H.stroke=P,H.fill=I,P&&(H.lineWidth=r.lineWidth||A,H.lineDash=r.lineDash,H.lineDashOffset=r.lineDashOffset||0),H.font=n,UN(H,r),w+=h,L&&F.setBoundingRect(new nt(zp(H.x,r.width,H.textAlign),Nf(H.y,O,H.textBaseline),f,O))}},t.prototype._updateRichTexts=function(){var r=this.style,n=KN(r),i=cge(n,r),a=i.width,o=i.outerWidth,s=i.outerHeight,l=r.padding,u=r.x||0,c=r.y||0,f=this._defaultStyle,d=r.align||f.align,h=r.verticalAlign||f.verticalAlign,v=zp(u,o,d),g=Nf(c,s,h),y=v,x=g;l&&(y+=l[3],x+=l[0]);var S=y+a;Gw(r)&&this._renderBackground(r,r,v,g,o,s);for(var b=!!r.backgroundColor,w=0;w<i.lines.length;w++){for(var T=i.lines[w],C=T.tokens,A=C.length,k=T.lineHeight,I=T.width,P=0,R=y,L=S,O=A-1,z=void 0;P<A&&(z=C[P],!z.align||z.align==="left");)this._placeToken(z,r,k,x,R,"left",b),I-=z.width,R+=z.width,P++;for(;O>=0&&(z=C[O],z.align==="right");)this._placeToken(z,r,k,x,L,"right",b),I-=z.width,L-=z.width,O--;for(R+=(a-(R-y)-(S-L)-I)/2;P<=O;)z=C[P],this._placeToken(z,r,k,x,R+z.width/2,"center",b),R+=z.width,P++;x+=k}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,f=a+i/2;c==="top"?f=a+r.height/2:c==="bottom"&&(f=a+i-r.height/2);var d=!r.isLineHolder&&Gw(u);d&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,f-r.height/2,r.width,r.height);var h=!!u.backgroundColor,v=r.textPadding;v&&(o=ZN(o,s,v),f-=r.height/2-v[0]-r.innerHeight/2);var g=this._getOrCreateChild(md),y=g.createStyle();g.useStyle(y);var x=this._defaultStyle,S=!1,b=0,w=XN("fill"in u?u.fill:"fill"in n?n.fill:(S=!0,x.fill)),T=qN("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!x.autoStroke||S)?(b=WN,x.stroke):null),C=u.textShadowBlur>0||n.textShadowBlur>0;y.text=r.text,y.x=o,y.y=f,C&&(y.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,y.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",y.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,y.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),y.textAlign=s,y.textBaseline="middle",y.font=r.font||_l,y.opacity=mo(u.opacity,n.opacity,1),UN(y,u),T&&(y.lineWidth=mo(u.lineWidth,n.lineWidth,b),y.lineDash=Qe(u.lineDash,n.lineDash),y.lineDashOffset=n.lineDashOffset||0,y.stroke=T),w&&(y.fill=w);var A=r.contentWidth,k=r.contentHeight;g.setBoundingRect(new nt(zp(y.x,A,y.textAlign),Nf(y.y,k,y.textBaseline),A,k))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,f=l&&l.image,d=l&&!f,h=r.borderRadius,v=this,g,y;if(d||r.lineHeight||u&&c){g=this._getOrCreateChild(Ct),g.useStyle(g.createStyle()),g.style.fill=null;var x=g.shape;x.x=i,x.y=a,x.width=o,x.height=s,x.r=h,g.dirtyShape()}if(d){var S=g.style;S.fill=l||null,S.fillOpacity=Qe(r.fillOpacity,1)}else if(f){y=this._getOrCreateChild(en),y.onload=function(){v.dirtyStyle()};var b=y.style;b.image=l.image,b.x=i,b.y=a,b.width=o,b.height=s}if(u&&c){var S=g.style;S.lineWidth=u,S.stroke=c,S.strokeOpacity=Qe(r.strokeOpacity,1),S.lineDash=r.borderDash,S.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(S.strokeFirst=!0,S.lineWidth*=2)}var w=(g||y).style;w.shadowBlur=r.shadowBlur||0,w.shadowColor=r.shadowColor||"transparent",w.shadowOffsetX=r.shadowOffsetX||0,w.shadowOffsetY=r.shadowOffsetY||0,w.opacity=mo(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return oH(r)&&(n=[r.fontStyle,r.fontWeight,aH(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Aa(n)||r.textFont||r.font},t}(ia),Bge={left:!0,right:1,center:1},Fge={top:1,bottom:1,middle:1},jN=["fontStyle","fontWeight","fontSize","fontFamily"];function aH(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?bk+"px":e+"px"}function UN(e,t){for(var r=0;r<jN.length;r++){var n=jN[r],i=t[n];i!=null&&(e[n]=i)}}function oH(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Vge(e){return YN(e),V(e.rich,YN),e}function YN(e){if(e){e.font=kt.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||Bge[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||Fge[r]?r:"top";var n=e.padding;n&&(e.padding=Mk(e.padding))}}function qN(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function XN(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function ZN(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function KN(e){var t=e.text;return t!=null&&(t+=""),t}function Gw(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var Ze=Tt(),G2=function(e,t,r,n){if(n){var i=Ze(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=Ze(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},QN=1,JN={},sH=Tt(),Vk=Tt(),$k=0,Ig=1,oS=2,Bn=["emphasis","blur","select"],Hv=["normal","emphasis","blur","select"],Od=10,$ge=9,nc="highlight",$0="downplay",dv="select",G0="unselect",hv="toggleSelect";function gf(e){return e!=null&&e!=="none"}function sS(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function lH(e){sS(e,"emphasis",oS)}function uH(e){e.hoverState===oS&&sS(e,"normal",$k)}function Gk(e){sS(e,"blur",Ig)}function cH(e){e.hoverState===Ig&&sS(e,"normal",$k)}function Gge(e){e.selected=!0}function Hge(e){e.selected=!1}function e5(e,t,r){t(e,r)}function ms(e,t,r){e5(e,t,r),e.isGroup&&e.traverse(function(n){e5(n,t,r)})}function M1(e,t){switch(t){case"emphasis":e.hoverState=oS;break;case"normal":e.hoverState=$k;break;case"blur":e.hoverState=Ig;break;case"select":e.selected=!0}}function Wge(e,t,r,n){for(var i=e.style,a={},o=0;o<t.length;o++){var s=t[o],l=i[s];a[s]=l??(n&&n[s])}for(var o=0;o<e.animators.length;o++){var u=e.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(r)<0&&u.targetName==="style"&&u.saveTo(a,t)}return a}function jge(e,t,r,n){var i=r&&ft(r,"select")>=0,a=!1;if(e instanceof vt){var o=sH(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(gf(s)||gf(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=oe({},n),u=oe({},u),u.fill=s):!gf(u.fill)&&gf(s)?(a=!0,n=oe({},n),u=oe({},u),u.fill=M2(s)):!gf(u.stroke)&&gf(l)&&(a||(n=oe({},n),u=oe({},u)),u.stroke=M2(l)),n.style=u}}if(n&&n.z2==null){a||(n=oe({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??Od)}return n}function Uge(e,t,r){if(r&&r.z2==null){r=oe({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??$ge)}return r}function Yge(e,t,r){var n=ft(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:Wge(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=oe({},r),o=oe({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Hw(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return jge(this,e,t,r);if(e==="blur")return Yge(this,e,r);if(e==="select")return Uge(this,e,r)}return r}function xc(e){e.stateProxy=Hw;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Hw),r&&(r.stateProxy=Hw)}function t5(e,t){!pH(e,t)&&!e.__highByOuter&&ms(e,lH)}function r5(e,t){!pH(e,t)&&!e.__highByOuter&&ms(e,uH)}function us(e,t){e.__highByOuter|=1<<(t||0),ms(e,lH)}function cs(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&ms(e,uH)}function fH(e){ms(e,Gk)}function Hk(e){ms(e,cH)}function dH(e){ms(e,Gge)}function hH(e){ms(e,Hge)}function pH(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function vH(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=Vk(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){cH(u)}),s&&r.push(a)),o.isBlured=!1}),V(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function H2(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,c){for(var f=0;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&Hk(d)}}if(e!=null&&!(!t||t==="none")){var o=i.getSeriesByIndex(e),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var c=o===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(r==="series"&&!c||r==="coordinateSystem"&&!d||t==="series"&&c)){var h=n.getViewOfSeriesModel(u);if(h.group.traverse(function(y){y.__highByOuter&&c&&t==="self"||Gk(y)}),wn(t))a(u.getData(),t);else if(Ge(t))for(var v=St(t),g=0;g<v.length;g++)a(u.getData(v[g]),t[v[g]]);l.push(u),Vk(u).isBlured=!0}}),i.eachComponent(function(u,c){if(u!=="series"){var f=n.getViewOfComponentModel(c);f&&f.toggleBlurSeries&&f.toggleBlurSeries(l,!0,i)}})}}function W2(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){Vk(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){Gk(a)})}}}function qge(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=mc(i,t);a=(ue(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=Ze(o);H2(n,u.focus,u.blurScope,r)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&H2(n,c,f,r)}}}function Wk(e,t,r,n){var i={focusSelf:!1,dispatchers:null};if(e==null||e==="series"||t==null||r==null)return i;var a=n.getModel().getComponent(e,t);if(!a)return i;var o=n.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(r),l,u=0;u<s.length;u++)if(Ze(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Xge(e,t,r){var n=Ze(e),i=Wk(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&W2(n.componentMainType,n.componentIndex,r),V(a,function(s){return t5(s,t)})):(H2(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&W2(n.componentMainType,n.componentIndex,r),t5(e,t))}function Zge(e,t,r){vH(r);var n=Ze(e),i=Wk(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?V(i,function(a){return r5(a,t)}):r5(e,t)}function Kge(e,t,r){if(U2(t)){var n=t.dataType,i=e.getData(n),a=mc(i,t);ue(a)||(a=[a]),e[t.type===hv?"toggleSelect":t.type===dv?"select":"unselect"](a,n)}}function n5(e){var t=e.getAllData();V(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?dH(a):hH(a)})})}function Qge(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();V(n,function(i){i.data;var a=i.type,o=r.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function ic(e,t,r){Yu(e,!0),ms(e,xc),j2(e,t,r)}function Jge(e){Yu(e,!1)}function mr(e,t,r,n){n?Jge(e):ic(e,t,r)}function j2(e,t,r){var n=Ze(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var i5=["emphasis","blur","select"],eme={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function cn(e,t,r,n){r=r||"itemStyle";for(var i=0;i<i5.length;i++){var a=i5[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=n?n(o):o[eme[r]]()}}function Yu(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 Wv(e){return!!(e&&e.__highDownDispatcher)}function tme(e,t,r){var n=Ze(e);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=r}function rme(e){var t=JN[e];return t==null&&QN<=32&&(t=JN[e]=QN++),t}function U2(e){var t=e.type;return t===dv||t===G0||t===hv}function a5(e){var t=e.type;return t===nc||t===$0}function nme(e){var t=sH(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 mf=ko.CMD,ime=[[],[],[]],o5=Math.sqrt,ame=Math.atan2;function gH(e,t){if(t){var r=e.data,n=e.len(),i,a,o,s,l,u,c=mf.M,f=mf.C,d=mf.L,h=mf.R,v=mf.A,g=mf.Q;for(o=0,s=0;o<n;){switch(i=r[o++],s=o,a=0,i){case c:a=1;break;case d:a=1;break;case f:a=3;break;case g:a=2;break;case v:var y=t[4],x=t[5],S=o5(t[0]*t[0]+t[1]*t[1]),b=o5(t[2]*t[2]+t[3]*t[3]),w=ame(-t[1]/b,t[0]/S);r[o]*=S,r[o++]+=y,r[o]*=b,r[o++]+=x,r[o++]*=S,r[o++]*=b,r[o++]+=w,r[o++]+=w,o+=2,s=o;break;case h:u[0]=r[o++],u[1]=r[o++],un(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],un(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var T=ime[l];T[0]=r[o++],T[1]=r[o++],un(T,T,t),r[s++]=T[0],r[s++]=T[1]}}e.increaseVersion()}}var Ww=Math.sqrt,zy=Math.sin,By=Math.cos,sp=Math.PI;function s5(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Y2(e,t){return(e[0]*t[0]+e[1]*t[1])/(s5(e)*s5(t))}function l5(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Y2(e,t))}function u5(e,t,r,n,i,a,o,s,l,u,c){var f=l*(sp/180),d=By(f)*(e-r)/2+zy(f)*(t-n)/2,h=-1*zy(f)*(e-r)/2+By(f)*(t-n)/2,v=d*d/(o*o)+h*h/(s*s);v>1&&(o*=Ww(v),s*=Ww(v));var g=(i===a?-1:1)*Ww((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,y=g*o*h/s,x=g*-s*d/o,S=(e+r)/2+By(f)*y-zy(f)*x,b=(t+n)/2+zy(f)*y+By(f)*x,w=l5([1,0],[(d-y)/o,(h-x)/s]),T=[(d-y)/o,(h-x)/s],C=[(-1*d-y)/o,(-1*h-x)/s],A=l5(T,C);if(Y2(T,C)<=-1&&(A=sp),Y2(T,C)>=1&&(A=0),A<0){var k=Math.round(A/sp*1e6)/1e6;A=sp*2+k%2*sp}c.addData(u,S,b,o,s,w,A,f,a)}var ome=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,sme=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function lme(e){var t=new ko;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=ko.CMD,l=e.match(ome);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,h=c.match(sme)||[],v=h.length,g=0;g<v;g++)h[g]=parseFloat(h[g]);for(var y=0;y<v;){var x=void 0,S=void 0,b=void 0,w=void 0,T=void 0,C=void 0,A=void 0,k=r,I=n,P=void 0,R=void 0;switch(f){case"l":r+=h[y++],n+=h[y++],d=s.L,t.addData(d,r,n);break;case"L":r=h[y++],n=h[y++],d=s.L,t.addData(d,r,n);break;case"m":r+=h[y++],n+=h[y++],d=s.M,t.addData(d,r,n),i=r,a=n,f="l";break;case"M":r=h[y++],n=h[y++],d=s.M,t.addData(d,r,n),i=r,a=n,f="L";break;case"h":r+=h[y++],d=s.L,t.addData(d,r,n);break;case"H":r=h[y++],d=s.L,t.addData(d,r,n);break;case"v":n+=h[y++],d=s.L,t.addData(d,r,n);break;case"V":n=h[y++],d=s.L,t.addData(d,r,n);break;case"C":d=s.C,t.addData(d,h[y++],h[y++],h[y++],h[y++],h[y++],h[y++]),r=h[y-2],n=h[y-1];break;case"c":d=s.C,t.addData(d,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":x=r,S=n,P=t.len(),R=t.data,o===s.C&&(x+=r-R[P-4],S+=n-R[P-3]),d=s.C,k=h[y++],I=h[y++],r=h[y++],n=h[y++],t.addData(d,x,S,k,I,r,n);break;case"s":x=r,S=n,P=t.len(),R=t.data,o===s.C&&(x+=r-R[P-4],S+=n-R[P-3]),d=s.C,k=r+h[y++],I=n+h[y++],r+=h[y++],n+=h[y++],t.addData(d,x,S,k,I,r,n);break;case"Q":k=h[y++],I=h[y++],r=h[y++],n=h[y++],d=s.Q,t.addData(d,k,I,r,n);break;case"q":k=h[y++]+r,I=h[y++]+n,r+=h[y++],n+=h[y++],d=s.Q,t.addData(d,k,I,r,n);break;case"T":x=r,S=n,P=t.len(),R=t.data,o===s.Q&&(x+=r-R[P-4],S+=n-R[P-3]),r=h[y++],n=h[y++],d=s.Q,t.addData(d,x,S,r,n);break;case"t":x=r,S=n,P=t.len(),R=t.data,o===s.Q&&(x+=r-R[P-4],S+=n-R[P-3]),r+=h[y++],n+=h[y++],d=s.Q,t.addData(d,x,S,r,n);break;case"A":b=h[y++],w=h[y++],T=h[y++],C=h[y++],A=h[y++],k=r,I=n,r=h[y++],n=h[y++],d=s.A,u5(k,I,r,n,C,A,b,w,T,d,t);break;case"a":b=h[y++],w=h[y++],T=h[y++],C=h[y++],A=h[y++],k=r,I=n,r+=h[y++],n+=h[y++],d=s.A,u5(k,I,r,n,C,A,b,w,T,d,t);break}}(f==="z"||f==="Z")&&(d=s.Z,t.addData(d),r=i,n=a),o=d}return t.toStatic(),t}var mH=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(vt);function yH(e){return e.setData!=null}function xH(e,t){var r=lme(e),n=oe({},t);return n.buildPath=function(i){if(yH(i)){i.setData(r.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;r.rebuildPath(a,1)}},n.applyTransform=function(i){gH(r,i),this.dirtyShape()},n}function SH(e,t){return new mH(xH(e,t))}function ume(e,t){var r=xH(e,t),n=function(i){J(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(mH);return n}function cme(e,t){for(var r=[],n=e.length,i=0;i<n;i++){var a=e[i];r.push(a.getUpdatedPathProxy(!0))}var o=new vt(t);return o.createPathProxy(),o.buildPath=function(s){if(yH(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function jk(e,t){t=t||{};var r=new vt;return e.shape&&r.setShape(e.shape),r.setStyle(e.style),t.bakeTransform?gH(r.path,e.getComputedTransform()):t.toLocal?r.setLocalTransform(e.getComputedTransform()):r.copyTransform(e),r.buildPath=e.buildPath,r.applyTransform=r.applyTransform,r.z=e.z,r.z2=e.z2,r.zlevel=e.zlevel,r}var fme=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),ys=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new fme},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}(vt);ys.prototype.type="circle";var dme=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),lS=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new dme},t.prototype.buildPath=function(r,n){var i=.5522848,a=n.cx,o=n.cy,s=n.rx,l=n.ry,u=s*i,c=l*i;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-c,a-u,o-l,a,o-l),r.bezierCurveTo(a+u,o-l,a+s,o-c,a+s,o),r.bezierCurveTo(a+s,o+c,a+u,o+l,a,o+l),r.bezierCurveTo(a-u,o+l,a-s,o+c,a-s,o),r.closePath()},t}(vt);lS.prototype.type="ellipse";var bH=Math.PI,jw=bH*2,vu=Math.sin,yf=Math.cos,hme=Math.acos,mn=Math.atan2,c5=Math.abs,pv=Math.sqrt,Bp=Math.max,Za=Math.min,Sa=1e-4;function pme(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,d=f*l-c*u;if(!(d*d<Sa))return d=(c*(t-a)-f*(e-i))/d,[e+d*l,t+d*u]}function Fy(e,t,r,n,i,a,o){var s=e-r,l=t-n,u=(o?a:-a)/pv(s*s+l*l),c=u*l,f=-u*s,d=e+c,h=t+f,v=r+c,g=n+f,y=(d+v)/2,x=(h+g)/2,S=v-d,b=g-h,w=S*S+b*b,T=i-a,C=d*g-v*h,A=(b<0?-1:1)*pv(Bp(0,T*T*w-C*C)),k=(C*b-S*A)/w,I=(-C*S-b*A)/w,P=(C*b+S*A)/w,R=(-C*S+b*A)/w,L=k-y,O=I-x,z=P-y,F=R-x;return L*L+O*O>z*z+F*F&&(k=P,I=R),{cx:k,cy:I,x0:-c,y0:-f,x1:k*(i/T-1),y1:I*(i/T-1)}}function vme(e){var t;if(ue(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 gme(e,t){var r,n=Bp(t.r,0),i=Bp(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,f=t.cy,d=!!t.clockwise,h=c5(u-l),v=h>jw&&h%jw;if(v>Sa&&(h=v),!(n>Sa))e.moveTo(c,f);else if(h>jw-Sa)e.moveTo(c+n*yf(l),f+n*vu(l)),e.arc(c,f,n,l,u,!d),i>Sa&&(e.moveTo(c+i*yf(u),f+i*vu(u)),e.arc(c,f,i,u,l,d));else{var g=void 0,y=void 0,x=void 0,S=void 0,b=void 0,w=void 0,T=void 0,C=void 0,A=void 0,k=void 0,I=void 0,P=void 0,R=void 0,L=void 0,O=void 0,z=void 0,F=n*yf(l),H=n*vu(l),q=i*yf(u),$=i*vu(u),X=h>Sa;if(X){var B=t.cornerRadius;B&&(r=vme(B),g=r[0],y=r[1],x=r[2],S=r[3]);var Y=c5(n-i)/2;if(b=Za(Y,x),w=Za(Y,S),T=Za(Y,g),C=Za(Y,y),I=A=Bp(b,w),P=k=Bp(T,C),(A>Sa||k>Sa)&&(R=n*yf(u),L=n*vu(u),O=i*yf(l),z=i*vu(l),h<bH)){var Z=pme(F,H,O,z,R,L,q,$);if(Z){var j=F-Z[0],re=H-Z[1],ce=R-Z[0],te=L-Z[1],pe=1/vu(hme((j*ce+re*te)/(pv(j*j+re*re)*pv(ce*ce+te*te)))/2),ae=pv(Z[0]*Z[0]+Z[1]*Z[1]);I=Za(A,(n-ae)/(pe+1)),P=Za(k,(i-ae)/(pe-1))}}}if(!X)e.moveTo(c+F,f+H);else if(I>Sa){var he=Za(x,I),ve=Za(S,I),fe=Fy(O,z,F,H,n,he,d),ge=Fy(R,L,q,$,n,ve,d);e.moveTo(c+fe.cx+fe.x0,f+fe.cy+fe.y0),I<A&&he===ve?e.arc(c+fe.cx,f+fe.cy,I,mn(fe.y0,fe.x0),mn(ge.y0,ge.x0),!d):(he>0&&e.arc(c+fe.cx,f+fe.cy,he,mn(fe.y0,fe.x0),mn(fe.y1,fe.x1),!d),e.arc(c,f,n,mn(fe.cy+fe.y1,fe.cx+fe.x1),mn(ge.cy+ge.y1,ge.cx+ge.x1),!d),ve>0&&e.arc(c+ge.cx,f+ge.cy,ve,mn(ge.y1,ge.x1),mn(ge.y0,ge.x0),!d))}else e.moveTo(c+F,f+H),e.arc(c,f,n,l,u,!d);if(!(i>Sa)||!X)e.lineTo(c+q,f+$);else if(P>Sa){var he=Za(g,P),ve=Za(y,P),fe=Fy(q,$,R,L,i,-ve,d),ge=Fy(F,H,O,z,i,-he,d);e.lineTo(c+fe.cx+fe.x0,f+fe.cy+fe.y0),P<k&&he===ve?e.arc(c+fe.cx,f+fe.cy,P,mn(fe.y0,fe.x0),mn(ge.y0,ge.x0),!d):(ve>0&&e.arc(c+fe.cx,f+fe.cy,ve,mn(fe.y0,fe.x0),mn(fe.y1,fe.x1),!d),e.arc(c,f,i,mn(fe.cy+fe.y1,fe.cx+fe.x1),mn(ge.cy+ge.y1,ge.cx+ge.x1),d),he>0&&e.arc(c+ge.cx,f+ge.cy,he,mn(ge.y1,ge.x1),mn(ge.y0,ge.x0),!d))}else e.lineTo(c+q,f+$),e.arc(c,f,i,u,l,d)}e.closePath()}}}var mme=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}(),Fn=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new mme},t.prototype.buildPath=function(r,n){gme(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(vt);Fn.prototype.type="sector";var yme=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Pg=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new yme},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}(vt);Pg.prototype.type="ring";function xme(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,c,f;if(n){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=e.length;d<h;d++)ol(c,c,e[d]),sl(f,f,e[d]);ol(c,c,n[0]),sl(f,f,n[1])}for(var d=0,h=e.length;d<h;d++){var v=e[d];if(r)l=e[d?d-1:h-1],u=e[(d+1)%h];else if(d===0||d===h-1){i.push(Jo(e[d]));continue}else l=e[d-1],u=e[d+1];ju(a,u,l),E0(a,a,t);var g=y2(v,l),y=y2(v,u),x=g+y;x!==0&&(g/=x,y/=x),E0(o,a,-g),E0(s,a,y);var S=oN([],v,o),b=oN([],v,s);n&&(sl(S,S,c),ol(S,S,f),sl(b,b,c),ol(b,b,f)),i.push(S),i.push(b)}return r&&i.push(i.shift()),i}function _H(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=xme(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;s<f;s++)e.lineTo(i[s][0],i[s][1])}r&&e.closePath()}}var Sme=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),Vn=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Sme},t.prototype.buildPath=function(r,n){_H(r,n,!0)},t}(vt);Vn.prototype.type="polygon";var bme=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),Gn=function(e){J(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 bme},t.prototype.buildPath=function(r,n){_H(r,n,!1)},t}(vt);Gn.prototype.type="polyline";var _me={},wme=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),Hr=function(e){J(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 wme},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=nH(_me,n,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=n.x1,a=n.y1,o=n.x2,s=n.y2;var u=n.percent;u!==0&&(r.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),r.lineTo(o,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}(vt);Hr.prototype.type="line";var Zn=[],Cme=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 f5(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?yN:Gr)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?yN:Gr)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?w2:Qr)(e.x1,e.cpx1,e.x2,t),(r?w2:Qr)(e.y1,e.cpy1,e.y2,t)]}var Dg=function(e){J(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 Cme},t.prototype.buildPath=function(r,n){var i=n.x1,a=n.y1,o=n.x2,s=n.y2,l=n.cpx1,u=n.cpy1,c=n.cpx2,f=n.cpy2,d=n.percent;d!==0&&(r.moveTo(i,a),c==null||f==null?(d<1&&(Bv(i,l,o,d,Zn),l=Zn[1],o=Zn[2],Bv(a,u,s,d,Zn),u=Zn[1],s=Zn[2]),r.quadraticCurveTo(l,u,o,s)):(d<1&&(Cl(i,l,c,o,d,Zn),l=Zn[1],c=Zn[2],o=Zn[3],Cl(a,u,f,s,d,Zn),u=Zn[1],f=Zn[2],s=Zn[3]),r.bezierCurveTo(l,u,c,f,o,s)))},t.prototype.pointAt=function(r){return f5(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=f5(this.shape,r,!0);return Rd(n,n)},t}(vt);Dg.prototype.type="bezier-curve";var Tme=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}(),uS=function(e){J(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 Tme},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r,0),s=n.startAngle,l=n.endAngle,u=n.clockwise,c=Math.cos(s),f=Math.sin(s);r.moveTo(c*o+i,f*o+a),r.arc(i,a,o,s,l,!u)},t}(vt);uS.prototype.type="arc";var Uk=function(e){J(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||[],a=0;a<i.length;a++)i[a].buildPath(r,i[a].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),vt.prototype.getBoundingRect.call(this)},t}(vt),wH=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}(),Rg=function(e){J(t,e);function t(r,n,i,a,o,s){var l=e.call(this,o)||this;return l.x=r??0,l.y=n??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return t}(wH),CH=function(e){J(t,e);function t(r,n,i,a,o){var s=e.call(this,a)||this;return s.x=r??.5,s.y=n??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return t}(wH),gu=[0,0],mu=[0,0],Vy=new et,$y=new et,k1=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new et;for(var n=0;n<2;n++)this._axes[n]=new et;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var n=this._corners,i=this._axes,a=t.x,o=t.y,s=a+t.width,l=o+t.height;if(n[0].set(a,o),n[1].set(s,o),n[2].set(s,l),n[3].set(a,l),r)for(var u=0;u<4;u++)n[u].transform(r);et.sub(i[0],n[1],n[0]),et.sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(var u=0;u<2;u++)this._origin[u]=i[u].dot(n[0])},e.prototype.intersect=function(t,r){var n=!0,i=!r;return Vy.set(1/0,1/0),$y.set(0,0),!this._intersectCheckOneSide(this,t,Vy,$y,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,Vy,$y,i,-1)&&(n=!1,i)||i||et.copy(r,n?Vy:$y),n},e.prototype._intersectCheckOneSide=function(t,r,n,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,t._corners,gu),this._getProjMinMaxOnAxis(l,r._corners,mu),gu[1]<mu[0]||gu[0]>mu[1]){if(s=!1,a)return s;var c=Math.abs(mu[0]-gu[1]),f=Math.abs(gu[0]-mu[1]);Math.min(c,f)>i.len()&&(c<f?et.scale(i,u,-c*o):et.scale(i,u,f*o))}else if(n){var c=Math.abs(mu[0]-gu[1]),f=Math.abs(gu[0]-mu[1]);Math.min(c,f)<n.len()&&(c<f?et.scale(n,u,c*o):et.scale(n,u,-f*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,n){for(var i=this._axes[t],a=this._origin,o=r[0].dot(i)+a[t],s=o,l=o,u=1;u<r.length;u++){var c=r[u].dot(i)+a[t];s=Math.min(c,s),l=Math.max(c,l)}n[0]=s,n[1]=l},e}(),Ame=[],Mme=function(e){J(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 nt(1/0,1/0,-1/0,-1/0),n=0;n<this._displayables.length;n++){var i=this._displayables[n],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(Ame)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,n))return!0}return!1},t}(ia),TH=Tt();function Nd(e,t,r,n,i){var a;if(t&&t.ecModel){var o=t.ecModel.getUpdatePayload();a=o&&o.animation}var s=t&&t.isAnimationEnabled(),l=e==="update";if(s){var u=void 0,c=void 0,f=void 0;n?(u=Qe(n.duration,200),c=Qe(n.easing,"cubicOut"),f=0):(u=t.getShallow(l?"animationDurationUpdate":"animationDuration"),c=t.getShallow(l?"animationEasingUpdate":"animationEasing"),f=t.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(c=a.easing),a.delay!=null&&(f=a.delay)),Be(f)&&(f=f(r,i)),Be(u)&&(u=u(r));var d={duration:u||0,delay:f,easing:c};return d}else return null}function Yk(e,t,r,n,i,a,o){var s=!1,l;Be(i)?(o=a,a=i,i=null):Ge(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=e==="leave";u||t.stopAnimation("leave");var c=Nd(e,n,i,u?l||{}:null,n&&n.getAnimationDelayParams?n.getAnimationDelayParams(t,i):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,h=c.easing,v={duration:f,delay:d||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,v):t.animateTo(r,v)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function Lt(e,t,r,n,i,a){Yk("update",e,t,r,n,i,a)}function lr(e,t,r,n,i,a){Yk("enter",e,t,r,n,i,a)}function Jf(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 Tl(e,t,r,n,i,a){Jf(e)||Yk("leave",e,t,r,n,i,a)}function d5(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),Tl(e,{style:{opacity:0}},t,r,n)}function jv(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||d5(i,t,r,n)}):d5(e,t,r,n)}function Na(e){TH(e).oldStyle=e.style}function kme(e){return TH(e).oldStyle}var I1=Math.max,P1=Math.min,q2={};function Ime(e){return vt.extend(e)}var Pme=ume;function Dme(e,t){return Pme(e,t)}function Ba(e,t){q2[e]=t}function qk(e){if(q2.hasOwnProperty(e))return q2[e]}function cS(e,t,r,n){var i=SH(e,t);return r&&(n==="center"&&(r=MH(r,i.getBoundingRect())),kH(i,r)),i}function AH(e,t,r){var n=new en({style:{image:e,x:t.x,y:t.y,width:t.width,height:t.height},onload:function(i){if(r==="center"){var a={width:i.width,height:i.height};n.setStyle(MH(t,a))}}});return n}function MH(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 a=e.x+e.width/2,o=e.y+e.height/2;return{x:a-n/2,y:o-i/2,width:n,height:i}}var Zi=cme;function kH(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function yd(e,t){return nH(e,e,{lineWidth:t}),e}function Rme(e){return iH(e.shape,e.shape,e.style),e}var H0=Uu;function ac(e,t){for(var r=Qx([]);e&&e!==t;)es(r,e.getLocalTransform(),r),e=e.parent;return r}function Ia(e,t,r){return t&&!wn(t)&&(t=Ko.getLocalTransform(t)),r&&(t=Ed([],t)),un([],e,t)}function fS(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]),a=[e==="left"?-n:e==="right"?n:0,e==="top"?-i:e==="bottom"?i:0];return a=Ia(a,t,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function h5(e){return!e.isGroup}function Eme(e){return e.shape!=null}function Eg(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){h5(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Eme(o)&&(s.shape=oe({},o.shape)),s}var a=n(e);t.traverse(function(o){if(h5(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Lt(o,l,r,Ze(o).dataIndex)}}})}function IH(e,t){return de(e,function(r){var n=r[0];n=I1(n,t.x),n=P1(n,t.x+t.width);var i=r[1];return i=I1(i,t.y),i=P1(i,t.y+t.height),[n,i]})}function Lme(e,t){var r=I1(e.x,t.x),n=P1(e.x+e.width,t.x+t.width),i=I1(e.y,t.y),a=P1(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function Lg(e,t,r){var n=oe({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),Ve(i,r),new en(n)):cS(e.replace("path://",""),n,r,"center")}function Fp(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(PH(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function PH(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,d=Uw(c,f,l,u);if(Ome(d))return!1;var h=e-i,v=t-a,g=Uw(h,v,l,u)/d;if(g<0||g>1)return!1;var y=Uw(h,v,c,f)/d;return!(y<0||y>1)}function Uw(e,t,r,n){return e*n-r*t}function Ome(e){return e<=1e-6&&e>=-1e-6}function zd(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=we(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&V(St(l),function(c){Pe(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Ze(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Ve({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function p5(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Ol(e,t){if(e)if(ue(e))for(var r=0;r<e.length;r++)p5(e[r],t);else p5(e,t)}Ba("circle",ys);Ba("ellipse",lS);Ba("sector",Fn);Ba("ring",Pg);Ba("polygon",Vn);Ba("polyline",Gn);Ba("rect",Ct);Ba("line",Hr);Ba("bezierCurve",Dg);Ba("arc",uS);const kc=Object.freeze(Object.defineProperty({__proto__:null,Arc:uS,BezierCurve:Dg,BoundingRect:nt,Circle:ys,CompoundPath:Uk,Ellipse:lS,Group:qe,Image:en,IncrementalDisplayable:Mme,Line:Hr,LinearGradient:Rg,OrientedBoundingRect:k1,Path:vt,Point:et,Polygon:Vn,Polyline:Gn,RadialGradient:CH,Rect:Ct,Ring:Pg,Sector:Fn,Text:kt,applyTransform:Ia,clipPointsByRect:IH,clipRectByRect:Lme,createIcon:Lg,extendPath:Dme,extendShape:Ime,getShapeClass:qk,getTransform:ac,groupTransition:Eg,initProps:lr,isElementRemoved:Jf,lineLineIntersect:PH,linePolygonIntersect:Fp,makeImage:AH,makePath:cS,mergePath:Zi,registerShape:Ba,removeElement:Tl,removeElementWithFadeOut:jv,resizePath:kH,setTooltipConfig:zd,subPixelOptimize:H0,subPixelOptimizeLine:yd,subPixelOptimizeRect:Rme,transformDirection:fS,traverseElements:Ol,updateProps:Lt},Symbol.toStringTag,{value:"Module"}));var dS={};function DH(e,t){for(var r=0;r<Bn.length;r++){var n=Bn[r],i=t[n],a=e.ensureState(n);a.style=a.style||{},a.style.text=i}var o=e.currentStates.slice();e.clearStates(!0),e.setStyle({text:t.normal}),e.useStates(o,!0)}function X2(e,t,r){var n=e.labelFetcher,i=e.labelDataIndex,a=e.labelDimIndex,o=t.normal,s;n&&(s=n.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),r!=null?{interpolatedValue:r}:null)),s==null&&(s=Be(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var l={normal:s},u=0;u<Bn.length;u++){var c=Bn[u],f=t[c];l[c]=Qe(n?n.getFormattedLabel(i,c,null,a,f&&f.get("formatter")):null,s)}return l}function fn(e,t,r,n){r=r||dS;for(var i=e instanceof kt,a=!1,o=0;o<Hv.length;o++){var s=t[Hv[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?e:e.getTextContent();if(a){i||(l||(l=new kt,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=X2(r,t),c=t.normal,f=!!c.getShallow("show"),d=ar(c,n&&n.normal,r,!1,!i);d.text=u.normal,i||e.setTextConfig(D1(c,r,!1));for(var o=0;o<Bn.length;o++){var h=Bn[o],s=t[h];if(s){var v=l.ensureState(h),g=!!Qe(s.getShallow("show"),f);if(g!==f&&(v.ignore=!g),v.style=ar(s,n&&n[h],r,!0,!i),v.style.text=u[h],!i){var y=e.ensureState(h);y.textConfig=D1(s,r,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!f,l.useStyle(d),l.dirty(),r.enableTextSetter&&(Bd(l).setLabelText=function(x){var S=X2(r,t,x);DH(l,S)})}else l&&(l.ignore=!0);e.dirty()}function Ur(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<Bn.length;n++){var i=Bn[n];r[i]=e.getModel([i,t])}return r}function ar(e,t,r,n,i){var a={};return Nme(a,e,r,n,i),t&&oe(a,t),a}function D1(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=Qe(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),a!=null&&(a*=Math.PI/180,n.rotation=a),o!=null&&(n.distance=o),n.outsideFill=e.get("color")==="inherit"?t.inheritColor||null:"auto",n}function Nme(e,t,r,n,i){r=r||dS;var a=t.ecModel,o=a&&a.option.textStyle,s=zme(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);y5(l[u]={},c,o,r,n,i,!1,!0)}}l&&(e.rich=l);var f=t.get("overflow");f&&(e.overflow=f);var d=t.get("minMargin");d!=null&&(e.margin=d),y5(e,t,o,r,n,i,!0,!1)}function zme(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||dS).rich;if(r){t=t||{};for(var n=St(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}var v5=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],g5=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],m5=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function y5(e,t,r,n,i,a,o,s){r=!i&&r||dS;var l=n&&n.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=Qe(t.getShallow("opacity"),r.opacity);(u==="inherit"||u==="auto")&&(l?u=l:u=null),(c==="inherit"||c==="auto")&&(l?c=l:c=null),a||(u=u||r.color,c=c||r.textBorderColor),u!=null&&(e.fill=u),c!=null&&(e.stroke=c);var d=Qe(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var h=Qe(t.getShallow("textBorderType"),r.textBorderType);h!=null&&(e.lineDash=h);var v=Qe(t.getShallow("textBorderDashOffset"),r.textBorderDashOffset);v!=null&&(e.lineDashOffset=v),!i&&f==null&&!s&&(f=n&&n.defaultOpacity),f!=null&&(e.opacity=f),!i&&!a&&e.fill==null&&n.inheritColor&&(e.fill=n.inheritColor);for(var g=0;g<v5.length;g++){var y=v5[g],x=Qe(t.getShallow(y),r[y]);x!=null&&(e[y]=x)}for(var g=0;g<g5.length;g++){var y=g5[g],x=t.getShallow(y);x!=null&&(e[y]=x)}if(e.verticalAlign==null){var S=t.getShallow("baseline");S!=null&&(e.verticalAlign=S)}if(!o||!n.disableBox){for(var g=0;g<m5.length;g++){var y=m5[g],x=t.getShallow(y);x!=null&&(e[y]=x)}var b=t.getShallow("borderType");b!=null&&(e.borderDash=b),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function Xk(e,t){var r=t&&t.getModel("textStyle");return Aa([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 Bd=Tt();function RH(e,t,r,n){if(e){var i=Bd(e);i.prevValue=i.value,i.value=r;var a=t.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=n,i.statesModels=t)}}function EH(e,t,r,n,i){var a=Bd(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=Qe(a.interpolatedValue,a.prevValue),l=a.value;function u(c){var f=XG(r,a.precision,s,l,c);a.interpolatedValue=c===1?null:f;var d=X2({labelDataIndex:t,labelFetcher:i,defaultText:o?o(f):f+""},a.statesModels,f);DH(e,d)}e.percent=0,(a.prevValue==null?lr:Lt)(e,{percent:1},n,t,null,u)}var Bme=["textStyle","color"],Yw=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],qw=new kt,Fme=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(Bme):null)},e.prototype.getFont=function(){return Xk({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<Yw.length;n++)r[Yw[n]]=this.getShallow(Yw[n]);return qw.useStyle(r),qw.update(),qw.getBoundingRect()},e}(),LH=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Vme=yc(LH),$me=function(){function e(){}return e.prototype.getLineStyle=function(t){return Vme(this,t)},e}(),OH=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],Gme=yc(OH),Hme=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return Gme(this,t,r)},e}(),Ft=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){rt(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 a=this.parentModel;a&&(i=a.getShallow(t))}return i},e.prototype.getModel=function(t,r){var n=t!=null,i=n?this.parsePath(t):null,a=n?this._doGet(i):this.option;return r=r||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new e(a,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(We(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(!yt.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}();zk(Ft);Qve(Ft);Lr(Ft,$me);Lr(Ft,Hme);Lr(Ft,nge);Lr(Ft,Fme);var Wme=Math.round(Math.random()*10);function Fd(e){return[e||"",Wme++].join("_")}function jme(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=uo(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=uo(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function Ume(e,t){e.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=r(o),c=u.graph,f=u.noEntryList,d={};for(V(a,function(S){d[S]=!0});f.length;){var h=f.pop(),v=c[h],g=!!d[h];g&&(s.call(l,h,v.originalDeps.slice()),delete d[h]),V(v.successor,g?x:y)}V(d,function(){var S="";throw new Error(S)});function y(S){c[S].entryCount--,c[S].entryCount===0&&f.push(S)}function x(S){d[S]=!0,y(S)}};function r(a){var o={},s=[];return V(a,function(l){var u=n(o,l),c=u.originalDeps=t(l),f=i(c,a);u.entryCount=f.length,u.entryCount===0&&s.push(l),V(f,function(d){ft(u.predecessor,d)<0&&u.predecessor.push(d);var h=n(o,d);ft(h.successor,d)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function n(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return V(a,function(l){ft(o,l)>=0&&s.push(l)}),s}}function Nl(e,t){return rt(rt({},e,!0),t,!0)}const Yme={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:". "}}}},qme={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 R1="ZH",Zk="EN",ed=Zk,W0={},Kk={},NH=yt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||ed).toUpperCase();return e.indexOf(R1)>-1?R1:ed}():ed;function zH(e,t){e=e.toUpperCase(),Kk[e]=new Ft(t),W0[e]=t}function Xme(e){if(we(e)){var t=W0[e.toUpperCase()]||{};return e===R1||e===Zk?We(t):rt(We(t),We(W0[ed]),!1)}else return rt(We(e),We(W0[ed]),!1)}function Z2(e){return Kk[e]}function Zme(){return Kk[ed]}zH(Zk,Yme);zH(R1,qme);var Qk=1e3,Jk=Qk*60,vv=Jk*60,Ki=vv*24,x5=Ki*365,Vp={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}"},Gy="{yyyy}-{MM}-{dd}",S5={year:"{yyyy}",month:"{yyyy}-{MM}",day:Gy,hour:Gy+" "+Vp.hour,minute:Gy+" "+Vp.minute,second:Gy+" "+Vp.second,millisecond:Vp.none},Xw=["year","month","day","hour","minute","second","millisecond"],BH=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function js(e,t){return e+="","0000".substr(0,t-e.length)+e}function td(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 Kme(e){return e===td(e)}function Qme(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function hS(e,t,r,n){var i=Mo(e),a=i[eI(r)](),o=i[rd(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[pS(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[Uv(r)](),f=(c-1)%12+1,d=i[vS(r)](),h=i[gS(r)](),v=i[mS(r)](),g=c>=12?"pm":"am",y=g.toUpperCase(),x=n instanceof Ft?n:Z2(n||NH)||Zme(),S=x.getModel("time"),b=S.get("month"),w=S.get("monthAbbr"),T=S.get("dayOfWeek"),C=S.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,js(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,b[o-1]).replace(/{MMM}/g,w[o-1]).replace(/{MM}/g,js(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,js(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,T[u]).replace(/{ee}/g,C[u]).replace(/{e}/g,u+"").replace(/{HH}/g,js(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,js(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,js(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,js(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,js(v,3)).replace(/{S}/g,v+"")}function Jme(e,t,r,n,i){var a=null;if(we(r))a=r;else if(Be(r))a=r(e.value,t,{level:e.level});else{var o=oe({},Vp);if(e.level>0)for(var s=0;s<Xw.length;++s)o[Xw[s]]="{primary|"+o[Xw[s]]+"}";var l=r?r.inherit===!1?r:Ve(r,o):o,u=FH(e.value,i);if(l[u])a=l[u];else if(l.inherit){for(var c=BH.indexOf(u),s=c-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(ue(a)){var f=e.level==null?0:e.level>=0?e.level:a.length+e.level;f=Math.min(f,a.length-1),a=a[f]}}return hS(new Date(e.value),a,i,n)}function FH(e,t){var r=Mo(e),n=r[rd(t)]()+1,i=r[pS(t)](),a=r[Uv(t)](),o=r[vS(t)](),s=r[gS(t)](),l=r[mS(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&a===0,h=d&&i===1,v=h&&n===1;return v?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function b5(e,t,r){var n=Dt(e)?Mo(e):e;switch(t=t||FH(e,r),t){case"year":return n[eI(r)]();case"half-year":return n[rd(r)]()>=6?1:0;case"quarter":return Math.floor((n[rd(r)]()+1)/4);case"month":return n[rd(r)]();case"day":return n[pS(r)]();case"half-day":return n[Uv(r)]()/24;case"hour":return n[Uv(r)]();case"minute":return n[vS(r)]();case"second":return n[gS(r)]();case"millisecond":return n[mS(r)]()}}function eI(e){return e?"getUTCFullYear":"getFullYear"}function rd(e){return e?"getUTCMonth":"getMonth"}function pS(e){return e?"getUTCDate":"getDate"}function Uv(e){return e?"getUTCHours":"getHours"}function vS(e){return e?"getUTCMinutes":"getMinutes"}function gS(e){return e?"getUTCSeconds":"getSeconds"}function mS(e){return e?"getUTCMilliseconds":"getMilliseconds"}function eye(e){return e?"setUTCFullYear":"setFullYear"}function VH(e){return e?"setUTCMonth":"setMonth"}function $H(e){return e?"setUTCDate":"setDate"}function GH(e){return e?"setUTCHours":"setHours"}function HH(e){return e?"setUTCMinutes":"setMinutes"}function WH(e){return e?"setUTCSeconds":"setSeconds"}function jH(e){return e?"setUTCMilliseconds":"setMilliseconds"}function UH(e){if(!$G(e))return we(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function YH(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 Vd=Mk;function K2(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Aa(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?Mo(e):e;if(isNaN(+l)){if(s)return"-"}else return hS(l,n,r)}if(t==="ordinal")return v2(e)?i(e):Dt(e)&&a(e)?e+"":"-";var u=ls(e);return a(u)?UH(u):v2(e)?i(e):typeof e=="boolean"?e+"":"-"}var _5=["a","b","c","d","e","f","g"],Zw=function(e,t){return"{"+e+(t??"")+"}"};function qH(e,t,r){ue(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=_5[a];e=e.replace(Zw(o),Zw(o,0))}for(var s=0;s<n;s++)for(var l=0;l<i.length;l++){var u=t[s][i[l]];e=e.replace(Zw(_5[l],s),r?Jn(u):u)}return e}function tye(e,t,r){return V(t,function(n,i){e=e.replace("{"+i+"}",n)}),e}function rye(e,t){var r=we(e)?{color:e,extraCssText:t}:e||{},n=r.color,i=r.type;t=r.extraCssText;var a=r.renderMode||"html";if(!n)return"";if(a==="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:'+Jn(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Jn(n)+";"+(t||"")+'"></span>';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function Sc(e,t){return t=t||"transparent",we(e)?e:Ge(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function E1(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var j0=V,XH=["left","right","top","bottom","width","height"],qu=[["width","left","right"],["height","top","bottom"]];function tI(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),f=t.childAt(u+1),d=f&&f.getBoundingRect(),h,v;if(e==="horizontal"){var g=c.width+(d?-d.x+c.x:0);h=a+g,h>n||l.newline?(a=0,h=g,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var y=c.height+(d?-d.y+c.y:0);v=o+y,v>i||l.newline?(a+=s+r,o=0,v=y,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=h+r:o=v+r)})}var oc=tI;Je(tI,"vertical");Je(tI,"horizontal");function nye(e,t,r){var n=t.width,i=t.height,a=xe(e.left,n),o=xe(e.top,i),s=xe(e.right,n),l=xe(e.bottom,i);return(isNaN(a)||isNaN(parseFloat(e.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=i),r=Vd(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function Fr(e,t,r){r=Vd(r||0);var n=t.width,i=t.height,a=xe(e.left,n),o=xe(e.top,i),s=xe(e.right,n),l=xe(e.bottom,i),u=xe(e.width,n),c=xe(e.height,i),f=r[2]+r[0],d=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-d-a),isNaN(c)&&(c=i-l-f-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(a)&&(a=n-s-u-d),isNaN(o)&&(o=i-l-c-f),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-d;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-f;break}a=a||0,o=o||0,isNaN(u)&&(u=n-d-a-(s||0)),isNaN(c)&&(c=i-f-o-(l||0));var v=new nt(a+r[3],o+r[0],u,c);return v.margin=r,v}function yS(e,t,r,n,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new nt(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=Fr(Ve({width:u.width,height:u.height},t),r,n),d=o?f.x-u.x:0,h=s?f.y-u.y:0;return l==="raw"?(a.x=d,a.y=h):(a.x+=d,a.y+=h),a===e&&e.markRedraw(),!0}function iye(e,t){return e[qu[t][0]]!=null||e[qu[t][1]]!=null&&e[qu[t][2]]!=null}function Yv(e){var t=e.layoutMode||e.constructor.layoutMode;return Ge(t)?t:t?{type:t}:null}function Al(e,t,r){var n=r&&r.ignoreSize;!ue(n)&&(n=[n,n]);var i=o(qu[0],0),a=o(qu[1],1);u(qu[0],e,i),u(qu[1],e,a);function o(c,f){var d={},h=0,v={},g=0,y=2;if(j0(c,function(b){v[b]=e[b]}),j0(c,function(b){s(t,b)&&(d[b]=v[b]=t[b]),l(d,b)&&h++,l(v,b)&&g++}),n[f])return l(t,c[1])?v[c[2]]=null:l(t,c[2])&&(v[c[1]]=null),v;if(g===y||!h)return v;if(h>=y)return d;for(var x=0;x<c.length;x++){var S=c[x];if(!s(d,S)&&s(e,S)){d[S]=e[S];break}}return d}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,d){j0(c,function(h){f[h]=d[h]})}}function $d(e){return ZH({},e)}function ZH(e,t){return t&&e&&j0(XH,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var aye=Tt(),xt=function(e){J(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=Fd("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Yv(this),a=i?$d(r):{},o=n.getTheme();rt(r,o.get(this.mainType)),rt(r,this.getDefaultOption()),i&&Al(r,a,i)},t.prototype.mergeOption=function(r,n){rt(this.option,r,!0);var i=Yv(this);i&&Al(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!Xve(r))return r.defaultOption;var n=aye(this);if(!n.defaultOption){for(var i=[],a=r;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=rt(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return kg(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!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}(Ft);KG(xt,Ft);rS(xt);jme(xt);Ume(xt,oye);function oye(e){var t=[];return V(xt.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=de(t,function(r){return uo(r).main}),e!=="dataset"&&ft(t,"dataset")<=0&&t.unshift("dataset"),t}var KH="";typeof navigator<"u"&&(KH=navigator.platform||"");var xf="rgba(0, 0, 0, 0.2)";const sye={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:xf,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:xf,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:xf,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:xf,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:xf,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:xf,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:KH.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 QH=Oe(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),la="original",Cn="arrayRows",ua="objectRows",Do="keyedColumns",gl="typedArray",JH="unknown",xo="column",Gd="row",an={Must:1,Might:2,Not:3},eW=Tt();function lye(e){eW(e).datasetMap=Oe()}function tW(e,t,r){var n={},i=nI(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=eW(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),V(e,function(g,y){var x=Ge(g)?g:e[y]={name:g};x.type==="ordinal"&&c==null&&(c=y,f=v(x)),n[x.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});V(e,function(g,y){var x=g.name,S=v(g);if(c==null){var b=d.valueWayDim;h(n[x],b,S),h(o,b,S),d.valueWayDim+=S}else if(c===y)h(n[x],0,S),h(a,0,S);else{var b=d.categoryWayDim;h(n[x],b,S),h(o,b,S),d.categoryWayDim+=S}});function h(g,y,x){for(var S=0;S<x;S++)g.push(y+S)}function v(g){var y=g.dimsDef;return y?y.length:1}return a.length&&(n.itemName=a),o.length&&(n.seriesName=o),n}function rI(e,t,r){var n={},i=nI(e);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===ua||a===Do)&&V(o,function(c,f){(Ge(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},d=[],h=0,v=Math.min(5,r);h<v;h++){var g=nW(t.data,a,t.seriesLayoutBy,o,t.startIndex,h);d.push(g);var y=g===an.Not;if(y&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!y&&d[c.n]===an.Not)&&(c.n=h),x(c)&&d[c.n]!==an.Not)return c;y||(g===an.Might&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v)&&(f.n=h))}function x(S){return S.v!=null&&S.n!=null}return x(c)?c:x(f)?f:null}();if(l){n.value=[l.v];var u=s??l.n;n.itemName=[u],n.seriesName=[u]}return n}function nI(e){var t=e.get("data",!0);if(!t)return kg(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},Rr).models[0]}function uye(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:kg(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},Rr).models}function rW(e,t){return nW(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function nW(e,t,r,n,i,a){var o,s=5;if(ui(e))return an.Not;var l,u;if(n){var c=n[a];Ge(c)?(l=c.name,u=c.type):we(c)&&(l=c)}if(u!=null)return u==="ordinal"?an.Must:an.Not;if(t===Cn){var f=e;if(r===Gd){for(var d=f[a],h=0;h<(d||[]).length&&h<s;h++)if((o=w(d[i+h]))!=null)return o}else for(var h=0;h<f.length&&h<s;h++){var v=f[i+h];if(v&&(o=w(v[a]))!=null)return o}}else if(t===ua){var g=e;if(!l)return an.Not;for(var h=0;h<g.length&&h<s;h++){var y=g[h];if(y&&(o=w(y[l]))!=null)return o}}else if(t===Do){var x=e;if(!l)return an.Not;var d=x[l];if(!d||ui(d))return an.Not;for(var h=0;h<d.length&&h<s;h++)if((o=w(d[h]))!=null)return o}else if(t===la)for(var S=e,h=0;h<S.length&&h<s;h++){var y=S[h],b=Ld(y);if(!ue(b))return an.Not;if((o=w(b[a]))!=null)return o}function w(T){var C=we(T);if(T!=null&&Number.isFinite(Number(T))&&T!=="")return C?an.Might:an.Not;if(C&&T!=="-")return an.Must}return an.Not}var Q2=Oe();function cye(e,t){zn(Q2.get(e)==null&&t),Q2.set(e,t)}function fye(e,t,r){var n=Q2.get(t);if(!n)return r;var i=n(e);return i?r.concat(i):r}var w5=Tt(),dye=Tt(),iI=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=Yt(this.get("color",!0)),a=this.get("colorLayer",!0);return iW(this,w5,i,a,t,r,n)},e.prototype.clearColorPalette=function(){pye(this,w5)},e}();function J2(e,t,r,n){var i=Yt(e.get(["aria","decal","decals"]));return iW(e,dye,i,null,t,r,n)}function hye(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 iW(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:hye(n,o);if(c=c||r,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function pye(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Hy,lp,C5,T5="\0_ec_inner",vye=1,aI=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Ft(a),this._locale=new Ft(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=k5(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,k5(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?C5(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&V(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=Oe(),u=n&&n.replaceMergeMainTypeMap;lye(this),V(r,function(f,d){f!=null&&(xt.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?We(f):rt(i[d],f,!0))}),u&&u.each(function(f,d){xt.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),xt.topologicalTravel(s,xt.getAllClassMainTypes(),c,this);function c(f){var d=fye(this,f,Yt(r[f])),h=a.get(f),v=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",g=UG(h,d,v);Vve(g,f,xt),i[f]=null,a.set(f,null),o.set(f,0);var y=[],x=[],S=0,b;V(g,function(w,T){var C=w.existing,A=w.newOption;if(!A)C&&(C.mergeOption({},this),C.optionUpdated({},!1));else{var k=f==="series",I=xt.getClass(f,w.keyInfo.subType,!k);if(!I)return;if(f==="tooltip"){if(b)return;b=!0}if(C&&C.constructor===I)C.name=w.keyInfo.name,C.mergeOption(A,this),C.optionUpdated(A,!1);else{var P=oe({componentIndex:T},w.keyInfo);C=new I(A,this,this,P),oe(C,P),w.brandNew&&(C.__requireNewView=!0),C.init(A,this,this),C.optionUpdated(null,!0)}}C?(y.push(C.option),x.push(C),S++):(y.push(void 0),x.push(void 0))},this),i[f]=y,a.set(f,x),o.set(f,S),f==="series"&&Hy(this)}this._seriesIndices||Hy(this)},t.prototype.getOption=function(){var r=We(this.option);return V(r,function(n,i){if(xt.hasClass(i)){for(var a=Yt(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Gv(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[T5],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 a=i[n||0];if(a)return a;if(n==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},t.prototype.queryComponents=function(r){var n=r.mainType;if(!n)return[];var i=r.index,a=r.id,o=r.name,s=this._componentsMap.get(n);if(!s||!s.length)return[];var l;return i!=null?(l=[],V(Yt(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=A5("id",a,s):o!=null?l=A5("name",o,s):l=jt(s,function(u){return!!u}),M5(l,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):jt(this._componentsMap.get(i),function(u){return!!u});return l(M5(o,r));function s(u){var c=i+"Index",f=i+"Id",d=i+"Name";return u&&(u[c]!=null||u[f]!=null||u[d]!=null)?{mainType:i,index:u[c],id:u[f],name:u[d]}:null}function l(u){return r.filter?jt(u,r.filter):u}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(Be(r)){var o=n,s=r;a.each(function(f,d){for(var h=0;f&&h<f.length;h++){var v=f[h];v&&s.call(o,d,v,v.componentIndex)}})}else for(var l=we(r)?a.get(r):Ge(r)?this.findComponents(r):null,u=0;l&&u<l.length;u++){var c=l[u];c&&n.call(i,c,c.componentIndex)}},t.prototype.getSeriesByName=function(r){var n=Br(r,null);return jt(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 jt(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return jt(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){lp(this),V(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){V(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){lp(this),V(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===r&&n.call(i,o,a)},this)},t.prototype.eachRawSeriesByType=function(r,n,i){return V(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return lp(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){lp(this);var i=[];V(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];r.call(n,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=Oe(i)},t.prototype.restoreData=function(r){Hy(this);var n=this._componentsMap,i=[];n.each(function(a,o){xt.hasClass(o)&&i.push(o)}),xt.topologicalTravel(i,xt.getAllClassMainTypes(),function(a){V(n.get(a),function(o){o&&(a!=="series"||!gye(o,r))&&o.restoreData()})})},t.internalField=function(){Hy=function(r){var n=r._seriesIndices=[];V(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=Oe(n)},lp=function(r){},C5=function(r,n){r.option={},r.option[T5]=vye,r._componentsMap=Oe({series:[]}),r._componentsCount=Oe();var i=n.aria;Ge(i)&&i.enabled==null&&(i.enabled=!0),mye(n,r._theme.option),rt(n,sye,!1),r._mergeOption(n,null)}}(),t}(Ft);function gye(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 mye(e,t){var r=e.color&&!e.colorLayer;V(t,function(n,i){i==="colorLayer"&&r||xt.hasClass(i)||(typeof n=="object"?e[i]=e[i]?rt(e[i],n,!1):We(n):e[i]==null&&(e[i]=n))})}function A5(e,t,r){if(ue(t)){var n=Oe();return V(t,function(a){if(a!=null){var o=Br(a,null);o!=null&&n.set(a,!0)}}),jt(r,function(a){return a&&n.get(a[e])})}else{var i=Br(t,null);return jt(r,function(a){return a&&i!=null&&a[e]===i})}}function M5(e,t){return t.hasOwnProperty("subType")?jt(e,function(r){return r&&r.subType===t.subType}):e}function k5(e){var t=Oe();return e&&V(Yt(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Lr(aI,iI);var yye=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],aW=function(){function e(t){V(yye,function(r){this[r]=Ae(t[r],t)},this)}return e}(),Kw={},Og=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];V(Kw,function(i,a){var o=i.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){V(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){Kw[t]=r},e.get=function(t){return Kw[t]},e}(),xye=/^(min|max)?(.+)$/,Sye=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&(V(Yt(t.series),function(o){o&&o.data&&ui(o.data)&&m1(o.data)}),V(Yt(t.dataset),function(o){o&&o.source&&ui(o.source)&&m1(o.source)})),t=We(t);var i=this._optionBackup,a=bye(t,r,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},e.prototype.mountOption=function(t){var r=this._optionBackup;return this._timelineOptions=r.timelineOptions,this._mediaList=r.mediaList,this._mediaDefault=r.mediaDefault,this._currentMediaIndices=[],We(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=We(n[i.getCurrentIndex()]))}return r},e.prototype.getMediaOption=function(t){var r=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)_ye(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!Cye(o,this._currentMediaIndices)&&(s=de(o,function(c){return We(c===-1?a.option:i[c].option)})),this._currentMediaIndices=o,s},e}();function bye(e,t,r){var n=[],i,a,o=e.baseOption,s=e.timeline,l=e.options,u=e.media,c=!!e.media,f=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((f||c)&&(e.options=e.media=null),a=e),c&&ue(u)&&V(u,function(h){h&&h.option&&(h.query?n.push(h):i||(i=h))}),d(a),V(l,function(h){return d(h)}),V(n,function(h){return d(h.option)});function d(h){V(t,function(v){v(h,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function _ye(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return V(e,function(a,o){var s=o.match(xye);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();wye(n[u],a,l)||(i=!1)}}),i}function wye(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function Cye(e,t){return e.join(",")===t.join(",")}var ya=V,qv=Ge,I5=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Qw(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=I5.length;r<n;r++){var i=I5[r],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?rt(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?rt(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function Sn(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,Ve(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 $p(e){Sn(e,"itemStyle"),Sn(e,"lineStyle"),Sn(e,"areaStyle"),Sn(e,"label"),Sn(e,"labelLine"),Sn(e,"upperLabel"),Sn(e,"edgeLabel")}function Dr(e,t){var r=qv(e)&&e[t],n=qv(r)&&r.textStyle;if(n)for(var i=0,a=ON.length;i<a;i++){var o=ON[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function Gi(e){e&&($p(e),Dr(e,"label"),e.emphasis&&Dr(e.emphasis,"label"))}function Tye(e){if(qv(e)){Qw(e),$p(e),Dr(e,"label"),Dr(e,"upperLabel"),Dr(e,"edgeLabel"),e.emphasis&&(Dr(e.emphasis,"label"),Dr(e.emphasis,"upperLabel"),Dr(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(Qw(t),Gi(t));var r=e.markLine;r&&(Qw(r),Gi(r));var n=e.markArea;n&&Gi(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!ui(a))for(var o=0;o<a.length;o++)Gi(a[o]);V(e.categories,function(u){$p(u)})}if(i&&!ui(i))for(var o=0;o<i.length;o++)Gi(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)Gi(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)ue(l[o])?(Gi(l[o][0]),Gi(l[o][1])):Gi(l[o]);e.type==="gauge"?(Dr(e,"axisLabel"),Dr(e,"title"),Dr(e,"detail")):e.type==="treemap"?(Sn(e.breadcrumb,"itemStyle"),V(e.levels,function(u){$p(u)})):e.type==="tree"&&$p(e.leaves)}}function jo(e){return ue(e)?e:e?[e]:[]}function P5(e){return(ue(e)?e[0]:e)||{}}function Aye(e,t){ya(jo(e.series),function(n){qv(n)&&Tye(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),ya(r,function(n){ya(jo(e[n]),function(i){i&&(Dr(i,"axisLabel"),Dr(i.axisPointer,"label"))})}),ya(jo(e.parallel),function(n){var i=n&&n.parallelAxisDefault;Dr(i,"axisLabel"),Dr(i&&i.axisPointer,"label")}),ya(jo(e.calendar),function(n){Sn(n,"itemStyle"),Dr(n,"dayLabel"),Dr(n,"monthLabel"),Dr(n,"yearLabel")}),ya(jo(e.radar),function(n){Dr(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)}),ya(jo(e.geo),function(n){qv(n)&&(Gi(n),ya(jo(n.regions),function(i){Gi(i)}))}),ya(jo(e.timeline),function(n){Gi(n),Sn(n,"label"),Sn(n,"itemStyle"),Sn(n,"controlStyle",!0);var i=n.data;ue(i)&&V(i,function(a){Ge(a)&&(Sn(a,"label"),Sn(a,"itemStyle"))})}),ya(jo(e.toolbox),function(n){Sn(n,"iconStyle"),ya(n.feature,function(i){Sn(i,"iconStyle")})}),Dr(P5(e.axisPointer),"label"),Dr(P5(e.tooltip).axisPointer,"label")}function Mye(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 kye(e,t,r,n){for(var i=t.split(","),a=e,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=r)}function D5(e){e&&V(Iye,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var Iye=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],Pye=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],Jw=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function up(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<Jw.length;r++){var n=Jw[r][1],i=Jw[r][0];t[n]!=null&&(t[i]=t[n])}}function R5(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function E5(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function Dye(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function oW(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&oW(e[r].children,t)}function sW(e,t){Aye(e,t),e.series=Yt(e.series),V(e.series,function(r){if(Ge(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),R5(r.label);var i=r.data;if(i&&!ui(i))for(var a=0;a<i.length;a++)R5(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=Mye(r,"pointer.color");o!=null&&kye(r,"itemStyle.color",o)}else if(n==="bar"){up(r),up(r.backgroundStyle),up(r.emphasis);var i=r.data;if(i&&!ui(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(up(i[a]),up(i[a]&&i[a].emphasis))}else if(n==="sunburst"){var s=r.highlightPolicy;s&&(r.emphasis=r.emphasis||{},r.emphasis.focus||(r.emphasis.focus=s)),E5(r),oW(r.data,E5)}else n==="graph"||n==="sankey"?Dye(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&Ve(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),D5(r)}}),e.dataRange&&(e.visualMap=e.dataRange),V(Pye,function(r){var n=e[r];n&&(ue(n)||(n=[n]),V(n,function(i){D5(i)}))})}function Rye(e){var t=Oe();e.eachSeries(function(r){var n=r.get("stack");if(n){var i=t.get(n)||t.set(n,[]),a=r.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:r};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),t.each(Eye)}function Eye(e){V(e,function(t,r){var n=[],i=[NaN,NaN],a=[t.stackResultDimension,t.stackedOverDimension],o=t.data,s=t.isStackedByIndex,l=t.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,c,f){var d=o.get(t.stackedDimension,f);if(isNaN(d))return i;var h,v;s?v=o.getRawIndex(f):h=o.get(t.stackedByDimension,f);for(var g=NaN,y=r-1;y>=0;y--){var x=e[y];if(s||(v=x.data.rawIndexOf(x.stackedByDimension,h)),v>=0){var S=x.data.getByRawIndex(x.stackResultDimension,v);if(l==="all"||l==="positive"&&S>0||l==="negative"&&S<0||l==="samesign"&&d>=0&&S>0||l==="samesign"&&d<=0&&S<0){d=Ive(d,S),g=S;break}}}return n[0]=d,n[1]=g,n})})}var xS=function(){function e(t){this.data=t.data||(t.sourceFormat===Do?{}:[]),this.sourceFormat=t.sourceFormat||JH,this.seriesLayoutBy=t.seriesLayoutBy||xo,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&&rW(this,n)===an.Must&&(i.type="ordinal")}}return e}();function oI(e){return e instanceof xS}function eA(e,t,r){r=r||lW(e);var n=t.seriesLayoutBy,i=Oye(e,r,n,t.sourceHeader,t.dimensions),a=new xS({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:We(t)});return a}function sI(e){return new xS({data:e,sourceFormat:ui(e)?gl:la})}function Lye(e){return new xS({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:We(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function lW(e){var t=JH;if(ui(e))t=gl;else if(ue(e)){e.length===0&&(t=Cn);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(ue(i)||ui(i)){t=Cn;break}else if(Ge(i)){t=ua;break}}}}else if(Ge(e)){for(var a in e)if(Pe(e,a)&&wn(e[a])){t=Do;break}}return t}function Oye(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:L5(i),startIndex:o,dimensionsDetectedCount:a};if(t===Cn){var s=e;n==="auto"||n==null?O5(function(u){u!=null&&u!=="-"&&(we(u)?o==null&&(o=1):o=0)},r,s,10):o=Dt(n)?n:n?1:0,!i&&o===1&&(i=[],O5(function(u,c){i[c]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===Gd?s.length:s[0]?s[0].length:null}else if(t===ua)i||(i=Nye(e));else if(t===Do)i||(i=[],V(e,function(u,c){i.push(c)}));else if(t===la){var l=Ld(e[0]);a=ue(l)&&l.length||1}return{startIndex:o,dimensionsDefine:L5(i),dimensionsDetectedCount:a}}function Nye(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return St(r)}function L5(e){if(e){var t=Oe();return de(e,function(r,n){r=Ge(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 a=t.get(i.name);return a?i.name+="-"+a.count++:t.set(i.name,{count:1}),i})}}function O5(e,t,r,n){if(t===Gd)for(var i=0;i<r.length&&i<n;i++)e(r[i]?r[i][0]:null,i);else for(var a=r[0]||[],i=0;i<a.length&&i<n;i++)e(a[i],i)}function uW(e){var t=e.sourceFormat;return t===ua||t===Do}var yu,xu,Su,N5,z5,cW=function(){function e(t,r){var n=oI(t)?t:sI(t);this._source=n;var i=this._data=n.data;n.sourceFormat===gl&&(this._offset=0,this._dimSize=r,this._data=i),z5(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;z5=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=N5[lI(u,c)];if(oe(o,h),u===gl)o.getItem=r,o.count=i,o.fillStorage=n;else{var v=fW(u,c);o.getItem=Ae(v,null,s,f,d);var g=dW(u,c);o.count=Ae(g,null,s,f,d)}};var r=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},n=function(o,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var h=u[d],v=h[0]==null?1/0:h[0],g=h[1]==null?-1/0:h[1],y=s-o,x=l[d],S=0;S<y;S++){var b=c[S*f+d];x[o+S]=b,b<v&&(v=b),b>g&&(g=b)}h[0]=v,h[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};N5=(t={},t[Cn+"_"+xo]={pure:!0,appendData:a},t[Cn+"_"+Gd]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[ua]={pure:!0,appendData:a},t[Do]={pure:!0,appendData:function(o){var s=this._data;V(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[la]={appendData:a},t[gl]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),e}(),B5=function(e,t,r,n){return e[n]},zye=(yu={},yu[Cn+"_"+xo]=function(e,t,r,n){return e[n+t]},yu[Cn+"_"+Gd]=function(e,t,r,n,i){n+=t;for(var a=i||[],o=e,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[n]:null}return a},yu[ua]=B5,yu[Do]=function(e,t,r,n,i){for(var a=i||[],o=0;o<r.length;o++){var s=r[o].name,l=e[s];a[o]=l?l[n]:null}return a},yu[la]=B5,yu);function fW(e,t){var r=zye[lI(e,t)];return r}var F5=function(e,t,r){return e.length},Bye=(xu={},xu[Cn+"_"+xo]=function(e,t,r){return Math.max(0,e.length-t)},xu[Cn+"_"+Gd]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},xu[ua]=F5,xu[Do]=function(e,t,r){var n=r[0].name,i=e[n];return i?i.length:0},xu[la]=F5,xu);function dW(e,t){var r=Bye[lI(e,t)];return r}var eC=function(e,t,r){return e[t]},Fye=(Su={},Su[Cn]=eC,Su[ua]=function(e,t,r){return e[r]},Su[Do]=eC,Su[la]=function(e,t,r){var n=Ld(e);return n instanceof Array?n[t]:n},Su[gl]=eC,Su);function hW(e){var t=Fye[e];return t}function lI(e,t){return e===Cn?e+"_"+t:e}function xd(e,t,r){if(e){var n=e.getRawDataItem(t);if(n!=null){var i=e.getStore(),a=i.getSource().sourceFormat;if(r!=null){var o=e.getDimensionIndex(r),s=i.getDimensionProperty(o);return hW(a)(n,o,s)}else{var l=n;return a===la&&(l=Ld(n)),l}}}}var Vye=/\{@(.+?)\}/g,SS=function(){function e(){}return e.prototype.getDataParams=function(t,r){var n=this.getData(r),i=this.getRawValue(t,r),a=n.getRawIndex(t),o=n.getName(t),s=n.getRawDataItem(t),l=n.getItemVisual(t,"style"),u=l&&l[n.getItemVisual(t,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,d=f==="series",h=n.userOutput&&n.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:a,data:s,dataType:r,value:i,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},e.prototype.getFormattedLabel=function(t,r,n,i,a,o){r=r||"normal";var s=this.getData(n),l=this.getDataParams(t,n);if(o&&(l.value=o.interpolatedValue),i!=null&&ue(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(Be(a))return l.status=r,l.dimensionIndex=i,a(l);if(we(a)){var c=qH(a,l);return c.replace(Vye,function(f,d){var h=d.length,v=d;v.charAt(0)==="["&&v.charAt(h-1)==="]"&&(v=+v.slice(1,h-1));var g=xd(s,t,v);if(o&&ue(o.interpolatedValue)){var y=s.getDimensionIndex(v);y>=0&&(g=o.interpolatedValue[y])}return g!=null?g+"":""})}},e.prototype.getRawValue=function(t,r){return xd(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function V5(e){var t,r;return Ge(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function gv(e){return new $ye(e)}var $ye=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 a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(S){return!(S>=1)&&(S=1),S}var f;(this._dirty||a==="reset")&&(this._dirty=!1,f=this._doReset(n)),this._modBy=l,this._modDataCount=u;var d=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,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(f||h<v)){var g=this._progress;if(ue(g))for(var y=0;y<g.length;y++)this._doProgress(g[y],h,v,l,u);else this._doProgress(g,h,v,l,u)}this._dueIndex=v;var x=this._settedOutputEnd!=null?this._settedOutputEnd:v;this._outputDueEnd=x}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,a){$5.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:$5.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),ue(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}(),$5=function(){var e,t,r,n,i,a={reset:function(l,u,c,f){t=l,e=u,r=c,n=f,i=Math.ceil(n/r),a.next=r>1&&n>0?s:o}};return a;function o(){return t<e?t++:null}function s(){var l=t%i*r+Math.ceil(t/i),u=t>=e?null:l<n?l:t;return t++,u}}();function ml(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!Dt(e)&&e!=null&&e!=="-"&&(e=+Mo(e)),e==null||e===""?NaN:Number(e))}var Gye=Oe({number:function(e){return parseFloat(e)},time:function(e){return+Mo(e)},trim:function(e){return we(e)?Aa(e):e}});function pW(e){return Gye.get(e)}var vW={lt:function(e,t){return e<t},lte:function(e,t){return e<=t},gt:function(e,t){return e>t},gte:function(e,t){return e>=t}},Hye=function(){function e(t,r){if(!Dt(r)){var n="";zt(n)}this._opFn=vW[t],this._rvalFloat=ls(r)}return e.prototype.evaluate=function(t){return Dt(t)?this._opFn(t,this._rvalFloat):this._opFn(ls(t),this._rvalFloat)},e}(),gW=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=Dt(t)?t:ls(t),i=Dt(r)?r:ls(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=we(t),l=we(r);s&&(n=l?t:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),Wye=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=ls(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=ls(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function jye(e,t){return e==="eq"||e==="ne"?new Wye(e==="eq",t):Pe(vW,e)?new Hye(e,t):null}var Uye=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 ml(t,r)},e}();function Yye(e,t){var r=new Uye,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==xo&&zt(o);var s=[],l={},u=e.dimensionsDefine;if(u)V(u,function(g,y){var x=g.name,S={index:y,name:x,displayName:g.displayName};if(s.push(S),x!=null){var b="";Pe(l,x)&&zt(b),l[x]=S}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=fW(i,xo);t.__isBuiltIn&&(r.getRawDataItem=function(g){return f(n,a,s,g)},r.getRawData=Ae(qye,null,e)),r.cloneRawData=Ae(Xye,null,e);var d=dW(i,xo);r.count=Ae(d,null,n,a,s);var h=hW(i);r.retrieveValue=function(g,y){var x=f(n,a,s,g);return v(x,y)};var v=r.retrieveValueFromItem=function(g,y){if(g!=null){var x=s[y];if(x)return h(g,y,x.name)}};return r.getDimensionInfo=Ae(Zye,null,s,l),r.cloneAllDimensionInfo=Ae(Kye,null,s),r}function qye(e){var t=e.sourceFormat;if(!uI(t)){var r="";zt(r)}return e.data}function Xye(e){var t=e.sourceFormat,r=e.data;if(!uI(t)){var n="";zt(n)}if(t===Cn){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(t===ua){for(var i=[],a=0,o=r.length;a<o;a++)i.push(oe({},r[a]));return i}}function Zye(e,t,r){if(r!=null){if(Dt(r)||!isNaN(r)&&!Pe(t,r))return e[r];if(Pe(t,r))return t[r]}}function Kye(e){return We(e)}var mW=Oe();function Qye(e){e=We(e);var t=e.type,r="";t||zt(r);var n=t.split(":");n.length!==2&&zt(r);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,mW.set(t,e)}function Jye(e,t,r){var n=Yt(e),i=n.length,a="";i||zt(a);for(var o=0,s=i;o<s;o++){var l=n[o];t=e0e(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function e0e(e,t,r,n){var i="";t.length||zt(i),Ge(e)||zt(i);var a=e.type,o=mW.get(a);o||zt(i);var s=de(t,function(u){return Yye(u,o)}),l=Yt(o.transform({upstream:s[0],upstreamList:s,config:We(e.config)}));return de(l,function(u,c){var f="";Ge(u)||zt(f),u.data||zt(f);var d=lW(u.data);uI(d)||zt(f);var h,v=t[0];if(v&&c===0&&!u.dimensions){var g=v.startIndex;g&&(u.data=v.data.slice(0,g).concat(u.data)),h={seriesLayoutBy:xo,sourceHeader:g,dimensions:v.metaRawOption.dimensions}}else h={seriesLayoutBy:xo,sourceHeader:0,dimensions:u.dimensions};return eA(u.data,h,null)})}function uI(e){return e===Cn||e===ua}var bS="undefined",t0e=typeof Uint32Array===bS?Array:Uint32Array,r0e=typeof Uint16Array===bS?Array:Uint16Array,yW=typeof Int32Array===bS?Array:Int32Array,G5=typeof Float64Array===bS?Array:Float64Array,xW={float:G5,int:yW,ordinal:Array,number:Array,time:G5},tC;function cp(e){return e>65535?t0e:r0e}function Sf(){return[1/0,-1/0]}function n0e(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function H5(e,t,r,n,i){var a=xW[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;u<s;u++)l[u]=o[u];e[t]=l}}else e[t]=new a(n)}var tA=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Oe()}return e.prototype.initData=function(t,r,n){this._provider=t,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=t.getSource(),a=this.defaultDimValueGetter=tC[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],uW(i),this._dimensions=de(r,function(o){return{type:o.type,property:o.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,a=n.get(t);if(a!=null){if(i[a].type===r)return a}else a=i.length;return i[a]={type:r},n.set(t,a),this._chunks[a]=new xW[r||"float"](this._rawCount),this._rawExtent[a]=Sf(),a},e.prototype.collectOrdinalMeta=function(t,r){var n=this._chunks[t],i=this._dimensions[t],a=this._rawExtent,o=i.ordinalOffset||0,s=n.length;o===0&&(a[t]=Sf());for(var l=a[t],u=o;u<s;u++){var c=n[u]=r.parseAndCollect(n[u]);isNaN(c)||(l[0]=Math.min(c,l[0]),l[1]=Math.max(c,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,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(t.length,r||0),u=0;u<a;u++){var c=i[u];H5(n,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var h=d-s,v=0;v<a;v++){var c=i[v],g=tC.arrayRows.call(this,t[h]||f,c.property,h,v);n[v][d]=g;var y=o[v];g<y[0]&&(y[0]=g),g>y[1]&&(y[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=de(o,function(S){return S.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=Sf()),H5(a,c,f.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,l);else for(var d=[],h=t;h<r;h++){d=i.getItem(h,d);for(var v=0;v<s;v++){var g=a[v],y=this._dimValueGetter(d,u[v],h,v);g[h]=y;var x=l[v];y<x[0]&&(x[0]=y),y>x[1]&&(x[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 a=0;a<this._dimensions.length;a++)i.push(a)}else i=t;for(var a=0,o=i.length;a<o;a++)n.push(this.get(i[a],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,a=this.count();i<a;i++){var o=this.get(t,i);isNaN(o)||(n+=o)}return n},e.prototype.getMedian=function(t){var r=[];this.each([t],function(a){isNaN(a)||r.push(a)});var n=r.sort(function(a,o){return a-o}),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,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(r[o]<t)i=o+1;else if(r[o]>t)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c<f;c++){var d=this.getRawIndex(c),h=r-a[d],v=Math.abs(h);v<=n&&((v<s||v===s&&h>=0&&l<0)&&(s=v,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},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 a=0;a<i;a++)t[a]=r[a]}else t=new n(r.buffer,0,i)}else{var n=cp(this._rawCount);t=new n(this.count());for(var a=0;a<t.length;a++)t[a]=a}return t},e.prototype.filter=function(t,r){if(!this._count)return this;for(var n=this.clone(),i=n.count(),a=cp(n._rawCount),o=new a(i),s=[],l=t.length,u=0,c=t[0],f=n._chunks,d=0;d<i;d++){var h=void 0,v=n.getRawIndex(d);if(l===0)h=r(d);else if(l===1){var g=f[c][v];h=r(g,d)}else{for(var y=0;y<l;y++)s[y]=f[t[y]][v];s[y]=d,h=r.apply(null,s)}h&&(o[u++]=v)}return u<i&&(n._indices=o),n._count=u,n._extent=[],n._updateGetRawIdx(),n},e.prototype.selectRange=function(t){var r=this.clone(),n=r._count;if(!n)return this;var i=St(t),a=i.length;if(!a)return this;var o=r.count(),s=cp(r._rawCount),l=new s(o),u=0,c=i[0],f=t[c][0],d=t[c][1],h=r._chunks,v=!1;if(!r._indices){var g=0;if(a===1){for(var y=h[i[0]],x=0;x<n;x++){var S=y[x];(S>=f&&S<=d||isNaN(S))&&(l[u++]=g),g++}v=!0}else if(a===2){for(var y=h[i[0]],b=h[i[1]],w=t[i[1]][0],T=t[i[1]][1],x=0;x<n;x++){var S=y[x],C=b[x];(S>=f&&S<=d||isNaN(S))&&(C>=w&&C<=T||isNaN(C))&&(l[u++]=g),g++}v=!0}}if(!v)if(a===1)for(var x=0;x<o;x++){var A=r.getRawIndex(x),S=h[i[0]][A];(S>=f&&S<=d||isNaN(S))&&(l[u++]=A)}else for(var x=0;x<o;x++){for(var k=!0,A=r.getRawIndex(x),I=0;I<a;I++){var P=i[I],S=h[P][A];(S<t[P][0]||S>t[P][1])&&(k=!1)}k&&(l[u++]=r.getRawIndex(x))}return u<o&&(r._indices=l),r._count=u,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,a=[],o=r.length,s=t.count(),l=[],u=t._rawExtent,c=0;c<r.length;c++)u[r[c]]=Sf();for(var f=0;f<s;f++){for(var d=t.getRawIndex(f),h=0;h<o;h++)l[h]=i[r[h]][d];l[o]=f;var v=n&&n.apply(null,l);if(v!=null){typeof v!="object"&&(a[0]=v,v=a);for(var c=0;c<v.length;c++){var g=r[c],y=v[c],x=u[g],S=i[g];S&&(S[d]=y),y<x[0]&&(x[0]=y),y>x[1]&&(x[1]=y)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,f,d,h=new(cp(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var v=1;v<o-1;v+=l){for(var g=Math.min(v+l,o-1),y=Math.min(v+l*2,o),x=(y+g)/2,S=0,b=g;b<y;b++){var w=this.getRawIndex(b),T=a[w];isNaN(T)||(S+=T)}S/=y-g;var C=v,A=Math.min(v+l,o),k=v-1,I=a[u];c=-1,d=C;for(var P=-1,R=0,b=C;b<A;b++){var w=this.getRawIndex(b),T=a[w];if(isNaN(T)){R++,P<0&&(P=w);continue}f=Math.abs((k-x)*(T-I)-(k-b)*(S-I)),f>c&&(c=f,d=w)}R>0&&R<A-C&&(h[s++]=Math.min(P,d),d=Math.max(P,d)),h[s++]=d,u=d}return h[s++]=this.getRawIndex(o-1),n._count=s,n._indices=h,n.getRawIndex=this._getRawIdx,n},e.prototype.downSample=function(t,r,n,i){for(var a=this.clone([t],!0),o=a._chunks,s=[],l=Math.floor(1/r),u=o[t],c=this.count(),f=a._rawExtent[t]=Sf(),d=new(cp(this._rawCount))(Math.ceil(c/l)),h=0,v=0;v<c;v+=l){l>c-v&&(l=c-v,s.length=l);for(var g=0;g<l;g++){var y=this.getRawIndex(v+g);s[g]=u[y]}var x=n(s),S=this.getRawIndex(Math.min(v+i(s,x)||0,c-1));u[S]=x,x<f[0]&&(f[0]=x),x>f[1]&&(f[1]=x),d[h++]=S}return a._count=h,a._indices=d,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(n){case 0:r(a);break;case 1:r(i[t[0]][s],a);break;case 2:r(i[t[0]][s],i[t[1]][s],a);break;default:for(var l=0,u=[];l<n;l++)u[l]=i[t[l]][s];u[l]=a,r.apply(null,u)}}},e.prototype.getDataExtent=function(t){var r=this._chunks[t],n=Sf();if(!r)return n;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[t].slice();if(o=this._extent[t],o)return o.slice();o=n;for(var s=o[0],l=o[1],u=0;u<i;u++){var c=this.getRawIndex(u),f=r[c];f<s&&(s=f),f>l&&(l=f)}return o=[s,l],this._extent[t]=o,o},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,a=0;a<i.length;a++)n.push(i[a][r]);return n},e.prototype.clone=function(t,r){var n=new e,i=this._chunks,a=t&&Co(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?n0e(i[o]):i[o];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=We(this._extent),t._rawExtent=We(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,a){return ml(r[a],this._dimensions[a])}tC={arrayRows:t,objectRows:function(r,n,i,a){return ml(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return ml(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),SW=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,a;if(Wy(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=ui(s)?gl:la,a=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=Qe(f.seriesLayoutBy,d.seriesLayoutBy)||null,v=Qe(f.sourceHeader,d.sourceHeader),g=Qe(f.dimensions,d.dimensions),y=h!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||g;i=y?[eA(s,{seriesLayoutBy:h,sourceHeader:v,dimensions:g},l)]:[]}else{var x=t;if(n){var S=this._applyTransform(r);i=S.sourceList,a=S.upstreamSignList}else{var b=x.get("source",!0);i=[eA(b,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&j5(a)}var o,s=[],l=[];return V(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&j5(f),s.push(c),l.push(u._getVersionSign())}),n?o=Jye(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[Lye(s[0])]),{sourceList:o,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,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[n];if(!s){var l=this._getUpstreamSourceManagers()[0];Wy(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new tA,s.initData(new cW(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(Wy(t)){var r=nI(t);return r?[r.getSourceManager()]:[]}else return de(uye(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(Wy(t))r=t.get("seriesLayoutBy",!0),n=t.get("sourceHeader",!0),i=t.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=t;r=a.get("seriesLayoutBy",!0),n=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:r,sourceHeader:n,dimensions:i}},e}();function W5(e){var t=e.option.transform;t&&m1(e.option.transform)}function Wy(e){return e.mainType==="series"}function j5(e){throw new Error(e)}var bW="line-height:1";function _W(e,t){var r=e.color||"#6e7079",n=e.fontSize||12,i=e.fontWeight||"400",a=e.color||"#464646",o=e.fontSize||14,s=e.fontWeight||"900";return t==="html"?{nameStyle:"font-size:"+Jn(n+"")+"px;color:"+Jn(r)+";font-weight:"+Jn(i+""),valueStyle:"font-size:"+Jn(o+"")+"px;color:"+Jn(a)+";font-weight:"+Jn(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var i0e=[0,10,20,30],a0e=["",`
|
184
|
-
`,`
|
185
|
-
|
186
|
-
`,`
|
187
|
-
|
188
|
-
|
189
|
-
`];function Yr(e,t){return t.type=e,t}function rA(e){return e.type==="section"}function wW(e){return rA(e)?o0e:s0e}function CW(e){if(rA(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return V(e.blocks,function(i){var a=CW(i);a>=t&&(t=a+ +(n&&(!a||rA(i)&&!i.noHeader)))}),t}return 0}function o0e(e,t,r,n){var i=t.noHeader,a=l0e(CW(t)),o=[],s=t.blocks||[];zn(!s||ue(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Pe(u,l)){var c=new gW(u[l],null);s.sort(function(v,g){return c.evaluate(v.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}V(s,function(v,g){var y=t.valueFormatter,x=wW(v)(y?oe(oe({},e),{valueFormatter:y}):e,v,g>0?a.html:0,n);x!=null&&o.push(x)});var f=e.renderMode==="richText"?o.join(a.richText):nA(o.join(""),i?r:a.html);if(i)return f;var d=K2(t.header,"ordinal",e.useUTC),h=_W(n,e.renderMode).nameStyle;return e.renderMode==="richText"?TW(e,d,h)+a.richText+f:nA('<div style="'+h+";"+bW+';">'+Jn(d)+"</div>"+f,r)}function s0e(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(w){return w=ue(w)?w:[w],de(w,function(T,C){return K2(T,ue(h)?h[C]:h,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":K2(l,"ordinal",u),h=t.valueType,v=o?[]:c(t.value,t.dataIndex),g=!s||!a,y=!s&&a,x=_W(n,i),S=x.nameStyle,b=x.valueStyle;return i==="richText"?(s?"":f)+(a?"":TW(e,d,S))+(o?"":f0e(e,v,g,y,b)):nA((s?"":f)+(a?"":u0e(d,!s,S))+(o?"":c0e(v,g,y,b)),r)}}function U5(e,t,r,n,i,a){if(e){var o=wW(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function l0e(e){return{html:i0e[e],richText:a0e[e]}}function nA(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+bW+';">'+e+r+"</div>"}function u0e(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+Jn(e)+"</span>"}function c0e(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=ue(e)?e:[e],'<span style="'+a+";"+n+'">'+de(e,function(o){return Jn(o)}).join(" ")+"</span>"}function TW(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function f0e(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(ue(t)?t.join(" "):t,a)}function AW(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Sc(n)}function MW(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var rC=function(){function e(){this.richTextStyles={},this._nextStyleNameId=GG()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=rye({color:r,type:t,renderMode:n,markerId:i});return we(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};ue(r)?V(r,function(a){return oe(n,a)}):oe(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function kW(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=ue(s),u=AW(t,r),c,f,d,h;if(o>1||l&&!o){var v=d0e(s,t,r,a,u);c=v.inlineValues,f=v.inlineValueTypes,d=v.blocks,h=v.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);h=c=xd(i,r,a[0]),f=g.type}else h=c=l?s[0]:s;var y=Ok(t),x=y&&t.name||"",S=i.getName(r),b=n?x:S;return Yr("section",{header:x,noHeader:n||!y,sortParam:h,blocks:[Yr("nameValue",{markerType:"item",markerColor:u,name:b,noName:!Aa(b),value:c,valueType:f,dataIndex:r})].concat(d||[])})}function d0e(e,t,r,n,i){var a=t.getData(),o=Co(e,function(f,d,h){var v=a.getDimensionInfo(h);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?V(n,function(f){c(xd(a,r,f),f)}):V(e,c);function c(f,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(Yr("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Us=Tt();function jy(e,t){return e.getName(t)||e.getId(t)}var U0="__universalTransitionEnabled",or=function(e){J(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=gv({count:p0e,reset:v0e}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=Us(this).sourceManager=new SW(this);a.prepareSource();var o=this.getInitialData(r,i);q5(o,this),this.dataTask.context.data=o,Us(this).dataBeforeProcessed=o,Y5(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=Yv(this),a=i?$d(r):{},o=this.subType;xt.hasClass(o)&&(o+="Series"),rt(r,n.getTheme().get(this.subType)),rt(r,this.getDefaultOption()),gc(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Al(r,a,i)},t.prototype.mergeOption=function(r,n){r=rt(this.option,r,!0),this.fillDataTextStyle(r.data);var i=Yv(this);i&&Al(this.option,r,i);var a=Us(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);q5(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,Us(this).dataBeforeProcessed=o,Y5(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!ui(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&gc(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=iA(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return Us(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=iA(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}Us(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return Oe(r)},t.prototype.getSourceManager=function(){return Us(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return Us(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 kW({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(yt.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 a=this.ecModel,o=iI.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},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 a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<r.length;s++){var l=r[s],u=jy(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},t.prototype.toggleSelect=function(r,n){for(var i=[],a=0;a<r.length;a++)i[0]=r[a],this.isSelected(r[a],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=St(r),i=[],a=0;a<n.length;a++){var o=r[n[a]];o>=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[jy(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[U0])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Ge(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=n[c],d=jy(r,f);u[d]=!0,this._selectedDataIndicesMap[d]=r.getRawIndex(f)}}else if(s==="single"||s===!0){var h=n[l-1],d=jy(r,h);o.selectedMap=(i={},i[d]=!0,i),this._selectedDataIndicesMap=(a={},a[d]=r.getRawIndex(h),a)}}},t.prototype._initSelectedMapFromData=function(r){if(!this.option.selectedMap){var n=[];r.hasItemOption&&r.each(function(i){var a=r.getRawDataItem(i);a&&a.selected&&n.push(i)}),n.length>0&&this._innerSelect(r,n)}},t.registerClass=function(r){return xt.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}(xt);Lr(or,SS);Lr(or,iI);KG(or,xt);function Y5(e){var t=e.name;Ok(e)||(e.name=h0e(e)||t)}function h0e(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return V(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function p0e(e){return e.model.getRawData().count()}function v0e(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),g0e}function g0e(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function q5(e,t){V(y1(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,Je(m0e,t))})}function m0e(e,t){var r=iA(e);return r&&r.setOutputEnd((t||this).count()),t}function iA(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 dr=function(){function e(){this.group=new qe,this.uid=Fd("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}();zk(dr);rS(dr);function Hd(){var e=Tt();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var IW=Tt(),y0e=Hd(),Kt=function(){function e(){this.group=new qe,this.uid=Fd("viewChart"),this.renderTask=gv({plan:x0e,reset:S0e}),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 a=t.getData(i&&i.dataType);a&&Z5(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&Z5(a,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){Ol(this.group,t)},e.markUpdateMethod=function(t,r){IW(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function X5(e,t,r){e&&Wv(e)&&(t==="emphasis"?us:cs)(e,r)}function Z5(e,t,r){var n=mc(e,t),i=t&&t.highlightKey!=null?rme(t.highlightKey):null;n!=null?V(Yt(n),function(a){X5(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){X5(a,r,i)})}zk(Kt);rS(Kt);function x0e(e){return y0e(e.model)}function S0e(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&IW(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),b0e[l]}var b0e={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)}}},L1="\0__throttleOriginMethod",K5="\0__throttleRate",Q5="\0__throttleType";function cI(e,t,r){var n,i=0,a=0,o=null,s,l,u,c;t=t||0;function f(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var d=function(){for(var h=[],v=0;v<arguments.length;v++)h[v]=arguments[v];n=new Date().getTime(),l=this,u=h;var g=c||t,y=c||r;c=null,s=n-(y?i:a)-g,clearTimeout(o),y?o=setTimeout(f,g):s>=0?f():o=setTimeout(f,-s),i=n};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){c=h},d}function Wd(e,t,r,n){var i=e[t];if(i){var a=i[L1]||i,o=i[Q5],s=i[K5];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=cI(a,r,n==="debounce"),i[L1]=a,i[Q5]=n,i[K5]=r}return i}}function Xv(e,t){var r=e[t];r&&r[L1]&&(r.clear&&r.clear(),e[t]=r[L1])}var J5=Tt(),ez={itemStyle:yc(OH,!0),lineStyle:yc(LH,!0)},_0e={lineStyle:"stroke",itemStyle:"fill"};function PW(e,t){var r=e.visualStyleMapper||ez[t];return r||(console.warn("Unknown style type '"+t+"'."),ez.itemStyle)}function DW(e,t){var r=e.visualDrawType||_0e[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var w0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=PW(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=DW(e,n),u=o[l],c=Be(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=d,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Be(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||Be(o.stroke)?d:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,v){var g=e.getDataParams(v),y=oe({},o);y[l]=c(g),h.setItemVisual(v,"style",y)}}}},fp=new Ft,C0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=PW(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){fp.option=l[n];var u=i(fp),c=o.ensureUniqueItemVisual(s,"style");oe(c,u),fp.option.decal&&(o.setItemVisual(s,"decal",fp.option.decal),fp.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},T0e={performRawSeries:!0,overallReset:function(e){var t=Oe();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),J5(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=J5(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=DW(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var d=a.ensureUniqueItemVisual(c,"style"),h=n.getName(u)||u+"",v=n.count();d[l]=r.getColorFromPalette(h,o,v)}})}})}},Uy=Math.PI;function A0e(e,t){t=t||{},Ve(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 qe,n=new Ct({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new kt({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Ct({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new uS({shape:{startAngle:-Uy/2,endAngle:-Uy/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:Uy*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Uy*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(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),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var RW=function(){function e(t,r,n,i){this._stageTaskMap=Oe(),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,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,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(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=Oe();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;V(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";zn(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},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 a=!1,o=this;V(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,v=d.agentStubMap;v.each(function(y){s(i,y)&&(y.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,n);var g=o.getPerformArgs(d,i.block);v.each(function(y){y.perform(g)}),d.perform(g)&&(a=!0)}else f&&f.each(function(y,x){s(i,y)&&y.dirty();var S=o.getPerformArgs(y,i.block);S.skip=!l.performRawSeries&&r.isSeriesFiltered(y.context.model),o.updatePayload(y,n),y.perform(S)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||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 a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=Oe(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(f){var d=f.uid,h=s.set(d,o&&o.get(d)||gv({plan:D0e,reset:R0e,count:L0e}));h.context={model:f,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,h)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||gv({reset:M0e});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=Oe(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,h="";zn(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,v):c?c(n,i).each(v):(f=!1,V(n.getSeries(),v));function v(g){var y=g.uid,x=l.set(y,s&&s.get(y)||(d=!0,gv({reset:k0e,onDirty:P0e})));x.context={model:g,overallProgress:f},x.agent=o,x.__block=f,a._pipe(g,x)}d&&o.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 Be(t)&&(t={overallReset:t,seriesType:O0e(t)}),t.uid=Fd("stageHandler"),r&&(t.visualType=r),t},e}();function M0e(e){e.overallReset(e.ecModel,e.api,e.payload)}function k0e(e){return e.overallProgress&&I0e}function I0e(){this.agent.dirty(),this.getDownstream().dirty()}function P0e(){this.agent&&this.agent.dirty()}function D0e(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function R0e(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Yt(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?de(t,function(r,n){return EW(n)}):E0e}var E0e=EW(0);function EW(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a<t.end;a++)i.dataEach(n,a);else i&&i.progress&&i.progress(t,n)}}function L0e(e){return e.data.count()}function O0e(e){O1=null;try{e(Zv,LW)}catch{}return O1}var Zv={},LW={},O1;OW(Zv,aI);OW(LW,aW);Zv.eachSeriesByType=Zv.eachRawSeriesByType=function(e){O1=e};Zv.eachComponent=function(e){e.mainType==="series"&&e.subType&&(O1=e.subType)};function OW(e,t){for(var r in t.prototype)e[r]=Mr}var tz=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const N0e={color:tz,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],tz]};var In="#B9B8CE",rz="#100C2A",Yy=function(){return{axisLine:{lineStyle:{color:In}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},nz=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],NW={darkMode:!0,color:nz,backgroundColor:rz,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:In}},textStyle:{color:In},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:In}},dataZoom:{borderColor:"#71708A",textStyle:{color:In},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:In}},timeline:{lineStyle:{color:In},label:{color:In},controlStyle:{color:In,borderColor:In}},calendar:{itemStyle:{color:rz},dayLabel:{color:In},monthLabel:{color:In},yearLabel:{color:In}},timeAxis:Yy(),logAxis:Yy(),valueAxis:Yy(),categoryAxis:Yy(),line:{symbol:"circle"},graph:{color:nz},gauge:{title:{color:In},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:In},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};NW.categoryAxis.splitLine.show=!1;var z0e=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(we(t)){var a=uo(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};V(t,function(l,u){for(var c=!1,f=0;f<o.length;f++){var d=o[f],h=u.lastIndexOf(d);if(h>0&&h===u.length-d.length){var v=u.slice(0,h);v!=="data"&&(r.mainType=v,r[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=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,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(t,r.otherQuery,i,a));function c(f,d,h,v){return f[h]==null||d[v||h]===f[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),aA=["symbol","symbolSize","symbolRotate","symbolOffset"],iz=aA.concat(["symbolKeepAspect"]),B0e={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={},a=!1,o=0;o<aA.length;o++){var s=aA[o],l=e.get(s);Be(l)?(a=!0,i[s]=l):n[s]=l}if(n.symbol=n.symbol||e.defaultSymbol,r.setVisual(oe({legendIcon:e.legendIcon||n.symbol,symbolKeepAspect:e.get("symbolKeepAspect")},n)),t.isSeriesFiltered(e))return;var u=St(i);function c(f,d){for(var h=e.getRawValue(d),v=e.getDataParams(d),g=0;g<u.length;g++){var y=u[g];f.setItemVisual(d,y,i[y](h,v))}}return{dataEach:a?c:null}}},F0e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!e.hasSymbolVisual||t.isSeriesFiltered(e))return;var r=e.getData();function n(i,a){for(var o=i.getItemModel(a),s=0;s<iz.length;s++){var l=iz[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function fI(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 Ng(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 zW(e,t,r,n){switch(r){case"color":var i=e.ensureUniqueItemVisual(t,"style");i[e.getVisual("drawType")]=n,e.setItemVisual(t,"colorFromPalette",!1);break;case"opacity":e.ensureUniqueItemVisual(t,"style").opacity=n;break;case"symbol":case"symbolSize":case"liftZ":e.setItemVisual(t,r,n);break}}function BW(e,t){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:e,query:i},function(o){a.push(o.seriesIndex)}),a}V([[e+"ToggleSelect","toggleSelect"],[e+"Select","select"],[e+"UnSelect","unselect"]],function(n){t(n[0],function(i,a,o){i=oe({},i),o.dispatchAction(oe(i,{type:n[1],seriesIndex:r(a,i)}))})})}function bf(e,t,r,n,i){var a=e+t;r.isSilent(a)||n.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),d=mc(f,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:ue(d)?f.getName(d[0]):f.getName(d),selected:we(l)?l:oe({},l)})}})}function V0e(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(bf("map","selectchanged",t,i,n),bf("pie","selectchanged",t,i,n)):n.fromAction==="select"?(bf("map","selected",t,i,n),bf("pie","selected",t,i,n)):n.fromAction==="unselect"&&(bf("map","unselected",t,i,n),bf("pie","unselected",t,i,n))})}function Xu(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var $0e=Math.round(Math.random()*9),G0e=typeof Object.defineProperty=="function",H0e=function(){function e(){this._id="__ec_inner_"+$0e++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return G0e?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}(),W0e=vt.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,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n+a),e.lineTo(r-i,n+a),e.closePath()}}),j0e=vt.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,a=t.height/2;e.moveTo(r,n-a),e.lineTo(r+i,n),e.lineTo(r,n+a),e.lineTo(r-i,n),e.closePath()}}),U0e=vt.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,a=Math.max(i,t.height),o=i/2,s=o*o/(a-o),l=n-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),d=Math.cos(u),h=o*.6,v=o*.7;e.moveTo(r-c,l+s),e.arc(r,l,o,Math.PI-u,Math.PI*2+u),e.bezierCurveTo(r+c-f*h,l+s+d*h,r,n-v,r,n),e.bezierCurveTo(r,n-v,r-c+f*h,l+s+d*h,r-c,l+s),e.closePath()}}),Y0e=vt.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,a=t.y,o=n/3*2;e.moveTo(i,a),e.lineTo(i+o,a+r),e.lineTo(i,a+r/4*3),e.lineTo(i-o,a+r),e.lineTo(i,a),e.closePath()}}),q0e={line:Hr,rect:Ct,roundRect:Ct,square:Ct,circle:ys,diamond:j0e,pin:U0e,arrow:Y0e,triangle:W0e},X0e={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 a=Math.min(r,n);i.x=e,i.y=t,i.width=a,i.height=a},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}},N1={};V(q0e,function(e,t){N1[t]=new e});var Z0e=vt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=T1(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=N1[n];i||(n="rect",i=N1[n]),X0e[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function K0e(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 Er(e,t,r,n,i,a,o){var s=e.indexOf("empty")===0;s&&(e=e.substr(5,1).toLowerCase()+e.substr(6));var l;return e.indexOf("image://")===0?l=AH(e.slice(8),new nt(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?l=cS(e.slice(7),{},new nt(t,r,n,i),o?"center":"cover"):l=new Z0e({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=K0e,a&&l.setColor(a),l}function jd(e){return ue(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Ic(e,t){if(e!=null)return ue(e)||(e=[e,e]),[xe(e[0],t[0])||0,xe(Qe(e[1],e[0]),t[1])||0]}function Zu(e){return isFinite(e)}function Q0e(e,t,r){var n=t.x==null?0:t.x,i=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(n=n*r.width+r.x,i=i*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),n=Zu(n)?n:0,i=Zu(i)?i:1,a=Zu(a)?a:0,o=Zu(o)?o:0;var s=e.createLinearGradient(n,a,i,o);return s}function J0e(e,t,r){var n=r.width,i=r.height,a=Math.min(n,i),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,l=t.r==null?.5:t.r;t.global||(o=o*n+r.x,s=s*i+r.y,l=l*a),o=Zu(o)?o:.5,s=Zu(s)?s:.5,l=l>=0&&Zu(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function oA(e,t,r){for(var n=t.type==="radial"?J0e(e,t,r):Q0e(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function e1e(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 qy(e){return parseInt(e,10)}function jf(e,t,r){var n=["width","height"][t],i=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[n]!=null&&r[n]!=="auto")return parseFloat(r[n]);var s=document.defaultView.getComputedStyle(e);return(e[i]||qy(s[n])||qy(e.style[n]))-(qy(s[a])||0)-(qy(s[o])||0)|0}function t1e(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Dt(e)?[e]:ue(e)?e:null}function dI(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&t1e(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=de(r,function(a){return a/i}),n/=i)}return[r,n]}var r1e=new ko(!0);function z1(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function az(e){return typeof e=="string"&&e!=="none"}function B1(e){var t=e.fill;return t!=null&&t!=="none"}function oz(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 sz(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 sA(e,t,r){var n=Bk(t.image,t.__image,r);if(nS(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*R0),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function n1e(e,t,r,n){var i,a=z1(r),o=B1(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||r1e,f=t.__dirty;if(!n){var d=r.fill,h=r.stroke,v=o&&!!d.colorStops,g=a&&!!h.colorStops,y=o&&!!d.image,x=a&&!!h.image,S=void 0,b=void 0,w=void 0,T=void 0,C=void 0;(v||g)&&(C=t.getBoundingRect()),v&&(S=f?oA(e,d,C):t.__canvasFillGradient,t.__canvasFillGradient=S),g&&(b=f?oA(e,h,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=b),y&&(w=f||!t.__canvasFillPattern?sA(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=w),x&&(T=f||!t.__canvasStrokePattern?sA(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),v?e.fillStyle=S:y&&(w?e.fillStyle=w:o=!1),g?e.strokeStyle=b:x&&(T?e.strokeStyle=T:a=!1)}var A=t.getGlobalScale();c.setScale(A[0],A[1],t.segmentIgnoreThreshold);var k,I;e.setLineDash&&r.lineDash&&(i=dI(t),k=i[0],I=i[1]);var P=!0;(u||f&Op)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),P=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),P&&c.rebuildPath(e,l?s:1),k&&(e.setLineDash(k),e.lineDashOffset=I),n||(r.strokeFirst?(a&&sz(e,r),o&&oz(e,r)):(o&&oz(e,r),a&&sz(e,r))),k&&e.setLineDash([])}function i1e(e,t,r){var n=t.__image=Bk(r.image,t.__image,t,t.onload);if(!(!n||!nS(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,f=o-u,d=s-c;e.drawImage(n,u,c,f,d,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function a1e(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||_l,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=dI(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(z1(r)&&e.strokeText(i,r.x,r.y),B1(r)&&e.fillText(i,r.x,r.y)):(B1(r)&&e.fillText(i,r.x,r.y),z1(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var lz=["shadowBlur","shadowOffsetX","shadowOffsetY"],uz=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function FW(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){ri(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?rc.opacity:o}(n||t.blend!==r.blend)&&(a||(ri(e,i),a=!0),e.globalCompositeOperation=t.blend||rc.blend);for(var s=0;s<lz.length;s++){var l=lz[s];(n||t[l]!==r[l])&&(a||(ri(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(ri(e,i),a=!0),e.shadowColor=t.shadowColor||rc.shadowColor),a}function cz(e,t,r,n,i){var a=Kv(t,i.inHover),o=n?null:r&&Kv(r,i.inHover)||{};if(a===o)return!1;var s=FW(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(ri(e,i),s=!0),az(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(ri(e,i),s=!0),az(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(ri(e,i),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==u&&(s||(ri(e,i),s=!0),e.lineWidth=u)}for(var c=0;c<uz.length;c++){var f=uz[c],d=f[0];(n||a[d]!==o[d])&&(s||(ri(e,i),s=!0),e[d]=a[d]||f[1])}return s}function o1e(e,t,r,n,i){return FW(e,Kv(t,i.inHover),r&&Kv(r,i.inHover),n,i)}function VW(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 s1e(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),VW(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function l1e(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 fz=1,dz=2,hz=3,pz=4;function u1e(e){var t=B1(e),r=z1(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 ri(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Kv(e,t){return t&&e.__hoverStyle||e.style}function $W(e,t){Ku(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Ku(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 a=t.__clipPaths,o=r.prevElClipPaths,s=!1,l=!1;if((!o||e1e(a,o))&&(o&&o.length&&(ri(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(ri(e,r),e.save(),s1e(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var u=r.prevEl;u||(l=s=!0);var c=t instanceof vt&&t.autoBatch&&u1e(t.style);s||l1e(i,u.transform)?(ri(e,r),VW(e,t)):c||ri(e,r);var f=Kv(t,r.inHover);t instanceof vt?(r.lastDrawType!==fz&&(l=!0,r.lastDrawType=fz),cz(e,t,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&e.beginPath(),n1e(e,t,f,c),c&&(r.batchFill=f.fill||"",r.batchStroke=f.stroke||"")):t instanceof md?(r.lastDrawType!==hz&&(l=!0,r.lastDrawType=hz),cz(e,t,u,l,r),a1e(e,t,f)):t instanceof en?(r.lastDrawType!==dz&&(l=!0,r.lastDrawType=dz),o1e(e,t,u,l,r),i1e(e,t,f)):t.getTemporalDisplayables&&(r.lastDrawType!==pz&&(l=!0,r.lastDrawType=pz),c1e(e,t,r)),c&&n&&ri(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function c1e(e,t,r){var n=t.getDisplayables(),i=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=n.length;o<s;o++){var l=n[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Ku(e,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,c=i.length;u<c;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Ku(e,l,a,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var nC=new H0e,vz=new Ag(100),gz=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function Sd(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&nC.delete(e);var a=nC.get(e);if(a)return a;var o=Ve(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});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/r,nC.set(e,s),e.dirty=!1,s;function l(u){for(var c=[r],f=!0,d=0;d<gz.length;++d){var h=o[gz[d]];if(h!=null&&!ue(h)&&!we(h)&&!Dt(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var v;if(f){v=c.join(",")+(i?"-svg":"");var g=vz.get(v);g&&(i?u.svgElement=g:u.image=g)}var y=HW(o.dashArrayX),x=f1e(o.dashArrayY),S=GW(o.symbol),b=d1e(y),w=WW(x),T=!i&&wl.createCanvas(),C=i&&{tag:"g",attrs:{},key:"dcl",children:[]},A=I(),k;T&&(T.width=A.width*r,T.height=A.height*r,k=T.getContext("2d")),P(),f&&vz.put(v,T||C),u.image=T,u.svgElement=C,u.svgWidth=A.width,u.svgHeight=A.height;function I(){for(var R=1,L=0,O=b.length;L<O;++L)R=EN(R,b[L]);for(var z=1,L=0,O=S.length;L<O;++L)z=EN(z,S[L].length);R*=z;var F=w*b.length*S.length;return{width:Math.max(1,Math.min(R,o.maxTileWidth)),height:Math.max(1,Math.min(F,o.maxTileHeight))}}function P(){k&&(k.clearRect(0,0,T.width,T.height),o.backgroundColor&&(k.fillStyle=o.backgroundColor,k.fillRect(0,0,T.width,T.height)));for(var R=0,L=0;L<x.length;++L)R+=x[L];if(R<=0)return;for(var O=-w,z=0,F=0,H=0;O<A.height;){if(z%2===0){for(var q=F/2%S.length,$=0,X=0,B=0;$<A.width*2;){for(var Y=0,L=0;L<y[H].length;++L)Y+=y[H][L];if(Y<=0)break;if(X%2===0){var Z=(1-o.symbolSize)*.5,j=$+y[H][X]*Z,re=O+x[z]*Z,ce=y[H][X]*o.symbolSize,te=x[z]*o.symbolSize,pe=B/2%S[q].length;ae(j,re,ce,te,S[q][pe])}$+=y[H][X],++B,++X,X===y[H].length&&(X=0)}++H,H===y.length&&(H=0)}O+=x[z],++F,++z,z===x.length&&(z=0)}function ae(he,ve,fe,ge,Re){var Ie=i?1:r,$e=Er(Re,he*Ie,ve*Ie,fe*Ie,ge*Ie,o.color,o.symbolKeepAspect);if(i){var dt=n.painter.renderOneToVNode($e);dt&&C.children.push(dt)}else $W(k,$e)}}}}function GW(e){if(!e||e.length===0)return[["rect"]];if(we(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!we(e[r])){t=!1;break}if(t)return GW([e]);for(var n=[],r=0;r<e.length;++r)we(e[r])?n.push([e[r]]):n.push(e[r]);return n}function HW(e){if(!e||e.length===0)return[[0,0]];if(Dt(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!Dt(e[n])){r=!1;break}if(r)return HW([e]);for(var i=[],n=0;n<e.length;++n)if(Dt(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=de(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function f1e(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(Dt(e)){var t=Math.ceil(e);return[t,t]}var r=de(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function d1e(e){return de(e,function(t){return WW(t)})}function WW(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function h1e(e,t){e.eachRawSeries(function(r){if(!e.isSeriesFiltered(r)){var n=r.getData();n.hasItemVisual()&&n.each(function(o){var s=n.getItemVisual(o,"decal");if(s){var l=n.ensureUniqueItemVisual(o,"style");l.decal=Sd(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=Sd(i,t)}}})}var _a=new sa,jW={};function p1e(e,t){jW[e]=t}function v1e(e){return jW[e]}var g1e=1,m1e=800,y1e=900,x1e=1e3,S1e=2e3,b1e=5e3,UW=1e3,_1e=1100,hI=2e3,YW=3e3,w1e=4e3,_S=4500,C1e=4600,T1e=5e3,A1e=6e3,qW=7e3,M1e={PROCESSOR:{FILTER:x1e,SERIES_FILTER:m1e,STATISTIC:b1e},VISUAL:{LAYOUT:UW,PROGRESSIVE_LAYOUT:_1e,GLOBAL:hI,CHART:YW,POST_CHART_LAYOUT:C1e,COMPONENT:w1e,BRUSH:T1e,CHART_ITEM:_S,ARIA:A1e,DECAL:qW}},yn="__flagInMainProcess",Kn="__pendingUpdate",iC="__needsUpdateStatus",mz=/^[a-zA-Z0-9_]+$/,aC="__connectUpdateStatus",yz=0,k1e=1,I1e=2;function XW(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return KW(this,e,t)}}function ZW(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return KW(this,e,t)}}function KW(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),sa.prototype[t].apply(e,r)}var QW=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(sa),JW=QW.prototype;JW.on=ZW("on");JW.off=ZW("off");var _f,oC,Xy,Ys,sC,lC,uC,dp,hp,xz,Sz,cC,bz,Zy,_z,ej,Ni,wz,F1=function(e){J(t,e);function t(r,n,i){var a=e.call(this,new z0e)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},we(n)&&(n=tj[n]),a._dom=r;var o="canvas",s="auto",l=!1;i.ssr&&Cve(function(d){var h=Ze(d),v=h.dataIndex;if(v!=null){var g=Oe();return g.set("series_index",h.seriesIndex),g.set("data_index",v),h.ssrType&&g.set("ssr_type",h.ssrType),g}});var u=a._zr=PN(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Qe(i.useDirtyRect,l),useCoarsePointer:Qe(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=cI(Ae(u.flush,u),17),n=We(n),n&&sW(n,!0),a._theme=n,a._locale=Xme(i.locale||NH),a._coordSysMgr=new Og;var c=a._api=_z(a);function f(d,h){return d.__prio-h.__prio}return O0($1,f),O0(lA,f),a._scheduler=new RW(a,c,lA,$1),a._messageCenter=new QW,a._initEvents(),a.resize=Ae(a.resize,a),u.animation.on("frame",a._onframe,a),xz(u,a),Sz(u,a),m1(a),a}return t.prototype._onframe=function(){if(!this._disposed){wz(this);var r=this._scheduler;if(this[Kn]){var n=this[Kn].silent;this[yn]=!0;try{_f(this),Ys.update.call(this,null,this[Kn].updateParams)}catch(l){throw this[yn]=!1,this[Kn]=null,l}this._zr.flush(),this[yn]=!1,this[Kn]=null,dp.call(this,n),hp.call(this,n)}else if(r.unfinished){var i=g1e,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),lC(this,a),r.performVisualTasks(a),Zy(this,this._model,o,"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[yn]){if(this._disposed){this.id;return}var a,o,s;if(Ge(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[yn]=!0,!this._model||n){var l=new Sye(this._api),u=this._theme,c=this._model=new aI;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},uA);var f={seriesTransition:s,optionChanged:!0};if(i)this[Kn]={silent:a,updateParams:f},this[yn]=!1,this.getZr().wakeUp();else{try{_f(this),Ys.update.call(this,null,f)}catch(d){throw this[Kn]=null,this[yn]=!1,d}this._ssr||this._zr.flush(),this[Kn]=null,this[yn]=!1,dp.call(this,a),hp.call(this,a)}}},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||yt.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(yt.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return V(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,a=[],o=this;V(n,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.push(c),c.group.ignore=!0)})});var s=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(r).toDataURL("image/"+(r&&r.type||"png"));return V(a,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,a=Math.min,o=Math.max,s=1/0;if(fA[i]){var l=s,u=s,c=-s,f=-s,d=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();V(nd,function(b,w){if(b.group===i){var T=n?b.getZr().painter.getSvgDom().innerHTML:b.renderToCanvas(We(r)),C=b.getDom().getBoundingClientRect();l=a(C.left,l),u=a(C.top,u),c=o(C.right,c),f=o(C.bottom,f),d.push({dom:T,left:C.left,top:C.top})}}),l*=h,u*=h,c*=h,f*=h;var v=c-l,g=f-u,y=wl.createCanvas(),x=PN(y,{renderer:n?"svg":"canvas"});if(x.resize({width:v,height:g}),n){var S="";return V(d,function(b){var w=b.left-l,T=b.top-u;S+='<g transform="translate('+w+","+T+')">'+b.dom+"</g>"}),x.painter.getSvgRoot().innerHTML=S,r.connectedBackgroundColor&&x.painter.setBackgroundColor(r.connectedBackgroundColor),x.refreshImmediately(),x.painter.toDataURL()}else return r.connectedBackgroundColor&&x.add(new Ct({shape:{x:0,y:0,width:v,height:g},style:{fill:r.connectedBackgroundColor}})),V(d,function(b){var w=new en({style:{x:b.left*h-l,y:b.top*h-u,image:b.dom}});x.add(w)}),x.refreshImmediately(),y.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return sC(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return sC(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=fv(i,r);return V(o,function(s,l){l.indexOf("Models")>=0&&V(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint&&(a=a||f.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=fv(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?fI(s,l,n):Ng(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;V(P1e,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Xu(s,function(v){var g=Ze(v);if(g&&g.dataIndex!=null){var y=g.dataModel||o.getSeriesByIndex(g.seriesIndex);return l=y&&y.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=oe({},g.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&o.getComponent(c,f),h=d&&r[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),V(mv,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),V(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),V0e(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&&qG(this.getDom(),vI,"");var n=this,i=n._api,a=n._model;V(n._componentsViews,function(o){o.dispose(a,i)}),V(n._chartsViews,function(o){o.dispose(a,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 nd[n.id]},t.prototype.resize=function(r){if(!this[yn]){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"),a=r&&r.silent;this[Kn]&&(a==null&&(a=this[Kn].silent),i=!0,this[Kn]=null),this[yn]=!0;try{i&&_f(this),Ys.update.call(this,{type:"resize",animation:oe({duration:0},r&&r.animation)})}catch(o){throw this[yn]=!1,o}this[yn]=!1,dp.call(this,a),hp.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Ge(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!cA[r]){var i=cA[r](this._api,n),a=this._zr;this._loadingFX=i,a.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=oe({},r);return n.type=mv[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Ge(n)||(n={silent:!!n}),!!V1[r.type]&&this._model){if(this[yn]){this._pendingActions.push(r);return}var i=n.silent;uC.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&yt.browser.weChat&&this._throttledZrFlush(),dp.call(this,i),hp.call(this,i)}},t.prototype.updateLabelLayout=function(){_a.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(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){_f=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),oC(f,!0),oC(f,!1),d.plan()},oC=function(f,d){for(var h=f._model,v=f._scheduler,g=d?f._componentsViews:f._chartsViews,y=d?f._componentsMap:f._chartsMap,x=f._zr,S=f._api,b=0;b<g.length;b++)g[b].__alive=!1;d?h.eachComponent(function(C,A){C!=="series"&&w(A)}):h.eachSeries(w);function w(C){var A=C.__requireNewView;C.__requireNewView=!1;var k="_ec_"+C.id+"_"+C.type,I=!A&&y[k];if(!I){var P=uo(C.type),R=d?dr.getClass(P.main,P.sub):Kt.getClass(P.sub);I=new R,I.init(h,S),y[k]=I,g.push(I),x.add(I.group)}C.__viewId=I.__id=k,I.__alive=!0,I.__model=C,I.group.__ecComponentInfo={mainType:C.mainType,index:C.componentIndex},!d&&v.prepareView(I,C,h,S)}for(var b=0;b<g.length;){var T=g[b];T.__alive?b++:(!d&&T.renderTask.dispose(),x.remove(T.group),T.dispose(h,S),g.splice(b,1),y[T.__id]===T&&delete y[T.__id],T.__id=T.group.__ecComponentInfo=null)}},Xy=function(f,d,h,v,g){var y=f._model;if(y.setUpdatePayload(h),!v){V([].concat(f._componentsViews).concat(f._chartsViews),T);return}var x={};x[v+"Id"]=h[v+"Id"],x[v+"Index"]=h[v+"Index"],x[v+"Name"]=h[v+"Name"];var S={mainType:v,query:x};g&&(S.subType=g);var b=h.excludeSeriesId,w;b!=null&&(w=Oe(),V(Yt(b),function(C){var A=Br(C,null);A!=null&&w.set(A,!0)})),y&&y.eachComponent(S,function(C){var A=w&&w.get(C.id)!=null;if(!A)if(a5(h))if(C instanceof or)h.type===nc&&!h.notBlur&&!C.get(["emphasis","disabled"])&&qge(C,h,f._api);else{var k=Wk(C.mainType,C.componentIndex,h.name,f._api),I=k.focusSelf,P=k.dispatchers;h.type===nc&&I&&!h.notBlur&&W2(C.mainType,C.componentIndex,f._api),P&&V(P,function(R){h.type===nc?us(R):cs(R)})}else U2(h)&&C instanceof or&&(Kge(C,h,f._api),n5(C),Ni(f))},f),y&&y.eachComponent(S,function(C){var A=w&&w.get(C.id)!=null;A||T(f[v==="series"?"_chartsMap":"_componentsMap"][C.__viewId])},f);function T(C){C&&C.__alive&&C[d]&&C[d](C.__model,y,f._api,h)}},Ys={prepareAndUpdate:function(f){_f(this),Ys.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var h=this._model,v=this._api,g=this._zr,y=this._coordSysMgr,x=this._scheduler;if(h){h.setUpdatePayload(f),x.restoreData(h,f),x.performSeriesTasks(h),y.create(h,v),x.performDataProcessorTasks(h,f),lC(this,h),y.update(h,v),r(h),x.performVisualTasks(h,f),cC(this,h,v,f,d);var S=h.get("backgroundColor")||"transparent",b=h.get("darkMode");g.setBackgroundColor(S),b!=null&&b!=="auto"&&g.setDarkMode(b),_a.trigger("afterupdate",h,v)}},updateTransform:function(f){var d=this,h=this._model,v=this._api;if(h){h.setUpdatePayload(f);var g=[];h.eachComponent(function(x,S){if(x!=="series"){var b=d.getViewOfComponentModel(S);if(b&&b.__alive)if(b.updateTransform){var w=b.updateTransform(S,h,v,f);w&&w.update&&g.push(b)}else g.push(b)}});var y=Oe();h.eachSeries(function(x){var S=d._chartsMap[x.__viewId];if(S.updateTransform){var b=S.updateTransform(x,h,v,f);b&&b.update&&y.set(x.uid,1)}else y.set(x.uid,1)}),r(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:y}),Zy(this,h,v,f,{},y),_a.trigger("afterupdate",h,v)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),Kt.markUpdateMethod(f,"updateView"),r(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),cC(this,d,this._api,f,{}),_a.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(v){v.getData().clearAllVisual()}),Kt.markUpdateMethod(f,"updateVisual"),r(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(v,g){if(v!=="series"){var y=d.getViewOfComponentModel(g);y&&y.__alive&&y.updateVisual(g,h,d._api,f)}}),h.eachSeries(function(v){var g=d._chartsMap[v.__viewId];g.updateVisual(v,h,d._api,f)}),_a.trigger("afterupdate",h,this._api))},updateLayout:function(f){Ys.update.call(this,f)}},sC=function(f,d,h,v){if(f._disposed){f.id;return}for(var g=f._model,y=f._coordSysMgr.getCoordinateSystems(),x,S=fv(g,h),b=0;b<y.length;b++){var w=y[b];if(w[d]&&(x=w[d](g,S,v))!=null)return x}},lC=function(f,d){var h=f._chartsMap,v=f._scheduler;d.eachSeries(function(g){v.updateStreamModes(g,h[g.__viewId])})},uC=function(f,d){var h=this,v=this.getModel(),g=f.type,y=f.escapeConnect,x=V1[g],S=x.actionInfo,b=(S.update||"update").split(":"),w=b.pop(),T=b[0]!=null&&uo(b[0]);this[yn]=!0;var C=[f],A=!1;f.batch&&(A=!0,C=de(f.batch,function(z){return z=Ve(oe({},z),f),z.batch=null,z}));var k=[],I,P=U2(f),R=a5(f);if(R&&vH(this._api),V(C,function(z){if(I=x.action(z,h._model,h._api),I=I||oe({},z),I.type=S.event||I.type,k.push(I),R){var F=Nk(f),H=F.queryOptionMap,q=F.mainTypeSpecified,$=q?H.keys()[0]:"series";Xy(h,w,z,$),Ni(h)}else P?(Xy(h,w,z,"series"),Ni(h)):T&&Xy(h,w,z,T.main,T.sub)}),w!=="none"&&!R&&!P&&!T)try{this[Kn]?(_f(this),Ys.update.call(this,f),this[Kn]=null):Ys[w].call(this,f)}catch(z){throw this[yn]=!1,z}if(A?I={type:S.event||g,escapeConnect:y,batch:k}:I=k[0],this[yn]=!1,!d){var L=this._messageCenter;if(L.trigger(I.type,I),P){var O={type:"selectchanged",escapeConnect:y,selected:Qge(v),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};L.trigger(O.type,O)}}},dp=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();uC.call(this,h,f)}},hp=function(f){!f&&this.trigger("updated")},xz=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[Kn]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},Sz=function(f,d){f.on("mouseover",function(h){var v=h.target,g=Xu(v,Wv);g&&(Xge(g,h,d._api),Ni(d))}).on("mouseout",function(h){var v=h.target,g=Xu(v,Wv);g&&(Zge(g,h,d._api),Ni(d))}).on("click",function(h){var v=h.target,g=Xu(v,function(S){return Ze(S).dataIndex!=null},!0);if(g){var y=g.selected?"unselect":"select",x=Ze(g);d._api.dispatchAction({type:y,dataType:x.dataType,dataIndexInside:x.dataIndex,seriesIndex:x.seriesIndex,isFromClick:!0})}})};function r(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function n(f){var d=[],h=[],v=!1;if(f.eachComponent(function(S,b){var w=b.get("zlevel")||0,T=b.get("z")||0,C=b.getZLevelKey();v=v||!!C,(S==="series"?h:d).push({zlevel:w,z:T,idx:b.componentIndex,type:S,key:C})}),v){var g=d.concat(h),y,x;O0(g,function(S,b){return S.zlevel===b.zlevel?S.z-b.z:S.zlevel-b.zlevel}),V(g,function(S){var b=f.getComponent(S.type,S.idx),w=S.zlevel,T=S.key;y!=null&&(w=Math.max(y,w)),T?(w===y&&T!==x&&w++,x=T):x&&(w===y&&w++,x=""),y=w,b.setZLevel(w)})}}cC=function(f,d,h,v,g){n(d),bz(f,d,h,v,g),V(f._chartsViews,function(y){y.__alive=!1}),Zy(f,d,h,v,g),V(f._chartsViews,function(y){y.__alive||y.remove(d,h)})},bz=function(f,d,h,v,g,y){V(y||f._componentsViews,function(x){var S=x.__model;u(S,x),x.render(S,d,h,v),s(S,x),c(S,x)})},Zy=function(f,d,h,v,g,y){var x=f._scheduler;g=oe(g||{},{updatedSeries:d.getSeries()}),_a.trigger("series:beforeupdate",d,h,g);var S=!1;d.eachSeries(function(b){var w=f._chartsMap[b.__viewId];w.__alive=!0;var T=w.renderTask;x.updatePayload(T,v),u(b,w),y&&y.get(b.uid)&&T.dirty(),T.perform(x.getPerformArgs(T))&&(S=!0),w.group.silent=!!b.get("silent"),o(b,w),n5(b)}),x.unfinished=S||x.unfinished,_a.trigger("series:layoutlabels",d,h,g),_a.trigger("series:transition",d,h,g),d.eachSeries(function(b){var w=f._chartsMap[b.__viewId];s(b,w),c(b,w)}),a(f,d),_a.trigger("series:afterupdate",d,h,g)},Ni=function(f){f[iC]=!0,f.getZr().wakeUp()},wz=function(f){f[iC]&&(f.getZr().storage.traverse(function(d){Jf(d)||i(d)}),f[iC]=!1)};function i(f){for(var d=[],h=f.currentStates,v=0;v<h.length;v++){var g=h[v];g==="emphasis"||g==="blur"||g==="select"||d.push(g)}f.selected&&f.states.select&&d.push("select"),f.hoverState===oS&&f.states.emphasis?d.push("emphasis"):f.hoverState===Ig&&f.states.blur&&d.push("blur"),f.useStates(d)}function a(f,d){var h=f._zr,v=h.storage,g=0;v.traverse(function(y){y.isGroup||g++}),g>d.get("hoverLayerThreshold")&&!yt.node&&!yt.worker&&d.eachSeries(function(y){if(!y.preventUsingHoverLayer){var x=f._chartsMap[y.__viewId];x.__alive&&x.eachRendered(function(S){S.states.emphasis&&(S.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,v=f.get("zlevel")||0;d.eachRendered(function(g){return l(g,h,v,-1/0),!0})}}function l(f,d,h,v){var g=f.getTextContent(),y=f.getTextGuideLine(),x=f.isGroup;if(x)for(var S=f.childrenRef(),b=0;b<S.length;b++)v=Math.max(l(S[b],d,h,v),v);else f.z=d,f.zlevel=h,v=Math.max(f.z2,v);if(g&&(g.z=d,g.zlevel=h,isFinite(v)&&(g.z2=v+2)),y){var w=f.textGuideLineConfig;y.z=d,y.zlevel=h,isFinite(v)&&(y.z2=v+(w&&w.showAbove?1:-1))}return v}function u(f,d){d.eachRendered(function(h){if(!Jf(h)){var v=h.getTextContent(),g=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(f,d){var h=f.getModel("stateAnimation"),v=f.isAnimationEnabled(),g=h.get("duration"),y=g>0?{duration:g,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(x){if(x.states&&x.states.emphasis){if(Jf(x))return;if(x instanceof vt&&nme(x),x.__dirty){var S=x.prevStates;S&&x.useStates(S)}if(v){x.stateTransition=y;var b=x.getTextContent(),w=x.getTextGuideLine();b&&(b.stateTransition=y),w&&(w.stateTransition=y)}x.__dirty&&i(x)}})}_z=function(f){return new(function(d){J(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(v){for(;v;){var g=v.__ecComponentInfo;if(g!=null)return f._model.getComponent(g.mainType,g.index);v=v.parent}},h.prototype.enterEmphasis=function(v,g){us(v,g),Ni(f)},h.prototype.leaveEmphasis=function(v,g){cs(v,g),Ni(f)},h.prototype.enterBlur=function(v){fH(v),Ni(f)},h.prototype.leaveBlur=function(v){Hk(v),Ni(f)},h.prototype.enterSelect=function(v){dH(v),Ni(f)},h.prototype.leaveSelect=function(v){hH(v),Ni(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},h.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},h}(aW))(f)},ej=function(f){function d(h,v){for(var g=0;g<h.length;g++){var y=h[g];y[aC]=v}}V(mv,function(h,v){f._messageCenter.on(v,function(g){if(fA[f.group]&&f[aC]!==yz){if(g&&g.escapeConnect)return;var y=f.makeActionFromEvent(g),x=[];V(nd,function(S){S!==f&&S.group===f.group&&x.push(S)}),d(x,yz),V(x,function(S){S[aC]!==k1e&&S.dispatchAction(y)}),d(x,I1e)}})})}}(),t}(sa),pI=F1.prototype;pI.on=XW("on");pI.off=XW("off");pI.one=function(e,t,r){var n=this;function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];t&&t.apply&&t.apply(this,a),n.off(e,i)}this.on.call(this,e,i,r)};var P1e=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var V1={},mv={},lA=[],uA=[],$1=[],tj={},cA={},nd={},fA={},D1e=+new Date-0,R1e=+new Date-0,vI="_echarts_instance_";function E1e(e,t,r){{var n=rj(e);if(n)return n}var i=new F1(e,t,r);return i.id="ec_"+D1e++,nd[i.id]=i,qG(e,vI,i.id),ej(i),_a.trigger("afterinit",i),i}function L1e(e){if(ue(e)){var t=e;e=null,V(t,function(r){r.group!=null&&(e=r.group)}),e=e||"g_"+R1e++,V(t,function(r){r.group=e})}return fA[e]=!0,e}function O1e(e){we(e)?e=nd[e]:e instanceof F1||(e=rj(e)),e instanceof F1&&!e.isDisposed()&&e.dispose()}function rj(e){return nd[jve(e,vI)]}function nj(e,t){tj[e]=t}function ij(e){ft(uA,e)<0&&uA.push(e)}function aj(e,t){mI(lA,e,t,S1e)}function N1e(e){gI("afterinit",e)}function z1e(e){gI("afterupdate",e)}function gI(e,t){_a.on(e,t)}function Ro(e,t,r){Be(t)&&(r=t,t="");var n=Ge(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!mv[t]&&(zn(mz.test(n)&&mz.test(t)),V1[n]||(V1[n]={action:r,actionInfo:e}),mv[t]=n)}function B1e(e,t){Og.register(e,t)}function F1e(e,t){mI($1,e,t,UW,"layout")}function Pc(e,t){mI($1,e,t,YW,"visual")}var Cz=[];function mI(e,t,r,n,i){if((Be(t)||Ge(t))&&(r=t,t=n),!(ft(Cz,r)>=0)){Cz.push(r);var a=RW.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function oj(e,t){cA[e]=t}function V1e(e,t,r){var n=v1e("registerMap");n&&n(e,t,r)}var $1e=Qye;Pc(hI,w0e);Pc(_S,C0e);Pc(_S,T0e);Pc(hI,B0e);Pc(_S,F0e);Pc(qW,h1e);ij(sW);aj(y1e,Rye);oj("default",A0e);Ro({type:nc,event:nc,update:nc},Mr);Ro({type:$0,event:$0,update:$0},Mr);Ro({type:dv,event:dv,update:dv},Mr);Ro({type:G0,event:G0,update:G0},Mr);Ro({type:hv,event:hv,update:hv},Mr);nj("light",N0e);nj("dark",NW);var Tz=[],G1e={registerPreprocessor:ij,registerProcessor:aj,registerPostInit:N1e,registerPostUpdate:z1e,registerUpdateLifecycle:gI,registerAction:Ro,registerCoordinateSystem:B1e,registerLayout:F1e,registerVisual:Pc,registerTransform:$1e,registerLoading:oj,registerMap:V1e,registerImpl:p1e,PRIORITY:M1e,ComponentModel:xt,ComponentView:dr,SeriesModel:or,ChartView:Kt,registerComponentModel:function(e){xt.registerClass(e)},registerComponentView:function(e){dr.registerClass(e)},registerSeriesModel:function(e){or.registerClass(e)},registerChartView:function(e){Kt.registerClass(e)},registerSubTypeDefaulter:function(e,t){xt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){_ve(e,t)}};function pt(e){if(ue(e)){V(e,function(t){pt(t)});return}ft(Tz,e)>=0||(Tz.push(e),Be(e)&&(e={install:e}),e.install(G1e))}function pp(e){return e==null?0:e.length||1}function Az(e){return e}var fs=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||Az,this._newKeyGetter=i||Az,this.context=a,this._diffModeMultiple=o==="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),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=n[s],u=pp(l);if(u>1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=n[l],c=i[l],f=pp(u),d=pp(c);if(f>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var h=0;h<f;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},e.prototype._performRestAdd=function(t,r){for(var n=0;n<t.length;n++){var i=t[n],a=r[i],o=pp(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);r[i]=null}},e.prototype._initIndexMap=function(t,r,n,i){for(var a=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(a||(n[o]=s),!!r){var l=r[s],u=pp(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}(),H1e=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 W1e(e,t){var r={},n=r.encode={},i=Oe(),a=[],o=[],s={};V(e.dimensions,function(d){var h=e.getDimensionInfo(d),v=h.coordDim;if(v){var g=h.coordDimIndex;fC(n,v)[g]=d,h.isExtraCoord||(i.set(v,1),j1e(h.type)&&(a[0]=d),fC(s,v)[g]=e.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}QH.each(function(y,x){var S=fC(n,x),b=h.otherDims[x];b!=null&&b!==!1&&(S[b]=h.name)})});var l=[],u={};i.each(function(d,h){var v=n[h];u[h]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=de(l,function(d){return e.getDimensionInfo(d).storeDimIndex}),r.encodeFirstDimNotExtra=u;var c=n.label;c&&c.length&&(a=c.slice());var f=n.tooltip;return f&&f.length?o=f.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,r.userOutput=new H1e(s,t),r}function fC(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function G1(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function j1e(e){return!(e==="ordinal"||e==="time")}var Y0=function(){function e(t){this.otherDims={},t!=null&&oe(this,t)}return e}(),U1e=Tt(),Y1e={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},sj=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=cj(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return Qe(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=uW(this.source),n=!fj(t),i="",a=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=r?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(l=r?d.name:null,u=d.type)}a.push({property:l,type:u,ordinalMeta:c}),r&&l!=null&&(!f||!f.isCalculationCoord)&&(i+=n?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=Y1e[u]||"f",c&&(i+=c.uid),i+="$"}var h=this.source,v=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:a,hash:v}},e.prototype.makeOutputDimensionNames=function(){for(var t=[],r=0,n=0;r<this._fullDimCount;r++){var i=void 0,a=this.dimensions[n];if(a&&a.storeDimIndex===r)a.isCalculationCoord||(i=a.name),n++;else{var o=this.getSourceDimension(r);o&&(i=o.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 lj(e){return e instanceof sj}function uj(e){for(var t=Oe(),r=0;r<(e||[]).length;r++){var n=e[r],i=Ge(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function cj(e){var t=U1e(e);return t.dimNameMap||(t.dimNameMap=uj(e.dimensionsDefine))}function fj(e){return e>30}var vp=Ge,qs=de,q1e=typeof Int32Array>"u"?Array:Int32Array,X1e="e\0\0",Mz=-1,Z1e=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],K1e=["_approximateExtent"],kz,Ky,gp,mp,dC,Qy,hC,On=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;lj(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c<n.length;c++){var f=n[c],d=we(f)?new Y0({name:f}):f instanceof Y0?f:new Y0(f),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var v=d.otherDims=d.otherDims||{};o.push(h),a[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]),v.itemName===0&&(this._nameDimIdx=c),v.itemId===0&&(this._idDimIdx=c),i&&(d.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=r,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=Oe();V(o,function(y){g.set(a[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(Dt(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,a;if(t instanceof tA&&(a=t),!a){var o=this.dimensions,s=oI(t)||wn(t)?new cW(t,o.length):t;a=new tA;var l=qs(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,n)}this._store=a,this._nameList=(r||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=W1e(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,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),r)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=r[l],o&&hC(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!==gl&&!t.fillStorage},e.prototype._doInit=function(t,r){if(!(t>=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===la;if(l&&!i.pure)for(var u=[],c=t;c<r;c++){var f=i.getItem(c,u);if(!this.hasItemOption&&Rve(f)&&(this.hasItemOption=!0),f){var d=f.name;a[c]==null&&d!=null&&(a[c]=Br(d,null));var h=f.id;o[c]==null&&h!=null&&(o[c]=Br(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<r;c++)hC(this,c);kz(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){vp(t)?oe(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=gp(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 Ky(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 ue(t)?i.getValues(qs(t,function(a){return n._getStoreDimIndex(a)}),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)?Mz:i},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){Be(t)&&(n=r,r=t,t=[]);var i=n||this,a=qs(mp(t),this._getStoreDimIndex,this);this._store.each(a,i?Ae(r,i):r)},e.prototype.filterSelf=function(t,r,n){Be(t)&&(n=r,r=t,t=[]);var i=n||this,a=qs(mp(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?Ae(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=St(t);return V(i,function(a){var o=r._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},e.prototype.mapArray=function(t,r,n){Be(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 a=n||i||this,o=qs(mp(t),this._getStoreDimIndex,this),s=Qy(this);return s._store=this._store.map(o,a?Ae(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=n||i||this,o=qs(mp(t),this._getStoreDimIndex,this);this._store.modify(o,a?Ae(r,a):r)},e.prototype.downSample=function(t,r,n,i){var a=Qy(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},e.prototype.lttbDownSample=function(t,r){var n=Qy(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 Ft(n,r,r&&r.ecModel)},e.prototype.diff=function(t){var r=this;return new fs(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Ky(t,n)},function(n){return Ky(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||{},vp(t)?oe(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 a=i[r];return a==null&&(a=this.getVisual(r),ue(a)?a=a.slice():vp(a)&&(a=oe({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,vp(r)?oe(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){vp(t)?oe(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?oe(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;G2(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){V(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:qs(this.dimensions,this._getDimInfo,this),this.hostModel)),dC(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];Be(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(Ak(arguments)))})},e.internalField=function(){kz=function(t){var r=t._invertedIndicesMap;V(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new q1e(o.categories.length);for(var l=0;l<n.length;l++)n[l]=Mz;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},gp=function(t,r,n){return Br(t._getCategory(r,n),null)},Ky=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=gp(t,t._idDimIdx,r)),n==null&&(n=X1e+r),n},mp=function(t){return ue(t)||(t=t!=null?[t]:[]),t},Qy=function(t){var r=new e(t._schema?t._schema:qs(t.dimensions,t._getDimInfo,t),t.hostModel);return dC(r,t),r},dC=function(t,r){V(Z1e.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,V(K1e,function(n){t[n]=We(r[n])}),t._calculationInfo=oe({},r._calculationInfo)},hC=function(t,r){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[r],l=i[r];if(s==null&&a!=null&&(n[r]=s=gp(t,a,r)),l==null&&o!=null&&(i[r]=l=gp(t,o,r)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[r]=l}}}(),e}();function zg(e,t){oI(e)||(e=sI(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=Oe(),a=[],o=J1e(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&fj(o),l=n===e.dimensionsDefine,u=l?cj(e):uj(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=Oe(c),d=new yW(o),h=0;h<d.length;h++)d[h]=-1;function v(I){var P=d[I];if(P<0){var R=n[I],L=Ge(R)?R:{name:R},O=new Y0,z=L.name;z!=null&&u.get(z)!=null&&(O.name=O.displayName=z),L.type!=null&&(O.type=L.type),L.displayName!=null&&(O.displayName=L.displayName);var F=a.length;return d[I]=F,O.storeDimIndex=I,a.push(O),O}return a[P]}if(!s)for(var h=0;h<o;h++)v(h);f.each(function(I,P){var R=Yt(I).slice();if(R.length===1&&!we(R[0])&&R[0]<0){f.set(P,!1);return}var L=f.set(P,[]);V(R,function(O,z){var F=we(O)?u.get(O):O;F!=null&&F<o&&(L[z]=F,y(v(F),P,z))})});var g=0;V(r,function(I){var P,R,L,O;if(we(I))P=I,O={};else{O=I,P=O.name;var z=O.ordinalMeta;O.ordinalMeta=null,O=oe({},O),O.ordinalMeta=z,R=O.dimsDef,L=O.otherDims,O.name=O.coordDim=O.coordDimIndex=O.dimsDef=O.otherDims=null}var F=f.get(P);if(F!==!1){if(F=Yt(F),!F.length)for(var H=0;H<(R&&R.length||1);H++){for(;g<o&&v(g).coordDim!=null;)g++;g<o&&F.push(g++)}V(F,function(q,$){var X=v(q);if(l&&O.type!=null&&(X.type=O.type),y(Ve(X,O),P,$),X.name==null&&R){var B=R[$];!Ge(B)&&(B={name:B}),X.name=X.displayName=B.name,X.defaultTooltip=B.defaultTooltip}L&&Ve(X.otherDims,L)})}});function y(I,P,R){QH.get(P)!=null?I.otherDims[P]=R:(I.coordDim=P,I.coordDimIndex=R,i.set(P,!0))}var x=t.generateCoord,S=t.generateCoordCount,b=S!=null;S=x?S||1:0;var w=x||"value";function T(I){I.name==null&&(I.name=I.coordDim)}if(s)V(a,function(I){T(I)}),a.sort(function(I,P){return I.storeDimIndex-P.storeDimIndex});else for(var C=0;C<o;C++){var A=v(C),k=A.coordDim;k==null&&(A.coordDim=exe(w,i,b),A.coordDimIndex=0,(!x||S<=0)&&(A.isExtraCoord=!0),S--),T(A),A.type==null&&(rW(e,C)===an.Must||A.isExtraCoord&&(A.otherDims.itemName!=null||A.otherDims.seriesName!=null))&&(A.type="ordinal")}return Q1e(a),new sj({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function Q1e(e){for(var t=Oe(),r=0;r<e.length;r++){var n=e[r],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function J1e(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return V(t,function(a){var o;Ge(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function exe(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 txe=function(){function e(t){this.coordSysDims=[],this.axisMap=Oe(),this.categoryAxisMap=Oe(),this.coordSysName=t}return e}();function rxe(e){var t=e.get("coordinateSystem"),r=new txe(t),n=nxe[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var nxe={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",Rr).models[0],a=e.getReferringComponents("yAxis",Rr).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),wf(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),wf(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",Rr).models[0];t.coordSysDims=["single"],r.set("single",i),wf(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",Rr).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),wf(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),wf(o)&&(n.set("angle",o),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,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();V(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),wf(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function wf(e){return e.get("type")==="category"}function ixe(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;axe(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if(V(a,function(S,b){we(S)&&(a[b]=S={name:S}),l&&!S.isExtraCoord&&(!n&&!u&&S.ordinalMeta&&(u=S),!c&&S.type!=="ordinal"&&S.type!=="time"&&(!i||i===S.coordDim)&&(c=S))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,v=c.type,g=0;V(a,function(S){S.coordDim===h&&g++});var y={name:f,coordDim:h,coordDimIndex:g,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},x={name:d,coordDim:d,coordDimIndex:g+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(d,v),x.storeDimIndex=s.ensureCalculationDimension(f,v)),o.appendCalculationDimension(y),o.appendCalculationDimension(x)):(a.push(y),a.push(x))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:d,stackResultDimension:f}}function axe(e){return!lj(e.schema)}function Ml(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function dj(e,t){return Ml(e,t)?e.getCalculationInfo("stackResultDimension"):t}function oxe(e,t){var r=e.get("coordinateSystem"),n=Og.get(r),i;return t&&t.coordSysDims&&(i=de(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=G1(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function sxe(e,t,r){var n,i;return r&&V(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function xs(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=sI(e)):(i=n.getSource(),a=i.sourceFormat===la);var o=rxe(t),s=oxe(t,o),l=r.useEncodeDefaulter,u=Be(l)?l:l?Je(tW,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=zg(i,c),d=sxe(f.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(f),v=ixe(t,{schema:f,store:h}),g=new On(f,t);g.setCalculationInfo(v);var y=d!=null&&lxe(i)?function(x,S,b,w){return w===d?b:this.defaultDimValueGetter(x,S,b,w)}:null;return g.hasItemOption=!1,g.initData(a?i:h,null,y),g}function lxe(e){if(e.sourceFormat===la){var t=uxe(e.data||[]);return!ue(Ld(t))}}function uxe(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var Eo=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}();rS(Eo);var cxe=0,dA=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++cxe}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&de(n,fxe);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(!we(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=Oe(this.categories))},e}();function fxe(e){return Ge(e)&&e.value!=null?e.value:e+""}function hA(e){return e.type==="interval"||e.type==="log"}function dxe(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=VG(a/t);r!=null&&o<r&&(o=i.interval=r),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=hj(o),l=i.niceTickExtent=[br(Math.ceil(e[0]/o)*o,s),br(Math.floor(e[1]/o)*o,s)];return hxe(l,e),i}function pC(e){var t=Math.pow(10,Lk(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,br(r*t)}function hj(e){return lo(e)+2}function Iz(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function hxe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Iz(e,0,t),Iz(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function wS(e,t){return e>=t[0]&&e<=t[1]}function CS(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function TS(e,t){return e*(t[1]-t[0])+t[0]}var AS=function(e){J(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new dA({})),ue(i)&&(i=new dA({categories:de(i,function(a){return Ge(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:we(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),wS(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),CS(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(TS(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=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o<l;++o){var u=n[o];i[o]=u,a[u]=o}for(var c=0;o<s;++o){for(;a[c]!=null;)c++;i.push(c),a[c]=o}},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}(Eo);Eo.registerClass(AS);var bu=br,ds=function(e){J(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 wS(r,this._extent)},t.prototype.normalize=function(r){return CS(r,this._extent)},t.prototype.scale=function(r){return TS(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=hj(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]<a[0]&&(r?s.push({value:bu(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=bu(u+n,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(r?s.push({value:bu(c+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<n.length;o++){for(var s=n[o],l=n[o-1],u=0,c=[],f=s.value-l.value,d=f/r;u<r-1;){var h=bu(l.value+(u+1)*d);h>a[0]&&h<a[1]&&c.push(h),u++}i.push(c)}return i},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=lo(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=bu(r.value,i,!0);return UH(a)},t.prototype.calcNiceTicks=function(r,n,i){r=r||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=dxe(a,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 a=n[1]-n[0];isFinite(a)||(n[0]=0,n[1]=1),this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval);var o=this._interval;r.fixMin||(n[0]=bu(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=bu(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(Eo);Eo.registerClass(ds);var pj=typeof Float32Array<"u",pxe=pj?Float32Array:Array;function co(e){return ue(e)?pj?new Float32Array(e):e:new pxe(e)}var pA="__ec_stack_";function vj(e){return e.get("stack")||pA+e.seriesIndex}function yI(e){return e.dim+e.index}function vxe(e){var t=[],r=e.axis,n="axis0";if(r.type==="category"){for(var i=r.getBandWidth(),a=0;a<e.count;a++)t.push(Ve({bandWidth:i,axisKey:n,stackId:pA+a},e));for(var o=yj(t),s=[],a=0;a<e.count;a++){var l=o[n][pA+a];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function gj(e,t){var r=[];return t.eachSeriesByType(e,function(n){bj(n)&&r.push(n)}),r}function gxe(e){var t={};V(e,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,h=f.getDimensionIndex(f.mapDimension(c.dim)),v=f.getStore(),g=0,y=v.count();g<y;++g){var x=v.get(h,g);t[d]?t[d].push(x):t[d]=[x]}});var r={};for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];if(i){i.sort(function(l,u){return l-u});for(var a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function mj(e){var t=gxe(e),r=[];return V(e,function(n){var i=n.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=t[l],c=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var v=xe(n.get("barWidth"),s),g=xe(n.get("barMaxWidth"),s),y=xe(n.get("barMinWidth")||(_j(n)?.5:1),s),x=n.get("barGap"),S=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:v,barMaxWidth:g,barMinWidth:y,barGap:x,barCategoryGap:S,axisKey:yI(a),stackId:vj(n)})}),yj(r)}function yj(e){var t={};V(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=n.barMaxWidth;f&&(l[u].maxWidth=f);var d=n.barMinWidth;d&&(l[u].minWidth=d);var h=n.barGap;h!=null&&(s.gap=h);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});var r={};return V(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=St(a).length;s=Math.max(35-l*4,15)+"%"}var u=xe(s,o),c=xe(n.gap,1),f=n.remainedWidth,d=n.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),V(a,function(x){var S=x.maxWidth,b=x.minWidth;if(x.width){var w=x.width;S&&(w=Math.min(w,S)),b&&(w=Math.max(w,b)),x.width=w,f-=w+c*w,d--}else{var w=h;S&&S<w&&(w=Math.min(S,f)),b&&b>w&&(w=b),w!==h&&(x.width=w,f-=w+c*w,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var v=0,g;V(a,function(x,S){x.width||(x.width=h),g=x,v+=x.width*(1+c)}),g&&(v-=g.width*c);var y=-v/2;V(a,function(x,S){r[i][S]=r[i][S]||{bandWidth:o,offset:y,width:x.width},y+=x.width*(1+c)})}),r}function mxe(e,t,r){if(e&&t){var n=e[yI(t)];return n}}function xj(e,t){var r=gj(e,t),n=mj(r);V(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=vj(i),u=n[yI(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function Sj(e){return{seriesType:e,plan:Hd(),reset:function(t){if(bj(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),f=Ml(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=yxe(i,a),v=_j(t),g=t.get("barMinHeight")||0,y=c&&r.getDimensionIndex(c),x=r.getLayout("size"),S=r.getLayout("offset");return{progress:function(b,w){for(var T=b.count,C=v&&co(T*3),A=v&&l&&co(T*3),k=v&&co(T),I=n.master.getRect(),P=d?I.width:I.height,R,L=w.getStore(),O=0;(R=b.next())!=null;){var z=L.get(f?y:o,R),F=L.get(s,R),H=h,q=void 0;f&&(q=+z-L.get(o,R));var $=void 0,X=void 0,B=void 0,Y=void 0;if(d){var Z=n.dataToPoint([z,F]);if(f){var j=n.dataToPoint([q,F]);H=j[0]}$=H,X=Z[1]+S,B=Z[0]-H,Y=x,Math.abs(B)<g&&(B=(B<0?-1:1)*g)}else{var Z=n.dataToPoint([F,z]);if(f){var j=n.dataToPoint([F,q]);H=j[1]}$=Z[0]+S,X=H,B=x,Y=Z[1]-H,Math.abs(Y)<g&&(Y=(Y<=0?-1:1)*g)}v?(C[O]=$,C[O+1]=X,C[O+2]=d?B:Y,A&&(A[O]=d?I.x:$,A[O+1]=d?X:I.y,A[O+2]=P),k[R]=R):w.setItemLayout(R,{x:$,y:X,width:B,height:Y}),O+=3}v&&w.setLayout({largePoints:C,largeDataIndices:k,largeBackgroundPoints:A,valueAxisHorizontal:d})}}}}}}function bj(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function _j(e){return e.pipelineContext&&e.pipelineContext.large}function yxe(e,t){var r=t.model.get("startValue");return r||(r=0),t.toGlobalCoord(t.dataToCoord(t.type==="log"?r>0?r:1:r))}var xxe=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},xI=function(e){J(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 hS(r.value,S5[Qme(td(this._minLevelUnit))]||S5.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return Jme(r,n,i,o,a)},t.prototype.getTicks=function(){var r=this._interval,n=this._extent,i=[];if(!r)return i;i.push({value:n[0],level:0});var a=this.getSetting("useUTC"),o=Axe(this._minLevelUnit,this._approxInterval,a,n);return i=i.concat(o),i.push({value:n[1],level:0}),i},t.prototype.calcNiceExtent=function(r){var n=this._extent;if(n[0]===n[1]&&(n[0]-=Ki,n[1]+=Ki),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]-Ki}this.calcNiceTicks(r.splitNumber,r.minInterval,r.maxInterval)},t.prototype.calcNiceTicks=function(r,n,i){r=r||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/r,n!=null&&this._approxInterval<n&&(this._approxInterval=n),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=Jy.length,l=Math.min(xxe(Jy,this._approxInterval,0,s),s-1);this._interval=Jy[l][1],this._minLevelUnit=Jy[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return Dt(r)?r:+Mo(r)},t.prototype.contain=function(r){return wS(this.parse(r),this._extent)},t.prototype.normalize=function(r){return CS(this.parse(r),this._extent)},t.prototype.scale=function(r){return TS(r,this._extent)},t.type="time",t}(ds),Jy=[["second",Qk],["minute",Jk],["hour",vv],["quarter-day",vv*6],["half-day",vv*12],["day",Ki*1.2],["half-week",Ki*3.5],["week",Ki*7],["month",Ki*31],["quarter",Ki*95],["half-year",x5/2],["year",x5]];function Sxe(e,t,r,n){var i=Mo(t),a=Mo(r),o=function(v){return b5(i,v,n)===b5(a,v,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&o("second")},h=function(){return d()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return h()}}function bxe(e,t){return e/=Ki,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function _xe(e){var t=30*Ki;return e/=t,e>6?6:e>3?3:e>2?2:1}function wxe(e){return e/=vv,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Pz(e,t){return e/=t?Jk:Qk,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function Cxe(e){return VG(e)}function Txe(e,t,r){var n=new Date(e);switch(td(t)){case"year":case"month":n[VH(r)](0);case"day":n[$H(r)](1);case"hour":n[GH(r)](0);case"minute":n[HH(r)](0);case"second":n[WH(r)](0),n[jH(r)](0)}return n.getTime()}function Axe(e,t,r,n){var i=1e4,a=BH,o=0;function s(P,R,L,O,z,F,H){for(var q=new Date(R),$=R,X=q[O]();$<L&&$<=n[1];)H.push({value:$}),X+=P,q[z](X),$=q.getTime();H.push({value:$,notAdd:!0})}function l(P,R,L){var O=[],z=!R.length;if(!Sxe(td(P),n[0],n[1],r)){z&&(R=[{value:Txe(new Date(n[0]),P,r)},{value:n[1]}]);for(var F=0;F<R.length-1;F++){var H=R[F].value,q=R[F+1].value;if(H!==q){var $=void 0,X=void 0,B=void 0,Y=!1;switch(P){case"year":$=Math.max(1,Math.round(t/Ki/365)),X=eI(r),B=eye(r);break;case"half-year":case"quarter":case"month":$=_xe(t),X=rd(r),B=VH(r);break;case"week":case"half-week":case"day":$=bxe(t),X=pS(r),B=$H(r),Y=!0;break;case"half-day":case"quarter-day":case"hour":$=wxe(t),X=Uv(r),B=GH(r);break;case"minute":$=Pz(t,!0),X=vS(r),B=HH(r);break;case"second":$=Pz(t,!1),X=gS(r),B=WH(r);break;case"millisecond":$=Cxe(t),X=mS(r),B=jH(r);break}s($,H,q,X,B,Y,O),P==="year"&&L.length>1&&F===0&&L.unshift({value:L[0].value-$})}}for(var F=0;F<O.length;F++)L.push(O[F]);return O}}for(var u=[],c=[],f=0,d=0,h=0;h<a.length&&o++<i;++h){var v=td(a[h]);if(Kme(a[h])){l(a[h],u[u.length-1]||[],c);var g=a[h+1]?td(a[h+1]):null;if(v!==g){if(c.length){d=f,c.sort(function(P,R){return P.value-R.value});for(var y=[],x=0;x<c.length;++x){var S=c[x].value;(x===0||c[x-1].value!==S)&&(y.push(c[x]),S>=n[0]&&S<=n[1]&&f++)}var b=(n[1]-n[0])/t;if(f>b*1.5&&d>b/1.5||(u.push(y),f>b||e===a[h]))break}c=[]}}}for(var w=jt(de(u,function(P){return jt(P,function(R){return R.value>=n[0]&&R.value<=n[1]&&!R.notAdd})}),function(P){return P.length>0}),T=[],C=w.length-1,h=0;h<w.length;++h)for(var A=w[h],k=0;k<A.length;++k)T.push({value:A[k].value,level:C-h});T.sort(function(P,R){return P.value-R.value});for(var I=[],h=0;h<T.length;++h)(h===0||T[h].value!==T[h-1].value)&&I.push(T[h]);return I}Eo.registerClass(xI);var Dz=Eo.prototype,yv=ds.prototype,Mxe=br,kxe=Math.floor,Ixe=Math.ceil,e0=Math.pow,xa=Math.log,SI=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="log",r.base=10,r._originalScale=new ds,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=yv.getTicks.call(this,r);return de(o,function(s){var l=s.value,u=br(e0(this.base,l));return u=l===i[0]&&this._fixMin?t0(u,a[0]):u,u=l===i[1]&&this._fixMax?t0(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var i=xa(this.base);r=xa(Math.max(0,r))/i,n=xa(Math.max(0,n))/i,yv.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=Dz.getExtent.call(this);n[0]=e0(r,n[0]),n[1]=e0(r,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=t0(n[0],a[0])),this._fixMax&&(n[1]=t0(n[1],a[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=xa(r[0])/xa(n),r[1]=xa(r[1])/xa(n),Dz.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 a=Dve(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[br(Ixe(n[0]/a)*a),br(kxe(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){yv.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=xa(r)/xa(this.base),wS(r,this._extent)},t.prototype.normalize=function(r){return r=xa(r)/xa(this.base),CS(r,this._extent)},t.prototype.scale=function(r){return r=TS(r,this._extent),e0(this.base,r)},t.type="log",t}(Eo),wj=SI.prototype;wj.getMinorTicks=yv.getMinorTicks;wj.getLabel=yv.getLabel;function t0(e,t){return Mxe(e,lo(t))}Eo.registerClass(SI);var Pxe=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 a=r.get("min",!0);a==null&&(a=r.get("startValue",!0));var o=this._modelMinRaw=a;Be(o)?this._modelMinNum=r0(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=r0(t,o));var s=this._modelMaxRaw=r.get("max",!0);if(Be(s)?this._modelMaxNum=r0(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=r0(t,s)),i)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),u=ue(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[Oa(u[0],1),Oa(u[1],1)]}},e.prototype.calculate=function(){var t=this._isOrdinal,r=this._dataMin,n=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=t?null:n-r||Math.abs(r),s=this._modelMinRaw==="dataMin"?r:this._modelMinNum,l=this._modelMaxRaw==="dataMax"?n:this._modelMaxNum,u=s!=null,c=l!=null;s==null&&(s=t?i?0:NaN:r-a[0]*o),l==null&&(l=t?i?i-1:NaN:n+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=zv(s)||zv(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){this[Rxe[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=Dxe[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),Dxe={min:"_determinedMin",max:"_determinedMax"},Rxe={min:"_dataMin",max:"_dataMax"};function Cj(e,t,r){var n=e.rawExtentInfo;return n||(n=new Pxe(e,t,r),e.rawExtentInfo=n,n)}function r0(e,t){return t==null?null:zv(t)?NaN:e.parse(t)}function Tj(e,t){var r=e.type,n=Cj(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=gj("bar",o),l=!1;if(V(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=mj(s),c=Exe(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function Exe(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=mxe(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;V(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;V(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,f=1-(s+l)/a,d=c/f-c;return t+=d*(l/u),e-=d*(s/u),{min:e,max:t}}function bd(e,t){var r=t,n=Tj(e,r),i=n.extent,a=r.get("splitNumber");e instanceof SI&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,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 MS(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new AS({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new xI({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Eo.getClass(t)||ds)}}function Lxe(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function Ud(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,a){return e.scale.getFormattedLabel(i,a,n)}}(t):we(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):Be(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(bI(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function bI(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function Oxe(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof AS?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=Ud(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var f=n?n[c]:{value:a[0]+c},d=s(f,c),h=o.getTextRect(d),v=Nxe(h,o.get("rotate")||0);l?l.union(v):l=v}return l}}function Nxe(e,t){var r=t*Math.PI/180,n=e.width,i=e.height,a=n*Math.abs(Math.cos(r))+Math.abs(i*Math.sin(r)),o=n*Math.abs(Math.sin(r))+Math.abs(i*Math.cos(r)),s=new nt(e.x,e.y,a,o);return s}function _I(e){var t=e.get("interval");return t??"auto"}function Aj(e){return e.type==="category"&&_I(e.getLabelModel())===0}function H1(e,t){var r={};return V(e.mapDimensionsAll(t),function(n){r[dj(e,n)]=!0}),St(r)}function zxe(e,t,r){t&&V(H1(t,r),function(n){var i=t.getApproximateExtent(n);i[0]<e[0]&&(e[0]=i[0]),i[1]>e[1]&&(e[1]=i[1])})}var Bg=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),Bxe=1e-8;function Rz(e,t){return Math.abs(e-t)<Bxe}function Bu(e,t,r){var n=0,i=e[0];if(!i)return!1;for(var a=1;a<e.length;a++){var o=e[a];n+=Xo(i[0],i[1],o[0],o[1],t,r),i=o}var s=e[0];return(!Rz(i[0],s[0])||!Rz(i[1],s[1]))&&(n+=Xo(i[0],i[1],s[0],s[1],t,r)),n!==0}var Fxe=[];function vC(e,t){for(var r=0;r<e.length;r++)un(e[r],e[r],t)}function Ez(e,t,r,n){for(var i=0;i<e.length;i++){var a=e[i];n&&(a=n.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(ol(t,t,a),sl(r,r,a))}}function Vxe(e){for(var t=0,r=0,n=0,i=e.length,a=e[i-1][0],o=e[i-1][1],s=0;s<i;s++){var l=e[s][0],u=e[s][1],c=a*u-l*o;t+=c,r+=(a+l)*c,n+=(o+u)*c,a=l,o=u}return t?[r/t/3,n/t/3,t]:[e[0][0]||0,e[0][1]||0]}var Mj=function(){function e(t){this.name=t}return e.prototype.setCenter=function(t){this._center=t},e.prototype.getCenter=function(){var t=this._center;return t||(t=this._center=this.calcCenter()),t},e}(),Lz=function(){function e(t,r){this.type="polygon",this.exterior=t,this.interiors=r}return e}(),Oz=function(){function e(t){this.type="linestring",this.points=t}return e}(),kj=function(e){J(t,e);function t(r,n,i){var a=e.call(this,r)||this;return a.type="geoJSON",a.geometries=n,a._center=i&&[i[0],i[1]],a}return t.prototype.calcCenter=function(){for(var r=this.geometries,n,i=0,a=0;a<r.length;a++){var o=r[a],s=o.exterior,l=s&&s.length;l>i&&(n=o,i=l)}if(n)return Vxe(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return V(o,function(s){s.type==="polygon"?Ez(s.exterior,i,a,r):V(s.points,function(l){Ez(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new nt(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[1]))return!1;e:for(var a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(Bu(l,r[0],r[1])){for(var c=0;c<(u?u.length:0);c++)if(Bu(u[c],r[0],r[1]))continue e;return!0}}}return!1},t.prototype.transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new nt(r,n,i,a),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var d=c[f];d.type==="polygon"?(vC(d.exterior,u),V(d.interiors,function(h){vC(h,u)})):V(d.points,function(h){vC(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.height/2]},t.prototype.cloneShallow=function(r){r==null&&(r=this.name);var n=new t(r,this.geometries,this._center);return n._rect=this._rect,n.transformTo=null,n},t}(Mj),$xe=function(e){J(t,e);function t(r,n){var i=e.call(this,r)||this;return i.type="geoSVG",i._elOnlyForCalculate=n,i}return t.prototype.calcCenter=function(){for(var r=this._elOnlyForCalculate,n=r.getBoundingRect(),i=[n.x+n.width/2,n.y+n.height/2],a=Qx(Fxe),o=r;o&&!o.isGeoSVGGraphicRoot;)es(a,o.getLocalTransform(),a),o=o.parent;return Ed(a,a),un(i,i,a),i},t}(Mj);function Gxe(e){if(!e.UTF8Encoding)return e;var t=e,r=t.UTF8Scale;r==null&&(r=1024);var n=t.features;return V(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=Ij(s,o,r);break;case"Polygon":gC(s,o,r);break;case"MultiLineString":gC(s,o,r);break;case"MultiPolygon":V(s,function(l,u){return gC(l,o[u],r)})}}),t.UTF8Encoding=!1,t}function gC(e,t,r){for(var n=0;n<e.length;n++)e[n]=Ij(e[n],t[n],r)}function Ij(e,t,r){for(var n=[],i=t[0],a=t[1],o=0;o<e.length;o+=2){var s=e.charCodeAt(o)-64,l=e.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,n.push([s/r,l/r])}return n}function Hxe(e,t){return e=Gxe(e),de(jt(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new Lz(o[0],o.slice(1)));break;case"MultiPolygon":V(i.coordinates,function(l){l[0]&&a.push(new Lz(l[0],l.slice(1)))});break;case"LineString":a.push(new Oz([i.coordinates]));break;case"MultiLineString":a.push(new Oz(i.coordinates))}var s=new kj(n[t||"name"],a,n.cp);return s.properties=n,s})}var Qv=Tt();function Pj(e,t){var r=de(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 Wxe(e){var t=e.getLabelModel().get("customValues");if(t){var r=Ud(e);return{labels:Pj(e,t).map(function(n){var i={value:n};return{formattedLabel:r(i),rawLabel:e.scale.getLabel(i),tickValue:n}})}}return e.type==="category"?Uxe(e):qxe(e)}function jxe(e,t){var r=e.getTickModel().get("customValues");return r?{ticks:Pj(e,r)}:e.type==="category"?Yxe(e,t):{ticks:de(e.scale.getTicks(),function(n){return n.value})}}function Uxe(e){var t=e.getLabelModel(),r=Dj(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function Dj(e,t){var r=Rj(e,"labels"),n=_I(t),i=Ej(r,n);if(i)return i;var a,o;return Be(n)?a=Nj(e,n):(o=n==="auto"?Xxe(e):n,a=Oj(e,o)),Lj(r,n,{labels:a,labelCategoryInterval:o})}function Yxe(e,t){var r=Rj(e,"ticks"),n=_I(t),i=Ej(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),Be(n))a=Nj(e,n,!0);else if(n==="auto"){var s=Dj(e,e.getLabelModel());o=s.labelCategoryInterval,a=de(s.labels,function(l){return l.tickValue})}else o=n,a=Oj(e,o,!0);return Lj(r,n,{ticks:a,tickCategoryInterval:o})}function qxe(e){var t=e.scale.getTicks(),r=Ud(e);return{labels:de(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function Rj(e,t){return Qv(e)[t]||(Qv(e)[t]=[])}function Ej(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function Lj(e,t,r){return e.push({key:t,value:r}),r}function Xxe(e){var t=Qv(e).autoInterval;return t??(Qv(e).autoInterval=e.calculateCategoryInterval())}function Zxe(e){var t=Kxe(e),r=Ud(e),n=(t.axisRotate-t.labelRotate)/180*Math.PI,i=e.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),f=Math.abs(u*Math.sin(n)),d=0,h=0;l<=a[1];l+=s){var v=0,g=0,y=Mg(r({value:l}),t.font,"center","top");v=y.width*1.3,g=y.height*1.3,d=Math.max(d,v,7),h=Math.max(h,g,7)}var x=d/c,S=h/f;isNaN(x)&&(x=1/0),isNaN(S)&&(S=1/0);var b=Math.max(0,Math.floor(Math.min(x,S))),w=Qv(e.model),T=e.getExtent(),C=w.lastAutoInterval,A=w.lastTickCount;return C!=null&&A!=null&&Math.abs(C-b)<=1&&Math.abs(A-o)<=1&&C>b&&w.axisExtent0===T[0]&&w.axisExtent1===T[1]?b=C:(w.lastTickCount=o,w.lastAutoInterval=b,w.axisExtent0=T[0],w.axisExtent1=T[1]),b}function Kxe(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 Oj(e,t,r){var n=Ud(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=Aj(e),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;d&&u!==a[0]&&g(a[0]);for(var v=u;v<=a[1];v+=l)g(v);h&&v-l!==a[1]&&g(a[1]);function g(y){var x={value:y};s.push(r?y:{formattedLabel:n(x),rawLabel:i.getLabel(x),tickValue:y})}return s}function Nj(e,t,r){var n=e.scale,i=Ud(e),a=[];return V(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var Nz=[0,1],Fa=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 BG(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(),zz(n,i.count())),$t(t,Nz,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),zz(n,i.count()));var a=$t(t,n,Nz,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=jxe(this,r),i=n.ticks,a=de(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return Qxe(this,a,o,t.clamp),a},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=de(n,function(a){return de(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return Wxe(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 Zxe(this)},e}();function zz(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function Qxe(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1]};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;V(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s},t.push(o)}var f=a[0]>a[1];d(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&d(a[0],t[0].coord)&&t.unshift({coord:a[0]}),d(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&d(o.coord,a[1])&&t.push({coord:a[1]});function d(h,v){return h=br(h),v=br(v),f?h>v:h<v}}var yp=Math.PI*2,_u=ko.CMD,Jxe=["top","right","bottom","left"];function eSe(e,t,r,n,i){var a=r.width,o=r.height;switch(e){case"top":n.set(r.x+a/2,r.y-t),i.set(0,-1);break;case"bottom":n.set(r.x+a/2,r.y+o+t),i.set(0,1);break;case"left":n.set(r.x-t,r.y+o/2),i.set(-1,0);break;case"right":n.set(r.x+a+t,r.y+o/2),i.set(1,0);break}}function tSe(e,t,r,n,i,a,o,s,l){o-=e,s-=t;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*r+e,f=s*r+t;if(Math.abs(n-i)%yp<1e-4)return l[0]=c,l[1]=f,u-r;if(a){var d=n;n=bi(i),i=bi(d)}else n=bi(n),i=bi(i);n>i&&(i+=yp);var h=Math.atan2(s,o);if(h<0&&(h+=yp),h>=n&&h<=i||h+yp>=n&&h+yp<=i)return l[0]=c,l[1]=f,u-r;var v=r*Math.cos(n)+e,g=r*Math.sin(n)+t,y=r*Math.cos(i)+e,x=r*Math.sin(i)+t,S=(v-o)*(v-o)+(g-s)*(g-s),b=(y-o)*(y-o)+(x-s)*(x-s);return S<b?(l[0]=v,l[1]=g,Math.sqrt(S)):(l[0]=y,l[1]=x,Math.sqrt(b))}function W1(e,t,r,n,i,a,o,s){var l=i-e,u=a-t,c=r-e,f=n-t,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var h=l*c+u*f,v=h/d;s&&(v=Math.min(Math.max(v,0),1)),v*=d;var g=o[0]=e+v*c,y=o[1]=t+v*f;return Math.sqrt((g-i)*(g-i)+(y-a)*(y-a))}function zj(e,t,r,n,i,a,o){r<0&&(e=e+r,r=-r),n<0&&(t=t+n,n=-n);var s=e+r,l=t+n,u=o[0]=Math.min(Math.max(i,e),s),c=o[1]=Math.min(Math.max(a,t),l);return Math.sqrt((u-i)*(u-i)+(c-a)*(c-a))}var wa=[];function rSe(e,t,r){var n=zj(t.x,t.y,t.width,t.height,e.x,e.y,wa);return r.set(wa[0],wa[1]),n}function nSe(e,t,r){for(var n=0,i=0,a=0,o=0,s,l,u=1/0,c=t.data,f=e.x,d=e.y,h=0;h<c.length;){var v=c[h++];h===1&&(n=c[h],i=c[h+1],a=n,o=i);var g=u;switch(v){case _u.M:a=c[h++],o=c[h++],n=a,i=o;break;case _u.L:g=W1(n,i,c[h],c[h+1],f,d,wa,!0),n=c[h++],i=c[h++];break;case _u.C:g=SG(n,i,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],f,d,wa),n=c[h++],i=c[h++];break;case _u.Q:g=_G(n,i,c[h++],c[h++],c[h],c[h+1],f,d,wa),n=c[h++],i=c[h++];break;case _u.A:var y=c[h++],x=c[h++],S=c[h++],b=c[h++],w=c[h++],T=c[h++];h+=1;var C=!!(1-c[h++]);s=Math.cos(w)*S+y,l=Math.sin(w)*b+x,h<=1&&(a=s,o=l);var A=(f-y)*b/S+y;g=tSe(y,x,b,w,w+T,C,A,d,wa),n=Math.cos(w+T)*S+y,i=Math.sin(w+T)*b+x;break;case _u.R:a=n=c[h++],o=i=c[h++];var k=c[h++],I=c[h++];g=zj(a,o,k,I,f,d,wa);break;case _u.Z:g=W1(n,i,a,o,f,d,wa,!0),n=a,i=o;break}g<u&&(u=g,r.set(wa[0],wa[1]))}return u}var Ma=new et,ir=new et,Ar=new et,fo=new et,so=new et;function Bz(e,t){if(e){var r=e.getTextGuideLine(),n=e.getTextContent();if(n&&r){var i=e.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||Jxe,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,c=e.getComputedTransform(),f=c&&Ed([],c),d=t.get("length2")||0;u&&Ar.copy(u);for(var h=0;h<o.length;h++){var v=o[h];eSe(v,0,s,Ma,fo),et.scaleAndAdd(ir,Ma,fo,d),ir.transform(f);var g=e.getBoundingRect(),y=u?u.distance(ir):e instanceof vt?nSe(ir,e.path,Ar):rSe(ir,g,Ar);y<l&&(l=y,ir.transform(c),Ar.transform(c),Ar.toArray(a[0]),ir.toArray(a[1]),Ma.toArray(a[2]))}Bj(a,t.get("minTurnAngle")),r.setShape({points:a})}}}var j1=[],En=new et;function Bj(e,t){if(t<=180&&t>0){t=t/180*Math.PI,Ma.fromArray(e[0]),ir.fromArray(e[1]),Ar.fromArray(e[2]),et.sub(fo,Ma,ir),et.sub(so,Ar,ir);var r=fo.len(),n=so.len();if(!(r<.001||n<.001)){fo.scale(1/r),so.scale(1/n);var i=fo.dot(so),a=Math.cos(t);if(a<i){var o=W1(ir.x,ir.y,Ar.x,Ar.y,Ma.x,Ma.y,j1,!1);En.fromArray(j1),En.scaleAndAdd(so,o/Math.tan(Math.PI-t));var s=Ar.x!==ir.x?(En.x-ir.x)/(Ar.x-ir.x):(En.y-ir.y)/(Ar.y-ir.y);if(isNaN(s))return;s<0?et.copy(En,ir):s>1&&et.copy(En,Ar),En.toArray(e[1])}}}}function iSe(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Ma.fromArray(e[0]),ir.fromArray(e[1]),Ar.fromArray(e[2]),et.sub(fo,ir,Ma),et.sub(so,Ar,ir);var n=fo.len(),i=so.len();if(!(n<.001||i<.001)){fo.scale(1/n),so.scale(1/i);var a=fo.dot(t),o=Math.cos(r);if(a<o){var s=W1(ir.x,ir.y,Ar.x,Ar.y,Ma.x,Ma.y,j1,!1);En.fromArray(j1);var l=Math.PI/2,u=Math.acos(so.dot(t)),c=l+u-r;if(c>=l)et.copy(En,Ar);else{En.scaleAndAdd(so,s/Math.tan(Math.PI/2-c));var f=Ar.x!==ir.x?(En.x-ir.x)/(Ar.x-ir.x):(En.y-ir.y)/(Ar.y-ir.y);if(isNaN(f))return;f<0?et.copy(En,ir):f>1&&et.copy(En,Ar)}En.toArray(e[1])}}}}function mC(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function aSe(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=al(n[0],n[1]),a=al(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=L0([],n[1],n[0],o/i),l=L0([],n[1],n[2],o/a),u=L0([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c<n.length;c++)e.lineTo(n[c][0],n[c][1])}function wI(e,t,r){var n=e.getTextGuideLine(),i=e.getTextContent();if(!i){n&&e.removeTextGuideLine();return}for(var a=t.normal,o=a.get("show"),s=i.ignore,l=0;l<Hv.length;l++){var u=Hv[l],c=t[u],f=u==="normal";if(c){var d=c.get("show"),h=f?s:Qe(i.states[u]&&i.states[u].ignore,s);if(h||!Qe(d,o)){var v=f?n:n&&n.states[u];v&&(v.ignore=!0),n&&mC(n,!0,u,c);continue}n||(n=new Gn,e.setTextGuideLine(n),!f&&(s||!o)&&mC(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),mC(n,!1,u,c)}}if(n){Ve(n.style,r),n.style.fill=null;var g=a.get("showAbove"),y=e.textGuideLineConfig=e.textGuideLineConfig||{};y.showAbove=g||!1,n.buildPath=aSe}}function CI(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<Bn.length;n++){var i=Bn[n];r[i]=e.getModel([i,t])}return r}function Fj(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];if(!n.defaultAttr.ignore){var i=n.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new k1(o,a):null;t.push({label:i,labelLine:n.labelLine,rect:u,localRect:o,obb:c,priority:n.priority,defaultAttr:n.defaultAttr,layoutOption:n.computedLayoutOption,axisAligned:s,transform:a})}}return t}function Vj(e,t,r,n,i,a){var o=e.length;if(o<2)return;e.sort(function(C,A){return C.rect[t]-A.rect[t]});for(var s=0,l,u=!1,c=0;c<o;c++){var f=e[c],d=f.rect;l=d[t]-s,l<0&&(d[t]-=l,f.label[t]-=l,u=!0),s=d[t]+d[r]}var h=e[0],v=e[o-1],g,y;x(),g<0&&w(-g,.8),y<0&&w(y,.8),x(),S(g,y,1),S(y,g,-1),x(),g<0&&T(-g),y<0&&T(y);function x(){g=h.rect[t]-n,y=i-v.rect[t]-v.rect[r]}function S(C,A,k){if(C<0){var I=Math.min(A,-C);if(I>0){b(I*k,0,o);var P=I+C;P<0&&w(-P*k,1)}else w(-C*k,1)}}function b(C,A,k){C!==0&&(u=!0);for(var I=A;I<k;I++){var P=e[I],R=P.rect;R[t]+=C,P.label[t]+=C}}function w(C,A){for(var k=[],I=0,P=1;P<o;P++){var R=e[P-1].rect,L=Math.max(e[P].rect[t]-R[t]-R[r],0);k.push(L),I+=L}if(I){var O=Math.min(Math.abs(C)/I,A);if(C>0)for(var P=0;P<o-1;P++){var z=k[P]*O;b(z,0,P+1)}else for(var P=o-1;P>0;P--){var z=k[P-1]*O;b(-z,P,o)}}}function T(C){var A=C<0?-1:1;C=Math.abs(C);for(var k=Math.ceil(C/(o-1)),I=0;I<o-1;I++)if(A>0?b(k,0,I+1):b(-k,o-I-1,o),C-=k,C<=0)return}return u}function oSe(e,t,r,n){return Vj(e,"x","width",t,r)}function $j(e,t,r,n){return Vj(e,"y","height",t,r)}function Gj(e){var t=[];e.sort(function(g,y){return y.priority-g.priority});var r=new nt(0,0,0,0);function n(g){if(!g.ignore){var y=g.ensureState("emphasis");y.ignore==null&&(y.ignore=!1)}g.ignore=!0}for(var i=0;i<e.length;i++){var a=e[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,c=a.labelLine;r.copy(a.rect),r.width-=.1,r.height-=.1,r.x+=.05,r.y+=.05;for(var f=a.obb,d=!1,h=0;h<t.length;h++){var v=t[h];if(r.intersect(v.rect)){if(o&&v.axisAligned){d=!0;break}if(v.obb||(v.obb=new k1(v.localRect,v.transform)),f||(f=new k1(s,l)),f.intersect(v.obb)){d=!0;break}}}d?(n(u),c&&n(c)):(u.attr("ignore",a.defaultAttr.ignore),c&&c.attr("ignore",a.defaultAttr.labelGuideIgnore),t.push(a))}}function sSe(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function lSe(e,t){var r=e.label,n=t&&t.getTextGuideLine();return{dataIndex:e.dataIndex,dataType:e.dataType,seriesIndex:e.seriesModel.seriesIndex,text:e.label.style.text,rect:e.hostRect,labelRect:e.rect,align:r.style.align,verticalAlign:r.style.verticalAlign,labelLinePoints:sSe(n&&n.shape.points)}}var Fz=["align","verticalAlign","width","height","fontSize"],kn=new Ko,yC=Tt(),uSe=Tt();function n0(e,t,r){for(var n=0;n<r.length;n++){var i=r[n];t[i]!=null&&(e[i]=t[i])}}var i0=["x","y","rotation"],cSe=function(){function e(){this._labelList=[],this._chartViewList=[]}return e.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},e.prototype._addLabel=function(t,r,n,i,a){var o=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),c=i.getBoundingRect().plain();nt.applyTransform(c,c,u),u?kn.setLocalTransform(u):(kn.x=kn.y=kn.rotation=kn.originX=kn.originY=0,kn.scaleX=kn.scaleY=1),kn.rotation=bi(kn.rotation);var f=i.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var h=f.getComputedTransform();nt.applyTransform(d,d,h)}var v=d&&f.getTextGuideLine();this._labelList.push({label:i,labelLine:v,seriesModel:n,dataIndex:t,dataType:r,layoutOption:a,computedLayoutOption:null,rect:c,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:v&&v.ignore,x:kn.x,y:kn.y,scaleX:kn.scaleX,scaleY:kn.scaleY,rotation:kn.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},e.prototype.addLabelsOfSeries=function(t){var r=this;this._chartViewList.push(t);var n=t.__model,i=n.get("labelLayout");(Be(i)||St(i).length)&&t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=Ze(a);o&&!o.disableLabelLayout&&r._addLabel(s.dataIndex,s.dataType,n,o,i)})},e.prototype.updateLayoutConfig=function(t){var r=t.getWidth(),n=t.getHeight();function i(b,w){return function(){Bz(b,w)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;Be(o.layoutOption)?c=o.layoutOption(lSe(o,l)):c=o.layoutOption,c=c||{},o.computedLayoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var d=!1;if(c.x!=null?(s.x=xe(c.x,r),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=xe(c.y,n),s.setStyle("y",0),d=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:c.labelLinePoints}),d=!1)}var v=yC(s);v.needsUpdateLabelLine=d,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var g=0;g<Fz.length;g++){var y=Fz[g];s.setStyle(y,c[y]!=null?c[y]:u.style[y])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var x=o.seriesModel;if(o.dataIndex!=null){var S=o.seriesModel.getData(o.dataType);x=S.getItemModel(o.dataIndex)}s.on("drag",i(l,x.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},e.prototype.layout=function(t){var r=t.getWidth(),n=t.getHeight(),i=Fj(this._labelList),a=jt(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=jt(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});oSe(a,0,r),$j(o,0,n);var s=jt(i,function(l){return l.layoutOption.hideOverlap});Gj(s)},e.prototype.processLabelsOverall=function(){var t=this;V(this._chartViewList,function(r){var n=r.__model,i=r.ignoreLabelLineUpdate,a=n.isAnimationEnabled();r.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=yC(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),a&&t._animateLabels(o,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),i=Ze(t),a=i.dataIndex;if(n&&a!=null){var o=r.getData(i.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");wI(t,CI(s),l),Bz(t,f)}},e.prototype._animateLabels=function(t,r){var n=t.getTextContent(),i=t.getTextGuideLine();if(n&&(t.forceLabelAnimation||!n.ignore&&!n.invisible&&!t.disableLabelAnimation&&!Jf(t))){var a=yC(n),o=a.oldLayout,s=Ze(t),l=s.dataIndex,u={x:n.x,y:n.y,rotation:n.rotation},c=r.getData(s.dataType);if(o){n.attr(o);var d=t.prevStates;d&&(ft(d,"select")>=0&&n.attr(a.oldLayoutSelect),ft(d,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Lt(n,u,r,l)}else if(n.attr(u),!Bd(n).valueAnimation){var f=Qe(n.style.opacity,1);n.style.opacity=0,lr(n,{style:{opacity:f}},r,l)}if(a.oldLayout=u,n.states.select){var h=a.oldLayoutSelect={};n0(h,u,i0),n0(h,n.states.select,i0)}if(n.states.emphasis){var v=a.oldLayoutEmphasis={};n0(v,u,i0),n0(v,n.states.emphasis,i0)}EH(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=uSe(i),o=a.oldLayout,g={points:i.shape.points};o?(i.attr({shape:o}),Lt(i,{shape:g},r)):(i.setShape(g),i.style.strokePercent=0,lr(i,{style:{strokePercent:1}},r)),a.oldLayout=g}},e}(),xC=Tt();function fSe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=xC(r).labelManager;i||(i=xC(r).labelManager=new cSe),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=xC(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}var SC=Math.sin,bC=Math.cos,Hj=Math.PI,wu=Math.PI*2,dSe=180/Hj,Wj=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,r){this._add("M",t,r)},e.prototype.lineTo=function(t,r){this._add("L",t,r)},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){this._add("C",t,r,n,i,a,o)},e.prototype.quadraticCurveTo=function(t,r,n,i){this._add("Q",t,r,n,i)},e.prototype.arc=function(t,r,n,i,a,o){this.ellipse(t,r,n,n,0,i,a,o)},e.prototype.ellipse=function(t,r,n,i,a,o,s,l){var u=s-o,c=!l,f=Math.abs(u),d=cl(f-wu)||(c?u>=wu:-u>=wu),h=u>0?u%wu:u%wu+wu,v=!1;d?v=!0:cl(f)?v=!1:v=h>=Hj==!!c;var g=t+n*bC(o),y=r+i*SC(o);this._start&&this._add("M",g,y);var x=Math.round(a*dSe);if(d){var S=1/this._p,b=(c?1:-1)*(wu-S);this._add("A",n,i,x,1,+c,t+n*bC(o+b),r+i*SC(o+b)),S>.01&&this._add("A",n,i,x,0,+c,g,y)}else{var w=t+n*bC(s),T=r+i*SC(s);this._add("A",n,i,x,+v,+c,w,T)}},e.prototype.rect=function(t,r,n,i){this._add("M",t,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,n,i,a,o,s,l,u){for(var c=[],f=this._p,d=1;d<arguments.length;d++){var h=arguments[d];if(isNaN(h)){this._invalid=!0;return}c.push(Math.round(h*f)/f)}this._d.push(t+c.join(" ")),this._start=t==="Z"},e.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},e.prototype.getStr=function(){return this._str},e}(),TI="none",hSe=Math.round;function pSe(e){var t=e.fill;return t!=null&&t!==TI}function vSe(e){var t=e.stroke;return t!=null&&t!==TI}var vA=["lineCap","miterLimit","lineJoin"],gSe=de(vA,function(e){return"stroke-"+e.toLowerCase()});function mSe(e,t,r,n){var i=t.opacity==null?1:t.opacity;if(r instanceof en){e("opacity",i);return}if(pSe(t)){var a=Vv(t.fill);e("fill",a.color);var o=t.fillOpacity!=null?t.fillOpacity*a.opacity*i:a.opacity*i;o<1&&e("fill-opacity",o)}else e("fill",TI);if(vSe(t)){var s=Vv(t.stroke);e("stroke",s.color);var l=t.strokeNoScale?r.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*i:s.opacity*i,f=t.strokeFirst;if(u!==1&&e("stroke-width",u),f&&e("paint-order",f?"stroke":"fill"),c<1&&e("stroke-opacity",c),t.lineDash){var d=dI(r),h=d[0],v=d[1];h&&(v=hSe(v||0),e("stroke-dasharray",h.join(",")),(v||n)&&e("stroke-dashoffset",v))}for(var g=0;g<vA.length;g++){var y=vA[g];if(t[y]!==A1[y]){var x=t[y]||A1[y];x&&e(gSe[g],x)}}}}var jj="http://www.w3.org/2000/svg",Uj="http://www.w3.org/1999/xlink",ySe="http://www.w3.org/2000/xmlns/",xSe="http://www.w3.org/XML/1998/namespace",Vz="ecmeta_";function Yj(e){return document.createElementNS(jj,e)}function Wr(e,t,r,n,i){return{tag:e,attrs:r||{},children:n,text:i,key:t}}function SSe(e,t){var r=[];if(t)for(var n in t){var i=t[n],a=n;i!==!1&&(i!==!0&&i!=null&&(a+='="'+i+'"'),r.push(a))}return"<"+e+" "+r.join(" ")+">"}function bSe(e){return"</"+e+">"}function AI(e,t){t=t||{};var r=t.newline?`
|
190
|
-
`:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return SSe(o,s)+(o!=="style"?Jn(l):l||"")+(a?""+r+de(a,function(u){return n(u)}).join(r)+r:"")+bSe(o)}return n(e)}function _Se(e,t,r){r=r||{};var n=r.newline?`
|
191
|
-
`:"",i=" {"+n,a=n+"}",o=de(St(e),function(l){return l+i+de(St(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=de(St(t),function(l){return"@keyframes "+l+i+de(St(t[l]),function(u){return u+i+de(St(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(n)}function gA(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function $z(e,t,r,n){return Wr("svg","root",{width:e,height:t,xmlns:jj,"xmlns:xlink":Uj,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var wSe=0;function qj(){return wSe++}var Gz={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Pu="transform-origin";function CSe(e,t,r){var n=oe({},e.shape);oe(n,t),e.buildPath(r,n);var i=new Wj;return i.reset(IG(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function TSe(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[Pu]=r+"px "+n+"px")}var ASe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Xj(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function MSe(e,t,r){var n=e.shape.paths,i={},a,o;if(V(n,function(l){var u=gA(r.zrId);u.animation=!0,kS(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=St(c),h=d.length;if(h){o=d[h-1];var v=c[o];for(var g in v){var y=v[g];i[g]=i[g]||{d:""},i[g].d+=y.d||""}for(var x in f){var S=f[x].animation;S.indexOf(o)>=0&&(a=S)}}}),!!a){t.d=!1;var s=Xj(i,r);return a.replace(o,s)}}function Hz(e){return we(e)?Gz[e]?"cubic-bezier("+Gz[e]+")":Dk(e)?e:"":""}function kS(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof Uk){var s=MSe(e,t,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var c=i[u],f=[c.getMaxTime()/1e3+"s"],d=Hz(c.getClip().easing),h=c.getDelay();d?f.push(d):f.push("linear"),h&&f.push(h/1e3+"s"),c.getLoop()&&f.push("infinite");var v=f.join(" ");l[v]=l[v]||[v,[]],l[v][1].push(c)}function g(S){var b=S[1],w=b.length,T={},C={},A={},k="animation-timing-function";function I(ae,he,ve){for(var fe=ae.getTracks(),ge=ae.getMaxTime(),Re=0;Re<fe.length;Re++){var Ie=fe[Re];if(Ie.needsAnimate()){var $e=Ie.keyframes,dt=Ie.propName;if(ve&&(dt=ve(dt)),dt)for(var ct=0;ct<$e.length;ct++){var bt=$e[ct],At=Math.round(bt.time/ge*100)+"%",_t=Hz(bt.easing),st=bt.rawValue;(we(st)||Dt(st))&&(he[At]=he[At]||{},he[At][dt]=bt.rawValue,_t&&(he[At][k]=_t))}}}}for(var P=0;P<w;P++){var R=b[P],L=R.targetName;L?L==="shape"&&I(R,C):!n&&I(R,T)}for(var O in T){var z={};LG(z,e),oe(z,T[O]);var F=PG(z),H=T[O][k];A[O]=F?{transform:F}:{},TSe(A[O],z),H&&(A[O][k]=H)}var q,$=!0;for(var O in C){A[O]=A[O]||{};var X=!q,H=C[O][k];X&&(q=new ko);var B=q.len();q.reset(),A[O].d=CSe(e,C[O],q);var Y=q.len();if(!X&&B!==Y){$=!1;break}H&&(A[O][k]=H)}if(!$)for(var O in A)delete A[O].d;if(!n)for(var P=0;P<w;P++){var R=b[P],L=R.targetName;L==="style"&&I(R,A,function(fe){return ASe[fe]})}for(var Z=St(A),j=!0,re,P=1;P<Z.length;P++){var ce=Z[P-1],te=Z[P];if(A[ce][Pu]!==A[te][Pu]){j=!1;break}re=A[ce][Pu]}if(j&&re){for(var O in A)A[O][Pu]&&delete A[O][Pu];t[Pu]=re}if(jt(Z,function(ae){return St(A[ae]).length>0}).length){var pe=Xj(A,r);return pe+" "+S[0]+" both"}}for(var y in l){var s=g(l[y]);s&&o.push(s)}if(o.length){var x=r.zrId+"-cls-"+qj();r.cssNodes["."+x]={animation:o.join(",")},t.class=x}}function kSe(e,t,r){if(!e.ignore)if(e.isSilent()){var n={"pointer-events":"none"};Wz(n,t,r)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||o;l&&(a=M2(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&e.transform?e.transform[0]:1;u=u/c}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),Wz(n,t,r)}}function Wz(e,t,r,n){var i=JSON.stringify(e),a=r.cssStyleCache[i];a||(a=r.zrId+"-cls-"+qj(),r.cssStyleCache[i]=a,r.cssNodes["."+a+":hover"]=e),t.class=t.class?t.class+" "+a:a}var Jv=Math.round;function Zj(e){return e&&we(e.src)}function Kj(e){return e&&Be(e.toDataURL)}function MI(e,t,r,n){mSe(function(i,a){var o=i==="fill"||i==="stroke";o&&kG(a)?Jj(t,e,i,n):o&&Rk(a)?e8(r,e,i,n):o&&a==="none"?e[i]="transparent":e[i]=a},t,r,!1),OSe(r,e,n)}function kI(e,t){var r=wve(t);r&&(r.each(function(n,i){n!=null&&(e[(Vz+i).toLowerCase()]=n+"")}),t.isSilent()&&(e[Vz+"silent"]="true"))}function jz(e){return cl(e[0]-1)&&cl(e[1])&&cl(e[2])&&cl(e[3]-1)}function ISe(e){return cl(e[4])&&cl(e[5])}function II(e,t,r){if(t&&!(ISe(t)&&jz(t))){var n=1e4;e.transform=jz(t)?"translate("+Jv(t[4]*n)/n+" "+Jv(t[5]*n)/n+")":jpe(t)}}function Uz(e,t,r){for(var n=e.points,i=[],a=0;a<n.length;a++)i.push(Jv(n[a][0]*r)/r),i.push(Jv(n[a][1]*r)/r);t.points=i.join(" ")}function Yz(e){return!e.smooth}function PSe(e){var t=de(e,function(r){return typeof r=="string"?[r,r]:r});return function(r,n,i){for(var a=0;a<t.length;a++){var o=t[a],s=r[o[0]];s!=null&&(n[o[1]]=Jv(s*i)/i)}}}var DSe={circle:[PSe(["cx","cy","r"])],polyline:[Uz,Yz],polygon:[Uz,Yz]};function RSe(e){for(var t=e.animators,r=0;r<t.length;r++)if(t[r].targetName==="shape")return!0;return!1}function Qj(e,t){var r=e.style,n=e.shape,i=DSe[e.type],a={},o=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&IG(e)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&RSe(e))&&!(l<1)){s=e.type;var c=Math.pow(10,u);i[0](n,a,c)}else{var f=!e.path||e.shapeChanged();e.path||e.createPathProxy();var d=e.path;f&&(d.beginPath(),e.buildPath(d,e.shape),e.pathUpdated());var h=d.getVersion(),v=e,g=v.__svgPathBuilder;(v.__svgPathVersion!==h||!g||l!==v.__svgPathStrokePercent)&&(g||(g=v.__svgPathBuilder=new Wj),g.reset(u),d.rebuildPath(g,l),g.generateStr(),v.__svgPathVersion=h,v.__svgPathStrokePercent=l),a.d=g.getStr()}return II(a,e.transform),MI(a,r,e,t),kI(a,e),t.animation&&kS(e,a,t),t.emphasis&&kSe(e,a,t),Wr(s,e.id+"",a)}function ESe(e,t){var r=e.style,n=r.image;if(n&&!we(n)&&(Zj(n)?n=n.src:Kj(n)&&(n=n.toDataURL())),!!n){var i=r.x||0,a=r.y||0,o=r.width,s=r.height,l={href:n,width:o,height:s};return i&&(l.x=i),a&&(l.y=a),II(l,e.transform),MI(l,r,e,t),kI(l,e),t.animation&&kS(e,l,t),Wr("image",e.id+"",l)}}function LSe(e,t){var r=e.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var i=r.font||_l,a=r.x||0,o=Ype(r.y||0,eS(i),r.textBaseline),s=Upe[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(oH(r)){var u="",c=r.fontStyle,f=aH(r.fontSize);if(!parseFloat(f))return;var d=r.fontFamily||iG,h=r.fontWeight;u+="font-size:"+f+";font-family:"+d+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+i;return n.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),II(l,e.transform),MI(l,r,e,t),kI(l,e),t.animation&&kS(e,l,t),Wr("text",e.id+"",l,void 0,n)}}function qz(e,t){if(e instanceof vt)return Qj(e,t);if(e instanceof en)return ESe(e,t);if(e instanceof md)return LSe(e,t)}function OSe(e,t,r){var n=e.style;if(qpe(n)){var i=Xpe(e),a=r.shadowCache,o=a[i];if(!o){var s=e.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=n.shadowOffsetX||0,f=n.shadowOffsetY||0,d=n.shadowBlur,h=Vv(n.shadowColor),v=h.opacity,g=h.color,y=d/2/l,x=d/2/u,S=y+" "+x;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=Wr("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Wr("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:S,"flood-color":g,"flood-opacity":v})]),a[i]=o}t.filter=Jx(o)}}function Jj(e,t,r,n){var i=e[r],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(AG(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(MG(i))a="radialGradient",o.cx=Qe(i.x,.5),o.cy=Qe(i.y,.5),o.r=Qe(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=k2(s[u].offset)*100+"%",d=s[u].color,h=Vv(d),v=h.color,g=h.opacity,y={offset:f};y["stop-color"]=v,g<1&&(y["stop-opacity"]=g),l.push(Wr("stop",u+"",y))}var x=Wr(a,"",o,l),S=AI(x),b=n.gradientCache,w=b[S];w||(w=n.zrId+"-g"+n.gradientIdx++,b[S]=w,o.id=w,n.defs[w]=Wr(a,w,o,l)),t[r]=Jx(w)}function e8(e,t,r,n){var i=e.style[r],a=e.getBoundingRect(),o={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(TG(i)){var d=i.imageWidth,h=i.imageHeight,v=void 0,g=i.image;if(we(g)?v=g:Zj(g)?v=g.src:Kj(g)&&(v=g.toDataURL()),typeof Image>"u"){var y="Image width/height must been given explictly in svg-ssr renderer.";zn(d,y),zn(h,y)}else if(d==null||h==null){var x=function(P,R){if(P){var L=P.elm,O=d||R.width,z=h||R.height;P.tag==="pattern"&&(u?(z=1,O/=a.width):c&&(O=1,z/=a.height)),P.attrs.width=O,P.attrs.height=z,L&&(L.setAttribute("width",O),L.setAttribute("height",z))}},S=Bk(v,null,e,function(P){l||x(C,P),x(f,P)});S&&S.width&&S.height&&(d=d||S.width,h=h||S.height)}f=Wr("image","img",{href:v,width:d,height:h}),o.width=d,o.height=h}else i.svgElement&&(f=We(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(f){var b,w;l?b=w=1:u?(w=1,b=o.width/a.width):c?(b=1,w=o.height/a.height):o.patternUnits="userSpaceOnUse",b!=null&&!isNaN(b)&&(o.width=b),w!=null&&!isNaN(w)&&(o.height=w);var T=PG(i);T&&(o.patternTransform=T);var C=Wr("pattern","",o,[f]),A=AI(C),k=n.patternCache,I=k[A];I||(I=n.zrId+"-p"+n.patternIdx++,k[A]=I,o.id=I,C=n.defs[I]=Wr("pattern",I,o,[f])),t[r]=Jx(I)}}function NSe(e,t,r){var n=r.clipPathCache,i=r.defs,a=n[e.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[e.id]=a,i[a]=Wr("clipPath",a,o,[Qj(e,r)])}t["clip-path"]=Jx(a)}function Xz(e){return document.createTextNode(e)}function Fu(e,t,r){e.insertBefore(t,r)}function Zz(e,t){e.removeChild(t)}function Kz(e,t){e.appendChild(t)}function t8(e){return e.parentNode}function r8(e){return e.nextSibling}function _C(e,t){e.textContent=t}var Qz=58,zSe=120,BSe=Wr("","");function mA(e){return e===void 0}function to(e){return e!==void 0}function FSe(e,t,r){for(var n={},i=t;i<=r;++i){var a=e[i].key;a!==void 0&&(n[a]=i)}return n}function Gp(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function eg(e){var t,r=e.children,n=e.tag;if(to(n)){var i=e.elm=Yj(n);if(PI(BSe,e),ue(r))for(t=0;t<r.length;++t){var a=r[t];a!=null&&Kz(i,eg(a))}else to(e.text)&&!Ge(e.text)&&Kz(i,Xz(e.text))}else e.elm=Xz(e.text);return e.elm}function n8(e,t,r,n,i){for(;n<=i;++n){var a=r[n];a!=null&&Fu(e,eg(a),t)}}function U1(e,t,r,n){for(;r<=n;++r){var i=t[r];if(i!=null)if(to(i.tag)){var a=t8(i.elm);Zz(a,i.elm)}else Zz(e,i.elm)}}function PI(e,t){var r,n=t.elm,i=e&&e.attrs||{},a=t.attrs||{};if(i!==a){for(r in a){var o=a[r],s=i[r];s!==o&&(o===!0?n.setAttribute(r,""):o===!1?n.removeAttribute(r):r==="style"?n.style.cssText=o:r.charCodeAt(0)!==zSe?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(ySe,r,o):r.charCodeAt(3)===Qz?n.setAttributeNS(xSe,r,o):r.charCodeAt(5)===Qz?n.setAttributeNS(Uj,r,o):n.setAttribute(r,o))}for(r in i)r in a||n.removeAttribute(r)}}function VSe(e,t,r){for(var n=0,i=0,a=t.length-1,o=t[0],s=t[a],l=r.length-1,u=r[0],c=r[l],f,d,h,v;n<=a&&i<=l;)o==null?o=t[++n]:s==null?s=t[--a]:u==null?u=r[++i]:c==null?c=r[--l]:Gp(o,u)?(zf(o,u),o=t[++n],u=r[++i]):Gp(s,c)?(zf(s,c),s=t[--a],c=r[--l]):Gp(o,c)?(zf(o,c),Fu(e,o.elm,r8(s.elm)),o=t[++n],c=r[--l]):Gp(s,u)?(zf(s,u),Fu(e,s.elm,o.elm),s=t[--a],u=r[++i]):(mA(f)&&(f=FSe(t,n,a)),d=f[u.key],mA(d)?Fu(e,eg(u),o.elm):(h=t[d],h.tag!==u.tag?Fu(e,eg(u),o.elm):(zf(h,u),t[d]=void 0,Fu(e,h.elm,o.elm))),u=r[++i]);(n<=a||i<=l)&&(n>a?(v=r[l+1]==null?null:r[l+1].elm,n8(e,v,r,i,l)):U1(e,t,n,a))}function zf(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(PI(e,t),mA(t.text)?to(n)&&to(i)?n!==i&&VSe(r,n,i):to(i)?(to(e.text)&&_C(r,""),n8(r,null,i,0,i.length-1)):to(n)?U1(r,n,0,n.length-1):to(e.text)&&_C(r,""):e.text!==t.text&&(to(n)&&U1(r,n,0,n.length-1),_C(r,t.text)))}function $Se(e,t){if(Gp(e,t))zf(e,t);else{var r=e.elm,n=t8(r);eg(t),n!==null&&(Fu(n,t.elm,r8(r)),U1(n,[e],0,0))}return t}var GSe=0,HSe=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=Jz(),this.configLayer=Jz(),this.storage=r,this._opts=n=oe({},n),this.root=t,this._id="zr"+GSe++,this._oldVNode=$z(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=Yj("svg");PI(null,this._oldVNode),i.appendChild(a),t.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",$Se(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return qz(t,gA(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=gA(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress,a.emphasis=t.emphasis;var o=[],s=this._bgVNode=WSe(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=Wr("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=de(St(a.defs),function(d){return a.defs[d]});if(u.length&&o.push(Wr("defs","defs",{},u)),t.animation){var c=_Se(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=Wr("style","stl",{},[],c);o.push(f)}}return $z(n,i,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},AI(this.renderToVNode({animation:Qe(t.cssAnimation,!0),emphasis:Qe(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Qe(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,r,n){for(var i=t.length,a=[],o=0,s,l,u=0,c=0;c<i;c++){var f=t[c];if(!f.invisible){var d=f.__clipPaths,h=d&&d.length||0,v=l&&l.length||0,g=void 0;for(g=Math.max(h-1,v-1);g>=0&&!(d&&l&&d[g]===l[g]);g--);for(var y=v-1;y>g;y--)o--,s=a[o-1];for(var x=g+1;x<h;x++){var S={};NSe(d[x],S,r);var b=Wr("g","clip-g-"+u++,S,[]);(s?s.children:n).push(b),a[o++]=b,s=b}l=d;var w=qz(f,r);w&&(s?s.children:n).push(w)}}},e.prototype.resize=function(t,r){var n=this._opts,i=this.root,a=this._viewport;if(t!=null&&(n.width=t),r!=null&&(n.height=r),i&&a&&(a.style.display="none",t=jf(i,0,n),r=jf(i,1,n),a.style.display=""),this._width!==t||this._height!==r){if(this._width=t,this._height=r,a){var o=a.style;o.width=t+"px",o.height=r+"px"}if(Rk(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",r));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",r))}}},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},e.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},e.prototype.toDataURL=function(t){var r=this.renderToString(),n="data:image/svg+xml;";return t?(r=Kpe(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},e}();function Jz(e){return function(){}}function WSe(e,t,r,n){var i;if(r&&r!=="none")if(i=Wr("rect","bg",{width:e,height:t,x:"0",y:"0"}),kG(r))Jj({fill:r},i.attrs,"fill",n);else if(Rk(r))e8({style:{fill:r},dirty:Mr,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,"fill",n);else{var a=Vv(r),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}function jSe(e){e.registerPainter("svg",HSe)}function e3(e,t,r){var n=wl.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",e)),n.width=i*r,n.height=a*r,n}var wC=function(e){J(t,e);function t(r,n,i){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||C1,typeof r=="string"?o=e3(r,n,i):Ge(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(cG(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}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=e3("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,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new nt(0,0,0,0);function c(S){if(!(!S.isFinite()||S.isZero()))if(o.length===0){var b=new nt(0,0,0,0);b.copy(S),o.push(b)}else{for(var w=!1,T=1/0,C=0,A=0;A<o.length;++A){var k=o[A];if(k.intersect(S)){var I=new nt(0,0,0,0);I.copy(k),I.union(S),o[A]=I,w=!0;break}else if(l){u.copy(S),u.union(k);var P=S.width*S.height,R=k.width*k.height,L=u.width*u.height,O=L-P-R;O<T&&(T=O,C=A)}}if(l&&(o[C].union(S),w=!0),!w){var b=new nt(0,0,0,0);b.copy(S),o.push(b)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=r[f];if(d){var h=d.shouldBePainted(i,a,!0,!0),v=d.__isRendered&&(d.__dirty&yo||!h)?d.getPrevPaintRect():null;v&&c(v);var g=h&&(d.__dirty&yo||!d.__isRendered)?d.getPaintRect():null;g&&c(g)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=n[f],h=d&&d.shouldBePainted(i,a,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var v=d.getPrevPaintRect();v&&c(v)}}var y;do{y=!1;for(var f=0;f<o.length;){if(o[f].isZero()){o.splice(f,1);continue}for(var x=f+1;x<o.length;)o[f].intersect(o[x])?(y=!0,o[f].union(o[x]),o.splice(x,1)):x++;f++}}while(y);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=n+"px"),a.width=r*i,a.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 a=this.dom,o=this.ctx,s=a.width,l=a.height;n=n||this.clearColor;var u=this.motionBlur&&!r,c=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/f,l/f));var h=this.domBack;function v(g,y,x,S){if(o.clearRect(g,y,x,S),n&&n!=="transparent"){var b=void 0;if(Zx(n)){var w=n.global||n.__width===x&&n.__height===S;b=w&&n.__canvasGradient||oA(o,n,{x:0,y:0,width:x,height:S}),n.__canvasGradient=b,n.__width=x,n.__height=S}else ipe(n)&&(n.scaleX=n.scaleX||f,n.scaleY=n.scaleY||f,b=sA(o,n,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));o.save(),o.fillStyle=b||n,o.fillRect(g,y,x,S),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(h,g,y,x,S),o.restore())}!i||u?v(0,0,s,l):i.length&&V(i,function(g){v(g.x*f,g.y*f,g.width*f,g.height*f)})},t}(sa),t3=1e5,Cu=314159,a0=.01,USe=.001;function YSe(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function qSe(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 XSe=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 a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=oe({},n||{}),this.dpr=n.devicePixelRatio||C1,this._singleCanvas=a,this.root=t;var o=t.style;o&&(cG(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){var c=t,f=c.width,d=c.height;n.width!=null&&(f=n.width),n.height!=null&&(d=n.height),this.dpr=n.devicePixelRatio||1,c.width=f*this.dpr,c.height=d*this.dpr,this._width=f,this._height=d;var h=new wC(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[Cu]=h,h.zlevel=Cu,s.push(Cu),this._domRoot=t}else{this._width=jf(t,0,n),this._height=jf(t,1,n);var u=this._domRoot=qSe(this._width,this._height);t.appendChild(u)}}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 a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===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},a,o=0;o<r;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(t3)),a||(a=n.ctx,a.save()),Ku(a,s,i,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(t3)},e.prototype.paintOne=function(t,r){$W(t,r)},e.prototype._paintList=function(t,r,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,r,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;x1(function(){l._paintList(t,r,n,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(Cu).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,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||n)&&a.push(u)}for(var c=!0,f=!1,d=function(g){var y=a[g],x=y.ctx,S=o&&y.createRepaintRects(t,r,h._width,h._height),b=n?y.__startIndex:y.__drawIndex,w=!n&&y.incremental&&Date.now,T=w&&Date.now(),C=y.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(y.__startIndex===y.__endIndex)y.clear(!1,C,S);else if(b===y.__startIndex){var A=t[b];(!A.incremental||!A.notClear||n)&&y.clear(!1,C,S)}b===-1&&(console.error("For some unknown reason. drawIndex is -1"),b=y.__startIndex);var k,I=function(O){var z={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(k=b;k<y.__endIndex;k++){var F=t[k];if(F.__inHover&&(f=!0),i._doPaintEl(F,y,o,O,z,k===y.__endIndex-1),w){var H=Date.now()-T;if(H>15)break}}z.prevElClipPaths&&x.restore()};if(S)if(S.length===0)k=y.__endIndex;else for(var P=h.dpr,R=0;R<S.length;++R){var L=S[R];x.save(),x.beginPath(),x.rect(L.x*P,L.y*P,L.width*P,L.height*P),x.clip(),I(L),x.restore()}else x.save(),I(),x.restore();y.__drawIndex=k,y.__drawIndex<y.__endIndex&&(c=!1)},h=this,v=0;v<a.length;v++)d(v);return yt.wxa&&V(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:c,needsRefreshHover:f}},e.prototype._doPaintEl=function(t,r,n,i,a,o){var s=r.ctx;if(n){var l=t.getPaintRect();(!i||l&&l.intersect(i))&&(Ku(s,t,a,o),t.setPrevPaintRect(l))}else Ku(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Cu);var n=this._layers[t];return n||(n=new wC("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?rt(n,this._layerConfig[t],!0):this._layerConfig[t-a0]&&rt(n,this._layerConfig[t-a0],!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,a=i.length,o=this._domRoot,s=null,l=-1;if(!n[t]&&YSe(r)){if(a>0&&t>i[0]){for(l=0;l<a-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 u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.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 a=n[i];t.call(r,this._layers[a],a)}},e.prototype.eachBuiltinLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(r,o,a)}},e.prototype.eachOtherLayer=function(t,r){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(r,o,a)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(f,d){f.__dirty=f.__used=!1});function r(f){a&&(a.__endIndex!==f&&(a.__dirty=!0),a.__endIndex=f)}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 a=null,o=0,s,l;for(l=0;l<t.length;l++){var i=t[l],u=i.zlevel,c=void 0;s!==u&&(s=u,o=0),i.incremental?(c=this.getLayer(u+USe,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?a0:0),this._needsManuallyCompositing),c.__builtin__||Ck("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,r(l),a=c),i.__dirty&yo&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__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,V(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?rt(n[t],r,!0):n[t]=r;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+a0){var o=this._layers[a];rt(o,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(ft(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,a=this.root;if(t!=null&&(i.width=t),r!=null&&(i.height=r),t=jf(a,0,i),r=jf(a,1,i),n.style.display="",this._width!==t||r!==this._height){n.style.width=t+"px",n.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].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(Cu).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[Cu].dom;var r=new wC("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,a=r.dom.height;this.eachLayer(function(f){f.__builtin__?n.drawImage(f.dom,0,0,i,a):f.renderToCanvas&&(n.save(),f.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),l=0,u=s.length;l<u;l++){var c=s[l];Ku(n,c,o,l===u-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}();function ZSe(e){e.registerPainter("canvas",XSe)}var KSe=function(e){J(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 xs(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new qe,i=Er("line",0,r.itemHeight/2,r.itemWidth,0,r.lineStyle.stroke,!1);n.add(i),i.setStyle(r.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=r.itemHeight*.8,u=Er(s,(r.itemWidth-l)/2,(r.itemHeight-l)/2,l,l,r.itemStyle.fill);n.add(u),u.setStyle(r.itemStyle);var c=r.iconRotate==="inherit"?o:r.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([r.itemWidth/2,r.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.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}(or);function _d(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=xd(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(xd(e,t,r[o]));return a.join(" ")}}function i8(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!ue(t))return t+"";for(var n=[],i=0;i<r.length;i++){var a=e.getDimensionIndex(r[i]);a>=0&&n.push(t[a])}return n.join(" ")}var Fg=function(e){J(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o.updateData(r,n,i,a),o}return t.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=Er(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=QSe,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(){us(this.childAt(0))},t.prototype.downplay=function(){cs(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,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,c=a&&a.disableAnimation;if(u){var f=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,f)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(h):Lt(d,h,s,n),Na(d)}if(this._updateCommon(r,n,l,i,a),u){var d=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,lr(d,h,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,c,f,d,h,v,g,y,x;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,d=a.focus,h=a.blurScope,g=a.labelStatesModels,y=a.hoverScale,x=a.cursorStyle,v=a.emphasisDisabled),!a||r.hasItemOption){var S=a&&a.itemModel?a.itemModel:r.getItemModel(n),b=S.getModel("emphasis");u=b.getModel("itemStyle").getItemStyle(),f=S.getModel(["select","itemStyle"]).getItemStyle(),c=S.getModel(["blur","itemStyle"]).getItemStyle(),d=b.get("focus"),h=b.get("blurScope"),v=b.get("disabled"),g=Ur(S),y=b.getShallow("scale"),x=S.getShallow("cursor")}var w=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var T=Ic(r.getItemVisual(n,"symbolOffset"),i);T&&(s.x=T[0],s.y=T[1]),x&&s.attr("cursor",x);var C=r.getItemVisual(n,"style"),A=C.fill;if(s instanceof en){var k=s.style;s.useStyle(oe({image:k.image,x:k.x,y:k.y,width:k.width,height:k.height},C))}else s.__isEmptyBrush?s.useStyle(oe({},C)):s.useStyle(C),s.style.decal=null,s.setColor(A,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var I=r.getItemVisual(n,"liftZ"),P=this._z2;I!=null?P==null&&(this._z2=s.z2,s.z2+=I):P!=null&&(s.z2=P,this._z2=null);var R=o&&o.useNameLabel;fn(s,g,{labelFetcher:l,labelDataIndex:n,defaultText:L,inheritColor:A,defaultOpacity:C.opacity});function L(F){return R?r.getName(F):_d(r,F)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var O=s.ensureState("emphasis");O.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var z=y==null||y===!0?Math.max(1.1,3/this._sizeY):isFinite(y)&&y>0?+y:1;O.scaleX=this._sizeX*z,O.scaleY=this._sizeY*z,this.setSymbolScale(1),mr(this,d,h,v)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=Ze(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Tl(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Tl(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return jd(r.getItemVisual(n,"symbolSize"))},t}(qe);function QSe(e,t){this.parent.drift(e,t)}function CC(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 r3(e){return e!=null&&!Ge(e)&&(e={isIgnore:e}),e||{}}function n3(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:Ur(t),cursorStyle:t.get("cursor")}}var Vg=function(){function e(t){this.group=new qe,this._SymbolCtor=t||Fg}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=r3(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=n3(t),u={disableAnimation:s},c=r.getSymbolPoint||function(f){return t.getItemLayout(f)};a||n.removeAll(),t.diff(a).add(function(f){var d=c(f);if(CC(t,d,f,r)){var h=new o(t,f,l,u);h.setPosition(d),t.setItemGraphicEl(f,h),n.add(h)}}).update(function(f,d){var h=a.getItemGraphicEl(d),v=c(f);if(!CC(t,v,f,r)){n.remove(h);return}var g=t.getItemVisual(f,"symbol")||"circle",y=h&&h.getSymbolType&&h.getSymbolType();if(!h||y&&y!==g)n.remove(h),h=new o(t,f,l,u),h.setPosition(v);else{h.updateData(t,f,l,u);var x={x:v[0],y:v[1]};s?h.attr(x):Lt(h,x,i)}n.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var d=a.getItemGraphicEl(f);d&&d.fadeOut(function(){n.remove(d)},i)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=n3(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=r3(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a<t.end;a++){var o=r.getItemLayout(a);if(CC(r,o,a,n)){var s=new this._SymbolCtor(r,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),r.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},e.prototype.eachRendered=function(t){Ol(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 a8(e,t,r){var n=e.getBaseAxis(),i=e.getOtherAxis(n),a=JSe(i,r),o=n.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=de(e.dimensions,function(v){return t.mapDimension(v)}),d=!1,h=t.getCalculationInfo("stackResultDimension");return Ml(t,f[0])&&(d=!0,f[0]=h),Ml(t,f[1])&&(d=!0,f[1]=h),{dataDimsForPoint:f,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function JSe(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:Dt(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function o8(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function ebe(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 tbe(e,t,r,n,i,a,o,s){for(var l=ebe(e,t),u=[],c=[],f=[],d=[],h=[],v=[],g=[],y=a8(i,t,o),x=e.getLayout("points")||[],S=t.getLayout("points")||[],b=0;b<l.length;b++){var w=l[b],T=!0,C=void 0,A=void 0;switch(w.cmd){case"=":C=w.idx*2,A=w.idx1*2;var k=x[C],I=x[C+1],P=S[A],R=S[A+1];(isNaN(k)||isNaN(I))&&(k=P,I=R),u.push(k,I),c.push(P,R),f.push(r[C],r[C+1]),d.push(n[A],n[A+1]),g.push(t.getRawIndex(w.idx1));break;case"+":var L=w.idx,O=y.dataDimsForPoint,z=i.dataToPoint([t.get(O[0],L),t.get(O[1],L)]);A=L*2,u.push(z[0],z[1]),c.push(S[A],S[A+1]);var F=o8(y,i,t,L);f.push(F[0],F[1]),d.push(n[A],n[A+1]),g.push(t.getRawIndex(L));break;case"-":T=!1}T&&(h.push(w),v.push(v.length))}v.sort(function(ce,te){return g[ce]-g[te]});for(var H=u.length,q=co(H),$=co(H),X=co(H),B=co(H),Y=[],b=0;b<v.length;b++){var Z=v[b],j=b*2,re=Z*2;q[j]=u[re],q[j+1]=u[re+1],$[j]=c[re],$[j+1]=c[re+1],X[j]=f[re],X[j+1]=f[re+1],B[j]=d[re],B[j+1]=d[re+1],Y[b]=h[Z]}return{current:q,next:$,stackedOnCurrent:X,stackedOnNext:B,status:Y}}var Xs=Math.min,Zs=Math.max;function sc(e,t){return isNaN(e)||isNaN(t)}function yA(e,t,r,n,i,a,o,s,l){for(var u,c,f,d,h,v,g=r,y=0;y<n;y++){var x=t[g*2],S=t[g*2+1];if(g>=i||g<0)break;if(sc(x,S)){if(l){g+=a;continue}break}if(g===r)e[a>0?"moveTo":"lineTo"](x,S),f=x,d=S;else{var b=x-u,w=S-c;if(b*b+w*w<.5){g+=a;continue}if(o>0){for(var T=g+a,C=t[T*2],A=t[T*2+1];C===x&&A===S&&y<n;)y++,T+=a,g+=a,C=t[T*2],A=t[T*2+1],x=t[g*2],S=t[g*2+1],b=x-u,w=S-c;var k=y+1;if(l)for(;sc(C,A)&&k<n;)k++,T+=a,C=t[T*2],A=t[T*2+1];var I=.5,P=0,R=0,L=void 0,O=void 0;if(k>=n||sc(C,A))h=x,v=S;else{P=C-u,R=A-c;var z=x-u,F=C-x,H=S-c,q=A-S,$=void 0,X=void 0;if(s==="x"){$=Math.abs(z),X=Math.abs(F);var B=P>0?1:-1;h=x-B*$*o,v=S,L=x+B*X*o,O=S}else if(s==="y"){$=Math.abs(H),X=Math.abs(q);var Y=R>0?1:-1;h=x,v=S-Y*$*o,L=x,O=S+Y*X*o}else $=Math.sqrt(z*z+H*H),X=Math.sqrt(F*F+q*q),I=X/(X+$),h=x-P*o*(1-I),v=S-R*o*(1-I),L=x+P*o*I,O=S+R*o*I,L=Xs(L,Zs(C,x)),O=Xs(O,Zs(A,S)),L=Zs(L,Xs(C,x)),O=Zs(O,Xs(A,S)),P=L-x,R=O-S,h=x-P*$/X,v=S-R*$/X,h=Xs(h,Zs(u,x)),v=Xs(v,Zs(c,S)),h=Zs(h,Xs(u,x)),v=Zs(v,Xs(c,S)),P=x-h,R=S-v,L=x+P*X/$,O=S+R*X/$}e.bezierCurveTo(f,d,h,v,x,S),f=L,d=O}else e.lineTo(x,S)}u=x,c=S,g+=a}return y}var s8=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),rbe=function(e){J(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 s8},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&sc(i[o*2-2],i[o*2-1]);o--);for(;a<o&&sc(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=yA(r,i,a,o,o,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,a=i.data,o=ko.CMD,s,l,u=n==="x",c=[],f=0;f<a.length;){var d=a[f++],h=void 0,v=void 0,g=void 0,y=void 0,x=void 0,S=void 0,b=void 0;switch(d){case o.M:s=a[f++],l=a[f++];break;case o.L:if(h=a[f++],v=a[f++],b=u?(r-s)/(h-s):(r-l)/(v-l),b<=1&&b>=0){var w=u?(v-l)*b+l:(h-s)*b+s;return u?[r,w]:[w,r]}s=h,l=v;break;case o.C:h=a[f++],v=a[f++],g=a[f++],y=a[f++],x=a[f++],S=a[f++];var T=u?S1(s,h,g,x,r,c):S1(l,v,y,S,r,c);if(T>0)for(var C=0;C<T;C++){var A=c[C];if(A<=1&&A>=0){var w=u?Gr(l,v,y,S,A):Gr(s,h,g,x,A);return u?[r,w]:[w,r]}}s=x,l=S;break}}},t}(vt),nbe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(s8),l8=function(e){J(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 nbe},t.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&sc(i[s*2-2],i[s*2-1]);s--);for(;o<s&&sc(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=yA(r,i,o,s,s,1,n.smooth,l,n.connectNulls);yA(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},t}(vt);function u8(e,t,r,n,i){var a=e.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,c=r.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var f=new Ct({shape:{x:o,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),h=d.isHorizontal(),v=d.inverse;h?(v&&(f.shape.x+=l),f.shape.width=0):(v||(f.shape.y+=u),f.shape.height=0);var g=Be(i)?function(y){i(y,f)}:null;lr(f,{shape:{width:l,height:u,x:o,y:s}},r,null,n,g)}return f}function c8(e,t,r){var n=e.getArea(),i=br(n.r0,1),a=br(n.r,1),o=new Fn({shape:{cx:br(e.cx,1),cy:br(e.cy,1),r0:i,r:a,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});if(t){var s=e.getBaseAxis().dim==="angle";s?o.shape.endAngle=n.startAngle:o.shape.r=i,lr(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function $g(e,t,r,n,i){if(e){if(e.type==="polar")return c8(e,t,r);if(e.type==="cartesian2d")return u8(e,t,r,n,i)}else return null;return null}function Dc(e,t){return e.type===t}function i3(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function a3(e){for(var t=1/0,r=1/0,n=-1/0,i=-1/0,a=0;a<e.length;){var o=e[a++],s=e[a++];isNaN(o)||(t=Math.min(o,t),n=Math.max(o,n)),isNaN(s)||(r=Math.min(s,r),i=Math.max(s,i))}return[[t,r],[n,i]]}function o3(e,t){var r=a3(e),n=r[0],i=r[1],a=a3(t),o=a[0],s=a[1];return Math.max(Math.abs(n[0]-o[0]),Math.abs(n[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function s3(e){return Dt(e)?e:e?.5:0}function ibe(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),i=co(n*2),a=0;a<n;a++){var o=o8(r,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function Ks(e,t,r,n){var i=t.getBaseAxis(),a=i.dim==="x"||i.dim==="radius"?0:1,o=[],s=0,l=[],u=[],c=[],f=[];if(n){for(s=0;s<e.length;s+=2)!isNaN(e[s])&&!isNaN(e[s+1])&&f.push(e[s],e[s+1]);e=f}for(s=0;s<e.length-2;s+=2)switch(c[0]=e[s+2],c[1]=e[s+3],u[0]=e[s],u[1]=e[s+1],o.push(u[0],u[1]),r){case"end":l[a]=c[a],l[1-a]=u[1-a],o.push(l[0],l[1]);break;case"middle":var d=(u[a]+c[a])/2,h=[];l[a]=h[a]=d,l[1-a]=u[1-a],h[1-a]=c[1-a],o.push(l[0],l[1]),o.push(h[0],h[1]);break;default:l[a]=u[a],l[1-a]=c[1-a],o.push(l[0],l[1])}return o.push(e[s++],e[s++]),o}function abe(e,t){var r=[],n=e.length,i,a;function o(c,f,d){var h=c.coord,v=(d-h)/(f.coord-h),g=Hpe(v,[c.color,f.color]);return{coord:d,color:g}}for(var s=0;s<n;s++){var l=e[s],u=l.coord;if(u<0)i=l;else if(u>t){a?r.push(o(a,l,t)):i&&r.push(o(i,l,0),o(i,l,t));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function obe(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=de(a.stops,function(b){return{coord:l.toGlobalCoord(l.dataToCoord(b.value)),color:b.color}}),c=u.length,f=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=abe(u,i==="x"?r.getWidth():r.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var v=10,g=d[0].coord-v,y=d[h-1].coord+v,x=y-g;if(x<.001)return"transparent";V(d,function(b){b.offset=(b.coord-g)/x}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var S=new Rg(0,0,0,0,d,!0);return S[i]=g,S[i+"2"]=y,S}}}function sbe(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&lbe(a,t))){var o=t.mapDimension(a.dim),s={};return V(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function lbe(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(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(Fg.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function ube(e,t){return isNaN(e)||isNaN(t)}function cbe(e){for(var t=e.length/2;t>0&&ube(e[t*2-2],e[t*2-1]);t--);return t-1}function l3(e,t){return[e[t*2],e[t*2+1]]}function fbe(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u<n;u++)if(o=e[u*2+i],!(isNaN(o)||isNaN(e[u*2+1-i]))){if(u===0){a=o;continue}if(a<=t&&o>=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function f8(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<Bn.length;t++)if(e.get([Bn[t],"endLabel","show"]))return!0;return!1}function TC(e,t,r,n){if(Dc(t,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=f8(n)?function(h,v){e._endLabelOnDuring(h,v,o,s,a,i,t)}:null,u=t.getBaseAxis().isHorizontal(),c=u8(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 f=c.shape,d=Math.max(f.width,f.height);u?(f.y-=d,f.height+=d*2):(f.x-=d,f.width+=d*2)}return l&&l(1,c),c}else return c8(t,r,n)}function dbe(e,t){var r=t.getBaseAxis(),n=r.isHorizontal(),i=r.inverse,a=n?i?"right":"left":"center",o=n?"middle":i?"top":"bottom";return{normal:{align:e.get("align")||a,verticalAlign:e.get("verticalAlign")||o}}}var hbe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new qe,n=new Vg;this.group.add(n.group),this._symbolDraw=n,this._lineGroup=r},t.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem,s=this.group,l=r.getData(),u=r.getModel("lineStyle"),c=r.getModel("areaStyle"),f=l.getLayout("points")||[],d=o.type==="polar",h=this._coordSys,v=this._symbolDraw,g=this._polyline,y=this._polygon,x=this._lineGroup,S=!n.ssr&&r.get("animation"),b=!c.isEmpty(),w=c.get("origin"),T=a8(o,l,w),C=b&&ibe(o,l,T),A=r.get("showSymbol"),k=r.get("connectNulls"),I=A&&!d&&sbe(r,l,o),P=this._data;P&&P.eachItemGraphicEl(function(te,pe){te.__temp&&(s.remove(te),P.setItemGraphicEl(pe,null))}),A||v.remove(),s.add(x);var R=d?!1:r.get("step"),L;o&&o.getArea&&r.get("clip",!0)&&(L=o.getArea(),L.width!=null?(L.x-=.1,L.y-=.1,L.width+=.2,L.height+=.2):L.r0&&(L.r0-=.5,L.r+=.5)),this._clipShapeForSymbol=L;var O=obe(l,o,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(g&&h.type===o.type&&R===this._step))A&&v.updateData(l,{isIgnore:I,clipShape:L,disableAnimation:!0,getSymbolPoint:function(te){return[f[te*2],f[te*2+1]]}}),S&&this._initSymbolLabelAnimation(l,o,L),R&&(f=Ks(f,o,R,k),C&&(C=Ks(C,o,R,k))),g=this._newPolyline(f),b?y=this._newPolygon(f,C):y&&(x.remove(y),y=this._polygon=null),d||this._initOrUpdateEndLabel(r,o,Sc(O)),x.setClipPath(TC(this,o,!0,r));else{b&&!y?y=this._newPolygon(f,C):y&&!b&&(x.remove(y),y=this._polygon=null),d||this._initOrUpdateEndLabel(r,o,Sc(O));var z=x.getClipPath();if(z){var F=TC(this,o,!1,r);lr(z,{shape:F.shape},r)}else x.setClipPath(TC(this,o,!0,r));A&&v.updateData(l,{isIgnore:I,clipShape:L,disableAnimation:!0,getSymbolPoint:function(te){return[f[te*2],f[te*2+1]]}}),(!i3(this._stackedOnPoints,C)||!i3(this._points,f))&&(S?this._doUpdateAnimation(l,C,o,i,R,w,k):(R&&(f=Ks(f,o,R,k),C&&(C=Ks(C,o,R,k))),g.setShape({points:f}),y&&y.setShape({points:f,stackedOnPoints:C})))}var H=r.getModel("emphasis"),q=H.get("focus"),$=H.get("blurScope"),X=H.get("disabled");if(g.useStyle(Ve(u.getLineStyle(),{fill:"none",stroke:O,lineJoin:"bevel"})),cn(g,r,"lineStyle"),g.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var B=g.getState("emphasis").style;B.lineWidth=+g.style.lineWidth+1}Ze(g).seriesIndex=r.seriesIndex,mr(g,q,$,X);var Y=s3(r.get("smooth")),Z=r.get("smoothMonotone");if(g.setShape({smooth:Y,smoothMonotone:Z,connectNulls:k}),y){var j=l.getCalculationInfo("stackedOnSeries"),re=0;y.useStyle(Ve(c.getAreaStyle(),{fill:O,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),j&&(re=s3(j.get("smooth"))),y.setShape({smooth:Y,stackedOnSmooth:re,smoothMonotone:Z,connectNulls:k}),cn(y,r,"areaStyle"),Ze(y).seriesIndex=r.seriesIndex,mr(y,q,$,X)}var ce=function(te){a._changePolyState(te)};l.eachItemGraphicEl(function(te){te&&(te.onHoverStateChange=ce)}),this._polyline.onHoverStateChange=ce,this._data=l,this._coordSys=o,this._stackedOnPoints=C,this._points=f,this._step=R,this._valueOrigin=w,r.get("triggerLineEvent")&&(this.packEventData(r,g),y&&this.packEventData(r,y))},t.prototype.packEventData=function(r,n){Ze(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=mc(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=r.get("zlevel")||0,h=r.get("z")||0;u=new Fg(o,s),u.x=c,u.y=f,u.setZ(d,h);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=d,v.z=h,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Kt.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=mc(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else Kt.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;M1(this._polyline,r),n&&M1(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new rbe({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 l8({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,c=u.get("animationDuration");Be(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=Be(f)?f(null):f;r.eachItemGraphicEl(function(h,v){var g=h;if(g){var y=[h.x,h.y],x=void 0,S=void 0,b=void 0;if(i)if(o){var w=i,T=n.pointToCoord(y);a?(x=w.startAngle,S=w.endAngle,b=-T[1]/180*Math.PI):(x=w.r0,S=w.r,b=T[0])}else{var C=i;a?(x=C.x,S=C.x+C.width,b=h.x):(x=C.y+C.height,S=C.y,b=h.y)}var A=S===x?0:(b-x)/(S-x);l&&(A=1-A);var k=Be(f)?f(v):c*A+d,I=g.getSymbolPath(),P=I.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:k}),P&&P.animateFrom({style:{opacity:0}},{duration:300,delay:k}),I.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(f8(r)){var o=r.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new kt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=cbe(l);c>=0&&(fn(s,Ur(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?i8(o,h):_d(o,f)},enableTextSetter:!0},dbe(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var f=i.getLayout("points"),d=i.hostModel,h=d.get("connectNulls"),v=s.get("precision"),g=s.get("distance")||0,y=l.getBaseAxis(),x=y.isHorizontal(),S=y.inverse,b=n.shape,w=S?x?b.x:b.y+b.height:x?b.x+b.width:b.y,T=(x?g:0)*(S?-1:1),C=(x?0:-g)*(S?-1:1),A=x?"x":"y",k=fbe(f,w,A),I=k.range,P=I[1]-I[0],R=void 0;if(P>=1){if(P>1&&!h){var L=l3(f,I[0]);u.attr({x:L[0]+T,y:L[1]+C}),o&&(R=d.getRawValue(I[0]))}else{var L=c.getPointOn(w,A);L&&u.attr({x:L[0]+T,y:L[1]+C});var O=d.getRawValue(I[0]),z=d.getRawValue(I[1]);o&&(R=XG(i,v,O,z,k.t))}a.lastFrameIndex=I[0]}else{var F=r===1||a.lastFrameIndex>0?I[0]:0,L=l3(f,F);o&&(R=d.getRawValue(F)),u.attr({x:L[0]+T,y:L[1]+C})}if(o){var H=Bd(u);typeof H.setLabelText=="function"&&H.setLabelText(R)}}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,d=tbe(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),h=d.current,v=d.stackedOnCurrent,g=d.next,y=d.stackedOnNext;if(o&&(h=Ks(d.current,i,o,l),v=Ks(d.stackedOnCurrent,i,o,l),g=Ks(d.next,i,o,l),y=Ks(d.stackedOnNext,i,o,l)),o3(h,g)>3e3||c&&o3(v,y)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:y}));return}u.shape.__points=d.current,u.shape.points=h;var x={shape:{points:g}};d.current!==h&&(x.shape.__points=d.next),u.stopAnimation(),Lt(u,x,f),c&&(c.setShape({points:h,stackedOnPoints:v}),c.stopAnimation(),Lt(c,{shape:{stackedOnPoints:y}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var S=[],b=d.status,w=0;w<b.length;w++){var T=b[w].cmd;if(T==="="){var C=r.getItemGraphicEl(b[w].idx1);C&&S.push({el:C,ptIdx:w})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var A=u.shape.__points,k=0;k<S.length;k++){var I=S[k].el,P=S[k].ptIdx*2;I.x=A[P],I.y=A[P+1],I.markRedraw()}})},t.prototype.remove=function(r){var n=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(n.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t}(Kt);function Gg(e,t){return{seriesType:e,plan:Hd(),reset:function(r){var n=r.getData(),i=r.coordinateSystem,a=r.pipelineContext,o=t||a.large;if(i){var s=de(i.dimensions,function(h){return n.mapDimension(h)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");Ml(n,s[0])&&(s[0]=u),Ml(n,s[1])&&(s[1]=u);var c=n.getStore(),f=n.getDimensionIndex(s[0]),d=n.getDimensionIndex(s[1]);return l&&{progress:function(h,v){for(var g=h.end-h.start,y=o&&co(g*l),x=[],S=[],b=h.start,w=0;b<h.end;b++){var T=void 0;if(l===1){var C=c.get(f,b);T=i.dataToPoint(C,null,S)}else x[0]=c.get(f,b),x[1]=c.get(d,b),T=i.dataToPoint(x,null,S);o?(y[w++]=T[0],y[w++]=T[1]):v.setItemLayout(b,T.slice())}o&&v.setLayout("points",y)}}}}}}var pbe={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],a=Math.abs(i);a>t&&(t=a,r=i)}return isFinite(r)?r:NaN},nearest:function(e){return e[0]}},vbe=function(e){return Math.round(e.length/2)};function d8(e){return{seriesType:e,reset:function(t,r,n){var i=t.getData(),a=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=n.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h));var v=void 0;we(a)?v=pbe[a]:Be(a)&&(v=a),v&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,v,vbe))}}}}}function gbe(e){e.registerChartView(hbe),e.registerSeriesModel(KSe),e.registerLayout(Gg("line",!0)),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,d8("line"))}var tg=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return xs(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)V(a.getAxes(),function(d,h){if(d.type==="category"&&n!=null){var v=d.getTicksCoords(),g=d.getTickModel().get("alignWithLabel"),y=o[h],x=n[h]==="x1"||n[h]==="y1";if(x&&!g&&(y+=1),v.length<2)return;if(v.length===2){s[h]=d.toGlobalCoord(d.getExtent()[x?1:0]);return}for(var S=void 0,b=void 0,w=1,T=0;T<v.length;T++){var C=v[T].coord,A=T===v.length-1?v[T-1].tickValue+w:v[T].tickValue;if(A===y){b=C;break}else if(A<y)S=C;else if(S!=null&&A>y){b=(C+S)/2;break}T===1&&(w=A-v[0].tickValue)}b==null&&(S?S&&(b=v[v.length-1].coord):b=v[0].coord),s[h]=d.toGlobalCoord(b)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=a.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(or);or.registerClass(tg);var mbe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return xs(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Nl(tg.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),t}(tg),ybe=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}return e}(),Y1=function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new ybe},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,f=n.endAngle,d=n.clockwise,h=Math.PI*2,v=d?f-c<h:c-f<h;v||(c=f-(d?h:-h));var g=Math.cos(c),y=Math.sin(c),x=Math.cos(f),S=Math.sin(f);v?(r.moveTo(g*o+i,y*o+a),r.arc(g*u+i,y*u+a,l,-Math.PI+c,c,!d)):r.moveTo(g*s+i,y*s+a),r.arc(i,a,s,c,f,!d),r.arc(x*u+i,S*u+a,l,f-Math.PI*2,f-Math.PI,!d),o!==0&&r.arc(i,a,o,f,c,d)},t}(vt);function xbe(e,t){t=t||{};var r=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return T1(n,i,a);var s=e(o),l=i.distance!=null?i.distance:5,u=this.shape,c=u.cx,f=u.cy,d=u.r,h=u.r0,v=(d+h)/2,g=u.startAngle,y=u.endAngle,x=(g+y)/2,S=r?Math.abs(d-h)/2:0,b=Math.cos,w=Math.sin,T=c+d*b(g),C=f+d*w(g),A="left",k="top";switch(s){case"startArc":T=c+(h-l)*b(x),C=f+(h-l)*w(x),A="center",k="top";break;case"insideStartArc":T=c+(h+l)*b(x),C=f+(h+l)*w(x),A="center",k="bottom";break;case"startAngle":T=c+v*b(g)+o0(g,l+S,!1),C=f+v*w(g)+s0(g,l+S,!1),A="right",k="middle";break;case"insideStartAngle":T=c+v*b(g)+o0(g,-l+S,!1),C=f+v*w(g)+s0(g,-l+S,!1),A="left",k="middle";break;case"middle":T=c+v*b(x),C=f+v*w(x),A="center",k="middle";break;case"endArc":T=c+(d+l)*b(x),C=f+(d+l)*w(x),A="center",k="bottom";break;case"insideEndArc":T=c+(d-l)*b(x),C=f+(d-l)*w(x),A="center",k="top";break;case"endAngle":T=c+v*b(y)+o0(y,l+S,!0),C=f+v*w(y)+s0(y,l+S,!0),A="left",k="middle";break;case"insideEndAngle":T=c+v*b(y)+o0(y,-l+S,!0),C=f+v*w(y)+s0(y,-l+S,!0),A="right",k="middle";break;default:return T1(n,i,a)}return n=n||{},n.x=T,n.y=C,n.align=A,n.verticalAlign=k,n}}function Sbe(e,t,r,n){if(Dt(n)){e.setTextConfig({rotation:n});return}else if(ue(t)){e.setTextConfig({rotation:0});return}var i=e.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/2,l,u=r(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=a;break;case"endAngle":case"insideEndAngle":l=o;break;default:e.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),e.setTextConfig({rotation:c})}function o0(e,t,r){return t*Math.sin(e)*(r?-1:1)}function s0(e,t,r){return t*Math.cos(e)*(r?1:-1)}function Qu(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;ue(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:de(n,function(a){return Oa(a,i)})}}var AC=Math.max,MC=Math.min;function bbe(e,t){var r=e.getArea&&e.getArea();if(Dc(e,"cartesian2d")){var n=e.getBaseAxis();if(n.type!=="category"||!n.onBand){var i=t.getLayout("bandWidth");n.isHorizontal()?(r.x-=i,r.width+=i*2):(r.y-=i,r.height+=i*2)}}return r}var _be=function(e){J(t,e);function t(){var r=e.call(this)||this;return r.type=t.type,r._isFirstFrame=!0,r}return t.prototype.render=function(r,n,i,a){this._model=r,this._removeOnRenderedListener(i),this._updateDrawMode(r);var o=r.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(r,n,i):this._renderNormal(r,n,i,a))},t.prototype.incrementalPrepareRender=function(r){this._clear(),this._updateDrawMode(r),this._updateLargeClip(r)},t.prototype.incrementalRender=function(r,n){this._progressiveEls=[],this._incrementalRenderLarge(r,n)},t.prototype.eachRendered=function(r){Ol(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r,n,i,a){var o=this.group,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var d=r.isAnimationEnabled()?r:null,h=wbe(r,u);h&&this._enableRealtimeSort(h,s,i);var v=r.get("clip",!0)||h,g=bbe(u,s);o.removeClipPath();var y=r.get("roundCap",!0),x=r.get("showBackground",!0),S=r.getModel("backgroundStyle"),b=S.get("borderRadius")||0,w=[],T=this._backgroundEls,C=a&&a.isInitSort,A=a&&a.type==="changeAxisOrder";function k(R){var L=l0[u.type](s,R),O=Pbe(u,f,L);return O.useStyle(S.getItemStyle()),u.type==="cartesian2d"?O.setShape("r",b):O.setShape("cornerRadius",b),w[R]=O,O}s.diff(l).add(function(R){var L=s.getItemModel(R),O=l0[u.type](s,R,L);if(x&&k(R),!(!s.hasValue(R)||!h3[u.type](O))){var z=!1;v&&(z=u3[u.type](g,O));var F=c3[u.type](r,s,R,O,f,d,c.model,!1,y);h&&(F.forceLabelAnimation=!0),p3(F,s,R,L,O,r,f,u.type==="polar"),C?F.attr({shape:O}):h?f3(h,d,F,O,R,f,!1,!1):lr(F,{shape:O},r,R),s.setItemGraphicEl(R,F),o.add(F),F.ignore=z}}).update(function(R,L){var O=s.getItemModel(R),z=l0[u.type](s,R,O);if(x){var F=void 0;T.length===0?F=k(L):(F=T[L],F.useStyle(S.getItemStyle()),u.type==="cartesian2d"?F.setShape("r",b):F.setShape("cornerRadius",b),w[R]=F);var H=l0[u.type](s,R),q=p8(f,H,u);Lt(F,{shape:q},d,R)}var $=l.getItemGraphicEl(L);if(!s.hasValue(R)||!h3[u.type](z)){o.remove($);return}var X=!1;if(v&&(X=u3[u.type](g,z),X&&o.remove($)),$?Na($):$=c3[u.type](r,s,R,z,f,d,c.model,!!$,y),h&&($.forceLabelAnimation=!0),A){var B=$.getTextContent();if(B){var Y=Bd(B);Y.prevValue!=null&&(Y.prevValue=Y.value)}}else p3($,s,R,O,z,r,f,u.type==="polar");C?$.attr({shape:z}):h?f3(h,d,$,z,R,f,!0,A):Lt($,{shape:z},r,R,null),s.setItemGraphicEl(R,$),$.ignore=X,o.add($)}).remove(function(R){var L=l.getItemGraphicEl(R);L&&jv(L,r,R)}).execute();var I=this._backgroundGroup||(this._backgroundGroup=new qe);I.removeAll();for(var P=0;P<w.length;++P)I.add(w[P]);o.add(I),this._backgroundEls=w,this._data=s},t.prototype._renderLarge=function(r,n,i){this._clear(),g3(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),g3(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&$g(r.coordinateSystem,!1,r),i=this.group;n?i.setClipPath(n):i.removeClipPath()},t.prototype._enableRealtimeSort=function(r,n,i){var a=this;if(n.count()){var o=r.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(n,r,i),this._isFirstFrame=!1;else{var s=function(l){var u=n.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){a._updateSortWithinSameData(n,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(r,n,i){var a=[];return r.each(r.mapDimension(n.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:de(a,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(r,n,i){for(var a=i.scale,o=r.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var c=r.rawIndexOf(o,a.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:n(r.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){jv(a,r,Ze(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(Kt),u3={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=AC(t.x,e.x),s=MC(t.x+t.width,i),l=AC(t.y,e.y),u=MC(t.y+t.height,a),c=s<o,f=u<l;return t.x=c&&o>i?s:o,t.y=f&&l>a?u:l,t.width=c?0:s-o,t.height=f?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=MC(t.r,e.r),a=AC(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},c3={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Ct({shape:oe({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?Y1:Fn,c=new u({shape:n,z2:1});c.name="item";var f=h8(i);if(c.calculateTextPosition=xbe(f,{isRoundCap:u===Y1}),a){var d=c.shape,h=i?"r":"endAngle",v={};d[h]=i?n.r0:n.startAngle,v[h]=n[h],(s?Lt:lr)(c,{shape:v},a)}return c}};function wbe(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function f3(e,t,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?Lt:lr)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?Lt:lr)(r,{shape:u},c,i)}function d3(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var Cbe=["x","y","width","height"],Tbe=["cx","cy","r","startAngle","endAngle"],h3={cartesian2d:function(e){return!d3(e,Cbe)},polar:function(e){return!d3(e,Tbe)}},l0={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),i=r?Mbe(r,n):0,a=n.width>0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function Abe(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function h8(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function p3(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var c=e.shape,f=Qu(n.getModel("itemStyle"),c,!0);oe(c,f),e.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var d=n.getShallow("cursor");d&&e.attr("cursor",d);var h=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",v=Ur(n);fn(e,v,{labelFetcher:a,labelDataIndex:r,defaultText:_d(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var g=e.getTextContent();if(s&&g){var y=n.get(["label","position"]);e.textConfig.inside=y==="middle"?!0:null,Sbe(e,y==="outside"?h:y,h8(o),n.get(["label","rotate"]))}RH(g,v,a.getRawValue(r),function(S){return i8(t,S)});var x=n.getModel(["emphasis"]);mr(e,x.get("focus"),x.get("blurScope"),x.get("disabled")),cn(e,n),Abe(i)&&(e.style.fill="none",e.style.stroke="none",V(e.states,function(S){S.style&&(S.style.fill=S.style.stroke="none")}))}function Mbe(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var kbe=function(){function e(){}return e}(),v3=function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new kbe},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<i.length;c+=3)l[a]=u,l[o]=i[c+2],s[a]=i[c+a],s[o]=i[c+o],r.rect(s[0],s[1],l[0],l[1])},t}(vt);function g3(e,t,r,n){var i=e.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=e.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new v3({shape:{points:u},incremental:!!n,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),t.add(c),r&&r.push(c)}var f=new v3({shape:{points:i.getLayout("largePoints")},incremental:!!n,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,t.add(f),f.useStyle(i.getVisual("style")),Ze(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",m3),f.on("mousemove",m3)),r&&r.push(f)}var m3=cI(function(e){var t=this,r=Ibe(t,e.offsetX,e.offsetY);Ze(t).dataIndex=r>=0?r:null},30,!1);function Ibe(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,f=a.length/3;c<f;c++){var d=c*3;if(l[n]=u,l[i]=a[d+2],s[n]=a[d+n],s[i]=a[d+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function p8(e,t,r){if(Dc(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function Pbe(e,t,r){var n=e.type==="polar"?Fn:Ct;return new n({shape:p8(t,r,e),silent:!0,z2:0})}function Dbe(e){e.registerChartView(_be),e.registerSeriesModel(mbe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Je(xj,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Sj("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,d8("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var y3=Math.PI*2,u0=Math.PI/180;function v8(e,t){return Fr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function g8(e,t){var r=v8(e,t),n=e.get("center"),i=e.get("radius");ue(i)||(i=[0,i]);var a=xe(r.width,t.getWidth()),o=xe(r.height,t.getHeight()),s=Math.min(a,o),l=xe(i[0],s/2),u=xe(i[1],s/2),c,f,d=e.coordinateSystem;if(d){var h=d.dataToPoint(n);c=h[0]||0,f=h[1]||0}else ue(n)||(n=[n,n]),c=xe(n[0],a)+r.x,f=xe(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function Rbe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=v8(n,r),s=g8(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*u0,h=n.get("endAngle"),v=n.get("padAngle")*u0;h=h==="auto"?d-y3:-h*u0;var g=n.get("minAngle")*u0,y=g+v,x=0;i.each(a,function(q){!isNaN(q)&&x++});var S=i.getSum(a),b=Math.PI/(S||x)*2,w=n.get("clockwise"),T=n.get("roseType"),C=n.get("stillShowZeroSum"),A=i.getDataExtent(a);A[0]=0;var k=w?1:-1,I=[d,h],P=k*v/2;Fk(I,!w),d=I[0],h=I[1];var R=m8(n);R.startAngle=d,R.endAngle=h,R.clockwise=w;var L=Math.abs(h-d),O=L,z=0,F=d;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(q,$){var X;if(isNaN(q)){i.setItemLayout($,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:l,cy:u,r0:f,r:T?NaN:c});return}T!=="area"?X=S===0&&C?b:q*b:X=L/x,X<y?(X=y,O-=y):z+=q;var B=F+k*X,Y=0,Z=0;v>X?(Y=F+k*X/2,Z=Y):(Y=F+P,Z=B-P),i.setItemLayout($,{angle:X,startAngle:Y,endAngle:Z,clockwise:w,cx:l,cy:u,r0:f,r:T?$t(q,A,[f,c]):c}),F=B}),O<y3&&x)if(O<=.001){var H=L/x;i.each(a,function(q,$){if(!isNaN(q)){var X=i.getItemLayout($);X.angle=H;var B=0,Y=0;H<v?(B=d+k*($+1/2)*H,Y=B):(B=d+k*$*H+P,Y=d+k*($+1)*H-P),X.startAngle=B,X.endAngle=Y}})}else b=O/z,F=d,i.each(a,function(q,$){if(!isNaN(q)){var X=i.getItemLayout($),B=X.angle===y?y:q*b,Y=0,Z=0;B<v?(Y=F+k*B/2,Z=Y):(Y=F+P,Z=F+k*B-P),X.startAngle=Y,X.endAngle=Z,F+=k*B}})})}var m8=Tt();function Hg(e){return{seriesType:e,reset:function(t,r){var n=r.findComponents({mainType:"legend"});if(!(!n||!n.length)){var i=t.getData();i.filterSelf(function(a){for(var o=i.getName(a),s=0;s<n.length;s++)if(!n[s].isSelected(o))return!1;return!0})}}}}var Ebe=Math.PI/180;function x3(e,t,r,n,i,a,o,s,l,u){if(e.length<2)return;function c(g){for(var y=g.rB,x=y*y,S=0;S<g.list.length;S++){var b=g.list[S],w=Math.abs(b.label.y-r),T=n+b.len,C=T*T,A=Math.sqrt((1-Math.abs(w*w/x))*C),k=t+(A+b.len2)*i,I=k-b.label.x,P=b.targetTextWidth-I*i;y8(b,P,!0),b.label.x=k}}function f(g){for(var y={list:[],maxY:0},x={list:[],maxY:0},S=0;S<g.length;S++)if(g[S].labelAlignTo==="none"){var b=g[S],w=b.label.y>r?x:y,T=Math.abs(b.label.y-r);if(T>=w.maxY){var C=b.label.x-t-b.len2*i,A=n+b.len,k=Math.abs(C)<A?Math.sqrt(T*T/(1-C*C/A/A)):A;w.rB=k,w.maxY=T}w.list.push(b)}c(y),c(x)}for(var d=e.length,h=0;h<d;h++)if(e[h].position==="outer"&&e[h].labelAlignTo==="labelLine"){var v=e[h].label.x-u;e[h].linePoints[1][0]+=v,e[h].label.x=u}$j(e,l,l+o)&&f(e)}function Lbe(e,t,r,n,i,a,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<e.length;d++){var h=e[d].label;kC(e[d])||(h.x<t?(c=Math.min(c,h.x),l.push(e[d])):(f=Math.max(f,h.x),u.push(e[d])))}for(var d=0;d<e.length;d++){var v=e[d];if(!kC(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var h=v.label,g=v.linePoints,y=void 0;v.labelAlignTo==="edge"?h.x<t?y=g[2][0]-v.labelDistance-o-v.edgeDistance:y=o+i-v.edgeDistance-g[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?h.x<t?y=c-o-v.bleedMargin:y=o+i-f-v.bleedMargin:h.x<t?y=h.x-o-v.bleedMargin:y=o+i-h.x-v.bleedMargin,v.targetTextWidth=y,y8(v,y)}}x3(u,t,r,n,1,i,a,o,s,f),x3(l,t,r,n,-1,i,a,o,s,c);for(var d=0;d<e.length;d++){var v=e[d];if(!kC(v)&&v.linePoints){var h=v.label,g=v.linePoints,x=v.labelAlignTo==="edge",S=h.style.padding,b=S?S[1]+S[3]:0,w=h.style.backgroundColor?0:b,T=v.rect.width+w,C=g[1][0]-g[2][0];x?h.x<t?g[2][0]=o+v.edgeDistance+T+v.labelDistance:g[2][0]=o+i-v.edgeDistance-T-v.labelDistance:(h.x<t?g[2][0]=h.x+v.labelDistance:g[2][0]=h.x-v.labelDistance,g[1][0]=g[2][0]+C),g[1][1]=g[2][1]=h.y}}}function y8(e,t,r){if(r===void 0&&(r=!1),e.labelStyleWidth==null){var n=e.label,i=n.style,a=e.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=a.width+(o?0:l);if(t<c||r){var f=a.height;if(u&&u.match("break")){n.setStyle("backgroundColor",null),n.setStyle("width",t-l);var d=n.getBoundingRect();n.setStyle("width",Math.ceil(d.width)),n.setStyle("backgroundColor",o)}else{var h=t-l,v=t<c?h:r?h>e.unconstrainedWidth?null:h:null;n.setStyle("width",v)}var g=n.getBoundingRect();a.width=g.width;var y=(n.style.margin||0)+2.1;a.height=g.height+y,a.y-=(a.height-f)/2}}}function kC(e){return e.position==="center"}function Obe(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*Ebe,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(C){C.ignore=!0}function v(C){if(!C.ignore)return!0;for(var A in C.states)if(C.states[A].ignore===!1)return!0;return!1}t.each(function(C){var A=t.getItemGraphicEl(C),k=A.shape,I=A.getTextContent(),P=A.getTextGuideLine(),R=t.getItemModel(C),L=R.getModel("label"),O=L.get("position")||R.get(["emphasis","label","position"]),z=L.get("distanceToLabelLine"),F=L.get("alignTo"),H=xe(L.get("edgeDistance"),u),q=L.get("bleedMargin"),$=R.getModel("labelLine"),X=$.get("length");X=xe(X,u);var B=$.get("length2");if(B=xe(B,u),Math.abs(k.endAngle-k.startAngle)<o){V(I.states,h),I.ignore=!0,P&&(V(P.states,h),P.ignore=!0);return}if(v(I)){var Y=(k.startAngle+k.endAngle)/2,Z=Math.cos(Y),j=Math.sin(Y),re,ce,te,pe;n=k.cx,i=k.cy;var ae=O==="inside"||O==="inner";if(O==="center")re=k.cx,ce=k.cy,pe="center";else{var he=(ae?(k.r+k.r0)/2*Z:k.r*Z)+n,ve=(ae?(k.r+k.r0)/2*j:k.r*j)+i;if(re=he+Z*3,ce=ve+j*3,!ae){var fe=he+Z*(X+l-k.r),ge=ve+j*(X+l-k.r),Re=fe+(Z<0?-1:1)*B,Ie=ge;F==="edge"?re=Z<0?c+H:c+u-H:re=Re+(Z<0?-z:z),ce=Ie,te=[[he,ve],[fe,ge],[Re,Ie]]}pe=ae?"center":F==="edge"?Z>0?"right":"left":Z>0?"left":"right"}var $e=Math.PI,dt=0,ct=L.get("rotate");if(Dt(ct))dt=ct*($e/180);else if(O==="center")dt=0;else if(ct==="radial"||ct===!0){var bt=Z<0?-Y+$e:-Y;dt=bt}else if(ct==="tangential"&&O!=="outside"&&O!=="outer"){var At=Math.atan2(Z,j);At<0&&(At=$e*2+At);var _t=j>0;_t&&(At=$e+At),dt=At-$e}if(a=!!dt,I.x=re,I.y=ce,I.rotation=dt,I.setStyle({verticalAlign:"middle"}),ae){I.setStyle({align:pe});var Gt=I.states.select;Gt&&(Gt.x+=I.x,Gt.y+=I.y)}else{var st=I.getBoundingRect().clone();st.applyTransform(I.getComputedTransform());var rr=(I.style.margin||0)+2.1;st.y-=rr/2,st.height+=rr,r.push({label:I,labelLine:P,position:O,len:X,len2:B,minTurnAngle:$.get("minTurnAngle"),maxSurfaceAngle:$.get("maxSurfaceAngle"),surfaceNormal:new et(Z,j),linePoints:te,textAlign:pe,labelDistance:z,labelAlignTo:F,edgeDistance:H,bleedMargin:q,rect:st,unconstrainedWidth:st.width,labelStyleWidth:I.style.width})}A.setTextConfig({inside:ae})}}),!a&&e.get("avoidLabelOverlap")&&Lbe(r,n,i,l,u,d,c,f);for(var g=0;g<r.length;g++){var y=r[g],x=y.label,S=y.labelLine,b=isNaN(x.x)||isNaN(x.y);if(x){x.setStyle({align:y.textAlign}),b&&(V(x.states,h),x.ignore=!0);var w=x.states.select;w&&(w.x+=x.x,w.y+=x.y)}if(S){var T=y.linePoints;b||!T?(V(S.states,h),S.ignore=!0):(Bj(T,y.minTurnAngle),iSe(T,y.surfaceNormal,y.maxSurfaceAngle),S.setShape({points:T}),x.__hostTarget.textGuideLineConfig={anchor:new et(T[0][0],T[0][1])})}}}var Nbe=function(e){J(t,e);function t(r,n,i){var a=e.call(this)||this;a.z2=2;var o=new kt;return a.setTextContent(o),a.updateData(r,n,i,!0),a}return t.prototype.updateData=function(r,n,i,a){var o=this,s=r.hostModel,l=r.getItemModel(n),u=l.getModel("emphasis"),c=r.getItemLayout(n),f=oe(Qu(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(a){o.setShape(f);var d=s.getShallow("animationType");s.ecModel.ssr?(lr(o,{scaleX:0,scaleY:0},s,{dataIndex:n,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):d==="scale"?(o.shape.r=c.r0,lr(o,{shape:{r:c.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),lr(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,Lt(o,{shape:{endAngle:c.endAngle}},s,n))}else Na(o),Lt(o,{shape:f},s,n);o.useStyle(r.getItemVisual(n,"style")),cn(o,l);var h=(c.startAngle+c.endAngle)/2,v=s.get("selectedOffset"),g=Math.cos(h)*v,y=Math.sin(h)*v,x=l.getShallow("cursor");x&&o.attr("cursor",x),this._updateLabel(s,r,n),o.ensureState("emphasis").shape=oe({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Qu(u.getModel("itemStyle"),c)),oe(o.ensureState("select"),{x:g,y,shape:Qu(l.getModel(["select","itemStyle"]),c)}),oe(o.ensureState("blur"),{shape:Qu(l.getModel(["blur","itemStyle"]),c)});var S=o.getTextGuideLine(),b=o.getTextContent();S&&oe(S.ensureState("select"),{x:g,y}),oe(b.ensureState("select"),{x:g,y}),mr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n,i){var a=this,o=n.getItemModel(i),s=o.getModel("labelLine"),l=n.getItemVisual(i,"style"),u=l&&l.fill,c=l&&l.opacity;fn(a,Ur(o),{labelFetcher:n.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:c,defaultText:r.getFormattedLabel(i,"normal")||n.getName(i)});var f=a.getTextContent();a.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=r.get(["label","position"]);if(d!=="outside"&&d!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Gn,this.setTextGuideLine(h)),wI(this,CI(o),{stroke:u,opacity:mo(s.get(["lineStyle","opacity"]),c,1)})}},t}(Fn),zbe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i,a){var o=r.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&r.get("showEmptyCircle")){var d=m8(r),h=new Fn({shape:oe(g8(r,i),d)});h.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(v){var g=new Nbe(o,v,u);o.setItemGraphicEl(v,g),l.add(g)}).update(function(v,g){var y=s.getItemGraphicEl(g);y.updateData(o,v,u),y.off("click"),l.add(y),o.setItemGraphicEl(v,y)}).remove(function(v){var g=s.getItemGraphicEl(v);jv(g,r,v)}).execute(),Obe(r),r.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},t.prototype.dispose=function(){},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="pie",t}(Kt);function Yd(e,t,r){t=ue(t)&&{coordDimensions:t}||oe({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=zg(n,t).dimensions,a=new On(i,e);return a.initData(n,r),a}var Wg=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}(),Bbe=Tt(),Fbe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Wg(Ae(this.getData,this),Ae(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return Yd(this,{coordDimensions:["value"],encodeDefaulter:Je(rI,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=Bbe(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=kve(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){gc(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(or);function Vbe(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(Dt(o)&&!isNaN(o)&&o<0)})}}}function $be(e){e.registerChartView(zbe),e.registerSeriesModel(Fbe),BW("pie",e.registerAction),e.registerLayout(Je(Rbe,"pie")),e.registerProcessor(Hg("pie")),e.registerProcessor(Vbe("pie"))}var Gbe=function(e){J(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,n){return xs(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(or),x8=4,Hbe=function(){function e(){}return e}(),Wbe=function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new Hbe},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]<x8,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<i.length;){var d=i[f++],h=i[f++];isNaN(d)||isNaN(h)||c&&!c.contain(d,h)||(s.x=d-a[0]/2,s.y=h-a[1]/2,s.width=a[0],s.height=a[1],o.buildPath(r,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},t.prototype.afterBrush=function(){var r=this.shape,n=r.points,i=r.size,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<n.length;){var l=n[s++],u=n[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},t.prototype.findDataIndex=function(r,n){for(var i=this.shape,a=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var c=u*2,f=a[c]-s/2,d=a[c+1]-l/2;if(r>=f&&n>=d&&r<=f+s&&n<=d+l)return u}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d<i.length;){var h=i[d++],v=i[d++];l=Math.min(h,l),c=Math.max(h,c),u=Math.min(v,u),f=Math.max(v,f)}r=this._rect=new nt(l-o/2,u-s/2,c-l+o,f-u+s)}return r},t}(vt),jbe=function(){function e(){this.group=new qe}return e.prototype.updateData=function(t,r){this._clear();var n=this._create();n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,r)},e.prototype.updateLayout=function(t){var r=t.getLayout("points");this.group.eachChild(function(n){if(n.startIndex!=null){var i=(n.endIndex-n.startIndex)*2,a=n.startIndex*4*2;r=new Float32Array(r.buffer,a,i)}n.setShape("points",r),n.reset()})},e.prototype.incrementalPrepareUpdate=function(t){this._clear()},e.prototype.incrementalUpdate=function(t,r,n){var i=this._newAdded[0],a=r.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+a.length);l.set(o),l.set(a,s),i.endIndex=t.end,i.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=t.start,u.endIndex=t.end,u.incremental=!0,u.setShape({points:a}),this._setCommon(u,r,n)}},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new Wbe({cursor:"default"});return t.ignoreCoarsePointer=!0,this.group.add(t),this._newAdded.push(t),t},e.prototype._setCommon=function(t,r,n){var i=r.hostModel;n=n||{};var a=r.getVisual("symbolSize");t.setShape("size",a instanceof Array?a:[a,a]),t.softClipShape=n.clipShape||null,t.symbolProxy=Er(r.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<x8;t.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=r.getVisual("style"),l=s&&s.fill;l&&t.setColor(l);var u=Ze(t);u.seriesIndex=i.seriesIndex,t.on("mousemove",function(c){u.dataIndex=null;var f=t.hoverDataIdx;f>=0&&(u.dataIndex=f+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),Ube=function(e){J(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 a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,{clipShape:this._getClipShape(r)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},t.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=Gg("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._getClipShape=function(r){if(r.get("clip",!0)){var n=r.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new jbe:new Vg,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(Kt),Ybe=function(e){J(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}(xt),xA=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Rr).models[0]},t.type="cartesian2dAxis",t}(xt);Lr(xA,Bg);var S8={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)"]}}},qbe=rt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},S8),DI=rt({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}}},S8),Xbe=rt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},DI),Zbe=Ve({logBase:10},DI);const b8={category:qbe,value:DI,time:Xbe,log:Zbe};var Kbe={value:1,category:1,time:1,log:1};function wd(e,t,r,n){V(Kbe,function(i,a){var o=rt(rt({},b8[a],!0),n,!0),s=function(l){J(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=Yv(this),h=d?$d(c):{},v=f.getTheme();rt(c,v.get(a+"Axis")),rt(c,this.getDefaultOption()),c.type=S3(c),d&&Al(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=dA.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",S3)}function S3(e){return e.type||(e.data?"category":"value")}var Qbe=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 de(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),jt(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}(),SA=["x","y"];function b3(e){return e.type==="interval"||e.type==="time"}var Jbe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=SA,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!b3(r)||!b3(n))){var i=r.getExtent(),a=n.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-i[0]*c,h=o[1]-a[0]*f,v=this._transform=[c,0,0,f,d,h];this._invTransform=Ed([],v)}}},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),a=this.dataToPoint(n),o=this.getArea(),s=new nt(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return un(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return un(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.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(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new nt(a,o,s,l)},t}(Qbe),e_e=function(e){J(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"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}(Fa);function bA(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=n.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,v=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(o){var g=o.toGlobalCoord(o.dataToCoord(0));v[d.onZero]=Math.max(Math.min(g,v[1]),v[0])}a.position=[u==="y"?v[d[l]]:f[0],u==="x"?v[d[l]]:f[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var y={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=y[s],a.labelOffset=o?v[d[s]]-v[d.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),Jr(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var x=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-x:x,a.z2=1,a}function _3(e){return e.get("coordinateSystem")==="cartesian2d"}function w3(e){var t={xAxisModel:null,yAxisModel:null};return V(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,Rr).models[0];t[n]=a}),t}var IC=Math.log;function _8(e,t,r){var n=ds.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=Tj(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=IC(e.base);u=[IC(u[0])/d,IC(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var h=n.getExtent.call(e);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var v=n.getInterval.call(e),g=u[0],y=u[1];if(c&&f)v=(y-g)/o;else if(c)for(y=u[0]+v*o;y<u[1]&&isFinite(y)&&isFinite(u[1]);)v=pC(v),y=u[0]+v*o;else if(f)for(g=u[1]-v*o;g>u[0]&&isFinite(g)&&isFinite(u[0]);)v=pC(v),g=u[1]-v*o;else{var x=e.getTicks().length-1;x>o&&(v=pC(v));var S=v*o;y=Math.ceil(u[1]/v)*v,g=br(y-S),g<0&&u[0]>=0?(g=0,y=br(S)):y>0&&u[1]<=0&&(y=0,g=-br(S))}var b=(i[0].value-a[0].value)/s,w=(i[o].value-a[o].value)/s;n.setExtent.call(e,g+v*b,y+v*w),n.setInterval.call(e,v),(b||w)&&n.setNiceExtent.call(e,g+v,y-v)}var t_e=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=SA,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(o){var s,l=St(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=o[d],v=h.model,g=h.scale;hA(g)&&v.get("alignTicks")&&v.get("interval")==null?c.push(h):(bd(g,v),hA(g)&&(s=h))}c.length&&(s||(s=c.pop(),bd(s.scale,s.model)),V(c,function(y){_8(y.scale,y.model,s.scale)}))}}i(n.x),i(n.y);var a={};V(n.x,function(o){C3(n,"y",o,a)}),V(n.y,function(o){C3(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=Fr(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(V(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=Oxe(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),V(this._coordsList,function(u){u.calcAffineTransform()});function l(){V(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),r_e(u,c?o.x:o.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]}Ge(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===t||a[i].getAxis("y").index===r)return a[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",Rr).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",Rr).models[0],a=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,ft(o,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(a){var u=a.coordinateSystem;u===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,a=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(r.eachComponent("xAxis",u("x"),this),r.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,V(s.x,function(c,f){V(s.y,function(d,h){var v="x"+f+"y"+h,g=new Jbe(v);g.master=i,g.model=t,i._coordsMap[v]=g,i._coordsList.push(g),g.addAxis(c),g.addAxis(d)})});function u(c){return function(f,d){if(PC(f,t)){var h=f.get("position");c==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var v=new e_e(c,MS(f),[0,0],f.get("type"),h),g=v.type==="category";v.onBand=g&&f.get("boundaryGap"),v.inverse=f.get("inverse"),f.axis=v,v.model=f,v.grid=a,v.index=d,a._axesList.push(v),s[c][d]=v,l[c]++}}}},e.prototype._updateScale=function(t,r){V(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),t.eachSeries(function(i){if(_3(i)){var a=w3(i),o=a.xAxisModel,s=a.yAxisModel;if(!PC(o,r)||!PC(s,r))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),c=l.getAxis("x"),f=l.getAxis("y");n(u,c),n(u,f)}},this);function n(i,a){V(H1(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return V(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);ft(r,a)<0&&r.push(a),ft(n,o)<0&&n.push(o)}),{baseAxes:r,otherAxes:n}},e.create=function(t,r){var n=[];return t.eachComponent("grid",function(i,a){var o=new e(i,t,r);o.name="grid_"+a,o.resize(i,r,!0),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(i){if(_3(i)){var a=w3(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},e.dimensions=SA,e}();function PC(e,t){return e.getCoordSysModel()===t}function C3(e,t,r,n){r.getAxesOnZeroOf=function(){return a?[a]:[]};var i=e[t],a,o=r.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)T3(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&T3(i[u])&&!n[c(i[u])]){a=i[u];break}a&&(n[c(a)]=!0);function c(f){return f.dim+"_"+f.index}}function T3(e){return e&&e.type!=="category"&&e.type!=="time"&&Lxe(e)}function r_e(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 fl=Math.PI,Nn=function(){function e(t,r){this.group=new qe,this.opt=r,this.axisModel=t,Ve(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new qe({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!A3[t]},e.prototype.add=function(t){A3[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var i=FG(r-t),a,o;return $v(i)?(o=n>0?"top":"bottom",a="center"):$v(i-fl)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<fl?a=n>0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},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}(),A3={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(un(s,s,o),un(l,l,o));var c=oe({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Hr({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});yd(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var h=t.get(["axisLine","symbolSize"]);we(d)&&(d=[d,d]),(we(h)||Dt(h))&&(h=[h,h]);var v=Ic(t.get(["axisLine","symbolOffset"])||0,h),g=h[0],y=h[1];V([{rotate:e.rotation+Math.PI/2,offset:v[0],r:0},{rotate:e.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(x,S){if(d[S]!=="none"&&d[S]!=null){var b=Er(d[S],-g/2,-y/2,g,y,c.stroke,!0),w=x.r+x.offset,T=u?l:s;b.attr({rotation:x.rotate,x:T[0]+w*Math.cos(e.rotation),y:T[1]-w*Math.sin(e.rotation),silent:!0,z2:11}),r.add(b)}})}}},axisTickLabel:function(e,t,r,n){var i=a_e(r,n,t,e),a=s_e(r,n,t,e);if(i_e(t,a,i),o_e(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Fj(de(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Gj(o)}},axisName:function(e,t,r,n){var i=Jr(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,k3(a)?e.labelOffset+o*l:0],d,h=t.get("nameRotate");h!=null&&(h=h*fl/180);var v;k3(a)?d=Nn.innerTextLayout(e.rotation,h??e.rotation,o):(d=n_e(e.rotation,a,h||0,u),v=e.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(d.rotation)),!isFinite(v)&&(v=null)));var g=s.getFont(),y=t.get("nameTruncate",!0)||{},x=y.ellipsis,S=Jr(e.nameTruncateMaxWidth,y.maxWidth,v),b=new kt({x:f[0],y:f[1],rotation:d.rotation,silent:Nn.isLabelSilent(t),style:ar(s,{text:i,font:g,overflow:"truncate",width:S,ellipsis:x,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(zd({el:b,componentModel:t,itemName:i}),b.__fullText=i,b.anid="name",t.get("triggerEvent")){var w=Nn.makeAxisEventDataBase(t);w.targetType="axisName",w.name=i,Ze(b).eventData=w}n.add(b),b.updateTransform(),r.add(b),b.decomposeTransform()}}};function n_e(e,t,r,n){var i=FG(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return $v(i-fl/2)?(o=l?"bottom":"top",a="center"):$v(i-fl*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<fl*1.5&&i>fl/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function i_e(e,t,r){if(!Aj(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],f=r[r.length-1],d=r[r.length-2];n===!1?(zi(a),zi(u)):M3(a,o)&&(n?(zi(o),zi(c)):(zi(a),zi(u))),i===!1?(zi(s),zi(f)):M3(l,s)&&(i?(zi(l),zi(d)):(zi(s),zi(f)))}}function zi(e){e&&(e.ignore=!0)}function M3(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=Qx([]);return Mc(i,i,-e.rotation),r.applyTransform(es([],i,e.getLocalTransform())),n.applyTransform(es([],i,t.getLocalTransform())),r.intersect(n)}}function k3(e){return e==="middle"||e==="center"}function w8(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l<e.length;l++){var u=e[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=r,t&&(un(o,o,t),un(s,s,t));var c=new Hr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});yd(c.shape,c.style.lineWidth),c.anid=i+"_"+e[l].tickValue,a.push(c)}return a}function a_e(e,t,r,n){var i=r.axis,a=r.getModel("axisTick"),o=a.get("show");if(o==="auto"&&n.handleAutoShown&&(o=n.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=n.tickDirection*a.get("length"),u=i.getTicksCoords(),c=w8(u,t.transform,l,Ve(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function o_e(e,t,r,n){var i=r.axis,a=r.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=n*a.get("length"),u=Ve(s.getLineStyle(),Ve(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=w8(o[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}function s_e(e,t,r,n){var i=r.axis,a=Jr(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(Jr(n.labelRotate,o.get("rotate"))||0)*fl/180,c=Nn.innerTextLayout(n.rotation,u,n.labelDirection),f=r.getCategories&&r.getCategories(!0),d=[],h=Nn.isLabelSilent(r),v=r.get("triggerEvent");return V(l,function(g,y){var x=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(g.tickValue):g.tickValue,S=g.formattedLabel,b=g.rawLabel,w=o;if(f&&f[x]){var T=f[x];Ge(T)&&T.textStyle&&(w=new Ft(T.textStyle,o,r.ecModel))}var C=w.getTextColor()||r.get(["axisLine","lineStyle","color"]),A=i.dataToCoord(x),k=w.getShallow("align",!0)||c.textAlign,I=Qe(w.getShallow("alignMinLabel",!0),k),P=Qe(w.getShallow("alignMaxLabel",!0),k),R=w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||c.textVerticalAlign,L=Qe(w.getShallow("verticalAlignMinLabel",!0),R),O=Qe(w.getShallow("verticalAlignMaxLabel",!0),R),z=new kt({x:A,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(g.level||0),style:ar(w,{text:S,align:y===0?I:y===l.length-1?P:k,verticalAlign:y===0?L:y===l.length-1?O:R,fill:Be(C)?C(i.type==="category"?b:i.type==="value"?x+"":x,y):C})});if(z.anid="label_"+x,v){var F=Nn.makeAxisEventDataBase(r);F.targetType="axisLabel",F.value=b,F.tickIndex=y,i.type==="category"&&(F.dataIndex=x),Ze(z).eventData=F}t.add(z),z.updateTransform(),d.push(z),e.add(z),z.decomposeTransform()}),d}}function l_e(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return u_e(r,e,t),r.seriesInvolved&&f_e(r,e),r}function u_e(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];V(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=rg(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if(V(s.getAxes(),Je(g,!1,null)),s.getTooltipAxes&&n&&f.get("show")){var d=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||h)&&V(v.baseAxes,Je(g,h?"cross":!0,d)),h&&V(v.otherAxes,Je(g,"cross",!1))}function g(y,x,S){var b=S.model.getModel("axisPointer",i),w=b.get("show");if(!(!w||w==="auto"&&!y&&!_A(b))){x==null&&(x=b.get("triggerTooltip")),b=y?c_e(S,f,i,t,y,x):b;var T=b.get("snap"),C=b.get("triggerEmphasis"),A=rg(S.model),k=x||T||S.type==="category",I=e.axesInfo[A]={key:A,axis:S,coordSys:s,axisPointerModel:b,triggerTooltip:x,triggerEmphasis:C,involveSeries:k,snap:T,useHandle:_A(b),seriesModels:[],linkGroup:null};u[A]=I,e.seriesInvolved=e.seriesInvolved||k;var P=d_e(a,S);if(P!=null){var R=o[P]||(o[P]={axesInfo:{}});R.axesInfo[A]=I,R.mapper=a[P].mapper,I.linkGroup=R}}}})}function c_e(e,t,r,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};V(s,function(d){l[d]=We(o.get(d))}),l.snap=e.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!a){var f=l.lineStyle=o.get("crossStyle");f&&Ve(u,f.textStyle)}}return e.model.getModel("axisPointer",new Ft(l,r,n))}function f_e(e,t){t.eachSeries(function(r){var n=r.coordinateSystem,i=r.get(["tooltip","trigger"],!0),a=r.get(["tooltip","show"],!0);!n||i==="none"||i===!1||i==="item"||a===!1||r.get(["axisPointer","show"],!0)===!1||V(e.coordSysAxesInfo[rg(n.model)],function(o){var s=o.axis;n.getAxis(s.dim)===s&&(o.seriesModels.push(r),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=r.getData().count())})})}function d_e(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(DC(a[n+"AxisId"],r.id)||DC(a[n+"AxisIndex"],r.componentIndex)||DC(a[n+"AxisName"],r.name))return i}}function DC(e,t){return e==="all"||ue(e)&&ft(e,t)>=0||e===t}function h_e(e){var t=RI(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=_A(r);a==null&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function RI(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[rg(e)]}function p_e(e){var t=RI(e);return t&&t.axisPointerModel}function _A(e){return!!e.get(["handle","show"])}function rg(e){return e.type+"||"+e.id}var I3={},Rc=function(e){J(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,a){this.axisPointerClass&&h_e(r),e.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(r,i,!0)},t.prototype.updateAxisPointer=function(r,n,i,a){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 a=t.getAxisPointerClass(this.axisPointerClass);if(a){var o=p_e(r);o?(this._axisPointer||(this._axisPointer=new a)).render(r,o,n,i):this._disposeAxisPointer(n)}},t.prototype._disposeAxisPointer=function(r){this._axisPointer&&this._axisPointer.dispose(r),this._axisPointer=null},t.registerAxisPointerClass=function(r,n){I3[r]=n},t.getAxisPointerClass=function(r){return r&&I3[r]},t.type="axis",t}(dr),wA=Tt();function C8(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=n.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var c=s.length,f=wA(e).splitAreaColors,d=Oe(),h=0;if(f)for(var v=0;v<u.length;v++){var g=f.get(u[v].tickValue);if(g!=null){h=(g+(c-1)*v)%c;break}}var y=i.toGlobalCoord(u[0].coord),x=o.getAreaStyle();s=ue(s)?s:[s];for(var v=1;v<u.length;v++){var S=i.toGlobalCoord(u[v].coord),b=void 0,w=void 0,T=void 0,C=void 0;i.isHorizontal()?(b=y,w=l.y,T=S-b,C=l.height,y=b+T):(b=l.x,w=y,T=l.width,C=S-w,y=w+C);var A=u[v-1].tickValue;A!=null&&d.set(A,h),t.add(new Ct({anid:A!=null?"area_"+A:null,shape:{x:b,y:w,width:T,height:C},style:Ve({fill:s[h]},x),autoBatch:!0,silent:!0})),h=(h+1)%c}wA(e).splitAreaColors=d}}}function T8(e){wA(e).splitAreaColors=null}var v_e=["axisLine","axisTickLabel","axisName"],g_e=["splitArea","splitLine","minorSplitLine"],A8=function(e){J(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,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new qe,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=bA(s,r),u=new Nn(r,oe({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(hA(d[h].getOtherAxis(r.axis).scale))return!0;return!1}},l));V(v_e,u.add,u),this._axisGroup.add(u.getGroup()),V(g_e,function(f){r.get([f,"show"])&&m_e[f](this,this._axisGroup,r,s)},this);var c=a&&a.type==="changeAxisOrder"&&a.isInitSort;c||Eg(o,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)}},t.prototype.remove=function(){T8(this)},t.type="cartesianAxis",t}(Rc),m_e={splitLine:function(e,t,r,n){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=ue(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,f=i.getTicksCoords({tickModel:a}),d=[],h=[],v=o.getLineStyle(),g=0;g<f.length;g++){var y=i.toGlobalCoord(f[g].coord);u?(d[0]=y,d[1]=l.y,h[0]=y,h[1]=l.y+l.height):(d[0]=l.x,d[1]=y,h[0]=l.x+l.width,h[1]=y);var x=c++%s.length,S=f[g].tickValue,b=new Hr({anid:S!=null?"line_"+f[g].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:Ve({stroke:s[x]},v),silent:!0});yd(b.shape,v.lineWidth),t.add(b)}}},minorSplitLine:function(e,t,r,n){var i=r.axis,a=r.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=n.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],f=[],d=o.getLineStyle(),h=0;h<u.length;h++)for(var v=0;v<u[h].length;v++){var g=i.toGlobalCoord(u[h][v].coord);l?(c[0]=g,c[1]=s.y,f[0]=g,f[1]=s.y+s.height):(c[0]=s.x,c[1]=g,f[0]=s.x+s.width,f[1]=g);var y=new Hr({anid:"minor_line_"+u[h][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});yd(y.shape,d.lineWidth),t.add(y)}},splitArea:function(e,t,r,n){C8(e,t,r,n)}},M8=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="xAxis",t}(A8),y_e=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=M8.type,r}return t.type="yAxis",t}(A8),x_e=function(e){J(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 Ct({shape:r.coordinateSystem.getRect(),style:Ve({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(dr),P3={offset:0};function k8(e){e.registerComponentView(x_e),e.registerComponentModel(Ybe),e.registerCoordinateSystem("cartesian2d",t_e),wd(e,"x",xA,P3),wd(e,"y",xA,P3),e.registerComponentView(M8),e.registerComponentView(y_e),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function S_e(e){pt(k8),e.registerSeriesModel(Gbe),e.registerChartView(Ube),e.registerLayout(Gg("scatter"))}function b_e(e){e.eachSeriesByType("radar",function(t){var r=t.getData(),n=[],i=t.coordinateSystem;if(i){var a=i.getIndicatorAxes();V(a,function(o,s){r.each(r.mapDimension(a[s].dim),function(l,u){n[u]=n[u]||[];var c=i.dataToPoint(l,s);n[u][s]=D3(c)?c:R3(i)})}),r.each(function(o){var s=rpe(n[o],function(l){return D3(l)})||R3(i);n[o].push(s.slice()),r.setItemLayout(o,n[o])})}})}function D3(e){return!isNaN(e[0])&&!isNaN(e[1])}function R3(e){return[e.cx,e.cy]}function __e(e){var t=e.polar;if(t){ue(t)||(t=[t]);var r=[];V(t,function(n,i){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),e.radar=e.radar||[],ue(e.radar)||(e.radar=[e.radar]),e.radar.push(n)):r.push(n)}),e.polar=r}V(e.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var w_e=function(e){J(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 a=r.coordinateSystem,o=this.group,s=r.getData(),l=this._data;function u(d,h){var v=d.getItemVisual(h,"symbol")||"circle";if(v!=="none"){var g=jd(d.getItemVisual(h,"symbolSize")),y=Er(v,-1,-1,2,2),x=d.getItemVisual(h,"symbolRotate")||0;return y.attr({style:{strokeNoScale:!0},z2:100,scaleX:g[0]/2,scaleY:g[1]/2,rotation:x*Math.PI/180||0}),y}}function c(d,h,v,g,y,x){v.removeAll();for(var S=0;S<h.length-1;S++){var b=u(g,y);b&&(b.__dimIdx=S,d[S]?(b.setPosition(d[S]),kc[x?"initProps":"updateProps"](b,{x:h[S][0],y:h[S][1]},r,y)):b.setPosition(h[S]),v.add(b))}}function f(d){return de(d,function(h){return[a.cx,a.cy]})}s.diff(l).add(function(d){var h=s.getItemLayout(d);if(h){var v=new Vn,g=new Gn,y={shape:{points:h}};v.shape.points=f(h),g.shape.points=f(h),lr(v,y,r,d),lr(g,y,r,d);var x=new qe,S=new qe;x.add(g),x.add(v),x.add(S),c(g.shape.points,h,S,s,d,!0),s.setItemGraphicEl(d,x)}}).update(function(d,h){var v=l.getItemGraphicEl(h),g=v.childAt(0),y=v.childAt(1),x=v.childAt(2),S={shape:{points:s.getItemLayout(d)}};S.shape.points&&(c(g.shape.points,S.shape.points,x,s,d,!1),Na(y),Na(g),Lt(g,S,r),Lt(y,S,r),s.setItemGraphicEl(d,v))}).remove(function(d){o.remove(l.getItemGraphicEl(d))}).execute(),s.eachItemGraphicEl(function(d,h){var v=s.getItemModel(h),g=d.childAt(0),y=d.childAt(1),x=d.childAt(2),S=s.getItemVisual(h,"style"),b=S.fill;o.add(d),g.useStyle(Ve(v.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:b})),cn(g,v,"lineStyle"),cn(y,v,"areaStyle");var w=v.getModel("areaStyle"),T=w.isEmpty()&&w.parentModel.isEmpty();y.ignore=T,V(["emphasis","select","blur"],function(k){var I=v.getModel([k,"areaStyle"]),P=I.isEmpty()&&I.parentModel.isEmpty();y.ensureState(k).ignore=P&&T}),y.useStyle(Ve(w.getAreaStyle(),{fill:b,opacity:.7,decal:S.decal}));var C=v.getModel("emphasis"),A=C.getModel("itemStyle").getItemStyle();x.eachChild(function(k){if(k instanceof en){var I=k.style;k.useStyle(oe({image:I.image,x:I.x,y:I.y,width:I.width,height:I.height},S))}else k.useStyle(S),k.setColor(b),k.style.strokeNoScale=!0;var P=k.ensureState("emphasis");P.style=We(A);var R=s.getStore().get(s.getDimensionIndex(k.__dimIdx),h);(R==null||isNaN(R))&&(R=""),fn(k,Ur(v),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:k.__dimIdx,defaultText:R,inheritColor:b,defaultOpacity:S.opacity})}),mr(d,C.get("focus"),C.get("blurScope"),C.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type="radar",t}(Kt),C_e=function(e){J(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.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Wg(Ae(this.getData,this),Ae(this.getRawData,this))},t.prototype.getInitialData=function(r,n){return Yd(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(r),u=l===""?this.name:l,c=AW(this,r);return Yr("section",{header:u,sortBlocks:!0,blocks:de(s,function(f){var d=a.get(a.mapDimension(f.dim),r);return Yr("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:d,sortParam:d})})})},t.prototype.getTooltipPosition=function(r){if(r!=null){for(var n=this.getData(),i=this.coordinateSystem,a=n.getValues(de(i.dimensions,function(u){return n.mapDimension(u)}),r),o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var l=i.getIndicatorAxes();return i.coordToPoint(l[o].dataToCoord(a[o]),o)}}},t.type="series.radar",t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t}(or),xp=b8.value;function c0(e,t){return Ve({show:t},e)}var T_e=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){var r=this.get("boundaryGap"),n=this.get("splitNumber"),i=this.get("scale"),a=this.get("axisLine"),o=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),d=this.get("triggerEvent"),h=de(this.get("indicator")||[],function(v){v.max!=null&&v.max>0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var g=l;v.color!=null&&(g=Ve({color:v.color},l));var y=rt(We(v),{boundaryGap:r,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:v.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:g,triggerEvent:d},!1);if(we(c)){var x=y.name;y.name=c.replace("{value}",x??"")}else Be(c)&&(y.name=c(y.name,y));var S=new Ft(y,null,this.ecModel);return Lr(S,Bg.prototype),S.mainType="radar",S.componentIndex=this.componentIndex,S},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:rt({lineStyle:{color:"#bbb"}},xp.axisLine),axisLabel:c0(xp.axisLabel,!1),axisTick:c0(xp.axisTick,!1),splitLine:c0(xp.splitLine,!0),splitArea:c0(xp.splitArea,!0),indicator:[]},t}(xt),A_e=["axisLine","axisTickLabel","axisName"],M_e=function(e){J(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 a=this.group;a.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},t.prototype._buildAxes=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes(),a=de(i,function(o){var s=o.model.get("showName")?o.name:"",l=new Nn(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});V(a,function(o){V(A_e,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),d=l.get("color"),h=u.get("color"),v=ue(d)?d:[d],g=ue(h)?h:[h],y=[],x=[];function S(F,H,q){var $=q%H.length;return F[$]=F[$]||[],$}if(a==="circle")for(var b=i[0].getTicksCoords(),w=n.cx,T=n.cy,C=0;C<b.length;C++){if(c){var A=S(y,v,C);y[A].push(new ys({shape:{cx:w,cy:T,r:b[C].coord}}))}if(f&&C<b.length-1){var A=S(x,g,C);x[A].push(new Pg({shape:{cx:w,cy:T,r0:b[C].coord,r:b[C+1].coord}}))}}else for(var k,I=de(i,function(F,H){var q=F.getTicksCoords();return k=k==null?q.length-1:Math.min(q.length-1,k),de(q,function($){return n.coordToPoint($.coord,H)})}),P=[],C=0;C<=k;C++){for(var R=[],L=0;L<i.length;L++)R.push(I[L][C]);if(R[0]&&R.push(R[0].slice()),c){var A=S(y,v,C);y[A].push(new Gn({shape:{points:R}}))}if(f&&P){var A=S(x,g,C-1);x[A].push(new Vn({shape:{points:R.concat(P)}}))}P=R.slice().reverse()}var O=l.getLineStyle(),z=u.getAreaStyle();V(x,function(F,H){this.group.add(Zi(F,{style:Ve({stroke:"none",fill:g[H%g.length]},z),silent:!0}))},this),V(y,function(F,H){this.group.add(Zi(F,{style:Ve({fill:"none",stroke:v[H%v.length]},O),silent:!0}))},this)},t.type="radar",t}(dr),k_e=function(e){J(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.type="value",a.angle=0,a.name="",a}return t}(Fa),I_e=function(){function e(t,r,n){this.dimensions=[],this._model=t,this._indicatorAxes=de(t.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new k_e(o,new ds);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(t,n)}return e.prototype.getIndicatorAxes=function(){return this._indicatorAxes},e.prototype.dataToPoint=function(t,r){var n=this._indicatorAxes[r];return this.coordToPoint(n.dataToCoord(t),r)},e.prototype.coordToPoint=function(t,r){var n=this._indicatorAxes[r],i=n.angle,a=this.cx+t*Math.cos(i),o=this.cy-t*Math.sin(i);return[a,o]},e.prototype.pointToData=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(r*r+n*n);r/=i,n/=i;for(var a=Math.atan2(-n,r),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(a-c.angle);f<o&&(s=c,l=u,o=f)}return[l,+(s&&s.coordToData(i))]},e.prototype.resize=function(t,r){var n=t.get("center"),i=r.getWidth(),a=r.getHeight(),o=Math.min(i,a)/2;this.cx=xe(n[0],i),this.cy=xe(n[1],a),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(we(s)||Dt(s))&&(s=[0,s]),this.r0=xe(s[0],o),this.r=xe(s[1],o),V(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},e.prototype.update=function(t,r){var n=this._indicatorAxes,i=this._model;V(n,function(s){s.scale.setExtent(1/0,-1/0)}),t.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||t.getComponent("radar",s.get("radarIndex"))!==i)){var u=s.getData();V(n,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var a=i.get("splitNumber"),o=new ds;o.setExtent(0,a),o.setInterval(1),V(n,function(s,l){_8(s.scale,s.model,o)})},e.prototype.convertToPixel=function(t,r,n){return console.warn("Not implemented."),null},e.prototype.convertFromPixel=function(t,r,n){return console.warn("Not implemented."),null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.create=function(t,r){var n=[];return t.eachComponent("radar",function(i){var a=new e(i,t,r);n.push(a),i.coordinateSystem=a}),t.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=n[i.get("radarIndex")||0])}),n},e.dimensions=[],e}();function P_e(e){e.registerCoordinateSystem("radar",I_e),e.registerComponentModel(T_e),e.registerComponentView(M_e),e.registerVisual({seriesType:"radar",reset:function(t){var r=t.getData();r.each(function(n){r.setItemVisual(n,"legendIcon","roundRect")}),r.setVisual("legendIcon","roundRect")}})}function D_e(e){pt(P_e),e.registerChartView(w_e),e.registerSeriesModel(C_e),e.registerLayout(b_e),e.registerProcessor(Hg("radar")),e.registerPreprocessor(__e)}var E3="\0_ec_interaction_mutex";function R_e(e,t,r){var n=EI(e);n[t]=r}function E_e(e,t,r){var n=EI(e),i=n[t];i===r&&(n[t]=null)}function L3(e,t){return!!EI(e)[t]}function EI(e){return e[E3]||(e[E3]={})}Ro({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Mr);var jg=function(e){J(t,e);function t(r){var n=e.call(this)||this;n._zr=r;var i=Ae(n._mousedownHandler,n),a=Ae(n._mousemoveHandler,n),o=Ae(n._mouseupHandler,n),s=Ae(n._mousewheelHandler,n),l=Ae(n._pinchHandler,n);return n.enable=function(u,c){this.disable(),this._opt=Ve(We(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(r.on("mousedown",i),r.on("mousemove",a),r.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(r.on("mousewheel",s),r.on("pinch",l))},n.disable=function(){r.off("mousedown",i),r.off("mousemove",a),r.off("mouseup",o),r.off("mousewheel",s),r.off("pinch",l)},n}return t.prototype.isDragging=function(){return this._dragging},t.prototype.isPinching=function(){return this._pinching},t.prototype.setPointerChecker=function(r){this.pointerChecker=r},t.prototype.dispose=function(){this.disable()},t.prototype._mousedownHandler=function(r){if(!cN(r)){for(var n=r.target;n;){if(n.draggable)return;n=n.__hostTarget||n.parent}var i=r.offsetX,a=r.offsetY;this.pointerChecker&&this.pointerChecker(r,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},t.prototype._mousemoveHandler=function(r){if(!(!this._dragging||!q0("moveOnMouseMove",r,this._opt)||r.gestureEvent==="pinch"||L3(this._zr,"globalPan"))){var n=r.offsetX,i=r.offsetY,a=this._x,o=this._y,s=n-a,l=i-o;this._x=n,this._y=i,this._opt.preventDefaultMouseMove&&ss(r.event),I8(this,"pan","moveOnMouseMove",r,{dx:s,dy:l,oldX:a,oldY:o,newX:n,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(r){cN(r)||(this._dragging=!1)},t.prototype._mousewheelHandler=function(r){var n=q0("zoomOnMouseWheel",r,this._opt),i=q0("moveOnMouseWheel",r,this._opt),a=r.wheelDelta,o=Math.abs(a),s=r.offsetX,l=r.offsetY;if(!(a===0||!n&&!i)){if(n){var u=o>3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;RC(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var f=Math.abs(a),d=(a>0?1:-1)*(f>3?.4:f>1?.15:.05);RC(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!L3(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;RC(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(sa);function RC(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(ss(n.event),I8(e,t,r,n,i))}function I8(e,t,r,n,i){i.isAvailableBehavior=Ae(q0,null,r,n),e.trigger(t,i)}function q0(e,t,r){var n=r[e];return!e||n&&(!we(n)||t.event[n+"Key"])}function LI(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function OI(e,t,r,n){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,i.x-=(r-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var L_e={axisPointer:1,tooltip:1,brush:1};function IS(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!L_e.hasOwnProperty(n.mainType)&&i&&i.model!==r}function P8(e){if(we(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var r=e;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var EC,q1={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},O3=St(q1),X1={"alignment-baseline":"textBaseline","stop-color":"stopColor"},N3=St(X1),O_e=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=P8(t);this._defsUsePending=[];var i=new qe;this._root=i;var a=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||r.width),l=parseFloat(n.getAttribute("height")||r.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),mi(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;B_e(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=PS(o);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&s!=null&&l!=null&&(f=R8(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var h=i;i=new qe,i.add(h),h.scaleX=h.scaleY=f.scale,h.x=f.x,h.y=f.y}return!r.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new Ct({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:a}},e.prototype._parseNode=function(t,r,n,i,a,o){var s=t.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!a){var c=EC[s];if(c&&Pe(EC,s)){l=c.call(this,t,r);var f=t.getAttribute("name");if(f){var d={name:f,namedFrom:null,svgNodeTagLower:s,el:l};n.push(d),s==="g"&&(u=d)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});r.add(l)}}var h=z3[s];if(h&&Pe(z3,s)){var v=h.call(this,t),g=t.getAttribute("id");g&&(this._defs[g]=v)}}if(l&&l.isGroup)for(var y=t.firstChild;y;)y.nodeType===1?this._parseNode(y,l,n,u,a,o):y.nodeType===3&&o&&this._parseText(y,l),y=y.nextSibling},e.prototype._parseText=function(t,r){var n=new md({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Bi(r,n),mi(t,n,this._defsUsePending,!1,!1),N_e(n,r);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},e.internalField=function(){EC={g:function(t,r){var n=new qe;return Bi(r,n),mi(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new Ct;return Bi(r,n),mi(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,r){var n=new ys;return Bi(r,n),mi(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,r){var n=new Hr;return Bi(r,n),mi(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,r){var n=new lS;return Bi(r,n),mi(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,r){var n=t.getAttribute("points"),i;n&&(i=V3(n));var a=new Vn({shape:{points:i||[]},silent:!0});return Bi(r,a),mi(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=V3(n));var a=new Gn({shape:{points:i||[]},silent:!0});return Bi(r,a),mi(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new en;return Bi(r,n),mi(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,r){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new qe;return Bi(r,s),mi(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,r){var n=t.getAttribute("x"),i=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new qe;return Bi(r,s),mi(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(t,r){var n=t.getAttribute("d")||"",i=SH(n);return Bi(r,i),mi(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),z3={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),n=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),a=new Rg(t,r,n,i);return B3(e,a),F3(e,a),a},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),n=parseInt(e.getAttribute("r")||"0",10),i=new CH(t,r,n);return B3(e,i),F3(e,i),i}};function B3(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function F3(e,t){for(var r=e.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};D8(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function Bi(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Ve(t.__inheritedStyle,e.__inheritedStyle))}function V3(e){for(var t=PS(e),r=[],n=0;n<t.length;n+=2){var i=parseFloat(t[n]),a=parseFloat(t[n+1]);r.push([i,a])}return r}function mi(e,t,r,n,i){var a=t,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};e.nodeType===1&&($_e(e,t),D8(e,o,s),n||G_e(e,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=$3(a,"fill",o.fill,r)),o.stroke!=null&&(a.style.stroke=$3(a,"stroke",o.stroke,r)),V(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(a.style[l]=parseFloat(o[l]))}),V(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(a.style[l]=o[l])}),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=de(PS(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(a.invisible=!0),o.display==="none"&&(a.ignore=!0)}function N_e(e,t){var r=t.__selfStyle;if(r){var n=r.textBaseline,i=n;!n||n==="auto"||n==="baseline"?i="alphabetic":n==="before-edge"||n==="text-before-edge"?i="top":n==="after-edge"||n==="text-after-edge"?i="bottom":(n==="central"||n==="mathematical")&&(i="middle"),e.style.textBaseline=i}var a=t.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&(o==="middle"&&(s="center"),e.style.textAlign=s)}}var z_e=/^url\(\s*#(.*?)\)/;function $3(e,t,r,n){var i=r&&r.match(z_e);if(i){var a=Aa(i[1]);n.push([e,t,a]);return}return r==="none"&&(r=null),r}function B_e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n[0].style[n[1]]=e[n[2]]}}var F_e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function PS(e){return e.match(F_e)||[]}var V_e=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,LC=Math.PI/180;function $_e(e,t){var r=e.getAttribute("transform");if(r){r=r.replace(/,/g," ");var n=[],i=null;r.replace(V_e,function(f,d,h){return n.push(d,h),""});for(var a=n.length-1;a>0;a-=2){var o=n[a],s=n[a-1],l=PS(o);switch(i=i||wi(),s){case"translate":To(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Pk(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Mc(i,i,-parseFloat(l[0])*LC,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*LC);es(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*LC);es(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}t.setLocalTransform(i)}}var G3=/([^\s:;]+)\s*:\s*([^:;]+)/g;function D8(e,t,r){var n=e.getAttribute("style");if(n){G3.lastIndex=0;for(var i;(i=G3.exec(n))!=null;){var a=i[1],o=Pe(q1,a)?q1[a]:null;o&&(t[o]=i[2]);var s=Pe(X1,a)?X1[a]:null;s&&(r[s]=i[2])}}}function G_e(e,t,r){for(var n=0;n<O3.length;n++){var i=O3[n],a=e.getAttribute(i);a!=null&&(t[q1[i]]=a)}for(var n=0;n<N3.length;n++){var i=N3[n],a=e.getAttribute(i);a!=null&&(r[X1[i]]=a)}}function R8(e,t){var r=t.width/e.width,n=t.height/e.height,i=Math.min(r,n);return{scale:i,x:-(e.x+e.width/2)*i+(t.x+t.width/2),y:-(e.y+e.height/2)*i+(t.y+t.height/2)}}function H_e(e,t){var r=new O_e;return r.parse(e,t)}var W_e=Oe(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),j_e=function(){function e(t,r){this.type="geoSVG",this._usedGraphicMap=Oe(),this._freedGraphics=[],this._mapName=t,this._parsedXML=P8(r)}return e.prototype.load=function(){var t=this._firstGraphic;if(!t){t=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(t),this._boundingRect=this._firstGraphic.boundingRect.clone();var r=Y_e(t.named),n=r.regions,i=r.regionsMap;this._regions=n,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},e.prototype._buildGraphic=function(t){var r,n;try{r=t&&H_e(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=r.root,zn(n!=null)}catch(y){throw new Error(`Invalid svg format
|
192
|
-
`+y.message)}var i=new qe;i.add(n),i.isGeoSVGGraphicRoot=!0;var a=r.width,o=r.height,s=r.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,d=void 0;if(a!=null?(u=0,f=a):s&&(u=s.x,f=s.width),o!=null?(c=0,d=o):s&&(c=s.y,d=s.height),u==null||c==null){var h=n.getBoundingRect();u==null&&(u=h.x,f=h.width),c==null&&(c=h.y,d=h.height)}l=this._boundingRect=new nt(u,c,f,d)}if(s){var v=R8(s,l);n.scaleX=n.scaleY=v.scale,n.x=v.x,n.y=v.y}i.setClipPath(new Ct({shape:l.plain()}));var g=[];return V(r.named,function(y){W_e.get(y.svgNodeTagLower)!=null&&(g.push(y),U_e(y.el))}),{root:i,boundingRect:l,named:g}},e.prototype.useGraphic=function(t){var r=this._usedGraphicMap,n=r.get(t);return n||(n=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),r.set(t,n),n)},e.prototype.freeGraphic=function(t){var r=this._usedGraphicMap,n=r.get(t);n&&(r.removeKey(t),this._freedGraphics.push(n))},e}();function U_e(e){e.silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1})}function Y_e(e){var t=[],r=Oe();return V(e,function(n){if(n.namedFrom==null){var i=new $xe(n.name,n.el);t.push(i),r.set(n.name,i)}}),{regions:t,regionsMap:r}}var CA=[126,25],H3="南海诸岛",Du=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var Tu=0;Tu<Du.length;Tu++)for(var Cf=0;Cf<Du[Tu].length;Cf++)Du[Tu][Cf][0]/=10.5,Du[Tu][Cf][1]/=-10.5/.75,Du[Tu][Cf][0]+=CA[0],Du[Tu][Cf][1]+=CA[1];function q_e(e,t){if(e==="china"){for(var r=0;r<t.length;r++)if(t[r].name===H3)return;t.push(new kj(H3,de(Du,function(n){return{type:"polygon",exterior:n}}),CA))}}var X_e={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function Z_e(e,t){if(e==="china"){var r=X_e[t.name];if(r){var n=t.getCenter();n[0]+=r[0]/10.5,n[1]+=-r[1]/(10.5/.75),t.setCenter(n)}}}var K_e=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Q_e(e,t){e==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:K_e[0]})}var J_e="name",ewe=function(){function e(t,r,n){this.type="geoJSON",this._parsedMap=Oe(),this._mapName=t,this._specialAreas=n,this._geoJSON=rwe(r)}return e.prototype.load=function(t,r){r=r||J_e;var n=this._parsedMap.get(r);if(!n){var i=this._parseToRegions(r);n=this._parsedMap.set(r,{regions:i,boundingRect:twe(i)})}var a=Oe(),o=[];return V(n.regions,function(s){var l=s.name;t&&Pe(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),a.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new nt(0,0,0,0),regionsMap:a}},e.prototype._parseToRegions=function(t){var r=this._mapName,n=this._geoJSON,i;try{i=n?Hxe(n,t):[]}catch(a){throw new Error(`Invalid geoJson format
|
193
|
-
`+a.message)}return q_e(r,i),V(i,function(a){var o=a.name;Z_e(r,a),Q_e(r,a);var s=this._specialAreas&&this._specialAreas[o];s&&a.transformTo(s.left,s.top,s.width,s.height)},this),i},e.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},e}();function twe(e){for(var t,r=0;r<e.length;r++){var n=e[r].getBoundingRect();t=t||n.clone(),t.union(n)}return t}function rwe(e){return we(e)?typeof JSON<"u"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var Sp=Oe();const hs={registerMap:function(e,t,r){if(t.svg){var n=new j_e(e,t.svg);Sp.set(e,n)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?r=t.specialAreas:i=t;var n=new ewe(e,i,r);Sp.set(e,n)}},getGeoResource:function(e){return Sp.get(e)},getMapForUser:function(e){var t=Sp.get(e);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(e,t,r){var n=Sp.get(e);if(n)return n.load(t,r)}};var NI=["rect","circle","line","ellipse","polygon","polyline","path"],nwe=Oe(NI),iwe=Oe(NI.concat(["g"])),awe=Oe(NI.concat(["g"])),E8=Tt();function f0(e){var t=e.getItemStyle(),r=e.get("areaColor");return r!=null&&(t.fill=r),t}function W3(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var L8=function(){function e(t){var r=new qe;this.uid=Fd("ec_map_draw"),this._controller=new jg(t.getZr()),this._controllerHost={target:r},this.group=r,r.add(this._regionsGroup=new qe),r.add(this._svgGroup=new qe)}return e.prototype.draw=function(t,r,n,i,a){var o=t.mainType==="geo",s=t.getData&&t.getData();o&&r.eachComponent({mainType:"series",subType:"map"},function(x){!s&&x.getHostGeoModel()===t&&(s=x.getData())});var l=t.coordinateSystem,u=this._regionsGroup,c=this.group,f=l.getTransformInfo(),d=f.raw,h=f.roam,v=!u.childAt(0)||a;v?(c.x=h.x,c.y=h.y,c.scaleX=h.scaleX,c.scaleY=h.scaleY,c.dirty()):Lt(c,h,t);var g=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,y={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(y):l.resourceType==="geoSVG"&&this._buildSVG(y),this._updateController(t,r,n),this._updateMapSelectHandler(t,u,n,i)},e.prototype._buildGeoJSON=function(t){var r=this._regionsGroupByName=Oe(),n=Oe(),i=this._regionsGroup,a=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(h,v){return v&&(h=v(h)),h&&[h[0]*a.scaleX+a.x,h[1]*a.scaleY+a.y]}function f(h){for(var v=[],g=!u&&l&&l.project,y=0;y<h.length;++y){var x=c(h[y],g);x&&v.push(x)}return v}function d(h){return{shape:{points:f(h)}}}i.removeAll(),V(t.geo.regions,function(h){var v=h.name,g=r.get(v),y=n.get(v)||{},x=y.dataIdx,S=y.regionModel;g||(g=r.set(v,new qe),i.add(g),x=s?s.indexOfName(v):null,S=t.isGeo?o.getRegionModel(v):s?s.getItemModel(x):null,n.set(v,{dataIdx:x,regionModel:S}));var b=[],w=[];V(h.geometries,function(A){if(A.type==="polygon"){var k=[A.exterior].concat(A.interiors||[]);u&&(k=Z3(k,u)),V(k,function(P){b.push(new Vn(d(P)))})}else{var I=A.points;u&&(I=Z3(I,u,!0)),V(I,function(P){w.push(new Gn(d(P)))})}});var T=c(h.getCenter(),l&&l.project);function C(A,k){if(A.length){var I=new Uk({culling:!0,segmentIgnoreThreshold:1,shape:{paths:A}});g.add(I),j3(t,I,x,S),U3(t,I,v,S,o,x,T),k&&(W3(I),V(I.states,W3))}}C(b),C(w,!0)}),r.each(function(h,v){var g=n.get(v),y=g.dataIdx,x=g.regionModel;Y3(t,h,v,x,o,y),q3(t,h,v,x,o),X3(t,h,v,x,o)},this)},e.prototype._buildSVG=function(t){var r=t.geo.map,n=t.transformInfoRaw;this._svgGroup.x=n.x,this._svgGroup.y=n.y,this._svgGroup.scaleX=n.scaleX,this._svgGroup.scaleY=n.scaleY,this._svgResourceChanged(r)&&(this._freeSVG(),this._useSVG(r));var i=this._svgDispatcherMap=Oe(),a=!1;V(this._svgGraphicRecord.named,function(o){var s=o.name,l=t.mapOrGeoModel,u=t.data,c=o.svgNodeTagLower,f=o.el,d=u?u.indexOfName(s):null,h=l.getRegionModel(s);if(nwe.get(c)!=null&&f instanceof ia&&j3(t,f,d,h),f instanceof ia&&(f.culling=!0),f.z2EmphasisLift=0,!o.namedFrom&&(awe.get(c)!=null&&U3(t,f,s,h,l,d,null),Y3(t,f,s,h,l,d),q3(t,f,s,h,l),iwe.get(c)!=null)){var v=X3(t,f,s,h,l);v==="self"&&(a=!0);var g=i.get(s)||i.set(s,[]);g.push(f)}},this),this._enableBlurEntireSVG(a,t)},e.prototype._enableBlurEntireSVG=function(t,r){if(t&&r.isGeo){var n=r.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=n.opacity;this._svgGraphicRecord.root.traverse(function(a){if(!a.isGroup){xc(a);var o=a.ensureState("blur").style||{};o.opacity==null&&i!=null&&(o.opacity=i),a.ensureState("emphasis")}})}},e.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},e.prototype.findHighDownDispatchers=function(t,r){if(t==null)return[];var n=r.coordinateSystem;if(n.resourceType==="geoJSON"){var i=this._regionsGroupByName;if(i){var a=i.get(t);return a?[a]:[]}}else if(n.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(t)||[]},e.prototype._svgResourceChanged=function(t){return this._svgMapName!==t},e.prototype._useSVG=function(t){var r=hs.getGeoResource(t);if(r&&r.type==="geoSVG"){var n=r.useGraphic(this.uid);this._svgGroup.add(n.root),this._svgGraphicRecord=n,this._svgMapName=t}},e.prototype._freeSVG=function(){var t=this._svgMapName;if(t!=null){var r=hs.getGeoResource(t);r&&r.type==="geoSVG"&&r.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},e.prototype._updateController=function(t,r,n){var i=t.coordinateSystem,a=this._controller,o=this._controllerHost;o.zoomLimit=t.get("scaleLimit"),o.zoom=i.getZoom(),a.enable(t.get("roam")||!1);var s=t.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=t.id,u}a.off("pan").on("pan",function(u){this._mouseDownFlag=!1,LI(o,u.dx,u.dy),n.dispatchAction(oe(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),a.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,OI(o,u.scale,u.originX,u.originY),n.dispatchAction(oe(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),a.setPointerChecker(function(u,c,f){return i.containPoint([c,f])&&!IS(u,n,t)})},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var r=t.getTextContent();r&&(r.ignore=E8(r).ignore)})},e.prototype._updateMapSelectHandler=function(t,r,n,i){var a=this;r.off("mousedown"),r.off("click"),t.get("selectedMode")&&(r.on("mousedown",function(){a._mouseDownFlag=!0}),r.on("click",function(o){a._mouseDownFlag&&(a._mouseDownFlag=!1)}))},e}();function j3(e,t,r,n){var i=n.getModel("itemStyle"),a=n.getModel(["emphasis","itemStyle"]),o=n.getModel(["blur","itemStyle"]),s=n.getModel(["select","itemStyle"]),l=f0(i),u=f0(a),c=f0(s),f=f0(o),d=e.data;if(d){var h=d.getItemVisual(r,"style"),v=d.getItemVisual(r,"decal");e.isVisualEncodedByVisualMap&&h.fill&&(l.fill=h.fill),v&&(l.decal=Sd(v,e.api))}t.setStyle(l),t.style.strokeNoScale=!0,t.ensureState("emphasis").style=u,t.ensureState("select").style=c,t.ensureState("blur").style=f,xc(t)}function U3(e,t,r,n,i,a,o){var s=e.data,l=e.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),a)),c=s&&s.getItemLayout(a);if(l||u||c&&c.showLabel){var f=l?r:a,d=void 0;(!s||a>=0)&&(d=i);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;fn(t,Ur(n),{labelFetcher:d,labelDataIndex:f,defaultText:r},h);var v=t.getTextContent();if(v&&(E8(v).ignore=v.ignore,t.textConfig&&o)){var g=t.getBoundingRect().clone();t.textConfig.layoutRect=g,t.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function Y3(e,t,r,n,i,a){e.data?e.data.setItemGraphicEl(a,t):Ze(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function q3(e,t,r,n,i){e.data||zd({el:t,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function X3(e,t,r,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return mr(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&tme(t,i,r),o}function Z3(e,t,r){var n=[],i;function a(){i=[]}function o(){i.length&&(n.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!r&&s.polygonStart(),V(e,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!r&&s.polygonEnd(),n}var owe=function(e){J(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,a){if(!(a&&a.type==="mapToggleSelect"&&a.from===this.uid)){var o=this.group;if(o.removeAll(),!r.getHostGeoModel()){if(this._mapDraw&&a&&a.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),a&&a.type==="geoRoam"&&a.componentType==="series"&&a.seriesId===r.id){var s=this._mapDraw;s&&o.add(s.group)}else if(r.needsDrawMap){var s=this._mapDraw||new L8(i);o.add(s.group),s.draw(r,n,i,this,a),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;r.get("showLegendSymbol")&&n.getComponent("legend")&&this._renderSymbols(r,n,i)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(r,n,i){var a=r.originalData,o=this.group;a.each(a.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=a.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,f=u.offset,d=new ys({style:{fill:r.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:Od+1)});if(!f){var h=r.mainSeries.getData(),v=a.getName(l),g=h.indexOfName(v),y=a.getItemModel(l),x=y.getModel("label"),S=h.getItemGraphicEl(g);fn(d,Ur(y),{labelFetcher:{getFormattedLabel:function(b,w){return r.getFormattedLabel(g,w)}},defaultText:v}),d.disableLabelAnimation=!0,x.get("position")||d.setTextConfig({position:"bottom"}),S.onHoverStateChange=function(b){M1(d,b)}}o.add(d)}}})},t.type="map",t}(Kt),swe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.needsDrawMap=!1,r.seriesGroup=[],r.getTooltipPosition=function(n){if(n!=null){var i=this.getData().getName(n),a=this.coordinateSystem,o=a.getRegion(i);return o&&a.dataToPoint(o.getCenter())}},r}return t.prototype.getInitialData=function(r){for(var n=Yd(this,{coordDimensions:["value"],encodeDefaulter:Je(rI,this)}),i=Oe(),a=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);i.set(l,!0)}var u=hs.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return V(u.regions,function(c){var f=c.name;i.get(f)||a.push(f)}),n.appendValues([],a),n},t.prototype.getHostGeoModel=function(){var r=this.option.geoIndex;return r!=null?this.ecModel.getComponent("geo",r):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(r){var n=this.getData();return n.get(n.mapDimension("value"),r)},t.prototype.getRegionModel=function(r){var n=this.getData();return n.getItemModel(n.indexOfName(r))},t.prototype.formatTooltip=function(r,n,i){for(var a=this.getData(),o=this.getRawValue(r),s=a.getName(r),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var f=l[c].originalData.indexOfName(s),d=a.mapDimension("value");isNaN(l[c].originalData.get(d,f))||u.push(l[c].name)}return Yr("section",{header:u.join(", "),noHeader:!u.length,blocks:[Yr("nameValue",{name:s,value:o})]})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.getLegendIcon=function(r){var n=r.icon||"roundRect",i=Er(n,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill);return i.setStyle(r.itemStyle),i.style.stroke="none",n.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t}(or);function lwe(e,t){var r={};return V(e,function(n){n.each(n.mapDimension("value"),function(i,a){var o="ec-"+n.getName(a);r[o]=r[o]||[],isNaN(i)||r[o].push(i)})}),e[0].map(e[0].mapDimension("value"),function(n,i){for(var a="ec-"+e[0].getName(i),o=0,s=1/0,l=-1/0,u=r[a].length,c=0;c<u;c++)s=Math.min(s,r[a][c]),l=Math.max(l,r[a][c]),o+=r[a][c];var f;return t==="min"?f=s:t==="max"?f=l:t==="average"?f=o/u:f=o,u===0?NaN:f})}function uwe(e){var t={};e.eachSeriesByType("map",function(r){var n=r.getHostGeoModel(),i=n?"o"+n.id:"i"+r.getMapType();(t[i]=t[i]||[]).push(r)}),V(t,function(r,n){for(var i=lwe(de(r,function(o){return o.getData()}),r[0].get("mapValueCalculation")),a=0;a<r.length;a++)r[a].originalData=r[a].getData();for(var a=0;a<r.length;a++)r[a].seriesGroup=r,r[a].needsDrawMap=a===0&&!r[a].getHostGeoModel(),r[a].setData(i.cloneShallow()),r[a].mainSeries=r[0]})}function cwe(e){var t={};e.eachSeriesByType("map",function(r){var n=r.getMapType();if(!(r.getHostGeoModel()||t[n])){var i={};V(r.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.get("showLegendSymbol")&&e.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var f=l.getName(c),d=s.getRegion(f);if(!(!d||isNaN(u))){var h=i[f]||0,v=s.dataToPoint(d.getCenter());i[f]=h+1,l.setItemLayout(c,{point:v,offset:h})}})});var a=r.getData();a.each(function(o){var s=a.getName(o),l=a.getItemLayout(o)||{};l.showLabel=!i[s],a.setItemLayout(o,l)}),t[n]=!0}})}var K3=un,Ug=function(e){J(t,e);function t(r){var n=e.call(this)||this;return n.type="view",n.dimensions=["x","y"],n._roamTransformable=new Ko,n._rawTransformable=new Ko,n.name=r,n}return t.prototype.setBoundingRect=function(r,n,i,a){return this._rect=new nt(r,n,i,a),this._rect},t.prototype.getBoundingRect=function(){return this._rect},t.prototype.setViewRect=function(r,n,i,a){this._transformTo(r,n,i,a),this._viewRect=new nt(r,n,i,a)},t.prototype._transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new nt(r,n,i,a));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},t.prototype.setCenter=function(r,n){r&&(this._center=[xe(r[0],n.getWidth()),xe(r[1],n.getHeight())],this._updateCenterAndZoom())},t.prototype.setZoom=function(r){r=r||1;var n=this.zoomLimit;n&&(n.max!=null&&(r=Math.min(n.max,r)),n.min!=null&&(r=Math.max(n.min,r))),this._zoom=r,this._updateCenterAndZoom()},t.prototype.getDefaultCenter=function(){var r=this.getBoundingRect(),n=r.x+r.width/2,i=r.y+r.height/2;return[n,i]},t.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},t.prototype.getZoom=function(){return this._zoom||1},t.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},t.prototype._updateCenterAndZoom=function(){var r=this._rawTransformable.getLocalTransform(),n=this._roamTransformable,i=this.getDefaultCenter(),a=this.getCenter(),o=this.getZoom();a=un([],a,r),i=un([],i,r),n.originX=a[0],n.originY=a[1],n.x=i[0]-a[0],n.y=i[1]-a[1],n.scaleX=n.scaleY=o,this._updateTransform()},t.prototype._updateTransform=function(){var r=this._roamTransformable,n=this._rawTransformable;n.parent=r,r.updateTransform(),n.updateTransform(),Ik(this.transform||(this.transform=[]),n.transform||wi()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],Ed(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var r=this._rawTransformable,n=this._roamTransformable,i=new Ko;return i.transform=n.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY}}},t.prototype.getViewRect=function(){return this._viewRect},t.prototype.getViewRectAfterRoam=function(){var r=this.getBoundingRect().clone();return r.applyTransform(this.transform),r},t.prototype.dataToPoint=function(r,n,i){var a=n?this._rawTransform:this.transform;return i=i||[],a?K3(i,r,a):Dn(i,r)},t.prototype.pointToData=function(r){var n=this.invTransform;return n?K3([],r,n):[r[0],r[1]]},t.prototype.convertToPixel=function(r,n,i){var a=Q3(n);return a===this?a.dataToPoint(i):null},t.prototype.convertFromPixel=function(r,n,i){var a=Q3(n);return a===this?a.pointToData(i):null},t.prototype.containPoint=function(r){return this.getViewRectAfterRoam().contain(r[0],r[1])},t.dimensions=["x","y"],t}(Ko);function Q3(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var fwe={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},O8=["lng","lat"],TA=function(e){J(t,e);function t(r,n,i){var a=e.call(this,r)||this;a.dimensions=O8,a.type="geo",a._nameCoordMap=Oe(),a.map=n;var o=i.projection,s=hs.load(n,i.nameMap,i.nameProperty),l=hs.getGeoResource(n);a.resourceType=l?l.type:null;var u=a.regions=s.regions,c=fwe[l.type];a._regionsMap=s.regionsMap,a.regions=s.regions,a.projection=o;var f;if(o)for(var d=0;d<u.length;d++){var h=u[d].getBoundingRect(o);f=f||h.clone(),f.union(h)}else f=s.boundingRect;return a.setBoundingRect(f.x,f.y,f.width,f.height),a.aspectScale=o?1:Qe(i.aspectScale,c.aspectScale),a._invertLongitute=o?!1:c.invertLongitute,a}return t.prototype._transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new nt(r,n,i,a));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},t.prototype.getRegion=function(r){return this._regionsMap.get(r)},t.prototype.getRegionByCoord=function(r){for(var n=this.regions,i=0;i<n.length;i++){var a=n[i];if(a.type==="geoJSON"&&a.contain(r))return n[i]}},t.prototype.addGeoCoord=function(r,n){this._nameCoordMap.set(r,n)},t.prototype.getGeoCoord=function(r){var n=this._regionsMap.get(r);return this._nameCoordMap.get(r)||n&&n.getCenter()},t.prototype.dataToPoint=function(r,n,i){if(we(r)&&(r=this.getGeoCoord(r)),r){var a=this.projection;return a&&(r=a.project(r)),r&&this.projectedToPoint(r,n,i)}},t.prototype.pointToData=function(r){var n=this.projection;return n&&(r=n.unproject(r)),r&&this.pointToProjected(r)},t.prototype.pointToProjected=function(r){return e.prototype.pointToData.call(this,r)},t.prototype.projectedToPoint=function(r,n,i){return e.prototype.dataToPoint.call(this,r,n,i)},t.prototype.convertToPixel=function(r,n,i){var a=J3(n);return a===this?a.dataToPoint(i):null},t.prototype.convertFromPixel=function(r,n,i){var a=J3(n);return a===this?a.pointToData(i):null},t}(Ug);Lr(TA,Ug);function J3(e){var t=e.geoModel,r=e.seriesModel;return t?t.coordinateSystem:r?r.coordinateSystem||(r.getReferringComponents("geo",Rr).models[0]||{}).coordinateSystem:null}function eB(e,t){var r=e.get("boundingCoords");if(r!=null){var n=r[0],i=r[1];if(isFinite(n[0])&&isFinite(n[1])&&isFinite(i[0])&&isFinite(i[1])){var a=this.projection;if(a){var o=n[0],s=n[1],l=i[0],u=i[1];n=[1/0,1/0],i=[-1/0,-1/0];var c=function(C,A,k,I){for(var P=k-C,R=I-A,L=0;L<=100;L++){var O=L/100,z=a.project([C+P*O,A+R*O]);ol(n,n,z),sl(i,i,z)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,u,l,s)}this.setBoundingRect(n[0],n[1],i[0]-n[0],i[1]-n[1])}}var f=this.getBoundingRect(),d=e.get("layoutCenter"),h=e.get("layoutSize"),v=t.getWidth(),g=t.getHeight(),y=f.width/f.height*this.aspectScale,x=!1,S,b;d&&h&&(S=[xe(d[0],v),xe(d[1],g)],b=xe(h,Math.min(v,g)),!isNaN(S[0])&&!isNaN(S[1])&&!isNaN(b)&&(x=!0));var w;if(x)w={},y>1?(w.width=b,w.height=b/y):(w.height=b,w.width=b*y),w.y=S[1]-w.height/2,w.x=S[0]-w.width/2;else{var T=e.getBoxLayoutParams();T.aspect=y,w=Fr(T,{width:v,height:g})}this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function dwe(e,t){V(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var hwe=function(){function e(){this.dimensions=O8}return e.prototype.create=function(t,r){var n=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new TA(l+s,l,oe({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=eB,u.resize(o,r)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var a={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),V(a,function(o,s){var l=de(o,function(c){return c.get("nameMap")}),u=new TA(s,s,oe({nameMap:Tk(l)},i(o[0])));u.zoomLimit=Jr.apply(null,de(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=eB,u.resize(o[0],r),V(o,function(c){c.coordinateSystem=u,dwe(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,i){for(var a=(t||[]).slice(),o=Oe(),s=0;s<a.length;s++)o.set(a[s].name,a[s]);var l=hs.load(r,n,i);return V(l.regions,function(u){var c=u.name;!o.get(c)&&a.push({name:c})}),a},e}(),N8=new hwe,pwe=function(e){J(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,i){var a=hs.getGeoResource(r.map);if(a&&a.type==="geoJSON"){var o=r.itemStyle=r.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(r,i),gc(r,"label",["show"])},t.prototype.optionUpdated=function(){var r=this,n=this.option;n.regions=N8.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var i={};this._optionModelMap=Co(n.regions||[],function(a,o){var s=o.name;return s&&(a.set(s,new Ft(o,r,r.ecModel)),o.selected&&(i[s]=!0)),a},Oe()),n.selectedMap||(n.selectedMap=i)},t.prototype.getRegionModel=function(r){return this._optionModelMap.get(r)||new Ft(null,this,this.ecModel)},t.prototype.getFormattedLabel=function(r,n){var i=this.getRegionModel(r),a=n==="normal"?i.get(["label","formatter"]):i.get(["emphasis","label","formatter"]),o={name:r};if(Be(a))return o.status=n,a(o);if(we(a))return a.replace("{a}",r??"")},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.select=function(r){var n=this.option,i=n.selectedMode;if(i){i!=="multiple"&&(n.selectedMap=null);var a=n.selectedMap||(n.selectedMap={});a[r]=!0}},t.prototype.unSelect=function(r){var n=this.option.selectedMap;n&&(n[r]=!1)},t.prototype.toggleSelected=function(r){this[this.isSelected(r)?"unSelect":"select"](r)},t.prototype.isSelected=function(r){var n=this.option.selectedMap;return!!(n&&n[r])},t.type="geo",t.layoutMode="box",t.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},t}(xt);function tB(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function zI(e,t,r,n){var i=e.getZoom(),a=e.getCenter(),o=t.zoom,s=e.projectedToPoint?e.projectedToPoint(a):e.dataToPoint(a);if(t.dx!=null&&t.dy!=null&&(s[0]-=t.dx,s[1]-=t.dy,e.setCenter(tB(e,s),n)),o!=null){if(r){var l=r.min||0,u=r.max||1/0;o=Math.max(Math.min(i*o,u),l)/i}e.scaleX*=o,e.scaleY*=o;var c=(t.originX-e.x)*(o-1),f=(t.originY-e.y)*(o-1);e.x-=c,e.y-=f,e.updateTransform(),e.setCenter(tB(e,s),n),e.setZoom(o*i)}return{center:e.getCenter(),zoom:e.getZoom()}}var vwe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.focusBlurEnabled=!0,r}return t.prototype.init=function(r,n){this._api=n},t.prototype.render=function(r,n,i,a){if(this._model=r,!r.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new L8(i));var o=this._mapDraw;o.draw(r,n,i,this,a),o.group.on("click",this._handleRegionClick,this),o.group.silent=r.get("silent"),this.group.add(o.group),this.updateSelectStatus(r,n,i)},t.prototype._handleRegionClick=function(r){var n;Xu(r.target,function(i){return(n=Ze(i).eventData)!=null},!0),n&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:n.name})},t.prototype.updateSelectStatus=function(r,n,i){var a=this;this._mapDraw.group.traverse(function(o){var s=Ze(o).eventData;if(s)return a._model.isSelected(s.name)?i.enterSelect(o):i.leaveSelect(o),!0})},t.prototype.findHighDownDispatchers=function(r){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(r,this._model)},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},t.type="geo",t}(dr);function gwe(e,t,r){hs.registerMap(e,t,r)}function z8(e){e.registerCoordinateSystem("geo",N8),e.registerComponentModel(pwe),e.registerComponentView(vwe),e.registerImpl("registerMap",gwe),e.registerImpl("getMap",function(r){return hs.getMapForUser(r)});function t(r,n){n.update="geo:updateSelectStatus",e.registerAction(n,function(i,a){var o={},s=[];return a.eachComponent({mainType:"geo",query:i},function(l){l[r](i.name);var u=l.coordinateSystem;V(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];V(o,function(f,d){o[d]&&c.push(d)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,allSelected:s,name:i.name}})}t("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),t("select",{type:"geoSelect",event:"geoselected"}),t("unSelect",{type:"geoUnSelect",event:"geounselected"}),e.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(r,n,i){var a=r.componentType||"series";n.eachComponent({mainType:a,query:r},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=zI(s,r,o.get("scaleLimit"),i);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),a==="series"&&V(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function mwe(e){pt(z8),e.registerChartView(owe),e.registerSeriesModel(swe),e.registerLayout(cwe),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,uwe),BW("map",e.registerAction)}function ywe(e){var t=e;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var r=[t],n,i;n=r.pop();)if(i=n.children,n.isExpand&&i.length)for(var a=i.length,o=a-1;o>=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(s)}}function xwe(e,t){var r=e.isExpand?e.children:[],n=e.parentNode.children,i=e.hierNode.i?n[e.hierNode.i-1]:null;if(r.length){_we(e);var a=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=wwe(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function Swe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function rB(e){return arguments.length?e:Awe}function Hp(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function bwe(e,t){return Fr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function _we(e){for(var t=e.children,r=t.length,n=0,i=0;--r>=0;){var a=t[r];a.hierNode.prelim+=n,a.hierNode.modifier+=n,i+=a.hierNode.change,n+=a.hierNode.shift+i}}function wwe(e,t,r,n){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=OC(s),a=NC(a),s&&a;){i=OC(i),o=NC(o),i.hierNode.ancestor=e;var d=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);d>0&&(Twe(Cwe(s,e,r),e,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!OC(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!NC(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=e)}return r}function OC(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function NC(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function Cwe(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function Twe(e,t,r){var n=r/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=r,t.hierNode.modifier+=r,t.hierNode.prelim+=r,e.hierNode.change+=n}function Awe(e,t){return e.parentNode===t.parentNode?1:2}var Mwe=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),kwe=function(e){J(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 Mwe},t.prototype.buildPath=function(r,n){var i=n.childPoints,a=i.length,o=n.parentPoint,s=i[0],l=i[a-1];if(a===1){r.moveTo(o[0],o[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=xe(n.forkPosition,1),h=[];h[c]=o[c],h[f]=o[f]+(l[f]-o[f])*d,r.moveTo(o[0],o[1]),r.lineTo(h[0],h[1]),r.moveTo(s[0],s[1]),h[c]=s[c],r.lineTo(h[0],h[1]),h[c]=l[c],r.lineTo(h[0],h[1]),r.lineTo(l[0],l[1]);for(var v=1;v<a-1;v++){var g=i[v];r.moveTo(g[0],g[1]),h[c]=g[c],r.lineTo(h[0],h[1])}},t}(vt),Iwe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._mainGroup=new qe,r}return t.prototype.init=function(r,n){this._controller=new jg(n.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},t.prototype.render=function(r,n,i){var a=r.getData(),o=r.layoutInfo,s=this._mainGroup,l=r.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(r,i),this._updateController(r,n,i);var u=this._data;a.diff(u).add(function(c){nB(a,c)&&iB(a,c,null,s,r)}).update(function(c,f){var d=u.getItemGraphicEl(f);if(!nB(a,c)){d&&oB(u,f,d,s,r);return}iB(a,c,d,s,r)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&oB(u,c,f,s,r)}).execute(),this._nodeScaleRatio=r.get("nodeScaleRatio"),this._updateNodeAndLinkScale(r),r.get("expandAndCollapse")===!0&&a.eachItemGraphicEl(function(c,f){c.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:r.id,dataIndex:f})})}),this._data=a},t.prototype._updateViewCoordSys=function(r,n){var i=r.getData(),a=[];i.each(function(f){var d=i.getItemLayout(f);d&&!isNaN(d.x)&&!isNaN(d.y)&&a.push([+d.x,+d.y])});var o=[],s=[];aS(a,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=r.coordinateSystem=new Ug;c.zoomLimit=r.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[1]),c.setCenter(r.get("center"),n),c.setZoom(r.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=o,this._max=s},t.prototype._updateController=function(r,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!IS(u,i,r)}),o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){LI(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){OI(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(r),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(r){var n=r.getData(),i=this._getNodeGlobalScale(r);n.eachItemGraphicEl(function(a,o){a.setSymbolScale(i)})},t.prototype._getNodeGlobalScale=function(r){var n=r.coordinateSystem;if(n.type!=="view")return 1;var i=this._nodeScaleRatio,a=n.scaleX||1,o=n.getZoom(),s=(o-1)*i+1;return s/a},t.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},t.type="tree",t}(Kt);function nB(e,t){var r=e.getItemLayout(t);return r&&!isNaN(r.x)&&!isNaN(r.y)}function iB(e,t,r,n,i){var a=!r,o=e.tree.getNodeByDataIndex(t),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=e.tree.root,f=o.parentNode===c?o:o.parentNode||o,d=e.getItemGraphicEl(f.dataIndex),h=f.getLayout(),v=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:h,g=o.getLayout();a?(r=new Fg(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.x=v.x,r.y=v.y):r.updateData(e,t,null,{symbolInnerColor:u,useNameLabel:!0}),r.__radialOldRawX=r.__radialRawX,r.__radialOldRawY=r.__radialRawY,r.__radialRawX=g.rawX,r.__radialRawY=g.rawY,n.add(r),e.setItemGraphicEl(t,r),r.__oldX=r.x,r.__oldY=r.y,Lt(r,{x:g.x,y:g.y},i);var y=r.getSymbolPath();if(i.get("layout")==="radial"){var x=c.children[0],S=x.getLayout(),b=x.children.length,w=void 0,T=void 0;if(g.x===S.x&&o.isExpand===!0&&x.children.length){var C={x:(x.children[0].getLayout().x+x.children[b-1].getLayout().x)/2,y:(x.children[0].getLayout().y+x.children[b-1].getLayout().y)/2};w=Math.atan2(C.y-S.y,C.x-S.x),w<0&&(w=Math.PI*2+w),T=C.x<S.x,T&&(w=w-Math.PI)}else w=Math.atan2(g.y-S.y,g.x-S.x),w<0&&(w=Math.PI*2+w),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(T=g.x<S.x,T&&(w=w-Math.PI)):(T=g.x>S.x,T||(w=w-Math.PI));var A=T?"left":"right",k=s.getModel("label"),I=k.get("rotate"),P=I*(Math.PI/180),R=y.getTextContent();R&&(y.setTextConfig({position:k.get("position")||A,rotation:I==null?-w:P,origin:"center"}),R.setStyle("verticalAlign","middle"))}var L=s.get(["emphasis","focus"]),O=L==="relative"?y1(o.getAncestorsIndices(),o.getDescendantIndices()):L==="ancestor"?o.getAncestorsIndices():L==="descendant"?o.getDescendantIndices():null;O&&(Ze(r).focus=O),Pwe(i,o,c,r,v,h,g,n),r.__edge&&(r.onHoverStateChange=function(z){if(z!=="blur"){var F=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);F&&F.hoverState===Ig||M1(r.__edge,z)}})}function Pwe(e,t,r,n,i,a,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),f=e.getOrient(),d=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),v=l.getModel("lineStyle").getLineStyle(),g=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(g||(g=n.__edge=new Dg({shape:AA(c,f,d,i,i)})),Lt(g,{shape:AA(c,f,d,a,o)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==r&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var y=t.children,x=[],S=0;S<y.length;S++){var b=y[S].getLayout();x.push([b.x,b.y])}g||(g=n.__edge=new kwe({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:h}})),Lt(g,{shape:{parentPoint:[o.x,o.y],childPoints:x}},e)}g&&!(u==="polyline"&&!t.isExpand)&&(g.useStyle(Ve({strokeNoScale:!0,fill:null},v)),cn(g,l,"lineStyle"),xc(g),s.add(g))}function aB(e,t,r,n,i){var a=t.tree.root,o=B8(a,e),s=o.source,l=o.sourceLayout,u=t.getItemGraphicEl(e.dataIndex);if(u){var c=t.getItemGraphicEl(s.dataIndex),f=c.__edge,d=u.__edge||(s.isExpand===!1||s.children.length===1?f:void 0),h=n.get("edgeShape"),v=n.get("layout"),g=n.get("orient"),y=n.get(["lineStyle","curveness"]);d&&(h==="curve"?Tl(d,{shape:AA(v,g,y,l,l),style:{opacity:0}},n,{cb:function(){r.remove(d)},removeOpt:i}):h==="polyline"&&n.get("layout")==="orthogonal"&&Tl(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){r.remove(d)},removeOpt:i}))}}function B8(e,t){for(var r=t.parentNode===e?t:t.parentNode||t,n;n=r.getLayout(),n==null;)r=r.parentNode===e?r:r.parentNode||r;return{source:r,sourceLayout:n}}function oB(e,t,r,n,i){var a=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=B8(o,a).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};Tl(r,{x:s.x+1,y:s.y+1},i,{cb:function(){n.remove(r),e.setItemGraphicEl(t,null)},removeOpt:l}),r.fadeOut(null,e.hostModel,{fadeLabel:!0,animation:l}),a.children.forEach(function(u){aB(u,e,n,i,l)}),aB(a,e,n,i,l)}function AA(e,t,r,n,i){var a,o,s,l,u,c,f,d;if(e==="radial"){u=n.rawX,f=n.rawY,c=i.rawX,d=i.rawY;var h=Hp(u,f),v=Hp(u,f+(d-f)*r),g=Hp(c,d+(f-d)*r),y=Hp(c,d);return{x1:h.x||0,y1:h.y||0,x2:y.x||0,y2:y.y||0,cpx1:v.x||0,cpy1:v.y||0,cpx2:g.x||0,cpy2:g.y||0}}else u=n.x,f=n.y,c=i.x,d=i.y,(t==="LR"||t==="RL")&&(a=u+(c-u)*r,o=f,s=c+(u-c)*r,l=d),(t==="TB"||t==="BT")&&(a=u,o=f+(d-f)*r,s=c,l=d+(f-d)*r);return{x1:u,y1:f,x2:c,y2:d,cpx1:a,cpy1:o,cpx2:s,cpy2:l}}var ea=Tt();function F8(e){var t=e.mainData,r=e.datas;r||(r={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,V8(t,r,e),V(r,function(n){V(t.TRANSFERABLE_METHODS,function(i){n.wrapMethod(i,Je(Dwe,e))})}),t.wrapMethod("cloneShallow",Je(Ewe,e)),V(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,Je(Rwe,e))}),zn(r[t.dataType]===t)}function Dwe(e,t){if(Nwe(this)){var r=oe({},ea(this).datas);r[this.dataType]=t,V8(t,r,e)}else BI(t,this.dataType,ea(this).mainData,e);return t}function Rwe(e,t){return e.struct&&e.struct.update(),t}function Ewe(e,t){return V(ea(t).datas,function(r,n){r!==t&&BI(r.cloneShallow(),n,t,e)}),t}function Lwe(e){var t=ea(this).mainData;return e==null||t==null?t:ea(t).datas[e]}function Owe(){var e=ea(this).mainData;return e==null?[{data:e}]:de(St(ea(e).datas),function(t){return{type:t,data:ea(e).datas[t]}})}function Nwe(e){return ea(e).mainData===e}function V8(e,t,r){ea(e).datas={},V(t,function(n,i){BI(n,i,e,r)})}function BI(e,t,r,n){ea(r).datas[t]=e,ea(e).mainData=r,e.dataType=t,n.struct&&(e[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=e),e.getLinkedData=Lwe,e.getLinkedDataAll=Owe}var zwe=function(){function e(t,r){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=t||"",this.hostTree=r}return e.prototype.isRemoved=function(){return this.dataIndex<0},e.prototype.eachNode=function(t,r,n){Be(t)&&(n=r,r=t,t=null),t=t||{},we(t)&&(t={order:t});var i=t.order||"preorder",a=this[t.attr||"children"],o;i==="preorder"&&(o=r.call(n,this));for(var s=0;!o&&s<a.length;s++)a[s].eachNode(t,r,n);i==="postorder"&&r.call(n,this)},e.prototype.updateDepthAndHeight=function(t){var r=0;this.depth=t;for(var n=0;n<this.children.length;n++){var i=this.children[n];i.updateDepthAndHeight(t+1),i.height>r&&(r=i.height)}this.height=r+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var r=0,n=this.children,i=n.length;r<i;r++){var a=n[r].getNodeById(t);if(a)return a}},e.prototype.contains=function(t){if(t===this)return!0;for(var r=0,n=this.children,i=n.length;r<i;r++){var a=n[r].contains(t);if(a)return a}},e.prototype.getAncestors=function(t){for(var r=[],n=t?this:this.parentNode;n;)r.push(n),n=n.parentNode;return r.reverse(),r},e.prototype.getAncestorsIndices=function(){for(var t=[],r=this;r;)t.push(r.dataIndex),r=r.parentNode;return t.reverse(),t},e.prototype.getDescendantIndices=function(){var t=[];return this.eachNode(function(r){t.push(r.dataIndex)}),t},e.prototype.getValue=function(t){var r=this.hostTree.data;return r.getStore().get(r.getDimensionIndex(t||"value"),this.dataIndex)},e.prototype.setLayout=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,r)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,r)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,r=0;r<t.length;++r)if(t[r]===this)return r;return-1}return-1},e.prototype.isAncestorOf=function(t){for(var r=t.parentNode;r;){if(r===this)return!0;r=r.parentNode}return!1},e.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},e}(),FI=function(){function e(t){this.type="tree",this._nodes=[],this.hostModel=t}return e.prototype.eachNode=function(t,r,n){this.root.eachNode(t,r,n)},e.prototype.getNodeByDataIndex=function(t){var r=this.data.getRawIndex(t);return this._nodes[r]},e.prototype.getNodeById=function(t){return this.root.getNodeById(t)},e.prototype.update=function(){for(var t=this.data,r=this._nodes,n=0,i=r.length;n<i;n++)r[n].dataIndex=-1;for(var n=0,i=t.count();n<i;n++)r[t.getRawIndex(n)].dataIndex=n},e.prototype.clearLayouts=function(){this.data.clearItemLayouts()},e.createTree=function(t,r,n){var i=new e(r),a=[],o=1;s(t);function s(c,f){var d=c.value;o=Math.max(o,ue(d)?d.length:1),a.push(c);var h=new zwe(Br(c.name,""),i);f?Bwe(h,f):i.root=h,i._nodes.push(h);var v=c.children;if(v)for(var g=0;g<v.length;g++)s(v[g],h)}i.root.updateDepthAndHeight(0);var l=zg(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new On(l,r);return u.initData(a),n&&n(u),F8({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},e}();function Bwe(e,t){var r=t.children;e.parentNode!==t&&(r.push(e),e.parentNode=t)}function ng(e,t,r){if(e&&ft(t,e.type)>=0){var n=r.getData().tree.root,i=e.targetNode;if(we(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function $8(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function VI(e,t){var r=$8(e);return ft(r,t)>=0}function DS(e,t){for(var r=[];e;){var n=e.dataIndex;r.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return r.reverse(),r}var Fwe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},i=r.leaves||{},a=new Ft(i,this,this.ecModel),o=FI.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(d,h){var v=o.getNodeByDataIndex(h);return v&&v.children.length&&v.isExpand||(d.parentModel=a),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=r.expandAndCollapse,c=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),o.data},t.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.formatTooltip=function(r,n,i){for(var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Yr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=DS(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},t}(or);function Vwe(e,t,r){for(var n=[e],i=[],a;a=n.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s<o.length;s++)n.push(o[s])}for(;a=i.pop();)t(a,r)}function bp(e,t){for(var r=[e],n;n=r.pop();)if(t(n),n.isExpand){var i=n.children;if(i.length)for(var a=i.length-1;a>=0;a--)r.push(i[a])}}function $we(e,t){e.eachSeriesByType("tree",function(r){Gwe(r,t)})}function Gwe(e,t){var r=bwe(e,t);e.layoutInfo=r;var n=e.get("layout"),i=0,a=0,o=null;n==="radial"?(i=2*Math.PI,a=Math.min(r.height,r.width)/2,o=rB(function(b,w){return(b.parentNode===w.parentNode?1:2)/b.depth})):(i=r.width,a=r.height,o=rB());var s=e.getData().tree.root,l=s.children[0];if(l){ywe(s),Vwe(l,xwe,o),s.hierNode.modifier=-l.hierNode.prelim,bp(l,Swe);var u=l,c=l,f=l;bp(l,function(b){var w=b.getLayout().x;w<u.getLayout().x&&(u=b),w>c.getLayout().x&&(c=b),b.depth>f.depth&&(f=b)});var d=u===c?1:o(u,c)/2,h=d-u.getLayout().x,v=0,g=0,y=0,x=0;if(n==="radial")v=i/(c.getLayout().x+d+h),g=a/(f.depth-1||1),bp(l,function(b){y=(b.getLayout().x+h)*v,x=(b.depth-1)*g;var w=Hp(y,x);b.setLayout({x:w.x,y:w.y,rawX:y,rawY:x},!0)});else{var S=e.getOrient();S==="RL"||S==="LR"?(g=a/(c.getLayout().x+d+h),v=i/(f.depth-1||1),bp(l,function(b){x=(b.getLayout().x+h)*g,y=S==="LR"?(b.depth-1)*v:i-(b.depth-1)*v,b.setLayout({x:y,y:x},!0)})):(S==="TB"||S==="BT")&&(v=i/(c.getLayout().x+d+h),g=a/(f.depth-1||1),bp(l,function(b){y=(b.getLayout().x+h)*v,x=S==="TB"?(b.depth-1)*g:a-(b.depth-1)*g,b.setLayout({x:y,y:x},!0)}))}}}function Hwe(e){e.eachSeriesByType("tree",function(t){var r=t.getData(),n=r.tree;n.eachNode(function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(i.dataIndex,"style");oe(s,o)})})}function Wwe(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=t.dataIndex,a=n.getData().tree,o=a.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,r,n){r.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var a=i.coordinateSystem,o=zI(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function jwe(e){e.registerChartView(Iwe),e.registerSeriesModel(Fwe),e.registerLayout($we),e.registerVisual(Hwe),Wwe(e)}var sB=["treemapZoomToNode","treemapRender","treemapMove"];function Uwe(e){for(var t=0;t<sB.length;t++)e.registerAction({type:sB[t],update:"updateView"},Mr);e.registerAction({type:"treemapRootToNode",update:"updateView"},function(r,n){n.eachComponent({mainType:"series",subType:"treemap",query:r},i);function i(a,o){var s=["treemapZoomToNode","treemapRootToNode"],l=ng(r,s,a);if(l){var u=a.getViewRoot();u&&(r.direction=VI(u,l.node)?"rollUp":"drillDown"),a.resetViewRoot(l.node)}}})}function G8(e){var t=e.getData(),r=t.tree,n={};r.eachNode(function(i){for(var a=i;a&&a.depth>1;)a=a.parentNode;var o=J2(e.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var Ywe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventUsingHoverLayer=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};H8(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new Ft({itemStyle:o},this,n);a=r.levels=qwe(a,n);var l=de(a||[],function(f){return new Ft(f,s,n)},this),u=FI.createTree(i,this,c);function c(f){f.wrapMethod("getItemModel",function(d,h){var v=u.getNodeByDataIndex(h),g=v?l[v.depth]:null;return d.parentModel=g||s,d})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return Yr("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=DS(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},oe(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=Oe(),this._idIndexMapCount=0);var i=n.get(r);return i==null&&n.set(r,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){G8(this)},t.type="series.treemap",t.layoutMode="box",t.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(or);function H8(e){var t=0;V(e.children,function(n){H8(n);var i=n.value;ue(i)&&(i=i[0]),t+=i});var r=e.value;ue(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),ue(e.value)?e.value[0]=r:e.value=r}function qwe(e,t){var r=Yt(t.get("color")),n=Yt(t.get(["aria","decal","decals"]));if(r){e=e||[];var i,a;V(e,function(s){var l=new Ft(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(a=!0)});var o=e[0]||(e[0]={});return i||(o.color=r.slice()),!a&&n&&(o.decal=n.slice()),e}}var Xwe=8,lB=8,zC=5,Zwe=function(){function e(t){this.group=new qe,t.add(this.group)}return e.prototype.render=function(t,r,n,i){var a=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,f,u),this._renderContent(t,f,s,l,u,c,i),yS(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var i=t;i;i=i.parentNode){var a=Br(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+Xwe*2,r.emptyItemWidth);r.totalWidth+=s+lB,r.renderList.push({node:i,text:a,width:s})}},e.prototype._renderContent=function(t,r,n,i,a,o,s){for(var l=0,u=r.emptyItemWidth,c=t.get(["breadcrumb","height"]),f=nye(r.pos,r.box),d=r.totalWidth,h=r.renderList,v=i.getModel("itemStyle").getItemStyle(),g=h.length-1;g>=0;g--){var y=h[g],x=y.node,S=y.width,b=y.text;d>f.width&&(d-=S-u,S=u,b=null);var w=new Vn({shape:{points:Kwe(l,0,S,c,g===h.length-1,g===0)},style:Ve(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new kt({style:ar(a,{text:b})}),textConfig:{position:"inside"},z2:Od*1e4,onclick:Je(s,x)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=ar(o,{text:b}),w.ensureState("emphasis").style=v,mr(w,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(w),Qwe(w,t,x),l+=S+lB}},e.prototype.remove=function(){this.group.removeAll()},e}();function Kwe(e,t,r,n,i,a){var o=[[i?e:e-zC,t],[e+r,t],[e+r,t+n],[i?e:e-zC,t+n]];return!a&&o.splice(2,0,[e+r+zC,t+n/2]),!i&&o.push([e,t+n/2]),o}function Qwe(e,t,r){Ze(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&DS(r,t)}}var Jwe=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,r,n,i,a){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:r,duration:n,delay:i,easing:a}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,r=this._storage.length,n=function(){r--,r<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,a=this._storage.length;i<a;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:n,aborted:n})}return this},e}();function eCe(){return new Jwe}var MA=qe,uB=Ct,cB=3,fB="label",dB="upperLabel",tCe=Od*10,rCe=Od*2,nCe=Od*3,Ru=yc([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),hB=function(e){var t=Ru(e);return t.stroke=t.fill=t.lineWidth=null,t},Z1=Tt(),iCe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._state="ready",r._storage=_p(),r}return t.prototype.render=function(r,n,i,a){var o=n.findComponents({mainType:"series",subType:"treemap",query:a});if(!(ft(o,r)<0)){this.seriesModel=r,this.api=i,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=ng(a,s,r),u=a&&a.type,c=r.layoutInfo,f=!this._oldTree,d=this._storage,h=u==="treemapRootToNode"&&l&&d?{rootNodeGroup:d.nodeGroup[l.node.getRawIndex()],direction:a.direction}:null,v=this._giveContainerGroup(c),g=r.get("animation"),y=this._doRender(v,r,h);g&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(v,y,r,h):y.renderFinally(),this._resetController(i),this._renderBreadcrumb(r,i,l)}},t.prototype._giveContainerGroup=function(r){var n=this._containerGroup;return n||(n=this._containerGroup=new MA,this._initEvents(n),this.group.add(n)),n.x=r.x,n.y=r.y,n},t.prototype._doRender=function(r,n,i){var a=n.getData().tree,o=this._oldTree,s=_p(),l=_p(),u=this._storage,c=[];function f(S,b,w,T){return aCe(n,l,u,i,s,c,S,b,w,T)}g(a.root?[a.root]:[],o&&o.root?[o.root]:[],r,a===o||!o,0);var d=y(u);if(this._oldTree=a,this._storage=l,this._controllerHost){var h=this.seriesModel.layoutInfo,v=a.root.getLayout();v.width===h.width&&v.height===h.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:d,renderFinally:x};function g(S,b,w,T,C){T?(b=S,V(S,function(I,P){!I.isRemoved()&&k(P,P)})):new fs(b,S,A,A).add(k).update(k).remove(Je(k,null)).execute();function A(I){return I.getId()}function k(I,P){var R=I!=null?S[I]:null,L=P!=null?b[P]:null,O=f(R,L,w,C);O&&g(R&&R.viewChildren||[],L&&L.viewChildren||[],O,T,C+1)}}function y(S){var b=_p();return S&&V(S,function(w,T){var C=b[T];V(w,function(A){A&&(C.push(A),Z1(A).willDelete=!0)})}),b}function x(){V(d,function(S){V(S,function(b){b.parent&&b.parent.remove(b)})}),V(c,function(S){S.invisible=!0,S.dirty()})}},t.prototype._doAnimation=function(r,n,i,a){var o=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(Be(o)?0:o)||0,u=(Be(s)?null:s)||"cubicOut",c=eCe();V(n.willDeleteEls,function(f,d){V(f,function(h,v){if(!h.invisible){var g=h.parent,y,x=Z1(g);if(a&&a.direction==="drillDown")y=g===a.rootNodeGroup?{shape:{x:0,y:0,width:x.nodeWidth,height:x.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var S=0,b=0;x.willDelete||(S=x.nodeWidth/2,b=x.nodeHeight/2),y=d==="nodeGroup"?{x:S,y:b,style:{opacity:0}}:{shape:{x:S,y:b,width:0,height:0},style:{opacity:0}}}y&&c.add(h,y,l,0,u)}})}),V(this._storage,function(f,d){V(f,function(h,v){var g=n.lastsForAnimation[d][v],y={};g&&(h instanceof qe?g.oldX!=null&&(y.x=h.x,y.y=h.y,h.x=g.oldX,h.y=g.oldY):(g.oldShape&&(y.shape=oe({},h.shape),h.setShape(g.oldShape)),g.fadein?(h.setStyle("opacity",0),y.style={opacity:1}):h.style.opacity!==1&&(y.style={opacity:1})),c.add(h,y,l,0,u))})},this),this._state="animating",c.finished(Ae(function(){this._state="ready",n.renderFinally()},this)).start()},t.prototype._resetController=function(r){var n=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost),n||(n=this._controller=new jg(r.getZr()),n.enable(this.seriesModel.get("roam")),i.zoomLimit=this.seriesModel.get("scaleLimit"),i.zoom=this.seriesModel.get("zoom"),n.on("pan",Ae(this._onPan,this)),n.on("zoom",Ae(this._onZoom,this)));var a=new nt(0,0,r.getWidth(),r.getHeight());n.setPointerChecker(function(o,s,l){return a.contain(s,l)})},t.prototype._clearController=function(){var r=this._controller;this._controllerHost=null,r&&(r.dispose(),r=null)},t.prototype._onPan=function(r){if(this._state!=="animating"&&(Math.abs(r.dx)>cB||Math.abs(r.dy)>cB)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+r.dx,y:i.y+r.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(r){var n=r.originX,i=r.originY,a=r.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new nt(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var f=c.zoom=c.zoom||1;if(f*=a,u){var d=u.min||0,h=u.max||1/0;f=Math.max(Math.min(h,f),d)}var v=f/c.zoom;c.zoom=f;var g=this.seriesModel.layoutInfo;n-=g.x,i-=g.y;var y=wi();To(y,y,[-n,-i]),Pk(y,y,[v,v]),To(y,y,[n,i]),l.applyTransform(y),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},t.prototype._initEvents=function(r){var n=this;r.on("click",function(i){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var o=n.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(a==="zoomToNode")n._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&E1(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(r,n,i){var a=this;i||(i=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Zwe(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(VI(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=_p(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype.findTarget=function(r,n){var i,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.getRawIndex()];if(s){var l=s.transformCoordToLocal(r,n),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},t.type="treemap",t}(Kt);function _p(){return{nodeGroup:[],background:[],content:[]}}function aCe(e,t,r,n,i,a,o,s,l,u){if(!o)return;var c=o.getLayout(),f=e.getData(),d=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,v=c.height,g=c.borderWidth,y=c.invisible,x=o.getRawIndex(),S=s&&s.getRawIndex(),b=o.viewChildren,w=c.upperHeight,T=b&&b.length,C=d.getModel("itemStyle"),A=d.getModel(["emphasis","itemStyle"]),k=d.getModel(["blur","itemStyle"]),I=d.getModel(["select","itemStyle"]),P=C.get("borderRadius")||0,R=re("nodeGroup",MA);if(!R)return;if(l.add(R),R.x=c.x||0,R.y=c.y||0,R.markRedraw(),Z1(R).nodeWidth=h,Z1(R).nodeHeight=v,c.isAboveViewRoot)return R;var L=re("background",uB,u,rCe);L&&X(R,L,T&&c.upperLabelHeight);var O=d.getModel("emphasis"),z=O.get("focus"),F=O.get("blurScope"),H=O.get("disabled"),q=z==="ancestor"?o.getAncestorsIndices():z==="descendant"?o.getDescendantIndices():z;if(T)Wv(R)&&Yu(R,!1),L&&(Yu(L,!H),f.setItemGraphicEl(o.dataIndex,L),j2(L,q,F));else{var $=re("content",uB,u,nCe);$&&B(R,$),L.disableMorphing=!0,L&&Wv(L)&&Yu(L,!1),Yu(R,!H),f.setItemGraphicEl(o.dataIndex,R),j2(R,q,F)}return R;function X(pe,ae,he){var ve=Ze(ae);if(ve.dataIndex=o.dataIndex,ve.seriesIndex=e.seriesIndex,ae.setShape({x:0,y:0,width:h,height:v,r:P}),y)Y(ae);else{ae.invisible=!1;var fe=o.getVisual("style"),ge=fe.stroke,Re=hB(C);Re.fill=ge;var Ie=Ru(A);Ie.fill=A.get("borderColor");var $e=Ru(k);$e.fill=k.get("borderColor");var dt=Ru(I);if(dt.fill=I.get("borderColor"),he){var ct=h-2*g;Z(ae,ge,fe.opacity,{x:g,y:0,width:ct,height:w})}else ae.removeTextContent();ae.setStyle(Re),ae.ensureState("emphasis").style=Ie,ae.ensureState("blur").style=$e,ae.ensureState("select").style=dt,xc(ae)}pe.add(ae)}function B(pe,ae){var he=Ze(ae);he.dataIndex=o.dataIndex,he.seriesIndex=e.seriesIndex;var ve=Math.max(h-2*g,0),fe=Math.max(v-2*g,0);if(ae.culling=!0,ae.setShape({x:g,y:g,width:ve,height:fe,r:P}),y)Y(ae);else{ae.invisible=!1;var ge=o.getVisual("style"),Re=ge.fill,Ie=hB(C);Ie.fill=Re,Ie.decal=ge.decal;var $e=Ru(A),dt=Ru(k),ct=Ru(I);Z(ae,Re,ge.opacity,null),ae.setStyle(Ie),ae.ensureState("emphasis").style=$e,ae.ensureState("blur").style=dt,ae.ensureState("select").style=ct,xc(ae)}pe.add(ae)}function Y(pe){!pe.invisible&&a.push(pe)}function Z(pe,ae,he,ve){var fe=d.getModel(ve?dB:fB),ge=Br(d.get("name"),null),Re=fe.getShallow("show");fn(pe,Ur(d,ve?dB:fB),{defaultText:Re?ge:null,inheritColor:ae,defaultOpacity:he,labelFetcher:e,labelDataIndex:o.dataIndex});var Ie=pe.getTextContent();if(Ie){var $e=Ie.style,dt=Mk($e.padding||0);ve&&(pe.setTextConfig({layoutRect:ve}),Ie.disableLabelLayout=!0),Ie.beforeUpdate=function(){var bt=Math.max((ve?ve.width:pe.shape.width)-dt[1]-dt[3],0),At=Math.max((ve?ve.height:pe.shape.height)-dt[0]-dt[2],0);($e.width!==bt||$e.height!==At)&&Ie.setStyle({width:bt,height:At})},$e.truncateMinChar=2,$e.lineOverflow="truncate",j($e,ve,c);var ct=Ie.getState("emphasis");j(ct?ct.style:null,ve,c)}}function j(pe,ae,he){var ve=pe?pe.text:null;if(!ae&&he.isLeafRoot&&ve!=null){var fe=e.get("drillDownIcon",!0);pe.text=fe?fe+" "+ve:ve}}function re(pe,ae,he,ve){var fe=S!=null&&r[pe][S],ge=i[pe];return fe?(r[pe][S]=null,ce(ge,fe)):y||(fe=new ae,fe instanceof ia&&(fe.z2=oCe(he,ve)),te(ge,fe)),t[pe][x]=fe}function ce(pe,ae){var he=pe[x]={};ae instanceof MA?(he.oldX=ae.x,he.oldY=ae.y):he.oldShape=oe({},ae.shape)}function te(pe,ae){var he=pe[x]={},ve=o.parentNode,fe=ae instanceof qe;if(ve&&(!n||n.direction==="drillDown")){var ge=0,Re=0,Ie=i.background[ve.getRawIndex()];!n&&Ie&&Ie.oldShape&&(ge=Ie.oldShape.width,Re=Ie.oldShape.height),fe?(he.oldX=0,he.oldY=Re):he.oldShape={x:ge,y:Re,width:0,height:0}}he.fadein=!fe}}function oCe(e,t){return e*tCe+t}var ig=V,sCe=Ge,K1=-1,jr=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=We(t);this.type=n,this.mappingMethod=r,this._normalizeData=cCe[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(BC(i),lCe(i)):r==="category"?i.categories?uCe(i):BC(i,!0):(zn(r!=="linear"||i.dataExtent),BC(i))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return Ae(this._normalizeData,this)},e.listVisualTypes=function(){return St(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){Ge(t)?V(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var i,a=ue(t)?[]:Ge(t)?{}:(i=!0,null);return e.eachVisual(t,function(o,s){var l=r.call(n,o,s);i?a=l:a[s]=l}),a},e.retrieveVisuals=function(t){var r={},n;return t&&ig(e.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(r[a]=t[a],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(ue(t))t=t.slice();else if(sCe(t)){var r=[];ig(t,function(n,i){r.push(i)}),t=r}else return[];return t.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,r){return r==="color"?!!(t&&t.indexOf(r)===0):t===r},e.findPieceIndex=function(t,r,n){for(var i,a=1/0,o=0,s=r.length;o<s;o++){var l=r[o].value;if(l!=null){if(l===t||we(l)&&l===t+"")return o;n&&d(l,o)}}for(var o=0,s=r.length;o<s;o++){var u=r[o],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(h0(f[1],t,c[1]))return o}else if(c[1]===1/0){if(h0(f[0],c[0],t))return o}else if(h0(f[0],c[0],t)&&h0(f[1],t,c[1]))return o;n&&d(c[0],o),n&&d(c[1],o)}}if(n)return t===1/0?r.length-1:t===-1/0?0:i;function d(h,v){var g=Math.abs(h-t);g<a&&(a=g,i=v)}},e.visualHandlers={color:{applyVisual:wp("color"),getColorMapper:function(){var t=this.option;return Ae(t.mappingMethod==="category"?function(r,n){return!n&&(r=this._normalizeData(r)),Wp.call(this,r)}:function(r,n,i){var a=!!i;return!n&&(r=this._normalizeData(r)),i=yw(r,t.parsedVisual,i),a?i:ts(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return ts(yw(t,this.option.parsedVisual),"rgba")},category:Wp,piecewise:function(t,r){var n=IA.call(this,r);return n==null&&(n=ts(yw(t,this.option.parsedVisual),"rgba")),n},fixed:Eu}},colorHue:d0(function(t,r){return lv(t,r)}),colorSaturation:d0(function(t,r){return lv(t,null,r)}),colorLightness:d0(function(t,r){return lv(t,null,null,r)}),colorAlpha:d0(function(t,r){return b1(t,r)}),decal:{applyVisual:wp("decal"),_normalizedToVisual:{linear:null,category:Wp,piecewise:null,fixed:null}},opacity:{applyVisual:wp("opacity"),_normalizedToVisual:kA([0,1])},liftZ:{applyVisual:wp("liftZ"),_normalizedToVisual:{linear:Eu,category:Eu,piecewise:Eu,fixed:Eu}},symbol:{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("symbol",i)},_normalizedToVisual:{linear:pB,category:Wp,piecewise:function(t,r){var n=IA.call(this,r);return n==null&&(n=pB.call(this,t)),n},fixed:Eu}},symbolSize:{applyVisual:wp("symbolSize"),_normalizedToVisual:kA([0,1])}},e}();function lCe(e){var t=e.pieceList;e.hasSpecialVisual=!1,V(t,function(r,n){r.originIndex=n,r.visual!=null&&(e.hasSpecialVisual=!0)})}function uCe(e){var t=e.categories,r=e.categoryMap={},n=e.visual;if(ig(t,function(o,s){r[o]=s}),!ue(n)){var i=[];Ge(n)?ig(n,function(o,s){var l=r[s];i[l??K1]=o}):i[K1]=n,n=W8(e,i)}for(var a=t.length-1;a>=0;a--)n[a]==null&&(delete r[t[a]],t.pop())}function BC(e,t){var r=e.visual,n=[];Ge(r)?ig(r,function(a){n.push(a)}):r!=null&&n.push(r);var i={color:1,symbol:1};!t&&n.length===1&&!i.hasOwnProperty(e.type)&&(n[1]=n[0]),W8(e,n)}function d0(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:kA([0,1])}}function pB(e){var t=this.option.visual;return t[Math.round($t(e,[0,1],[0,t.length-1],!0))]||{}}function wp(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function Wp(e){var t=this.option.visual;return t[this.option.loop&&e!==K1?e%t.length:e]}function Eu(){return this.option.visual[0]}function kA(e){return{linear:function(t){return $t(t,e,this.option.visual,!0)},category:Wp,piecewise:function(t,r){var n=IA.call(this,r);return n==null&&(n=$t(t,e,this.option.visual,!0)),n},fixed:Eu}}function IA(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=jr.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function W8(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=de(t,function(r){var n=Ci(r);return n||[0,0,0,1]})),t}var cCe={linear:function(e){return $t(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=jr.findPieceIndex(e,t,!0);if(r!=null)return $t(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??K1},fixed:Mr};function h0(e,t,r){return e?t<=r:t<r}var fCe="itemStyle",j8=Tt();const dCe={seriesType:"treemap",reset:function(e){var t=e.getData().tree,r=t.root;r.isRemoved()||U8(r,{},e.getViewRoot().getAncestors(),e)}};function U8(e,t,r,n){var i=e.getModel(),a=e.getLayout(),o=e.hostTree.data;if(!(!a||a.invisible||!a.isInView)){var s=i.getModel(fCe),l=hCe(s,t,n),u=o.ensureUniqueItemVisual(e.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),d;f!=null&&(d=vB(l),c=pCe(f,d)),u.stroke=c;var h=e.viewChildren;if(!h||!h.length)d=vB(l),u.fill=d;else{var v=vCe(e,i,a,s,l,h);V(h,function(g,y){if(g.depth>=r.length||g===r[g.depth]){var x=gCe(i,l,g,y,v,n);U8(g,x,r,n)}})}}}function hCe(e,t,r){var n=oe({},t),i=r.designatedVisualItemStyle;return V(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=e.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function vB(e){var t=FC(e,"color");if(t){var r=FC(e,"colorAlpha"),n=FC(e,"colorSaturation");return n&&(t=lv(t,null,null,n)),r&&(t=b1(t,r)),t}}function pCe(e,t){return t!=null?lv(t,null,null,e):null}function FC(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function vCe(e,t,r,n,i,a){if(!(!a||!a.length)){var o=VC(t,"color")||i.color!=null&&i.color!=="none"&&(VC(t,"colorAlpha")||VC(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=r.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=t.get("colorMappingBy"),f={type:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new jr(f);return j8(d).drColorMappingBy=c,d}}}function VC(e,t){var r=e.get(t);return ue(r)&&r.length?{name:t,range:r}:null}function gCe(e,t,r,n,i,a){var o=oe({},t);if(i){var s=i.type,l=s==="color"&&j8(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var ag=Math.max,Q1=Math.min,gB=Jr,$I=V,Y8=["itemStyle","borderWidth"],mCe=["itemStyle","gapWidth"],yCe=["upperLabel","show"],xCe=["upperLabel","height"];const SCe={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),a=r.getHeight(),o=e.option,s=Fr(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=xe(gB(s.width,l[0]),i),c=xe(gB(s.height,l[1]),a),f=n&&n.type,d=["treemapZoomToNode","treemapRootToNode"],h=ng(n,d,e),v=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,g=e.getViewRoot(),y=$8(g);if(f!=="treemapMove"){var x=f==="treemapZoomToNode"?ACe(e,h,g,u,c):v?[v.width,v.height]:[u,c],S=o.sort;S&&S!=="asc"&&S!=="desc"&&(S="desc");var b={squareRatio:o.squareRatio,sort:S,leafDepth:o.leafDepth};g.hostTree.clearLayouts();var w={x:0,y:0,width:x[0],height:x[1],area:x[0]*x[1]};g.setLayout(w),q8(g,b,!1,0),w=g.getLayout(),$I(y,function(C,A){var k=(y[A+1]||g).getValue();C.setLayout(oe({dataExtent:[k,k],borderWidth:0,upperHeight:0},w))})}var T=e.getData().tree.root;T.setLayout(MCe(s,v,h),!0),e.setLayoutInfo(s),X8(T,new nt(-s.x,-s.y,i,a),y,g,0)}};function q8(e,t,r,n){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),l=s.get(Y8),u=s.get(mCe)/2,c=Z8(s),f=Math.max(l,c),d=l-u,h=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=ag(i-2*d,0),a=ag(a-d-h,0);var v=i*a,g=bCe(e,s,v,t,r,n);if(g.length){var y={x:d,y:h,width:i,height:a},x=Q1(i,a),S=1/0,b=[];b.area=0;for(var w=0,T=g.length;w<T;){var C=g[w];b.push(C),b.area+=C.getLayout().area;var A=TCe(b,x,t.squareRatio);A<=S?(w++,S=A):(b.area-=b.pop().getLayout().area,mB(b,x,y,u,!1),x=Q1(y.width,y.height),b.length=b.area=0,S=1/0)}if(b.length&&mB(b,x,y,u,!0),!r){var k=s.get("childrenVisibleMin");k!=null&&v<k&&(r=!0)}for(var w=0,T=g.length;w<T;w++)q8(g[w],t,r,n+1)}}}function bCe(e,t,r,n,i,a){var o=e.children||[],s=n.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=n.leafDepth!=null&&n.leafDepth<=a;if(i&&!l)return e.viewChildren=[];o=jt(o,function(h){return!h.isRemoved()}),wCe(o,s);var u=CCe(t,o,s);if(u.sum===0)return e.viewChildren=[];if(u.sum=_Ce(t,r,u.sum,s,o),u.sum===0)return e.viewChildren=[];for(var c=0,f=o.length;c<f;c++){var d=o[c].getValue()/u.sum*r;o[c].setLayout({area:d})}return l&&(o.length&&e.setLayout({isLeafRoot:!0},!0),o.length=0),e.viewChildren=o,e.setLayout({dataExtent:u.dataExtent},!0),o}function _Ce(e,t,r,n,i){if(!n)return r;for(var a=e.get("visibleMin"),o=i.length,s=o,l=o-1;l>=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/r*t<a&&(s=l,r-=u)}return n==="asc"?i.splice(0,o-s):i.splice(s,o-s),r}function wCe(e,t){return t&&e.sort(function(r,n){var i=t==="asc"?r.getValue()-n.getValue():n.getValue()-r.getValue();return i===0?t==="asc"?r.dataIndex-n.dataIndex:n.dataIndex-r.dataIndex:i}),e}function CCe(e,t,r){for(var n=0,i=0,a=t.length;i<a;i++)n+=t[i].getValue();var o=e.get("visualDimension"),s;return!t||!t.length?s=[NaN,NaN]:o==="value"&&r?(s=[t[t.length-1].getValue(),t[0].getValue()],r==="asc"&&s.reverse()):(s=[1/0,-1/0],$I(t,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function TCe(e,t,r){for(var n=0,i=1/0,a=0,o=void 0,s=e.length;a<s;a++)o=e[a].getLayout().area,o&&(o<i&&(i=o),o>n&&(n=o));var l=e.area*e.area,u=t*t*r;return l?ag(u*n/l,l/(u*i)):1/0}function mB(e,t,r,n,i){var a=t===r.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=r[s[a]],c=t?e.area/t:0;(i||c>r[l[o]])&&(c=r[l[o]]);for(var f=0,d=e.length;f<d;f++){var h=e[f],v={},g=c?h.getLayout().area/c:0,y=v[l[o]]=ag(c-2*n,0),x=r[s[a]]+r[l[a]]-u,S=f===d-1||x<g?x:g,b=v[l[a]]=ag(S-2*n,0);v[s[o]]=r[s[o]]+Q1(n,y/2),v[s[a]]=u+Q1(n,b/2),u+=S,h.setLayout(v,!0)}r[s[o]]+=c,r[l[o]]-=c}function ACe(e,t,r,n,i){var a=(t||{}).node,o=[n,i];if(!a||a===r)return o;for(var s,l=n*i,u=l*e.option.zoomToNodeRatio;s=a.parentNode;){for(var c=0,f=s.children,d=0,h=f.length;d<h;d++)c+=f[d].getValue();var v=a.getValue();if(v===0)return o;u*=c/v;var g=s.getModel(),y=g.get(Y8),x=Math.max(y,Z8(g));u+=4*y*y+(3*y+x)*Math.pow(u,.5),u>DN&&(u=DN),a=s}u<l&&(u=l);var S=Math.pow(u/l,.5);return[n*S,i*S]}function MCe(e,t,r){if(t)return{x:t.x,y:t.y};var n={x:0,y:0};if(!r)return n;var i=r.node,a=i.getLayout();if(!a)return n;for(var o=[a.width/2,a.height/2],s=i;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:e.width/2-o[0],y:e.height/2-o[1]}}function X8(e,t,r,n,i){var a=e.getLayout(),o=r[i],s=o&&o===e;if(!(o&&!s||i===r.length&&e!==n)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(a),isAboveViewRoot:s},!0);var l=new nt(t.x-a.x,t.y-a.y,t.width,t.height);$I(e.viewChildren||[],function(u){X8(u,l,r,n,i+1)})}}function Z8(e){return e.get(yCe)?e.get(xCe):0}function kCe(e){e.registerSeriesModel(Ywe),e.registerChartView(iCe),e.registerVisual(dCe),e.registerLayout(SCe),Uwe(e)}function ICe(e){var t=e.findComponents({mainType:"legend"});!t||!t.length||e.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),i=r.getGraph(),a=i.data,o=n.mapArray(n.getName);a.filterSelf(function(s){var l=a.getItemModel(s),u=l.getShallow("category");if(u!=null){Dt(u)&&(u=o[u]);for(var c=0;c<t.length;c++)if(!t[c].isSelected(u))return!1}return!0})})}function PCe(e){var t={};e.eachSeriesByType("graph",function(r){var n=r.getCategoriesData(),i=r.getData(),a={};n.each(function(o){var s=n.getName(o);a["ec-"+s]=o;var l=n.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=r.getColorFromPalette(s,t)),n.setItemVisual(o,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],f=0;f<c.length;f++){var d=l.getShallow(c[f],!0);d!=null&&n.setItemVisual(o,c[f],d)}}),n.count()&&i.each(function(o){var s=i.getItemModel(o),l=s.getShallow("category");if(l!=null){we(l)&&(l=a["ec-"+l]);var u=n.getItemVisual(l,"style"),c=i.ensureUniqueItemVisual(o,"style");oe(c,u);for(var f=["symbol","symbolSize","symbolKeepAspect"],d=0;d<f.length;d++)i.setItemVisual(o,f[d],n.getItemVisual(l,f[d]))}})})}function p0(e){return e instanceof Array||(e=[e,e]),e}function DCe(e){e.eachSeriesByType("graph",function(t){var r=t.getGraph(),n=t.getEdgeData(),i=p0(t.get("edgeSymbol")),a=p0(t.get("edgeSymbolSize"));n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",a&&a[0]),n.setVisual("toSymbolSize",a&&a[1]),n.setVisual("style",t.getModel("lineStyle").getLineStyle()),n.each(function(o){var s=n.getItemModel(o),l=r.getEdgeByIndex(o),u=p0(s.getShallow("symbol",!0)),c=p0(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),d=n.ensureUniqueItemVisual(o,"style");switch(oe(d,f),d.stroke){case"source":{var h=l.node1.getVisual("style");d.stroke=h&&h.fill;break}case"target":{var h=l.node2.getVisual("style");d.stroke=h&&h.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var PA="-->",RS=function(e){return e.get("autoCurveness")||null},K8=function(e,t){var r=RS(e),n=20,i=[];if(Dt(r))n=r;else if(ue(r)){e.__curvenessList=r;return}t>n&&(n=t);var a=n%2?n+2:n+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));e.__curvenessList=i},og=function(e,t,r){var n=[e.id,e.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[r.uid,n,i].join(PA)},Q8=function(e){var t=e.split(PA);return[t[0],t[2],t[1]].join(PA)},RCe=function(e,t){var r=og(e.node1,e.node2,t);return t.__edgeMap[r]},ECe=function(e,t){var r=DA(og(e.node1,e.node2,t),t),n=DA(og(e.node2,e.node1,t),t);return r+n},DA=function(e,t){var r=t.__edgeMap;return r[e]?r[e].length:0};function LCe(e){RS(e)&&(e.__curvenessList=[],e.__edgeMap={},K8(e))}function OCe(e,t,r,n){if(RS(r)){var i=og(e,t,r),a=r.__edgeMap,o=a[Q8(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(n)}}function GI(e,t,r,n){var i=RS(t),a=ue(i);if(!i)return null;var o=RCe(e,t);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===r){s=l;break}var u=ECe(e,t);K8(t,u),e.lineStyle=e.lineStyle||{};var c=og(e.node1,e.node2,t),f=t.__curvenessList,d=a||u%2?0:1;if(o.isForward)return f[d+s];var h=Q8(c),v=DA(h,t),g=f[s+v+d];return n?a?i&&i[0]===0?(v+d)%2?g:-g:((v%2?0:1)+d)%2?g:-g:(v+d)%2?g:-g:f[s+v+d]}function J8(e){var t=e.coordinateSystem;if(!(t&&t.type!=="view")){var r=e.getGraph();r.eachNode(function(n){var i=n.getModel();n.setLayout([+i.get("x"),+i.get("y")])}),HI(r,e)}}function HI(e,t){e.eachEdge(function(r,n){var i=mo(r.getModel().get(["lineStyle","curveness"]),-GI(r,t,n,!0),0),a=Jo(r.node1.getLayout()),o=Jo(r.node2.getLayout()),s=[a,o];+i&&s.push([(a[0]+o[0])/2-(a[1]-o[1])*i,(a[1]+o[1])/2-(o[0]-a[0])*i]),r.setLayout(s)})}function NCe(e,t){e.eachSeriesByType("graph",function(r){var n=r.get("layout"),i=r.coordinateSystem;if(i&&i.type!=="view"){var a=r.getData(),o=[];V(i.dimensions,function(d){o=o.concat(a.mapDimensionsAll(d))});for(var s=0;s<a.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var f=a.get(o[c],s);isNaN(f)||(u=!0),l.push(f)}u?a.setItemLayout(s,i.dataToPoint(l)):a.setItemLayout(s,[NaN,NaN])}HI(a.graph,r)}else(!n||n==="none")&&J8(r)})}function jp(e){var t=e.coordinateSystem;if(t.type!=="view")return 1;var r=e.option.nodeScaleRatio,n=t.scaleX,i=t.getZoom(),a=(i-1)*r+1;return a/n}function Up(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var yB=Math.PI,$C=[];function WI(e,t,r,n){var i=e.coordinateSystem;if(!(i&&i.type!=="view")){var a=i.getBoundingRect(),o=e.getData(),s=o.graph,l=a.width/2+a.x,u=a.height/2+a.y,c=Math.min(a.width,a.height)/2,f=o.count();if(o.setLayout({cx:l,cy:u}),!!f){if(r){var d=i.pointToData(n),h=d[0],v=d[1],g=[h-l,v-u];Rd(g,g),E0(g,g,c),r.setLayout([l+g[0],u+g[1]],!0);var y=e.get(["circular","rotateLabel"]);e9(r,y,l,u)}zCe[t](e,s,o,c,l,u,f),s.eachEdge(function(x,S){var b=mo(x.getModel().get(["lineStyle","curveness"]),GI(x,e,S),0),w=Jo(x.node1.getLayout()),T=Jo(x.node2.getLayout()),C,A=(w[0]+T[0])/2,k=(w[1]+T[1])/2;+b&&(b*=3,C=[l*b+A*(1-b),u*b+k*(1-b)]),x.setLayout([w,T,C])})}}}var zCe={value:function(e,t,r,n,i,a,o){var s=0,l=r.getSum("value"),u=Math.PI*2/(l||o);t.eachNode(function(c){var f=c.getValue("value"),d=u*(l?f:1)/2;s+=d,c.setLayout([n*Math.cos(s)+i,n*Math.sin(s)+a]),s+=d})},symbolSize:function(e,t,r,n,i,a,o){var s=0;$C.length=o;var l=jp(e);t.eachNode(function(f){var d=Up(f);isNaN(d)&&(d=2),d<0&&(d=0),d*=l;var h=Math.asin(d/2/n);isNaN(h)&&(h=yB/2),$C[f.dataIndex]=h,s+=h*2});var u=(2*yB-s)/o/2,c=0;t.eachNode(function(f){var d=u+$C[f.dataIndex];c+=d,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([n*Math.cos(c)+i,n*Math.sin(c)+a]),c+=d})}};function e9(e,t,r,n){var i=e.getGraphicEl();if(i){var a=e.getModel(),o=a.get(["label","rotate"])||0,s=i.getSymbolPath();if(t){var l=e.getLayout(),u=Math.atan2(l[1]-n,l[0]-r);u<0&&(u=Math.PI*2+u);var c=l[0]<r;c&&(u=u-Math.PI);var f=c?"left":"right";s.setTextConfig({rotation:-u,position:f,origin:"center"});var d=s.ensureState("emphasis");oe(d.textConfig||(d.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function BCe(e){e.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&WI(t,"symbolSize")})}var Tf=g2;function FCe(e,t,r){for(var n=e,i=t,a=r.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=r.gravity==null?.1:r.gravity,c=0;c<n.length;c++){var f=n[c];f.p||(f.p=Ac(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=Jo(f.p),f.edges=null}var d=r.friction==null?.6:r.friction,h=d,v,g;return{warmUp:function(){h=d*.8},setFixed:function(y){n[y].fixed=!0},setUnfixed:function(y){n[y].fixed=!1},beforeStep:function(y){v=y},afterStep:function(y){g=y},step:function(y){v&&v(n,i);for(var x=[],S=n.length,b=0;b<i.length;b++){var w=i[b];if(!w.ignoreForceLayout){var T=w.n1,C=w.n2;ju(x,C.p,T.p);var A=m2(x)-w.d,k=C.w/(T.w+C.w);isNaN(k)&&(k=0),Rd(x,x),!T.fixed&&Tf(T.p,T.p,x,k*A*h),!C.fixed&&Tf(C.p,C.p,x,-(1-k)*A*h)}}for(var b=0;b<S;b++){var I=n[b];I.fixed||(ju(x,l,I.p),Tf(I.p,I.p,x,u*h))}for(var b=0;b<S;b++)for(var T=n[b],P=b+1;P<S;P++){var C=n[P];ju(x,C.p,T.p);var A=m2(x);A===0&&(upe(x,Math.random()-.5,Math.random()-.5),A=1);var R=(T.rep+C.rep)/A/A;!T.fixed&&Tf(T.pp,T.pp,x,R),!C.fixed&&Tf(C.pp,C.pp,x,-R)}for(var L=[],b=0;b<S;b++){var I=n[b];I.fixed||(ju(L,I.p,I.pp),Tf(I.p,I.p,L,h),Dn(I.pp,I.p))}h=h*.992;var O=h<.01;g&&g(n,i,O),y&&y(O)}}}function VCe(e){e.eachSeriesByType("graph",function(t){var r=t.coordinateSystem;if(!(r&&r.type!=="view"))if(t.get("layout")==="force"){var n=t.preservedPoints||{},i=t.getGraph(),a=i.data,o=i.edgeData,s=t.getModel("force"),l=s.get("initLayout");t.preservedPoints?a.each(function(b){var w=a.getId(b);a.setItemLayout(b,n[w]||[NaN,NaN])}):!l||l==="none"?J8(t):l==="circular"&&WI(t,"value");var u=a.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),d=s.get("edgeLength"),h=ue(f)?f:[f,f],v=ue(d)?d:[d,d];v=[v[1],v[0]];var g=a.mapArray("value",function(b,w){var T=a.getItemLayout(w),C=$t(b,u,h);return isNaN(C)&&(C=(h[0]+h[1])/2),{w:C,rep:C,fixed:a.getItemModel(w).get("fixed"),p:!T||isNaN(T[0])||isNaN(T[1])?null:T}}),y=o.mapArray("value",function(b,w){var T=i.getEdgeByIndex(w),C=$t(b,c,v);isNaN(C)&&(C=(v[0]+v[1])/2);var A=T.getModel(),k=mo(T.getModel().get(["lineStyle","curveness"]),-GI(T,t,w,!0),0);return{n1:g[T.node1.dataIndex],n2:g[T.node2.dataIndex],d:C,curveness:k,ignoreForceLayout:A.get("ignoreForceLayout")}}),x=r.getBoundingRect(),S=FCe(g,y,{rect:x,gravity:s.get("gravity"),friction:s.get("friction")});S.beforeStep(function(b,w){for(var T=0,C=b.length;T<C;T++)b[T].fixed&&Dn(b[T].p,i.getNodeByIndex(T).getLayout())}),S.afterStep(function(b,w,T){for(var C=0,A=b.length;C<A;C++)b[C].fixed||i.getNodeByIndex(C).setLayout(b[C].p),n[a.getId(C)]=b[C].p;for(var C=0,A=w.length;C<A;C++){var k=w[C],I=i.getEdgeByIndex(C),P=k.n1.p,R=k.n2.p,L=I.getLayout();L=L?L.slice():[],L[0]=L[0]||[],L[1]=L[1]||[],Dn(L[0],P),Dn(L[1],R),+k.curveness&&(L[2]=[(P[0]+R[0])/2-(P[1]-R[1])*k.curveness,(P[1]+R[1])/2-(R[0]-P[0])*k.curveness]),I.setLayout(L)}}),t.forceLayout=S,t.preservedPoints=n,S.step()}else t.forceLayout=null})}function $Ce(e,t,r){var n=oe(e.getBoxLayoutParams(),{aspect:r});return Fr(n,{width:t.getWidth(),height:t.getHeight()})}function GCe(e,t){var r=[];return e.eachSeriesByType("graph",function(n){var i=n.get("coordinateSystem");if(!i||i==="view"){var a=n.getData(),o=a.mapArray(function(y){var x=a.getItemModel(y);return[+x.get("x"),+x.get("y")]}),s=[],l=[];aS(o,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=$Ce(n,t,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var f=l[0]-s[0],d=l[1]-s[1],h=c.width,v=c.height,g=n.coordinateSystem=new Ug;g.zoomLimit=n.get("scaleLimit"),g.setBoundingRect(s[0],s[1],f,d),g.setViewRect(c.x,c.y,h,v),g.setCenter(n.get("center"),t),g.setZoom(n.get("zoom")),r.push(g)}}),r}var xB=Hr.prototype,GC=Dg.prototype,t9=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}();(function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(t9);function HC(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var HCe=function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-line",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new t9},t.prototype.buildPath=function(r,n){HC(n)?xB.buildPath.call(this,r,n):GC.buildPath.call(this,r,n)},t.prototype.pointAt=function(r){return HC(this.shape)?xB.pointAt.call(this,r):GC.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var n=this.shape,i=HC(n)?[n.x2-n.x1,n.y2-n.y1]:GC.tangentAt.call(this,r);return Rd(i,i)},t}(vt),WC=["fromSymbol","toSymbol"];function SB(e){return"_"+e+"Type"}function bB(e,t,r){var n=t.getItemVisual(r,e);if(!n||n==="none")return n;var i=t.getItemVisual(r,e+"Size"),a=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=jd(i),u=Ic(o||0,l);return n+l+u+(a||"")+(s||"")}function _B(e,t,r){var n=t.getItemVisual(r,e);if(!(!n||n==="none")){var i=t.getItemVisual(r,e+"Size"),a=t.getItemVisual(r,e+"Rotate"),o=t.getItemVisual(r,e+"Offset"),s=t.getItemVisual(r,e+"KeepAspect"),l=jd(i),u=Ic(o||0,l),c=Er(n,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,c.name=e,c}}function WCe(e){var t=new HCe({name:"line",subPixelOptimize:!0});return RA(t.shape,e),t}function RA(e,t){e.x1=t[0][0],e.y1=t[0][1],e.x2=t[1][0],e.y2=t[1][1],e.percent=1;var r=t[2];r?(e.cpx1=r[0],e.cpy1=r[1]):(e.cpx1=NaN,e.cpy1=NaN)}var jI=function(e){J(t,e);function t(r,n,i){var a=e.call(this)||this;return a._createLine(r,n,i),a}return t.prototype._createLine=function(r,n,i){var a=r.hostModel,o=r.getItemLayout(n),s=WCe(o);s.shape.percent=0,lr(s,{shape:{percent:1}},a,n),this.add(s),V(WC,function(l){var u=_B(l,r,n);this.add(u),this[SB(l)]=bB(l,r,n)},this),this._updateCommonStl(r,n,i)},t.prototype.updateData=function(r,n,i){var a=r.hostModel,o=this.childOfName("line"),s=r.getItemLayout(n),l={shape:{}};RA(l.shape,s),Lt(o,l,a,n),V(WC,function(u){var c=bB(u,r,n),f=SB(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=_B(u,r,n);this.add(d)}this[f]=c},this),this._updateCommonStl(r,n,i)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(r,n,i){var a=r.hostModel,o=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,c=i&&i.labelStatesModels,f=i&&i.emphasisDisabled,d=i&&i.focus,h=i&&i.blurScope;if(!i||r.hasItemOption){var v=r.getItemModel(n),g=v.getModel("emphasis");s=g.getModel("lineStyle").getLineStyle(),l=v.getModel(["blur","lineStyle"]).getLineStyle(),u=v.getModel(["select","lineStyle"]).getLineStyle(),f=g.get("disabled"),d=g.get("focus"),h=g.get("blurScope"),c=Ur(v)}var y=r.getItemVisual(n,"style"),x=y.stroke;o.useStyle(y),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,V(WC,function(C){var A=this.childOfName(C);if(A){A.setColor(x),A.style.opacity=y.opacity;for(var k=0;k<Bn.length;k++){var I=Bn[k],P=o.getState(I);if(P){var R=P.style||{},L=A.ensureState(I),O=L.style||(L.style={});R.stroke!=null&&(O[A.__isEmptyBrush?"stroke":"fill"]=R.stroke),R.opacity!=null&&(O.opacity=R.opacity)}}A.markRedraw()}},this);var S=a.getRawValue(n);fn(this,c,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(C,A){return a.getFormattedLabel(C,A,r.dataType)}},inheritColor:x||"#000",defaultOpacity:y.opacity,defaultText:(S==null?r.getName(n):isFinite(S)?br(S):S)+""});var b=this.getTextContent();if(b){var w=c.normal;b.__align=b.style.align,b.__verticalAlign=b.style.verticalAlign,b.__position=w.get("position")||"middle";var T=w.get("distance");ue(T)||(T=[T,T]),b.__labelDistance=T}this.setTextConfig({position:null,local:!0,inside:!1}),mr(this,d,h,f)},t.prototype.highlight=function(){us(this)},t.prototype.downplay=function(){cs(this)},t.prototype.updateLayout=function(r,n){this.setLinePoints(r.getItemLayout(n))},t.prototype.setLinePoints=function(r){var n=this.childOfName("line");RA(n.shape,r),n.dirty()},t.prototype.beforeUpdate=function(){var r=this,n=r.childOfName("fromSymbol"),i=r.childOfName("toSymbol"),a=r.getTextContent();if(!n&&!i&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=r.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),d=ju([],f,c);Rd(d,d);function h(P,R){var L=P.__specifiedRotation;if(L==null){var O=l.tangentAt(R);P.attr("rotation",(R===1?-1:1)*Math.PI/2-Math.atan2(O[1],O[0]))}else P.attr("rotation",L)}if(n&&(n.setPosition(c),h(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&(i.setPosition(f),h(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var v=void 0,g=void 0,y=a.__labelDistance,x=y[0]*o,S=y[1]*o,b=u/2,w=l.tangentAt(b),T=[w[1],-w[0]],C=l.pointAt(b);T[1]>0&&(T[0]=-T[0],T[1]=-T[1]);var A=w[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var k=-Math.atan2(w[1],w[0]);f[0]<c[0]&&(k=Math.PI+k),a.rotation=k}var I=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":I=-S,g="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":I=S,g="top";break;default:I=0,g="middle"}switch(a.__position){case"end":a.x=d[0]*x+f[0],a.y=d[1]*S+f[1],v=d[0]>.8?"left":d[0]<-.8?"right":"center",g=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":a.x=-d[0]*x+c[0],a.y=-d[1]*S+c[1],v=d[0]>.8?"right":d[0]<-.8?"left":"center",g=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=x*A+c[0],a.y=c[1]+I,v=w[0]<0?"right":"left",a.originX=-x*A,a.originY=-I;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=C[0],a.y=C[1]+I,v="center",a.originY=-I;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-x*A+f[0],a.y=f[1]+I,v=w[0]>=0?"right":"left",a.originX=x*A,a.originY=-I;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||g,align:a.__align||v})}},t}(qe),UI=function(){function e(t){this.group=new qe,this._LineCtor=t||jI}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=t,a||i.removeAll();var o=wB(t);t.diff(a).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(a,t,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=wB(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!jCe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var a=r.getItemLayout(i);if(jC(a)){var o=new this._LineCtor(r,i,this._seriesScope);o.traverse(n),this.group.add(o),r.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},e.prototype.remove=function(){this.group.removeAll()},e.prototype.eachRendered=function(t){Ol(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,n){var i=t.getItemLayout(r);if(jC(i)){var a=new this._LineCtor(t,r,n);t.setItemGraphicEl(r,a),this.group.add(a)}},e.prototype._doUpdate=function(t,r,n,i,a){var o=t.getItemGraphicEl(n);if(!jC(r.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(r,i,a):o=new this._LineCtor(r,i,a),r.setItemGraphicEl(i,o),this.group.add(o)},e}();function jCe(e){return e.animators&&e.animators.length>0}function wB(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:Ur(t)}}function CB(e){return isNaN(e[0])||isNaN(e[1])}function jC(e){return e&&!CB(e[0])&&!CB(e[1])}var UC=[],YC=[],qC=[],Af=Qr,XC=ec,TB=Math.abs;function AB(e,t,r){for(var n=e[0],i=e[1],a=e[2],o=1/0,s,l=r*r,u=.1,c=.1;c<=.9;c+=.1){UC[0]=Af(n[0],i[0],a[0],c),UC[1]=Af(n[1],i[1],a[1],c);var f=TB(XC(UC,t)-l);f<o&&(o=f,s=c)}for(var d=0;d<32;d++){var h=s+u;YC[0]=Af(n[0],i[0],a[0],s),YC[1]=Af(n[1],i[1],a[1],s),qC[0]=Af(n[0],i[0],a[0],h),qC[1]=Af(n[1],i[1],a[1],h);var f=XC(YC,t)-l;if(TB(f)<.01)break;var v=XC(qC,t)-l;u/=2,f<0?v>=0?s=s+u:s=s-u:v>=0?s=s-u:s=s+u}return s}function ZC(e,t){var r=[],n=Bv,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[Jo(u[0]),Jo(u[1])],u[2]&&u.__original.push(Jo(u[2])));var d=u.__original;if(u[2]!=null){if(Dn(i[0],d[0]),Dn(i[1],d[2]),Dn(i[2],d[1]),c&&c!=="none"){var h=Up(s.node1),v=AB(i,d[0],h*t);n(i[0][0],i[1][0],i[2][0],v,r),i[0][0]=r[3],i[1][0]=r[4],n(i[0][1],i[1][1],i[2][1],v,r),i[0][1]=r[3],i[1][1]=r[4]}if(f&&f!=="none"){var h=Up(s.node2),v=AB(i,d[1],h*t);n(i[0][0],i[1][0],i[2][0],v,r),i[1][0]=r[1],i[2][0]=r[2],n(i[0][1],i[1][1],i[2][1],v,r),i[1][1]=r[1],i[2][1]=r[2]}Dn(u[0],i[0]),Dn(u[1],i[2]),Dn(u[2],i[1])}else{if(Dn(a[0],d[0]),Dn(a[1],d[1]),ju(o,a[1],a[0]),Rd(o,o),c&&c!=="none"){var h=Up(s.node1);g2(a[0],a[0],o,h*t)}if(f&&f!=="none"){var h=Up(s.node2);g2(a[1],a[1],o,-h*t)}Dn(u[0],a[0]),Dn(u[1],a[1])}})}function MB(e){return e.type==="view"}var UCe=function(e){J(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){var i=new Vg,a=new UI,o=this.group;this._controller=new jg(n.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},t.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(MB(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):Lt(u,c,r)}ZC(r.getGraph(),jp(r));var f=r.getData();s.updateData(f);var d=r.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(r,n,i),clearTimeout(this._layoutTimeout);var h=r.forceLayout,v=r.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,v);var g=r.get("layout");f.graph.eachNode(function(b){var w=b.dataIndex,T=b.getGraphicEl(),C=b.getModel();if(T){T.off("drag").off("dragend");var A=C.get("draggable");A&&T.on("drag",function(I){switch(g){case"force":h.warmUp(),!a._layouting&&a._startForceLayoutIteration(h,v),h.setFixed(w),f.setItemLayout(w,[T.x,T.y]);break;case"circular":f.setItemLayout(w,[T.x,T.y]),b.setLayout({fixed:!0},!0),WI(r,"symbolSize",b,[I.offsetX,I.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(w,[T.x,T.y]),HI(r.getGraph(),r),a.updateLayout(r);break}}).on("dragend",function(){h&&h.setUnfixed(w)}),T.setDraggable(A,!!C.get("cursor"));var k=C.get(["emphasis","focus"]);k==="adjacency"&&(Ze(T).focus=b.getAdjacentDataIndices())}}),f.graph.eachEdge(function(b){var w=b.getGraphicEl(),T=b.getModel().get(["emphasis","focus"]);w&&T==="adjacency"&&(Ze(w).focus={edge:[b.dataIndex],node:[b.node1.dataIndex,b.node2.dataIndex]})});var y=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),x=f.getLayout("cx"),S=f.getLayout("cy");f.graph.eachNode(function(b){e9(b,y,x,S)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(r,n){var i=this;(function a(){r.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(r,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!IS(u,i,r)}),!MB(r.coordinateSystem)){o.disable();return}o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){LI(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){OI(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),ZC(r.getGraph(),jp(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=jp(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){ZC(r.getGraph(),jp(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(Kt);function Mf(e){return"_EC_"+e}var YCe=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,r){t=t==null?""+r:""+t;var n=this._nodesMap;if(!n[Mf(t)]){var i=new Lu(t,r);return i.hostGraph=this,this.nodes.push(i),n[Mf(t)]=i,i}},e.prototype.getNodeByIndex=function(t){var r=this.data.getRawIndex(t);return this.nodes[r]},e.prototype.getNodeById=function(t){return this._nodesMap[Mf(t)]},e.prototype.addEdge=function(t,r,n){var i=this._nodesMap,a=this._edgesMap;if(Dt(t)&&(t=this.nodes[t]),Dt(r)&&(r=this.nodes[r]),t instanceof Lu||(t=i[Mf(t)]),r instanceof Lu||(r=i[Mf(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new r9(t,r,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),r.inEdges.push(s)),t.edges.push(s),t!==r&&r.edges.push(s),this.edges.push(s),a[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var r=this.edgeData.getRawIndex(t);return this.edges[r]},e.prototype.getEdge=function(t,r){t instanceof Lu&&(t=t.id),r instanceof Lu&&(r=r.id);var n=this._edgesMap;return this._directed?n[t+"-"+r]:n[t+"-"+r]||n[r+"-"+t]},e.prototype.eachNode=function(t,r){for(var n=this.nodes,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&t.call(r,n[a],a)},e.prototype.eachEdge=function(t,r){for(var n=this.edges,i=n.length,a=0;a<i;a++)n[a].dataIndex>=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&t.call(r,n[a],a)},e.prototype.breadthFirstTraverse=function(t,r,n,i){if(r instanceof Lu||(r=this._nodesMap[Mf(r)]),!!r){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!t.call(i,r,null))for(var s=[r];s.length;)for(var l=s.shift(),u=l[a],o=0;o<u.length;o++){var c=u[o],f=c.node1===l?c.node2:c.node1;if(!f.__visited){if(t.call(i,f,l))return;s.push(f),f.__visited=!0}}}},e.prototype.update=function(){for(var t=this.data,r=this.edgeData,n=this.nodes,i=this.edges,a=0,o=n.length;a<o;a++)n[a].dataIndex=-1;for(var a=0,o=t.count();a<o;a++)n[t.getRawIndex(a)].dataIndex=a;r.filterSelf(function(s){var l=i[r.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a<o;a++)i[a].dataIndex=-1;for(var a=0,o=r.count();a<o;a++)i[r.getRawIndex(a)].dataIndex=a},e.prototype.clone=function(){for(var t=new e(this._directed),r=this.nodes,n=this.edges,i=0;i<r.length;i++)t.addNode(r[i].id,r[i].dataIndex);for(var i=0;i<n.length;i++){var a=n[i];t.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return t},e}(),Lu=function(){function e(t,r){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=t??"",this.dataIndex=r??-1}return e.prototype.degree=function(){return this.edges.length},e.prototype.inDegree=function(){return this.inEdges.length},e.prototype.outDegree=function(){return this.outEdges.length},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){for(var t={edge:[],node:[]},r=0;r<this.edges.length;r++){var n=this.edges[r];n.dataIndex<0||(t.edge.push(n.dataIndex),t.node.push(n.node1.dataIndex,n.node2.dataIndex))}return t},e.prototype.getTrajectoryDataIndices=function(){for(var t=Oe(),r=Oe(),n=0;n<this.edges.length;n++){var i=this.edges[n];if(!(i.dataIndex<0)){t.set(i.dataIndex,!0);for(var a=[i.node1],o=[i.node2],s=0;s<a.length;){var l=a[s];s++,r.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)t.set(l.inEdges[u].dataIndex,!0),a.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var c=o[s];s++,r.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)t.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:t.keys(),node:r.keys()}},e}(),r9=function(){function e(t,r,n){this.dataIndex=-1,this.node1=t,this.node2=r,this.dataIndex=n??-1}return e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostGraph,n=r.edgeData.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},e.prototype.getTrajectoryDataIndices=function(){var t=Oe(),r=Oe();t.set(this.dataIndex,!0);for(var n=[this.node1],i=[this.node2],a=0;a<n.length;){var o=n[a];a++,r.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)t.set(o.inEdges[s].dataIndex,!0),n.push(o.inEdges[s].node1)}for(a=0;a<i.length;){var l=i[a];a++,r.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)t.set(l.outEdges[s].dataIndex,!0),i.push(l.outEdges[s].node2)}return{edge:t.keys(),node:r.keys()}},e}();function n9(e,t){return{getValue:function(r){var n=this[e][t];return n.getStore().get(n.getDimensionIndex(r||"value"),this.dataIndex)},setVisual:function(r,n){this.dataIndex>=0&&this[e][t].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}Lr(Lu,n9("hostGraph","data"));Lr(r9,n9("hostGraph","edgeData"));function i9(e,t,r,n,i){for(var a=new YCe(n),o=0;o<e.length;o++)a.addNode(Jr(e[o].id,e[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<t.length;o++){var c=t[o],f=c.source,d=c.target;a.addEdge(f,d,u)&&(l.push(c),s.push(Jr(Br(c.id,null),f+" > "+d)),u++)}var h=r.get("coordinateSystem"),v;if(h==="cartesian2d"||h==="polar")v=xs(e,r);else{var g=Og.get(h),y=g?g.dimensions||[]:[];ft(y,"value")<0&&y.concat(["value"]);var x=zg(e,{coordDimensions:y,encodeDefine:r.getEncode()}).dimensions;v=new On(x,r),v.initData(e)}var S=new On(["value"],r);return S.initData(l,s),i&&i(v,S),F8({mainData:v,struct:a,structAttr:"graph",datas:{node:v,edge:S},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var qCe=function(e){J(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.init=function(r){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new Wg(i,i),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(r){e.prototype.mergeDefaultAndTheme.apply(this,arguments),gc(r,"edgeLabel",["show"])},t.prototype.getInitialData=function(r,n){var i=r.edges||r.links||[],a=r.data||r.nodes||[],o=this;if(a&&i){LCe(this);var s=i9(a,i,this,!0,l);return V(s.edges,function(u){OCe(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(v){var g=o._categoriesModels,y=v.getShallow("category"),x=g[y];return x&&(x.parentModel=v.parentModel,v.parentModel=x),v});var f=Ft.prototype.getModel;function d(v,g){var y=f.call(this,v,g);return y.resolveParentPath=h,y}c.wrapMethod("getItemModel",function(v){return v.resolveParentPath=h,v.getModel=d,v});function h(v){if(v&&(v[0]==="label"||v[1]==="label")){var g=v.slice();return v[0]==="label"?g[0]="edgeLabel":v[1]==="label"&&(g[1]="edgeLabel"),g}return v}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(r,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(r,i),s=a.graph.getEdgeByIndex(r),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Yr("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=kW({series:this,dataIndex:r,multipleSeries:n});return f},t.prototype._updateCategoriesData=function(){var r=de(this.option.categories||[],function(i){return i.value!=null?i:oe({value:0},i)}),n=new On(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(or),XCe={type:"graphRoam",event:"graphRoam",update:"none"};function ZCe(e){e.registerChartView(UCe),e.registerSeriesModel(qCe),e.registerProcessor(ICe),e.registerVisual(PCe),e.registerVisual(DCe),e.registerLayout(NCe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,BCe),e.registerLayout(VCe),e.registerCoordinateSystem("graphView",{dimensions:Ug.dimensions,create:GCe}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Mr),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Mr),e.registerAction(XCe,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=zI(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var KCe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),QCe=function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new KCe},t.prototype.buildPath=function(r,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),c=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,c),r.lineTo(n.x+i(l)*s,n.y+a(l)*s),r.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),r.lineTo(n.x-i(l)*s,n.y-a(l)*s),r.lineTo(u,c)},t}(vt);function JCe(e,t){var r=e.get("center"),n=t.getWidth(),i=t.getHeight(),a=Math.min(n,i),o=xe(r[0],t.getWidth()),s=xe(r[1],t.getHeight()),l=xe(e.get("radius"),a/2);return{cx:o,cy:s,r:l}}function v0(e,t){var r=e==null?"":e+"";return t&&(we(t)?r=t.replace("{value}",r):Be(t)&&(r=t(e))),r}var eTe=function(e){J(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){this.group.removeAll();var a=r.get(["axisLine","lineStyle","color"]),o=JCe(r,i);this._renderMain(r,n,i,a,o),this._data=r.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(r,n,i,a,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,c=-r.get("endAngle")/180*Math.PI,f=r.getModel("axisLine"),d=f.get("roundCap"),h=d?Y1:Fn,v=f.get("show"),g=f.getModel("lineStyle"),y=g.get("width"),x=[u,c];Fk(x,!l),u=x[0],c=x[1];for(var S=c-u,b=u,w=[],T=0;v&&T<a.length;T++){var C=Math.min(Math.max(a[T][0],0),1);c=u+S*C;var A=new h({shape:{startAngle:b,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-y,r:o.r},silent:!0});A.setStyle({fill:a[T][1]}),A.setStyle(g.getLineStyle(["color","width"])),w.push(A),b=c}w.reverse(),V(w,function(I){return s.add(I)});var k=function(I){if(I<=0)return a[0][1];var P;for(P=0;P<a.length;P++)if(a[P][0]>=I&&(P===0?0:a[P-1][0])<I)return a[P][1];return a[P-1][1]};this._renderTicks(r,n,i,k,o,u,c,l,y),this._renderTitleAndDetail(r,n,i,k,o),this._renderAnchor(r,o),this._renderPointer(r,n,i,k,o,u,c,l,y)},t.prototype._renderTicks=function(r,n,i,a,o,s,l,u,c){for(var f=this.group,d=o.cx,h=o.cy,v=o.r,g=+r.get("min"),y=+r.get("max"),x=r.getModel("splitLine"),S=r.getModel("axisTick"),b=r.getModel("axisLabel"),w=r.get("splitNumber"),T=S.get("splitNumber"),C=xe(x.get("length"),v),A=xe(S.get("length"),v),k=s,I=(l-s)/w,P=I/T,R=x.getModel("lineStyle").getLineStyle(),L=S.getModel("lineStyle").getLineStyle(),O=x.get("distance"),z,F,H=0;H<=w;H++){if(z=Math.cos(k),F=Math.sin(k),x.get("show")){var q=O?O+c:c,$=new Hr({shape:{x1:z*(v-q)+d,y1:F*(v-q)+h,x2:z*(v-C-q)+d,y2:F*(v-C-q)+h},style:R,silent:!0});R.stroke==="auto"&&$.setStyle({stroke:a(H/w)}),f.add($)}if(b.get("show")){var q=b.get("distance")+O,X=v0(br(H/w*(y-g)+g),b.get("formatter")),B=a(H/w),Y=z*(v-C-q)+d,Z=F*(v-C-q)+h,j=b.get("rotate"),re=0;j==="radial"?(re=-k+2*Math.PI,re>Math.PI/2&&(re+=Math.PI)):j==="tangential"?re=-k-Math.PI/2:Dt(j)&&(re=j*Math.PI/180),re===0?f.add(new kt({style:ar(b,{text:X,x:Y,y:Z,verticalAlign:F<-.8?"top":F>.8?"bottom":"middle",align:z<-.4?"left":z>.4?"right":"center"},{inheritColor:B}),silent:!0})):f.add(new kt({style:ar(b,{text:X,x:Y,y:Z,verticalAlign:"middle",align:"center"},{inheritColor:B}),silent:!0,originX:Y,originY:Z,rotation:re}))}if(S.get("show")&&H!==w){var q=S.get("distance");q=q?q+c:c;for(var ce=0;ce<=T;ce++){z=Math.cos(k),F=Math.sin(k);var te=new Hr({shape:{x1:z*(v-q)+d,y1:F*(v-q)+h,x2:z*(v-A-q)+d,y2:F*(v-A-q)+h},silent:!0,style:L});L.stroke==="auto"&&te.setStyle({stroke:a((H+ce/T)/w)}),f.add(te),k+=P}k-=P}else k+=I}},t.prototype._renderPointer=function(r,n,i,a,o,s,l,u,c){var f=this.group,d=this._data,h=this._progressEls,v=[],g=r.get(["pointer","show"]),y=r.getModel("progress"),x=y.get("show"),S=r.getData(),b=S.mapDimension("value"),w=+r.get("min"),T=+r.get("max"),C=[w,T],A=[s,l];function k(P,R){var L=S.getItemModel(P),O=L.getModel("pointer"),z=xe(O.get("width"),o.r),F=xe(O.get("length"),o.r),H=r.get(["pointer","icon"]),q=O.get("offsetCenter"),$=xe(q[0],o.r),X=xe(q[1],o.r),B=O.get("keepAspect"),Y;return H?Y=Er(H,$-z/2,X-F,z,F,null,B):Y=new QCe({shape:{angle:-Math.PI/2,width:z,r:F,x:$,y:X}}),Y.rotation=-(R+Math.PI/2),Y.x=o.cx,Y.y=o.cy,Y}function I(P,R){var L=y.get("roundCap"),O=L?Y1:Fn,z=y.get("overlap"),F=z?y.get("width"):c/S.count(),H=z?o.r-F:o.r-(P+1)*F,q=z?o.r:o.r-P*F,$=new O({shape:{startAngle:s,endAngle:R,cx:o.cx,cy:o.cy,clockwise:u,r0:H,r:q}});return z&&($.z2=T-S.get(b,P)%T),$}(x||g)&&(S.diff(d).add(function(P){var R=S.get(b,P);if(g){var L=k(P,s);lr(L,{rotation:-((isNaN(+R)?A[0]:$t(R,C,A,!0))+Math.PI/2)},r),f.add(L),S.setItemGraphicEl(P,L)}if(x){var O=I(P,s),z=y.get("clip");lr(O,{shape:{endAngle:$t(R,C,A,z)}},r),f.add(O),G2(r.seriesIndex,S.dataType,P,O),v[P]=O}}).update(function(P,R){var L=S.get(b,P);if(g){var O=d.getItemGraphicEl(R),z=O?O.rotation:s,F=k(P,z);F.rotation=z,Lt(F,{rotation:-((isNaN(+L)?A[0]:$t(L,C,A,!0))+Math.PI/2)},r),f.add(F),S.setItemGraphicEl(P,F)}if(x){var H=h[R],q=H?H.shape.endAngle:s,$=I(P,q),X=y.get("clip");Lt($,{shape:{endAngle:$t(L,C,A,X)}},r),f.add($),G2(r.seriesIndex,S.dataType,P,$),v[P]=$}}).execute(),S.each(function(P){var R=S.getItemModel(P),L=R.getModel("emphasis"),O=L.get("focus"),z=L.get("blurScope"),F=L.get("disabled");if(g){var H=S.getItemGraphicEl(P),q=S.getItemVisual(P,"style"),$=q.fill;if(H instanceof en){var X=H.style;H.useStyle(oe({image:X.image,x:X.x,y:X.y,width:X.width,height:X.height},q))}else H.useStyle(q),H.type!=="pointer"&&H.setColor($);H.setStyle(R.getModel(["pointer","itemStyle"]).getItemStyle()),H.style.fill==="auto"&&H.setStyle("fill",a($t(S.get(b,P),C,[0,1],!0))),H.z2EmphasisLift=0,cn(H,R),mr(H,O,z,F)}if(x){var B=v[P];B.useStyle(S.getItemVisual(P,"style")),B.setStyle(R.getModel(["progress","itemStyle"]).getItemStyle()),B.z2EmphasisLift=0,cn(B,R),mr(B,O,z,F)}}),this._progressEls=v)},t.prototype._renderAnchor=function(r,n){var i=r.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=Er(s,n.cx-o/2+xe(l[0],n.r),n.cy-o/2+xe(l[1],n.r),o,o,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(r,n,i,a,o){var s=this,l=r.getData(),u=l.mapDimension("value"),c=+r.get("min"),f=+r.get("max"),d=new qe,h=[],v=[],g=r.isAnimationEnabled(),y=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(x){h[x]=new kt({silent:!0}),v[x]=new kt({silent:!0})}).update(function(x,S){h[x]=s._titleEls[S],v[x]=s._detailEls[S]}).execute(),l.each(function(x){var S=l.getItemModel(x),b=l.get(u,x),w=new qe,T=a($t(b,[c,f],[0,1],!0)),C=S.getModel("title");if(C.get("show")){var A=C.get("offsetCenter"),k=o.cx+xe(A[0],o.r),I=o.cy+xe(A[1],o.r),P=h[x];P.attr({z2:y?0:2,style:ar(C,{x:k,y:I,text:l.getName(x),align:"center",verticalAlign:"middle"},{inheritColor:T})}),w.add(P)}var R=S.getModel("detail");if(R.get("show")){var L=R.get("offsetCenter"),O=o.cx+xe(L[0],o.r),z=o.cy+xe(L[1],o.r),F=xe(R.get("width"),o.r),H=xe(R.get("height"),o.r),q=r.get(["progress","show"])?l.getItemVisual(x,"style").fill:T,P=v[x],$=R.get("formatter");P.attr({z2:y?0:2,style:ar(R,{x:O,y:z,text:v0(b,$),width:isNaN(F)?null:F,height:isNaN(H)?null:H,align:"center",verticalAlign:"middle"},{inheritColor:q})}),RH(P,{normal:R},b,function(B){return v0(B,$)}),g&&EH(P,x,l,r,{getFormattedLabel:function(B,Y,Z,j,re,ce){return v0(ce?ce.interpolatedValue:b,$)}}),w.add(P)}d.add(w)}),this.group.add(d),this._titleEls=h,this._detailEls=v},t.type="gauge",t}(Kt),tTe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="itemStyle",r}return t.prototype.getInitialData=function(r,n){return Yd(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},t}(or);function rTe(e){e.registerChartView(eTe),e.registerSeriesModel(tTe)}var nTe=["itemStyle","opacity"],iTe=function(e){J(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new Gn,s=new kt;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(r,n,!0),i}return t.prototype.updateData=function(r,n,i){var a=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(nTe);c=c??1,i||Na(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,lr(a,{style:{opacity:c}},o,n)):Lt(a,{style:{opacity:c},shape:{points:l.points}},o,n),cn(a,s),this._updateLabel(r,n),mr(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),c=u.label,f=r.getItemVisual(n,"style"),d=f.fill;fn(o,Ur(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:f.opacity,defaultText:r.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),i.setTextConfig({local:!0,inside:!!c.inside,insideStroke:d,outsideFill:d});var h=c.linePoints;a.setShape({points:h}),i.textGuideLineConfig={anchor:h?new et(h[0][0],h[0][1]):null},Lt(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),wI(i,CI(l),{stroke:d})},t}(Vn),aTe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new iTe(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(a,l),s.add(c),a.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);jv(u,r,l)}).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(Kt),oTe=function(e){J(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){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Wg(Ae(this.getData,this),Ae(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return Yd(this,{coordDimensions:["value"],encodeDefaulter:Je(rI,this)})},t.prototype._defaultLabelLine=function(r){gc(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var n=this.getData(),i=e.prototype.getDataParams.call(this,r),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,r)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},t}(or);function sTe(e,t){return Fr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function lTe(e,t){for(var r=e.mapDimension("value"),n=e.mapArray(r,function(l){return l}),i=[],a=t==="ascending",o=0,s=e.count();o<s;o++)i[o]=o;return Be(t)?i.sort(t):t!=="none"&&i.sort(function(l,u){return a?n[l]-n[u]:n[u]-n[l]}),i}function uTe(e){var t=e.hostModel,r=t.get("orient");e.each(function(n){var i=e.getItemModel(n),a=i.getModel("label"),o=a.get("position"),s=i.getModel("labelLine"),l=e.getItemLayout(n),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",f,d,h,v;if(c)o==="insideLeft"?(d=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,f="left"):o==="insideRight"?(d=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,f="right"):(d=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,f="center"),v=[[d,h],[d,h]];else{var g=void 0,y=void 0,x=void 0,S=void 0,b=s.get("length");o==="left"?(g=(u[3][0]+u[0][0])/2,y=(u[3][1]+u[0][1])/2,x=g-b,d=x-5,f="right"):o==="right"?(g=(u[1][0]+u[2][0])/2,y=(u[1][1]+u[2][1])/2,x=g+b,d=x+5,f="left"):o==="top"?(g=(u[3][0]+u[0][0])/2,y=(u[3][1]+u[0][1])/2,S=y-b,h=S-5,f="center"):o==="bottom"?(g=(u[1][0]+u[2][0])/2,y=(u[1][1]+u[2][1])/2,S=y+b,h=S+5,f="center"):o==="rightTop"?(g=r==="horizontal"?u[3][0]:u[1][0],y=r==="horizontal"?u[3][1]:u[1][1],r==="horizontal"?(S=y-b,h=S-5,f="center"):(x=g+b,d=x+5,f="top")):o==="rightBottom"?(g=u[2][0],y=u[2][1],r==="horizontal"?(S=y+b,h=S+5,f="center"):(x=g+b,d=x+5,f="bottom")):o==="leftTop"?(g=u[0][0],y=r==="horizontal"?u[0][1]:u[1][1],r==="horizontal"?(S=y-b,h=S-5,f="center"):(x=g-b,d=x-5,f="right")):o==="leftBottom"?(g=r==="horizontal"?u[1][0]:u[3][0],y=r==="horizontal"?u[1][1]:u[2][1],r==="horizontal"?(S=y+b,h=S+5,f="center"):(x=g-b,d=x-5,f="right")):(g=(u[1][0]+u[2][0])/2,y=(u[1][1]+u[2][1])/2,r==="horizontal"?(S=y+b,h=S+5,f="center"):(x=g+b,d=x+5,f="left")),r==="horizontal"?(x=g,d=x):(S=y,h=S),v=[[g,y],[x,S]]}l.label={linePoints:v,x:d,y:h,verticalAlign:"middle",textAlign:f,inside:c}})}function cTe(e,t){e.eachSeriesByType("funnel",function(r){var n=r.getData(),i=n.mapDimension("value"),a=r.get("sort"),o=sTe(r,t),s=r.get("orient"),l=o.width,u=o.height,c=lTe(n,a),f=o.x,d=o.y,h=s==="horizontal"?[xe(r.get("minSize"),u),xe(r.get("maxSize"),u)]:[xe(r.get("minSize"),l),xe(r.get("maxSize"),l)],v=n.getDataExtent(i),g=r.get("min"),y=r.get("max");g==null&&(g=Math.min(v[0],0)),y==null&&(y=v[1]);var x=r.get("funnelAlign"),S=r.get("gap"),b=s==="horizontal"?l:u,w=(b-S*(n.count()-1))/n.count(),T=function(z,F){if(s==="horizontal"){var H=n.get(i,z)||0,q=$t(H,[g,y],h,!0),$=void 0;switch(x){case"top":$=d;break;case"center":$=d+(u-q)/2;break;case"bottom":$=d+(u-q);break}return[[F,$],[F,$+q]]}var X=n.get(i,z)||0,B=$t(X,[g,y],h,!0),Y;switch(x){case"left":Y=f;break;case"center":Y=f+(l-B)/2;break;case"right":Y=f+l-B;break}return[[Y,F],[Y+B,F]]};a==="ascending"&&(w=-w,S=-S,s==="horizontal"?f+=l:d+=u,c=c.reverse());for(var C=0;C<c.length;C++){var A=c[C],k=c[C+1],I=n.getItemModel(A);if(s==="horizontal"){var P=I.get(["itemStyle","width"]);P==null?P=w:(P=xe(P,l),a==="ascending"&&(P=-P));var R=T(A,f),L=T(k,f+P);f+=P+S,n.setItemLayout(A,{points:R.concat(L.slice().reverse())})}else{var O=I.get(["itemStyle","height"]);O==null?O=w:(O=xe(O,u),a==="ascending"&&(O=-O));var R=T(A,d),L=T(k,d+O);d+=O+S,n.setItemLayout(A,{points:R.concat(L.slice().reverse())})}}uTe(n)})}function fTe(e){e.registerChartView(aTe),e.registerSeriesModel(oTe),e.registerLayout(cTe),e.registerProcessor(Hg("funnel"))}var dTe=.3,hTe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._dataGroup=new qe,r._initialized=!1,r}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(r,n,i,a){this._progressiveEls=null;var o=this._dataGroup,s=r.getData(),l=this._data,u=r.coordinateSystem,c=u.dimensions,f=IB(r);s.diff(l).add(d).update(h).remove(v).execute();function d(y){var x=kB(s,o,y,c,u);KC(x,s,y,f)}function h(y,x){var S=l.getItemGraphicEl(x),b=a9(s,y,c,u);s.setItemGraphicEl(y,S),Lt(S,{shape:{points:b}},r,y),Na(S),KC(S,s,y,f)}function v(y){var x=l.getItemGraphicEl(y);o.remove(x)}if(!this._initialized){this._initialized=!0;var g=pTe(u,r,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(g)}this._data=s},t.prototype.incrementalPrepareRender=function(r,n,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(r,n,i){for(var a=n.getData(),o=n.coordinateSystem,s=o.dimensions,l=IB(n),u=this._progressiveEls=[],c=r.start;c<r.end;c++){var f=kB(a,this._dataGroup,c,s,o);f.incremental=!0,KC(f,a,c,l),u.push(f)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(Kt);function pTe(e,t,r){var n=e.model,i=e.getRect(),a=new Ct({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o=n.get("layout")==="horizontal"?"width":"height";return a.setShape(o,0),lr(a,{shape:{width:i.width,height:i.height}},t,r),a}function a9(e,t,r,n){for(var i=[],a=0;a<r.length;a++){var o=r[a],s=e.get(e.mapDimension(o),t);vTe(s,n.getAxis(o).type)||i.push(n.dataToPoint(s,o))}return i}function kB(e,t,r,n,i){var a=a9(e,r,n,i),o=new Gn({shape:{points:a},z2:10});return t.add(o),e.setItemGraphicEl(r,o),o}function IB(e){var t=e.get("smooth",!0);return t===!0&&(t=dTe),t=ls(t),zv(t)&&(t=0),{smooth:t}}function KC(e,t,r,n){e.useStyle(t.getItemVisual(r,"style")),e.style.fill=null,e.setShape("smooth",n.smooth);var i=t.getItemModel(r),a=i.getModel("emphasis");cn(e,i,"lineStyle"),mr(e,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function vTe(e,t){return t==="category"?e==null:e==null||isNaN(e)}var gTe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.getInitialData=function(r,n){return xs(null,this,{useEncodeDefaulter:Ae(mTe,null,this)})},t.prototype.getRawIndicesByActiveState=function(r){var n=this.coordinateSystem,i=this.getData(),a=[];return n.eachActiveState(i,function(o,s){r===o&&a.push(i.getRawIndex(s))}),a},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t}(or);function mTe(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var r={};return V(t.dimensions,function(n){var i=yTe(n);r[n]=i}),r}}function yTe(e){return+e.replace("dim","")}var xTe=["lineStyle","opacity"],STe={seriesType:"parallel",reset:function(e,t){var r=e.coordinateSystem,n={normal:e.get(["lineStyle","opacity"]),active:e.get("activeOpacity"),inactive:e.get("inactiveOpacity")};return{progress:function(i,a){r.eachActiveState(a,function(o,s){var l=n[o];if(o==="normal"&&a.hasItemOption){var u=a.getItemModel(s).get(xTe,!0);u!=null&&(l=u)}var c=a.ensureUniqueItemVisual(s,"style");c.opacity=l},i.start,i.end)}}}};function bTe(e){_Te(e),wTe(e)}function _Te(e){if(!e.parallel){var t=!1;V(e.series,function(r){r&&r.type==="parallel"&&(t=!0)}),t&&(e.parallel=[{}])}}function wTe(e){var t=Yt(e.parallelAxis);V(t,function(r){if(Ge(r)){var n=r.parallelIndex||0,i=Yt(e.parallel)[n];i&&i.parallelAxisDefault&&rt(r,i.parallelAxisDefault,!1)}})}var CTe=5,TTe=function(e){J(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){this._model=r,this._api=i,this._handlers||(this._handlers={},V(ATe,function(a,o){i.getZr().on(o,this._handlers[o]=Ae(a,this))},this)),Wd(this,"_throttledDispatchExpand",r.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(r,n){Xv(this,"_throttledDispatchExpand"),V(this._handlers,function(i,a){n.getZr().off(a,i)}),this._handlers=null},t.prototype._throttledDispatchExpand=function(r){this._dispatchExpand(r)},t.prototype._dispatchExpand=function(r){r&&this._api.dispatchAction(oe({type:"parallelAxisExpand"},r))},t.type="parallel",t}(dr),ATe={mousedown:function(e){QC(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(QC(this,"click")&&t){var r=[e.offsetX,e.offsetY],n=Math.pow(t[0]-r[0],2)+Math.pow(t[1]-r[1],2);if(n>CTe)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!QC(this,"mousemove"))){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function QC(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}var MTe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&rt(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var i=r.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(r){V(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=jt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);V(i,function(a){r.push("dim"+a.get("dim")),n.push(a.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},t}(xt),kTe=function(e){J(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(Fa);function Ec(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=kf(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=kf(s,[0,o]),i=a=kf(s,[i,a]),n=0}t[0]=kf(t[0],r),t[1]=kf(t[1],r);var l=JC(t,n);t[n]+=e;var u=i||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=kf(t[n],c);var f;return f=JC(t,n),i!=null&&(f.sign!==l.sign||f.span<i)&&(t[1-n]=t[n]+l.sign*i),f=JC(t,n),a!=null&&f.span>a&&(t[1-n]=t[n]+f.sign*a),t}function JC(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function kf(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var eT=V,o9=Math.min,s9=Math.max,PB=Math.floor,ITe=Math.ceil,DB=br,PTe=Math.PI,DTe=function(){function e(t,r,n){this.type="parallel",this._axesMap=Oe(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var i=t.dimensions,a=t.parallelAxisIndex;eT(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new kTe(o,MS(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,r){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,i=r.layoutBase,a=r.pixelDimIndex,o=t[1-a],s=t[a];return o>=n&&o<=n+r.axisLength&&s>=i&&s<=i+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,r){r.eachSeries(function(n){if(t.contains(n,r)){var i=n.getData();eT(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),bd(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=Fr(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],i=["width","height"],a=t.get("layout"),o=a==="horizontal"?0:1,s=r[i[o]],l=[0,s],u=this.dimensions.length,c=g0(t.get("axisExpandWidth"),l),f=g0(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,h=t.get("axisExpandWindow"),v;if(h)v=g0(h[1]-h[0],l),h[1]=h[0]+v;else{v=g0(c*(f-1),l);var g=t.get("axisExpandCenter")||PB(u/2);h=[c*g-v/2],h[1]=h[0]+v}var y=(s-v)/(u-f);y<3&&(y=0);var x=[PB(DB(h[0]/c,1))+1,ITe(DB(h[1]/c,1))-1],S=y/c*h[0];return{layout:a,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[i[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:y,axisExpandWindow:h,axisCount:u,winInnerIndices:x,axisExpandWindow0Pos:S}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;r.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),eT(n,function(o,s){var l=(i.axisExpandable?ETe:RTe)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:PTe/2,vertical:0},f=[u[a].x+t.x,u[a].y+t.y],d=c[a],h=wi();Mc(h,h,d),To(h,h,f),this._axesLayout[o]={position:f,rotation:d,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(t),r)},e.prototype.eachActiveState=function(t,r,n,i){n==null&&(n=0),i==null&&(i=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];V(o,function(y){s.push(t.mapDimension(y)),l.push(a.get(y).model)});for(var u=this.hasAxisBrushed(),c=n;c<i;c++){var f=void 0;if(!u)f="normal";else{f="active";for(var d=t.getValues(s,c),h=0,v=o.length;h<v;h++){var g=l[h].getActiveState(d[h]);if(g==="inactive"){f="inactive";break}}}r(f,c)}},e.prototype.hasAxisBrushed=function(){for(var t=this.dimensions,r=this._axesMap,n=!1,i=0,a=t.length;i<a;i++)r.get(t[i]).model.getActiveState()!=="normal"&&(n=!0);return n},e.prototype.axisCoordToPoint=function(t,r){var n=this._axesLayout[r];return Ia([t,0],n.transform)},e.prototype.getAxisLayout=function(t){return We(this._axesLayout[t])},e.prototype.getSlidedAxisExpandWindow=function(t){var r=this._makeLayoutInfo(),n=r.pixelDimIndex,i=r.axisExpandWindow.slice(),a=i[1]-i[0],o=[0,r.axisExpandWidth*(r.axisCount-1)];if(!this.containPoint(t))return{behavior:"none",axisExpandWindow:i};var s=t[n]-r.layoutBase-r.axisExpandWindow0Pos,l,u="slide",c=r.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),d=f[0]!=null;if(c)d&&c&&s<a*f[0]?(u="jump",l=s-a*f[2]):d&&c&&s>a*(1-f[0])?(u="jump",l=s-a*(1-f[2])):(l=s-a*f[1])>=0&&(l=s-a*(1-f[1]))<=0&&(l=0),l*=r.axisExpandWidth/c,l?Ec(l,i,o,"all"):u="none";else{var h=i[1]-i[0],v=o[1]*s/h;i=[s9(0,v-h/2)],i[1]=o9(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:u}},e}();function g0(e,t){return o9(s9(e,t[0]),t[1])}function RTe(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function ETe(e,t){var r=t.layoutLength,n=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,l=a,u=!1,c;return e<o[0]?(s=e*a,c=a):e<=o[1]?(s=t.axisExpandWindow0Pos+e*n-t.axisExpandWindow[0],l=n,u=!0):(s=r-(i-1-e)*a,c=a),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}function LTe(e,t){var r=[];return e.eachComponent("parallel",function(n,i){var a=new DTe(n,e,t);a.name="parallel_"+i,a.resize(n,t),n.coordinateSystem=a,a.model=n,r.push(a)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="parallel"){var i=n.getReferringComponents("parallel",Rr).models[0];n.coordinateSystem=i.coordinateSystem}}),r}var OTe={create:LTe},EA=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.activeIntervals=[],r}return t.prototype.getAreaSelectStyle=function(){return yc([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(r){var n=this.activeIntervals=We(r);if(n)for(var i=n.length-1;i>=0;i--)Qi(n[i])},t.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=r&&r<=i[1])return"active"}else for(var a=0,o=n.length;a<o;a++)if(n[a][0]<=r&&r<=n[a][1])return"active";return"inactive"},t}(xt);Lr(EA,Bg);var bc=!0,sg=Math.min,Cd=Math.max,NTe=Math.pow,zTe=1e4,BTe=6,FTe=6,RB="globalPan",VTe={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},$Te={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},EB={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},GTe=0,YI=function(e){J(t,e);function t(r){var n=e.call(this)||this;return n._track=[],n._covers=[],n._handlers={},n._zr=r,n.group=new qe,n._uid="brushController_"+GTe++,V(XTe,function(i,a){this._handlers[a]=Ae(i,this)},n),n}return t.prototype.enableBrush=function(r){return this._brushType&&this._doDisableBrush(),r.brushType&&this._doEnableBrush(r),this},t.prototype._doEnableBrush=function(r){var n=this._zr;this._enableGlobalPan||R_e(n,RB,this._uid),V(this._handlers,function(i,a){n.on(a,i)}),this._brushType=r.brushType,this._brushOption=rt(We(EB),r,!0)},t.prototype._doDisableBrush=function(){var r=this._zr;E_e(r,RB,this._uid),V(this._handlers,function(n,i){r.off(i,n)}),this._brushType=this._brushOption=null},t.prototype.setPanels=function(r){if(r&&r.length){var n=this._panels={};V(r,function(i){n[i.panelId]=We(i)})}else this._panels=null;return this},t.prototype.mount=function(r){r=r||{},this._enableGlobalPan=r.enableGlobalPan;var n=this.group;return this._zr.add(n),n.attr({x:r.x||0,y:r.y||0,rotation:r.rotation||0,scaleX:r.scaleX||1,scaleY:r.scaleY||1}),this._transform=n.getLocalTransform(),this},t.prototype.updateCovers=function(r){r=de(r,function(d){return rt(We(EB),d,!0)});var n="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new fs(i,r,u,l).add(c).update(c).remove(f).execute(),this;function l(d,h){return(d.id!=null?d.id:n+h)+"-"+d.brushType}function u(d,h){return l(d.__brushOption,h)}function c(d,h){var v=r[d];if(h!=null&&i[h]===s)a[d]=i[h];else{var g=a[d]=h!=null?(i[h].__brushOption=v,i[h]):u9(o,l9(o,v));qI(o,g)}}function f(d){i[d]!==s&&o.group.remove(i[d])}},t.prototype.unmount=function(){return this.enableBrush(!1),LA(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(sa);function l9(e,t){var r=ES[t.brushType].createCover(e,t);return r.__brushOption=t,f9(r,t),e.group.add(r),r}function u9(e,t){var r=XI(t);return r.endCreating&&(r.endCreating(e,t),f9(t,t.__brushOption)),t}function c9(e,t){var r=t.__brushOption;XI(t).updateCoverShape(e,t,r.range,r)}function f9(e,t){var r=t.z;r==null&&(r=zTe),e.traverse(function(n){n.z=r,n.z2=r})}function qI(e,t){XI(t).updateCommon(e,t),c9(e,t)}function XI(e){return ES[e.__brushOption.brushType]}function ZI(e,t,r){var n=e._panels;if(!n)return bc;var i,a=e._transform;return V(n,function(o){o.isTargetByCursor(t,r,a)&&(i=o)}),i}function d9(e,t){var r=e._panels;if(!r)return bc;var n=t.__brushOption.panelId;return n!=null?r[n]:bc}function LA(e){var t=e._covers,r=t.length;return V(t,function(n){e.group.remove(n)},e),t.length=0,!!r}function _c(e,t){var r=de(e._covers,function(n){var i=n.__brushOption,a=We(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});e.trigger("brush",{areas:r,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function HTe(e){var t=e._track;if(!t.length)return!1;var r=t[t.length-1],n=t[0],i=r[0]-n[0],a=r[1]-n[1],o=NTe(i*i+a*a,.5);return o>BTe}function h9(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function p9(e,t,r,n){var i=new qe;return i.add(new Ct({name:"main",style:KI(r),silent:!0,draggable:!0,cursor:"move",drift:Je(LB,e,t,i,["n","s","w","e"]),ondragend:Je(_c,t,{isEnd:!0})})),V(n,function(a){i.add(new Ct({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:Je(LB,e,t,i,a),ondragend:Je(_c,t,{isEnd:!0})}))}),i}function v9(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=Cd(i,FTe),o=r[0][0],s=r[1][0],l=o-i/2,u=s-i/2,c=r[0][1],f=r[1][1],d=c-a+i/2,h=f-a+i/2,v=c-o,g=f-s,y=v+i,x=g+i;Uo(e,t,"main",o,s,v,g),n.transformable&&(Uo(e,t,"w",l,u,a,x),Uo(e,t,"e",d,u,a,x),Uo(e,t,"n",l,u,y,a),Uo(e,t,"s",l,h,y,a),Uo(e,t,"nw",l,u,a,a),Uo(e,t,"ne",d,u,a,a),Uo(e,t,"sw",l,h,a,a),Uo(e,t,"se",d,h,a,a))}function OA(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(KI(r)),i.attr({silent:!n,cursor:n?"move":"default"}),V([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?NA(e,a[0]):jTe(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?$Te[s]+"-resize":null})})}function Uo(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(YTe(QI(e,t,[[n,i],[n+a,i+o]])))}function KI(e){return Ve({strokeNoScale:!0},e.brushStyle)}function g9(e,t,r,n){var i=[sg(e,r),sg(t,n)],a=[Cd(e,r),Cd(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function WTe(e){return ac(e.group)}function NA(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=fS(r[t],WTe(e));return n[i]}function jTe(e,t){var r=[NA(e,t[0]),NA(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function LB(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=m9(t,i,a);V(n,function(u){var c=VTe[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(g9(s[0][0],s[1][0],s[0][1],s[1][1])),qI(t,r),_c(t,{isEnd:!1})}function UTe(e,t,r,n){var i=t.__brushOption.range,a=m9(e,r,n);V(i,function(o){o[0]+=a[0],o[1]+=a[1]}),qI(e,t),_c(e,{isEnd:!1})}function m9(e,t,r){var n=e.group,i=n.transformCoordToLocal(t,r),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function QI(e,t,r){var n=d9(e,t);return n&&n!==bc?n.clipPath(r,e._transform):We(r)}function YTe(e){var t=sg(e[0][0],e[1][0]),r=sg(e[0][1],e[1][1]),n=Cd(e[0][0],e[1][0]),i=Cd(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function qTe(e,t,r){if(!(!e._brushType||ZTe(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=ZI(e,t,r);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===bc||s.panelId===a.panelId)&&ES[s.brushType].contain(i[o],r[0],r[1]))return}a&&n.setCursorStyle("crosshair")}}function zA(e){var t=e.event;t.preventDefault&&t.preventDefault()}function BA(e,t,r){return e.childOfName("main").contain(t,r)}function y9(e,t,r,n){var i=e._creatingCover,a=e._creatingPanel,o=e._brushOption,s;if(e._track.push(r.slice()),HTe(e)||i){if(a&&!i){o.brushMode==="single"&&LA(e);var l=We(o);l.brushType=OB(l.brushType,a),l.panelId=a===bc?null:a.panelId,i=e._creatingCover=l9(e,l),e._covers.push(i)}if(i){var u=ES[OB(e._brushType,a)],c=i.__brushOption;c.range=u.getCreatingRange(QI(e,i,e._track)),n&&(u9(e,i),u.updateCommon(e,i)),c9(e,i),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&ZI(e,t,r)&&LA(e)&&(s={isEnd:n,removeOnClick:!0});return s}function OB(e,t){return e==="auto"?t.defaultBrushType:e}var XTe={mousedown:function(e){if(this._dragging)NB(this,e);else if(!e.target||!e.target.draggable){zA(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var r=this._creatingPanel=ZI(this,e,t);r&&(this._dragging=!0,this._track=[t.slice()])}},mousemove:function(e){var t=e.offsetX,r=e.offsetY,n=this.group.transformCoordToLocal(t,r);if(qTe(this,e,n),this._dragging){zA(e);var i=y9(this,e,n,!1);i&&_c(this,i)}},mouseup:function(e){NB(this,e)}};function NB(e,t){if(e._dragging){zA(t);var r=t.offsetX,n=t.offsetY,i=e.group.transformCoordToLocal(r,n),a=y9(e,t,i,!0);e._dragging=!1,e._track=[],e._creatingCover=null,a&&_c(e,a)}}function ZTe(e,t,r){var n=e._zr;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var ES={lineX:zB(0),lineY:zB(1),rect:{createCover:function(e,t){function r(n){return n}return p9({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=h9(e);return g9(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){v9(e,t,r,n)},updateCommon:OA,contain:BA},polygon:{createCover:function(e,t){var r=new qe;return r.add(new Gn({name:"main",style:KI(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new Vn({name:"main",draggable:!0,drift:Je(UTe,e,t),ondragend:Je(_c,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:QI(e,t,r)})},updateCommon:OA,contain:BA}};function zB(e){return{createCover:function(t,r){return p9({toRectRange:function(n){var i=[n,[0,100]];return e&&i.reverse(),i},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=h9(t),n=sg(r[0][e],r[1][e]),i=Cd(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=d9(t,r);if(o!==bc&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,a];e&&l.reverse(),v9(t,r,l,i)},updateCommon:OA,contain:BA}}function x9(e){return e=JI(e),function(t){return IH(t,e)}}function S9(e,t){return e=JI(e),function(r){var n=t??r,i=n?e.width:e.height,a=n?e.x:e.y;return[a,a+(i||0)]}}function b9(e,t,r){var n=JI(e);return function(i,a){return n.contain(a[0],a[1])&&!IS(i,t,r)}}function JI(e){return nt.create(e)}var KTe=["axisLine","axisTickLabel","axisName"],QTe=function(e){J(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){e.prototype.init.apply(this,arguments),(this._brushController=new YI(n.getZr())).on("brush",Ae(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!JTe(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new qe,this.group.add(this._axisGroup),!!r.get("show")){var s=t2e(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,d=l.getAxisLayout(f),h=oe({strokeContainThreshold:c},d),v=new Nn(r,h);V(KTe,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(h,u,r,s,c,i),Eg(o,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=nt.create({x:l[0],y:-o/2,width:u,height:o});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:x9(f),isTargetByCursor:b9(f,s,a),getLinearBrushOtherExtent:S9(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(e2e(i))},t.prototype._onBrush=function(r){var n=r.areas,i=this.axisModel,a=i.axis,o=de(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(dr);function JTe(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function e2e(e){var t=e.axis;return de(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function t2e(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var r2e={type:"axisAreaSelect",event:"axisAreaSelected"};function n2e(e){e.registerAction(r2e,function(t,r){r.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,r){r.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var i2e={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function _9(e){e.registerComponentView(TTe),e.registerComponentModel(MTe),e.registerCoordinateSystem("parallel",OTe),e.registerPreprocessor(bTe),e.registerComponentModel(EA),e.registerComponentView(QTe),wd(e,"parallel",EA,i2e),n2e(e)}function a2e(e){pt(_9),e.registerChartView(hTe),e.registerSeriesModel(gTe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,STe)}var o2e=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return e}(),s2e=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new o2e},t.prototype.buildPath=function(r,n){var i=n.extent;r.moveTo(n.x1,n.y1),r.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(r.lineTo(n.x2+i,n.y2),r.bezierCurveTo(n.cpx2+i,n.cpy2,n.cpx1+i,n.cpy1,n.x1+i,n.y1)):(r.lineTo(n.x2,n.y2+i),r.bezierCurveTo(n.cpx2,n.cpy2+i,n.cpx1,n.cpy1+i,n.x1,n.y1+i)),r.closePath()},t.prototype.highlight=function(){us(this)},t.prototype.downplay=function(){cs(this)},t}(vt),l2e=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._focusAdjacencyDisabled=!1,r}return t.prototype.render=function(r,n,i){var a=this,o=r.getGraph(),s=this.group,l=r.layoutInfo,u=l.width,c=l.height,f=r.getData(),d=r.getData("edge"),h=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(v){var g=new s2e,y=Ze(g);y.dataIndex=v.dataIndex,y.seriesIndex=r.seriesIndex,y.dataType="edge";var x=v.getModel(),S=x.getModel("lineStyle"),b=S.get("curveness"),w=v.node1.getLayout(),T=v.node1.getModel(),C=T.get("localX"),A=T.get("localY"),k=v.node2.getLayout(),I=v.node2.getModel(),P=I.get("localX"),R=I.get("localY"),L=v.getLayout(),O,z,F,H,q,$,X,B;g.shape.extent=Math.max(1,L.dy),g.shape.orient=h,h==="vertical"?(O=(C!=null?C*u:w.x)+L.sy,z=(A!=null?A*c:w.y)+w.dy,F=(P!=null?P*u:k.x)+L.ty,H=R!=null?R*c:k.y,q=O,$=z*(1-b)+H*b,X=F,B=z*b+H*(1-b)):(O=(C!=null?C*u:w.x)+w.dx,z=(A!=null?A*c:w.y)+L.sy,F=P!=null?P*u:k.x,H=(R!=null?R*c:k.y)+L.ty,q=O*(1-b)+F*b,$=z,X=O*b+F*(1-b),B=H),g.setShape({x1:O,y1:z,x2:F,y2:H,cpx1:q,cpy1:$,cpx2:X,cpy2:B}),g.useStyle(S.getItemStyle()),BB(g.style,h,v);var Y=""+x.get("value"),Z=Ur(x,"edgeLabel");fn(g,Z,{labelFetcher:{getFormattedLabel:function(ce,te,pe,ae,he,ve){return r.getFormattedLabel(ce,te,"edge",ae,mo(he,Z.normal&&Z.normal.get("formatter"),Y),ve)}},labelDataIndex:v.dataIndex,defaultText:Y}),g.setTextConfig({position:"inside"});var j=x.getModel("emphasis");cn(g,x,"lineStyle",function(ce){var te=ce.getItemStyle();return BB(te,h,v),te}),s.add(g),d.setItemGraphicEl(v.dataIndex,g);var re=j.get("focus");mr(g,re==="adjacency"?v.getAdjacentDataIndices():re==="trajectory"?v.getTrajectoryDataIndices():re,j.get("blurScope"),j.get("disabled"))}),o.eachNode(function(v){var g=v.getLayout(),y=v.getModel(),x=y.get("localX"),S=y.get("localY"),b=y.getModel("emphasis"),w=y.get(["itemStyle","borderRadius"])||0,T=new Ct({shape:{x:x!=null?x*u:g.x,y:S!=null?S*c:g.y,width:g.dx,height:g.dy,r:w},style:y.getModel("itemStyle").getItemStyle(),z2:10});fn(T,Ur(y),{labelFetcher:{getFormattedLabel:function(A,k){return r.getFormattedLabel(A,k,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),T.disableLabelAnimation=!0,T.setStyle("fill",v.getVisual("color")),T.setStyle("decal",v.getVisual("style").decal),cn(T,y),s.add(T),f.setItemGraphicEl(v.dataIndex,T),Ze(T).dataType="node";var C=b.get("focus");mr(T,C==="adjacency"?v.getAdjacentDataIndices():C==="trajectory"?v.getTrajectoryDataIndices():C,b.get("blurScope"),b.get("disabled"))}),f.eachItemGraphicEl(function(v,g){var y=f.getItemModel(g);y.get("draggable")&&(v.drift=function(x,S){a._focusAdjacencyDisabled=!0,this.shape.x+=x,this.shape.y+=S,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:f.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},v.ondragend=function(){a._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&r.isAnimationEnabled()&&s.setClipPath(u2e(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(Kt);function BB(e,t,r){switch(e.fill){case"source":e.fill=r.node1.getVisual("color"),e.decal=r.node1.getVisual("style").decal;break;case"target":e.fill=r.node2.getVisual("color"),e.decal=r.node2.getVisual("style").decal;break;case"gradient":var n=r.node1.getVisual("color"),i=r.node2.getVisual("color");we(n)&&we(i)&&(e.fill=new Rg(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function u2e(e,t,r){var n=new Ct({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return lr(n,{shape:{width:e.width+20}},t,r),n}var c2e=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){var i=r.edges||r.links,a=r.data||r.nodes,o=r.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)o[l].depth!=null&&o[l].depth>=0&&(s[o[l].depth]=new Ft(o[l],this,n));if(a&&i){var u=i9(a,i,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(h,v){var g=h.parentModel,y=g.getData().getItemLayout(v);if(y){var x=y.depth,S=g.levelModels[x];S&&(h.parentModel=S)}return h}),d.wrapMethod("getItemModel",function(h,v){var g=h.parentModel,y=g.getGraph().getEdgeByIndex(v),x=y.node1.getLayout();if(x){var S=x.depth,b=g.levelModels[S];b&&(h.parentModel=b)}return h})}},t.prototype.setNodePosition=function(r,n){var i=this.option.data||this.option.nodes,a=i[r];a.localX=n[0],a.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(r,n,i){function a(h){return isNaN(h)||h==null}if(i==="edge"){var o=this.getDataParams(r,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Yr("nameValue",{name:u,value:l,noValue:a(l)})}else{var c=this.getGraph().getNodeByIndex(r),f=c.getLayout().value,d=this.getDataParams(r,i).data.name;return Yr("nameValue",{name:d!=null?d+"":null,value:f,noValue:a(f)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(r,n){var i=e.prototype.getDataParams.call(this,r,n);if(i.value==null&&n==="node"){var a=this.getGraph().getNodeByIndex(r),o=a.getLayout().value;i.value=o}return i},t.type="series.sankey",t.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},t}(or);function f2e(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=d2e(r,t);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;p2e(u);var f=jt(u,function(g){return g.getLayout().value===0}),d=f.length!==0?0:r.get("layoutIterations"),h=r.get("orient"),v=r.get("nodeAlign");h2e(u,c,n,i,o,s,d,h,v)})}function d2e(e,t){return Fr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function h2e(e,t,r,n,i,a,o,s,l){v2e(e,t,r,i,a,s,l),x2e(e,t,a,i,n,o,s),k2e(e,s)}function p2e(e){V(e,function(t){var r=yl(t.outEdges,J1),n=yl(t.inEdges,J1),i=t.getValue()||0,a=Math.max(r,n,i);t.setLayout({value:a},!0)})}function v2e(e,t,r,n,i,a,o){for(var s=[],l=[],u=[],c=[],f=0,d=0;d<t.length;d++)s[d]=1;for(var d=0;d<e.length;d++)l[d]=e[d].inEdges.length,l[d]===0&&u.push(e[d]);for(var h=-1;u.length;){for(var v=0;v<u.length;v++){var g=u[v],y=g.hostGraph.data.getRawDataItem(g.dataIndex),x=y.depth!=null&&y.depth>=0;x&&y.depth>h&&(h=y.depth),g.setLayout({depth:x?y.depth:f},!0),a==="vertical"?g.setLayout({dy:r},!0):g.setLayout({dx:r},!0);for(var S=0;S<g.outEdges.length;S++){var b=g.outEdges[S],w=t.indexOf(b);s[w]=0;var T=b.node2,C=e.indexOf(T);--l[C]===0&&c.indexOf(T)<0&&c.push(T)}}++f,u=c,c=[]}for(var d=0;d<s.length;d++)if(s[d]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var A=h>f-1?h:f-1;o&&o!=="left"&&g2e(e,o,a,A);var k=a==="vertical"?(i-r)/A:(n-r)/A;y2e(e,k,a)}function w9(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function g2e(e,t,r,n){if(t==="right"){for(var i=[],a=e,o=0;a.length;){for(var s=0;s<a.length;s++){var l=a[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];i.indexOf(c.node1)<0&&i.push(c.node1)}}a=i,i=[],++o}V(e,function(f){w9(f)||f.setLayout({depth:Math.max(0,n-f.getLayout().skNodeHeight)},!0)})}else t==="justify"&&m2e(e,n)}function m2e(e,t){V(e,function(r){!w9(r)&&!r.outEdges.length&&r.setLayout({depth:t},!0)})}function y2e(e,t,r){V(e,function(n){var i=n.getLayout().depth*t;r==="vertical"?n.setLayout({y:i},!0):n.setLayout({x:i},!0)})}function x2e(e,t,r,n,i,a,o){var s=S2e(e,o);b2e(s,t,r,n,i,o),tT(s,i,r,n,o);for(var l=1;a>0;a--)l*=.99,_2e(s,l,o),tT(s,i,r,n,o),M2e(s,l,o),tT(s,i,r,n,o)}function S2e(e,t){var r=[],n=t==="vertical"?"y":"x",i=B2(e,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),V(i.keys,function(a){r.push(i.buckets.get(a))}),r}function b2e(e,t,r,n,i,a){var o=1/0;V(e,function(s){var l=s.length,u=0;V(s,function(f){u+=f.getLayout().value});var c=a==="vertical"?(n-(l-1)*i)/u:(r-(l-1)*i)/u;c<o&&(o=c)}),V(e,function(s){V(s,function(l,u){var c=l.getLayout().value*o;a==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),V(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function tT(e,t,r,n,i){var a=i==="vertical"?"x":"y";V(e,function(o){o.sort(function(g,y){return g.getLayout()[a]-y.getLayout()[a]});for(var s,l,u,c=0,f=o.length,d=i==="vertical"?"dx":"dy",h=0;h<f;h++)l=o[h],u=c-l.getLayout()[a],u>0&&(s=l.getLayout()[a]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]+l.getLayout()[d]+t;var v=i==="vertical"?n:r;if(u=c-t-v,u>0){s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=f-2;h>=0;--h)l=o[h],u=l.getLayout()[a]+l.getLayout()[d]+t-c,u>0&&(s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]}})}function _2e(e,t,r){V(e.slice().reverse(),function(n){V(n,function(i){if(i.outEdges.length){var a=yl(i.outEdges,w2e,r)/yl(i.outEdges,J1);if(isNaN(a)){var o=i.outEdges.length;a=o?yl(i.outEdges,C2e,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-kl(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-kl(i,r))*t;i.setLayout({y:l},!0)}}})})}function w2e(e,t){return kl(e.node2,t)*e.getValue()}function C2e(e,t){return kl(e.node2,t)}function T2e(e,t){return kl(e.node1,t)*e.getValue()}function A2e(e,t){return kl(e.node1,t)}function kl(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function J1(e){return e.getValue()}function yl(e,t,r){for(var n=0,i=e.length,a=-1;++a<i;){var o=+t(e[a],r);isNaN(o)||(n+=o)}return n}function M2e(e,t,r){V(e,function(n){V(n,function(i){if(i.inEdges.length){var a=yl(i.inEdges,T2e,r)/yl(i.inEdges,J1);if(isNaN(a)){var o=i.inEdges.length;a=o?yl(i.inEdges,A2e,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-kl(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-kl(i,r))*t;i.setLayout({y:l},!0)}}})})}function k2e(e,t){var r=t==="vertical"?"x":"y";V(e,function(n){n.outEdges.sort(function(i,a){return i.node2.getLayout()[r]-a.node2.getLayout()[r]}),n.inEdges.sort(function(i,a){return i.node1.getLayout()[r]-a.node1.getLayout()[r]})}),V(e,function(n){var i=0,a=0;V(n.outEdges,function(o){o.setLayout({sy:i},!0),i+=o.getLayout().dy}),V(n.inEdges,function(o){o.setLayout({ty:a},!0),a+=o.getLayout().dy})})}function I2e(e){e.eachSeriesByType("sankey",function(t){var r=t.getGraph(),n=r.nodes,i=r.edges;if(n.length){var a=1/0,o=-1/0;V(n,function(s){var l=s.getLayout().value;l<a&&(a=l),l>o&&(o=l)}),V(n,function(s){var l=new jr({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:t.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&V(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function P2e(e){e.registerChartView(l2e),e.registerSeriesModel(c2e),e.registerLayout(f2e),e.registerVisual(I2e),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var C9=function(){function e(){}return e.prototype.getInitialData=function(t,r){var n,i=r.getComponent("xAxis",this.get("xAxisIndex")),a=r.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(t.layout="horizontal",n=i.getOrdinalMeta(),l=!0):s==="category"?(t.layout="vertical",n=a.getOrdinalMeta(),l=!0):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],h=[i,a],v=h[c].get("type"),g=h[1-c].get("type"),y=t.data;if(y&&l){var x=[];V(y,function(w,T){var C;ue(w)?(C=w.slice(),w.unshift(T)):ue(w.value)?(C=oe({},w),C.value=C.value.slice(),w.value.unshift(T)):C=w,x.push(C)}),t.data=x}var S=this.defaultValueDimensions,b=[{name:f,type:G1(v),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:G1(g),dimsDef:S.slice()}];return Yd(this,{coordDimensions:b,dimensionsCount:S.length+1,encodeDefaulter:Je(tW,b,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),T9=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},t}(or);Lr(T9,C9,!0);var D2e=function(e){J(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 a=r.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=r.get("layout")==="horizontal"?1:0;a.diff(s).add(function(u){if(a.hasValue(u)){var c=a.getItemLayout(u),f=FB(c,a,u,l,!0);a.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!a.hasValue(u)){o.remove(f);return}var d=a.getItemLayout(u);f?(Na(f),A9(d,f,a,u)):f=FB(d,a,u,l),o.add(f),a.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=a},t.prototype.remove=function(r){var n=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&n.remove(a)})},t.type="boxplot",t}(Kt),R2e=function(){function e(){}return e}(),E2e=function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new R2e},t.prototype.buildPath=function(r,n){var i=n.points,a=0;for(r.moveTo(i[a][0],i[a][1]),a++;a<4;a++)r.lineTo(i[a][0],i[a][1]);for(r.closePath();a<i.length;a++)r.moveTo(i[a][0],i[a][1]),a++,r.lineTo(i[a][0],i[a][1])},t}(vt);function FB(e,t,r,n,i){var a=e.ends,o=new E2e({shape:{points:i?L2e(a,n,e):a}});return A9(e,o,t,r,i),o}function A9(e,t,r,n,i){var a=r.hostModel,o=kc[i?"initProps":"updateProps"];o(t,{shape:{points:e.ends}},a,n),t.useStyle(r.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.z2=100;var s=r.getItemModel(n),l=s.getModel("emphasis");cn(t,s),mr(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function L2e(e,t,r){return de(e,function(n){return n=n.slice(),n[t]=r.initBaseline,n})}var xv=V;function O2e(e){var t=N2e(e);xv(t,function(r){var n=r.seriesModels;n.length&&(z2e(r),xv(n,function(i,a){B2e(i,r.boxOffsetList[a],r.boxWidthList[a])}))})}function N2e(e){var t=[],r=[];return e.eachSeriesByType("boxplot",function(n){var i=n.getBaseAxis(),a=ft(r,i);a<0&&(a=r.length,r[a]=i,t[a]={axis:i,seriesModels:[]}),t[a].seriesModels.push(n)}),t}function z2e(e){var t=e.axis,r=e.seriesModels,n=r.length,i=e.boxWidthList=[],a=e.boxOffsetList=[],o=[],s;if(t.type==="category")s=t.getBandWidth();else{var l=0;xv(r,function(v){l=Math.max(l,v.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}xv(r,function(v){var g=v.get("boxWidth");ue(g)||(g=[g,g]),o.push([xe(g[0],s)||0,xe(g[1],s)||0])});var c=s*.8-2,f=c/n*.3,d=(c-f*(n-1))/n,h=d/2-c/2;xv(r,function(v,g){a.push(h),h+=f+d,i.push(Math.min(Math.max(d,o[g][0]),o[g][1]))})}function B2e(e,t,r){var n=e.coordinateSystem,i=e.getData(),a=r/2,o=e.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=i.mapDimension(l[o]),c=i.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var f=0;f<i.count();f++){var d=i.get(u,f),h=b(d,c[2],f),v=b(d,c[0],f),g=b(d,c[1],f),y=b(d,c[3],f),x=b(d,c[4],f),S=[];w(S,g,!1),w(S,y,!0),S.push(v,g,x,y),T(S,v),T(S,x),T(S,h),i.setItemLayout(f,{initBaseline:h[s],ends:S})}function b(C,A,k){var I=i.get(A,k),P=[];P[o]=C,P[s]=I;var R;return isNaN(C)||isNaN(I)?R=[NaN,NaN]:(R=n.dataToPoint(P),R[o]+=t),R}function w(C,A,k){var I=A.slice(),P=A.slice();I[o]+=a,P[o]-=a,k?C.push(I,P):C.push(P,I)}function T(C,A){var k=A.slice(),I=A.slice();k[o]-=a,I[o]+=a,C.push(k,I)}}function F2e(e,t){t=t||{};for(var r=[],n=[],i=t.boundIQR,a=i==="none"||i===0,o=0;o<e.length;o++){var s=Qi(e[o].slice()),l=Pw(s,.25),u=Pw(s,.5),c=Pw(s,.75),f=s[0],d=s[s.length-1],h=(i??1.5)*(c-l),v=a?f:Math.max(f,l-h),g=a?d:Math.min(d,c+h),y=t.itemNameFormatter,x=Be(y)?y({value:o}):we(y)?y.replace("{value}",o+""):o+"";r.push([x,v,l,u,c,g]);for(var S=0;S<s.length;S++){var b=s[S];if(b<v||b>g){var w=[x,b];n.push(w)}}}return{boxData:r,outliers:n}}var V2e={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==Cn){var n="";zt(n)}var i=F2e(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function $2e(e){e.registerSeriesModel(T9),e.registerChartView(D2e),e.registerLayout(O2e),e.registerTransform(V2e)}var G2e=["color","borderColor"],H2e=function(e){J(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){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},t.prototype.incrementalPrepareRender=function(r,n,i){this._clear(),this._updateDrawMode(r)},t.prototype.incrementalRender=function(r,n,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},t.prototype.eachRendered=function(r){Ol(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r){var n=r.getData(),i=this._data,a=this.group,o=n.getLayout("isSimpleBox"),s=r.get("clip",!0),l=r.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),n.diff(i).add(function(c){if(n.hasValue(c)){var f=n.getItemLayout(c);if(s&&VB(u,f))return;var d=rT(f,c,!0);lr(d,{shape:{points:f.ends}},r,c),nT(d,n,c,o),a.add(d),n.setItemGraphicEl(c,d)}}).update(function(c,f){var d=i.getItemGraphicEl(f);if(!n.hasValue(c)){a.remove(d);return}var h=n.getItemLayout(c);if(s&&VB(u,h)){a.remove(d);return}d?(Lt(d,{shape:{points:h.ends}},r,c),Na(d)):d=rT(h),nT(d,n,c,o),a.add(d),n.setItemGraphicEl(c,d)}).remove(function(c){var f=i.getItemGraphicEl(c);f&&a.remove(f)}).execute(),this._data=n},t.prototype._renderLarge=function(r){this._clear(),$B(r,this.group);var n=r.get("clip",!0)?$g(r.coordinateSystem,!1,r):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(r,n){for(var i=n.getData(),a=i.getLayout("isSimpleBox"),o;(o=r.next())!=null;){var s=i.getItemLayout(o),l=rT(s);nT(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){$B(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(r){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(Kt),W2e=function(){function e(){}return e}(),j2e=function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new W2e},t.prototype.buildPath=function(r,n){var i=n.points;this.__simpleBox?(r.moveTo(i[4][0],i[4][1]),r.lineTo(i[6][0],i[6][1])):(r.moveTo(i[0][0],i[0][1]),r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]),r.lineTo(i[3][0],i[3][1]),r.closePath(),r.moveTo(i[4][0],i[4][1]),r.lineTo(i[5][0],i[5][1]),r.moveTo(i[6][0],i[6][1]),r.lineTo(i[7][0],i[7][1]))},t}(vt);function rT(e,t,r){var n=e.ends;return new j2e({shape:{points:r?U2e(n,e):n},z2:100})}function VB(e,t){for(var r=!0,n=0;n<t.ends.length;n++)if(e.contain(t.ends[n][0],t.ends[n][1])){r=!1;break}return r}function nT(e,t,r,n){var i=t.getItemModel(r);e.useStyle(t.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.__simpleBox=n,cn(e,i)}function U2e(e,t){return de(e,function(r){return r=r.slice(),r[1]=t.initBaseline,r})}var Y2e=function(){function e(){}return e}(),iT=function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new Y2e},t.prototype.buildPath=function(r,n){for(var i=n.points,a=0;a<i.length;)if(this.__sign===i[a++]){var o=i[a++];r.moveTo(o,i[a++]),r.lineTo(o,i[a++])}else a+=3},t}(vt);function $B(e,t,r,n){var i=e.getData(),a=i.getLayout("largePoints"),o=new iT({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new iT({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new iT({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});t.add(l),aT(1,o,e),aT(-1,s,e),aT(0,l,e),n&&(o.incremental=!0,s.incremental=!0),r&&r.push(o,s)}function aT(e,t,r,n){var i=r.get(["itemStyle",e>0?"borderColor":"borderColor0"])||r.get(["itemStyle",e>0?"color":"color0"]);e===0&&(i=r.get(["itemStyle","borderColorDoji"]));var a=r.getModel("itemStyle").getItemStyle(G2e);t.useStyle(a),t.style.fill=null,t.style.stroke=i}var M9=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],r}return t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(r,n,i){var a=n.getItemLayout(r);return a&&i.rect(a.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},t}(or);Lr(M9,C9,!0);function q2e(e){!e||!ue(e.series)||V(e.series,function(t){Ge(t)&&t.type==="k"&&(t.type="candlestick")})}var X2e=["itemStyle","borderColor"],Z2e=["itemStyle","borderColor0"],K2e=["itemStyle","borderColorDoji"],Q2e=["itemStyle","color"],J2e=["itemStyle","color0"],eAe={seriesType:"candlestick",plan:Hd(),performRawSeries:!0,reset:function(e,t){function r(a,o){return o.get(a>0?Q2e:J2e)}function n(a,o){return o.get(a===0?K2e:a>0?X2e:Z2e)}if(!t.isSeriesFiltered(e)){var i=e.pipelineContext.large;return!i&&{progress:function(a,o){for(var s;(s=a.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=r(u,l),c.stroke=n(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");oe(f,c)}}}}}},tAe={seriesType:"candlestick",plan:Hd(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=rAe(e,r),i=0,a=1,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[i])),l=de(r.mapDimensionsAll(o[a]),r.getDimensionIndex,r),u=l[0],c=l[1],f=l[2],d=l[3];if(r.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),s<0||l.length<4)return;return{progress:e.pipelineContext.large?v:h};function h(g,y){for(var x,S=y.getStore();(x=g.next())!=null;){var b=S.get(s,x),w=S.get(u,x),T=S.get(c,x),C=S.get(f,x),A=S.get(d,x),k=Math.min(w,T),I=Math.max(w,T),P=q(k,b),R=q(I,b),L=q(C,b),O=q(A,b),z=[];$(z,R,0),$(z,P,1),z.push(B(O),B(R),B(L),B(P));var F=y.getItemModel(x),H=!!F.get(["itemStyle","borderColorDoji"]);y.setItemLayout(x,{sign:GB(S,x,w,T,c,H),initBaseline:w>T?R[a]:P[a],ends:z,brushRect:X(C,A,b)})}function q(Y,Z){var j=[];return j[i]=Z,j[a]=Y,isNaN(Z)||isNaN(Y)?[NaN,NaN]:t.dataToPoint(j)}function $(Y,Z,j){var re=Z.slice(),ce=Z.slice();re[i]=H0(re[i]+n/2,1,!1),ce[i]=H0(ce[i]-n/2,1,!0),j?Y.push(re,ce):Y.push(ce,re)}function X(Y,Z,j){var re=q(Y,j),ce=q(Z,j);return re[i]-=n/2,ce[i]-=n/2,{x:re[0],y:re[1],width:n,height:ce[1]-re[1]}}function B(Y){return Y[i]=H0(Y[i],1),Y}}function v(g,y){for(var x=co(g.count*4),S=0,b,w=[],T=[],C,A=y.getStore(),k=!!e.get(["itemStyle","borderColorDoji"]);(C=g.next())!=null;){var I=A.get(s,C),P=A.get(u,C),R=A.get(c,C),L=A.get(f,C),O=A.get(d,C);if(isNaN(I)||isNaN(L)||isNaN(O)){x[S++]=NaN,S+=3;continue}x[S++]=GB(A,C,P,R,c,k),w[i]=I,w[a]=L,b=t.dataToPoint(w,null,T),x[S++]=b?b[0]:NaN,x[S++]=b?b[1]:NaN,w[a]=O,b=t.dataToPoint(w,null,T),x[S++]=b?b[1]:NaN}y.setLayout("largePoints",x)}}};function GB(e,t,r,n,i,a){var o;return r>n?o=-1:r<n?o=1:o=a?0:t>0?e.get(i,t-1)<=n?1:-1:1,o}function rAe(e,t){var r=e.getBaseAxis(),n,i=r.type==="category"?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=xe(Qe(e.get("barMaxWidth"),i),i),o=xe(Qe(e.get("barMinWidth"),1),i),s=e.get("barWidth");return s!=null?xe(s,i):Math.max(Math.min(i/2,a),o)}function nAe(e){e.registerChartView(H2e),e.registerSeriesModel(M9),e.registerPreprocessor(q2e),e.registerVisual(eAe),e.registerLayout(tAe)}function HB(e,t){var r=t.rippleEffectColor||t.color;e.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?r:null,fill:t.brushType==="fill"?r:null}})})}var iAe=function(e){J(t,e);function t(r,n){var i=e.call(this)||this,a=new Fg(r,n),o=new qe;return i.add(a),i.add(o),i.updateData(r,n),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(r){for(var n=r.symbolType,i=r.color,a=r.rippleNumber,o=this.childAt(1),s=0;s<a;s++){var l=Er(n,-1,-1,2,2,i);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/a*r.period+r.effectOffset;l.animate("",!0).when(r.period,{scaleX:r.rippleScale/2,scaleY:r.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(r.period,{opacity:0}).delay(u).start(),o.add(l)}HB(o,r)},t.prototype.updateEffectAnimation=function(r){for(var n=this._effectCfg,i=this.childAt(1),a=["symbolType","period","rippleScale","rippleNumber"],o=0;o<a.length;o++){var s=a[o];if(n[s]!==r[s]){this.stopEffectAnimation(),this.startEffectAnimation(r);return}}HB(i,r)},t.prototype.highlight=function(){us(this)},t.prototype.downplay=function(){cs(this)},t.prototype.getSymbolType=function(){var r=this.childAt(0);return r&&r.getSymbolType()},t.prototype.updateData=function(r,n){var i=this,a=r.hostModel;this.childAt(0).updateData(r,n);var o=this.childAt(1),s=r.getItemModel(n),l=r.getItemVisual(n,"symbol"),u=jd(r.getItemVisual(n,"symbolSize")),c=r.getItemVisual(n,"style"),f=c&&c.fill,d=s.getModel("emphasis");o.setScale(u),o.traverse(function(y){y.setStyle("fill",f)});var h=Ic(r.getItemVisual(n,"symbolOffset"),u);h&&(o.x=h[0],o.y=h[1]);var v=r.getItemVisual(n,"symbolRotate");o.rotation=(v||0)*Math.PI/180||0;var g={};g.showEffectOn=a.get("showEffectOn"),g.rippleScale=s.get(["rippleEffect","scale"]),g.brushType=s.get(["rippleEffect","brushType"]),g.period=s.get(["rippleEffect","period"])*1e3,g.effectOffset=n/r.count(),g.z=a.getShallow("z")||0,g.zlevel=a.getShallow("zlevel")||0,g.symbolType=l,g.color=f,g.rippleEffectColor=s.get(["rippleEffect","color"]),g.rippleNumber=s.get(["rippleEffect","number"]),g.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(g):this.startEffectAnimation(g),this._effectCfg=g):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(y){y==="emphasis"?g.showEffectOn!=="render"&&i.startEffectAnimation(g):y==="normal"&&g.showEffectOn!=="render"&&i.stopEffectAnimation()}),this._effectCfg=g,mr(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},t.prototype.fadeOut=function(r){r&&r()},t}(qe),aAe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this._symbolDraw=new Vg(iAe)},t.prototype.render=function(r,n,i){var a=r.getData(),o=this._symbolDraw;o.updateData(a,{clipShape:this._getClipShape(r)}),this.group.add(o.group)},t.prototype._getClipShape=function(r){var n=r.coordinateSystem,i=n&&n.getArea&&n.getArea();return r.get("clip",!0)?i:null},t.prototype.updateTransform=function(r,n,i){var a=r.getData();this.group.dirty();var o=Gg("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout()},t.prototype._updateGroupTransform=function(r){var n=r.coordinateSystem;n&&n.getRoamTransform&&(this.group.transform=Tpe(n.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(Kt),oAe=function(e){J(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,n){return xs(null,this,{useEncodeDefaulter:!0})},t.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},t.type="series.effectScatter",t.dependencies=["grid","polar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},t}(or);function sAe(e){e.registerChartView(aAe),e.registerSeriesModel(oAe),e.registerLayout(Gg("effectScatter"))}var k9=function(e){J(t,e);function t(r,n,i){var a=e.call(this)||this;return a.add(a.createLine(r,n,i)),a._updateEffectSymbol(r,n),a}return t.prototype.createLine=function(r,n,i){return new jI(r,n,i)},t.prototype._updateEffectSymbol=function(r,n){var i=r.getItemModel(n),a=i.getModel("effect"),o=a.get("symbolSize"),s=a.get("symbol");ue(o)||(o=[o,o]);var l=r.getItemVisual(n,"style"),u=a.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=Er(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(a.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(r,a,n))},t.prototype._updateEffectAnimation=function(r,n,i){var a=this.childAt(1);if(a){var o=r.getItemLayout(i),s=n.get("period")*1e3,l=n.get("loop"),u=n.get("roundTrip"),c=n.get("constantSpeed"),f=Jr(n.get("delay"),function(h){return h/r.count()*s/3});if(a.ignore=!0,this._updateAnimationPoints(a,o),c>0&&(s=this._getLineLength(a)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){a.stopAnimation();var d=void 0;Be(f)?d=f(i):d=f,a.__t>0&&(d=-s*a.__t),this._animateSymbol(a,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(r,n,i,a,o){if(n>0){r.__t=0;var s=this,l=r.animate("",a).when(o?n*2:n,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(r)});a||l.done(function(){s.remove(r)}),l.start()}},t.prototype._getLineLength=function(r){return al(r.__p1,r.__cp1)+al(r.__cp1,r.__p2)},t.prototype._updateAnimationPoints=function(r,n){r.__p1=n[0],r.__p2=n[1],r.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(r,n,i){this.childAt(0).updateData(r,n,i),this._updateEffectSymbol(r,n)},t.prototype._updateSymbolPosition=function(r){var n=r.__p1,i=r.__p2,a=r.__cp1,o=r.__t<1?r.__t:2-r.__t,s=[r.x,r.y],l=s.slice(),u=Qr,c=w2;s[0]=u(n[0],a[0],i[0],o),s[1]=u(n[1],a[1],i[1],o);var f=r.__t<1?c(n[0],a[0],i[0],o):c(i[0],a[0],n[0],1-o),d=r.__t<1?c(n[1],a[1],i[1],o):c(i[1],a[1],n[1],1-o);r.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT<r.__t?(r.scaleY=al(l,s)*1.05,o===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):r.__lastT===1?r.scaleY=2*al(n,s):r.scaleY=this._symbolScale[1]),r.__lastT=r.__t,r.ignore=!1,r.x=s[0],r.y=s[1]},t.prototype.updateLayout=function(r,n){this.childAt(0).updateLayout(r,n);var i=r.getItemModel(n).getModel("effect");this._updateEffectAnimation(r,i,n)},t}(qe),I9=function(e){J(t,e);function t(r,n,i){var a=e.call(this)||this;return a._createPolyline(r,n,i),a}return t.prototype._createPolyline=function(r,n,i){var a=r.getItemLayout(n),o=new Gn({shape:{points:a}});this.add(o),this._updateCommonStl(r,n,i)},t.prototype.updateData=function(r,n,i){var a=r.hostModel,o=this.childAt(0),s={shape:{points:r.getItemLayout(n)}};Lt(o,s,a,n),this._updateCommonStl(r,n,i)},t.prototype._updateCommonStl=function(r,n,i){var a=this.childAt(0),o=r.getItemModel(n),s=i&&i.emphasisLineStyle,l=i&&i.focus,u=i&&i.blurScope,c=i&&i.emphasisDisabled;if(!i||r.hasItemOption){var f=o.getModel("emphasis");s=f.getModel("lineStyle").getLineStyle(),c=f.get("disabled"),l=f.get("focus"),u=f.get("blurScope")}a.useStyle(r.getItemVisual(n,"style")),a.style.fill=null,a.style.strokeNoScale=!0;var d=a.ensureState("emphasis");d.style=s,mr(this,l,u,c)},t.prototype.updateLayout=function(r,n){var i=this.childAt(0);i.setShape("points",r.getItemLayout(n))},t}(qe),lAe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._lastFrame=0,r._lastFramePercent=0,r}return t.prototype.createLine=function(r,n,i){return new I9(r,n,i)},t.prototype._updateAnimationPoints=function(r,n){this._points=n;for(var i=[0],a=0,o=1;o<n.length;o++){var s=n[o-1],l=n[o];a+=al(s,l),i.push(a)}if(a===0){this._length=0;return}for(var o=0;o<i.length;o++)i[o]/=a;this._offsets=i,this._length=a},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(r){var n=r.__t<1?r.__t:2-r.__t,i=this._points,a=this._offsets,o=i.length;if(a){var s=this._lastFrame,l;if(n<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(a[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(a[l]>n);l++);l=Math.min(l-1,o-2)}var c=(n-a[l])/(a[l+1]-a[l]),f=i[l],d=i[l+1];r.x=f[0]*(1-c)+c*d[0],r.y=f[1]*(1-c)+c*d[1];var h=r.__t<1?d[0]-f[0]:f[0]-d[0],v=r.__t<1?d[1]-f[1]:f[1]-d[1];r.rotation=-Math.atan2(v,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},t}(k9),uAe=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),cAe=function(e){J(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new uAe},t.prototype.buildPath=function(r,n){var i=n.segs,a=n.curveness,o;if(n.polyline)for(o=this._off;o<i.length;){var s=i[o++];if(s>0){r.moveTo(i[o++],i[o++]);for(var l=1;l<s;l++)r.lineTo(i[o++],i[o++])}}else for(o=this._off;o<i.length;){var u=i[o++],c=i[o++],f=i[o++],d=i[o++];if(r.moveTo(u,c),a>0){var h=(u+f)/2-(c-d)*a,v=(c+d)/2-(f-u)*a;r.quadraticCurveTo(h,v,f,d)}else r.lineTo(f,d)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(r,n){var i=this.shape,a=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u<a.length;){var c=a[u++];if(c>0)for(var f=a[u++],d=a[u++],h=1;h<c;h++){var v=a[u++],g=a[u++];if(rl(f,d,v,g,s,r,n))return l}l++}else for(var l=0,u=0;u<a.length;){var f=a[u++],d=a[u++],v=a[u++],g=a[u++];if(o>0){var y=(f+v)/2-(d-g)*o,x=(d+g)/2-(v-f)*o;if(tH(f,d,y,x,v,g,s,r,n))return l}else if(rl(f,d,v,g,s,r,n))return l;l++}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.segs,a=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<i.length;){var c=i[u++],f=i[u++];a=Math.min(c,a),s=Math.max(c,s),o=Math.min(f,o),l=Math.max(f,l)}r=this._rect=new nt(a,o,s,l)}return r},t}(vt),fAe=function(){function e(){this.group=new qe}return e.prototype.updateData=function(t){this._clear();var r=this._create();r.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(r,t)},e.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},e.prototype.incrementalUpdate=function(t,r){var n=this._newAdded[0],i=r.getLayout("linesPoints"),a=n&&n.shape.segs;if(a&&a.length<2e4){var o=a.length,s=new Float32Array(o+i.length);s.set(a),s.set(i,o),n.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:i}),this._setCommon(l,r),l.__startIndex=t.start}},e.prototype.remove=function(){this._clear()},e.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},e.prototype._create=function(){var t=new cAe({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},e.prototype._setCommon=function(t,r,n){var i=r.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var a=r.getVisual("style");a&&a.stroke&&t.setStyle("stroke",a.stroke),t.setStyle("fill",null);var o=Ze(t);o.seriesIndex=i.seriesIndex,t.on("mousemove",function(s){o.dataIndex=null;var l=t.hoverDataIdx;l>0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),P9={seriesType:"lines",plan:Hd(),reset:function(e){var t=e.coordinateSystem;if(t){var r=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(n){var s=void 0,l=i.end-i.start;if(r){for(var u=0,c=i.start;c<i.end;c++)u+=e.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var f=0,d=[],c=i.start;c<i.end;c++){var h=e.getLineCoords(c,o);r&&(s[f++]=h);for(var v=0;v<h;v++)d=t.dataToPoint(o[v],!1,d),s[f++]=d[0],s[f++]=d[1]}a.setLayout("linesPoints",s)}else for(var c=i.start;c<i.end;c++){var g=a.getItemModel(c),h=e.getLineCoords(c,o),y=[];if(r)for(var x=0;x<h;x++)y.push(t.dataToPoint(o[x]));else{y[0]=t.dataToPoint(o[0]),y[1]=t.dataToPoint(o[1]);var S=g.get(["lineStyle","curveness"]);+S&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*S,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*S])}a.setItemLayout(c,y)}}}}}},dAe=function(e){J(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 a=r.getData(),o=this._updateLineDraw(a,r),s=r.get("zlevel"),l=r.get(["effect","trailLength"]),u=i.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(r)&&l>0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(a);var f=r.get("clip",!0)&&$g(r.coordinateSystem,!1,r);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateLineDraw(a,r);o.incrementalPrepareUpdate(a),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._lineDraw.incrementalUpdate(r,n.getData()),this._finished=r.end===n.getData().count()},t.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},t.prototype.updateTransform=function(r,n,i){var a=r.getData(),o=r.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=P9.reset(r,n,i);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(r,n){var i=this._lineDraw,a=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!i||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new fAe:new UI(o?a?lAe:I9:a?k9:jI),this._hasEffet=a,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},t.prototype._showEffect=function(r){return!!r.get(["effect","show"])},t.prototype._clearLayer=function(r){var n=r.getZr(),i=n.painter.getType()==="svg";!i&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.type="lines",t}(Kt),hAe=typeof Uint32Array>"u"?Array:Uint32Array,pAe=typeof Float64Array>"u"?Array:Float64Array;function WB(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=de(t,function(r){var n=[r[0].coord,r[1].coord],i={coords:n};return r[0].name&&(i.fromName=r[0].name),r[1].name&&(i.toName=r[1].name),Tk([i,r[0],r[1]])}))}var vAe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.init=function(r){r.data=r.data||[],WB(r);var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(r){if(WB(r),r.data){var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(r){var n=this._processFlatCoordsArray(r.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=y1(this._flatCoords,n.flatCoords),this._flatCoordsOffset=y1(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},t.prototype._getCoordsFromItemModel=function(r){var n=this.getData().getItemModel(r),i=n.option instanceof Array?n.option:n.getShallow("coords");return i},t.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},t.prototype.getLineCoords=function(r,n){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[r*2],a=this._flatCoordsOffset[r*2+1],o=0;o<a;o++)n[o]=n[o]||[],n[o][0]=this._flatCoords[i+o*2],n[o][1]=this._flatCoords[i+o*2+1];return a}else{for(var s=this._getCoordsFromItemModel(r),o=0;o<s.length;o++)n[o]=n[o]||[],n[o][0]=s[o][0],n[o][1]=s[o][1];return s.length}},t.prototype._processFlatCoordsArray=function(r){var n=0;if(this._flatCoords&&(n=this._flatCoords.length),Dt(r[0])){for(var i=r.length,a=new hAe(i),o=new pAe(i),s=0,l=0,u=0,c=0;c<i;){u++;var f=r[c++];a[l++]=s+n,a[l++]=f;for(var d=0;d<f;d++){var h=r[c++],v=r[c++];o[s++]=h,o[s++]=v}}return{flatCoordsOffset:new Uint32Array(a.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:r.length}},t.prototype.getInitialData=function(r,n){var i=new On(["value"],this);return i.hasItemOption=!1,i.initData(r.data,[],function(a,o,s,l){if(a instanceof Array)return NaN;i.hasItemOption=!0;var u=a.value;if(u!=null)return u instanceof Array?u[l]:u}),i},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=a.getItemModel(r),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Yr("nameValue",{name:c.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var r=this.getModel("effect"),n=r.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:r.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t}(or);function m0(e){return e instanceof Array||(e=[e,e]),e}var gAe={seriesType:"lines",reset:function(e){var t=m0(e.get("symbol")),r=m0(e.get("symbolSize")),n=e.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function i(a,o){var s=a.getItemModel(o),l=m0(s.getShallow("symbol",!0)),u=m0(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(o,"fromSymbol",l[0]),l[1]&&a.setItemVisual(o,"toSymbol",l[1]),u[0]&&a.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:n.hasItemOption?i:null}}};function mAe(e){e.registerChartView(dAe),e.registerSeriesModel(vAe),e.registerLayout(P9),e.registerVisual(gAe)}var yAe=256,xAe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=wl.createCanvas();this.canvas=t}return e.prototype.update=function(t,r,n,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),h=t.length;f.width=r,f.height=n;for(var v=0;v<h;++v){var g=t[v],y=g[0],x=g[1],S=g[2],b=i(S);d.globalAlpha=b,d.drawImage(s,y-c,x-c)}if(!f.width||!f.height)return f;for(var w=d.getImageData(0,0,f.width,f.height),T=w.data,C=0,A=T.length,k=this.minOpacity,I=this.maxOpacity,P=I-k;C<A;){var b=T[C+3]/256,R=Math.floor(b*(yAe-1))*4;if(b>0){var L=o(b)?l:u;b>0&&(b=b*P+k),T[C++]=L[R],T[C++]=L[R+1],T[C++]=L[R+2],T[C++]=L[R+3]*b*256}else C+=4}return d.putImageData(w,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=wl.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-r,r,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},e.prototype._getGradient=function(t,r){for(var n=this._gradientPixels,i=n[r]||(n[r]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)t[r](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},e}();function SAe(e,t,r){var n=e[1]-e[0];t=de(t,function(o){return{interval:[(o.interval[0]-e[0])/n,(o.interval[1]-e[0])/n]}});var i=t.length,a=0;return function(o){var s;for(s=a;s<i;s++){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}if(s===i)for(s=a-1;s>=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s<i&&r[s]}}function bAe(e,t){var r=e[1]-e[0];return t=[(t[0]-e[0])/r,(t[1]-e[0])/r],function(n){return n>=t[0]&&n<=t[1]}}function jB(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var _Ae=function(e){J(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 a;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(r,i,0,r.getData().count()):jB(o)&&this._renderOnGeo(o,r,a,i)},t.prototype.incrementalPrepareRender=function(r,n,i){this.group.removeAll()},t.prototype.incrementalRender=function(r,n,i,a){var o=n.coordinateSystem;o&&(jB(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){Ol(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=Dc(s,"cartesian2d"),u,c,f,d;if(l){var h=s.getAxis("x"),v=s.getAxis("y");u=h.getBandWidth()+.5,c=v.getBandWidth()+.5,f=h.scale.getExtent(),d=v.scale.getExtent()}for(var g=this.group,y=r.getData(),x=r.getModel(["emphasis","itemStyle"]).getItemStyle(),S=r.getModel(["blur","itemStyle"]).getItemStyle(),b=r.getModel(["select","itemStyle"]).getItemStyle(),w=r.get(["itemStyle","borderRadius"]),T=Ur(r),C=r.getModel("emphasis"),A=C.get("focus"),k=C.get("blurScope"),I=C.get("disabled"),P=l?[y.mapDimension("x"),y.mapDimension("y"),y.mapDimension("value")]:[y.mapDimension("time"),y.mapDimension("value")],R=i;R<a;R++){var L=void 0,O=y.getItemVisual(R,"style");if(l){var z=y.get(P[0],R),F=y.get(P[1],R);if(isNaN(y.get(P[2],R))||isNaN(z)||isNaN(F)||z<f[0]||z>f[1]||F<d[0]||F>d[1])continue;var H=s.dataToPoint([z,F]);L=new Ct({shape:{x:H[0]-u/2,y:H[1]-c/2,width:u,height:c},style:O})}else{if(isNaN(y.get(P[1],R)))continue;L=new Ct({z2:1,shape:s.dataToRect([y.get(P[0],R)]).contentShape,style:O})}if(y.hasItemOption){var q=y.getItemModel(R),$=q.getModel("emphasis");x=$.getModel("itemStyle").getItemStyle(),S=q.getModel(["blur","itemStyle"]).getItemStyle(),b=q.getModel(["select","itemStyle"]).getItemStyle(),w=q.get(["itemStyle","borderRadius"]),A=$.get("focus"),k=$.get("blurScope"),I=$.get("disabled"),T=Ur(q)}L.shape.r=w;var X=r.getRawValue(R),B="-";X&&X[2]!=null&&(B=X[2]+""),fn(L,T,{labelFetcher:r,labelDataIndex:R,defaultOpacity:O.opacity,defaultText:B}),L.ensureState("emphasis").style=x,L.ensureState("blur").style=S,L.ensureState("select").style=b,mr(L,A,k,I),L.incremental=o,o&&(L.states.emphasis.hoverLayer=!0),g.add(L),y.setItemGraphicEl(R,L),this._progressiveEls&&this._progressiveEls.push(L)}},t.prototype._renderOnGeo=function(r,n,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new xAe;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=r.getViewRect().clone(),f=r.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),h=Math.max(c.y,0),v=Math.min(c.width+c.x,a.getWidth()),g=Math.min(c.height+c.y,a.getHeight()),y=v-d,x=g-h,S=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],b=l.mapArray(S,function(A,k,I){var P=r.dataToPoint([A,k]);return P[0]-=d,P[1]-=h,P.push(I),P}),w=i.getExtent(),T=i.type==="visualMap.continuous"?bAe(w,i.option.range):SAe(w,i.getPieceList(),i.option.selected);u.update(b,y,x,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},T);var C=new en({style:{width:y,height:x,x:d,y:h,image:u.canvas},silent:!0});this.group.add(C)},t.type="heatmap",t}(Kt),wAe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return xs(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=Og.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(or);function CAe(e){e.registerChartView(_Ae),e.registerSeriesModel(wAe)}var TAe=["itemStyle","borderWidth"],UB=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],oT=new ys,AAe=function(e){J(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 a=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:UB[+c],categoryDim:UB[1-+c]};o.diff(s).add(function(v){if(o.hasValue(v)){var g=qB(o,v),y=YB(o,v,g,d),x=XB(o,d,y);o.setItemGraphicEl(v,x),a.add(x),KB(x,d,y)}}).update(function(v,g){var y=s.getItemGraphicEl(g);if(!o.hasValue(v)){a.remove(y);return}var x=qB(o,v),S=YB(o,v,x,d),b=N9(o,S);y&&b!==y.__pictorialShapeStr&&(a.remove(y),o.setItemGraphicEl(v,null),y=null),y?EAe(y,d,S):y=XB(o,d,S,!0),o.setItemGraphicEl(v,y),y.__pictorialSymbolMeta=S,a.add(y),KB(y,d,S)}).remove(function(v){var g=s.getItemGraphicEl(v);g&&ZB(s,v,g.__pictorialSymbolMeta.animationModel,g)}).execute();var h=r.get("clip",!0)?$g(r.coordinateSystem,!1,r):null;return h?a.setClipPath(h):a.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(r,n){var i=this.group,a=this._data;r.get("animation")?a&&a.eachItemGraphicEl(function(o){ZB(a,Ze(o).dataIndex,r,o)}):i.removeAll()},t.type="pictorialBar",t}(Kt);function YB(e,t,r,n){var i=e.getItemLayout(t),a=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=r.get("symbolPatternSize")||2,f=r.isAnimationEnabled(),d={dataIndex:t,layout:i,itemModel:r,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?r:null,hoverScale:f&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};MAe(r,a,i,n,d),kAe(e,t,i,a,o,d.boundingLength,d.pxSign,c,n,d),IAe(r,d.symbolScale,u,n,d);var h=d.symbolSize,v=Ic(r.get("symbolOffset"),h);return PAe(r,h,i,a,o,v,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function MAe(e,t,r,n,i){var a=n.valueDim,o=e.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[a.wh]<=0),c;if(ue(o)){var f=[sT(s,o[0])-l,sT(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=sT(s,o)-l:t?c=n.coordSysExtent[a.index][u]-l:c=r[a.wh];i.boundingLength=c,t&&(i.repeatCutLength=r[a.wh]),i.pxSign=c>0?1:-1}function sT(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function kAe(e,t,r,n,i,a,o,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(r[f.wh]),h=e.getItemVisual(t,"symbolSize"),v;ue(h)?v=h.slice():h==null?v=["100%","100%"]:v=[h,h],v[f.index]=xe(v[f.index],d),v[c.index]=xe(v[c.index],n?d:Math.abs(a)),u.symbolSize=v;var g=u.symbolScale=[v[0]/s,v[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*o}function IAe(e,t,r,n,i){var a=e.get(TAe)||0;a&&(oT.attr({scaleX:t[0],scaleY:t[1],rotation:r}),oT.updateTransform(),a/=oT.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function PAe(e,t,r,n,i,a,o,s,l,u,c,f){var d=c.categoryDim,h=c.valueDim,v=f.pxSign,g=Math.max(t[h.index]+s,0),y=g;if(n){var x=Math.abs(l),S=Jr(e.get("symbolMargin"),"15%")+"",b=!1;S.lastIndexOf("!")===S.length-1&&(b=!0,S=S.slice(0,S.length-1));var w=xe(S,t[h.index]),T=Math.max(g+w*2,0),C=b?0:w*2,A=$G(n),k=A?n:QB((x+C)/T),I=x-k*g;w=I/2/(b?k:Math.max(k-1,1)),T=g+w*2,C=b?0:w*2,!A&&n!=="fixed"&&(k=u?QB((Math.abs(u)+C)/T):0),y=k*T-C,f.repeatTimes=k,f.symbolMargin=w}var P=v*(y/2),R=f.pathPosition=[];R[d.index]=r[d.wh]/2,R[h.index]=o==="start"?P:o==="end"?l-P:l/2,a&&(R[0]+=a[0],R[1]+=a[1]);var L=f.bundlePosition=[];L[d.index]=r[d.xy],L[h.index]=r[h.xy];var O=f.barRectShape=oe({},r);O[h.wh]=v*Math.max(Math.abs(r[h.wh]),Math.abs(R[h.index]+P)),O[d.wh]=r[d.wh];var z=f.clipShape={};z[d.xy]=-r[d.xy],z[d.wh]=c.ecSize[d.wh],z[h.xy]=0,z[h.wh]=r[h.wh]}function D9(e){var t=e.symbolPatternSize,r=Er(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function R9(e,t,r,n){var i=e.__pictorialBundle,a=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,u=r.repeatTimes||0,c=0,f=a[t.valueDim.index]+o+r.symbolMargin*2;for(eP(e,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c<u?id(g,null,v(c),r,n):id(g,null,{scaleX:0,scaleY:0},r,n,function(){i.remove(g)}),c++});c<u;c++){var d=D9(r);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,i.add(d);var h=v(c);id(d,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},r,n)}function v(g){var y=s.slice(),x=r.pxSign,S=g;return(r.symbolRepeatDirection==="start"?x>0:x<0)&&(S=u-1-g),y[l.index]=f*(S-u/2+.5)+s[l.index],{x:y[0],y:y[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function E9(e,t,r,n){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?id(a,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(a=e.__pictorialMainPath=D9(r),i.add(a),id(a,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,n))}function L9(e,t,r){var n=oe({},t.barRectShape),i=e.__pictorialBarRect;i?id(i,null,{shape:n},t,r):(i=e.__pictorialBarRect=new Ct({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function O9(e,t,r,n){if(r.symbolClip){var i=e.__pictorialClipPath,a=oe({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(i)Lt(i,{shape:a},s,l);else{a[o.wh]=0,i=new Ct({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var u={};u[o.wh]=r.clipShape[o.wh],kc[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function qB(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=DAe,r.isAnimationEnabled=RAe,r}function DAe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function RAe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function XB(e,t,r,n){var i=new qe,a=new qe;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?R9(i,t,r):E9(i,t,r),L9(i,r,n),O9(i,t,r,n),i.__pictorialShapeStr=N9(e,r),i.__pictorialSymbolMeta=r,i}function EAe(e,t,r){var n=r.animationModel,i=r.dataIndex,a=e.__pictorialBundle;Lt(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?R9(e,t,r,!0):E9(e,t,r,!0),L9(e,r,!0),O9(e,t,r,!0)}function ZB(e,t,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];eP(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),V(a,function(o){Tl(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function N9(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function eP(e,t,r){V(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function id(e,t,r,n,i,a){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&kc[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,a)}function KB(e,t,r){var n=r.dataIndex,i=r.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=a.get("focus"),f=a.get("blurScope"),d=a.get("scale");eP(e,function(g){if(g instanceof en){var y=g.style;g.useStyle(oe({image:y.image,x:y.x,y:y.y,width:y.width,height:y.height},r.style))}else g.useStyle(r.style);var x=g.ensureState("emphasis");x.style=o,d&&(x.scaleX=g.scaleX*1.1,x.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=r.z2});var h=t.valueDim.posDesc[+(r.boundingLength>0)],v=e.__pictorialBarRect;v.ignoreClip=!0,fn(v,Ur(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:_d(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:h}),mr(e,c,f,a.get("disabled"))}function QB(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var LAe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return t.prototype.getInitialData=function(r){return r.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Nl(tg.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),t}(tg);function OAe(e){e.registerChartView(AAe),e.registerSeriesModel(LAe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Je(xj,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Sj("pictorialBar"))}var NAe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._layers=[],r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this,s=this.group,l=r.getLayerSeries(),u=a.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function d(y){return y.name}var h=new fs(this._layersSeries||[],l,d,d),v=[];h.add(Ae(g,this,"add")).update(Ae(g,this,"update")).remove(Ae(g,this,"remove")).execute();function g(y,x,S){var b=o._layers;if(y==="remove"){s.remove(b[x]);return}for(var w=[],T=[],C,A=l[x].indices,k=0;k<A.length;k++){var I=a.getItemLayout(A[k]),P=I.x,R=I.y0,L=I.y;w.push(P,R),T.push(P,R+L),C=a.getItemVisual(A[k],"style")}var O,z=a.getItemLayout(A[0]),F=r.getModel("label"),H=F.get("margin"),q=r.getModel("emphasis");if(y==="add"){var $=v[x]=new qe;O=new l8({shape:{points:w,stackedOnPoints:T,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),$.add(O),s.add($),r.isAnimationEnabled()&&O.setClipPath(zAe(O.getBoundingRect(),r,function(){O.removeClipPath()}))}else{var $=b[S];O=$.childAt(0),s.add($),v[x]=$,Lt(O,{shape:{points:w,stackedOnPoints:T}},r),Na(O)}fn(O,Ur(r),{labelDataIndex:A[k-1],defaultText:a.getName(A[k-1]),inheritColor:C.fill},{normal:{verticalAlign:"middle"}}),O.setTextConfig({position:null,local:!0});var X=O.getTextContent();X&&(X.x=z.x-H,X.y=z.y0+z.y/2),O.useStyle(C),a.setItemGraphicEl(x,O),cn(O,r),mr(O,q.get("focus"),q.get("blurScope"),q.get("disabled"))}this._layersSeries=l,this._layers=v},t.type="themeRiver",t}(Kt);function zAe(e,t,r){var n=new Ct({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return lr(n,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,r),n}var lT=2,BAe=function(e){J(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){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new Wg(Ae(this.getData,this),Ae(this.getRawData,this))},t.prototype.fixData=function(r){var n=r.length,i={},a=B2(r,function(d){return i.hasOwnProperty(d[0]+"")||(i[d[0]+""]=-1),d[2]}),o=[];a.buckets.each(function(d,h){o.push({name:h,dataList:d})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var f=o[l].dataList[c][0]+"";i[f]=l}for(var f in i)i.hasOwnProperty(f)&&i[f]!==l&&(i[f]=l,r[n]=[f,0,u],n++)}return r},t.prototype.getInitialData=function(r,n){for(var i=this.getReferringComponents("singleAxis",Rr).models[0],a=i.get("type"),o=jt(r.data,function(v){return v[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=Oe(),c=0,f=0;f<s.length;++f)l.push(s[f][lT]),u.get(s[f][lT])||(u.set(s[f][lT],c),c++);var d=zg(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:G1(a)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new On(d,this);return h.initData(s),h},t.prototype.getLayerSeries=function(){for(var r=this.getData(),n=r.count(),i=[],a=0;a<n;++a)i[a]=a;var o=r.mapDimension("single"),s=B2(i,function(u){return r.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(f,d){return r.get(o,f)-r.get(o,d)}),l.push({name:c,indices:u})}),l},t.prototype.getAxisTooltipData=function(r,n,i){ue(r)||(r=r?[r]:[]);for(var a=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var f=Number.MAX_VALUE,d=-1,h=o[c].indices.length,v=0;v<h;++v){var g=a.get(r[0],o[c].indices[v]),y=Math.abs(g-n);y<=f&&(u=g,f=y,d=o[c].indices[v])}s.push(d)}return{dataIndices:s,nestestValue:u}},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=a.getName(r),s=a.get(a.mapDimension("value"),r);return Yr("nameValue",{name:o,value:s})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t}(or);function FAe(e,t){e.eachSeriesByType("themeRiver",function(r){var n=r.getData(),i=r.coordinateSystem,a={},o=i.getRect();a.rect=o;var s=r.get("boundaryGap"),l=i.getAxis();if(a.boundaryGap=s,l.orient==="horizontal"){s[0]=xe(s[0],o.height),s[1]=xe(s[1],o.height);var u=o.height-s[0]-s[1];JB(n,r,u)}else{s[0]=xe(s[0],o.width),s[1]=xe(s[1],o.width);var c=o.width-s[0]-s[1];JB(n,r,c)}n.setLayout("layoutInfo",a)})}function JB(e,t,r){if(e.count())for(var n=t.coordinateSystem,i=t.getLayerSeries(),a=e.mapDimension("single"),o=e.mapDimension("value"),s=de(i,function(y){return de(y.indices,function(x){var S=n.dataToPoint(e.get(a,x));return S[1]=e.get(o,x),S})}),l=VAe(s),u=l.y0,c=r/l.max,f=i.length,d=i[0].indices.length,h,v=0;v<d;++v){h=u[v]*c,e.setItemLayout(i[0].indices[v],{layerIndex:0,x:s[0][v][0],y0:h,y:s[0][v][1]*c});for(var g=1;g<f;++g)h+=s[g-1][v][1]*c,e.setItemLayout(i[g].indices[v],{layerIndex:g,x:s[g][v][0],y0:h,y:s[g][v][1]*c})}}function VAe(e){for(var t=e.length,r=e[0].length,n=[],i=[],a=0,o=0;o<r;++o){for(var s=0,l=0;l<t;++l)s+=e[l][o][1];s>a&&(a=s),n.push(s)}for(var u=0;u<r;++u)i[u]=(a-n[u])/2;a=0;for(var c=0;c<r;++c){var f=n[c]+i[c];f>a&&(a=f)}return{y0:i,max:a}}function $Ae(e){e.registerChartView(NAe),e.registerSeriesModel(BAe),e.registerLayout(FAe),e.registerProcessor(Hg("themeRiver"))}var GAe=2,HAe=4,e4=function(e){J(t,e);function t(r,n,i,a){var o=e.call(this)||this;o.z2=GAe,o.textConfig={inside:!0},Ze(o).seriesIndex=n.seriesIndex;var s=new kt({z2:HAe,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,i,a),o}return t.prototype.updateData=function(r,n,i,a,o){this.node=n,n.piece=this,i=i||this._seriesModel,a=a||this._ecModel;var s=this;Ze(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),f=oe({},c);f.label=null;var d=n.getVisual("style");d.lineJoin="bevel";var h=n.getVisual("decal");h&&(d.decal=Sd(h,o));var v=Qu(l.getModel("itemStyle"),f,!0);oe(f,v),V(Bn,function(S){var b=s.ensureState(S),w=l.getModel([S,"itemStyle"]);b.style=w.getItemStyle();var T=Qu(w,f);T&&(b.shape=T)}),r?(s.setShape(f),s.shape.r=c.r0,lr(s,{shape:{r:c.r}},i,n.dataIndex)):(Lt(s,{shape:f},i),Na(s)),s.useStyle(d),this._updateLabel(i);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=i||this._seriesModel,this._ecModel=a||this._ecModel;var y=u.get("focus"),x=y==="ancestor"?n.getAncestorsIndices():y==="descendant"?n.getDescendantIndices():y;mr(this,x,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r){var n=this,i=this.node.getModel(),a=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),h=this.node.dataIndex,v=a.get("minAngle")/180*Math.PI,g=a.get("show")&&!(v!=null&&Math.abs(s)<v);d.ignore=!g,V(Hv,function(x){var S=x==="normal"?i.getModel("label"):i.getModel([x,"label"]),b=x==="normal",w=b?d:d.ensureState(x),T=r.getFormattedLabel(h,x);b&&(T=T||n.node.name),w.style=ar(S,{},null,x!=="normal",!0),T&&(w.style.text=T);var C=S.get("show");C!=null&&!b&&(w.ignore=!C);var A=y(S,"position"),k=b?f:f.states[x],I=k.style.fill;k.textConfig={outsideFill:S.get("color")==="inherit"?I:null,inside:A!=="outside"};var P,R=y(S,"distance")||0,L=y(S,"align"),O=y(S,"rotate"),z=Math.PI*.5,F=Math.PI*1.5,H=bi(O==="tangential"?Math.PI/2-l:l),q=H>z&&!$v(H-z)&&H<F;A==="outside"?(P=o.r+R,L=q?"right":"left"):!L||L==="center"?(s===2*Math.PI&&o.r0===0?P=0:P=(o.r+o.r0)/2,L="center"):L==="left"?(P=o.r0+R,L=q?"right":"left"):L==="right"&&(P=o.r-R,L=q?"left":"right"),w.style.align=L,w.style.verticalAlign=y(S,"verticalAlign")||"middle",w.x=P*u+o.cx,w.y=P*c+o.cy;var $=0;O==="radial"?$=bi(-l)+(q?Math.PI:0):O==="tangential"?$=bi(Math.PI/2-l)+(q?Math.PI:0):Dt(O)&&($=O*Math.PI/180),w.rotation=bi($)});function y(x,S){var b=x.get(S);return b??a.get(S)}d.dirtyStyle()},t}(Fn),FA="sunburstRootToNode",t4="sunburstHighlight",WAe="sunburstUnhighlight";function jAe(e){e.registerAction({type:FA,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i,a){var o=ng(t,[FA],i);if(o){var s=i.getViewRoot();s&&(t.direction=VI(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),e.registerAction({type:t4,update:"none"},function(t,r,n){t=oe({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(a){var o=ng(t,[t4],a);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(oe(t,{type:"highlight"}))}),e.registerAction({type:WAe,update:"updateView"},function(t,r,n){t=oe({},t),n.dispatchAction(oe(t,{type:"downplay"}))})}var UAe=function(e){J(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,a){var o=this;this.seriesModel=r,this.api=i,this.ecModel=n;var s=r.getData(),l=s.tree.root,u=r.getViewRoot(),c=this.group,f=r.get("renderLabelForZeroData"),d=[];u.eachNode(function(S){d.push(S)});var h=this._oldChildren||[];v(d,h),x(l,u),this._initEvents(),this._oldChildren=d;function v(S,b){if(S.length===0&&b.length===0)return;new fs(b,S,w,w).add(T).update(T).remove(Je(T,null)).execute();function w(C){return C.getId()}function T(C,A){var k=C==null?null:S[C],I=A==null?null:b[A];g(k,I)}}function g(S,b){if(!f&&S&&!S.getValue()&&(S=null),S!==l&&b!==l){if(b&&b.piece)S?(b.piece.updateData(!1,S,r,n,i),s.setItemGraphicEl(S.dataIndex,b.piece)):y(b);else if(S){var w=new e4(S,r,n,i);c.add(w),s.setItemGraphicEl(S.dataIndex,w)}}}function y(S){S&&S.piece&&(c.remove(S.piece),S.piece=null)}function x(S,b){b.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,S,r,n,i):(o.virtualPiece=new e4(S,r,n,i),c.add(o.virtualPiece)),b.piece.off("click"),o.virtualPiece.on("click",function(w){o._rootToNode(b.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(n){var i=!1,a=r.seriesModel.getViewRoot();a.eachNode(function(o){if(!i&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")r._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";E1(u,c)}}i=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:FA,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="sunburst",t}(Kt),YAe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};z9(i);var a=this._levelModels=de(r.levels||[],function(l){return new Ft(l,this,n)},this),o=FI.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),d=a[f.depth];return d&&(u.parentModel=d),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=DS(i,this),n},t.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){G8(this)},t.type="series.sunburst",t.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},t}(or);function z9(e){var t=0;V(e.children,function(n){z9(n);var i=n.value;ue(i)&&(i=i[0]),t+=i});var r=e.value;ue(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),ue(e.value)?e.value[0]=r:e.value=r}var r4=Math.PI/180;function qAe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.get("center"),a=n.get("radius");ue(a)||(a=[0,a]),ue(i)||(i=[i,i]);var o=r.getWidth(),s=r.getHeight(),l=Math.min(o,s),u=xe(i[0],o),c=xe(i[1],s),f=xe(a[0],l/2),d=xe(a[1],l/2),h=-n.get("startAngle")*r4,v=n.get("minAngle")*r4,g=n.getData().tree.root,y=n.getViewRoot(),x=y.depth,S=n.get("sort");S!=null&&B9(y,S);var b=0;V(y.children,function(H){!isNaN(H.getValue())&&b++});var w=y.getValue(),T=Math.PI/(w||b)*2,C=y.depth>0,A=y.height-(C?-1:1),k=(d-f)/(A||1),I=n.get("clockwise"),P=n.get("stillShowZeroSum"),R=I?1:-1,L=function(H,q){if(H){var $=q;if(H!==g){var X=H.getValue(),B=w===0&&P?T:X*T;B<v&&(B=v),$=q+R*B;var Y=H.depth-x-(C?-1:1),Z=f+k*Y,j=f+k*(Y+1),re=n.getLevelModel(H);if(re){var ce=re.get("r0",!0),te=re.get("r",!0),pe=re.get("radius",!0);pe!=null&&(ce=pe[0],te=pe[1]),ce!=null&&(Z=xe(ce,l/2)),te!=null&&(j=xe(te,l/2))}H.setLayout({angle:B,startAngle:q,endAngle:$,clockwise:I,cx:u,cy:c,r0:Z,r:j})}if(H.children&&H.children.length){var ae=0;V(H.children,function(he){ae+=L(he,q+ae)})}return $-q}};if(C){var O=f,z=f+k,F=Math.PI*2;g.setLayout({angle:F,startAngle:h,endAngle:h+F,clockwise:I,cx:u,cy:c,r0:O,r:z})}L(y,h)})}function B9(e,t){var r=e.children||[];e.children=XAe(r,t),r.length&&V(e.children,function(n){B9(n,t)})}function XAe(e,t){if(Be(t)){var r=de(e,function(i,a){var o=i.getValue();return{params:{depth:i.depth,height:i.height,dataIndex:i.dataIndex,getValue:function(){return o}},index:a}});return r.sort(function(i,a){return t(i.params,a.params)}),de(r,function(i){return e[i.index]})}else{var n=t==="asc";return e.sort(function(i,a){var o=(i.getValue()-a.getValue())*(n?1:-1);return o===0?(i.dataIndex-a.dataIndex)*(n?-1:1):o})}}function ZAe(e){var t={};function r(n,i,a){for(var o=n;o&&o.depth>1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&we(s)&&(s=A2(s,(n.depth-1)/(a-1)*.5)),s}e.eachSeriesByType("sunburst",function(n){var i=n.getData(),a=i.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=r(o,n,a.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");oe(u,l)})})}function KAe(e){e.registerChartView(UAe),e.registerSeriesModel(YAe),e.registerLayout(Je(qAe,"sunburst")),e.registerProcessor(Je(Hg,"sunburst")),e.registerVisual(ZAe),jAe(e)}var n4={color:"fill",borderColor:"stroke"},QAe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},rs=Tt(),JAe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return xs(null,this)},t.prototype.getDataParams=function(r,n,i){var a=e.prototype.getDataParams.call(this,r,n);return i&&(a.info=rs(i).info),a},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(or);function eMe(e,t){return t=t||[0,0],de(["x","y"],function(r,n){var i=this.getAxis(r),a=t[n],o=e[n]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function tMe(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:Ae(eMe,e)}}}function rMe(e,t){return t=t||[0,0],de([0,1],function(r){var n=t[r],i=e[r]/2,a=[],o=[];return a[r]=n-i,o[r]=n+i,a[1-r]=o[1-r]=t[1-r],Math.abs(this.dataToPoint(a)[r]-this.dataToPoint(o)[r])},this)}function nMe(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(r){return e.dataToPoint(r)},size:Ae(rMe,e)}}}function iMe(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-i)-r.dataToCoord(n+i))}function aMe(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:Ae(iMe,e)}}}function oMe(e,t){return t=t||[0,0],de(["Radius","Angle"],function(r,n){var i="get"+r+"Axis",a=this[i](),o=t[n],s=e[n]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function sMe(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(i){var a=t.dataToRadius(i[0]),o=r.dataToAngle(i[1]),s=e.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:Ae(oMe,e)}}}function lMe(e){var t=e.getRect(),r=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,i){return e.dataToPoint(n,i)}}}}function F9(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||Pe(e,"text")))}function V9(e,t,r){var n=e,i,a,o;if(t==="text")o=n;else{o={},Pe(n,"text")&&(o.text=n.text),Pe(n,"rich")&&(o.rich=n.rich),Pe(n,"textFill")&&(o.fill=n.textFill),Pe(n,"textStroke")&&(o.stroke=n.textStroke),Pe(n,"fontFamily")&&(o.fontFamily=n.fontFamily),Pe(n,"fontSize")&&(o.fontSize=n.fontSize),Pe(n,"fontStyle")&&(o.fontStyle=n.fontStyle),Pe(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=Pe(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),Pe(n,"textPosition")&&(i.position=n.textPosition),Pe(n,"textOffset")&&(i.offset=n.textOffset),Pe(n,"textRotation")&&(i.rotation=n.textRotation),Pe(n,"textDistance")&&(i.distance=n.textDistance)}return i4(o,e),V(o.rich,function(l){i4(l,l)}),{textConfig:i,textContent:a}}function i4(e,t){t&&(t.font=t.textFont||t.font,Pe(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Pe(t,"textAlign")&&(e.align=t.textAlign),Pe(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Pe(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Pe(t,"textWidth")&&(e.width=t.textWidth),Pe(t,"textHeight")&&(e.height=t.textHeight),Pe(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Pe(t,"textPadding")&&(e.padding=t.textPadding),Pe(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Pe(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Pe(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Pe(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Pe(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Pe(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Pe(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function a4(e,t,r){var n=e;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var i=n.textPosition.indexOf("inside")>=0,a=e.fill||"#000";o4(n,t);var o=n.textFill==null;return i?o&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=a),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=e.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,V(t.rich,function(s){o4(s,s)}),n}function o4(e,t){t&&(Pe(t,"fill")&&(e.textFill=t.fill),Pe(t,"stroke")&&(e.textStroke=t.fill),Pe(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Pe(t,"font")&&(e.font=t.font),Pe(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Pe(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Pe(t,"fontSize")&&(e.fontSize=t.fontSize),Pe(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Pe(t,"align")&&(e.textAlign=t.align),Pe(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Pe(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Pe(t,"width")&&(e.textWidth=t.width),Pe(t,"height")&&(e.textHeight=t.height),Pe(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Pe(t,"padding")&&(e.textPadding=t.padding),Pe(t,"borderColor")&&(e.textBorderColor=t.borderColor),Pe(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Pe(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Pe(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Pe(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Pe(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Pe(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Pe(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Pe(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Pe(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Pe(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var $9={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},s4=St($9);Co(Ao,function(e,t){return e[t]=1,e},{});Ao.join(", ");var ex=["","style","shape","extra"],Td=Tt();function tP(e,t,r,n,i){var a=e+"Animation",o=Nd(e,n,i)||{},s=Td(t).userDuring;return o.duration>0&&(o.during=s?Ae(hMe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),oe(o,r[a]),o}function X0(e,t,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=Td(e),u=t.style;l.userDuring=t.during;var c={},f={};if(vMe(e,t,f),u4("shape",t,f),u4("extra",t,f),!a&&s&&(pMe(e,t,c),l4("shape",e,t,c),l4("extra",e,t,c),gMe(e,t,u,c)),f.style=u,uMe(e,f,o),fMe(e,t),s)if(a){var d={};V(ex,function(v){var g=v?t[v]:t;g&&g.enterFrom&&(v&&(d[v]=d[v]||{}),oe(v?d[v]:d,g.enterFrom))});var h=tP("enter",e,t,r,i);h.duration>0&&e.animateFrom(d,h)}else cMe(e,t,i||0,r,c);G9(e,t),u?e.dirty():e.markRedraw()}function G9(e,t){for(var r=Td(e).leaveToProps,n=0;n<ex.length;n++){var i=ex[n],a=i?t[i]:t;a&&a.leaveTo&&(r||(r=Td(e).leaveToProps={}),i&&(r[i]=r[i]||{}),oe(i?r[i]:r,a.leaveTo))}}function LS(e,t,r,n){if(e){var i=e.parent,a=Td(e).leaveToProps;if(a){var o=tP("update",e,t,r,0);o.done=function(){i.remove(e)},e.animateTo(a,o)}else i.remove(e)}}function lc(e){return e==="all"}function uMe(e,t,r){var n=t.style;if(!e.isGroup&&n){if(r){e.useStyle({});for(var i=e.animators,a=0;a<i.length;a++){var o=i[a];o.targetName==="style"&&o.changeTarget(e.style)}}e.setStyle(n)}t&&(t.style=null,t&&e.attr(t),t.style=n)}function cMe(e,t,r,n,i){if(i){var a=tP("update",e,t,n,r);a.duration>0&&e.animateFrom(i,a)}}function fMe(e,t){Pe(t,"silent")&&(e.silent=t.silent),Pe(t,"ignore")&&(e.ignore=t.ignore),e instanceof ia&&Pe(t,"invisible")&&(e.invisible=t.invisible),e instanceof vt&&Pe(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var Qa={},dMe={setTransform:function(e,t){return Qa.el[e]=t,this},getTransform:function(e){return Qa.el[e]},setShape:function(e,t){var r=Qa.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=Qa.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=Qa.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=Qa.el.style;if(t)return t[e]},setExtra:function(e,t){var r=Qa.el.extra||(Qa.el.extra={});return r[e]=t,this},getExtra:function(e){var t=Qa.el.extra;if(t)return t[e]}};function hMe(){var e=this,t=e.el;if(t){var r=Td(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}Qa.el=t,n(dMe)}}function l4(e,t,r,n){var i=r[e];if(i){var a=t[e],o;if(a){var s=r.transition,l=i.transition;if(l)if(!o&&(o=n[e]={}),lc(l))oe(o,a);else for(var u=Yt(l),c=0;c<u.length;c++){var f=u[c],d=a[f];o[f]=d}else if(lc(s)||ft(s,e)>=0){!o&&(o=n[e]={});for(var h=St(a),c=0;c<h.length;c++){var f=h[c],d=a[f];mMe(i[f],d)&&(o[f]=d)}}}}}function u4(e,t,r){var n=t[e];if(n)for(var i=r[e]={},a=St(n),o=0;o<a.length;o++){var s=a[o];i[s]=uv(n[s])}}function pMe(e,t,r){for(var n=t.transition,i=lc(n)?Ao:Yt(n||[]),a=0;a<i.length;a++){var o=i[a];if(!(o==="style"||o==="shape"||o==="extra")){var s=e[o];r[o]=s}}}function vMe(e,t,r){for(var n=0;n<s4.length;n++){var i=s4[n],a=$9[i],o=t[i];o&&(r[a[0]]=o[0],r[a[1]]=o[1])}for(var n=0;n<Ao.length;n++){var s=Ao[n];t[s]!=null&&(r[s]=t[s])}}function gMe(e,t,r,n){if(r){var i=e.style,a;if(i){var o=r.transition,s=t.transition;if(o&&!lc(o)){var l=Yt(o);!a&&(a=n.style={});for(var u=0;u<l.length;u++){var c=l[u],f=i[c];a[c]=f}}else if(e.getAnimationStyleProps&&(lc(s)||lc(o)||ft(s,"style")>=0)){var d=e.getAnimationStyleProps(),h=d?d.style:null;if(h){!a&&(a=n.style={});for(var v=St(r),u=0;u<v.length;u++){var c=v[u];if(h[c]){var f=i[c];a[c]=f}}}}}}}function mMe(e,t){return wn(e)?e!==t:e!=null&&isFinite(e)}var H9=Tt(),yMe=["percent","easing","shape","style","extra"];function W9(e){e.stopAnimation("keyframe"),e.attr(H9(e))}function tx(e,t,r){if(!(!r.isAnimationEnabled()||!t)){if(ue(t)){V(t,function(s){tx(e,s,r)});return}var n=t.keyframes,i=t.duration;if(r&&i==null){var a=Nd("enter",r,0);i=a&&a.duration}if(!(!n||!i)){var o=H9(e);V(ex,function(s){if(!(s&&!e[s])){var l;n.sort(function(u,c){return u.percent-c.percent}),V(n,function(u){var c=e.animators,f=s?u[s]:u;if(f){var d=St(f);if(s||(d=jt(d,function(g){return ft(yMe,g)<0})),!!d.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var h=0;h<c.length;h++)c[h]!==l&&c[h].targetName===l.targetName&&c[h].stopTracks(d);s&&(o[s]=o[s]||{});var v=s?o[s]:o;V(d,function(g){v[g]=((s?e[s]:e)||{})[g]}),l.whenWithKeys(i*u.percent,f,d,u.easing)}}}),l&&l.delay(t.delay||0).duration(i).start(t.easing)}})}}}var ns="emphasis",dl="normal",rP="blur",nP="select",Il=[dl,ns,rP,nP],uT={normal:["itemStyle"],emphasis:[ns,"itemStyle"],blur:[rP,"itemStyle"],select:[nP,"itemStyle"]},cT={normal:["label"],emphasis:[ns,"label"],blur:[rP,"label"],select:[nP,"label"]},xMe=["x","y"],SMe="e\0\0",Fi={normal:{},emphasis:{},blur:{},select:{}},bMe={cartesian2d:tMe,geo:nMe,single:aMe,polar:sMe,calendar:lMe};function VA(e){return e instanceof vt}function $A(e){return e instanceof ia}function _Me(e,t){t.copyTransform(e),$A(t)&&$A(e)&&(t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel,t.invisible=e.invisible,t.ignore=e.ignore,VA(t)&&VA(e)&&t.setShape(e.shape))}var wMe=function(e){J(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,a){this._progressiveEls=null;var o=this._data,s=r.getData(),l=this.group,u=c4(r,s,n,i);o||l.removeAll(),s.diff(o).add(function(f){fT(i,null,f,u(f,a),r,l,s)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&LS(d,rs(d).option,r)}).update(function(f,d){var h=o.getItemGraphicEl(d);fT(i,h,f,u(f,a),r,l,s)}).execute();var c=r.get("clip",!0)?$g(r.coordinateSystem,!1,r):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},t.prototype.incrementalPrepareRender=function(r,n,i){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(r,n,i,a,o){var s=n.getData(),l=c4(n,s,i,a),u=this._progressiveEls=[];function c(h){h.isGroup||(h.incremental=!0,h.ensureState("emphasis").hoverLayer=!0)}for(var f=r.start;f<r.end;f++){var d=fT(null,null,f,l(f,o),n,this.group,s);d&&(d.traverse(c),u.push(d))}},t.prototype.eachRendered=function(r){Ol(this._progressiveEls||this.group,r)},t.prototype.filterForExposedEvent=function(r,n,i,a){var o=n.element;if(o==null||i.name===o)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===o)return!0;return!1},t.type="custom",t}(Kt);function iP(e){var t=e.type,r;if(t==="path"){var n=e.shape,i=n.width!=null&&n.height!=null?{x:n.x||0,y:n.y||0,width:n.width,height:n.height}:null,a=Y9(n);r=cS(a,null,i,n.layout||"center"),rs(r).customPathData=a}else if(t==="image")r=new en({}),rs(r).customImagePath=e.style.image;else if(t==="text")r=new kt({});else if(t==="group")r=new qe;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=qk(t);if(!o){var s="";zt(s)}r=new o}return rs(r).customGraphicType=t,r.name=e.name,r.z2EmphasisLift=1,r.z2SelectLift=1,r}function aP(e,t,r,n,i,a,o){W9(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=xMe);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;Pe(u,"textFill")&&(u.fill=u.textFill),Pe(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=VA(t)?l.decal:null;e&&f&&(f.dirty=!0,c=Sd(f,e)),l.__decalPattern=c}if($A(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}X0(t,n,a,{dataIndex:r,isInit:o,clearStyle:!0}),tx(t,n.keyframeAnimation,a)}function j9(e,t,r,n,i){var a=t.isGroup?null:t,o=i&&i[e].cfg;if(a){var s=a.ensureState(e);if(n===!1){var l=a.getState(e);l&&(l.style=null)}else s.style=n||null;o&&(s.textConfig=o),xc(a)}}function CMe(e,t,r){if(!e.isGroup){var n=e,i=r.currentZ,a=r.currentZLevel;n.z=i,n.zlevel=a;var o=t.z2;o!=null&&(n.z2=o||0);for(var s=0;s<Il.length;s++)TMe(n,t,Il[s])}}function TMe(e,t,r){var n=r===dl,i=n?t:rx(t,r),a=i?i.z2:null,o;a!=null&&(o=n?e:e.ensureState(r),o.z2=a||0)}function c4(e,t,r,n){var i=e.get("renderItem"),a=e.coordinateSystem,o={};a&&(o=a.prepareCustoms?a.prepareCustoms(a):bMe[a.type](a));for(var s=Ve({getWidth:n.getWidth,getHeight:n.getHeight,getZr:n.getZr,getDevicePixelRatio:n.getDevicePixelRatio,value:w,style:C,ordinalRawValue:T,styleEmphasis:A,visual:P,barLayout:R,currentSeriesIndices:L,font:O},o.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:AMe(e.getData())},u,c,f={},d={},h={},v={},g=0;g<Il.length;g++){var y=Il[g];h[y]=e.getModel(uT[y]),v[y]=e.getModel(cT[y])}function x(z){return z===u?c||(c=t.getItemModel(z)):t.getItemModel(z)}function S(z,F){return t.hasItemOption?z===u?f[F]||(f[F]=x(z).getModel(uT[F])):x(z).getModel(uT[F]):h[F]}function b(z,F){return t.hasItemOption?z===u?d[F]||(d[F]=x(z).getModel(cT[F])):x(z).getModel(cT[F]):v[F]}return function(z,F){return u=z,c=null,f={},d={},i&&i(Ve({dataIndexInside:z,dataIndex:t.getRawIndex(z),actionType:F?F.type:null},l),s)};function w(z,F){return F==null&&(F=u),t.getStore().get(t.getDimensionIndex(z||0),F)}function T(z,F){F==null&&(F=u),z=z||0;var H=t.getDimensionInfo(z);if(!H){var q=t.getDimensionIndex(z);return q>=0?t.getStore().get(q,F):void 0}var $=t.get(H.name,F),X=H&&H.ordinalMeta;return X?X.categories[$]:$}function C(z,F){F==null&&(F=u);var H=t.getItemVisual(F,"style"),q=H&&H.fill,$=H&&H.opacity,X=S(F,dl).getItemStyle();q!=null&&(X.fill=q),$!=null&&(X.opacity=$);var B={inheritColor:we(q)?q:"#000"},Y=b(F,dl),Z=ar(Y,null,B,!1,!0);Z.text=Y.getShallow("show")?Qe(e.getFormattedLabel(F,dl),_d(t,F)):null;var j=D1(Y,B,!1);return I(z,X),X=a4(X,Z,j),z&&k(X,z),X.legacy=!0,X}function A(z,F){F==null&&(F=u);var H=S(F,ns).getItemStyle(),q=b(F,ns),$=ar(q,null,null,!0,!0);$.text=q.getShallow("show")?mo(e.getFormattedLabel(F,ns),e.getFormattedLabel(F,dl),_d(t,F)):null;var X=D1(q,null,!0);return I(z,H),H=a4(H,$,X),z&&k(H,z),H.legacy=!0,H}function k(z,F){for(var H in F)Pe(F,H)&&(z[H]=F[H])}function I(z,F){z&&(z.textFill&&(F.textFill=z.textFill),z.textPosition&&(F.textPosition=z.textPosition))}function P(z,F){if(F==null&&(F=u),Pe(n4,z)){var H=t.getItemVisual(F,"style");return H?H[n4[z]]:null}if(Pe(QAe,z))return t.getItemVisual(F,z)}function R(z){if(a.type==="cartesian2d"){var F=a.getBaseAxis();return vxe(Ve({axis:F},z))}}function L(){return r.getCurrentSeriesIndices()}function O(z){return Xk(z,r)}}function AMe(e){var t={};return V(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var i=n.coordDim,a=t[i]=t[i]||[];a[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function fT(e,t,r,n,i,a,o){if(!n){a.remove(t);return}var s=oP(e,t,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&mr(s,n.focus,n.blurScope,n.emphasisDisabled),s}function oP(e,t,r,n,i,a){var o=-1,s=t;t&&U9(t,n,i)&&(o=ft(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=iP(n),s&&_Me(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),Fi.normal.cfg=Fi.normal.conOpt=Fi.emphasis.cfg=Fi.emphasis.conOpt=Fi.blur.cfg=Fi.blur.conOpt=Fi.select.cfg=Fi.select.conOpt=null,Fi.isLegacy=!1,kMe(u,r,n,i,l,Fi),MMe(u,r,n,i,l),aP(e,u,r,n,Fi,i,l),Pe(n,"info")&&(rs(u).info=n.info);for(var c=0;c<Il.length;c++){var f=Il[c];if(f!==dl){var d=rx(n,f),h=sP(n,d,f);j9(f,u,d,h,Fi)}}return CMe(u,n,i),n.type==="group"&&IMe(e,u,r,n,i),o>=0?a.replaceAt(u,o):a.add(u),u}function U9(e,t,r){var n=rs(e),i=t.type,a=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&EMe(a)&&Y9(a)!==n.customPathData||i==="image"&&Pe(o,"image")&&o.image!==n.customImagePath}function MMe(e,t,r,n,i){var a=r.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&U9(o,a,n)&&(o=null),o||(o=iP(a),e.setClipPath(o)),aP(null,o,t,a,null,n,i)}}function kMe(e,t,r,n,i,a){if(!e.isGroup){f4(r,null,a),f4(r,ns,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=iP(o),e.setTextContent(c)),aP(null,c,t,o,null,n,i);for(var f=o&&o.style,d=0;d<Il.length;d++){var h=Il[d];if(h!==dl){var v=a[h].conOpt;j9(h,c,v,sP(o,v,h),null)}}f?c.dirty():c.markRedraw()}}}}function f4(e,t,r){var n=t?rx(e,t):e,i=t?sP(e,n,ns):e.style,a=e.type,o=n?n.textConfig:null,s=e.textContent,l=s?t?rx(s,t):s:null;if(i&&(r.isLegacy||F9(i,a,!!o,!!l))){r.isLegacy=!0;var u=V9(i,a,!t);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!t&&l){var c=l;!c.type&&(c.type="text")}var f=t?r[t]:r.normal;f.cfg=o,f.conOpt=l}function rx(e,t){return t?e?e[t]:null:e}function sP(e,t,r){var n=t&&t.style;return n==null&&r===ns&&e&&(n=e.styleEmphasis),n}function IMe(e,t,r,n,i){var a=n.children,o=a?a.length:0,s=n.$mergeChildren,l=s==="byName"||n.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){DMe({api:e,oldChildren:t.children()||[],newChildren:a||[],dataIndex:r,seriesModel:i,group:t});return}u&&t.removeAll();for(var c=0;c<o;c++){var f=a[c],d=t.childAt(c);f?(f.ignore==null&&(f.ignore=!1),oP(e,d,r,f,i,t)):d.ignore=!0}for(var h=t.childCount()-1;h>=c;h--){var v=t.childAt(h);PMe(t,v,i)}}}function PMe(e,t,r){t&&LS(t,rs(e).option,r)}function DMe(e){new fs(e.oldChildren,e.newChildren,d4,d4,e).add(h4).update(h4).remove(RMe).execute()}function d4(e,t){var r=e&&e.name;return r??SMe+t}function h4(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,i=t!=null?r.oldChildren[t]:null;oP(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function RMe(e){var t=this.context,r=t.oldChildren[e];r&&LS(r,rs(r).option,t.seriesModel)}function Y9(e){return e&&(e.pathData||e.d)}function EMe(e){return e&&(Pe(e,"pathData")||Pe(e,"d"))}function LMe(e){e.registerChartView(wMe),e.registerSeriesModel(JAe)}var Vu=Tt(),p4=We,dT=Ae,lP=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new qe,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=Je(v4,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}m4(s,r,!0),this._renderHandle(a)}},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,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=RI(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=Vu(t).pointerEl=new kc[a.type](p4(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=Vu(t).labelEl=new kt(p4(r.label));t.add(a),g4(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=Vu(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 a=Vu(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),g4(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Lg(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ss(u.event)},onmousedown:dT(this._onHandleDragMove,this,0,0),drift:dT(this._onHandleDragMove,this),ondragend:dT(this._onHandleDragEnd,this)}),n.add(i)),m4(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");ue(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,Wd(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){v4(this._axisPointerModel,!r&&this._moveAnimation,this._handle,hT(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(hT(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(hT(i)),Vu(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),Xv(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 v4(e,t,r,n){q9(Vu(r).lastProp,n)||(Vu(r).lastProp=n,t?Lt(r,n,e):(r.stopAnimation(),r.attr(n)))}function q9(e,t){if(Ge(e)&&Ge(t)){var r=!0;return V(t,function(n,i){r=r&&q9(e[i],n)}),!!r}else return e===t}function g4(e,t){e[t.get(["label","show"])?"show":"hide"]()}function hT(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function m4(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function uP(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 X9(e,t,r,n,i){var a=r.get("value"),o=Z9(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=Vd(s.get("padding")||0),u=s.getFont(),c=Mg(o,u),f=i.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],v=i.align;v==="right"&&(f[0]-=d),v==="center"&&(f[0]-=d/2);var g=i.verticalAlign;g==="bottom"&&(f[1]-=h),g==="middle"&&(f[1]-=h/2),OMe(f,d,h,n);var y=s.get("backgroundColor");(!y||y==="auto")&&(y=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:ar(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function OMe(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function Z9(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:bI(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};V(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),we(o)?a=o.replace("{value}",a):Be(o)&&(a=o(s))}return a}function cP(e,t,r){var n=wi();return Mc(n,n,r.rotation),To(n,n,r.position),Ia([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function K9(e,t,r,n,i,a){var o=Nn.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),X9(t,n,i,a,{position:cP(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function fP(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function Q9(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function y4(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var NMe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=x4(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=uP(a),h=zMe[u](s,f,c);h.style=d,r.graphicKey=h.type,r.pointer=h}var v=bA(l.model,i);K9(n,r,v,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=bA(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=cP(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=x4(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[r.x,r.y];f[c]+=n[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:h,tooltipOption:v[c]}},t}(lP);function x4(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var zMe={line:function(e,t,r){var n=fP([t,r[0]],[t,r[1]],S4(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:Q9([t-n/2,r[0]],[n,i],S4(e))}}};function S4(e){return e.dim==="x"?0:1}var BMe=function(e){J(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}(xt),Qo=Tt(),FMe=V;function J9(e,t,r){if(!yt.node){var n=t.getZr();Qo(n).records||(Qo(n).records={}),VMe(n,t);var i=Qo(n).records[e]||(Qo(n).records[e]={});i.handler=r}}function VMe(e,t){if(Qo(e).initialized)return;Qo(e).initialized=!0,r("click",Je(b4,"click")),r("mousemove",Je(b4,"mousemove")),r("globalout",GMe);function r(n,i){e.on(n,function(a){var o=HMe(t);FMe(Qo(e).records,function(s){s&&i(s,a,o.dispatchAction)}),$Me(o.pendings,t)})}}function $Me(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 GMe(e,t,r){e.handler("leave",null,r)}function b4(e,t,r,n){t.handler(e,r,n)}function HMe(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 GA(e,t){if(!yt.node){var r=t.getZr(),n=(Qo(r).records||{})[e];n&&(Qo(r).records[e]=null)}}var WMe=function(e){J(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 a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";J9("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(r,n){GA("axisPointer",n)},t.prototype.dispose=function(r,n){GA("axisPointer",n)},t.type="axisPointer",t}(dr);function e7(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=mc(a,e);if(o==null||o<0||ue(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="radius"?1:0,v=a.mapDimension(d),g=[];g[h]=a.get(v,o),g[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(a.getValues(de(l.dimensions,function(x){return a.mapDimension(x)}),o))||[];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 _4=Tt();function jMe(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||Ae(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Z0(i)&&(i=e7({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=Z0(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||Z0(i),d={},h={},v={list:[],map:{}},g={showPointer:Je(YMe,h),showTooltip:Je(qMe,v)};V(s.coordSysMap,function(x,S){var b=l||x.containPoint(i);V(s.coordSysAxesInfo[S],function(w,T){var C=w.axis,A=QMe(u,w);if(!f&&b&&(!u||A)){var k=A&&A.value;k==null&&!l&&(k=C.pointToData(i)),k!=null&&w4(w,k,g,!1,d)}})});var y={};return V(c,function(x,S){var b=x.linkGroup;b&&!h[S]&&V(b.axesInfo,function(w,T){var C=h[T];if(w!==x&&C){var A=C.value;b.mapper&&(A=x.axis.scale.parse(b.mapper(A,C4(w),C4(x)))),y[x.key]=A}})}),V(y,function(x,S){w4(c[S],x,g,!0,d)}),XMe(h,c,d),ZMe(v,i,e,o),KMe(c,o,r),d}}function w4(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=UMe(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&oe(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function UMe(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return V(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,r);d=h.dataIndices,f=h.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var v=e-f,g=Math.abs(v);g<=o&&((g<o||v>=0&&s<0)&&(o=g,s=v,i=f,a.length=0),V(d,function(y){a.push({seriesIndex:l.seriesIndex,dataIndexInside:y,dataIndex:l.getData().getRawIndex(y)})}))}}),{payloadBatch:a,snapToValue:i}}function YMe(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function qMe(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=rg(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function XMe(e,t,r){var n=r.axesInfo=[];V(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function ZMe(e,t,r,n){if(Z0(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 KMe(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=_4(n)[i]||{},o=_4(n)[i]={};V(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&V(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];V(a,function(u,c){!o[c]&&l.push(u)}),V(o,function(u,c){!a[c]&&s.push(u)}),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 QMe(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 C4(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 Z0(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Yg(e){Rc.registerAxisPointerClass("CartesianAxisPointer",NMe),e.registerComponentModel(BMe),e.registerComponentView(WMe),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!ue(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=l_e(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},jMe)}function JMe(e){pt(k8),pt(Yg)}var eke=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(n),d=a.get("type");if(d&&d!=="none"){var h=uP(a),v=rke[d](s,l,f,c);v.style=h,r.graphicKey=v.type,r.pointer=v}var g=a.get(["label","margin"]),y=tke(n,i,a,l,g);X9(r,i,a,o,y)},t}(lP);function tke(e,t,r,n,i){var a=t.axis,o=a.dataToCoord(e),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,f;if(a.dim==="radius"){var d=wi();Mc(d,d,s),To(d,d,[n.cx,n.cy]),u=Ia([o,-i],d);var h=t.getModel("axisLabel").get("rotate")||0,v=Nn.innerTextLayout(s,h*Math.PI/180,-1);c=v.textAlign,f=v.textVerticalAlign}else{var g=l[1];u=n.coordToPoint([g+i,o]);var y=n.cx,x=n.cy;c=Math.abs(u[0]-y)/g<.3?"center":u[0]>y?"left":"right",f=Math.abs(u[1]-x)/g<.3?"middle":u[1]>x?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var rke={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:fP(t.coordToPoint([n[0],r]),t.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r}}},shadow:function(e,t,r,n){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:y4(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:y4(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}},nke=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.findAxisModel=function(r){var n,i=this.ecModel;return i.eachComponent(r,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(xt),dP=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Rr).models[0]},t.type="polarAxis",t}(xt);Lr(dP,Bg);var ike=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="angleAxis",t}(dP),ake=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="radiusAxis",t}(dP),hP=function(e){J(t,e);function t(r,n){return e.call(this,"radius",r,n)||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t}(Fa);hP.prototype.dataToRadius=Fa.prototype.dataToCoord;hP.prototype.radiusToData=Fa.prototype.coordToData;var oke=Tt(),pP=function(e){J(t,e);function t(r,n){return e.call(this,"angle",r,n||[0,360])||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),c=Mg(s==null?"":s+"",n.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var h=Math.max(0,Math.floor(d)),v=oke(r.model),g=v.lastAutoInterval,y=v.lastTickCount;return g!=null&&y!=null&&Math.abs(g-h)<=1&&Math.abs(y-o)<=1&&g>h?h=g:(v.lastTickCount=o,v.lastAutoInterval=h),h},t}(Fa);pP.prototype.dataToAngle=Fa.prototype.dataToCoord;pP.prototype.angleToData=Fa.prototype.coordToData;var t7=["radius","angle"],ske=function(){function e(t){this.dimensions=t7,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new hP,this._angleAxis=new pP,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var r=this.pointToCoord(t);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var r="_"+t+"Axis";return this[r]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var r=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&r.push(n),i.scale.type===t&&r.push(i),r},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var r=this._angleAxis;return t===r?this._radiusAxis:r},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var r=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},e.prototype.dataToPoint=function(t,r){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],r),this._angleAxis.dataToAngle(t[1],r)])},e.prototype.pointToData=function(t,r){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],r),this._angleAxis.angleToData(n[1],r)]},e.prototype.pointToCoord=function(t){var r=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+360;var l=Math.sqrt(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,c=u<o?1:-1;u<o||u>s;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t){var r=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*r+this.cx,a=-Math.sin(n)*r+this.cy;return[i,a]},e.prototype.getArea=function(){var t=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:t.inverse,contain:function(o,s){var l=o-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,d=this.r0;return c<=f*f&&c>=d*d}}},e.prototype.convertToPixel=function(t,r,n){var i=T4(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=T4(r);return i===this?this.pointToData(n):null},e}();function T4(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function lke(e,t,r){var n=t.get("center"),i=r.getWidth(),a=r.getHeight();e.cx=xe(n[0],i),e.cy=xe(n[1],a);var o=e.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:ue(l)||(l=[0,l]);var u=[xe(l[0],s),xe(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function uke(e,t){var r=this,n=r.getAngleAxis(),i=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();V(H1(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),V(H1(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),bd(n.scale,n.model),bd(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function cke(e){return e.mainType==="angleAxis"}function A4(e,t){var r;if(e.type=t.get("type"),e.scale=MS(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),cke(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle"),i=(r=t.get("endAngle"))!==null&&r!==void 0?r:n+(e.inverse?-360:360);e.setExtent(n,i)}t.axis=e,e.model=t}var fke={dimensions:t7,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new ske(i+"");a.update=uke;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");A4(o,l),A4(s,u),lke(a,n,t),r.push(a),n.coordinateSystem=a,a.model=n}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",Rr).models[0];n.coordinateSystem=i.coordinateSystem}}),r}},dke=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function y0(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],r]),i=e.coordToPoint([t[1],r]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function x0(e){var t=e.getRadiusAxis();return t.inverse?0:1}function M4(e){var t=e[0],r=e[e.length-1];t&&r&&Math.abs(Math.abs(t.coord-r.coord)-360)<1e-4&&e.pop()}var hke=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var i=r.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=de(i.getViewLabels(),function(c){c=We(c);var f=i.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(d),c});M4(u),M4(s),V(dke,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&pke[c](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}(Rc),pke={axisLine:function(e,t,r,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=r.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=x0(r),f=c?0:1,d,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";a[f]===0?d=new kc[h]({shape:{cx:r.cx,cy:r.cy,r:a[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):d=new Pg({shape:{cx:r.cx,cy:r.cy,r:a[c],r0:a[f]},style:o.getLineStyle(),z2:1,silent:!0}),d.style.fill=null,e.add(d)},axisTick:function(e,t,r,n,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[x0(r)],u=de(n,function(c){return new Hr({shape:y0(r,[l,l+s],c.coord)})});e.add(Zi(u,{style:Ve(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,n,i,a){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[x0(r)],c=[],f=0;f<i.length;f++)for(var d=0;d<i[f].length;d++)c.push(new Hr({shape:y0(r,[u,u+l],i[f][d].coord)}));e.add(Zi(c,{style:Ve(s.getModel("lineStyle").getLineStyle(),Ve(o.getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(e,t,r,n,i,a,o){var s=t.getCategories(!0),l=t.getModel("axisLabel"),u=l.get("margin"),c=t.get("triggerEvent");V(o,function(f,d){var h=l,v=f.tickValue,g=a[x0(r)],y=r.coordToPoint([g+u,f.coord]),x=r.cx,S=r.cy,b=Math.abs(y[0]-x)/g<.3?"center":y[0]>x?"left":"right",w=Math.abs(y[1]-S)/g<.3?"middle":y[1]>S?"top":"bottom";if(s&&s[v]){var T=s[v];Ge(T)&&T.textStyle&&(h=new Ft(T.textStyle,l,l.ecModel))}var C=new kt({silent:Nn.isLabelSilent(t),style:ar(h,{x:y[0],y:y[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:b,verticalAlign:w})});if(e.add(C),c){var A=Nn.makeAxisEventDataBase(t);A.targetType="axisLabel",A.value=f.rawLabel,Ze(C).eventData=A}},this)},splitLine:function(e,t,r,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<n.length;f++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new Hr({shape:y0(r,a,n[f].coord)}))}for(var f=0;f<c.length;f++)e.add(Zi(c[f],{style:Ve({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:t.get("z")}))},minorSplitLine:function(e,t,r,n,i,a){if(i.length){for(var o=t.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var c=0;c<i[u].length;c++)l.push(new Hr({shape:y0(r,a,i[u][c].coord)}));e.add(Zi(l,{style:s.getLineStyle(),silent:!0,z:t.get("z")}))}},splitArea:function(e,t,r,n,i,a){if(n.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=Math.PI/180,d=-n[0].coord*f,h=Math.min(a[0],a[1]),v=Math.max(a[0],a[1]),g=t.get("clockwise"),y=1,x=n.length;y<=x;y++){var S=y===x?n[0].coord:n[y].coord,b=u++%l.length;c[b]=c[b]||[],c[b].push(new Fn({shape:{cx:r.cx,cy:r.cy,r0:h,r:v,startAngle:d,endAngle:-S*f,clockwise:g},silent:!0})),d=-S*f}for(var y=0;y<c.length;y++)e.add(Zi(c[y],{style:Ve({fill:l[y%l.length]},s.getAreaStyle()),silent:!0}))}}},vke=["axisLine","axisTickLabel","axisName"],gke=["splitLine","splitArea","minorSplitLine"],mke=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var i=this._axisGroup,a=this._axisGroup=new qe;this.group.add(a);var o=r.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),f=l.getExtent()[0],d=o.getExtent(),h=xke(s,r,f),v=new Nn(r,h);V(vke,v.add,v),a.add(v.getGroup()),Eg(i,a,r),V(gke,function(g){r.get([g,"show"])&&!o.scale.isBlank()&&yke[g](this.group,r,s,f,d,u,c)},this)}},t.type="radiusAxis",t}(Rc),yke={splitLine:function(e,t,r,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,c=r.getAngleAxis(),f=Math.PI/180,d=c.getExtent(),h=Math.abs(d[1]-d[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var v=[],g=0;g<a.length;g++){var y=u++%l.length;v[y]=v[y]||[],v[y].push(new kc[h]({shape:{cx:r.cx,cy:r.cy,r:Math.max(a[g].coord,0),startAngle:-d[0]*f,endAngle:-d[1]*f,clockwise:c.inverse}}))}for(var g=0;g<v.length;g++)e.add(Zi(v[g],{style:Ve({stroke:l[g%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(e,t,r,n,i,a,o){if(o.length){for(var s=t.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var f=0;f<o[c].length;f++)u.push(new ys({shape:{cx:r.cx,cy:r.cy,r:o[c][f].coord}}));e.add(Zi(u,{style:Ve({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(e,t,r,n,i,a){if(a.length){var o=t.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=a[0].coord,d=1;d<a.length;d++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new Fn({shape:{cx:r.cx,cy:r.cy,r0:f,r:a[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=a[d].coord}for(var d=0;d<c.length;d++)e.add(Zi(c[d],{style:Ve({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function xke(e,t,r){return{position:[e.cx,e.cy],rotation:r/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:t.getModel("axisLabel").get("rotate"),z2:1}}function r7(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function n7(e,t){return t.dim+e.model.componentIndex}function Ske(e,t,r){var n={},i=bke(jt(t.getSeriesByType(e),function(a){return!t.isSeriesFiltered(a)&&a.coordinateSystem&&a.coordinateSystem.type==="polar"}));t.eachSeriesByType(e,function(a){if(a.coordinateSystem.type==="polar"){var o=a.getData(),s=a.coordinateSystem,l=s.getBaseAxis(),u=n7(s,l),c=r7(a),f=i[u][c],d=f.offset,h=f.width,v=s.getOtherAxis(l),g=a.coordinateSystem.cx,y=a.coordinateSystem.cy,x=a.get("barMinHeight")||0,S=a.get("barMinAngle")||0;n[c]=n[c]||[];for(var b=o.mapDimension(v.dim),w=o.mapDimension(l.dim),T=Ml(o,b),C=l.dim!=="radius"||!a.get("roundCap",!0),A=v.model,k=A.get("startValue"),I=v.dataToCoord(k||0),P=0,R=o.count();P<R;P++){var L=o.get(b,P),O=o.get(w,P),z=L>=0?"p":"n",F=I;T&&(n[c][O]||(n[c][O]={p:I,n:I}),F=n[c][O][z]);var H=void 0,q=void 0,$=void 0,X=void 0;if(v.dim==="radius"){var B=v.dataToCoord(L)-I,Y=l.dataToCoord(O);Math.abs(B)<x&&(B=(B<0?-1:1)*x),H=F,q=F+B,$=Y-d,X=$-h,T&&(n[c][O][z]=q)}else{var Z=v.dataToCoord(L,C)-I,j=l.dataToCoord(O);Math.abs(Z)<S&&(Z=(Z<0?-1:1)*S),H=j+d,q=H+h,$=F,X=F+Z,T&&(n[c][O][z]=X)}o.setItemLayout(P,{cx:g,cy:y,r0:H,r:q,startAngle:-$*Math.PI/180,endAngle:-X*Math.PI/180,clockwise:$>=X})}}})}function bke(e){var t={};V(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=n7(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),f=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;t[l]=f;var h=r7(n);d[h]||f.autoWidthCount++,d[h]=d[h]||{width:0,maxWidth:0};var v=xe(n.get("barWidth"),c),g=xe(n.get("barMaxWidth"),c),y=n.get("barGap"),x=n.get("barCategoryGap");v&&!d[h].width&&(v=Math.min(f.remainedWidth,v),d[h].width=v,f.remainedWidth-=v),g&&(d[h].maxWidth=g),y!=null&&(f.gap=y),x!=null&&(f.categoryGap=x)});var r={};return V(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=xe(n.categoryGap,o),l=xe(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),V(a,function(g,y){var x=g.maxWidth;x&&x<f&&(x=Math.min(x,u),g.width&&(x=Math.min(x,g.width)),u-=x,g.width=x,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var d=0,h;V(a,function(g,y){g.width||(g.width=f),h=g,d+=g.width*(1+l)}),h&&(d-=h.width*l);var v=-d/2;V(a,function(g,y){r[i][y]=r[i][y]||{offset:v,width:g.width},v+=g.width*(1+l)})}),r}var _ke={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},wke={splitNumber:5},Cke=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="polar",t}(dr);function Tke(e){pt(Yg),Rc.registerAxisPointerClass("PolarAxisPointer",eke),e.registerCoordinateSystem("polar",fke),e.registerComponentModel(nke),e.registerComponentView(Cke),wd(e,"angle",ike,_ke),wd(e,"radius",ake,wke),e.registerComponentView(hke),e.registerComponentView(mke),e.registerLayout(Je(Ske,"bar"))}function HA(e,t){t=t||{};var r=e.coordinateSystem,n=e.axis,i={},a=n.position,o=n.orient,s=r.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=[o==="vertical"?u.vertical[a]:l[0],o==="horizontal"?u.horizontal[a]:l[3]];var c={horizontal:0,vertical:1};i.rotation=Math.PI/2*c[o];var f={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=f[a],e.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Jr(t.labelInside,e.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var d=t.rotate;return d==null&&(d=e.get(["axisLabel","rotate"])),i.labelRotation=a==="top"?-d:d,i.z2=1,i}var Ake=["axisLine","axisTickLabel","axisName"],Mke=["splitArea","splitLine"],kke=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="SingleAxisPointer",r}return t.prototype.render=function(r,n,i,a){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new qe;var l=HA(r),u=new Nn(r,l);V(Ake,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),V(Mke,function(c){r.get([c,"show"])&&Ike[c](this,this.group,this._axisGroup,r)},this),Eg(s,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)},t.prototype.remove=function(){T8(this)},t.type="singleAxis",t}(Rc),Ike={splitLine:function(e,t,r,n){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=n.coordinateSystem.getRect(),c=i.isHorizontal(),f=[],d=0,h=i.getTicksCoords({tickModel:a}),v=[],g=[],y=0;y<h.length;++y){var x=i.toGlobalCoord(h[y].coord);c?(v[0]=x,v[1]=u.y,g[0]=x,g[1]=u.y+u.height):(v[0]=u.x,v[1]=x,g[0]=u.x+u.width,g[1]=x);var S=new Hr({shape:{x1:v[0],y1:v[1],x2:g[0],y2:g[1]},silent:!0});yd(S.shape,l);var b=d++%s.length;f[b]=f[b]||[],f[b].push(S)}for(var w=o.getLineStyle(["color"]),y=0;y<f.length;++y)t.add(Zi(f[y],{style:Ve({stroke:s[y%s.length]},w),silent:!0}))}},splitArea:function(e,t,r,n){C8(e,r,n,n)}},K0=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getCoordSysModel=function(){return this},t.type="singleAxis",t.layoutMode="box",t.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},t}(xt);Lr(K0,Bg.prototype);var Pke=function(e){J(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.pointToData=function(r,n){return this.coordinateSystem.pointToData(r)[0]},t}(Fa),i7=["single"],Dke=function(){function e(t,r,n){this.type="single",this.dimension="single",this.dimensions=i7,this.axisPointerEnabled=!0,this.model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var i=this.dimension,a=new Pke(i,MS(t),[0,0],t.get("type"),t.get("position")),o=a.type==="category";a.onBand=o&&t.get("boundaryGap"),a.inverse=t.get("inverse"),a.orient=t.get("orient"),t.axis=a,a.model=t,a.coordinateSystem=this,this._axis=a},e.prototype.update=function(t,r){t.eachSeries(function(n){if(n.coordinateSystem===this){var i=n.getData();V(i.mapDimensionsAll(this.dimension),function(a){this._axis.scale.unionExtentFromData(i,a)},this),bd(this._axis.scale,this._axis.model)}},this)},e.prototype.resize=function(t,r){this._rect=Fr({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:r.getWidth(),height:r.getHeight()}),this._adjustAxis()},e.prototype.getRect=function(){return this._rect},e.prototype._adjustAxis=function(){var t=this._rect,r=this._axis,n=r.isHorizontal(),i=n?[0,t.width]:[0,t.height],a=r.inverse?1:0;r.setExtent(i[a],i[1-a]),this._updateAxisTransform(r,n?t.x:t.y)},e.prototype._updateAxisTransform=function(t,r){var n=t.getExtent(),i=n[0]+n[1],a=t.isHorizontal();t.toGlobalCoord=a?function(o){return o+r}:function(o){return i-o+r},t.toLocalCoord=a?function(o){return o-r}:function(o){return i-o+r}},e.prototype.getAxis=function(){return this._axis},e.prototype.getBaseAxis=function(){return this._axis},e.prototype.getAxes=function(){return[this._axis]},e.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},e.prototype.containPoint=function(t){var r=this.getRect(),n=this.getAxis(),i=n.orient;return i==="horizontal"?n.contain(n.toLocalCoord(t[0]))&&t[1]>=r.y&&t[1]<=r.y+r.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=r.y&&t[0]<=r.y+r.height},e.prototype.pointToData=function(t){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(t[r.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var r=this.getAxis(),n=this.getRect(),i=[],a=r.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[a]=r.toGlobalCoord(r.dataToCoord(+t)),i[1-a]=a===0?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(t,r,n){var i=k4(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=k4(r);return i===this?this.pointToData(n):null},e}();function k4(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function Rke(e,t){var r=[];return e.eachComponent("singleAxis",function(n,i){var a=new Dke(n,e,t);a.name="single_"+i,a.resize(n,t),n.coordinateSystem=a,r.push(a)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var i=n.getReferringComponents("singleAxis",Rr).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var Eke={create:Rke,dimensions:i7},I4=["x","y"],Lke=["width","height"],Oke=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.coordinateSystem,u=pT(l,1-nx(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var d=uP(a),h=Nke[f](s,c,u);h.style=d,r.graphicKey=h.type,r.pointer=h}var v=HA(i);K9(n,r,v,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=HA(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=cP(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.coordinateSystem,l=nx(o),u=pT(s,l),c=[r.x,r.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=pT(s,1-l),d=(f[1]+f[0])/2,h=[d,d];return h[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}(lP),Nke={line:function(e,t,r){var n=fP([t,r[0]],[t,r[1]],nx(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=e.getBandWidth(),i=r[1]-r[0];return{type:"Rect",shape:Q9([t-n/2,r[0]],[n,i],nx(e))}}};function nx(e){return e.isHorizontal()?0:1}function pT(e,t){var r=e.getRect();return[r[I4[t]],r[I4[t]]+r[Lke[t]]]}var zke=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="single",t}(dr);function Bke(e){pt(Yg),Rc.registerAxisPointerClass("SingleAxisPointer",Oke),e.registerComponentView(zke),e.registerComponentView(kke),e.registerComponentModel(K0),wd(e,"single",K0,K0.defaultOption),e.registerCoordinateSystem("single",Eke)}var Fke=function(e){J(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,i){var a=$d(r);e.prototype.init.apply(this,arguments),P4(r,a)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),P4(this.option,r)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(xt);function P4(e,t){var r=e.cellSize,n;ue(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var i=de([0,1],function(a){return iye(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});Al(e,t,{type:"box",ignoreSize:i})}var Vke=function(e){J(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 a=this.group;a.removeAll();var o=r.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(r,s,a),this._renderLines(r,s,l,a),this._renderYearText(r,s,l,a),this._renderMonthText(r,u,l,a),this._renderWeekText(r,u,s,l,a)},t.prototype._renderDayRect=function(r,n,i){for(var a=r.coordinateSystem,o=r.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=n.start.time;u<=n.end.time;u=a.getNextNDay(u,1).time){var c=a.dataToRect([u],!1).tl,f=new Ct({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});i.add(f)}},t.prototype._renderLines=function(r,n,i,a){var o=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=n.start,d=0;f.time<=n.end.time;d++){v(f.formatedDate),d===0&&(f=s.getDateInfo(n.start.y+"-"+n.start.m));var h=f.date;h.setMonth(h.getMonth()+1),f=s.getDateInfo(h)}v(s.getNextNDay(n.end.time,1).formatedDate);function v(g){o._firstDayOfMonth.push(s.getDateInfo(g)),o._firstDayPoints.push(s.dataToRect([g],!1).tl);var y=o._getLinePointsOfOneWeek(r,g,i);o._tlpoints.push(y[0]),o._blpoints.push(y[y.length-1]),u&&o._drawSplitline(y,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,i),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,i),l,a)},t.prototype._getEdgesPoints=function(r,n,i){var a=[r[0].slice(),r[r.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-n/2,a[1][o]=a[1][o]+n/2,a},t.prototype._drawSplitline=function(r,n,i){var a=new Gn({z2:20,shape:{points:r},style:n});i.add(a)},t.prototype._getLinePointsOfOneWeek=function(r,n,i){for(var a=r.coordinateSystem,o=a.getDateInfo(n),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),c=a.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[i==="horizontal"?"bl":"tr"]}return s},t.prototype._formatterLabel=function(r,n){return we(r)&&r?tye(r,n):Be(r)?r(n):n.nameMap},t.prototype._yearTextPositionControl=function(r,n,i,a,o){var s=n[0],l=n[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(a==="left"||a==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},t.prototype._renderYearText=function(r,n,i,a){var o=r.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,d=i==="horizontal"?0:1,h={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},v=n.start.y;+n.end.y>+n.start.y&&(v=v+"-"+n.end.y);var g=o.get("formatter"),y={start:n.start.y,end:n.end.y,nameMap:v},x=this._formatterLabel(g,y),S=new kt({z2:30,style:ar(o,{text:x})});S.attr(this._yearTextPositionControl(S,h[l],i,l,s)),a.add(S)}},t.prototype._monthTextPositionControl=function(r,n,i,a,o){var s="left",l="top",u=r[0],c=r[1];return i==="horizontal"?(c=c+o,n&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),a==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(r,n,i,a){var o=r.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||we(s))&&(s&&(n=Z2(s)||n),s=n.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,h=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var v=c==="center",g=0;g<f[d].length-1;g++){var y=f[d][g].slice(),x=this._firstDayOfMonth[g];if(v){var S=this._firstDayPoints[g];y[h]=(S[h]+f[0][g+1][h])/2}var b=o.get("formatter"),w=s[+x.m-1],T={yyyy:x.y,yy:(x.y+"").slice(2),MM:x.m,M:+x.m,nameMap:w},C=this._formatterLabel(b,T),A=new kt({z2:30,style:oe(ar(o,{text:C}),this._monthTextPositionControl(y,v,i,u,l))});a.add(A)}}},t.prototype._weekTextPositionControl=function(r,n,i,a,o){var s="center",l="middle",u=r[0],c=r[1],f=i==="start";return n==="horizontal"?(u=u+a+(f?1:-1)*o[0]/2,s=f?"right":"left"):(c=c+a+(f?1:-1)*o[1]/2,l=f?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderWeekText=function(r,n,i,a,o){var s=r.getModel("dayLabel");if(s.get("show")){var l=r.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),f=s.get("margin"),d=l.getFirstDayOfWeek();if(!c||we(c)){c&&(n=Z2(c)||n);var h=n.get(["time","dayOfWeekShort"]);c=h||de(n.get(["time","dayOfWeekAbbr"]),function(T){return T[0]})}var v=l.getNextNDay(i.end.time,7-i.lweek).time,g=[l.getCellWidth(),l.getCellHeight()];f=xe(f,Math.min(g[1],g[0])),u==="start"&&(v=l.getNextNDay(i.start.time,-(7+i.fweek)).time,f=-f);for(var y=0;y<7;y++){var x=l.getNextNDay(v,y),S=l.dataToRect([x.time],!1).center,b=y;b=Math.abs((y+d)%7);var w=new kt({z2:30,style:oe(ar(s,{text:c[b]}),this._weekTextPositionControl(S,a,u,f,g))});o.add(w)}}},t.type="calendar",t}(dr),vT=864e5,$ke=function(){function e(t,r,n){this.type="calendar",this.dimensions=e.dimensions,this.getDimensionsInfo=e.getDimensionsInfo,this._model=t}return e.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},e.prototype.getRangeInfo=function(){return this._rangeInfo},e.prototype.getModel=function(){return this._model},e.prototype.getRect=function(){return this._rect},e.prototype.getCellWidth=function(){return this._sw},e.prototype.getCellHeight=function(){return this._sh},e.prototype.getOrient=function(){return this._orient},e.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},e.prototype.getDateInfo=function(t){t=Mo(t);var r=t.getFullYear(),n=t.getMonth()+1,i=n<10?"0"+n:""+n,a=t.getDate(),o=a<10?"0"+a:""+a,s=t.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:r+"",m:i,d:o,day:s,time:t.getTime(),formatedDate:r+"-"+i+"-"+o,date:t}},e.prototype.getNextNDay=function(t,r){return r=r||0,r===0?this.getDateInfo(t):(t=new Date(this.getDateInfo(t).time),t.setDate(t.getDate()+r),this.getDateInfo(t))},e.prototype.update=function(t,r){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var n=this._rangeInfo.weeks||1,i=["width","height"],a=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[n,7]:[7,n];V([0,1],function(f){c(a,f)&&(o[i[f]]=a[f]*s[f])});var l={width:r.getWidth(),height:r.getHeight()},u=this._rect=Fr(o,l);V([0,1],function(f){c(a,f)||(a[f]=u[i[f]]/s[f])});function c(f,d){return f[d]!=null&&f[d]!=="auto"}this._sw=a[0],this._sh=a[1]},e.prototype.dataToPoint=function(t,r){ue(t)&&(t=t[0]),r==null&&(r=!0);var n=this.getDateInfo(t),i=this._rangeInfo,a=n.formatedDate;if(r&&!(n.time>=i.start.time&&n.time<i.end.time+vT))return[NaN,NaN];var o=n.day,s=this._getRangeInfo([i.start.time,a]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+o*this._sh+this._sh/2]},e.prototype.pointToData=function(t){var r=this.pointToDate(t);return r&&r.time},e.prototype.dataToRect=function(t,r){var n=this.dataToPoint(t,r);return{contentShape:{x:n[0]-(this._sw-this._lineWidth)/2,y:n[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:n,tl:[n[0]-this._sw/2,n[1]-this._sh/2],tr:[n[0]+this._sw/2,n[1]-this._sh/2],br:[n[0]+this._sw/2,n[1]+this._sh/2],bl:[n[0]-this._sw/2,n[1]+this._sh/2]}},e.prototype.pointToDate=function(t){var r=Math.floor((t[0]-this._rect.x)/this._sw)+1,n=Math.floor((t[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(n,r-1,i):this._getDateByWeeksAndDay(r,n-1,i)},e.prototype.convertToPixel=function(t,r,n){var i=D4(r);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=D4(r);return i===this?i.pointToData(n):null},e.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},e.prototype._initRangeOption=function(){var t=this._model.get("range"),r;if(ue(t)&&t.length===1&&(t=t[0]),ue(t))r=t;else{var n=t.toString();if(/^\d{4}$/.test(n)&&(r=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var i=this.getDateInfo(n),a=i.date;a.setMonth(a.getMonth()+1);var o=this.getNextNDay(a,-1);r=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(r=[n,n])}if(!r)return t;var s=this._getRangeInfo(r);return s.start.time>s.end.time&&r.reverse(),r},e.prototype._getRangeInfo=function(t){var r=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var i=Math.floor(r[1].time/vT)-Math.floor(r[0].time/vT)+1,a=new Date(r[0].time),o=a.getDate(),s=r[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-r[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-r[1].time)*u>0;)i-=u,a.setDate(l-u);var c=Math.floor((i+r[0].day+6)/7),f=n?-c+1:c-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:i,weeks:c,nthWeek:f,fweek:r[0].day,lweek:r[1].day}},e.prototype._getDateByWeeksAndDay=function(t,r,n){var i=this._getRangeInfo(n);if(t>i.weeks||t===0&&r<i.fweek||t===i.weeks&&r>i.lweek)return null;var a=(t-1)*7-i.fweek+r,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},e.create=function(t,r){var n=[];return t.eachComponent("calendar",function(i){var a=new e(i);n.push(a),i.coordinateSystem=a}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=n[i.get("calendarIndex")||0])}),n},e.dimensions=["time","value"],e}();function D4(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}function Gke(e){e.registerComponentModel(Fke),e.registerComponentView(Vke),e.registerCoordinateSystem("calendar",$ke)}function Hke(e,t){var r=e.existing;if(t.id=e.keyInfo.id,!t.type&&r&&(t.type=r.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:r&&(t.parentId=r.parentId)}t.parentOption=null}function R4(e,t){var r;return V(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function Wke(e,t,r){var n=oe({},r),i=e[t],a=r.$action||"merge";a==="merge"?i?(rt(i,n,!0),Al(i,n,{ignoreSize:!0}),ZH(r,i),S0(r,i),S0(r,i,"shape"),S0(r,i,"style"),S0(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&i&&(e[t]=null)}var a7=["transition","enterFrom","leaveTo"],jke=a7.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function S0(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?a7:jke,i=0;i<n.length;i++){var a=n[i];e[a]==null&&t[a]!=null&&(e[a]=t[a])}}function Uke(e,t){if(e&&(e.hv=t.hv=[R4(t,["left","right"]),R4(t,["top","bottom"])],e.type==="group")){var r=e,n=t;r.width==null&&(r.width=n.width=0),r.height==null&&(r.height=n.height=0)}}var Yke=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventAutoZ=!0,r}return t.prototype.mergeOption=function(r,n){var i=this.option.elements;this.option.elements=null,e.prototype.mergeOption.call(this,r,n),this.option.elements=i},t.prototype.optionUpdated=function(r,n){var i=this.option,a=(n?i:r).elements,o=i.elements=n?[]:i.elements,s=[];this._flatten(a,s,null);var l=UG(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];V(l,function(c,f){var d=c.newOption;d&&(u.push(d),Hke(c,d),Wke(o,f,d),Uke(o[f],d))},this),i.elements=jt(o,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(r,n,i){V(r,function(a){if(a){i&&(a.parentOption=i),n.push(a);var o=a.children;o&&o.length&&this._flatten(o,n,a),delete a.children}},this)},t.prototype.useElOptionsToUpdate=function(){var r=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,r},t.type="graphic",t.defaultOption={elements:[]},t}(xt),E4={path:null,compoundPath:null,group:qe,image:en,text:kt},Wi=Tt(),qke=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this._elMap=Oe()},t.prototype.render=function(r,n,i){r!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=r,this._updateElements(r),this._relocate(r,i)},t.prototype._updateElements=function(r){var n=r.useElOptionsToUpdate();if(n){var i=this._elMap,a=this.group,o=r.get("z"),s=r.get("zlevel");V(n,function(l){var u=Br(l.id,null),c=u!=null?i.get(u):null,f=Br(l.parentId,null),d=f!=null?i.get(f):a,h=l.type,v=l.style;h==="text"&&v&&l.hv&&l.hv[1]&&(v.textVerticalAlign=v.textBaseline=v.verticalAlign=v.align=null);var g=l.textContent,y=l.textConfig;if(v&&F9(v,h,!!y,!!g)){var x=V9(v,h,!0);!y&&x.textConfig&&(y=l.textConfig=x.textConfig),!g&&x.textContent&&(g=x.textContent)}var S=Xke(l),b=l.$action||"merge",w=b==="merge",T=b==="replace";if(w){var C=!c,A=c;C?A=L4(u,d,l.type,i):(A&&(Wi(A).isNew=!1),W9(A)),A&&(X0(A,S,r,{isInit:C}),O4(A,l,o,s))}else if(T){Q0(c,l,i,r);var k=L4(u,d,l.type,i);k&&(X0(k,S,r,{isInit:!0}),O4(k,l,o,s))}else b==="remove"&&(G9(c,l),Q0(c,l,i,r));var I=i.get(u);if(I&&g)if(w){var P=I.getTextContent();P?P.attr(g):I.setTextContent(new kt(g))}else T&&I.setTextContent(new kt(g));if(I){var R=l.clipPath;if(R){var L=R.type,O=void 0,C=!1;if(w){var z=I.getClipPath();C=!z||Wi(z).type!==L,O=C?WA(L):z}else T&&(C=!0,O=WA(L));I.setClipPath(O),X0(O,R,r,{isInit:C}),tx(O,R.keyframeAnimation,r)}var F=Wi(I);I.setTextConfig(y),F.option=l,Zke(I,r,l),zd({el:I,componentModel:r,itemName:I.name,itemTooltipOption:l.tooltip}),tx(I,l.keyframeAnimation,r)}})}},t.prototype._relocate=function(r,n){for(var i=r.option.elements,a=this.group,o=this._elMap,s=n.getWidth(),l=n.getHeight(),u=["x","y"],c=0;c<i.length;c++){var f=i[c],d=Br(f.id,null),h=d!=null?o.get(d):null;if(!(!h||!h.isGroup)){var v=h.parent,g=v===a,y=Wi(h),x=Wi(v);y.width=xe(y.option.width,g?s:x.width)||0,y.height=xe(y.option.height,g?l:x.height)||0}}for(var c=i.length-1;c>=0;c--){var f=i[c],d=Br(f.id,null),h=d!=null?o.get(d):null;if(h){var v=h.parent,x=Wi(v),S=v===a?{width:s,height:l}:{width:x.width,height:x.height},b={},w=yS(h,f,S,null,{hv:f.hv,boundingMode:f.bounding},b);if(!Wi(h).isNew&&w){for(var T=f.transition,C={},A=0;A<u.length;A++){var k=u[A],I=b[k];T&&(lc(T)||ft(T,k)>=0)?C[k]=I:h[k]=I}Lt(h,C,r,0)}else h.attr(b)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){Q0(i,Wi(i).option,n,r._lastGraphicModel)}),this._elMap=Oe()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(dr);function WA(e){var t=Pe(E4,e)?E4[e]:qk(e),r=new t({});return Wi(r).type=e,r}function L4(e,t,r,n){var i=WA(r);return t.add(i),n.set(e,i),Wi(i).id=e,Wi(i).isNew=!0,i}function Q0(e,t,r,n){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(a){Q0(a,t,r,n)}),LS(e,t,n),r.removeKey(Wi(e).id))}function O4(e,t,r,n){e.isGroup||V([["cursor",ia.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];Pe(t,a)?e[a]=Qe(t[a],i[1]):e[a]==null&&(e[a]=i[1])}),V(St(t),function(i){if(i.indexOf("on")===0){var a=t[i];e[i]=Be(a)?a:null}}),Pe(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function Xke(e){return e=oe({},e),V(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(XH),function(t){delete e[t]}),e}function Zke(e,t,r){var n=Ze(e).eventData;!e.silent&&!e.ignore&&!n&&(n=Ze(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function Kke(e){e.registerComponentModel(Yke),e.registerComponentView(qke),e.registerPreprocessor(function(t){var r=t.graphic;ue(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var N4=["x","y","radius","angle","single"],Qke=["cartesian2d","polar","singleAxis"];function Jke(e){var t=e.get("coordinateSystem");return ft(Qke,t)>=0}function hl(e){return e+"Axis"}function eIe(e,t){var r=Oe(),n=[],i=Oe();e.eachComponent({mainType:"dataZoom",query:t},function(c){i.get(c.uid)||s(c)});var a;do a=!1,e.eachComponent("dataZoom",o);while(a);function o(c){!i.get(c.uid)&&l(c)&&(s(c),a=!0)}function s(c){i.set(c.uid,!0),n.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,h){var v=r.get(d);v&&v[h]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(r.get(f)||r.set(f,[]))[d]=!0})}return n}function o7(e){var t=e.ecModel,r={infoList:[],infoMap:Oe()};return e.eachTargetAxis(function(n,i){var a=t.getComponent(hl(n),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(a)}}}),r}var gT=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),lg=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,i){var a=z4(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},t.prototype.mergeOption=function(r){var n=z4(r);rt(this.option,r,!0),rt(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var i=this.settledOption;V([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=Oe(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return V(N4,function(i){var a=this.getReferringComponents(hl(i),Wve);if(a.specified){n=!0;var o=new gT;V(a.models,function(s){o.add(s.componentIndex)}),r.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var i=this.ecModel,a=!0;if(a){var o=n==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){var s=i.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===n}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new gT;if(d.add(f.componentIndex),r.set(c,d),a=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",Rr).models[0];h&&V(u,function(v){f.componentIndex!==v.componentIndex&&h===v.getReferringComponents("grid",Rr).models[0]&&d.add(v.componentIndex)})}}}a&&V(N4,function(u){if(a){var c=i.findComponents({mainType:hl(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new gT;f.add(c[0].componentIndex),r.set(u,f),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(r){var n=this._rangePropMode,i=this.get("rangeMode");V([["start","startValue"],["end","endValue"]],function(a,o){var s=r[a[0]]!=null,l=r[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,i){r==null&&(r=this.ecModel.getComponent(hl(n),i))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){V(i.indexList,function(o){r.call(n,a,o)})})},t.prototype.getAxisProxy=function(r,n){var i=this.getAxisModel(r,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(r,n){var i=this._targetAxisInfoMap.get(r);if(i&&i.indexMap[n])return this.ecModel.getComponent(hl(r),n)},t.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;V([["start","startValue"],["end","endValue"]],function(a){(r[a[0]]!=null||r[a[1]]!=null)&&(n[a[0]]=i[a[0]]=r[a[0]],n[a[1]]=i[a[1]]=r[a[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;V(["start","startValue","end","endValue"],function(i){n[i]=r[i]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;a<i.length;a++)for(var o=i[a],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,s.indexList[l]);if(u.hostedBy(this))return u;n||(n=u)}return n},t.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},t.prototype.getOrient=function(){return this._orient},t.type="dataZoom",t.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],t.defaultOption={z:4,filterMode:"filter",start:0,end:100},t}(xt);function z4(e){var t={};return V(["start","end","startValue","endValue","throttle"],function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var tIe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.select",t}(lg),vP=function(e){J(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,a){this.dataZoomModel=r,this.ecModel=n,this.api=i},t.type="dataZoom",t}(dr),rIe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.select",t}(vP),Bf=V,B4=Qi,nIe=function(){function e(t,r,n,i){this._dimName=t,this._axisIndex=r,this.ecModel=i,this._dataZoomModel=n}return e.prototype.hostedBy=function(t){return this._dataZoomModel===t},e.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},e.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},e.prototype.getTargetSeriesModels=function(){var t=[];return this.ecModel.eachSeries(function(r){if(Jke(r)){var n=hl(this._dimName),i=r.getReferringComponents(n,Rr).models[0];i&&this._axisIndex===i.componentIndex&&t.push(r)}},this),t},e.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},e.prototype.getMinMaxSpan=function(){return We(this._minMaxSpan)},e.prototype.calculateDataWindow=function(t){var r=this._dataExtent,n=this.getAxisModel(),i=n.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;Bf(["start","end"],function(d,h){var v=t[d],g=t[d+"Value"];a[h]==="percent"?(v==null&&(v=o[h]),g=i.parse($t(v,o,r))):(u=!0,g=g==null?r[h]:i.parse(g),v=$t(g,r,o)),l[h]=g==null||isNaN(g)?r[h]:g,s[h]=v==null||isNaN(v)?o[h]:v}),B4(l),B4(s);var c=this._minMaxSpan;u?f(l,s,r,o,!1):f(s,l,o,r,!0);function f(d,h,v,g,y){var x=y?"Span":"ValueSpan";Ec(0,d,v,"all",c["min"+x],c["max"+x]);for(var S=0;S<2;S++)h[S]=$t(d[S],v,g,!0),y&&(h[S]=i.parse(h[S]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=iIe(this,this._dimName,r),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},e.prototype.filterData=function(t,r){if(t!==this._dataZoomModel)return;var n=this._dimName,i=this.getTargetSeriesModels(),a=t.get("filterMode"),o=this._valueWindow;if(a==="none")return;Bf(i,function(l){var u=l.getData(),c=u.mapDimensionsAll(n);if(c.length){if(a==="weakFilter"){var f=u.getStore(),d=de(c,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var v,g,y,x=0;x<c.length;x++){var S=f.get(d[x],h),b=!isNaN(S),w=S<o[0],T=S>o[1];if(b&&!w&&!T)return!0;b&&(y=!0),w&&(v=!0),T&&(g=!0)}return y&&v&&g})}else Bf(c,function(h){if(a==="empty")l.setData(u=u.map(h,function(g){return s(g)?g:NaN}));else{var v={};v[h]=o,u.selectRange(v)}});Bf(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;Bf(["min","max"],function(i){var a=r.get(i+"Span"),o=r.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=$t(n[0]+o,n,[0,100],!0):a!=null&&(o=$t(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var i=BG(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;r[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),r[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},e}();function iIe(e,t,r){var n=[1/0,-1/0];Bf(r,function(o){zxe(n,o.getData(),t)});var i=e.getAxisModel(),a=Cj(i.axis.scale,i,n).calculate();return[a.min,a.max]}var aIe={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=e.getComponent(hl(o),s);i(o,s,l,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var r=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new nIe(i,a,s,e),r.push(o.__dzAxisProxy))});var n=Oe();return V(r,function(i){V(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).reset(r)}),r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();r.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};function oIe(e){e.registerAction("dataZoom",function(t,r){var n=eIe(r,t);V(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var F4=!1;function gP(e){F4||(F4=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,aIe),oIe(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function sIe(e){e.registerComponentModel(tIe),e.registerComponentView(rIe),gP(e)}var Xi=function(){function e(){}return e}(),s7={};function Ff(e,t){s7[e]=t}function l7(e){return s7[e]}var lIe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;V(this.option.feature,function(n,i){var a=l7(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(r)),rt(n,a.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},t}(xt);function uIe(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=Fr(n,a,i);oc(t.get("orient"),e,t.get("itemGap"),o.width,o.height),yS(e,n,a,i)}function u7(e,t){var r=Vd(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Ct({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 cIe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},c=this._features||(this._features={}),f=[];V(u,function(v,g){f.push(g)}),new fs(this._featureNames||[],f).add(d).update(d).remove(Je(d,null)).execute(),this._featureNames=f;function d(v,g){var y=f[v],x=f[g],S=u[y],b=new Ft(S,r,r.ecModel),w;if(a&&a.newTitle!=null&&a.featureName===y&&(S.title=a.newTitle),y&&!x){if(fIe(y))w={onclick:b.option.onclick,featureName:y};else{var T=l7(y);if(!T)return;w=new T}c[y]=w}else if(w=c[x],!w)return;w.uid=Fd("toolbox-feature"),w.model=b,w.ecModel=n,w.api=i;var C=w instanceof Xi;if(!y&&x){C&&w.dispose&&w.dispose(n,i);return}if(!b.get("show")||C&&w.unusable){C&&w.remove&&w.remove(n,i);return}h(b,w,y),b.setIconStatus=function(A,k){var I=this.option,P=this.iconPaths;I.iconStatus=I.iconStatus||{},I.iconStatus[A]=k,P[A]&&(k==="emphasis"?us:cs)(P[A])},w instanceof Xi&&w.render&&w.render(b,n,i,a)}function h(v,g,y){var x=v.getModel("iconStyle"),S=v.getModel(["emphasis","iconStyle"]),b=g instanceof Xi&&g.getIcons?g.getIcons():v.get("icon"),w=v.get("title")||{},T,C;we(b)?(T={},T[y]=b):T=b,we(w)?(C={},C[y]=w):C=w;var A=v.iconPaths={};V(T,function(k,I){var P=Lg(k,{},{x:-s/2,y:-s/2,width:s,height:s});P.setStyle(x.getItemStyle());var R=P.ensureState("emphasis");R.style=S.getItemStyle();var L=new kt({style:{text:C[I],align:S.get("textAlign"),borderRadius:S.get("textBorderRadius"),padding:S.get("textPadding"),fill:null,font:Xk({fontStyle:S.get("textFontStyle"),fontFamily:S.get("textFontFamily"),fontSize:S.get("textFontSize"),fontWeight:S.get("textFontWeight")},n)},ignore:!0});P.setTextContent(L),zd({el:P,componentModel:r,itemName:I,formatterParamsExtra:{title:C[I]}}),P.__title=C[I],P.on("mouseover",function(){var O=S.getItemStyle(),z=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";L.setStyle({fill:S.get("textFill")||O.fill||O.stroke||"#000",backgroundColor:S.get("textBackgroundColor")}),P.setTextConfig({position:S.get("textPosition")||z}),L.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",I])!=="emphasis"&&i.leaveEmphasis(this),L.hide()}),(v.get(["iconStatus",I])==="emphasis"?us:cs)(P),o.add(P),P.on("click",Ae(g.onclick,g,n,i,I)),A[I]=P})}uIe(o,r,i),o.add(u7(o.getBoundingRect(),r)),l||o.eachChild(function(v){var g=v.__title,y=v.ensureState("emphasis"),x=y.textConfig||(y.textConfig={}),S=v.getTextContent(),b=S&&S.ensureState("emphasis");if(b&&!Be(b)&&g){var w=b.style||(b.style={}),T=Mg(g,kt.makeFont(w)),C=v.x+o.x,A=v.y+o.y+s,k=!1;A+T.height>i.getHeight()&&(x.position="top",k=!0);var I=k?-5-T.height:s+10;C+T.width/2>i.getWidth()?(x.position=["100%",I],w.align="right"):C-T.width/2<0&&(x.position=[0,I],w.align="left")}})},t.prototype.updateView=function(r,n,i,a){V(this._features,function(o){o instanceof Xi&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(r,n){V(this._features,function(i){i instanceof Xi&&i.remove&&i.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){V(this._features,function(i){i instanceof Xi&&i.dispose&&i.dispose(r,n)})},t.type="toolbox",t}(dr);function fIe(e){return e.indexOf("my")===0}var dIe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){var i=this.model,a=i.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=yt.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=a+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||o){var d=l.split(","),h=d[0].indexOf("base64")>-1,v=o?decodeURIComponent(d[1]):d[1];h&&(v=window.atob(v));var g=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var y=v.length,x=new Uint8Array(y);y--;)x[y]=v.charCodeAt(y);var S=new Blob([x]);window.navigator.msSaveOrOpenBlob(S,g)}else{var b=document.createElement("iframe");document.body.appendChild(b);var w=b.contentWindow,T=w.document;T.open("image/svg+xml","replace"),T.write(v),T.close(),w.focus(),T.execCommand("SaveAs",!0,g),document.body.removeChild(b)}}else{var C=i.get("lang"),A='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(C&&C[0]||"")+'" /></body>',k=window.open();k.document.write(A),k.document.title=a}},t.getDefaultOption=function(r){var n={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(Xi),V4="__ec_magicType_stack__",hIe=[["line","bar"],["stack"]],pIe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),i={};return V(r.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},t.getDefaultOption=function(r){var n={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(r,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if($4[i]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,v=$4[i](d,h,f,a);v&&(Ve(v,f.option),s.series.push(v));var g=f.coordinateSystem;if(g&&g.type==="cartesian2d"&&(i==="line"||i==="bar")){var y=g.getAxesByScale("ordinal")[0];if(y){var x=y.dim,S=x+"Axis",b=f.getReferringComponents(S,Rr).models[0],w=b.componentIndex;s[S]=s[S]||[];for(var T=0;T<=w;T++)s[S][w]=s[S][w]||{};s[S][w].boundaryGap=i==="bar"}}};V(hIe,function(f){ft(f,i)>=0&&V(f,function(d){a.setIconStatus(d,"normal")})}),a.setIconStatus(i,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=i;i==="stack"&&(u=rt({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(Xi),$4={line:function(e,t,r,n){if(e==="bar")return rt({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(e,t,r,n){if(e==="line")return rt({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(e,t,r,n){var i=r.get("stack")===V4;if(e==="line"||e==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),rt({id:t,stack:i?"":V4},n.get(["option","stack"])||{},!0)}};Ro({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var OS=new Array(60).join("-"),Ad=" ";function vIe(e){var t={},r=[],n=[];return e.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else r.push(i)}else r.push(i)}),{seriesGroupByCategoryAxis:t,other:r,meta:n}}function gIe(e){var t=[];return V(e,function(r,n){var i=r.categoryAxis,a=r.valueAxis,o=a.dim,s=[" "].concat(de(r.series,function(h){return h.name})),l=[i.model.getCategories()];V(r.series,function(h){var v=h.getRawData();l.push(h.getRawData().mapArray(v.mapDimension(o),function(g){return g}))});for(var u=[s.join(Ad)],c=0;c<l[0].length;c++){for(var f=[],d=0;d<l.length;d++)f.push(l[d][c]);u.push(f.join(Ad))}t.push(u.join(`
|
194
|
-
`))}),t.join(`
|
195
|
-
|
196
|
-
`+OS+`
|
197
|
-
|
198
|
-
`)}function mIe(e){return de(e,function(t){var r=t.getRawData(),n=[t.name],i=[];return r.each(r.dimensions,function(){for(var a=arguments.length,o=arguments[a-1],s=r.getName(o),l=0;l<a-1;l++)i[l]=arguments[l];n.push((s?s+Ad:"")+i.join(Ad))}),n.join(`
|
199
|
-
`)}).join(`
|
200
|
-
|
201
|
-
`+OS+`
|
202
|
-
|
203
|
-
`)}function yIe(e){var t=vIe(e);return{value:jt([gIe(t.seriesGroupByCategoryAxis),mIe(t.other)],function(r){return!!r.replace(/[\n\t\s]/g,"")}).join(`
|
204
|
-
|
205
|
-
`+OS+`
|
206
|
-
|
207
|
-
`),meta:t.meta}}function ix(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function xIe(e){var t=e.slice(0,e.indexOf(`
|
208
|
-
`));if(t.indexOf(Ad)>=0)return!0}var jA=new RegExp("["+Ad+"]+","g");function SIe(e){for(var t=e.split(/\n+/g),r=ix(t.shift()).split(jA),n=[],i=de(r,function(l){return{name:l,data:[]}}),a=0;a<t.length;a++){var o=ix(t[a]).split(jA);n.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:n}}function bIe(e){for(var t=e.split(/\n+/g),r=ix(t.shift()),n=[],i=0;i<t.length;i++){var a=ix(t[i]);if(a){var o=a.split(jA),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),n[i]={name:s,value:[]},l=n[i].value):l=n[i]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?n[i].value=l[0]:n[i]=l[0])}}return{name:r,data:n}}function _Ie(e,t){var r=e.split(new RegExp(`
|
209
|
-
*`+OS+`
|
210
|
-
*`,"g")),n={series:[]};return V(r,function(i,a){if(xIe(i)){var o=SIe(i),s=t[a],l=s.axisDim+"Axis";s&&(n[l]=n[l]||[],n[l][s.axisIndex]={data:o.categories},n.series=n.series.concat(o.series))}else{var o=bIe(i);n.series.push(o)}}),n}var wIe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){setTimeout(function(){n.dispatchAction({type:"hideTip"})});var i=n.getDom(),a=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=a.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=a.get("optionToContent"),d=a.get("contentToOption"),h=yIe(r);if(Be(f)){var v=f(n.getOption());we(v)?u.innerHTML=v:gd(v)&&u.appendChild(v)}else{c.readOnly=a.get("readOnly");var g=c.style;g.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",g.color=a.get("textColor"),g.borderColor=a.get("textareaBorderColor"),g.backgroundColor=a.get("textareaColor"),c.value=h.value,u.appendChild(c)}var y=h.meta,x=document.createElement("div");x.style.cssText="position:absolute;bottom:5px;left:0;right:0";var S="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",b=document.createElement("div"),w=document.createElement("div");S+=";background-color:"+a.get("buttonColor"),S+=";color:"+a.get("buttonTextColor");var T=this;function C(){i.removeChild(o),T._dom=null}_2(b,"click",C),_2(w,"click",function(){if(d==null&&f!=null||d!=null&&f==null){C();return}var A;try{Be(d)?A=d(u,n.getOption()):A=_Ie(c.value,y)}catch(k){throw C(),new Error("Data view format error "+k)}A&&n.dispatchAction({type:"changeDataView",newOption:A}),C()}),b.innerHTML=l[1],w.innerHTML=l[2],w.style.cssText=b.style.cssText=S,!a.get("readOnly")&&x.appendChild(w),x.appendChild(b),o.appendChild(s),o.appendChild(u),o.appendChild(x),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},t.prototype.remove=function(r,n){this._dom&&n.getDom().removeChild(this._dom)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.getDefaultOption=function(r){var n={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:r.getLocaleModel().get(["toolbox","dataView","title"]),lang:r.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return n},t}(Xi);function CIe(e,t){return de(e,function(r,n){var i=t&&t[n];if(Ge(i)&&!ue(i)){var a=Ge(r)&&!ue(r);a||(r={value:r});var o=i.name!=null&&r.name==null;return r=Ve(r,i),o&&delete r.name,r}else return r})}Ro({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var r=[];V(e.newOption.series,function(n){var i=t.getSeriesByName(n.name)[0];if(!i)r.push(oe({type:"scatter"},n));else{var a=i.get("data");r.push({name:n.name,data:CIe(n.data,a)})}}),t.mergeOption(Ve({series:r},e.newOption))});var c7=V,f7=Tt();function TIe(e,t){var r=mP(e);c7(t,function(n,i){for(var a=r.length-1;a>=0;a--){var o=r[a];if(o[i])break}if(a<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();r[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),r.push(t)}function AIe(e){var t=mP(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return c7(r,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function MIe(e){f7(e).snapshots=null}function kIe(e){return mP(e).length}function mP(e){var t=f7(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var IIe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){MIe(r),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(r){var n={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:r.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(Xi);Ro({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var PIe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],yP=function(){function e(t,r,n){var i=this;this._targetInfoList=[];var a=G4(r,t);V(DIe,function(o,s){(!n||!n.include||ft(n.include,s)>=0)&&o(a,i._targetInfoList)})}return e.prototype.setOutputRanges=function(t,r){return this.matchOutputRanges(t,r,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=mT[n.brushType](0,a,i);n.__rangeOffset={offset:U4[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){V(t,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&V(a.coordSyses,function(o){var s=mT[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){V(t,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=mT[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?U4[n.brushType](a.values,o.offset,RIe(a.xyMinMax,o.xyMinMax)):a.values}},this)},e.prototype.makePanelOpts=function(t,r){return de(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:x9(i),isTargetByCursor:b9(i,t,n.coordSysModel),getLinearBrushOtherExtent:S9(i)}})},e.prototype.controlSeries=function(t,r,n){var i=this.findTargetInfo(t,n);return i===!0||i&&ft(i.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,i=G4(r,t),a=0;a<n.length;a++){var o=n[a],s=t.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<H4.length;l++)if(H4[l](i,o))return o}return!0},e}();function UA(e){return e[0]>e[1]&&e.reverse(),e}function G4(e,t){return fv(e,t,{includeMainTypes:PIe})}var DIe={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,a=Oe(),o={},s={};!r&&!n&&!i||(V(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),V(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),V(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,c=[];V(u.getCartesians(),function(f,d){(ft(r,f.getAxis("x").model)>=0||ft(n,f.getAxis("y").model)>=0)&&c.push(f)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:W4.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){V(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:W4.geo})})}},H4=[function(e,t){var r=e.xAxisModel,n=e.yAxisModel,i=e.gridModel;return!i&&r&&(i=r.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],W4={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(ac(e)),t}},mT={lineX:Je(j4,0),lineY:Je(j4,1),rect:function(e,t,r,n){var i=e?t.pointToData([r[0][0],r[1][0]],n):t.dataToPoint([r[0][0],r[1][0]],n),a=e?t.pointToData([r[0][1],r[1][1]],n):t.dataToPoint([r[0][1],r[1][1]],n),o=[UA([i[0],a[0]]),UA([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,r,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=de(r,function(o){var s=e?t.pointToData(o,n):t.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:a,xyMinMax:i}}};function j4(e,t,r,n){var i=r.getAxis(["x","y"][e]),a=UA(de([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var U4={lineX:Je(Y4,0),lineY:Je(Y4,1),rect:function(e,t,r){return[[e[0][0]-r[0]*t[0][0],e[0][1]-r[0]*t[0][1]],[e[1][0]-r[1]*t[1][0],e[1][1]-r[1]*t[1][1]]]},polygon:function(e,t,r){return de(e,function(n,i){return[n[0]-r[0]*t[i][0],n[1]-r[1]*t[i][1]]})}};function Y4(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function RIe(e,t){var r=q4(e),n=q4(t),i=[r[0]/n[0],r[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function q4(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var YA=V,EIe=Fve("toolbox-dataZoom_"),LIe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){this._brushController||(this._brushController=new YI(i.getZr()),this._brushController.on("brush",Ae(this._onBrush,this)).mount()),zIe(r,n,this,a,i),NIe(r,n)},t.prototype.onclick=function(r,n,i){OIe[i].call(this)},t.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new yP(xP(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(u,c,f){if(f.type==="cartesian2d"){var d=u.brushType;d==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[d],f,c)}}),TIe(a,i),this._dispatchZoomAction(i);function s(u,c,f){var d=c.getAxis(u),h=d.model,v=l(u,h,a),g=v.findRepresentativeAxisProxy(h).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(f=Ec(0,f.slice(),d.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),v&&(i[v.id]={dataZoomId:v.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var v=h.getAxisModel(u,c.componentIndex);v&&(d=h)}),d}},t.prototype._dispatchZoomAction=function(r){var n=[];YA(r,function(i,a){n.push(We(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(r){var n={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(Xi),OIe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(AIe(this.ecModel))}};function xP(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function NIe(e,t){e.setIconStatus("back",kIe(t)>1?"emphasis":"normal")}function zIe(e,t,r,n,i){var a=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var o=new yP(xP(e),t,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}cye("dataZoom",function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(!t||t.get(r)==null)return;var n=t.getModel(r),i=[],a=xP(n),o=fv(e,a);YA(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),YA(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:EIe+u+f};d[c]=f,i.push(d)}return i});function BIe(e){e.registerComponentModel(lIe),e.registerComponentView(cIe),Ff("saveAsImage",dIe),Ff("magicType",pIe),Ff("dataView",wIe),Ff("dataZoom",LIe),Ff("restore",IIe),pt(sIe)}var FIe=function(e){J(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}(xt);function d7(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function h7(e){if(yt.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var p7=h7(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),VIe=h7(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function v7(e,t){if(!e)return t;t=YH(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function $Ie(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var GIe=v7(VIe,"transition"),SP=v7(p7,"transform"),HIe="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(yt.transform3dSupported?"will-change:transform;":"");function WIe(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function jIe(e,t,r){if(!we(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=Sc(t);var a=WIe(r),o=Math.max(Math.round(i)*1.5,6),s="",l=SP+":",u;ft(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+i,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/2)*100)/100;s+=";"+a+":-"+h+"px";var v=t+" solid "+i+"px;",g=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+v,"border-right:"+v,"background-color:"+n+";"];return'<div style="'+g.join("")+'"></div>'}function UIe(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+=yt.transformSupported?","+SP+n:",left"+n+",top"+n),GIe+":"+i}function X4(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!yt.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=yt.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+SP+":"+o+";":[["top",0],["left",0],[p7,o]]}function YIe(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"),a=e.get("textShadowBlur")||0,o=e.get("textShadowOffsetX")||0,s=e.get("textShadowOffsetY")||0;return i&&a&&t.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),V(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function qIe(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),f=MW(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&i&&n.push(UIe(i,r)),a&&n.push("background-color:"+a),V(["width","color","radius"],function(h){var v="border-"+h,g=YH(v),y=e.get(g);y!=null&&n.push(v+":"+y+(h==="color"?"":"px"))}),n.push(YIe(c)),f!=null&&n.push("padding:"+Vd(f).join("px ")+"px"),n.join(";")+";"}function Z4(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&ppe(e,o,r,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var XIe=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,yt.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=r.appendTo,o=a&&(we(a)?document.querySelector(a):gd(a)?a:Be(a)&&a(t.getDom()));Z4(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;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 u=i.handler,c=i.painter.getViewportRoot();$i(c,l,!0),u.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=$Ie(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,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,a=this._styleCoord;n.innerHTML?i.cssText=HIe+qIe(t,!this._firstShow,this._longHide)+X4(a[0],a[1],!0)+("border-color:"+Sc(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,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(we(a)&&n.get("trigger")==="item"&&!d7(n)&&(s=jIe(n,i,a)),we(t))o.innerHTML=t+s;else if(t){o.innerHTML="",ue(t)||(t=[t]);for(var l=0;l<t.length;l++)gd(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},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(Z4(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=X4(n[0],n[1]);V(a,function(o){i[o[0]]=o[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",yt.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(Ae(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}(),ZIe=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Q4(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,a){var o=this;Ge(t)&&zt(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new kt({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:MW(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),V(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),V(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.el.style[u]=s.get(u)||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=K4(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;Q4(i,this._zr,t,r),t=i[0],r=i[1];var a=n.style,o=Js(a.borderWidth||0),s=K4(a);n.x=t+o+s.left,n.y=r+o+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(Ae(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Js(e){return Math.max(0,e)}function K4(e){var t=Js(e.shadowBlur||0),r=Js(e.shadowOffsetX||0),n=Js(e.shadowOffsetY||0);return{left:Js(t-r),right:Js(t+r),top:Js(t-n),bottom:Js(t+n)}}function Q4(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var KIe=new Ct({shape:{x:-1,y:-1,width:2,height:2}}),QIe=function(e){J(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(!(yt.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=Uve(i.get("renderMode"));this._tooltipContent=a==="richText"?new ZIe(n):new XIe(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(r,n,i){if(!(yt.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=r,this._ecModel=n,this._api=i;var a=this._tooltipContent;a.update(r),a.setEnterable(r.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&r.get("transitionDuration")?Wd(this,"_updatePosition",50,"fixRate"):Xv(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");J9("itemTooltip",this._api,Ae(function(i,a,o){n!=="none"&&(n.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||yt.node||!i.getDom())){var o=J4(a,i);this._ticket="";var s=a.dataByCoordSys,l=rPe(a,n,i);if(l){var u=l.el.getBoundingRect().clone();u.applyTransform(l.el.transform),this._tryShow({offsetX:u.x+u.width/2,offsetY:u.y+u.height/2,target:l.el,position:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=KIe;c.x=a.x,c.y=a.y,c.update(),Ze(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(r,n,i,a))return;var f=e7(a,n),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},t.prototype.manuallyHideTip=function(r,n,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(J4(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),f=Cp([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=Ze(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Xu(i,function(c){if(Ze(c).dataIndex!=null)return l=c,!0;if(Ze(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=Ae(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=Cp([n.tooltipOption],a),l=this._renderMode,u=[],c=Yr("section",{blocks:[],noHeader:!0}),f=[],d=new rC;V(r,function(S){V(S.dataByAxis,function(b){var w=i.getComponent(b.axisDim+"Axis",b.axisIndex),T=b.value;if(!(!w||T==null)){var C=Z9(T,w.axis,i,b.seriesDataIndices,b.valueLabelOpt),A=Yr("section",{header:C,noHeader:!Aa(C),sortBlocks:!0,blocks:[]});c.blocks.push(A),V(b.seriesDataIndices,function(k){var I=i.getSeriesByIndex(k.seriesIndex),P=k.dataIndexInside,R=I.getDataParams(P);if(!(R.dataIndex<0)){R.axisDim=b.axisDim,R.axisIndex=b.axisIndex,R.axisType=b.axisType,R.axisId=b.axisId,R.axisValue=bI(w.axis,{value:T}),R.axisValueLabel=C,R.marker=d.makeTooltipMarker("item",Sc(R.color),l);var L=V5(I.formatTooltip(P,!0,null)),O=L.frag;if(O){var z=Cp([I],a).get("valueFormatter");A.blocks.push(z?oe({valueFormatter:z},O):O)}L.text&&f.push(L.text),u.push(R)}})}})}),c.blocks.reverse(),f.reverse();var h=n.position,v=s.get("order"),g=U5(c,d,l,v,i.get("useUTC"),s.get("textStyle"));g&&f.unshift(g);var y=l==="richText"?`
|
211
|
-
|
212
|
-
`:"<br/>",x=f.join(y);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,x,u,Math.random()+"",o[0],o[1],h,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=Ze(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),h=this._renderMode,v=r.positionDefault,g=Cp([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),y=g.get("trigger");if(!(y!=null&&y!=="item")){var x=u.getDataParams(c,f),S=new rC;x.marker=S.makeTooltipMarker("item",Sc(x.color),h);var b=V5(u.formatTooltip(c,!1,f)),w=g.get("order"),T=g.get("valueFormatter"),C=b.frag,A=C?U5(T?oe({valueFormatter:T},C):C,S,h,w,a.get("useUTC"),g.get("textStyle")):b.text,k="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,A,x,k,r.offsetX,r.offsetY,r.position,r.target,S)}),i({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=Ze(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(we(l)){var c=l;l={content:c,formatter:c},u=!0}u&&a&&l.content&&(l=We(l),l.content=Jn(l.content));var f=[l],d=this._ecModel.getComponent(o.componentMainType,o.componentIndex);d&&f.push(d),f.push({formatter:l.content});var h=r.positionDefault,v=Cp(f,this._tooltipModel,h?{position:h}:null),g=v.get("content"),y=Math.random()+"",x=new rC;this._showOrMove(v,function(){var S=We(v.get("formatterParams")||{});this._showTooltipContent(v,g,S,y,r.offsetX,r.offsetY,r.position,n,x)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var f=this._tooltipContent;f.setEnterable(r.get("enterable"));var d=r.get("formatter");l=l||r.get("position");var h=n,v=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),g=v.color;if(d)if(we(d)){var y=r.ecModel.get("useUTC"),x=ue(i)?i[0]:i,S=x&&x.axisType&&x.axisType.indexOf("time")>=0;h=d,S&&(h=hS(x.axisValue,h,y)),h=qH(h,i,!0)}else if(Be(d)){var b=Ae(function(w,T){w===this._ticket&&(f.setContent(T,c,r,g,l),this._updatePosition(r,l,o,s,f,i,u))},this);this._ticket=a,h=d(i,a,b)}else h=d;f.setContent(h,c,r,g,l),f.show(r,g),this._updatePosition(r,l,o,s,f,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||ue(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!ue(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var f=o.getSize(),d=r.get("align"),h=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Be(n)&&(n=n([i,a],s,o.el,v,{viewSize:[u,c],contentSize:f.slice()})),ue(n))i=xe(n[0],u),a=xe(n[1],c);else if(Ge(n)){var g=n;g.width=f[0],g.height=f[1];var y=Fr(g,{width:u,height:c});i=y.x,a=y.y,d=null,h=null}else if(we(n)&&l){var x=tPe(n,v,f,r.get("borderWidth"));i=x[0],a=x[1]}else{var x=JIe(i,a,o,u,c,d?null:20,h?null:20);i=x[0],a=x[1]}if(d&&(i-=eF(d)?f[0]/2:d==="right"?f[0]:0),h&&(a-=eF(h)?f[1]/2:h==="bottom"?f[1]:0),d7(r)){var x=ePe(i,a,o,u,c);i=x[0],a=x[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&V(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&V(u,function(d,h){var v=f[h]||{},g=d.seriesDataIndices||[],y=v.seriesDataIndices||[];o=o&&d.value===v.value&&d.axisType===v.axisType&&d.axisId===v.axisId&&g.length===y.length,o&&V(g,function(x,S){var b=y[S];o=o&&x.seriesIndex===b.seriesIndex&&x.dataIndex===b.dataIndex}),a&&V(d.seriesDataIndices,function(x){var S=x.seriesIndex,b=n[S],w=a[S];b&&w&&w.data!==b.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){yt.node||!n.getDom()||(Xv(this,"_updatePosition"),this._tooltipContent.dispose(),GA("itemTooltip",n))},t.type="tooltip",t}(dr);function Cp(e,t,r){var n=t.ecModel,i;r?(i=new Ft(r,n,n),i=new Ft(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Ft&&(o=o.get("tooltip",!0)),we(o)&&(o={formatter:o}),o&&(i=new Ft(o,i,n)))}return i}function J4(e,t){return e.dispatchAction||Ae(t.dispatchAction,t)}function JIe(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function ePe(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function tPe(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+o;break;case"left":s=t.x-i-o,l=t.y+c/2-a/2;break;case"right":s=t.x+u+o,l=t.y+c/2-a/2}return[s,l]}function eF(e){return e==="center"||e==="middle"}function rPe(e,t,r){var n=Nk(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=kg(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=Ze(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function nPe(e){pt(Yg),e.registerComponentModel(FIe),e.registerComponentView(QIe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Mr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Mr)}var iPe=["rect","polygon","keep","clear"];function aPe(e,t){var r=Yt(e?e.brush:[]);if(r.length){var n=[];V(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=e&&e.toolbox;ue(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),oPe(s),t&&!s.length&&s.push.apply(s,iPe)}}function oPe(e){var t={};V(e,function(r){t[r]=1}),e.length=0,V(t,function(r,n){e.push(n)})}var tF=V;function rF(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function qA(e,t,r){var n={};return tF(t,function(a){var o=n[a]=i();tF(e[a],function(s,l){if(jr.isValidType(l)){var u={type:l,visual:s};r&&r(u,a),o[l]=new jr(u),l==="opacity"&&(u=We(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new jr(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function g7(e,t,r){var n;V(r,function(i){t.hasOwnProperty(i)&&rF(t[i])&&(n=!0)}),n&&V(r,function(i){t.hasOwnProperty(i)&&rF(t[i])?e[i]=We(t[i]):delete e[i]})}function sPe(e,t,r,n,i,a){var o={};V(e,function(f){var d=jr.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return fI(r,s,f)}function u(f,d){zW(r,s,f,d)}r.each(c);function c(f,d){s=f;var h=r.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var v=n.call(i,f),g=t[v],y=o[v],x=0,S=y.length;x<S;x++){var b=y[x];g[b]&&g[b].applyVisual(f,l,u)}}}function lPe(e,t,r,n){var i={};return V(e,function(a){var o=jr.prepareVisualTypes(t[a]);i[a]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(T){return fI(s,f,T)}function c(T,C){zW(s,f,T,C)}for(var f,d=s.getStore();(f=o.next())!=null;){var h=s.getRawDataItem(f);if(!(h&&h.visualMap===!1))for(var v=n!=null?d.get(l,f):f,g=r(v),y=t[g],x=i[g],S=0,b=x.length;S<b;S++){var w=x[S];y[w]&&y[w].applyVisual(v,u,c)}}}}}function uPe(e){var t=e.brushType,r={point:function(n){return nF[t].point(n,r,e)},rect:function(n){return nF[t].rect(n,r,e)}};return r}var nF={lineX:iF(0),lineY:iF(1),rect:{point:function(e,t,r){return e&&r.boundingRect.contain(e[0],e[1])},rect:function(e,t,r){return e&&r.boundingRect.intersect(e)}},polygon:{point:function(e,t,r){return e&&r.boundingRect.contain(e[0],e[1])&&Bu(r.range,e[0],e[1])},rect:function(e,t,r){var n=r.range;if(!e||n.length<=1)return!1;var i=e.x,a=e.y,o=e.width,s=e.height,l=n[0];if(Bu(n,i,a)||Bu(n,i+o,a)||Bu(n,i,a+s)||Bu(n,i+o,a+s)||nt.create(e).contain(l[0],l[1])||Fp(i,a,i+o,a,n)||Fp(i,a,i,a+s,n)||Fp(i+o,a,i+o,a+s,n)||Fp(i,a+s,i+o,a+s,n))return!0}}};function iF(e){var t=["x","y"],r=["width","height"];return{point:function(n,i,a){if(n){var o=a.range,s=n[e];return Tp(s,o)}},rect:function(n,i,a){if(n){var o=a.range,s=[n[t[e]],n[t[e]]+n[r[e]]];return s[1]<s[0]&&s.reverse(),Tp(s[0],o)||Tp(s[1],o)||Tp(o[0],s)||Tp(o[1],s)}}}}function Tp(e,t){return t[0]<=e&&e<=t[1]}var aF=["inBrush","outOfBrush"],yT="__ecBrushSelect",XA="__ecInBrushSelectEvent";function m7(e){e.eachComponent({mainType:"brush"},function(t){var r=t.brushTargetManager=new yP(t.option,e);r.setInputRanges(t.areas,e)})}function cPe(e,t,r){var n=[],i,a;e.eachComponent({mainType:"brush"},function(o){r&&r.type==="takeGlobalCursor"&&o.setBrushOption(r.key==="brush"?r.brushOption:{brushType:!1})}),m7(e),e.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:We(o.areas),selected:[]};n.push(l);var u=o.option,c=u.brushLink,f=[],d=[],h=[],v=!1;s||(i=u.throttleType,a=u.throttleDelay);var g=de(o.areas,function(T){var C=pPe[T.brushType],A=Ve({boundingRect:C?C(T):void 0},T);return A.selectors=uPe(A),A}),y=qA(o.option,aF,function(T){T.mappingMethod="fixed"});ue(c)&&V(c,function(T){f[T]=1});function x(T){return c==="all"||!!f[T]}function S(T){return!!T.length}e.eachSeries(function(T,C){var A=h[C]=[];T.subType==="parallel"?b(T,C):w(T,C,A)});function b(T,C){var A=T.coordinateSystem;v=v||A.hasAxisBrushed(),x(C)&&A.eachActiveState(T.getData(),function(k,I){k==="active"&&(d[I]=1)})}function w(T,C,A){if(!(!T.brushSelector||hPe(o,C))&&(V(g,function(I){o.brushTargetManager.controlSeries(I,T,e)&&A.push(I),v=v||S(A)}),x(C)&&S(A))){var k=T.getData();k.each(function(I){oF(T,A,k,I)&&(d[I]=1)})}}e.eachSeries(function(T,C){var A={seriesId:T.id,seriesIndex:C,seriesName:T.name,dataIndex:[]};l.selected.push(A);var k=h[C],I=T.getData(),P=x(C)?function(R){return d[R]?(A.dataIndex.push(I.getRawIndex(R)),"inBrush"):"outOfBrush"}:function(R){return oF(T,k,I,R)?(A.dataIndex.push(I.getRawIndex(R)),"inBrush"):"outOfBrush"};(x(C)?v:S(k))&&sPe(aF,y,I,P)})}),fPe(t,i,a,n,r)}function fPe(e,t,r,n,i){if(i){var a=e.getZr();if(!a[XA]){a[yT]||(a[yT]=dPe);var o=Wd(a,yT,r,t);o(e,n)}}}function dPe(e,t){if(!e.isDisposed()){var r=e.getZr();r[XA]=!0,e.dispatchAction({type:"brushSelect",batch:t}),r[XA]=!1}}function oF(e,t,r,n){for(var i=0,a=t.length;i<a;i++){var o=t[i];if(e.brushSelector(n,r,o.selectors,o))return!0}}function hPe(e,t){var r=e.option.seriesIndex;return r!=null&&r!=="all"&&(ue(r)?ft(r,t)<0:t!==r)}var pPe={rect:function(e){return sF(e.range)},polygon:function(e){for(var t,r=e.range,n=0,i=r.length;n<i;n++){t=t||[[1/0,-1/0],[1/0,-1/0]];var a=r[n];a[0]<t[0][0]&&(t[0][0]=a[0]),a[0]>t[0][1]&&(t[0][1]=a[0]),a[1]<t[1][0]&&(t[1][0]=a[1]),a[1]>t[1][1]&&(t[1][1]=a[1])}return t&&sF(t)}};function sF(e){return new nt(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var vPe=function(e){J(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){this.ecModel=r,this.api=n,this.model,(this._brushController=new YI(n.getZr())).on("brush",Ae(this._onBrush,this)).mount()},t.prototype.render=function(r,n,i,a){this.model=r,this._updateController(r,n,i,a)},t.prototype.updateTransform=function(r,n,i,a){m7(n),this._updateController(r,n,i,a)},t.prototype.updateVisual=function(r,n,i,a){this.updateTransform(r,n,i,a)},t.prototype.updateView=function(r,n,i,a){this._updateController(r,n,i,a)},t.prototype._updateController=function(r,n,i,a){(!a||a.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(i)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(r){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:We(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:We(i),$from:n})},t.type="brush",t}(dr),gPe="#ddd",mPe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&g7(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:gPe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=de(r,function(n){return lF(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=lF(this.option,r),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},t}(xt);function lF(e,t){return rt({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Ft(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var yPe=["rect","polygon","lineX","lineY","keep","clear"],xPe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i){var a,o,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,V(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},t.prototype.updateView=function(r,n,i){this.render(r,n,i)},t.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),i={};return V(r.get("type",!0),function(a){n[a]&&(i[a]=n[a])}),i},t.prototype.onclick=function(r,n,i){var a=this._brushType,o=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(r){var n={show:!0,type:yPe.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:r.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(Xi);function SPe(e){e.registerComponentView(vPe),e.registerComponentModel(mPe),e.registerPreprocessor(aPe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,cPe),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,r){r.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Mr),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Mr),Ff("brush",xPe)}var bPe=function(e){J(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}(xt),_Pe=function(e){J(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 a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=Qe(r.get("textBaseline"),r.get("textVerticalAlign")),c=new kt({style:ar(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=r.get("subtext"),h=new kt({style:ar(s,{text:d,fill:s.getTextColor(),y:f.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=r.get("link"),g=r.get("sublink"),y=r.get("triggerEvent",!0);c.silent=!v&&!y,h.silent=!g&&!y,v&&c.on("click",function(){E1(v,"_"+r.get("target"))}),g&&h.on("click",function(){E1(g,"_"+r.get("subtarget"))}),Ze(c).eventData=Ze(h).eventData=y?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),d&&a.add(h);var x=a.getBoundingRect(),S=r.getBoxLayoutParams();S.width=x.width,S.height=x.height;var b=Fr(S,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?b.x+=b.width:l==="center"&&(b.x+=b.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?b.y+=b.height:u==="middle"&&(b.y+=b.height/2),u=u||"top"),a.x=b.x,a.y=b.y,a.markRedraw();var w={align:l,verticalAlign:u};c.setStyle(w),h.setStyle(w),x=a.getBoundingRect();var T=b.margin,C=r.getItemStyle(["color","opacity"]);C.fill=r.get("backgroundColor");var A=new Ct({shape:{x:x.x-T[3],y:x.y-T[0],width:x.width+T[1]+T[3],height:x.height+T[0]+T[2],r:r.get("borderRadius")},style:C,subPixelOptimize:!0,silent:!0});a.add(A)}},t.type="title",t}(dr);function wPe(e){e.registerComponentModel(bPe),e.registerComponentView(_Pe)}var uF=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._initData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(r){this.option.autoPlay=!!r},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var r=this.option,n=r.data||[],i=r.axisType,a=this._names=[],o;i==="category"?(o=[],V(n,function(u,c){var f=Br(Ld(u),""),d;Ge(u)?(d=We(u),d.value=c):d=c,o.push(d),a.push(f)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new On([{name:"value",type:s}],this);l.initData(o,a)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},t}(xt),y7=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline.slider",t.defaultOption=Nl(uF.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),t}(uF);Lr(y7,SS.prototype);var CPe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline",t}(dr),TPe=function(e){J(t,e);function t(r,n,i,a){var o=e.call(this,r,n,i)||this;return o.type=a||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(Fa),xT=Math.PI,cF=Tt(),APe=function(e){J(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){this.api=n},t.prototype.render=function(r,n,i){if(this.model=r,this.api=i,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var a=this._layout(r,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,r);r.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return Yr("nameValue",{noName:!0,value:c})},V(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,r)},this),this._renderAxisLabel(a,s,l,r),this._position(a,r)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(r,n){var i=r.get(["label","position"]),a=r.get("orient"),o=kPe(r,n),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2<n.getHeight()/2?"-":"+":o.x+o.width/2<n.getWidth()/2?"+":"-":we(i)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][i]:s=i;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:xT/2},f=a==="vertical"?o.height:o.width,d=r.getModel("controlStyle"),h=d.get("show",!0),v=h?d.get("itemSize"):0,g=h?d.get("itemGap"):0,y=v+g,x=r.get(["label","rotate"])||0;x=x*xT/180;var S,b,w,T=d.get("position",!0),C=h&&d.get("showPlayBtn",!0),A=h&&d.get("showPrevBtn",!0),k=h&&d.get("showNextBtn",!0),I=0,P=f;T==="left"||T==="bottom"?(C&&(S=[0,0],I+=y),A&&(b=[I,0],I+=y),k&&(w=[P-v,0],P-=y)):(C&&(S=[P-v,0],P-=y),A&&(b=[0,0],I+=y),k&&(w=[P-v,0],P-=y));var R=[I,P];return r.get("inverse")&&R.reverse(),{viewRect:o,mainLength:f,orient:a,rotation:c[a],labelRotation:x,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[a],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[a],playPosition:S,prevBtnPosition:b,nextBtnPosition:w,axisExtent:R,controlSize:v,controlGap:g}},t.prototype._position=function(r,n){var i=this._mainGroup,a=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=wi(),l=o.x,u=o.y+o.height;To(s,s,[-l,-u]),Mc(s,s,-xT/2),To(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=S(o),f=S(i.getBoundingRect()),d=S(a.getBoundingRect()),h=[i.x,i.y],v=[a.x,a.y];v[0]=h[0]=c[0][0];var g=r.labelPosOpt;if(g==null||we(g)){var y=g==="+"?0:1;b(h,f,c,1,y),b(v,d,c,1,1-y)}else{var y=g>=0?0:1;b(h,f,c,1,y),v[1]=h[1]+g}i.setPosition(h),a.setPosition(v),i.rotation=a.rotation=r.rotation,x(i),x(a);function x(w){w.originX=c[0][0]-w.x,w.originY=c[1][0]-w.y}function S(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function b(w,T,C,A,k){w[A]+=C[A][k]-T[A][k]}},t.prototype._createAxis=function(r,n){var i=n.getData(),a=n.get("axisType"),o=MPe(n,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new TPe("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new qe;return this.group.add(n),n},t.prototype._renderAxisLine=function(r,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new Hr({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:oe({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Hr({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Ve({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(r,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],V(l,function(u){var c=i.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),v=f.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:Ae(o._changeTimeline,o,u.value)},y=fF(f,d,n,g);y.ensureState("emphasis").style=h.getItemStyle(),y.ensureState("progress").style=v.getItemStyle(),ic(y);var x=Ze(y);f.get("tooltip")?(x.dataIndex=u.value,x.dataModel=a):x.dataIndex=x.dataModel=null,o._tickSymbols.push(y)})},t.prototype._renderAxisLabel=function(r,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],V(u,function(c){var f=c.tickValue,d=l.getItemModel(f),h=d.getModel("label"),v=d.getModel(["emphasis","label"]),g=d.getModel(["progress","label"]),y=i.dataToCoord(c.tickValue),x=new kt({x:y,y:0,rotation:r.labelRotation-r.rotation,onclick:Ae(o._changeTimeline,o,f),silent:!1,style:ar(h,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});x.ensureState("emphasis").style=ar(v),x.ensureState("progress").style=ar(g),n.add(x),ic(x),cF(x).dataIndex=f,o._tickLabels.push(x)})}},t.prototype._renderControl=function(r,n,i,a){var o=r.controlSize,s=r.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),f=a.get("inverse",!0);d(r.nextBtnPosition,"next",Ae(this._changeTimeline,this,f?"-":"+")),d(r.prevBtnPosition,"prev",Ae(this._changeTimeline,this,f?"+":"-")),d(r.playPosition,c?"stop":"play",Ae(this._handlePlayClick,this,!c),!0);function d(h,v,g,y){if(h){var x=Oa(Qe(a.get(["controlStyle",v+"BtnSize"]),o),o),S=[0,-x/2,x,x],b=IPe(a,v+"Icon",S,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:y?-s:0,rectHover:!0,style:l,onclick:g});b.ensureState("emphasis").style=u,n.add(b),ic(b)}}},t.prototype._renderCurrentPointer=function(r,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=Ae(u._handlePointerDrag,u),f.ondragend=Ae(u._handlePointerDragend,u),dF(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){dF(f,u._progressLine,s,i,a)}};this._currentPointer=fF(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},t.prototype._handlePointerDrag=function(r,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},t.prototype._pointerChangeTimeline=function(r,n){var i=this._toAxisCoord(r)[0],a=this._axis,o=Qi(a.getExtent().slice());i>o[1]&&(i=o[1]),i<o[0]&&(i=o[0]),this._currentPointer.x=i,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=i,s.dirty());var l=this._findNearestTick(i),u=this.model;(n||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},t.prototype._doPlayStop=function(){var r=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var n=r.model;r._changeTimeline(n.getCurrentIndex()+(n.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},t.prototype._toAxisCoord=function(r){var n=this._mainGroup.getLocalTransform();return Ia(r,n,!0)},t.prototype._findNearestTick=function(r){var n=this.model.getData(),i=1/0,a,o=this._axis;return n.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-r);c<i&&(i=c,a=l)}),a},t.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},t.prototype._changeTimeline=function(r){var n=this.model.getCurrentIndex();r==="+"?r=n+1:r==="-"&&(r=n-1),this.api.dispatchAction({type:"timelineChange",currentIndex:r,from:this.uid})},t.prototype._updateTicksStatus=function(){var r=this.model.getCurrentIndex(),n=this._tickSymbols,i=this._tickLabels;if(n)for(var a=0;a<n.length;a++)n&&n[a]&&n[a].toggleState("progress",a<r);if(i)for(var a=0;a<i.length;a++)i&&i[a]&&i[a].toggleState("progress",cF(i[a]).dataIndex<=r)},t.type="timeline.slider",t}(CPe);function MPe(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new AS({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new xI({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new ds}}function kPe(e,t){return Fr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function IPe(e,t,r,n){var i=n.style,a=Lg(e.get(["controlStyle",t]),n||{},new nt(r[0],r[1],r[2],r[3]));return i&&a.setStyle(i),a}function fF(e,t,r,n,i,a){var o=t.get("color");if(i)i.setColor(o),r.add(i),a&&a.onUpdate(i);else{var s=e.get("symbol");i=Er(s,-1,-1,2,2,o),i.setStyle("strokeNoScale",!0),r.add(i),a&&a.onCreate(i)}var l=t.getItemStyle(["color"]);i.setStyle(l),n=rt({rectHover:!0,z2:100},n,!0);var u=jd(e.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var c=Ic(e.get("symbolOffset"),u);c&&(n.x=(n.x||0)+c[0],n.y=(n.y||0)+c[1]);var f=e.get("symbolRotate");return n.rotation=(f||0)*Math.PI/180||0,i.attr(n),i.updateTransform(),i}function dF(e,t,r,n,i,a){if(!e.dragging){var o=i.getModel("checkpointStyle"),s=n.dataToCoord(i.getData().get("value",r));if(a||!o.get("animation",!0))e.attr({x:s,y:0}),t&&t.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};e.stopAnimation(null,!0),e.animateTo({x:s,y:0},l),t&&t.animateTo({shape:{x2:s}},l)}}}function PPe(e){e.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,r,n){var i=r.getComponent("timeline");return i&&t.currentIndex!=null&&(i.setCurrentIndex(t.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),n.dispatchAction({type:"timelinePlayChange",playState:!1,from:t.from}))),r.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),Ve({currentIndex:i.option.currentIndex},t)}),e.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,r){var n=r.getComponent("timeline");n&&t.playState!=null&&n.setPlayState(t.playState)})}function DPe(e){var t=e&&e.timeline;ue(t)||(t=t?[t]:[]),V(t,function(r){r&&RPe(r)})}function RPe(e){var t=e.type,r={number:"value",time:"time"};if(r[t]&&(e.axisType=r[t],delete e.type),hF(e),$u(e,"controlPosition")){var n=e.controlStyle||(e.controlStyle={});$u(n,"position")||(n.position=e.controlPosition),n.position==="none"&&!$u(n,"show")&&(n.show=!1,delete n.position),delete e.controlPosition}V(e.data||[],function(i){Ge(i)&&!ue(i)&&(!$u(i,"value")&&$u(i,"name")&&(i.value=i.name),hF(i))})}function hF(e){var t=e.itemStyle||(e.itemStyle={}),r=t.emphasis||(t.emphasis={}),n=e.label||e.label||{},i=n.normal||(n.normal={}),a={normal:1,emphasis:1};V(n,function(o,s){!a[s]&&!$u(i,s)&&(i[s]=o)}),r.label&&!$u(n,"emphasis")&&(n.emphasis=r.label,delete r.label)}function $u(e,t){return e.hasOwnProperty(t)}function EPe(e){e.registerComponentModel(y7),e.registerComponentView(APe),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),PPe(e),e.registerPreprocessor(DPe)}function bP(e,t){if(!e)return!1;for(var r=ue(e)?e:[e],n=0;n<r.length;n++)if(r[n]&&r[n][t])return!0;return!1}function b0(e){gc(e,"label",["show"])}var _0=Tt(),ps=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.createdBySelf=!1,r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._mergeOption(r,i,!1,!0)},t.prototype.isAnimationEnabled=function(){if(yt.node)return!1;var r=this.__hostSeries;return this.getShallow("animation")&&r&&r.isAnimationEnabled()},t.prototype.mergeOption=function(r,n){this._mergeOption(r,n,!1,!1)},t.prototype._mergeOption=function(r,n,i,a){var o=this.mainType;i||n.eachSeries(function(s){var l=s.get(this.mainType,!0),u=_0(s)[o];if(!l||!l.data){_0(s)[o]=null;return}u?u._mergeOption(l,n,!0):(a&&b0(l),V(l.data,function(c){c instanceof Array?(b0(c[0]),b0(c[1])):b0(c)}),u=this.createMarkerModelFromSeries(l,this,n),oe(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),_0(s)[o]=u},this)},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return Yr("section",{header:this.name,blocks:[Yr("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(r){this._data=r},t.prototype.getDataParams=function(r,n){var i=SS.prototype.getDataParams.call(this,r,n),a=this.__hostSeries;return a&&(i.seriesId=a.id,i.seriesName=a.name,i.seriesType=a.subType),i},t.getMarkerModelFromSeries=function(r,n){return _0(r)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(xt);Lr(ps,SS.prototype);var LPe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markPoint",t.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},t}(ps);function ZA(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function OPe(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function w0(e,t,r,n,i,a){var o=[],s=Ml(t,n),l=s?t.getCalculationInfo("stackResultDimension"):n,u=_P(t,l,e),c=t.indicesOfNearest(l,u)[0];o[i]=t.get(r,c),o[a]=t.get(l,c);var f=t.get(n,c),d=lo(t.get(n,c));return d=Math.min(d,20),d>=0&&(o[a]=+o[a].toFixed(d)),[o,f]}var ST={min:Je(w0,"min"),max:Je(w0,"max"),average:Je(w0,"average"),median:Je(w0,"median")};function ug(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!OPe(t)&&!ue(t.coord)&&ue(i)){var a=x7(t,r,n,e);if(t=We(t),t.type&&ST[t.type]&&a.baseAxis&&a.valueAxis){var o=ft(i,a.baseAxis.dim),s=ft(i,a.valueAxis.dim),l=ST[t.type](r,a.baseDataDim,a.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!ue(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)ST[u[c]]&&(u[c]=_P(r,r.mapDimension(i[c]),u[c]));return t}}function x7(e,t,r,n){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=r.getAxis(NPe(n,i.valueDataDim)),i.baseAxis=r.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=r.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function NPe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function cg(e,t){return e&&e.containData&&t.coord&&!ZA(t)?e.containData(t.coord):!0}function zPe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!ZA(t)&&!ZA(r)?e.containZone(t.coord,r.coord):!0}function S7(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return ml(o,t[a])}:function(r,n,i,a){return ml(r.value,t[a])}}function _P(e,t,r){if(r==="average"){var n=0,i=0;return e.each(t,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var bT=Tt(),wP=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=Oe()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){bT(s).keep=!1}),n.eachSeries(function(s){var l=ps.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!bT(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){bT(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;V(r,function(a){var o=ps.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?fH(l):Hk(l))})}})},t.type="marker",t}(dr);function pF(e,t,r){var n=t.coordinateSystem;e.each(function(i){var a=e.getItemModel(i),o,s=xe(a.get("x"),r.getWidth()),l=xe(a.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(n){var u=e.get(n.dimensions[0],i),c=e.get(n.dimensions[1],i);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(i,o)})}var BPe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=ps.getMarkerModelFromSeries(a,"markPoint");o&&(pF(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Vg),f=FPe(o,r,n);n.setData(f),pF(n.getData(),r,a),f.each(function(d){var h=f.getItemModel(d),v=h.getShallow("symbol"),g=h.getShallow("symbolSize"),y=h.getShallow("symbolRotate"),x=h.getShallow("symbolOffset"),S=h.getShallow("symbolKeepAspect");if(Be(v)||Be(g)||Be(y)||Be(x)){var b=n.getRawValue(d),w=n.getDataParams(d);Be(v)&&(v=v(b,w)),Be(g)&&(g=g(b,w)),Be(y)&&(y=y(b,w)),Be(x)&&(x=x(b,w))}var T=h.getModel("itemStyle").getItemStyle(),C=Ng(l,"color");T.fill||(T.fill=C),f.setItemVisual(d,{symbol:v,symbolSize:g,symbolRotate:y,symbolOffset:x,symbolKeepAspect:S,style:T})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(h){Ze(h).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(wP);function FPe(e,t,r){var n;e?n=de(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return oe(oe({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new On(n,r),a=de(r.get("data"),Je(ug,t));e&&(a=jt(a,Je(cg,e)));var o=S7(!!e,n);return i.initData(a,null,o),i}function VPe(e){e.registerComponentModel(LPe),e.registerComponentView(BPe),e.registerPreprocessor(function(t){bP(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var $Pe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(ps),C0=Tt(),GPe=function(e,t,r,n){var i=e.getData(),a;if(ue(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=Jr(n.yAxis,n.xAxis);else{var u=x7(n,i,t,e);s=u.valueAxis;var c=dj(i,u.valueDataDim);l=_P(i,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=We(n),v={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,v.coord[d]=1/0;var g=r.get("precision");g>=0&&Dt(l)&&(l=+l.toFixed(Math.min(g,20))),h.coord[f]=v.coord[f]=l,a=[h,v,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var y=[ug(e,a[0]),ug(e,a[1]),oe({},a[2])];return y[2].type=y[2].type||null,rt(y[2],y[0]),rt(y[2],y[1]),y};function ax(e){return!isNaN(e)&&!isFinite(e)}function vF(e,t,r,n){var i=1-e,a=n.dimensions[e];return ax(t[i])&&ax(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function HPe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(vF(1,r,n,e)||vF(0,r,n,e)))return!0}return cg(e,t[0])&&cg(e,t[1])}function _T(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=xe(o.get("x"),i.getWidth()),u=xe(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,f=e.get(c[0],t),d=e.get(c[1],t);s=a.dataToPoint([f,d])}if(Dc(a,"cartesian2d")){var h=a.getAxis("x"),v=a.getAxis("y"),c=a.dimensions;ax(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):ax(e.get(c[1],t))&&(s[1]=v.toGlobalCoord(v.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var WPe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=ps.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=C0(o).from,u=C0(o).to;l.each(function(c){_T(l,c,!0,a,i),_T(u,c,!1,a,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new UI);this.group.add(c.group);var f=jPe(o,r,n),d=f.from,h=f.to,v=f.line;C0(n).from=d,C0(n).to=h,n.setData(v);var g=n.get("symbol"),y=n.get("symbolSize"),x=n.get("symbolRotate"),S=n.get("symbolOffset");ue(g)||(g=[g,g]),ue(y)||(y=[y,y]),ue(x)||(x=[x,x]),ue(S)||(S=[S,S]),f.from.each(function(w){b(d,w,!0),b(h,w,!1)}),v.each(function(w){var T=v.getItemModel(w).getModel("lineStyle").getLineStyle();v.setItemLayout(w,[d.getItemLayout(w),h.getItemLayout(w)]),T.stroke==null&&(T.stroke=d.getItemVisual(w,"style").fill),v.setItemVisual(w,{fromSymbolKeepAspect:d.getItemVisual(w,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(w,"symbolOffset"),fromSymbolRotate:d.getItemVisual(w,"symbolRotate"),fromSymbolSize:d.getItemVisual(w,"symbolSize"),fromSymbol:d.getItemVisual(w,"symbol"),toSymbolKeepAspect:h.getItemVisual(w,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(w,"symbolOffset"),toSymbolRotate:h.getItemVisual(w,"symbolRotate"),toSymbolSize:h.getItemVisual(w,"symbolSize"),toSymbol:h.getItemVisual(w,"symbol"),style:T})}),c.updateData(v),f.line.eachItemGraphicEl(function(w){Ze(w).dataModel=n,w.traverse(function(T){Ze(T).dataModel=n})});function b(w,T,C){var A=w.getItemModel(T);_T(w,T,C,r,a);var k=A.getModel("itemStyle").getItemStyle();k.fill==null&&(k.fill=Ng(l,"color")),w.setItemVisual(T,{symbolKeepAspect:A.get("symbolKeepAspect"),symbolOffset:Qe(A.get("symbolOffset",!0),S[C?0:1]),symbolRotate:Qe(A.get("symbolRotate",!0),x[C?0:1]),symbolSize:Qe(A.get("symbolSize"),y[C?0:1]),symbol:Qe(A.get("symbol",!0),g[C?0:1]),style:k})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(wP);function jPe(e,t,r){var n;e?n=de(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return oe(oe({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new On(n,r),a=new On(n,r),o=new On([],r),s=de(r.get("data"),Je(GPe,t,e,r));e&&(s=jt(s,Je(HPe,e)));var l=S7(!!e,n);return i.initData(de(s,function(u){return u[0]}),null,l),a.initData(de(s,function(u){return u[1]}),null,l),o.initData(de(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function UPe(e){e.registerComponentModel($Pe),e.registerComponentView(WPe),e.registerPreprocessor(function(t){bP(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var YPe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(ps),T0=Tt(),qPe=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=ug(e,i),s=ug(e,a),l=o.coord,u=s.coord;l[0]=Jr(l[0],-1/0),l[1]=Jr(l[1],-1/0),u[0]=Jr(u[0],1/0),u[1]=Jr(u[1],1/0);var c=Tk([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function ox(e){return!isNaN(e)&&!isFinite(e)}function gF(e,t,r,n){var i=1-e;return ox(t[i])&&ox(r[i])}function XPe(e,t){var r=t.coord[0],n=t.coord[1],i={coord:r,x:t.x0,y:t.y0},a={coord:n,x:t.x1,y:t.y1};return Dc(e,"cartesian2d")?r&&n&&(gF(1,r,n)||gF(0,r,n))?!0:zPe(e,i,a):cg(e,i)||cg(e,a)}function mF(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=xe(o.get(r[0]),i.getWidth()),u=xe(o.get(r[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=e.getValues(["x0","y0"],t),f=e.getValues(["x1","y1"],t),d=a.clampData(c),h=a.clampData(f),v=[];r[0]==="x0"?v[0]=d[0]>h[0]?f[0]:c[0]:v[0]=d[0]>h[0]?c[0]:f[0],r[1]==="y0"?v[1]=d[1]>h[1]?f[1]:c[1]:v[1]=d[1]>h[1]?c[1]:f[1],s=n.getMarkerPosition(v,r,!0)}else{var g=e.get(r[0],t),y=e.get(r[1],t),x=[g,y];a.clampData&&a.clampData(x,x),s=a.dataToPoint(x,!0)}if(Dc(a,"cartesian2d")){var S=a.getAxis("x"),b=a.getAxis("y"),g=e.get(r[0],t),y=e.get(r[1],t);ox(g)?s[0]=S.toGlobalCoord(S.getExtent()[r[0]==="x0"?0:1]):ox(y)&&(s[1]=b.toGlobalCoord(b.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var yF=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],ZPe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=ps.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=de(yF,function(f){return mF(s,l,f,a,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new qe});this.group.add(c.group),this.markKeep(c);var f=KPe(o,r,n);n.setData(f),f.each(function(d){var h=de(yF,function(k){return mF(f,d,k,r,a)}),v=o.getAxis("x").scale,g=o.getAxis("y").scale,y=v.getExtent(),x=g.getExtent(),S=[v.parse(f.get("x0",d)),v.parse(f.get("x1",d))],b=[g.parse(f.get("y0",d)),g.parse(f.get("y1",d))];Qi(S),Qi(b);var w=!(y[0]>S[1]||y[1]<S[0]||x[0]>b[1]||x[1]<b[0]),T=!w;f.setItemLayout(d,{points:h,allClipped:T});var C=f.getItemModel(d).getModel("itemStyle").getItemStyle(),A=Ng(l,"color");C.fill||(C.fill=A,we(C.fill)&&(C.fill=b1(C.fill,.4))),C.stroke||(C.stroke=A),f.setItemVisual(d,"style",C)}),f.diff(T0(c).data).add(function(d){var h=f.getItemLayout(d);if(!h.allClipped){var v=new Vn({shape:{points:h.points}});f.setItemGraphicEl(d,v),c.group.add(v)}}).update(function(d,h){var v=T0(c).data.getItemGraphicEl(h),g=f.getItemLayout(d);g.allClipped?v&&c.group.remove(v):(v?Lt(v,{shape:{points:g.points}},n,d):v=new Vn({shape:{points:g.points}}),f.setItemGraphicEl(d,v),c.group.add(v))}).remove(function(d){var h=T0(c).data.getItemGraphicEl(d);c.group.remove(h)}).execute(),f.eachItemGraphicEl(function(d,h){var v=f.getItemModel(h),g=f.getItemVisual(h,"style");d.useStyle(f.getItemVisual(h,"style")),fn(d,Ur(v),{labelFetcher:n,labelDataIndex:h,defaultText:f.getName(h)||"",inheritColor:we(g.fill)?b1(g.fill,1):"#000"}),cn(d,v),mr(d,null,null,v.get(["emphasis","disabled"])),Ze(d).dataModel=n}),T0(c).data=f,c.group.silent=n.get("silent")||r.get("silent")},t.type="markArea",t}(wP);function KPe(e,t,r){var n,i,a=["x0","y0","x1","y1"];if(e){var o=de(e&&e.dimensions,function(u){var c=t.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return oe(oe({},f),{name:u,ordinalMeta:null})});i=de(a,function(u,c){return{name:u,type:o[c%2].type}}),n=new On(i,r)}else i=[{name:"value",type:"float"}],n=new On(i,r);var s=de(r.get("data"),Je(qPe,t,e,r));e&&(s=jt(s,Je(XPe,e)));var l=e?function(u,c,f,d){var h=u.coord[Math.floor(d/2)][d%2];return ml(h,i[d])}:function(u,c,f,d){return ml(u.value,i[d])};return n.initData(s,null,l),n.hasItemOption=!0,n}function QPe(e){e.registerComponentModel(YPe),e.registerComponentView(ZPe),e.registerPreprocessor(function(t){bP(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var JPe=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"])}},KA=function(e){J(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"]),ue(n)&&V(n,function(a,o){we(a)&&(a={type:a}),n[o]=rt(a,JPe(i,a.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 a=r[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(r[0].get("name"))}},t.prototype._updateData=function(r){var n=[],i=[];r.eachRawSeries(function(l){var u=l.name;i.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();r.isSeriesFiltered(l)||(i=i.concat(d)),d.length?n=n.concat(d):c=!0}else c=!0;c&&Ok(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=Oe(),s=de(a,function(l){return(we(l)||Dt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ft(l,this,this.ecModel))},this);this._data=jt(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 a=this._data;V(a,function(o){n[o.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;V(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;V(r,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(r){var n=this.option.selected;return!(n.hasOwnProperty(r)&&!n[r])&&ft(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}(xt),If=Je,QA=V,A0=qe,b7=function(e){J(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 A0),this.group.add(this._selectorGroup=new A0),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 a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var c=r.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},d=r.get("padding"),h=Fr(c,f,d),v=this.layoutInner(r,o,h,a,l,u),g=Fr(Ve({width:v.width,height:v.height},c),f,d);this.group.x=g.x-v.x,this.group.y=g.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=u7(v,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,a,o,s,l){var u=this.getContentGroup(),c=Oe(),f=n.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),QA(n.getData(),function(h,v){var g=h.get("name");if(!this.newlineDisabled&&(g===""||g===`
|
213
|
-
`)){var y=new A0;y.newline=!0,u.add(y);return}var x=i.getSeriesByName(g)[0];if(!c.get(g))if(x){var S=x.getData(),b=S.getVisual("legendLineStyle")||{},w=S.getVisual("legendIcon"),T=S.getVisual("style"),C=this._createItem(x,g,v,h,n,r,b,T,w,f,a);C.on("click",If(xF,g,null,a,d)).on("mouseover",If(JA,x.name,null,a,d)).on("mouseout",If(eM,x.name,null,a,d)),i.ssr&&C.eachChild(function(A){var k=Ze(A);k.seriesIndex=x.seriesIndex,k.dataIndex=v,k.ssrType="legend"}),c.set(g,!0)}else i.eachRawSeries(function(A){if(!c.get(g)&&A.legendVisualProvider){var k=A.legendVisualProvider;if(!k.containName(g))return;var I=k.indexOfName(g),P=k.getItemVisual(I,"style"),R=k.getItemVisual(I,"legendIcon"),L=Ci(P.fill);L&&L[3]===0&&(L[3]=.2,P=oe(oe({},P),{fill:ts(L,"rgba")}));var O=this._createItem(A,g,v,h,n,r,{},P,R,f,a);O.on("click",If(xF,null,g,a,d)).on("mouseover",If(JA,null,g,a,d)).on("mouseout",If(eM,null,g,a,d)),i.ssr&&O.eachChild(function(z){var F=Ze(z);F.seriesIndex=A.seriesIndex,F.dataIndex=v,F.ssrType="legend"}),c.set(g,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();QA(r,function(u){var c=u.type,f=new kt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);fn(f,{normal:d,emphasis:h},{defaultText:u.title}),ic(f)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,d){var h=r.visualDrawType,v=o.get("itemWidth"),g=o.get("itemHeight"),y=o.isSelected(n),x=a.get("symbolRotate"),S=a.get("symbolKeepAspect"),b=a.get("icon");c=b||c||"roundRect";var w=eDe(c,a,l,u,h,y,d),T=new A0,C=a.getModel("textStyle");if(Be(r.getLegendIcon)&&(!b||b==="inherit"))T.add(r.getLegendIcon({itemWidth:v,itemHeight:g,icon:c,iconRotate:x,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:S}));else{var A=b==="inherit"&&r.getData().getVisual("symbol")?x==="inherit"?r.getData().getVisual("symbolRotate"):x:0;T.add(tDe({itemWidth:v,itemHeight:g,icon:c,iconRotate:A,itemStyle:w.itemStyle,symbolKeepAspect:S}))}var k=s==="left"?v+5:-5,I=s,P=o.get("formatter"),R=n;we(P)&&P?R=P.replace("{name}",n??""):Be(P)&&(R=P(n));var L=y?C.getTextColor():a.get("inactiveColor");T.add(new kt({style:ar(C,{text:R,x:k,y:g/2,fill:L,align:I,verticalAlign:"middle"},{inheritColor:L})}));var O=new Ct({shape:T.getBoundingRect(),style:{fill:"transparent"}}),z=a.getModel("tooltip");return z.get("show")&&zd({el:O,componentModel:o,itemName:n,itemTooltipOption:z.option}),T.add(O),T.eachChild(function(F){F.silent=!0}),O.silent=!f,this.getContentGroup().add(T),ic(T),T.__legendDataIndex=i,T},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();oc(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){oc("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],v=r.get("selectorButtonGap",!0),g=r.getOrient().index,y=g===0?"width":"height",x=g===0?"height":"width",S=g===0?"y":"x";s==="end"?h[g]+=c[y]+v:f[g]+=d[y]+v,h[1-g]+=c[x]/2-d[x]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var b={x:0,y:0};return b[y]=c[y]+v+d[y],b[x]=Math.max(c[x],d[x]),b[S]=Math.min(0,d[S]+h[1-g]),b}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(dr);function eDe(e,t,r,n,i,a,o){function s(y,x){y.lineWidth==="auto"&&(y.lineWidth=x.lineWidth>0?2:0),QA(y,function(S,b){y[b]==="inherit"&&(y[b]=x[b])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?n.decal:Sd(f,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var d=t.getModel("lineStyle"),h=d.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var v=t.get("inactiveBorderWidth"),g=u[c];u.lineWidth=v==="auto"?n.lineWidth>0&&g?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function tDe(e){var t=e.icon||"roundRect",r=Er(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 xF(e,t,r,n){eM(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),JA(e,t,r,n)}function _7(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 JA(e,t,r,n){_7(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function eM(e,t,r,n){_7(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}function rDe(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 Ap(e,t,r){var n={},i=e==="toggleSelected",a;return r.eachComponent("legend",function(o){i&&a!=null?o[a?"select":"unSelect"](t.name):e==="allSelect"||e==="inverseSelect"?o[e]():(o[e](t.name),a=o.isSelected(t.name));var s=o.getData();V(s,function(l){var u=l.get("name");if(!(u===`
|
214
|
-
`||u==="")){var c=o.isSelected(u);n.hasOwnProperty(u)?n[u]=n[u]&&c:n[u]=c}})}),e==="allSelect"||e==="inverseSelect"?{selected:n}:{name:t.name,selected:n}}function nDe(e){e.registerAction("legendToggleSelect","legendselectchanged",Je(Ap,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",Je(Ap,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",Je(Ap,"inverseSelect")),e.registerAction("legendSelect","legendselected",Je(Ap,"select")),e.registerAction("legendUnSelect","legendunselected",Je(Ap,"unSelect"))}function w7(e){e.registerComponentModel(KA),e.registerComponentView(b7),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,rDe),e.registerSubTypeDefaulter("legend",function(){return"plain"}),nDe(e)}var iDe=function(e){J(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 a=$d(r);e.prototype.init.call(this,r,n,i),SF(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),SF(this,this.option,r)},t.type="legend.scroll",t.defaultOption=Nl(KA.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}(KA);function SF(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,Al(t,r,{type:"box",ignoreSize:!!i})}var bF=qe,wT=["width","height"],CT=["x","y"],aDe=function(e){J(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 bF),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new bF)},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,a,o,s,l){var u=this;e.prototype.renderInner.call(this,r,n,i,a,o,s,l);var c=this._controllerGroup,f=n.get("pageIconSize",!0),d=ue(f)?f:[f,f];v("pagePrev",0);var h=n.getModel("pageTextStyle");c.add(new kt({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(g,y){var x=g+"DataIndex",S=Lg(n.get("pageIcons",!0)[n.getOrient().name][y],{onclick:Ae(u._pageGo,u,x,n,a)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});S.name=g,c.add(S)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=wT[u],f=CT[u],d=wT[1-u],h=CT[1-u];o&&oc("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),g=l.getBoundingRect(),y=[-g.x,-g.y],x=We(i);o&&(x[c]=i[c]-g[c]-v);var S=this._layoutContentAndController(r,a,x,u,c,d,h,f);if(o){if(s==="end")y[u]+=S[c]+v;else{var b=g[c]+v;y[u]-=b,S[f]-=b}S[c]+=g[c]+v,y[1-u]+=S[h]+S[d]/2-g[d]/2,S[d]=Math.max(S[d],g[d]),S[h]=Math.min(S[h],g[h]+y[1-u]),l.x=y[0],l.y=y[1],l.markRedraw()}return S},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;oc(r.get("orient"),c,r.get("itemGap"),a?i.width:null,a?null:i.height),oc("horizontal",d,r.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),v=d.getBoundingRect(),g=this._showController=h[o]>i[o],y=[-h.x,-h.y];n||(y[a]=c[u]);var x=[0,0],S=[-v.x,-v.y],b=Qe(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(g){var w=r.get("pageButtonPosition",!0);w==="end"?S[a]+=i[o]-v[o]:x[a]+=v[o]+b}S[1-a]+=h[s]/2-v[s]/2,c.setPosition(y),f.setPosition(x),d.setPosition(S);var T={x:0,y:0};if(T[o]=g?i[o]:h[o],T[s]=Math.max(h[s],v[s]),T[l]=Math.min(0,v[l]+S[1-a]),f.__rectSize=i[o],g){var C={x:0,y:0};C[o]=Math.max(i[o]-v[o]-b,0),C[s]=T[s],f.setClipPath(new Ct({shape:C})),f.__rectSize=C[o]}else d.eachChild(function(k){k.attr({invisible:!0,silent:!0})});var A=this._getPageInfo(r);return A.pageIndex!=null&&Lt(c,{x:A.contentPosition[0],y:A.contentPosition[1]},g?r:null),this._updatePageInfoView(r,A),T},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;V(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,h=i.childOfName(c);h&&(h.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",we(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=wT[o],l=CT[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],d=c.length,h=d?1:0,v={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var g=w(f);v.contentPosition[o]=-g.s;for(var y=u+1,x=g,S=g,b=null;y<=d;++y)b=w(c[y]),(!b&&S.e>x.s+a||b&&!T(b,x.s))&&(S.i>x.i?x=S:x=b,x&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=x.i),++v.pageCount)),S=b;for(var y=u-1,x=g,S=g,b=null;y>=-1;--y)b=w(c[y]),(!b||!T(S,b.s))&&x.i<S.i&&(S=x,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=x.i),++v.pageCount,++v.pageIndex),x=b;return v;function w(C){if(C){var A=C.getBoundingRect(),k=A[l]+C[l];return{s:k,e:k+A[s],i:C.__legendDataIndex}}}function T(C,A){return C.e>=A&&C.s<=A+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},t.type="legend.scroll",t}(b7);function oDe(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 sDe(e){pt(w7),e.registerComponentModel(iDe),e.registerComponentView(aDe),oDe(e)}function lDe(e){pt(w7),pt(sDe)}var uDe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=Nl(lg.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(lg),CP=Tt();function cDe(e,t,r){CP(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function fDe(e,t){for(var r=CP(e).coordSysRecordMap,n=r.keys(),i=0;i<n.length;i++){var a=n[i],o=r.get(a),s=o.dataZoomInfoMap;if(s){var l=t.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||C7(r,o))}}}function C7(e,t){if(t){e.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function dDe(e,t){var r={model:t,containsPoint:Je(pDe,t),dispatchAction:Je(hDe,e),dataZoomInfoMap:null,controller:null},n=r.controller=new jg(e.getZr());return V(["pan","zoom","scrollMove"],function(i){n.on(i,function(a){var o=[];r.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,r.model.mainType,r.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&r.dispatchAction(o)})}),r}function hDe(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function pDe(e,t,r,n){return e.coordinateSystem.containPoint([r,n])}function vDe(e){var t,r="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return e.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;n[r+s]>n[r+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function gDe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=CP(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=Oe());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=o7(a);V(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,dDe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=Oe());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){C7(i,a);return}var c=vDe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),Wd(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var mDe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,i){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),cDe(i,r,{pan:Ae(TT.pan,this),zoom:Ae(TT.zoom,this),scrollMove:Ae(TT.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){fDe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(vP),TT={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=AT[t](null,[n.originX,n.originY],o,r,e),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Ec(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:_F(function(e,t,r,n,i,a){var o=AT[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:_F(function(e,t,r,n,i,a){var o=AT[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function _F(e){return function(t,r,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,i);if(Ec(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var AT={grid:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],a.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,r,n,i){var a=r.axis,o=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function T7(e){gP(e),e.registerComponentModel(uDe),e.registerComponentView(mDe),gDe(e)}var yDe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Nl(lg.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}(lg),Mp=Ct,wF=7,xDe=1,MT=30,SDe=7,kp="horizontal",CF="vertical",bDe=5,_De=["line","bar","candlestick","scatter"],wDe={easing:"cubicOut",duration:100,delay:0},CDe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=Ae(this._onBrush,this),this._onBrushEnd=Ae(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),Wd(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){Xv(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new qe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,i=r.get("brushSelect"),a=i?SDe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===kp?{right:s.width-o.x-o.width,top:s.height-MT-wF-a,width:o.width,height:MT}:{right:wF,top:o.y,width:MT,height:o.height},u=$d(r.option);V(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=Fr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===CF&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===kp&&!o?{scaleY:l?1:-1,scaleX:1}:i===kp&&o?{scaleY:l?1:-1,scaleX:-1}:i===CF&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=r.get("brushSelect");i.add(new Mp({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Mp({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:Ae(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,i=this._shadowSize||[],a=r.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var h=[0,n[1]],v=[0,n[0]],g=[[n[0],0],[0,0]],y=[],x=v[1]/(o.count()-1),S=0,b=Math.round(o.count()/n[0]),w;o.each([l],function(I,P){if(b>0&&P%b){S+=x;return}var R=I==null||isNaN(I)||I==="",L=R?0:$t(I,f,h,!0);R&&!w&&P?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!R&&w&&(g.push([S,0]),y.push([S,0])),g.push([S,L]),y.push([S,L]),S+=x,w=R}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=y}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var T=this.dataZoomModel;function C(I){var P=T.getModel(I?"selectedDataBackground":"dataBackground"),R=new qe,L=new Vn({shape:{points:u},segmentIgnoreThreshold:1,style:P.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),O=new Gn({shape:{points:c},segmentIgnoreThreshold:1,style:P.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return R.add(L),R.add(O),R}for(var A=0;A<3;A++){var k=C(A===1);this._displayables.sliderGroup.add(k),this._displayables.dataShadowSegs.push(k)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();V(l,function(u){if(!i&&!(n!==!0&&ft(_De,u.get("type"))<0)){var c=a.getComponent(hl(o),s).axis,f=TDe(o),d,h=u.coordinateSystem;f!=null&&h.getOtherAxis&&(d=h.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),i={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:d}}},this)},this),i}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=n.filler=new Mp({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Mp({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:xDe,fill:"rgba(0,0,0,0)"}})),V([0,1],function(b){var w=l.get("handleIcon");!N1[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var T=Er(w,-1,0,2,2,null,!0);T.attr({cursor:TF(this._orient),draggable:!0,drift:Ae(this._onDragMove,this,b),ondragend:Ae(this._onDragEnd,this),onmouseover:Ae(this._showDataInfo,this,!0),onmouseout:Ae(this._showDataInfo,this,!1),z2:5});var C=T.getBoundingRect(),A=l.get("handleSize");this._handleHeight=xe(A,this._size[1]),this._handleWidth=C.width/C.height*this._handleHeight,T.setStyle(l.getModel("handleStyle").getItemStyle()),T.style.strokeNoScale=!0,T.rectHover=!0,T.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),ic(T);var k=l.get("handleColor");k!=null&&(T.style.fill=k),o.add(i[b]=T);var I=l.getModel("textStyle");r.add(a[b]=new kt({silent:!0,invisible:!0,style:ar(I,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:I.getTextColor(),font:I.getFont()}),z2:10}))},this);var h=d;if(f){var v=xe(l.get("moveHandleSize"),s[1]),g=n.moveHandle=new Ct({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),y=v*.8,x=n.moveHandleIcon=Er(l.get("moveHandleIcon"),-y/2,-y/2,y,y,"#fff",!0);x.silent=!0,x.y=s[1]+v/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var S=Math.min(s[1]/2,Math.max(v,10));h=n.moveZone=new Ct({invisible:!0,shape:{y:s[1]-S,height:v+S}}),h.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(x),o.add(h)}h.attr({draggable:!0,cursor:TF(this._orient),drift:Ae(this._onDragMove,this,"all"),ondragstart:Ae(this._showDataInfo,this,!0),ondragend:Ae(this._onDragEnd,this),onmouseover:Ae(this._showDataInfo,this,!0),onmouseout:Ae(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[$t(r[0],[0,100],n,!0),$t(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Ec(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?$t(s.minSpan,l,o,!0):null,s.maxSpan!=null?$t(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Qi([$t(a[0],o,l,!0),$t(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,i=this._handleEnds,a=Qi(i.slice()),o=this._size;V([0,1],function(h){var v=n.handles[h],g=this._handleHeight;v.attr({scaleX:g/2,scaleY:g/2,x:i[h]+(h?-1:1),y:o[1]/2-g/2})},this),n.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[0]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;c<l.length;c++){var f=l[c],d=f.getClipPath();d||(d=new Ct,f.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(r)},t.prototype._updateDataInfo=function(r){var n=this.dataZoomModel,i=this._displayables,a=i.handleLabels,o=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=r?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var d=Qi(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(v){var g=ac(i.handles[v].parent,this.group),y=fS(v===0?"right":"left",g),x=this._handleWidth/2+bDe,S=Ia([d[v]+(v===0?-x:x),this._size[1]/2],g);a[v].setStyle({x:S[0],y:S[1],verticalAlign:o===kp?"middle":y,align:o===kp?y:"center",text:s[v]})}},t.prototype._formatLabel=function(r,n){var i=this.dataZoomModel,a=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=n.getPixelPrecision());var s=r==null||isNaN(r)?"":n.type==="category"||n.type==="time"?n.scale.getLabel({value:Math.round(r)}):r.toFixed(Math.min(o,20));return Be(a)?a(r,s):we(a)?a.replace("{value}",s):s},t.prototype._showDataInfo=function(r){r=this._dragging||r;var n=this._displayables,i=n.handleLabels;i[0].attr("invisible",!r),i[1].attr("invisible",!r),n.moveHandle&&this.api[r?"enterEmphasis":"leaveEmphasis"](n.moveHandle,1)},t.prototype._onDragMove=function(r,n,i,a){this._dragging=!0,ss(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Ia([n,i],o,!0),l=this._updateInterval(r,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},t.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var r=this.dataZoomModel.get("realtime");!r&&this._dispatchZoomAction(!1)},t.prototype._onClickPanel=function(r){var n=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(r.offsetX,r.offsetY);if(!(i[0]<0||i[0]>n[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,i=r.offsetY;this._brushStart=new et(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Qi([$t(i.x,o,s,!0),$t(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(ss(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new Mp({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(r,n),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?wDe:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=o7(this.dataZoomModel).infoList;if(!r&&n.length){var i=n[0].model.coordinateSystem;r=i.getRect&&i.getRect()}if(!r){var a=this.api.getWidth(),o=this.api.getHeight();r={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(vP);function TDe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function TF(e){return e==="vertical"?"ns-resize":"ew-resize"}function A7(e){e.registerComponentModel(yDe),e.registerComponentView(CDe),gP(e)}function ADe(e){pt(T7),pt(A7)}var M7={get:function(e,t,r){var n=We((MDe[e]||{})[t]);return r&&ue(n)?n[n.length-1]:n}},MDe={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},AF=jr.mapVisual,kDe=jr.eachVisual,IDe=ue,MF=V,PDe=Qi,DDe=$t,sx=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&g7(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=Ae(r,this),this.controllerVisuals=qA(this.option.controller,n,r),this.targetVisuals=qA(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=Yt(r),n},t.prototype.eachTargetSeries=function(r,n){V(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&r.call(n,a)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(i){i===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],ue(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(we(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Be(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?i[0]+" "+c[1]:r[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var r=this.option,n=PDe([r.min,r.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var i=r.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});rt(a,i),rt(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(f){IDe(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,d,h){var v=f[d],g=f[h];v&&!g&&(g=f[h]={},MF(v,function(y,x){if(jr.isValidType(x)){var S=M7.get(x,"inactive",s);S!=null&&(g[x]=S,x==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),g=this.getItemSymbol(),y=g||"roundRect";MF(this.stateList,function(x){var S=this.itemSize,b=f[x];b||(b=f[x]={color:s?v:[v]}),b.symbol==null&&(b.symbol=d&&We(d)||(s?y:[y])),b.symbolSize==null&&(b.symbolSize=h&&We(h)||(s?S[0]:[S[0],S[0]])),b.symbol=AF(b.symbol,function(C){return C==="none"?y:C});var w=b.symbolSize;if(w!=null){var T=-1/0;kDe(w,function(C){C>T&&(T=C)}),b.symbolSize=AF(w,function(C){return DDe(C,[0,T],[0,S[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(r){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(r){return null},t.prototype.getVisualMeta=function(r){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},t}(xt),kF=[20,140],RDe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=kF[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=kF[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):ue(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),V(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=Qi((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]<r[0]&&(n[0]=r[0]),n[1]<r[0]&&(n[1]=r[0]),n},t.prototype.getValueState=function(r){var n=this.option.range,i=this.getExtent();return(n[0]<=i[0]||n[0]<=r)&&(n[1]>=i[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},t.prototype.getVisualMeta=function(r){var n=IF(this,"outOfRange",this.getExtent()),i=IF(this,"inRange",this.option.range.slice()),a=[];function o(h,v){a.push({value:h,color:r(h,v)})}for(var s=0,l=0,u=i.length,c=n.length;l<c&&(!i.length||n[l]<=i[0]);l++)n[l]<i[s]&&o(n[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&a.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var f=1;l<c;l++)(!i.length||i[i.length-1]<n[l])&&(f&&(a.length&&o(a[a.length-1].value,"outOfRange"),f=0),o(n[l],"outOfRange"));var d=a.length;return{stops:a,outerColors:[d?a[0].color:"transparent",d?a[d-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=Nl(sx.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),t}(sx);function IF(e,t,r){if(r[0]===r[1])return r.slice();for(var n=200,i=(r[1]-r[0])/n,a=r[0],o=[],s=0;s<=n&&a<r[1];s++)o.push(a),a+=i;return o.push(r[1]),o}var k7=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.autoPositionValues={left:1,right:1,top:1,bottom:1},r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n},t.prototype.render=function(r,n,i,a){if(this.visualMapModel=r,r.get("show")===!1){this.group.removeAll();return}this.doRender(r,n,i,a)},t.prototype.renderBackground=function(r){var n=this.visualMapModel,i=Vd(n.get("padding")||0),a=r.getBoundingRect();r.add(new Ct({z2:-1,silent:!0,shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[3]+i[1],height:a.height+i[0]+i[2]},style:{fill:n.get("backgroundColor"),stroke:n.get("borderColor"),lineWidth:n.get("borderWidth")}}))},t.prototype.getControllerVisual=function(r,n,i){i=i||{};var a=i.forceState,o=this.visualMapModel,s={};if(n==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function c(h,v){s[h]=v}var f=o.controllerVisuals[a||o.getValueState(r)],d=jr.prepareVisualTypes(f);return V(d,function(h){var v=f[h];i.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",v=f.__alphaForOpacity),jr.dependsOn(h,n)&&v&&v.applyVisual(r,u,c)}),s[n]},t.prototype.positionGroup=function(r){var n=this.visualMapModel,i=this.api;yS(r,n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},t.prototype.doRender=function(r,n,i,a){},t.type="visualMap",t}(dr),PF=[["left","right","width"],["top","bottom","height"]];function I7(e,t,r){var n=e.option,i=n.align;if(i!=null&&i!=="auto")return i;for(var a={width:t.getWidth(),height:t.getHeight()},o=n.orient==="horizontal"?1:0,s=PF[o],l=[0,null,10],u={},c=0;c<3;c++)u[PF[1-o][c]]=l[c],u[s[c]]=c===2?r[0]:n[s[c]];var f=[["x","width",3],["y","height",0]][o],d=Fr(u,a,n.padding);return s[(d.margin[f[2]]||0)+d[f[0]]+d[f[1]]*.5<a[f[1]]*.5?0:1]}function J0(e,t){return V(e||[],function(r){r.dataIndex!=null&&(r.dataIndexInside=r.dataIndex,r.dataIndex=null),r.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var Ja=$t,EDe=V,DF=Math.min,kT=Math.max,LDe=12,ODe=6,NDe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._shapes={},r._dataInterval=[],r._handleEnds=[],r._hoverLinkDataIndices=[],r}return t.prototype.init=function(r,n){e.prototype.init.call(this,r,n),this._hoverLinkFromSeriesMouseOver=Ae(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Ae(this._hideIndicator,this)},t.prototype.doRender=function(r,n,i,a){(!a||a.type!=="selectDataRange"||a.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var r=this.visualMapModel,n=this.group;this._orient=r.get("orient"),this._useHandle=r.get("calculable"),this._resetInterval(),this._renderBar(n);var i=r.get("text");this._renderEndsText(n,i,0),this._renderEndsText(n,i,1),this._updateView(!0),this.renderBackground(n),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(n)},t.prototype._renderEndsText=function(r,n,i){if(n){var a=n[1-i];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),f=this._applyTransform(i===0?"bottom":"top",u),d=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new kt({style:ar(h,{x:c[0],y:c[1],verticalAlign:d==="horizontal"?"middle":f,align:d==="horizontal"?f:"center",text:a})}))}},t.prototype._renderBar=function(r){var n=this.visualMapModel,i=this._shapes,a=n.itemSize,o=this._orient,s=this._useHandle,l=I7(n,this.api,a),u=i.mainGroup=this._createBarGroup(l),c=new qe;u.add(c),c.add(i.outOfRange=RF()),c.add(i.inRange=RF(null,s?LF(this._orient):null,Ae(this._dragHandle,this,"all",!1),Ae(this._dragHandle,this,"all",!0))),c.setClipPath(new Ct({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var f=n.textStyleModel.getTextRect("国"),d=kT(f.width,f.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(n,u,0,a,d,o),this._createHandle(n,u,1,a,d,o)),this._createIndicator(n,u,a,d,o),r.add(u)},t.prototype._createHandle=function(r,n,i,a,o,s){var l=Ae(this._dragHandle,this,i,!1),u=Ae(this._dragHandle,this,i,!0),c=Oa(r.get("handleSize"),a[0]),f=Er(r.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=LF(this._orient);f.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(x){ss(x.event)}}),f.x=a[0]/2,f.useStyle(r.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=r.getModel(["emphasis","handleStyle"]).getItemStyle(),Yu(f,!0),n.add(f);var h=this.visualMapModel.textStyleModel,v=new kt({cursor:d,draggable:!0,drift:l,onmousemove:function(x){ss(x.event)},ondragend:u,style:ar(h,{x:0,y:0,text:""})});v.ensureState("blur").style={opacity:.1},v.stateTransition={duration:200},this.group.add(v);var g=[c,0],y=this._shapes;y.handleThumbs[i]=f,y.handleLabelPoints[i]=g,y.handleLabels[i]=v},t.prototype._createIndicator=function(r,n,i,a,o){var s=Oa(r.get("indicatorSize"),i[0]),l=Er(r.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=r.getModel("indicatorStyle").getItemStyle();if(l instanceof en){var c=l.style;l.useStyle(oe({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);n.add(l);var f=this.visualMapModel.textStyleModel,d=new kt({silent:!0,invisible:!0,style:ar(f,{x:0,y:0,text:""})});this.group.add(d);var h=[(o==="horizontal"?a/2:ODe)+i[0]/2,0],v=this._shapes;v.indicator=l,v.indicatorLabel=d,v.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(r,n,i,a){if(this._useHandle){if(this._dragging=!n,!n){var o=this._applyTransform([i,a],this._shapes.mainGroup,!0);this._updateInterval(r,o[1]),this._hideIndicator(),this._updateView()}n===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),n?!this._hovering&&this._clearHoverLinkToSeries():EF(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[r],!1)}},t.prototype._resetInterval=function(){var r=this.visualMapModel,n=this._dataInterval=r.getSelected(),i=r.getExtent(),a=[0,r.itemSize[1]];this._handleEnds=[Ja(n[0],i,a,!0),Ja(n[1],i,a,!0)]},t.prototype._updateInterval=function(r,n){n=n||0;var i=this.visualMapModel,a=this._handleEnds,o=[0,i.itemSize[1]];Ec(n,a,o,r,0);var s=i.getExtent();this._dataInterval=[Ja(a[0],o,s,!0),Ja(a[1],o,s,!0)]},t.prototype._updateView=function(r){var n=this.visualMapModel,i=n.getExtent(),a=this._shapes,o=[0,n.itemSize[1]],s=r?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(r,n,i,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(r,o),l=[this.getControllerVisual(r[0],"symbolSize",o),this.getControllerVisual(r[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new Rg(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(r,n){var i=100,a=[],o=(r[1]-r[0])/i;a.push({color:this.getControllerVisual(r[0],"color",n),offset:0});for(var s=1;s<i;s++){var l=r[0]+o*s;if(l>r[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),a},t.prototype._createBarPoints=function(r,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],r[0]],[i[0],r[0]],[i[0],r[1]],[i[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,i=this.visualMapModel.get("inverse");return new qe(n==="horizontal"&&!i?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();EDe([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var d=Ja(r[c],[0,l[1]],u,!0),h=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=h/l[0],f.x=l[0]-h/2;var v=Ia(i.handleLabelPoints[c],ac(f,this.group));s[c].setStyle({x:v[0],y:v[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},h=this.getControllerVisual(r,"color",d),v=this.getControllerVisual(r,"symbolSize"),g=Ja(r,s,u,!0),y=l[0]-v/2,x={x:f.x,y:f.y};f.y=g,f.x=y;var S=Ia(c.indicatorLabelPoint,ac(f,this.group)),b=c.indicatorLabel;b.attr("invisible",!1);var w=this._applyTransform("left",c.mainGroup),T=this._orient,C=T==="horizontal";b.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:C?w:"middle",align:C?"center":w});var A={x:y,y:g,style:{fill:h}},k={style:{x:S[0],y:S[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var I={duration:100,easing:"cubicInOut",additive:!0};f.x=x.x,f.y=x.y,f.animateTo(A,I),b.animateTo(k,I)}else f.attr(A),b.attr(k);this._firstShowIndicator=!1;var P=this._shapes.handleLabels;if(P)for(var R=0;R<P.length;R++)this.api.enterBlur(P[R])}},t.prototype._enableHoverLinkToSeries=function(){var r=this;this._shapes.mainGroup.on("mousemove",function(n){if(r._hovering=!0,!r._dragging){var i=r.visualMapModel.itemSize,a=r._applyTransform([n.offsetX,n.offsetY],r._shapes.mainGroup,!0,!0);a[1]=DF(kT(0,a[1]),i[1]),r._doHoverLinkToSeries(a[1],0<=a[0]&&a[0]<=i[0])}}).on("mouseout",function(){r._hovering=!1,!r._dragging&&r._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var r=this.api.getZr();this.visualMapModel.option.hoverLink?(r.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),r.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(r,n){var i=this.visualMapModel,a=i.itemSize;if(i.option.hoverLink){var o=[0,a[1]],s=i.getExtent();r=DF(kT(o[0],r),o[1]);var l=zDe(i,s,o),u=[r-l,r+l],c=Ja(r,o,s,!0),f=[Ja(u[0],o,s,!0),Ja(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),n&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,h=[];(n||EF(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var v=Gve(d,h);this._dispatchHighDown("downplay",J0(v[0],i)),this._dispatchHighDown("highlight",J0(v[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(Xu(r.target,function(l){var u=Ze(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i<n.length;i++)this.api.leaveBlur(n[i])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var r=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",J0(r,this.visualMapModel)),r.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var r=this.api.getZr();r.off("mouseover",this._hoverLinkFromSeriesMouseOver),r.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(r,n,i,a){var o=ac(n,a?null:this.group);return ue(r)?Ia(r,o,i):fS(r,o,i)},t.prototype._dispatchHighDown=function(r,n){n&&n.length&&this.api.dispatchAction({type:r,batch:n})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t}(k7);function RF(e,t,r,n){return new Vn({shape:{points:e},draggable:!!r,cursor:t,drift:r,onmousemove:function(i){ss(i.event)},ondragend:n})}function zDe(e,t,r){var n=LDe/2,i=e.get("hoverLinkDataSize");return i&&(n=Ja(i,t,r,!0)/2),n}function EF(e){var t=e.get("hoverLinkOnHandle");return!!(t??e.get("realtime"))}function LF(e){return e==="vertical"?"ns-resize":"ew-resize"}var BDe={type:"selectDataRange",event:"dataRangeSelected",update:"update"},FDe=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(r){r.setSelected(e.selected)})},VDe=[{createOnAllSeries:!0,reset:function(e,t){var r=[];return t.eachComponent("visualMap",function(n){var i=e.pipelineContext;!n.isTargetSeries(e)||i&&i.large||r.push(lPe(n.stateList,n.targetVisuals,Ae(n.getValueState,n),n.getDataDimensionIndex(e.getData())))}),r}},{createOnAllSeries:!0,reset:function(e,t){var r=e.getData(),n=[];t.eachComponent("visualMap",function(i){if(i.isTargetSeries(e)){var a=i.getVisualMeta(Ae($De,null,e,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(r);o>=0&&(a.dimension=o,n.push(a))}}),e.getData().setVisual("visualMeta",n)}}];function $De(e,t,r,n){for(var i=t.targetVisuals[n],a=jr.prepareVisualTypes(i),o={color:Ng(e.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],c=i[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(r,f,d)}return o.color;function f(h){return o[h]}function d(h,v){o[h]=v}}var OF=V;function GDe(e){var t=e&&e.visualMap;ue(t)||(t=t?[t]:[]),OF(t,function(r){if(r){Pf(r,"splitList")&&!Pf(r,"pieces")&&(r.pieces=r.splitList,delete r.splitList);var n=r.pieces;n&&ue(n)&&OF(n,function(i){Ge(i)&&(Pf(i,"start")&&!Pf(i,"min")&&(i.min=i.start),Pf(i,"end")&&!Pf(i,"max")&&(i.max=i.end))})}})}function Pf(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var NF=!1;function P7(e){NF||(NF=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(BDe,FDe),V(VDe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(GDe))}function D7(e){e.registerComponentModel(RDe),e.registerComponentView(NDe),P7(e)}var HDe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],WDe[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=We(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=de(this._pieceList,function(l){return l=We(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=jr.listVisualTypes(),a=this.isCategory();V(r.pieces,function(s){V(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),V(n,function(s,l){var u=!1;V(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&V(this.stateList,function(c){(r[c]||(r[c]={}))[l]=M7.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,n){var i=this.option,a=this._pieceList,o=(n?i:r).selected||{};if(i.selected=o,V(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;V(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=We(r)},t.prototype.getValueState=function(r){var n=jr.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=jr.findPieceIndex(l,i);c===r&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var i=r.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(c,f){var d=a.getRepresentValue({interval:c});f||(f=a.getValueState(d));var h=r(d,f);c[0]===-1/0?i[0]=h:c[1]===1/0?i[1]=h:n.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return V(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:n,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=Nl(sx.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t}(sx),WDe={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(r)!==a&&r<5;)r++;t.precision=r,a=+a.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o<i;s+=a,o++){var l=o===i-1?n[1]:s+a;e.push({interval:[s,l],close:[1,1]})}t.maxOpen&&e.push({interval:[n[1],1/0],close:[0,0]}),RN(e),V(e,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(e){var t=this.option;V(t.categories,function(r){e.push({text:this.formatValueText(r,!0),value:r})},this),zF(t,e)},pieces:function(e){var t=this.option;V(t.pieces,function(r,n){Ge(r)||(r={value:r});var i={text:"",index:n};if(r.label!=null&&(i.text=r.label),r.hasOwnProperty("value")){var a=i.value=r.value;i.interval=[a,a],i.close=[1,1]}else{for(var o=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var d=[["gte","gt","min"],["lte","lt","max"]][f],h=0;h<3&&o[f]==null;h++)o[f]=r[d[h]],s[f]=l[h],c[f]=h===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(i.value=o[0])}i.visual=jr.retrieveVisuals(r),e.push(i)},this),zF(t,e),RN(e),V(e,function(r){var n=r.close,i=[["<","≤"][n[1]],[">","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,i)},this)}};function zF(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}var jDe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),f=c.endsText,d=Jr(n.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],u,d,l),V(c.viewPieceList,function(h){var v=h.piece,g=new qe;g.onclick=Ae(this._onItemClick,this,v),this._enableHoverLink(g,h.indexInModelPieceList);var y=n.getRepresentValue(v);if(this._createItemSymbol(g,y,[0,0,u[0],u[1]]),d){var x=this.visualMapModel.getValueState(y);g.add(new kt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:v.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:x==="outOfRange"?.5:1}}))}r.add(g)},this),f&&this._renderEndsText(r,f[1],u,d,l),oc(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var i=this;r.on("mouseover",function(){return a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:J0(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return I7(r,this.api,r.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(r,n,i,a,o){if(n){var s=new qe,l=this.visualMapModel.textStyleModel;s.add(new kt({style:ar(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=de(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=r.get("text"),a=r.get("orient"),o=r.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},t.prototype._createItemSymbol=function(r,n,i){r.add(Er(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color")))},t.prototype._onItemClick=function(r){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=We(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,V(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t}(k7);function R7(e){e.registerComponentModel(HDe),e.registerComponentView(jDe),P7(e)}function UDe(e){pt(D7),pt(R7)}var YDe={label:{enabled:!0},decal:{show:!1}},BF=Tt(),qDe={};function XDe(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=We(YDe);rt(n.label,e.getLocaleModel().get("aria"),!1),rt(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=Oe();e.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),BF(d).scope=h}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(Be(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var S=J2(d.ecModel,d.name,qDe,e.getSeriesCount()),b=h.getVisual("decal");h.setVisual("decal",w(b,S))}else{var v=d.getRawData(),g={},y=BF(d).scope;h.each(function(T){var C=h.getRawIndex(T);g[C]=T});var x=v.count();v.each(function(T){var C=g[T],A=v.getName(T)||T+"",k=J2(d.ecModel,A,y,x),I=h.getItemVisual(C,"decal");h.setItemVisual(C,"decal",w(I,k))})}function w(T,C){var A=T?oe(oe({},C),T):C;return A.dirty=!0,A}})}}function a(){var u=t.getZr().dom;if(u){var c=e.getLocaleModel().get("aria"),f=r.getModel("label");if(f.option=Ve(f.option,c),!!f.get("enabled")){if(f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var d=e.getSeriesCount(),h=f.get(["data","maxCount"])||10,v=f.get(["series","maxCount"])||10,g=Math.min(d,v),y;if(!(d<1)){var x=s();if(x){var S=f.get(["general","withTitle"]);y=o(S,{title:x})}else y=f.get(["general","withoutTitle"]);var b=[],w=d>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);y+=o(w,{seriesCount:d}),e.eachSeries(function(k,I){if(I<g){var P=void 0,R=k.get("name"),L=R?"withName":"withoutName";P=d>1?f.get(["series","multiple",L]):f.get(["series","single",L]),P=o(P,{seriesId:k.seriesIndex,seriesName:k.get("name"),seriesType:l(k.subType)});var O=k.getData();if(O.count()>h){var z=f.get(["data","partialData"]);P+=o(z,{displayCnt:h})}else P+=f.get(["data","allData"]);for(var F=f.get(["data","separator","middle"]),H=f.get(["data","separator","end"]),q=[],$=0;$<O.count();$++)if($<h){var X=O.getName($),B=O.getValues($),Y=f.get(["data",X?"withName":"withoutName"]);q.push(o(Y,{name:X,value:B.join(F)}))}P+=q.join(F)+H,b.push(P)}});var T=f.getModel(["series","multiple","separator"]),C=T.get("middle"),A=T.get("end");y+=b.join(C)+A,u.setAttribute("aria-label",y)}}}}function o(u,c){if(!we(u))return u;var f=u;return V(c,function(d,h){f=f.replace(new RegExp("\\{\\s*"+h+"\\s*\\}","g"),d)}),f}function s(){var u=e.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=e.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function ZDe(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},V(["description","general","series","data"],function(r){t[r]!=null&&(t.label[r]=t[r])})}}function KDe(e){e.registerPreprocessor(ZDe),e.registerVisual(e.PRIORITY.VISUAL.ARIA,XDe)}var FF={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},QDe=function(){function e(t){var r=this._condVal=we(t)?new RegExp(t):ape(t)?t:null;if(r==null){var n="";zt(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return we(r)?this._condVal.test(t):Dt(r)?this._condVal.test(t+""):!1},e}(),JDe=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),eRe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(!t[r].evaluate())return!1;return!0},e}(),tRe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r<t.length;r++)if(t[r].evaluate())return!0;return!1},e}(),rRe=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),nRe=function(){function e(){}return e.prototype.evaluate=function(){for(var t=!!this.valueParser,r=this.getValue,n=r(this.valueGetterParam),i=t?this.valueParser(n):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(t?i:n))return!1;return!0},e}();function TP(e,t){if(e===!0||e===!1){var r=new JDe;return r.value=e,r}var n="";return E7(e)||zt(n),e.and?VF("and",e,t):e.or?VF("or",e,t):e.not?iRe(e,t):aRe(e,t)}function VF(e,t,r){var n=t[e],i="";ue(n)||zt(i),n.length||zt(i);var a=e==="and"?new eRe:new tRe;return a.children=de(n,function(o){return TP(o,r)}),a.children.length||zt(i),a}function iRe(e,t){var r=e.not,n="";E7(r)||zt(n);var i=new rRe;return i.child=TP(r,t),i.child||zt(n),i}function aRe(e,t){for(var r="",n=t.prepareGetValue(e),i=[],a=St(e),o=e.parser,s=o?pW(o):null,l=0;l<a.length;l++){var u=a[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=Pe(FF,u)?FF[u]:u,f=e[u],d=s?s(f):f,h=jye(c,d)||c==="reg"&&new QDe(d);h||zt(r),i.push(h)}}i.length||zt(r);var v=new nRe;return v.valueGetterParam=n,v.valueParser=s,v.getValue=t.getValue,v.subCondList=i,v}function E7(e){return Ge(e)&&!wn(e)}var oRe=function(){function e(t,r){this._cond=TP(t,r)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function sRe(e,t){return new oRe(e,t)}var lRe={type:"echarts:filter",transform:function(e){for(var t=e.upstream,r,n=sRe(e.config,{valueGetterAttrMap:Oe({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;Pe(s,"dimension")||zt(l);var c=t.getDimensionInfo(u);return c||zt(l),{dimIdx:c.index}},getValue:function(s){return t.retrieveValueFromItem(r,s.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)r=t.getRawDataItem(a),n.evaluate()&&i.push(r);return{data:i}}},uRe={type:"echarts:sort",transform:function(e){var t=e.upstream,r=e.config,n="",i=Yt(r);i.length||zt(n);var a=[];V(i,function(c){var f=c.dimension,d=c.order,h=c.parser,v=c.incomparable;if(f==null&&zt(n),d!=="asc"&&d!=="desc"&&zt(n),v&&v!=="min"&&v!=="max"){var g="";zt(g)}if(d!=="asc"&&d!=="desc"){var y="";zt(y)}var x=t.getDimensionInfo(f);x||zt(n);var S=h?pW(h):null;h&&!S&&zt(n),a.push({dimIdx:x.index,parser:S,comparator:new gW(d,v)})});var o=t.sourceFormat;o!==Cn&&o!==ua&&zt(n);for(var s=[],l=0,u=t.count();l<u;l++)s.push(t.getRawDataItem(l));return s.sort(function(c,f){for(var d=0;d<a.length;d++){var h=a[d],v=t.retrieveValueFromItem(c,h.dimIdx),g=t.retrieveValueFromItem(f,h.dimIdx);h.parser&&(v=h.parser(v),g=h.parser(g));var y=h.comparator.evaluate(v,g);if(y!==0)return y}return 0}),{data:s}}};function cRe(e){e.registerTransform(lRe),e.registerTransform(uRe)}var fRe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.prototype.init=function(r,n,i){e.prototype.init.call(this,r,n,i),this._sourceManager=new SW(this),W5(this)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),W5(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:xo},t}(xt),dRe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataset",r}return t.type="dataset",t}(dr);function hRe(e){e.registerComponentModel(fRe),e.registerComponentView(dRe)}var Ka=ko.CMD;function Uf(e,t){return Math.abs(e-t)<1e-5}function tM(e){var t=e.data,r=e.len(),n=[],i,a=0,o=0,s=0,l=0;function u(O,z){i&&i.length>2&&n.push(i),i=[O,z]}function c(O,z,F,H){Uf(O,F)&&Uf(z,H)||i.push(O,z,F,H,F,H)}function f(O,z,F,H,q,$){var X=Math.abs(z-O),B=Math.tan(X/4)*4/3,Y=z<O?-1:1,Z=Math.cos(O),j=Math.sin(O),re=Math.cos(z),ce=Math.sin(z),te=Z*q+F,pe=j*$+H,ae=re*q+F,he=ce*$+H,ve=q*B*Y,fe=$*B*Y;i.push(te-ve*j,pe+fe*Z,ae+ve*ce,he-fe*re,ae,he)}for(var d,h,v,g,y=0;y<r;){var x=t[y++],S=y===1;switch(S&&(a=t[y],o=t[y+1],s=a,l=o,(x===Ka.L||x===Ka.C||x===Ka.Q)&&(i=[s,l])),x){case Ka.M:a=s=t[y++],o=l=t[y++],u(s,l);break;case Ka.L:d=t[y++],h=t[y++],c(a,o,d,h),a=d,o=h;break;case Ka.C:i.push(t[y++],t[y++],t[y++],t[y++],a=t[y++],o=t[y++]);break;case Ka.Q:d=t[y++],h=t[y++],v=t[y++],g=t[y++],i.push(a+2/3*(d-a),o+2/3*(h-o),v+2/3*(d-v),g+2/3*(h-g),v,g),a=v,o=g;break;case Ka.A:var b=t[y++],w=t[y++],T=t[y++],C=t[y++],A=t[y++],k=t[y++]+A;y+=1;var I=!t[y++];d=Math.cos(A)*T+b,h=Math.sin(A)*C+w,S?(s=d,l=h,u(s,l)):c(a,o,d,h),a=Math.cos(k)*T+b,o=Math.sin(k)*C+w;for(var P=(I?-1:1)*Math.PI/2,R=A;I?R>k:R<k;R+=P){var L=I?Math.max(R+P,k):Math.min(R+P,k);f(R,L,b,w,T,C)}break;case Ka.R:s=a=t[y++],l=o=t[y++],d=s+t[y++],h=l+t[y++],u(d,l),c(d,l,d,h),c(d,h,s,h),c(s,h,s,l),c(s,l,d,l);break;case Ka.Z:i&&c(a,o,s,l),a=s,o=l;break}}return i&&i.length>2&&n.push(i),n}function rM(e,t,r,n,i,a,o,s,l,u){if(Uf(e,r)&&Uf(t,n)&&Uf(i,o)&&Uf(a,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-e,h=s-t,v=Math.sqrt(d*d+h*h);d/=v,h/=v;var g=r-e,y=n-t,x=i-o,S=a-s,b=g*g+y*y,w=x*x+S*S;if(b<f&&w<f){l.push(o,s);return}var T=d*g+h*y,C=-d*x-h*S,A=b-T*T,k=w-C*C;if(A<f&&T>=0&&k<f&&C>=0){l.push(o,s);return}var I=[],P=[];Cl(e,r,i,o,.5,I),Cl(t,n,a,s,.5,P),rM(I[0],P[0],I[1],P[1],I[2],P[2],I[3],P[3],l,u),rM(I[4],P[4],I[5],P[5],I[6],P[6],I[7],P[7],l,u)}function pRe(e,t){var r=tM(e),n=[];t=t||1;for(var i=0;i<r.length;i++){var a=r[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var c=a[u++],f=a[u++],d=a[u++],h=a[u++],v=a[u++],g=a[u++];rM(s,l,c,f,d,h,v,g,o,t),s=v,l=g}n.push(o)}return n}function L7(e,t,r){var n=e[t],i=e[1-t],a=Math.abs(n/i),o=Math.ceil(Math.sqrt(a*r)),s=Math.floor(r/o);s===0&&(s=1,o=r);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=r-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function $F(e,t,r){for(var n=e.r0,i=e.r,a=e.startAngle,o=e.endAngle,s=Math.abs(o-a),l=s*i,u=i-n,c=l>Math.abs(u),f=L7([l,u],c?0:1,t),d=(c?s:u)/f.length,h=0;h<f.length;h++)for(var v=(c?u:s)/f[h],g=0;g<f[h];g++){var y={};c?(y.startAngle=a+d*h,y.endAngle=a+d*(h+1),y.r0=n+v*g,y.r=n+v*(g+1)):(y.startAngle=a+v*g,y.endAngle=a+v*(g+1),y.r0=n+d*h,y.r=n+d*(h+1)),y.clockwise=e.clockwise,y.cx=e.cx,y.cy=e.cy,r.push(y)}}function vRe(e,t,r){for(var n=e.width,i=e.height,a=n>i,o=L7([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",f=e[s]/o.length,d=0;d<o.length;d++)for(var h=e[l]/o[d],v=0;v<o[d];v++){var g={};g[u]=d*f,g[c]=v*h,g[s]=f,g[l]=h,g.x+=e.x,g.y+=e.y,r.push(g)}}function GF(e,t,r,n){return e*n-r*t}function gRe(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,d=GF(c,f,l,u);if(Math.abs(d)<1e-6)return null;var h=e-i,v=t-a,g=GF(h,v,c,f)/d;return g<0||g>1?null:new et(g*l+e,g*u+t)}function mRe(e,t,r){var n=new et;et.sub(n,r,t),n.normalize();var i=new et;et.sub(i,e,t);var a=i.dot(n);return a}function Df(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function yRe(e,t,r){for(var n=e.length,i=[],a=0;a<n;a++){var o=e[a],s=e[(a+1)%n],l=gRe(o[0],o[1],s[0],s[1],t.x,t.y,r.x,r.y);l&&i.push({projPt:mRe(l,t,r),pt:l,idx:a})}if(i.length<2)return[{points:e},{points:e}];i.sort(function(y,x){return y.projPt-x.projPt});var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var d=[u.pt.x,u.pt.y],h=[c.pt.x,c.pt.y],v=[d],g=[h],a=u.idx+1;a<=c.idx;a++)Df(v,e[a].slice());Df(v,h),Df(v,d);for(var a=c.idx+1;a<=u.idx+n;a++)Df(g,e[a%n].slice());return Df(g,d),Df(g,h),[{points:v},{points:g}]}function HF(e){var t=e.points,r=[],n=[];aS(t,r,n);var i=new nt(r[0],r[1],n[0]-r[0],n[1]-r[1]),a=i.width,o=i.height,s=i.x,l=i.y,u=new et,c=new et;return a>o?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),yRe(t,u,c)}function lx(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);lx(e,a[0],i,n),lx(e,a[1],r-i,n)}return n}function xRe(e,t){for(var r=[],n=0;n<t;n++)r.push(jk(e));return r}function SRe(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function bRe(e){for(var t=[],r=0;r<e.length;)t.push([e[r++],e[r++]]);return t}function _Re(e,t){var r=[],n=e.shape,i;switch(e.type){case"rect":vRe(n,t,r),i=Ct;break;case"sector":$F(n,t,r),i=Fn;break;case"circle":$F({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,r),i=Fn;break;default:var a=e.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=de(pRe(e.getUpdatedPathProxy(),o),function(x){return bRe(x)}),l=s.length;if(l===0)lx(HF,{points:s[0]},t,r);else if(l===t)for(var u=0;u<l;u++)r.push({points:s[u]});else{var c=0,f=de(s,function(x){var S=[],b=[];aS(x,S,b);var w=(b[1]-S[1])*(b[0]-S[0]);return c+=w,{poly:x,area:w}});f.sort(function(x,S){return S.area-x.area});for(var d=t,u=0;u<l;u++){var h=f[u];if(d<=0)break;var v=u===l-1?d:Math.ceil(h.area/c*t);v<0||(lx(HF,{points:h.poly},v,r),d-=v)}}i=Vn;break}if(!i)return xRe(e,t);for(var g=[],u=0;u<r.length;u++){var y=new i;y.setShape(r[u]),SRe(e,y),g.push(y)}return g}function wRe(e,t){var r=e.length,n=t.length;if(r===n)return[e,t];for(var i=[],a=[],o=r<n?e:t,s=Math.min(r,n),l=Math.abs(n-r)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],d=l,h=2;h<s;){var v=o[h-2],g=o[h-1],y=o[h++],x=o[h++],S=o[h++],b=o[h++],w=o[h++],T=o[h++];if(d<=0){f.push(y,x,S,b,w,T);continue}for(var C=Math.min(d,c-1)+1,A=1;A<=C;A++){var k=A/C;Cl(v,y,S,w,k,i),Cl(g,x,b,T,k,a),v=i[3],g=a[3],f.push(i[1],a[1],i[2],a[2],v,g),y=i[5],x=a[5],S=i[6],b=a[6]}d-=C-1}return o===e?[f,t]:[e,f]}function WF(e,t){for(var r=e.length,n=e[r-2],i=e[r-1],a=[],o=0;o<t.length;)a[o++]=n,a[o++]=i;return a}function CRe(e,t){for(var r,n,i,a=[],o=[],s=0;s<Math.max(e.length,t.length);s++){var l=e[s],u=t[s],c=void 0,f=void 0;l?u?(r=wRe(l,u),c=r[0],f=r[1],n=c,i=f):(f=WF(i||l,l),c=l):(c=WF(n||u,u),f=u),a.push(c),o.push(f)}return[a,o]}function jF(e){for(var t=0,r=0,n=0,i=e.length,a=0,o=i-2;a<i;o=a,a+=2){var s=e[o],l=e[o+1],u=e[a],c=e[a+1],f=s*c-u*l;t+=f,r+=(s+u)*f,n+=(l+c)*f}return t===0?[e[0]||0,e[1]||0]:[r/t/3,n/t/3,t]}function TRe(e,t,r,n){for(var i=(e.length-2)/6,a=1/0,o=0,s=e.length,l=s-2,u=0;u<i;u++){for(var c=u*6,f=0,d=0;d<s;d+=2){var h=d===0?c:(c+d-2)%l+2,v=e[h]-r[0],g=e[h+1]-r[1],y=t[d]-n[0],x=t[d+1]-n[1],S=y-v,b=x-g;f+=S*S+b*b}f<a&&(a=f,o=u)}return o}function ARe(e){for(var t=[],r=e.length,n=0;n<r;n+=2)t[n]=e[r-n-2],t[n+1]=e[r-n-1];return t}function MRe(e,t,r,n){for(var i=[],a,o=0;o<e.length;o++){var s=e[o],l=t[o],u=jF(s),c=jF(l);a==null&&(a=u[2]<0!=c[2]<0);var f=[],d=[],h=0,v=1/0,g=[],y=s.length;a&&(s=ARe(s));for(var x=TRe(s,l,u,c)*6,S=y-2,b=0;b<S;b+=2){var w=(x+b)%S+2;f[b+2]=s[w]-u[0],f[b+3]=s[w+1]-u[1]}f[0]=s[x]-u[0],f[1]=s[x+1]-u[1];for(var T=n/r,C=-n/2;C<=n/2;C+=T){for(var A=Math.sin(C),k=Math.cos(C),I=0,b=0;b<s.length;b+=2){var P=f[b],R=f[b+1],L=l[b]-c[0],O=l[b+1]-c[1],z=L*k-O*A,F=L*A+O*k;g[b]=z,g[b+1]=F;var H=z-P,q=F-R;I+=H*H+q*q}if(I<v){v=I,h=C;for(var $=0;$<g.length;$++)d[$]=g[$]}}i.push({from:f,to:d,fromCp:u,toCp:c,rotation:-h})}return i}function ux(e){return e.__isCombineMorphing}var O7="__mOriginal_";function cx(e,t,r){var n=O7+t,i=e[n]||e[t];e[n]||(e[n]=e[t]);var a=r.replace,o=r.after,s=r.before;e[t]=function(){var l=arguments,u;return s&&s.apply(this,l),a?u=a.apply(this,l):u=i.apply(this,l),o&&o.apply(this,l),u}}function Sv(e,t){var r=O7+t;e[r]&&(e[t]=e[r],e[r]=null)}function UF(e,t){for(var r=0;r<e.length;r++)for(var n=e[r],i=0;i<n.length;){var a=n[i],o=n[i+1];n[i++]=t[0]*a+t[2]*o+t[4],n[i++]=t[1]*a+t[3]*o+t[5]}}function N7(e,t){var r=e.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),i=CRe(tM(r),tM(n)),a=i[0],o=i[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&UF(a,s),l&&UF(o,l),cx(t,"updateTransform",{replace:u}),t.transform=null;var c=MRe(a,o,10,Math.PI),f=[];cx(t,"buildPath",{replace:function(d){for(var h=t.__morphT,v=1-h,g=[],y=0;y<c.length;y++){var x=c[y],S=x.from,b=x.to,w=x.rotation*h,T=x.fromCp,C=x.toCp,A=Math.sin(w),k=Math.cos(w);L0(g,T,C,h);for(var I=0;I<S.length;I+=2){var P=S[I],R=S[I+1],L=b[I],O=b[I+1],z=P*v+L*h,F=R*v+O*h;f[I]=z*k-F*A+g[0],f[I+1]=z*A+F*k+g[1]}var H=f[0],q=f[1];d.moveTo(H,q);for(var I=2;I<S.length;){var L=f[I++],O=f[I++],$=f[I++],X=f[I++],B=f[I++],Y=f[I++];H===L&&q===O&&$===B&&X===Y?d.lineTo(B,Y):d.bezierCurveTo(L,O,$,X,B,Y),H=B,q=Y}}}})}function AP(e,t,r){if(!e||!t)return t;var n=r.done,i=r.during;N7(e,t),t.__morphT=0;function a(){Sv(t,"buildPath"),Sv(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},Ve({during:function(o){t.dirtyShape(),i&&i(o)},done:function(){a(),n&&n()}},r)),t}function kRe(e,t,r,n,i,a){var o=16;e=i===r?0:Math.round(32767*(e-r)/(i-r)),t=a===n?0:Math.round(32767*(t-n)/(a-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,f=0;(e&u)>0&&(c=1),(t&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function fx(e){var t=1/0,r=1/0,n=-1/0,i=-1/0,a=de(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),r=Math.min(f,r),n=Math.max(c,n),i=Math.max(f,i),[c,f]}),o=de(a,function(s,l){return{cp:s,z:kRe(s[0],s[1],t,r,n,i),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function z7(e){return _Re(e.path,e.count)}function nM(){return{fromIndividuals:[],toIndividuals:[],count:0}}function IRe(e,t,r){var n=[];function i(T){for(var C=0;C<T.length;C++){var A=T[C];ux(A)?i(A.childrenRef()):A instanceof vt&&n.push(A)}}i(e);var a=n.length;if(!a)return nM();var o=r.dividePath||z7,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),nM();n=fx(n),s=fx(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new Ko,d=0;d<a;d++){var h=n[d],v=s[d];v.parent=t,v.copyTransform(f),c||N7(h,v)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function g(T){for(var C=0;C<s.length;C++)s[C].addSelfToZr(T)}cx(t,"addSelfToZr",{after:function(T){g(T)}}),cx(t,"removeSelfFromZr",{after:function(T){for(var C=0;C<s.length;C++)s[C].removeSelfFromZr(T)}});function y(){t.__isCombineMorphing=!1,t.__morphT=-1,t.childrenRef=null,Sv(t,"addSelfToZr"),Sv(t,"removeSelfFromZr")}var x=s.length;if(c)for(var S=x,b=function(){S--,S===0&&(y(),l&&l())},d=0;d<x;d++){var w=c?Ve({delay:(r.delay||0)+c(d,x,n[d],s[d]),done:b},r):r;AP(n[d],s[d],w)}else t.__morphT=0,t.animateTo({__morphT:1},Ve({during:function(T){for(var C=0;C<x;C++){var A=s[C];A.__morphT=t.__morphT,A.dirtyShape()}u&&u(T)},done:function(){y();for(var T=0;T<e.length;T++)Sv(e[T],"updateTransform");l&&l()}},r));return t.__zr&&g(t.__zr),{fromIndividuals:n,toIndividuals:s,count:x}}function PRe(e,t,r){var n=t.length,i=[],a=r.dividePath||z7;function o(h){for(var v=0;v<h.length;v++){var g=h[v];ux(g)?o(g.childrenRef()):g instanceof vt&&i.push(g)}}if(ux(e)){o(e.childrenRef());var s=i.length;if(s<n)for(var l=0,u=s;u<n;u++)i.push(jk(i[l++%s]));i.length=n}else{i=a({path:e,count:n});for(var c=e.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(c);if(i.length!==n)return console.error("Invalid morphing: unmatched splitted path"),nM()}i=fx(i),t=fx(t);for(var f=r.individualDelay,u=0;u<n;u++){var d=f?Ve({delay:(r.delay||0)+f(u,n,i[u],t[u])},r):r;AP(i[u],t[u],d)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function YF(e){return ue(e[0])}function qF(e,t){for(var r=[],n=e.length,i=0;i<n;i++)r.push({one:e[i],many:[]});for(var i=0;i<t.length;i++){var a=t[i].length,o=void 0;for(o=0;o<a;o++)r[o%n].many.push(t[i][o])}for(var s=0,i=n-1;i>=0;i--)if(!r[i].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[i].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}var DRe={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n<e.count;n++){var i=jk(e.path);i.setStyle("opacity",r),t.push(i)}return t},split:null};function IT(e,t,r,n,i,a){if(!e.length||!t.length)return;var o=Nd("update",n,i);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;YF(e)&&(u=e,c=t),YF(t)&&(u=t,c=e);function f(x,S,b,w,T){var C=x.many,A=x.one;if(C.length===1&&!T){var k=S?C[0]:A,I=S?A:C[0];if(ux(k))f({many:[k],one:I},!0,b,w,!0);else{var P=s?Ve({delay:s(b,w)},l):l;AP(k,I,P),a(k,I,k,I,P)}}else for(var R=Ve({dividePath:DRe[r],individualDelay:s&&function(q,$,X,B){return s(q+b,w)}},l),L=S?IRe(C,A,R):PRe(A,C,R),O=L.fromIndividuals,z=L.toIndividuals,F=O.length,H=0;H<F;H++){var P=s?Ve({delay:s(H,F)},l):l;a(O[H],z[H],S?C[H]:x.one,S?x.one:C[H],P)}}for(var d=u?u===e:e.length>t.length,h=u?qF(c,u):qF(d?t:e,[d?e:t]),v=0,g=0;g<h.length;g++)v+=h[g].many.length;for(var y=0,g=0;g<h.length;g++)f(h[g],d,y,v),y+=h[g].many.length}function Ou(e){if(!e)return[];if(ue(e)){for(var t=[],r=0;r<e.length;r++)t.push(Ou(e[r]));return t}var n=[];return e.traverse(function(i){i instanceof vt&&!i.disableMorphing&&!i.invisible&&!i.ignore&&n.push(i)}),n}var B7=1e4,RRe=0,XF=1,ZF=2,ERe=Tt();function LRe(e,t){for(var r=e.dimensions,n=0;n<r.length;n++){var i=e.getDimensionInfo(r[n]);if(i&&i.otherDims[t]===0)return r[n]}}function ORe(e,t,r){var n=e.getDimensionInfo(r),i=n&&n.ordinalMeta;if(n){var a=e.get(n.name,t);return i&&i.categories[a]||a+""}}function KF(e,t,r,n){var i=n?"itemChildGroupId":"itemGroupId",a=LRe(e,i);if(a){var o=ORe(e,t,a);return o}var s=e.getRawDataItem(t),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return r||e.getId(t)}function QF(e){var t=[];return V(e,function(r){var n=r.data,i=r.dataGroupId;if(!(n.count()>B7))for(var a=n.getIndices(),o=0;o<a.length;o++)t.push({data:n,groupId:KF(n,o,i,!1),childGroupId:KF(n,o,i,!0),divide:r.divide,dataIndex:o})}),t}function PT(e,t,r){e.traverse(function(n){n instanceof vt&&lr(n,{style:{opacity:0}},t,{dataIndex:r,isFrom:!0})})}function DT(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function Rf(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function NRe(e,t,r){var n=Nd("update",r,t);n&&e.traverse(function(i){if(i instanceof ia){var a=kme(i);a&&i.animateFrom({style:a},n)}})}function zRe(e,t){var r=e.length;if(r!==t.length)return!1;for(var n=0;n<r;n++){var i=e[n],a=t[n];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function F7(e,t,r){var n=QF(e),i=QF(t);function a(b,w,T,C,A){(T||b)&&w.animateFrom({style:T&&T!==b?oe(oe({},T.style),b.style):b.style},A)}var o=!1,s=RRe,l=Oe(),u=Oe();n.forEach(function(b){b.groupId&&l.set(b.groupId,!0),b.childGroupId&&u.set(b.childGroupId,!0)});for(var c=0;c<i.length;c++){var f=i[c].groupId;if(u.get(f)){s=XF;break}var d=i[c].childGroupId;if(d&&l.get(d)){s=ZF;break}}function h(b,w){return function(T){var C=T.data,A=T.dataIndex;return w?C.getId(A):b?s===XF?T.childGroupId:T.groupId:s===ZF?T.childGroupId:T.groupId}}var v=zRe(n,i),g={};if(!v)for(var c=0;c<i.length;c++){var y=i[c],x=y.data.getItemGraphicEl(y.dataIndex);x&&(g[x.id]=!0)}function S(b,w){var T=n[w],C=i[b],A=C.data.hostModel,k=T.data.getItemGraphicEl(T.dataIndex),I=C.data.getItemGraphicEl(C.dataIndex);if(k===I){I&&NRe(I,C.dataIndex,A);return}k&&g[k.id]||I&&(Rf(I),k?(Rf(k),DT(k),o=!0,IT(Ou(k),Ou(I),C.divide,A,b,a)):PT(I,A,b))}new fs(n,i,h(!0,v),h(!1,v),null,"multiple").update(S).updateManyToOne(function(b,w){var T=i[b],C=T.data,A=C.hostModel,k=C.getItemGraphicEl(T.dataIndex),I=jt(de(w,function(P){return n[P].data.getItemGraphicEl(n[P].dataIndex)}),function(P){return P&&P!==k&&!g[P.id]});k&&(Rf(k),I.length?(V(I,function(P){Rf(P),DT(P)}),o=!0,IT(Ou(I),Ou(k),T.divide,A,b,a)):PT(k,A,T.dataIndex))}).updateOneToMany(function(b,w){var T=n[w],C=T.data.getItemGraphicEl(T.dataIndex);if(!(C&&g[C.id])){var A=jt(de(b,function(I){return i[I].data.getItemGraphicEl(i[I].dataIndex)}),function(I){return I&&I!==C}),k=i[b[0]].data.hostModel;A.length&&(V(A,function(I){return Rf(I)}),C?(Rf(C),DT(C),o=!0,IT(Ou(C),Ou(A),T.divide,k,b[0],a)):V(A,function(I){return PT(I,k,b[0])}))}}).updateManyToMany(function(b,w){new fs(w,b,function(T){return n[T].data.getId(n[T].dataIndex)},function(T){return i[T].data.getId(i[T].dataIndex)}).update(function(T,C){S(b[T],w[C])}).execute()}).execute(),o&&V(t,function(b){var w=b.data,T=w.hostModel,C=T&&r.getViewOfSeriesModel(T),A=Nd("update",T,0);C&&T.isAnimationEnabled()&&A&&A.duration>0&&C.group.traverse(function(k){k instanceof vt&&!k.animators.length&&k.animateFrom({style:{opacity:0}},A)})})}function JF(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function eV(e){return ue(e)?e.sort().join(","):e}function nl(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function BRe(e,t){var r=Oe(),n=Oe(),i=Oe();return V(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=JF(a),c=eV(u);n.set(c,{dataGroupId:s,data:l}),ue(u)&&V(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),V(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=JF(a),u=eV(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:nl(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:nl(s),data:s}]});else if(ue(l)){var f=[];V(l,function(v){var g=n.get(v);g.data&&f.push({dataGroupId:g.dataGroupId,divide:nl(g.data),data:g.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:nl(s)}]})}else{var d=i.get(l);if(d){var h=r.get(d.key);h||(h={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:nl(d.data)}],newSeries:[]},r.set(d.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:nl(s)})}}}}),r}function tV(e,t){for(var r=0;r<e.length;r++){var n=t.seriesIndex!=null&&t.seriesIndex===e[r].seriesIndex||t.seriesId!=null&&t.seriesId===e[r].id;if(n)return r}}function FRe(e,t,r,n){var i=[],a=[];V(Yt(e.from),function(o){var s=tV(t.oldSeries,o);s>=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:nl(t.oldData[s]),groupIdDim:o.dimension})}),V(Yt(e.to),function(o){var s=tV(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:nl(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&F7(i,a,n)}function VRe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){V(Yt(n.seriesTransition),function(i){V(Yt(i.to),function(a){for(var o=n.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][U0]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,r,n){var i=ERe(r);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)V(Yt(a),function(h){FRe(h,i,n,r)});else{var o=BRe(i,n);V(o.keys(),function(h){var v=o.get(h);F7(v.oldSeries,v.newSeries,r)})}V(n.updatedSeries,function(h){h[U0]&&(h[U0]=!1)})}for(var s=t.getSeries(),l=i.oldSeries=[],u=i.oldDataGroupIds=[],c=i.oldData=[],f=0;f<s.length;f++){var d=s[f].getData();d.count()<B7&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(d))}})}pt([ZSe]);pt([jSe]);pt([gbe,Dbe,$be,S_e,D_e,mwe,jwe,kCe,ZCe,rTe,fTe,a2e,P2e,$2e,nAe,sAe,mAe,CAe,OAe,$Ae,KAe,LMe]);pt(JMe);pt(Tke);pt(z8);pt(Bke);pt(_9);pt(Gke);pt(Kke);pt(BIe);pt(nPe);pt(Yg);pt(SPe);pt(wPe);pt(EPe);pt(VPe);pt(UPe);pt(QPe);pt(lDe);pt(ADe);pt(T7);pt(A7);pt(UDe);pt(D7);pt(R7);pt(KDe);pt(cRe);pt(hRe);pt(VRe);pt(fSe);const rV={DARK:{textColor:"#b3c3bc",axisColor:"#5b6f66",backgroundColor:"#27272a",splitLine:"#4c4c52"},LIGHT:{textColor:"#000",axisColor:"#000",backgroundColor:"#fff",splitLine:"#ddd"}},$Re=e=>!isNaN(new Date(e).getTime()),GRe=e=>e&&$Re(e)?new Date(e).toLocaleString():"",V7=({charts:e,lines:t,scatterplot:r})=>t.map(({key:n,name:i})=>({symbolSize:4,type:r?"scatter":"line",name:i,data:e[n]})),nV={type:"value",boundaryGap:[0,"5%"]},HRe=({splitAxis:e,yAxisLabels:t})=>e&&(!t||Array.isArray(t))?Array(2).fill(nV).map((r,n)=>({...r,...t?{name:t[n]}:{}})):{...nV,...t?{name:t}:{}},WRe=e=>new Date(e).toLocaleTimeString(),jRe=({chartValueFormatter:e,value:t})=>e?e(t):Array.isArray(t)?t[1]:t,URe=({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:a,yAxisLabels:o,xAxis:s,grid:l,scatterplot:u})=>({title:{text:t},tooltip:{trigger:"axis",formatter:c=>Array.isArray(c)&&c.length>0&&c.some(f=>!!f.value)?c.reduce((f,{axisValue:d,color:h,seriesName:v,value:g},y)=>`
|
215
|
-
${y===0?GRe(d):""}
|
216
|
-
${f}
|
217
|
-
<br>
|
218
|
-
<span style="color:${h};">
|
219
|
-
${v}: ${jRe({chartValueFormatter:i,value:g})}
|
220
|
-
</span>
|
221
|
-
`,""):"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:WRe}},grid:l||{left:60,right:40},yAxis:HRe({splitAxis:a,yAxisLabels:o}),series:V7({charts:e,lines:r,scatterplot:u}),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}}),YRe=e=>({symbol:"none",label:{formatter:t=>`Run #${t.dataIndex+1}`,padding:[0,0,8,0]},data:(e.markers||[]).map(t=>({xAxis:t}))}),qRe=e=>t=>{const{batch:r}=t;if(!r)return;const[{start:n,startValue:i,end:a}]=r,o=n>0&&a<=100||i>0;e.setOption({dataZoom:[{type:"slider",show:o}]})};function XRe({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:a,yAxisLabels:o,xAxis:s,grid:l,scatterplot:u,shouldReplaceMergeLines:c=!1}){const[f,d]=G.useState(null),h=fi(({theme:{isDarkMode:g}})=>g),v=G.useRef(null);return G.useEffect(()=>{if(!v.current)return;const g=E1e(v.current);g.setOption(URe({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:a,yAxisLabels:o,xAxis:s,grid:l,scatterplot:u})),g.on("datazoom",qRe(g));const y=()=>{g.resize(),g.setOption({xAxis:{splitNumber:window.innerWidth<900?2:7}})};return window.addEventListener("resize",y),g.group="swarmCharts",L1e("swarmCharts"),d(g),()=>{O1e(g),window.removeEventListener("resize",y)}},[v]),G.useEffect(()=>{const g=r.every(({key:y})=>!!e[y]);f&&g&&f.setOption({series:r.map(({key:y,yAxisIndex:x,...S},b)=>({...S,data:e[y],...a?{yAxisIndex:x||b}:{},...b===0?{markLine:YRe(e)}:{}}))})},[e,f,r]),G.useEffect(()=>{if(f){const{textColor:g,axisColor:y,backgroundColor:x,splitLine:S}=h?rV.DARK:rV.LIGHT;f.setOption({backgroundColor:x,textStyle:{color:g},title:{textStyle:{color:g}},legend:{icon:"circle",inactiveColor:g,textStyle:{color:g}},tooltip:{backgroundColor:x,textStyle:{color:g}},xAxis:{axisLine:{lineStyle:{color:y}}},yAxis:{axisLine:{lineStyle:{color:y}},splitLine:{lineStyle:{color:S}}}})}},[f,h]),G.useEffect(()=>{f&&f.setOption({series:V7({charts:e,lines:r,scatterplot:u})},c?{replaceMerge:["series"]}:void 0)},[r]),N.jsx("div",{ref:v,style:{width:"100%",height:"300px"}})}function ZRe(){const{data:e,refetch:t}=jde(),r=Zo(av.setUi),n=fi(({swarm:a})=>a.state),i=n===bn.SPAWNING||n==bn.RUNNING;G.useEffect(()=>{e&&r({ratios:e})},[e]),qx(t,5e3,{shouldRunInterval:i,immediate:!0})}const KRe=2e3;function QRe(){const e=Zo(xk.setSwarm),t=Zo(av.setUi),r=Zo(av.updateCharts),n=Zo(av.updateChartMarkers),i=fi(({swarm:f})=>f),a=G.useRef(i.state),[o,s]=G.useState(!1),{data:l,refetch:u}=Wde(),c=i.state===bn.SPAWNING||i.state==bn.RUNNING;G.useEffect(()=>{if(!l)return;const{state:f,currentResponseTimePercentiles:d,extendedStats:h,stats:v,errors:g,totalRps:y,totalFailPerSec:x,failRatio:S,workers:b,userCount:w,totalAvgResponseTime:T}=l,C=new Date().toISOString();o&&(s(!1),n(C));const A=Lp(y,2),k=Lp(x,2),I=Lp(S*100),R={...Object.entries(d).reduce((L,[O,z])=>({...L,[O]:[C,z||0]}),{}),currentRps:[C,A],currentFailPerSec:[C,k],totalAvgResponseTime:[C,Lp(T,2)],userCount:[C,w],time:C};t({extendedStats:h,stats:v,errors:g,totalRps:A,failRatio:I,workers:b,userCount:w}),r(R),e({state:f})},[l]),qx(u,KRe,{shouldRunInterval:c}),G.useEffect(()=>{i.state===bn.RUNNING&&a.current===bn.STOPPED&&s(!0),a.current=i.state},[i.state,a])}function JRe(){const{data:e,refetch:t}=Ude(),r=Zo(av.setUi),n=fi(({swarm:a})=>a.state),i=n===bn.SPAWNING||n==bn.RUNNING;G.useEffect(()=>{e&&r({exceptions:e.exceptions})},[e]),qx(t,5e3,{shouldRunInterval:i,immediate:!0})}function eEe(){return JRe(),N.jsx(Dhe,{})}const tEe=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message",markdown:!0}];function rEe({errors:e}){return N.jsx(Tg,{rows:e,structure:tEe})}const nEe=({ui:{errors:e}})=>({errors:e}),iEe=Ii(nEe)(rEe),aEe=`
|
222
|
-
Ready to take your load tests to the next level? With [Locust Cloud](https://locust.cloud), we take care of everything!
|
223
|
-
|
224
|
-
|
225
|
-
Whether your doing small load, or needing to generate millions of requests, we take care of the
|
226
|
-
load generation.
|
227
|
-
|
228
|
-
|
229
|
-
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!
|
230
|
-
|
231
|
-
|
232
|
-
Locust Cloud comes powered with a suite of features, including advanced graphs, stored testruns, open telemetry, and so much more!
|
233
|
-
`;function oEe(){const e=fi(({theme:{isDarkMode:t}})=>t);return N.jsxs(Bt,{children:[N.jsxs(Bt,{sx:{mb:2},children:[N.jsx(Et,{component:"h2",mb:1,variant:"h4",children:"Power Up Your Load Tests!"}),N.jsx(Hu,{content:aEe})]}),N.jsxs("ul",{children:[N.jsxs("li",{children:[N.jsx(Et,{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?N.jsx("img",{src:"/assets/graphs-dark.png",width:"100%"}):N.jsx("img",{src:"/assets/graphs-light.png",width:"100%"})]}),N.jsxs("li",{children:[N.jsx(Et,{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?N.jsx("img",{src:"/assets/testruns-dark.png",width:"100%"}):N.jsx("img",{src:"/assets/testruns-light.png",width:"100%"}),N.jsxs(Et,{children:["Vist us at"," ",N.jsx(Kr,{href:"https://www.locust.cloud/get-started?plan=basic",children:"locust.cloud"})," for a free consultation today!"]})]})]})]})}const sEe=e=>e.includes("CRITICAL")?el[900]:e.includes("ERROR")?el[700]:e.includes("WARNING")?UX[900]:e.includes("DEBUG")?Mu[700]:"text.primary";function $7({log:e}){return N.jsx(Et,{color:sEe(e),fontFamily:"monospace",variant:"body2",children:e})}function lEe({workerId:e,logs:t}){const[r,n]=G.useState(!1);G.useEffect(()=>{t.slice(localStorage[e]).some(X6)&&n(!0)},[t]);const i=G.useCallback(()=>{n(!1),localStorage[e]=t.length},[]);return N.jsxs(BM,{children:[N.jsxs(VM,{expandIcon:N.jsx(vk,{}),onClick:i,children:[r&&N.jsx(tG,{color:"secondary","data-testid":"worker-notification"}),e]}),N.jsx(FM,{children:N.jsx(gs,{elevation:3,sx:{p:2},children:t.map((a,o)=>N.jsx($7,{log:a},`worker-${e}-log-${o}`))})})]})}function uEe(){const{master:e,workers:t}=fi(({logViewer:r})=>r);return N.jsxs(Bt,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[N.jsxs(Bt,{children:[N.jsx(Et,{sx:{mb:2},variant:"h5",children:"Master Logs"}),N.jsx(gs,{elevation:3,sx:{p:2,fontFamily:"monospace"},children:e.map((r,n)=>N.jsx($7,{log:r},`master-log-${n}`))})]}),!z6(t)&&N.jsxs(Bt,{children:[N.jsx(Et,{sx:{mb:2},variant:"h5",children:"Worker Logs"}),Object.entries(t).map(([r,n],i)=>N.jsx(lEe,{logs:n,workerId:r},`worker-log-${i}`))]})]})}function cEe({extendedCsvFiles:e,statsHistoryEnabled:t}){const r=fi(({theme:{isDarkMode:n}})=>n);return N.jsxs(B$,{sx:{display:"flex",flexDirection:"column"},children:[N.jsx(lf,{children:N.jsx(Kr,{href:"./stats/requests/csv",children:"Download requests CSV"})}),t&&N.jsx(lf,{children:N.jsx(Kr,{href:"./stats/requests_full_history/csv",children:"Download full request statistics history CSV"})}),N.jsx(lf,{children:N.jsx(Kr,{href:"./stats/failures/csv",children:"Download failures CSV"})}),N.jsx(lf,{children:N.jsx(Kr,{href:"./exceptions/csv",children:"Download exceptions CSV"})}),N.jsx(lf,{children:N.jsx(Kr,{href:`./stats/report?theme=${r?vo.DARK:vo.LIGHT}`,target:"_blank",children:"Download Report"})}),e&&e.map(({href:n,title:i},a)=>N.jsx(lf,{children:N.jsx(Kr,{href:n,children:i})},`extended-csv-${a}`))]})}const fEe=({swarm:{extendedCsvFiles:e,statsHistoryEnabled:t}})=>({extendedCsvFiles:e,statsHistoryEnabled:t}),dEe=Ii(fEe)(cEe);var Ip={},iV;function hEe(){if(iV)return Ip;iV=1;var e=El();Object.defineProperty(Ip,"__esModule",{value:!0}),Ip.default=void 0;var t=e(Ll()),r=vs(),n=(0,t.default)((0,r.jsx)("path",{d:"M14.67 5v14H9.33V5h5.34zm1 14H21V5h-5.33v14zm-7.34 0V5H3v14h5.33z"}),"ViewColumn");return Ip.default=n,Ip}var pEe=hEe();const vEe=ki(pEe);function gEe({structure:e,selectedColumns:t,addColumn:r,removeColumn:n}){const[i,a]=G.useState(null);return N.jsxs(L$,{sx:{alignSelf:{xs:"end",lg:"start"},my:2},children:[N.jsx(_o,{onClick:o=>a(o.currentTarget),variant:"outlined",children:N.jsx(vEe,{})}),N.jsx(G$,{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"left"},onClose:()=>a(null),open:!!i,children:N.jsx(N$,{sx:{p:2},children:e.map(({key:o,title:s})=>N.jsx(O$,{control:N.jsx(toe,{checked:t.includes(o),onChange:()=>{t.includes(o)?n(o):r(o)}}),label:s},o))})})]})}function mEe(e){const[t,r]=G.useState(e.map(o=>o.key));return{selectedColumns:t,addColumn:o=>{r([...t,o])},removeColumn:o=>{r(t.filter(s=>s!==o))},filteredStructure:(o=>o.filter(s=>t.includes(s.key)))(e)}}const yEe=go.percentilesToStatistics?go.percentilesToStatistics.map(e=>({title:`${e*100}%ile (ms)`,key:`responseTimePercentile${e}`})):[],xEe=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},...yEe,{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 SEe({stats:e,tableStructure:t=xEe}){const{selectedColumns:r,addColumn:n,removeColumn:i,filteredStructure:a}=mEe(t);return N.jsxs(Bt,{sx:{display:"flex",flexDirection:{xs:"column",lg:"row-reverse",alignItems:"flex-start"},columnGap:1},children:[N.jsx(gEe,{addColumn:n,removeColumn:i,selectedColumns:r,structure:t}),N.jsx(Tg,{hasTotalRow:!0,rows:e,structure:a})]})}const bEe=({ui:{stats:e}})=>({stats:e}),_Ee=Ii(bEe)(SEe),wEe=go.percentilesToChart?go.percentilesToChart.map(e=>({name:`${e*100}th percentile`,key:`responseTimePercentile${e}`})):[],CEe=["#ff9f00","#9966CC","#8A2BE2","#8E4585","#E0B0FF","#C8A2C8","#E6E6FA"],TEe=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:wEe,colors:CEe},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}],colors:["#0099ff"]}];function AEe({charts:e}){return TEe.map((t,r)=>N.jsx(XRe,{...t,charts:e},`swarm-chart-${r}`))}const MEe=({ui:{charts:e}})=>({charts:e}),kEe=Ii(MEe)(AEe);function IEe(e){return(e*100).toFixed(1)+"%"}function iM({classRatio:e}){return N.jsx("ul",{children:Object.entries(e).map(([t,{ratio:r,tasks:n}])=>N.jsxs("li",{children:[`${IEe(r)} ${t}`,n&&N.jsx(iM,{classRatio:n})]},`nested-ratio-${t}`))})}function PEe({ratios:{perClass:e,total:t}}){return!e&&!t?null:N.jsxs("div",{children:[e&&N.jsxs(N.Fragment,{children:[N.jsx("h3",{children:"Ratio Per Class"}),N.jsx(iM,{classRatio:e})]}),t&&N.jsxs(N.Fragment,{children:[N.jsx("h3",{children:"Total Ratio"}),N.jsx(iM,{classRatio:t})]})]})}const DEe=({ui:{ratios:e}})=>({ratios:e}),REe=Ii(DEe)(PEe);function EEe(){return ZRe(),N.jsx(REe,{})}const LEe=[{key:"id",title:"Worker"},{key:"state",title:"State"},{key:"userCount",title:"# users"},{key:"cpuUsage",title:"CPU usage"},{key:"memoryUsage",title:"Memory usage",formatter:jX}];function OEe({workers:e=[]}){return N.jsx(Tg,{defaultSortKey:"id",rows:e,structure:LEe})}const NEe=({ui:{workers:e}})=>({workers:e}),zEe=Ii(NEe)(OEe),Yo={stats:{component:_Ee,key:"stats",title:"Statistics"},charts:{component:kEe,key:"charts",title:"Charts"},failures:{component:iEe,key:"failures",title:"Failures"},exceptions:{component:eEe,key:"exceptions",title:"Exceptions"},ratios:{component:EEe,key:"ratios",title:"Current Ratio"},reports:{component:dEe,key:"reports",title:"Download Data"},logs:{component:uEe,key:Z6,title:"Logs"},workers:{component:zEe,key:"workers",title:"Workers",shouldDisplayTab:e=>e.swarm.isDistributed},locustCloud:{component:oEe,key:"locustcloud",title:"Locust Cloud"}},BEe=[Yo.stats,Yo.charts,Yo.failures,Yo.exceptions,Yo.ratios,Yo.reports,Yo.logs,Yo.workers,Yo.locustCloud];function FEe({hasNotification:e,title:t}){return N.jsxs(Bt,{sx:{display:"flex",alignItems:"center"},children:[e&&N.jsx(tG,{color:"secondary"}),N.jsx("span",{children:t})]})}function VEe({currentTabIndexFromQuery:e,notification:t,setNotification:r,setUrl:n,tabs:i}){const[a,o]=G.useState(e),s=(l,u)=>{const c=i[u].key;t[c]&&r({[c]:!1}),Nhe({tab:c}),n({query:{tab:c}}),o(u)};return G.useEffect(()=>{o(e)},[e]),N.jsxs(bg,{maxWidth:"xl",children:[N.jsx(Bt,{sx:{mb:2},children:N.jsx(ose,{onChange:s,scrollButtons:"auto",value:a,variant:"scrollable",children:i.map(({key:l,title:u},c)=>N.jsx(ooe,{label:N.jsx(FEe,{hasNotification:t[l],title:u})},`tab-${c}`))})}),i.map(({component:l=Mhe},u)=>a===u&&N.jsx(l,{},`tabpabel-${u}`))]})}const $Ee=(e,{tabs:t,extendedTabs:r})=>{const{notification:n,swarm:{extendedTabs:i},url:{query:a}}=e,s=(t||[...BEe,...r||i||[]]).filter(({shouldDisplayTab:u})=>!u||u&&u(e)),l=a&&a.tab?s.findIndex(({key:u})=>u===a.tab):0;return{notification:n,tabs:s,currentTabIndexFromQuery:l>-1?l:0}},GEe={setNotification:Q6.setNotification,setUrl:Fhe.setUrl},HEe=Ii($Ee,GEe)(VEe);function WEe({swarmState:e,tabs:t,extendedTabs:r}){QRe(),xhe();const n=N6();return N.jsxs(d$,{theme:n,children:[N.jsx(D$,{}),N.jsx(fhe,{children:e===bn.READY?N.jsx(Sk,{}):N.jsx(HEe,{extendedTabs:r,tabs:t})})]})}const jEe=({swarm:{state:e}})=>({swarmState:e}),UEe=Ii(jEe)(WEe);function YEe(){if(DE){const e=SV({reducer:hx({theme:O6})});return N.jsx(IE,{store:e,children:N.jsx(Lfe,{...DE})})}else return N.jsx(IE,{store:Ghe,children:N.jsx(UEe,{})})}function qEe({error:e}){return N.jsxs("div",{role:"alert",children:[N.jsx("p",{children:"Something went wrong"}),e.message&&N.jsx("pre",{style:{color:"red"},children:e.message}),"If the issue persists, please consider opening an"," ",N.jsx("a",{href:"https://github.com/locustio/locust/issues/new?assignees=&labels=bug&projects=&template=bug.yml",children:"issue"})]})}const XEe=$Y.createRoot(document.getElementById("root"));XEe.render(N.jsx(HY,{fallbackRender:qEe,children:N.jsx(YEe,{})}));
|