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.
@@ -0,0 +1,233 @@
1
+ var $Y=Object.defineProperty;var VY=(e,t,r)=>t in e?$Y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var S_=(e,t,r)=>VY(e,typeof t!="symbol"?t+"":t,r);function HY(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 Xi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function GY(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 __={exports:{}},Wp={},w_={exports:{}},Wt={};/**
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 rL;function WY(){if(rL)return Wt;rL=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 p={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||p}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 b(Y,Z,j){this.props=Y,this.context=Z,this.refs=g,this.updater=j||p}var S=b.prototype=new x;S.constructor=b,v(S,y.prototype),S.isPureReactComponent=!0;var w=Array.isArray,T=Object.prototype.hasOwnProperty,C={current:null},A={key:!0,ref:!0,__self:!0,__source:!0};function I(Y,Z,j){var te,fe={},re=null,ce=null;if(Z!=null)for(te in Z.ref!==void 0&&(ce=Z.ref),Z.key!==void 0&&(re=""+Z.key),Z)T.call(Z,te)&&!A.hasOwnProperty(te)&&(fe[te]=Z[te]);var ne=arguments.length-2;if(ne===1)fe.children=j;else if(1<ne){for(var pe=Array(ne),me=0;me<ne;me++)pe[me]=arguments[me+2];fe.children=pe}if(Y&&Y.defaultProps)for(te in ne=Y.defaultProps,ne)fe[te]===void 0&&(fe[te]=ne[te]);return{$$typeof:e,type:Y,key:re,ref:ce,props:fe,_owner:C.current}}function k(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 O=/\/+/g;function E(Y,Z){return typeof Y=="object"&&Y!==null&&Y.key!=null?R(""+Y.key):Z.toString(36)}function z(Y,Z,j,te,fe){var re=typeof Y;(re==="undefined"||re==="boolean")&&(Y=null);var ce=!1;if(Y===null)ce=!0;else switch(re){case"string":case"number":ce=!0;break;case"object":switch(Y.$$typeof){case e:case t:ce=!0}}if(ce)return ce=Y,fe=fe(ce),Y=te===""?"."+E(ce,0):te,w(fe)?(j="",Y!=null&&(j=Y.replace(O,"$&/")+"/"),z(fe,Z,j,"",function(me){return me})):fe!=null&&(P(fe)&&(fe=k(fe,j+(!fe.key||ce&&ce.key===fe.key?"":(""+fe.key).replace(O,"$&/")+"/")+Y)),Z.push(fe)),1;if(ce=0,te=te===""?".":te+":",w(Y))for(var ne=0;ne<Y.length;ne++){re=Y[ne];var pe=te+E(re,ne);ce+=z(re,Z,j,pe,fe)}else if(pe=d(Y),typeof pe=="function")for(Y=pe.call(Y),ne=0;!(re=Y.next()).done;)re=re.value,pe=te+E(re,ne++),ce+=z(re,Z,j,pe,fe);else if(re==="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 ce}function B(Y,Z,j){if(Y==null)return Y;var te=[],fe=0;return z(Y,te,"","",function(re){return Z.call(j,re,fe++)}),te}function W(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 X={current:null},H={transition:null},q={ReactCurrentDispatcher:X,ReactCurrentBatchConfig:H,ReactCurrentOwner:C};function F(){throw Error("act(...) is not supported in production builds of React.")}return Wt.Children={map:B,forEach:function(Y,Z,j){B(Y,function(){Z.apply(this,arguments)},j)},count:function(Y){var Z=0;return B(Y,function(){Z++}),Z},toArray:function(Y){return B(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}},Wt.Component=y,Wt.Fragment=r,Wt.Profiler=i,Wt.PureComponent=b,Wt.StrictMode=n,Wt.Suspense=l,Wt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q,Wt.act=F,Wt.cloneElement=function(Y,Z,j){if(Y==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+Y+".");var te=v({},Y.props),fe=Y.key,re=Y.ref,ce=Y._owner;if(Z!=null){if(Z.ref!==void 0&&(re=Z.ref,ce=C.current),Z.key!==void 0&&(fe=""+Z.key),Y.type&&Y.type.defaultProps)var ne=Y.type.defaultProps;for(pe in Z)T.call(Z,pe)&&!A.hasOwnProperty(pe)&&(te[pe]=Z[pe]===void 0&&ne!==void 0?ne[pe]:Z[pe])}var pe=arguments.length-2;if(pe===1)te.children=j;else if(1<pe){ne=Array(pe);for(var me=0;me<pe;me++)ne[me]=arguments[me+2];te.children=ne}return{$$typeof:e,type:Y.type,key:fe,ref:re,props:te,_owner:ce}},Wt.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},Wt.createElement=I,Wt.createFactory=function(Y){var Z=I.bind(null,Y);return Z.type=Y,Z},Wt.createRef=function(){return{current:null}},Wt.forwardRef=function(Y){return{$$typeof:s,render:Y}},Wt.isValidElement=P,Wt.lazy=function(Y){return{$$typeof:c,_payload:{_status:-1,_result:Y},_init:W}},Wt.memo=function(Y,Z){return{$$typeof:u,type:Y,compare:Z===void 0?null:Z}},Wt.startTransition=function(Y){var Z=H.transition;H.transition={};try{Y()}finally{H.transition=Z}},Wt.unstable_act=F,Wt.useCallback=function(Y,Z){return X.current.useCallback(Y,Z)},Wt.useContext=function(Y){return X.current.useContext(Y)},Wt.useDebugValue=function(){},Wt.useDeferredValue=function(Y){return X.current.useDeferredValue(Y)},Wt.useEffect=function(Y,Z){return X.current.useEffect(Y,Z)},Wt.useId=function(){return X.current.useId()},Wt.useImperativeHandle=function(Y,Z,j){return X.current.useImperativeHandle(Y,Z,j)},Wt.useInsertionEffect=function(Y,Z){return X.current.useInsertionEffect(Y,Z)},Wt.useLayoutEffect=function(Y,Z){return X.current.useLayoutEffect(Y,Z)},Wt.useMemo=function(Y,Z){return X.current.useMemo(Y,Z)},Wt.useReducer=function(Y,Z,j){return X.current.useReducer(Y,Z,j)},Wt.useRef=function(Y){return X.current.useRef(Y)},Wt.useState=function(Y){return X.current.useState(Y)},Wt.useSyncExternalStore=function(Y,Z,j){return X.current.useSyncExternalStore(Y,Z,j)},Wt.useTransition=function(){return X.current.useTransition()},Wt.version="18.3.1",Wt}var nL;function vx(){return nL||(nL=1,w_.exports=WY()),w_.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 iL;function jY(){if(iL)return Wp;iL=1;var e=vx(),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,p=null;u!==void 0&&(d=""+u),l.key!==void 0&&(d=""+l.key),l.ref!==void 0&&(p=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:p,props:f,_owner:i.current}}return Wp.Fragment=r,Wp.jsx=o,Wp.jsxs=o,Wp}var aL;function Gs(){return aL||(aL=1,__.exports=jY()),__.exports}var N=Gs(),ly={},C_={exports:{}},gi={},T_={exports:{}},A_={};/**
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 oL;function UY(){return oL||(oL=1,function(e){function t(H,q){var F=H.length;H.push(q);e:for(;0<F;){var Y=F-1>>>1,Z=H[Y];if(0<i(Z,q))H[Y]=q,H[F]=Z,F=Y;else break e}}function r(H){return H.length===0?null:H[0]}function n(H){if(H.length===0)return null;var q=H[0],F=H.pop();if(F!==q){H[0]=F;e:for(var Y=0,Z=H.length,j=Z>>>1;Y<j;){var te=2*(Y+1)-1,fe=H[te],re=te+1,ce=H[re];if(0>i(fe,F))re<Z&&0>i(ce,fe)?(H[Y]=ce,H[re]=F,Y=re):(H[Y]=fe,H[te]=F,Y=te);else if(re<Z&&0>i(ce,F))H[Y]=ce,H[re]=F,Y=re;else break e}}return q}function i(H,q){var F=H.sortIndex-q.sortIndex;return F!==0?F:H.id-q.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,p=!1,v=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(H){for(var q=r(u);q!==null;){if(q.callback===null)n(u);else if(q.startTime<=H)n(u),q.sortIndex=q.expirationTime,t(l,q);else break;q=r(u)}}function w(H){if(g=!1,S(H),!v)if(r(l)!==null)v=!0,W(T);else{var q=r(u);q!==null&&X(w,q.startTime-H)}}function T(H,q){v=!1,g&&(g=!1,x(I),I=-1),p=!0;var F=d;try{for(S(q),f=r(l);f!==null&&(!(f.expirationTime>q)||H&&!R());){var Y=f.callback;if(typeof Y=="function"){f.callback=null,d=f.priorityLevel;var Z=Y(f.expirationTime<=q);q=e.unstable_now(),typeof Z=="function"?f.callback=Z:f===r(l)&&n(l),S(q)}else n(l);f=r(l)}if(f!==null)var j=!0;else{var te=r(u);te!==null&&X(w,te.startTime-q),j=!1}return j}finally{f=null,d=F,p=!1}}var C=!1,A=null,I=-1,k=5,P=-1;function R(){return!(e.unstable_now()-P<k)}function O(){if(A!==null){var H=e.unstable_now();P=H;var q=!0;try{q=A(!0,H)}finally{q?E():(C=!1,A=null)}}else C=!1}var E;if(typeof b=="function")E=function(){b(O)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,B=z.port2;z.port1.onmessage=O,E=function(){B.postMessage(null)}}else E=function(){y(O,0)};function W(H){A=H,C||(C=!0,E())}function X(H,q){I=y(function(){H(e.unstable_now())},q)}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(H){H.callback=null},e.unstable_continueExecution=function(){v||p||(v=!0,W(T))},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return d},e.unstable_getFirstCallbackNode=function(){return r(l)},e.unstable_next=function(H){switch(d){case 1:case 2:case 3:var q=3;break;default:q=d}var F=d;d=q;try{return H()}finally{d=F}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(H,q){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var F=d;d=H;try{return q()}finally{d=F}},e.unstable_scheduleCallback=function(H,q,F){var Y=e.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?Y+F:Y):F=Y,H){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=F+Z,H={id:c++,callback:q,priorityLevel:H,startTime:F,expirationTime:Z,sortIndex:-1},F>Y?(H.sortIndex=F,t(u,H),r(l)===null&&H===r(u)&&(g?(x(I),I=-1):g=!0,X(w,F-Y))):(H.sortIndex=Z,t(l,H),v||p||(v=!0,W(T))),H},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(H){var q=d;return function(){var F=d;d=q;try{return H.apply(this,arguments)}finally{d=F}}}}(A_)),A_}var sL;function YY(){return sL||(sL=1,T_.exports=UY()),T_.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 lL;function qY(){if(lL)return gi;lL=1;var e=vx(),t=YY();function r(h){for(var m="https://reactjs.org/docs/error-decoder.html?invariant="+h,_=1;_<arguments.length;_++)m+="&args[]="+encodeURIComponent(arguments[_]);return"Minified React error #"+h+"; 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(h,m){o(h,m),o(h+"Capture",m)}function o(h,m){for(i[h]=m,h=0;h<m.length;h++)n.add(m[h])}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(h){return l.call(f,h)?!0:l.call(c,h)?!1:u.test(h)?f[h]=!0:(c[h]=!0,!1)}function p(h,m,_,M){if(_!==null&&_.type===0)return!1;switch(typeof m){case"function":case"symbol":return!0;case"boolean":return M?!1:_!==null?!_.acceptsBooleans:(h=h.toLowerCase().slice(0,5),h!=="data-"&&h!=="aria-");default:return!1}}function v(h,m,_,M){if(m===null||typeof m>"u"||p(h,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(h,m,_,M,D,L,U){this.acceptsBooleans=m===2||m===3||m===4,this.attributeName=M,this.attributeNamespace=D,this.mustUseProperty=_,this.propertyName=h,this.type=m,this.sanitizeURL=L,this.removeEmptyString=U}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(h){y[h]=new g(h,0,!1,h,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(h){var m=h[0];y[m]=new g(m,1,!1,h[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(h){y[h]=new g(h,2,!1,h.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(h){y[h]=new g(h,2,!1,h,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(h){y[h]=new g(h,3,!1,h.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(h){y[h]=new g(h,3,!0,h,null,!1,!1)}),["capture","download"].forEach(function(h){y[h]=new g(h,4,!1,h,null,!1,!1)}),["cols","rows","size","span"].forEach(function(h){y[h]=new g(h,6,!1,h,null,!1,!1)}),["rowSpan","start"].forEach(function(h){y[h]=new g(h,5,!1,h.toLowerCase(),null,!1,!1)});var x=/[\-:]([a-z])/g;function b(h){return h[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(h){var m=h.replace(x,b);y[m]=new g(m,1,!1,h,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(h){var m=h.replace(x,b);y[m]=new g(m,1,!1,h,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(h){var m=h.replace(x,b);y[m]=new g(m,1,!1,h,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(h){y[h]=new g(h,1,!1,h.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(h){y[h]=new g(h,1,!1,h.toLowerCase(),null,!0,!0)});function S(h,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?h.removeAttribute(m):h.setAttribute(m,""+_)):D.mustUseProperty?h[D.propertyName]=_===null?D.type===3?!1:"":_:(m=D.attributeName,M=D.attributeNamespace,_===null?h.removeAttribute(m):(D=D.type,_=D===3||D===4&&_===!0?"":""+_,M?h.setAttributeNS(M,m,_):h.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"),I=Symbol.for("react.strict_mode"),k=Symbol.for("react.profiler"),P=Symbol.for("react.provider"),R=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),W=Symbol.for("react.lazy"),X=Symbol.for("react.offscreen"),H=Symbol.iterator;function q(h){return h===null||typeof h!="object"?null:(h=H&&h[H]||h["@@iterator"],typeof h=="function"?h:null)}var F=Object.assign,Y;function Z(h){if(Y===void 0)try{throw Error()}catch(_){var m=_.stack.trim().match(/\n( *(at )?)/);Y=m&&m[1]||""}return`
34
+ `+Y+h}var j=!1;function te(h,m){if(!h||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(h,[],m)}else{try{m.call()}catch(se){M=se}h.call(m.prototype)}else{try{throw Error()}catch(se){M=se}h()}}catch(se){if(se&&M&&typeof se.stack=="string"){for(var D=se.stack.split(`
35
+ `),L=M.stack.split(`
36
+ `),U=D.length-1,K=L.length-1;1<=U&&0<=K&&D[U]!==L[K];)K--;for(;1<=U&&0<=K;U--,K--)if(D[U]!==L[K]){if(U!==1||K!==1)do if(U--,K--,0>K||D[U]!==L[K]){var Q=`
37
+ `+D[U].replace(" at new "," at ");return h.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",h.displayName)),Q}while(1<=U&&0<=K);break}}}finally{j=!1,Error.prepareStackTrace=_}return(h=h?h.displayName||h.name:"")?Z(h):""}function fe(h){switch(h.tag){case 5:return Z(h.type);case 16:return Z("Lazy");case 13:return Z("Suspense");case 19:return Z("SuspenseList");case 0:case 2:case 15:return h=te(h.type,!1),h;case 11:return h=te(h.type.render,!1),h;case 1:return h=te(h.type,!0),h;default:return""}}function re(h){if(h==null)return null;if(typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case A:return"Fragment";case C:return"Portal";case k:return"Profiler";case I:return"StrictMode";case E:return"Suspense";case z:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case R:return(h.displayName||"Context")+".Consumer";case P:return(h._context.displayName||"Context")+".Provider";case O:var m=h.render;return h=h.displayName,h||(h=m.displayName||m.name||"",h=h!==""?"ForwardRef("+h+")":"ForwardRef"),h;case B:return m=h.displayName||null,m!==null?m:re(h.type)||"Memo";case W:m=h._payload,h=h._init;try{return re(h(m))}catch{}}return null}function ce(h){var m=h.type;switch(h.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 h=m.render,h=h.displayName||h.name||"",m.displayName||(h!==""?"ForwardRef("+h+")":"ForwardRef");case 7:return"Fragment";case 5:return m;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return re(m);case 8:return m===I?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof m=="function")return m.displayName||m.name||null;if(typeof m=="string")return m}return null}function ne(h){switch(typeof h){case"boolean":case"number":case"string":case"undefined":return h;case"object":return h;default:return""}}function pe(h){var m=h.type;return(h=h.nodeName)&&h.toLowerCase()==="input"&&(m==="checkbox"||m==="radio")}function me(h){var m=pe(h)?"checked":"value",_=Object.getOwnPropertyDescriptor(h.constructor.prototype,m),M=""+h[m];if(!h.hasOwnProperty(m)&&typeof _<"u"&&typeof _.get=="function"&&typeof _.set=="function"){var D=_.get,L=_.set;return Object.defineProperty(h,m,{configurable:!0,get:function(){return D.call(this)},set:function(U){M=""+U,L.call(this,U)}}),Object.defineProperty(h,m,{enumerable:_.enumerable}),{getValue:function(){return M},setValue:function(U){M=""+U},stopTracking:function(){h._valueTracker=null,delete h[m]}}}}function le(h){h._valueTracker||(h._valueTracker=me(h))}function Se(h){if(!h)return!1;var m=h._valueTracker;if(!m)return!0;var _=m.getValue(),M="";return h&&(M=pe(h)?h.checked?"true":"false":h.value),h=M,h!==_?(m.setValue(h),!0):!1}function ze(h){if(h=h||(typeof document<"u"?document:void 0),typeof h>"u")return null;try{return h.activeElement||h.body}catch{return h.body}}function Te(h,m){var _=m.checked;return F({},m,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:_??h._wrapperState.initialChecked})}function ye(h,m){var _=m.defaultValue==null?"":m.defaultValue,M=m.checked!=null?m.checked:m.defaultChecked;_=ne(m.value!=null?m.value:_),h._wrapperState={initialChecked:M,initialValue:_,controlled:m.type==="checkbox"||m.type==="radio"?m.checked!=null:m.value!=null}}function ft(h,m){m=m.checked,m!=null&&S(h,"checked",m,!1)}function He(h,m){ft(h,m);var _=ne(m.value),M=m.type;if(_!=null)M==="number"?(_===0&&h.value===""||h.value!=_)&&(h.value=""+_):h.value!==""+_&&(h.value=""+_);else if(M==="submit"||M==="reset"){h.removeAttribute("value");return}m.hasOwnProperty("value")?xt(h,m.type,_):m.hasOwnProperty("defaultValue")&&xt(h,m.type,ne(m.defaultValue)),m.checked==null&&m.defaultChecked!=null&&(h.defaultChecked=!!m.defaultChecked)}function gt(h,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=""+h._wrapperState.initialValue,_||m===h.value||(h.value=m),h.defaultValue=m}_=h.name,_!==""&&(h.name=""),h.defaultChecked=!!h._wrapperState.initialChecked,_!==""&&(h.name=_)}function xt(h,m,_){(m!=="number"||ze(h.ownerDocument)!==h)&&(_==null?h.defaultValue=""+h._wrapperState.initialValue:h.defaultValue!==""+_&&(h.defaultValue=""+_))}var _t=Array.isArray;function nt(h,m,_,M){if(h=h.options,m){m={};for(var D=0;D<_.length;D++)m["$"+_[D]]=!0;for(_=0;_<h.length;_++)D=m.hasOwnProperty("$"+h[_].value),h[_].selected!==D&&(h[_].selected=D),D&&M&&(h[_].defaultSelected=!0)}else{for(_=""+ne(_),m=null,D=0;D<h.length;D++){if(h[D].value===_){h[D].selected=!0,M&&(h[D].defaultSelected=!0);return}m!==null||h[D].disabled||(m=h[D])}m!==null&&(m.selected=!0)}}function Ft(h,m){if(m.dangerouslySetInnerHTML!=null)throw Error(r(91));return F({},m,{value:void 0,defaultValue:void 0,children:""+h._wrapperState.initialValue})}function Gt(h,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}h._wrapperState={initialValue:ne(_)}}function Rt(h,m){var _=ne(m.value),M=ne(m.defaultValue);_!=null&&(_=""+_,_!==h.value&&(h.value=_),m.defaultValue==null&&h.defaultValue!==_&&(h.defaultValue=_)),M!=null&&(h.defaultValue=""+M)}function ue(h){var m=h.textContent;m===h._wrapperState.initialValue&&m!==""&&m!==null&&(h.value=m)}function _e(h){switch(h){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 Ve(h,m){return h==null||h==="http://www.w3.org/1999/xhtml"?_e(m):h==="http://www.w3.org/2000/svg"&&m==="foreignObject"?"http://www.w3.org/1999/xhtml":h}var ke,Me=function(h){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(m,_,M,D){MSApp.execUnsafeLocalFunction(function(){return h(m,_,M,D)})}:h}(function(h,m){if(h.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in h)h.innerHTML=m;else{for(ke=ke||document.createElement("div"),ke.innerHTML="<svg>"+m.valueOf().toString()+"</svg>",m=ke.firstChild;h.firstChild;)h.removeChild(h.firstChild);for(;m.firstChild;)h.appendChild(m.firstChild)}});function Mt(h,m){if(m){var _=h.firstChild;if(_&&_===h.lastChild&&_.nodeType===3){_.nodeValue=m;return}}h.textContent=m}var qt={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},Ge=["Webkit","ms","Moz","O"];Object.keys(qt).forEach(function(h){Ge.forEach(function(m){m=m+h.charAt(0).toUpperCase()+h.substring(1),qt[m]=qt[h]})});function ct(h,m,_){return m==null||typeof m=="boolean"||m===""?"":_||typeof m!="number"||m===0||qt.hasOwnProperty(h)&&qt[h]?(""+m).trim():m+"px"}function It(h,m){h=h.style;for(var _ in m)if(m.hasOwnProperty(_)){var M=_.indexOf("--")===0,D=ct(_,m[_],M);_==="float"&&(_="cssFloat"),M?h.setProperty(_,D):h[_]=D}}var Ee=F({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 We(h,m){if(m){if(Ee[h]&&(m.children!=null||m.dangerouslySetInnerHTML!=null))throw Error(r(137,h));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 pt(h,m){if(h.indexOf("-")===-1)return typeof m.is=="string";switch(h){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 Ct=null;function Jt(h){return h=h.target||h.srcElement||window,h.correspondingUseElement&&(h=h.correspondingUseElement),h.nodeType===3?h.parentNode:h}var wr=null,Nr=null,Jr=null;function Ki(h){if(h=kp(h)){if(typeof wr!="function")throw Error(r(280));var m=h.stateNode;m&&(m=wm(m),wr(h.stateNode,h.type,m))}}function $n(h){Nr?Jr?Jr.push(h):Jr=[h]:Nr=h}function lo(){if(Nr){var h=Nr,m=Jr;if(Jr=Nr=null,Ki(h),m)for(h=0;h<m.length;h++)Ki(m[h])}}function as(h,m){return h(m)}function os(){}var ss=!1;function uo(h,m,_){if(ss)return h(m,_);ss=!0;try{return as(h,m,_)}finally{ss=!1,(Nr!==null||Jr!==null)&&(os(),lo())}}function Ar(h,m){var _=h.stateNode;if(_===null)return null;var M=wm(_);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)||(h=h.type,M=!(h==="button"||h==="input"||h==="select"||h==="textarea")),h=!M;break e;default:h=!1}if(h)return null;if(_&&typeof _!="function")throw Error(r(231,m,typeof _));return _}var yr=!1;if(s)try{var en={};Object.defineProperty(en,"passive",{get:function(){yr=!0}}),window.addEventListener("test",en,en),window.removeEventListener("test",en,en)}catch{yr=!1}function co(h,m,_,M,D,L,U,K,Q){var se=Array.prototype.slice.call(arguments,3);try{m.apply(_,se)}catch(Ae){this.onError(Ae)}}var ui=!1,tn=null,ci=!1,fo=null,Vn={onError:function(h){ui=!0,tn=h}};function Qi(h,m,_,M,D,L,U,K,Q){ui=!1,tn=null,co.apply(Vn,arguments)}function ge(h,m,_,M,D,L,U,K,Q){if(Qi.apply(this,arguments),ui){if(ui){var se=tn;ui=!1,tn=null}else throw Error(r(198));ci||(ci=!0,fo=se)}}function de(h){var m=h,_=h;if(h.alternate)for(;m.return;)m=m.return;else{h=m;do m=h,(m.flags&4098)!==0&&(_=m.return),h=m.return;while(h)}return m.tag===3?_:null}function Ie(h){if(h.tag===13){var m=h.memoizedState;if(m===null&&(h=h.alternate,h!==null&&(m=h.memoizedState)),m!==null)return m.dehydrated}return null}function qe(h){if(de(h)!==h)throw Error(r(188))}function $t(h){var m=h.alternate;if(!m){if(m=de(h),m===null)throw Error(r(188));return m!==h?null:h}for(var _=h,M=m;;){var D=_.return;if(D===null)break;var L=D.alternate;if(L===null){if(M=D.return,M!==null){_=M;continue}break}if(D.child===L.child){for(L=D.child;L;){if(L===_)return qe(D),h;if(L===M)return qe(D),m;L=L.sibling}throw Error(r(188))}if(_.return!==M.return)_=D,M=L;else{for(var U=!1,K=D.child;K;){if(K===_){U=!0,_=D,M=L;break}if(K===M){U=!0,M=D,_=L;break}K=K.sibling}if(!U){for(K=L.child;K;){if(K===_){U=!0,_=L,M=D;break}if(K===M){U=!0,M=L,_=D;break}K=K.sibling}if(!U)throw Error(r(189))}}if(_.alternate!==M)throw Error(r(190))}if(_.tag!==3)throw Error(r(188));return _.stateNode.current===_?h:m}function Mr(h){return h=$t(h),h!==null?Ir(h):null}function Ir(h){if(h.tag===5||h.tag===6)return h;for(h=h.child;h!==null;){var m=Ir(h);if(m!==null)return m;h=h.sibling}return null}var Hn=t.unstable_scheduleCallback,Lt=t.unstable_cancelCallback,Gn=t.unstable_shouldYield,Q7=t.unstable_requestPaint,Hr=t.unstable_now,J7=t.unstable_getCurrentPriorityLevel,Vb=t.unstable_ImmediatePriority,DP=t.unstable_UserBlockingPriority,nm=t.unstable_NormalPriority,eU=t.unstable_LowPriority,RP=t.unstable_IdlePriority,im=null,po=null;function tU(h){if(po&&typeof po.onCommitFiberRoot=="function")try{po.onCommitFiberRoot(im,h,void 0,(h.current.flags&128)===128)}catch{}}var La=Math.clz32?Math.clz32:iU,rU=Math.log,nU=Math.LN2;function iU(h){return h>>>=0,h===0?32:31-(rU(h)/nU|0)|0}var am=64,om=4194304;function fp(h){switch(h&-h){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 h&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return h&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return h}}function sm(h,m){var _=h.pendingLanes;if(_===0)return 0;var M=0,D=h.suspendedLanes,L=h.pingedLanes,U=_&268435455;if(U!==0){var K=U&~D;K!==0?M=fp(K):(L&=U,L!==0&&(M=fp(L)))}else U=_&~D,U!==0?M=fp(U):L!==0&&(M=fp(L));if(M===0)return 0;if(m!==0&&m!==M&&(m&D)===0&&(D=M&-M,L=m&-m,D>=L||D===16&&(L&4194240)!==0))return m;if((M&4)!==0&&(M|=_&16),m=h.entangledLanes,m!==0)for(h=h.entanglements,m&=M;0<m;)_=31-La(m),D=1<<_,M|=h[_],m&=~D;return M}function aU(h,m){switch(h){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 oU(h,m){for(var _=h.suspendedLanes,M=h.pingedLanes,D=h.expirationTimes,L=h.pendingLanes;0<L;){var U=31-La(L),K=1<<U,Q=D[U];Q===-1?((K&_)===0||(K&M)!==0)&&(D[U]=aU(K,m)):Q<=m&&(h.expiredLanes|=K),L&=~K}}function Hb(h){return h=h.pendingLanes&-1073741825,h!==0?h:h&1073741824?1073741824:0}function LP(){var h=am;return am<<=1,(am&4194240)===0&&(am=64),h}function Gb(h){for(var m=[],_=0;31>_;_++)m.push(h);return m}function dp(h,m,_){h.pendingLanes|=m,m!==536870912&&(h.suspendedLanes=0,h.pingedLanes=0),h=h.eventTimes,m=31-La(m),h[m]=_}function sU(h,m){var _=h.pendingLanes&~m;h.pendingLanes=m,h.suspendedLanes=0,h.pingedLanes=0,h.expiredLanes&=m,h.mutableReadLanes&=m,h.entangledLanes&=m,m=h.entanglements;var M=h.eventTimes;for(h=h.expirationTimes;0<_;){var D=31-La(_),L=1<<D;m[D]=0,M[D]=-1,h[D]=-1,_&=~L}}function Wb(h,m){var _=h.entangledLanes|=m;for(h=h.entanglements;_;){var M=31-La(_),D=1<<M;D&m|h[M]&m&&(h[M]|=m),_&=~D}}var pr=0;function EP(h){return h&=-h,1<h?4<h?(h&268435455)!==0?16:536870912:4:1}var OP,jb,NP,zP,BP,Ub=!1,lm=[],qs=null,Xs=null,Zs=null,pp=new Map,hp=new Map,Ks=[],lU="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 FP(h,m){switch(h){case"focusin":case"focusout":qs=null;break;case"dragenter":case"dragleave":Xs=null;break;case"mouseover":case"mouseout":Zs=null;break;case"pointerover":case"pointerout":pp.delete(m.pointerId);break;case"gotpointercapture":case"lostpointercapture":hp.delete(m.pointerId)}}function vp(h,m,_,M,D,L){return h===null||h.nativeEvent!==L?(h={blockedOn:m,domEventName:_,eventSystemFlags:M,nativeEvent:L,targetContainers:[D]},m!==null&&(m=kp(m),m!==null&&jb(m)),h):(h.eventSystemFlags|=M,m=h.targetContainers,D!==null&&m.indexOf(D)===-1&&m.push(D),h)}function uU(h,m,_,M,D){switch(m){case"focusin":return qs=vp(qs,h,m,_,M,D),!0;case"dragenter":return Xs=vp(Xs,h,m,_,M,D),!0;case"mouseover":return Zs=vp(Zs,h,m,_,M,D),!0;case"pointerover":var L=D.pointerId;return pp.set(L,vp(pp.get(L)||null,h,m,_,M,D)),!0;case"gotpointercapture":return L=D.pointerId,hp.set(L,vp(hp.get(L)||null,h,m,_,M,D)),!0}return!1}function $P(h){var m=cu(h.target);if(m!==null){var _=de(m);if(_!==null){if(m=_.tag,m===13){if(m=Ie(_),m!==null){h.blockedOn=m,BP(h.priority,function(){NP(_)});return}}else if(m===3&&_.stateNode.current.memoizedState.isDehydrated){h.blockedOn=_.tag===3?_.stateNode.containerInfo:null;return}}}h.blockedOn=null}function um(h){if(h.blockedOn!==null)return!1;for(var m=h.targetContainers;0<m.length;){var _=qb(h.domEventName,h.eventSystemFlags,m[0],h.nativeEvent);if(_===null){_=h.nativeEvent;var M=new _.constructor(_.type,_);Ct=M,_.target.dispatchEvent(M),Ct=null}else return m=kp(_),m!==null&&jb(m),h.blockedOn=_,!1;m.shift()}return!0}function VP(h,m,_){um(h)&&_.delete(m)}function cU(){Ub=!1,qs!==null&&um(qs)&&(qs=null),Xs!==null&&um(Xs)&&(Xs=null),Zs!==null&&um(Zs)&&(Zs=null),pp.forEach(VP),hp.forEach(VP)}function gp(h,m){h.blockedOn===m&&(h.blockedOn=null,Ub||(Ub=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,cU)))}function mp(h){function m(D){return gp(D,h)}if(0<lm.length){gp(lm[0],h);for(var _=1;_<lm.length;_++){var M=lm[_];M.blockedOn===h&&(M.blockedOn=null)}}for(qs!==null&&gp(qs,h),Xs!==null&&gp(Xs,h),Zs!==null&&gp(Zs,h),pp.forEach(m),hp.forEach(m),_=0;_<Ks.length;_++)M=Ks[_],M.blockedOn===h&&(M.blockedOn=null);for(;0<Ks.length&&(_=Ks[0],_.blockedOn===null);)$P(_),_.blockedOn===null&&Ks.shift()}var ef=w.ReactCurrentBatchConfig,cm=!0;function fU(h,m,_,M){var D=pr,L=ef.transition;ef.transition=null;try{pr=1,Yb(h,m,_,M)}finally{pr=D,ef.transition=L}}function dU(h,m,_,M){var D=pr,L=ef.transition;ef.transition=null;try{pr=4,Yb(h,m,_,M)}finally{pr=D,ef.transition=L}}function Yb(h,m,_,M){if(cm){var D=qb(h,m,_,M);if(D===null)fS(h,m,M,fm,_),FP(h,M);else if(uU(D,h,m,_,M))M.stopPropagation();else if(FP(h,M),m&4&&-1<lU.indexOf(h)){for(;D!==null;){var L=kp(D);if(L!==null&&OP(L),L=qb(h,m,_,M),L===null&&fS(h,m,M,fm,_),L===D)break;D=L}D!==null&&M.stopPropagation()}else fS(h,m,M,null,_)}}var fm=null;function qb(h,m,_,M){if(fm=null,h=Jt(M),h=cu(h),h!==null)if(m=de(h),m===null)h=null;else if(_=m.tag,_===13){if(h=Ie(m),h!==null)return h;h=null}else if(_===3){if(m.stateNode.current.memoizedState.isDehydrated)return m.tag===3?m.stateNode.containerInfo:null;h=null}else m!==h&&(h=null);return fm=h,null}function HP(h){switch(h){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(J7()){case Vb:return 1;case DP:return 4;case nm:case eU:return 16;case RP:return 536870912;default:return 16}default:return 16}}var Qs=null,Xb=null,dm=null;function GP(){if(dm)return dm;var h,m=Xb,_=m.length,M,D="value"in Qs?Qs.value:Qs.textContent,L=D.length;for(h=0;h<_&&m[h]===D[h];h++);var U=_-h;for(M=1;M<=U&&m[_-M]===D[L-M];M++);return dm=D.slice(h,1<M?1-M:void 0)}function pm(h){var m=h.keyCode;return"charCode"in h?(h=h.charCode,h===0&&m===13&&(h=13)):h=m,h===10&&(h=13),32<=h||h===13?h:0}function hm(){return!0}function WP(){return!1}function Ri(h){function m(_,M,D,L,U){this._reactName=_,this._targetInst=D,this.type=M,this.nativeEvent=L,this.target=U,this.currentTarget=null;for(var K in h)h.hasOwnProperty(K)&&(_=h[K],this[K]=_?_(L):L[K]);return this.isDefaultPrevented=(L.defaultPrevented!=null?L.defaultPrevented:L.returnValue===!1)?hm:WP,this.isPropagationStopped=WP,this}return F(m.prototype,{preventDefault:function(){this.defaultPrevented=!0;var _=this.nativeEvent;_&&(_.preventDefault?_.preventDefault():typeof _.returnValue!="unknown"&&(_.returnValue=!1),this.isDefaultPrevented=hm)},stopPropagation:function(){var _=this.nativeEvent;_&&(_.stopPropagation?_.stopPropagation():typeof _.cancelBubble!="unknown"&&(_.cancelBubble=!0),this.isPropagationStopped=hm)},persist:function(){},isPersistent:hm}),m}var tf={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(h){return h.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zb=Ri(tf),yp=F({},tf,{view:0,detail:0}),pU=Ri(yp),Kb,Qb,xp,vm=F({},yp,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:eS,button:0,buttons:0,relatedTarget:function(h){return h.relatedTarget===void 0?h.fromElement===h.srcElement?h.toElement:h.fromElement:h.relatedTarget},movementX:function(h){return"movementX"in h?h.movementX:(h!==xp&&(xp&&h.type==="mousemove"?(Kb=h.screenX-xp.screenX,Qb=h.screenY-xp.screenY):Qb=Kb=0,xp=h),Kb)},movementY:function(h){return"movementY"in h?h.movementY:Qb}}),jP=Ri(vm),hU=F({},vm,{dataTransfer:0}),vU=Ri(hU),gU=F({},yp,{relatedTarget:0}),Jb=Ri(gU),mU=F({},tf,{animationName:0,elapsedTime:0,pseudoElement:0}),yU=Ri(mU),xU=F({},tf,{clipboardData:function(h){return"clipboardData"in h?h.clipboardData:window.clipboardData}}),bU=Ri(xU),SU=F({},tf,{data:0}),UP=Ri(SU),_U={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wU={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"},CU={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function TU(h){var m=this.nativeEvent;return m.getModifierState?m.getModifierState(h):(h=CU[h])?!!m[h]:!1}function eS(){return TU}var AU=F({},yp,{key:function(h){if(h.key){var m=_U[h.key]||h.key;if(m!=="Unidentified")return m}return h.type==="keypress"?(h=pm(h),h===13?"Enter":String.fromCharCode(h)):h.type==="keydown"||h.type==="keyup"?wU[h.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:eS,charCode:function(h){return h.type==="keypress"?pm(h):0},keyCode:function(h){return h.type==="keydown"||h.type==="keyup"?h.keyCode:0},which:function(h){return h.type==="keypress"?pm(h):h.type==="keydown"||h.type==="keyup"?h.keyCode:0}}),MU=Ri(AU),IU=F({},vm,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),YP=Ri(IU),kU=F({},yp,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:eS}),PU=Ri(kU),DU=F({},tf,{propertyName:0,elapsedTime:0,pseudoElement:0}),RU=Ri(DU),LU=F({},vm,{deltaX:function(h){return"deltaX"in h?h.deltaX:"wheelDeltaX"in h?-h.wheelDeltaX:0},deltaY:function(h){return"deltaY"in h?h.deltaY:"wheelDeltaY"in h?-h.wheelDeltaY:"wheelDelta"in h?-h.wheelDelta:0},deltaZ:0,deltaMode:0}),EU=Ri(LU),OU=[9,13,27,32],tS=s&&"CompositionEvent"in window,bp=null;s&&"documentMode"in document&&(bp=document.documentMode);var NU=s&&"TextEvent"in window&&!bp,qP=s&&(!tS||bp&&8<bp&&11>=bp),XP=" ",ZP=!1;function KP(h,m){switch(h){case"keyup":return OU.indexOf(m.keyCode)!==-1;case"keydown":return m.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function QP(h){return h=h.detail,typeof h=="object"&&"data"in h?h.data:null}var rf=!1;function zU(h,m){switch(h){case"compositionend":return QP(m);case"keypress":return m.which!==32?null:(ZP=!0,XP);case"textInput":return h=m.data,h===XP&&ZP?null:h;default:return null}}function BU(h,m){if(rf)return h==="compositionend"||!tS&&KP(h,m)?(h=GP(),dm=Xb=Qs=null,rf=!1,h):null;switch(h){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 qP&&m.locale!=="ko"?null:m.data;default:return null}}var FU={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 JP(h){var m=h&&h.nodeName&&h.nodeName.toLowerCase();return m==="input"?!!FU[h.type]:m==="textarea"}function eD(h,m,_,M){$n(M),m=bm(m,"onChange"),0<m.length&&(_=new Zb("onChange","change",null,_,M),h.push({event:_,listeners:m}))}var Sp=null,_p=null;function $U(h){yD(h,0)}function gm(h){var m=lf(h);if(Se(m))return h}function VU(h,m){if(h==="change")return m}var tD=!1;if(s){var rS;if(s){var nS="oninput"in document;if(!nS){var rD=document.createElement("div");rD.setAttribute("oninput","return;"),nS=typeof rD.oninput=="function"}rS=nS}else rS=!1;tD=rS&&(!document.documentMode||9<document.documentMode)}function nD(){Sp&&(Sp.detachEvent("onpropertychange",iD),_p=Sp=null)}function iD(h){if(h.propertyName==="value"&&gm(_p)){var m=[];eD(m,_p,h,Jt(h)),uo($U,m)}}function HU(h,m,_){h==="focusin"?(nD(),Sp=m,_p=_,Sp.attachEvent("onpropertychange",iD)):h==="focusout"&&nD()}function GU(h){if(h==="selectionchange"||h==="keyup"||h==="keydown")return gm(_p)}function WU(h,m){if(h==="click")return gm(m)}function jU(h,m){if(h==="input"||h==="change")return gm(m)}function UU(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var Ea=typeof Object.is=="function"?Object.is:UU;function wp(h,m){if(Ea(h,m))return!0;if(typeof h!="object"||h===null||typeof m!="object"||m===null)return!1;var _=Object.keys(h),M=Object.keys(m);if(_.length!==M.length)return!1;for(M=0;M<_.length;M++){var D=_[M];if(!l.call(m,D)||!Ea(h[D],m[D]))return!1}return!0}function aD(h){for(;h&&h.firstChild;)h=h.firstChild;return h}function oD(h,m){var _=aD(h);h=0;for(var M;_;){if(_.nodeType===3){if(M=h+_.textContent.length,h<=m&&M>=m)return{node:_,offset:m-h};h=M}e:{for(;_;){if(_.nextSibling){_=_.nextSibling;break e}_=_.parentNode}_=void 0}_=aD(_)}}function sD(h,m){return h&&m?h===m?!0:h&&h.nodeType===3?!1:m&&m.nodeType===3?sD(h,m.parentNode):"contains"in h?h.contains(m):h.compareDocumentPosition?!!(h.compareDocumentPosition(m)&16):!1:!1}function lD(){for(var h=window,m=ze();m instanceof h.HTMLIFrameElement;){try{var _=typeof m.contentWindow.location.href=="string"}catch{_=!1}if(_)h=m.contentWindow;else break;m=ze(h.document)}return m}function iS(h){var m=h&&h.nodeName&&h.nodeName.toLowerCase();return m&&(m==="input"&&(h.type==="text"||h.type==="search"||h.type==="tel"||h.type==="url"||h.type==="password")||m==="textarea"||h.contentEditable==="true")}function YU(h){var m=lD(),_=h.focusedElem,M=h.selectionRange;if(m!==_&&_&&_.ownerDocument&&sD(_.ownerDocument.documentElement,_)){if(M!==null&&iS(_)){if(m=M.start,h=M.end,h===void 0&&(h=m),"selectionStart"in _)_.selectionStart=m,_.selectionEnd=Math.min(h,_.value.length);else if(h=(m=_.ownerDocument||document)&&m.defaultView||window,h.getSelection){h=h.getSelection();var D=_.textContent.length,L=Math.min(M.start,D);M=M.end===void 0?L:Math.min(M.end,D),!h.extend&&L>M&&(D=M,M=L,L=D),D=oD(_,L);var U=oD(_,M);D&&U&&(h.rangeCount!==1||h.anchorNode!==D.node||h.anchorOffset!==D.offset||h.focusNode!==U.node||h.focusOffset!==U.offset)&&(m=m.createRange(),m.setStart(D.node,D.offset),h.removeAllRanges(),L>M?(h.addRange(m),h.extend(U.node,U.offset)):(m.setEnd(U.node,U.offset),h.addRange(m)))}}for(m=[],h=_;h=h.parentNode;)h.nodeType===1&&m.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<m.length;_++)h=m[_],h.element.scrollLeft=h.left,h.element.scrollTop=h.top}}var qU=s&&"documentMode"in document&&11>=document.documentMode,nf=null,aS=null,Cp=null,oS=!1;function uD(h,m,_){var M=_.window===_?_.document:_.nodeType===9?_:_.ownerDocument;oS||nf==null||nf!==ze(M)||(M=nf,"selectionStart"in M&&iS(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}),Cp&&wp(Cp,M)||(Cp=M,M=bm(aS,"onSelect"),0<M.length&&(m=new Zb("onSelect","select",null,m,_),h.push({event:m,listeners:M}),m.target=nf)))}function mm(h,m){var _={};return _[h.toLowerCase()]=m.toLowerCase(),_["Webkit"+h]="webkit"+m,_["Moz"+h]="moz"+m,_}var af={animationend:mm("Animation","AnimationEnd"),animationiteration:mm("Animation","AnimationIteration"),animationstart:mm("Animation","AnimationStart"),transitionend:mm("Transition","TransitionEnd")},sS={},cD={};s&&(cD=document.createElement("div").style,"AnimationEvent"in window||(delete af.animationend.animation,delete af.animationiteration.animation,delete af.animationstart.animation),"TransitionEvent"in window||delete af.transitionend.transition);function ym(h){if(sS[h])return sS[h];if(!af[h])return h;var m=af[h],_;for(_ in m)if(m.hasOwnProperty(_)&&_ in cD)return sS[h]=m[_];return h}var fD=ym("animationend"),dD=ym("animationiteration"),pD=ym("animationstart"),hD=ym("transitionend"),vD=new Map,gD="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 Js(h,m){vD.set(h,m),a(m,[h])}for(var lS=0;lS<gD.length;lS++){var uS=gD[lS],XU=uS.toLowerCase(),ZU=uS[0].toUpperCase()+uS.slice(1);Js(XU,"on"+ZU)}Js(fD,"onAnimationEnd"),Js(dD,"onAnimationIteration"),Js(pD,"onAnimationStart"),Js("dblclick","onDoubleClick"),Js("focusin","onFocus"),Js("focusout","onBlur"),Js(hD,"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 Tp="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(" "),KU=new Set("cancel close invalid load scroll toggle".split(" ").concat(Tp));function mD(h,m,_){var M=h.type||"unknown-event";h.currentTarget=_,ge(M,m,void 0,h),h.currentTarget=null}function yD(h,m){m=(m&4)!==0;for(var _=0;_<h.length;_++){var M=h[_],D=M.event;M=M.listeners;e:{var L=void 0;if(m)for(var U=M.length-1;0<=U;U--){var K=M[U],Q=K.instance,se=K.currentTarget;if(K=K.listener,Q!==L&&D.isPropagationStopped())break e;mD(D,K,se),L=Q}else for(U=0;U<M.length;U++){if(K=M[U],Q=K.instance,se=K.currentTarget,K=K.listener,Q!==L&&D.isPropagationStopped())break e;mD(D,K,se),L=Q}}}if(ci)throw h=fo,ci=!1,fo=null,h}function Cr(h,m){var _=m[mS];_===void 0&&(_=m[mS]=new Set);var M=h+"__bubble";_.has(M)||(xD(m,h,2,!1),_.add(M))}function cS(h,m,_){var M=0;m&&(M|=4),xD(_,h,M,m)}var xm="_reactListening"+Math.random().toString(36).slice(2);function Ap(h){if(!h[xm]){h[xm]=!0,n.forEach(function(_){_!=="selectionchange"&&(KU.has(_)||cS(_,!1,h),cS(_,!0,h))});var m=h.nodeType===9?h:h.ownerDocument;m===null||m[xm]||(m[xm]=!0,cS("selectionchange",!1,m))}}function xD(h,m,_,M){switch(HP(m)){case 1:var D=fU;break;case 4:D=dU;break;default:D=Yb}_=D.bind(null,m,_,h),D=void 0,!yr||m!=="touchstart"&&m!=="touchmove"&&m!=="wheel"||(D=!0),M?D!==void 0?h.addEventListener(m,_,{capture:!0,passive:D}):h.addEventListener(m,_,!0):D!==void 0?h.addEventListener(m,_,{passive:D}):h.addEventListener(m,_,!1)}function fS(h,m,_,M,D){var L=M;if((m&1)===0&&(m&2)===0&&M!==null)e:for(;;){if(M===null)return;var U=M.tag;if(U===3||U===4){var K=M.stateNode.containerInfo;if(K===D||K.nodeType===8&&K.parentNode===D)break;if(U===4)for(U=M.return;U!==null;){var Q=U.tag;if((Q===3||Q===4)&&(Q=U.stateNode.containerInfo,Q===D||Q.nodeType===8&&Q.parentNode===D))return;U=U.return}for(;K!==null;){if(U=cu(K),U===null)return;if(Q=U.tag,Q===5||Q===6){M=L=U;continue e}K=K.parentNode}}M=M.return}uo(function(){var se=L,Ae=Jt(_),Pe=[];e:{var we=vD.get(h);if(we!==void 0){var Ue=Zb,Qe=h;switch(h){case"keypress":if(pm(_)===0)break e;case"keydown":case"keyup":Ue=MU;break;case"focusin":Qe="focus",Ue=Jb;break;case"focusout":Qe="blur",Ue=Jb;break;case"beforeblur":case"afterblur":Ue=Jb;break;case"click":if(_.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ue=jP;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ue=vU;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ue=PU;break;case fD:case dD:case pD:Ue=yU;break;case hD:Ue=RU;break;case"scroll":Ue=pU;break;case"wheel":Ue=EU;break;case"copy":case"cut":case"paste":Ue=bU;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ue=YP}var et=(m&4)!==0,Gr=!et&&h==="scroll",ie=et?we!==null?we+"Capture":null:we;et=[];for(var ee=se,ae;ee!==null;){ae=ee;var Oe=ae.stateNode;if(ae.tag===5&&Oe!==null&&(ae=Oe,ie!==null&&(Oe=Ar(ee,ie),Oe!=null&&et.push(Mp(ee,Oe,ae)))),Gr)break;ee=ee.return}0<et.length&&(we=new Ue(we,Qe,null,_,Ae),Pe.push({event:we,listeners:et}))}}if((m&7)===0){e:{if(we=h==="mouseover"||h==="pointerover",Ue=h==="mouseout"||h==="pointerout",we&&_!==Ct&&(Qe=_.relatedTarget||_.fromElement)&&(cu(Qe)||Qe[ls]))break e;if((Ue||we)&&(we=Ae.window===Ae?Ae:(we=Ae.ownerDocument)?we.defaultView||we.parentWindow:window,Ue?(Qe=_.relatedTarget||_.toElement,Ue=se,Qe=Qe?cu(Qe):null,Qe!==null&&(Gr=de(Qe),Qe!==Gr||Qe.tag!==5&&Qe.tag!==6)&&(Qe=null)):(Ue=null,Qe=se),Ue!==Qe)){if(et=jP,Oe="onMouseLeave",ie="onMouseEnter",ee="mouse",(h==="pointerout"||h==="pointerover")&&(et=YP,Oe="onPointerLeave",ie="onPointerEnter",ee="pointer"),Gr=Ue==null?we:lf(Ue),ae=Qe==null?we:lf(Qe),we=new et(Oe,ee+"leave",Ue,_,Ae),we.target=Gr,we.relatedTarget=ae,Oe=null,cu(Ae)===se&&(et=new et(ie,ee+"enter",Qe,_,Ae),et.target=ae,et.relatedTarget=Gr,Oe=et),Gr=Oe,Ue&&Qe)t:{for(et=Ue,ie=Qe,ee=0,ae=et;ae;ae=of(ae))ee++;for(ae=0,Oe=ie;Oe;Oe=of(Oe))ae++;for(;0<ee-ae;)et=of(et),ee--;for(;0<ae-ee;)ie=of(ie),ae--;for(;ee--;){if(et===ie||ie!==null&&et===ie.alternate)break t;et=of(et),ie=of(ie)}et=null}else et=null;Ue!==null&&bD(Pe,we,Ue,et,!1),Qe!==null&&Gr!==null&&bD(Pe,Gr,Qe,et,!0)}}e:{if(we=se?lf(se):window,Ue=we.nodeName&&we.nodeName.toLowerCase(),Ue==="select"||Ue==="input"&&we.type==="file")var rt=VU;else if(JP(we))if(tD)rt=jU;else{rt=GU;var mt=HU}else(Ue=we.nodeName)&&Ue.toLowerCase()==="input"&&(we.type==="checkbox"||we.type==="radio")&&(rt=WU);if(rt&&(rt=rt(h,se))){eD(Pe,rt,_,Ae);break e}mt&&mt(h,we,se),h==="focusout"&&(mt=we._wrapperState)&&mt.controlled&&we.type==="number"&&xt(we,"number",we.value)}switch(mt=se?lf(se):window,h){case"focusin":(JP(mt)||mt.contentEditable==="true")&&(nf=mt,aS=se,Cp=null);break;case"focusout":Cp=aS=nf=null;break;case"mousedown":oS=!0;break;case"contextmenu":case"mouseup":case"dragend":oS=!1,uD(Pe,_,Ae);break;case"selectionchange":if(qU)break;case"keydown":case"keyup":uD(Pe,_,Ae)}var yt;if(tS)e:{switch(h){case"compositionstart":var Tt="onCompositionStart";break e;case"compositionend":Tt="onCompositionEnd";break e;case"compositionupdate":Tt="onCompositionUpdate";break e}Tt=void 0}else rf?KP(h,_)&&(Tt="onCompositionEnd"):h==="keydown"&&_.keyCode===229&&(Tt="onCompositionStart");Tt&&(qP&&_.locale!=="ko"&&(rf||Tt!=="onCompositionStart"?Tt==="onCompositionEnd"&&rf&&(yt=GP()):(Qs=Ae,Xb="value"in Qs?Qs.value:Qs.textContent,rf=!0)),mt=bm(se,Tt),0<mt.length&&(Tt=new UP(Tt,h,null,_,Ae),Pe.push({event:Tt,listeners:mt}),yt?Tt.data=yt:(yt=QP(_),yt!==null&&(Tt.data=yt)))),(yt=NU?zU(h,_):BU(h,_))&&(se=bm(se,"onBeforeInput"),0<se.length&&(Ae=new UP("onBeforeInput","beforeinput",null,_,Ae),Pe.push({event:Ae,listeners:se}),Ae.data=yt))}yD(Pe,m)})}function Mp(h,m,_){return{instance:h,listener:m,currentTarget:_}}function bm(h,m){for(var _=m+"Capture",M=[];h!==null;){var D=h,L=D.stateNode;D.tag===5&&L!==null&&(D=L,L=Ar(h,_),L!=null&&M.unshift(Mp(h,L,D)),L=Ar(h,m),L!=null&&M.push(Mp(h,L,D))),h=h.return}return M}function of(h){if(h===null)return null;do h=h.return;while(h&&h.tag!==5);return h||null}function bD(h,m,_,M,D){for(var L=m._reactName,U=[];_!==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=Ar(_,L),Q!=null&&U.unshift(Mp(_,Q,K))):D||(Q=Ar(_,L),Q!=null&&U.push(Mp(_,Q,K)))),_=_.return}U.length!==0&&h.push({event:m,listeners:U})}var QU=/\r\n?/g,JU=/\u0000|\uFFFD/g;function SD(h){return(typeof h=="string"?h:""+h).replace(QU,`
38
+ `).replace(JU,"")}function Sm(h,m,_){if(m=SD(m),SD(h)!==m&&_)throw Error(r(425))}function _m(){}var dS=null,pS=null;function hS(h,m){return h==="textarea"||h==="noscript"||typeof m.children=="string"||typeof m.children=="number"||typeof m.dangerouslySetInnerHTML=="object"&&m.dangerouslySetInnerHTML!==null&&m.dangerouslySetInnerHTML.__html!=null}var vS=typeof setTimeout=="function"?setTimeout:void 0,eY=typeof clearTimeout=="function"?clearTimeout:void 0,_D=typeof Promise=="function"?Promise:void 0,tY=typeof queueMicrotask=="function"?queueMicrotask:typeof _D<"u"?function(h){return _D.resolve(null).then(h).catch(rY)}:vS;function rY(h){setTimeout(function(){throw h})}function gS(h,m){var _=m,M=0;do{var D=_.nextSibling;if(h.removeChild(_),D&&D.nodeType===8)if(_=D.data,_==="/$"){if(M===0){h.removeChild(D),mp(m);return}M--}else _!=="$"&&_!=="$?"&&_!=="$!"||M++;_=D}while(_);mp(m)}function el(h){for(;h!=null;h=h.nextSibling){var m=h.nodeType;if(m===1||m===3)break;if(m===8){if(m=h.data,m==="$"||m==="$!"||m==="$?")break;if(m==="/$")return null}}return h}function wD(h){h=h.previousSibling;for(var m=0;h;){if(h.nodeType===8){var _=h.data;if(_==="$"||_==="$!"||_==="$?"){if(m===0)return h;m--}else _==="/$"&&m++}h=h.previousSibling}return null}var sf=Math.random().toString(36).slice(2),ho="__reactFiber$"+sf,Ip="__reactProps$"+sf,ls="__reactContainer$"+sf,mS="__reactEvents$"+sf,nY="__reactListeners$"+sf,iY="__reactHandles$"+sf;function cu(h){var m=h[ho];if(m)return m;for(var _=h.parentNode;_;){if(m=_[ls]||_[ho]){if(_=m.alternate,m.child!==null||_!==null&&_.child!==null)for(h=wD(h);h!==null;){if(_=h[ho])return _;h=wD(h)}return m}h=_,_=h.parentNode}return null}function kp(h){return h=h[ho]||h[ls],!h||h.tag!==5&&h.tag!==6&&h.tag!==13&&h.tag!==3?null:h}function lf(h){if(h.tag===5||h.tag===6)return h.stateNode;throw Error(r(33))}function wm(h){return h[Ip]||null}var yS=[],uf=-1;function tl(h){return{current:h}}function Tr(h){0>uf||(h.current=yS[uf],yS[uf]=null,uf--)}function xr(h,m){uf++,yS[uf]=h.current,h.current=m}var rl={},In=tl(rl),fi=tl(!1),fu=rl;function cf(h,m){var _=h.type.contextTypes;if(!_)return rl;var M=h.stateNode;if(M&&M.__reactInternalMemoizedUnmaskedChildContext===m)return M.__reactInternalMemoizedMaskedChildContext;var D={},L;for(L in _)D[L]=m[L];return M&&(h=h.stateNode,h.__reactInternalMemoizedUnmaskedChildContext=m,h.__reactInternalMemoizedMaskedChildContext=D),D}function di(h){return h=h.childContextTypes,h!=null}function Cm(){Tr(fi),Tr(In)}function CD(h,m,_){if(In.current!==rl)throw Error(r(168));xr(In,m),xr(fi,_)}function TD(h,m,_){var M=h.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,ce(h)||"Unknown",D));return F({},_,M)}function Tm(h){return h=(h=h.stateNode)&&h.__reactInternalMemoizedMergedChildContext||rl,fu=In.current,xr(In,h),xr(fi,fi.current),!0}function AD(h,m,_){var M=h.stateNode;if(!M)throw Error(r(169));_?(h=TD(h,m,fu),M.__reactInternalMemoizedMergedChildContext=h,Tr(fi),Tr(In),xr(In,h)):Tr(fi),xr(fi,_)}var us=null,Am=!1,xS=!1;function MD(h){us===null?us=[h]:us.push(h)}function aY(h){Am=!0,MD(h)}function nl(){if(!xS&&us!==null){xS=!0;var h=0,m=pr;try{var _=us;for(pr=1;h<_.length;h++){var M=_[h];do M=M(!0);while(M!==null)}us=null,Am=!1}catch(D){throw us!==null&&(us=us.slice(h+1)),Hn(Vb,nl),D}finally{pr=m,xS=!1}}return null}var ff=[],df=0,Mm=null,Im=0,Ji=[],ea=0,du=null,cs=1,fs="";function pu(h,m){ff[df++]=Im,ff[df++]=Mm,Mm=h,Im=m}function ID(h,m,_){Ji[ea++]=cs,Ji[ea++]=fs,Ji[ea++]=du,du=h;var M=cs;h=fs;var D=32-La(M)-1;M&=~(1<<D),_+=1;var L=32-La(m)+D;if(30<L){var U=D-D%5;L=(M&(1<<U)-1).toString(32),M>>=U,D-=U,cs=1<<32-La(m)+D|_<<D|M,fs=L+h}else cs=1<<L|_<<D|M,fs=h}function bS(h){h.return!==null&&(pu(h,1),ID(h,1,0))}function SS(h){for(;h===Mm;)Mm=ff[--df],ff[df]=null,Im=ff[--df],ff[df]=null;for(;h===du;)du=Ji[--ea],Ji[ea]=null,fs=Ji[--ea],Ji[ea]=null,cs=Ji[--ea],Ji[ea]=null}var Li=null,Ei=null,kr=!1,Oa=null;function kD(h,m){var _=ia(5,null,null,0);_.elementType="DELETED",_.stateNode=m,_.return=h,m=h.deletions,m===null?(h.deletions=[_],h.flags|=16):m.push(_)}function PD(h,m){switch(h.tag){case 5:var _=h.type;return m=m.nodeType!==1||_.toLowerCase()!==m.nodeName.toLowerCase()?null:m,m!==null?(h.stateNode=m,Li=h,Ei=el(m.firstChild),!0):!1;case 6:return m=h.pendingProps===""||m.nodeType!==3?null:m,m!==null?(h.stateNode=m,Li=h,Ei=null,!0):!1;case 13:return m=m.nodeType!==8?null:m,m!==null?(_=du!==null?{id:cs,overflow:fs}:null,h.memoizedState={dehydrated:m,treeContext:_,retryLane:1073741824},_=ia(18,null,null,0),_.stateNode=m,_.return=h,h.child=_,Li=h,Ei=null,!0):!1;default:return!1}}function _S(h){return(h.mode&1)!==0&&(h.flags&128)===0}function wS(h){if(kr){var m=Ei;if(m){var _=m;if(!PD(h,m)){if(_S(h))throw Error(r(418));m=el(_.nextSibling);var M=Li;m&&PD(h,m)?kD(M,_):(h.flags=h.flags&-4097|2,kr=!1,Li=h)}}else{if(_S(h))throw Error(r(418));h.flags=h.flags&-4097|2,kr=!1,Li=h}}}function DD(h){for(h=h.return;h!==null&&h.tag!==5&&h.tag!==3&&h.tag!==13;)h=h.return;Li=h}function km(h){if(h!==Li)return!1;if(!kr)return DD(h),kr=!0,!1;var m;if((m=h.tag!==3)&&!(m=h.tag!==5)&&(m=h.type,m=m!=="head"&&m!=="body"&&!hS(h.type,h.memoizedProps)),m&&(m=Ei)){if(_S(h))throw RD(),Error(r(418));for(;m;)kD(h,m),m=el(m.nextSibling)}if(DD(h),h.tag===13){if(h=h.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error(r(317));e:{for(h=h.nextSibling,m=0;h;){if(h.nodeType===8){var _=h.data;if(_==="/$"){if(m===0){Ei=el(h.nextSibling);break e}m--}else _!=="$"&&_!=="$!"&&_!=="$?"||m++}h=h.nextSibling}Ei=null}}else Ei=Li?el(h.stateNode.nextSibling):null;return!0}function RD(){for(var h=Ei;h;)h=el(h.nextSibling)}function pf(){Ei=Li=null,kr=!1}function CS(h){Oa===null?Oa=[h]:Oa.push(h)}var oY=w.ReactCurrentBatchConfig;function Pp(h,m,_){if(h=_.ref,h!==null&&typeof h!="function"&&typeof h!="object"){if(_._owner){if(_=_._owner,_){if(_.tag!==1)throw Error(r(309));var M=_.stateNode}if(!M)throw Error(r(147,h));var D=M,L=""+h;return m!==null&&m.ref!==null&&typeof m.ref=="function"&&m.ref._stringRef===L?m.ref:(m=function(U){var K=D.refs;U===null?delete K[L]:K[L]=U},m._stringRef=L,m)}if(typeof h!="string")throw Error(r(284));if(!_._owner)throw Error(r(290,h))}return h}function Pm(h,m){throw h=Object.prototype.toString.call(m),Error(r(31,h==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":h))}function LD(h){var m=h._init;return m(h._payload)}function ED(h){function m(ie,ee){if(h){var ae=ie.deletions;ae===null?(ie.deletions=[ee],ie.flags|=16):ae.push(ee)}}function _(ie,ee){if(!h)return null;for(;ee!==null;)m(ie,ee),ee=ee.sibling;return null}function M(ie,ee){for(ie=new Map;ee!==null;)ee.key!==null?ie.set(ee.key,ee):ie.set(ee.index,ee),ee=ee.sibling;return ie}function D(ie,ee){return ie=fl(ie,ee),ie.index=0,ie.sibling=null,ie}function L(ie,ee,ae){return ie.index=ae,h?(ae=ie.alternate,ae!==null?(ae=ae.index,ae<ee?(ie.flags|=2,ee):ae):(ie.flags|=2,ee)):(ie.flags|=1048576,ee)}function U(ie){return h&&ie.alternate===null&&(ie.flags|=2),ie}function K(ie,ee,ae,Oe){return ee===null||ee.tag!==6?(ee=v_(ae,ie.mode,Oe),ee.return=ie,ee):(ee=D(ee,ae),ee.return=ie,ee)}function Q(ie,ee,ae,Oe){var rt=ae.type;return rt===A?Ae(ie,ee,ae.props.children,Oe,ae.key):ee!==null&&(ee.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===W&&LD(rt)===ee.type)?(Oe=D(ee,ae.props),Oe.ref=Pp(ie,ee,ae),Oe.return=ie,Oe):(Oe=ey(ae.type,ae.key,ae.props,null,ie.mode,Oe),Oe.ref=Pp(ie,ee,ae),Oe.return=ie,Oe)}function se(ie,ee,ae,Oe){return ee===null||ee.tag!==4||ee.stateNode.containerInfo!==ae.containerInfo||ee.stateNode.implementation!==ae.implementation?(ee=g_(ae,ie.mode,Oe),ee.return=ie,ee):(ee=D(ee,ae.children||[]),ee.return=ie,ee)}function Ae(ie,ee,ae,Oe,rt){return ee===null||ee.tag!==7?(ee=Su(ae,ie.mode,Oe,rt),ee.return=ie,ee):(ee=D(ee,ae),ee.return=ie,ee)}function Pe(ie,ee,ae){if(typeof ee=="string"&&ee!==""||typeof ee=="number")return ee=v_(""+ee,ie.mode,ae),ee.return=ie,ee;if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case T:return ae=ey(ee.type,ee.key,ee.props,null,ie.mode,ae),ae.ref=Pp(ie,null,ee),ae.return=ie,ae;case C:return ee=g_(ee,ie.mode,ae),ee.return=ie,ee;case W:var Oe=ee._init;return Pe(ie,Oe(ee._payload),ae)}if(_t(ee)||q(ee))return ee=Su(ee,ie.mode,ae,null),ee.return=ie,ee;Pm(ie,ee)}return null}function we(ie,ee,ae,Oe){var rt=ee!==null?ee.key:null;if(typeof ae=="string"&&ae!==""||typeof ae=="number")return rt!==null?null:K(ie,ee,""+ae,Oe);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case T:return ae.key===rt?Q(ie,ee,ae,Oe):null;case C:return ae.key===rt?se(ie,ee,ae,Oe):null;case W:return rt=ae._init,we(ie,ee,rt(ae._payload),Oe)}if(_t(ae)||q(ae))return rt!==null?null:Ae(ie,ee,ae,Oe,null);Pm(ie,ae)}return null}function Ue(ie,ee,ae,Oe,rt){if(typeof Oe=="string"&&Oe!==""||typeof Oe=="number")return ie=ie.get(ae)||null,K(ee,ie,""+Oe,rt);if(typeof Oe=="object"&&Oe!==null){switch(Oe.$$typeof){case T:return ie=ie.get(Oe.key===null?ae:Oe.key)||null,Q(ee,ie,Oe,rt);case C:return ie=ie.get(Oe.key===null?ae:Oe.key)||null,se(ee,ie,Oe,rt);case W:var mt=Oe._init;return Ue(ie,ee,ae,mt(Oe._payload),rt)}if(_t(Oe)||q(Oe))return ie=ie.get(ae)||null,Ae(ee,ie,Oe,rt,null);Pm(ee,Oe)}return null}function Qe(ie,ee,ae,Oe){for(var rt=null,mt=null,yt=ee,Tt=ee=0,pn=null;yt!==null&&Tt<ae.length;Tt++){yt.index>Tt?(pn=yt,yt=null):pn=yt.sibling;var rr=we(ie,yt,ae[Tt],Oe);if(rr===null){yt===null&&(yt=pn);break}h&&yt&&rr.alternate===null&&m(ie,yt),ee=L(rr,ee,Tt),mt===null?rt=rr:mt.sibling=rr,mt=rr,yt=pn}if(Tt===ae.length)return _(ie,yt),kr&&pu(ie,Tt),rt;if(yt===null){for(;Tt<ae.length;Tt++)yt=Pe(ie,ae[Tt],Oe),yt!==null&&(ee=L(yt,ee,Tt),mt===null?rt=yt:mt.sibling=yt,mt=yt);return kr&&pu(ie,Tt),rt}for(yt=M(ie,yt);Tt<ae.length;Tt++)pn=Ue(yt,ie,Tt,ae[Tt],Oe),pn!==null&&(h&&pn.alternate!==null&&yt.delete(pn.key===null?Tt:pn.key),ee=L(pn,ee,Tt),mt===null?rt=pn:mt.sibling=pn,mt=pn);return h&&yt.forEach(function(dl){return m(ie,dl)}),kr&&pu(ie,Tt),rt}function et(ie,ee,ae,Oe){var rt=q(ae);if(typeof rt!="function")throw Error(r(150));if(ae=rt.call(ae),ae==null)throw Error(r(151));for(var mt=rt=null,yt=ee,Tt=ee=0,pn=null,rr=ae.next();yt!==null&&!rr.done;Tt++,rr=ae.next()){yt.index>Tt?(pn=yt,yt=null):pn=yt.sibling;var dl=we(ie,yt,rr.value,Oe);if(dl===null){yt===null&&(yt=pn);break}h&&yt&&dl.alternate===null&&m(ie,yt),ee=L(dl,ee,Tt),mt===null?rt=dl:mt.sibling=dl,mt=dl,yt=pn}if(rr.done)return _(ie,yt),kr&&pu(ie,Tt),rt;if(yt===null){for(;!rr.done;Tt++,rr=ae.next())rr=Pe(ie,rr.value,Oe),rr!==null&&(ee=L(rr,ee,Tt),mt===null?rt=rr:mt.sibling=rr,mt=rr);return kr&&pu(ie,Tt),rt}for(yt=M(ie,yt);!rr.done;Tt++,rr=ae.next())rr=Ue(yt,ie,Tt,rr.value,Oe),rr!==null&&(h&&rr.alternate!==null&&yt.delete(rr.key===null?Tt:rr.key),ee=L(rr,ee,Tt),mt===null?rt=rr:mt.sibling=rr,mt=rr);return h&&yt.forEach(function(FY){return m(ie,FY)}),kr&&pu(ie,Tt),rt}function Gr(ie,ee,ae,Oe){if(typeof ae=="object"&&ae!==null&&ae.type===A&&ae.key===null&&(ae=ae.props.children),typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case T:e:{for(var rt=ae.key,mt=ee;mt!==null;){if(mt.key===rt){if(rt=ae.type,rt===A){if(mt.tag===7){_(ie,mt.sibling),ee=D(mt,ae.props.children),ee.return=ie,ie=ee;break e}}else if(mt.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===W&&LD(rt)===mt.type){_(ie,mt.sibling),ee=D(mt,ae.props),ee.ref=Pp(ie,mt,ae),ee.return=ie,ie=ee;break e}_(ie,mt);break}else m(ie,mt);mt=mt.sibling}ae.type===A?(ee=Su(ae.props.children,ie.mode,Oe,ae.key),ee.return=ie,ie=ee):(Oe=ey(ae.type,ae.key,ae.props,null,ie.mode,Oe),Oe.ref=Pp(ie,ee,ae),Oe.return=ie,ie=Oe)}return U(ie);case C:e:{for(mt=ae.key;ee!==null;){if(ee.key===mt)if(ee.tag===4&&ee.stateNode.containerInfo===ae.containerInfo&&ee.stateNode.implementation===ae.implementation){_(ie,ee.sibling),ee=D(ee,ae.children||[]),ee.return=ie,ie=ee;break e}else{_(ie,ee);break}else m(ie,ee);ee=ee.sibling}ee=g_(ae,ie.mode,Oe),ee.return=ie,ie=ee}return U(ie);case W:return mt=ae._init,Gr(ie,ee,mt(ae._payload),Oe)}if(_t(ae))return Qe(ie,ee,ae,Oe);if(q(ae))return et(ie,ee,ae,Oe);Pm(ie,ae)}return typeof ae=="string"&&ae!==""||typeof ae=="number"?(ae=""+ae,ee!==null&&ee.tag===6?(_(ie,ee.sibling),ee=D(ee,ae),ee.return=ie,ie=ee):(_(ie,ee),ee=v_(ae,ie.mode,Oe),ee.return=ie,ie=ee),U(ie)):_(ie,ee)}return Gr}var hf=ED(!0),OD=ED(!1),Dm=tl(null),Rm=null,vf=null,TS=null;function AS(){TS=vf=Rm=null}function MS(h){var m=Dm.current;Tr(Dm),h._currentValue=m}function IS(h,m,_){for(;h!==null;){var M=h.alternate;if((h.childLanes&m)!==m?(h.childLanes|=m,M!==null&&(M.childLanes|=m)):M!==null&&(M.childLanes&m)!==m&&(M.childLanes|=m),h===_)break;h=h.return}}function gf(h,m){Rm=h,TS=vf=null,h=h.dependencies,h!==null&&h.firstContext!==null&&((h.lanes&m)!==0&&(pi=!0),h.firstContext=null)}function ta(h){var m=h._currentValue;if(TS!==h)if(h={context:h,memoizedValue:m,next:null},vf===null){if(Rm===null)throw Error(r(308));vf=h,Rm.dependencies={lanes:0,firstContext:h}}else vf=vf.next=h;return m}var hu=null;function kS(h){hu===null?hu=[h]:hu.push(h)}function ND(h,m,_,M){var D=m.interleaved;return D===null?(_.next=_,kS(m)):(_.next=D.next,D.next=_),m.interleaved=_,ds(h,M)}function ds(h,m){h.lanes|=m;var _=h.alternate;for(_!==null&&(_.lanes|=m),_=h,h=h.return;h!==null;)h.childLanes|=m,_=h.alternate,_!==null&&(_.childLanes|=m),_=h,h=h.return;return _.tag===3?_.stateNode:null}var il=!1;function PS(h){h.updateQueue={baseState:h.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function zD(h,m){h=h.updateQueue,m.updateQueue===h&&(m.updateQueue={baseState:h.baseState,firstBaseUpdate:h.firstBaseUpdate,lastBaseUpdate:h.lastBaseUpdate,shared:h.shared,effects:h.effects})}function ps(h,m){return{eventTime:h,lane:m,tag:0,payload:null,callback:null,next:null}}function al(h,m,_){var M=h.updateQueue;if(M===null)return null;if(M=M.shared,(er&2)!==0){var D=M.pending;return D===null?m.next=m:(m.next=D.next,D.next=m),M.pending=m,ds(h,_)}return D=M.interleaved,D===null?(m.next=m,kS(M)):(m.next=D.next,D.next=m),M.interleaved=m,ds(h,_)}function Lm(h,m,_){if(m=m.updateQueue,m!==null&&(m=m.shared,(_&4194240)!==0)){var M=m.lanes;M&=h.pendingLanes,_|=M,m.lanes=_,Wb(h,_)}}function BD(h,m){var _=h.updateQueue,M=h.alternate;if(M!==null&&(M=M.updateQueue,_===M)){var D=null,L=null;if(_=_.firstBaseUpdate,_!==null){do{var U={eventTime:_.eventTime,lane:_.lane,tag:_.tag,payload:_.payload,callback:_.callback,next:null};L===null?D=L=U:L=L.next=U,_=_.next}while(_!==null);L===null?D=L=m:L=L.next=m}else D=L=m;_={baseState:M.baseState,firstBaseUpdate:D,lastBaseUpdate:L,shared:M.shared,effects:M.effects},h.updateQueue=_;return}h=_.lastBaseUpdate,h===null?_.firstBaseUpdate=m:h.next=m,_.lastBaseUpdate=m}function Em(h,m,_,M){var D=h.updateQueue;il=!1;var L=D.firstBaseUpdate,U=D.lastBaseUpdate,K=D.shared.pending;if(K!==null){D.shared.pending=null;var Q=K,se=Q.next;Q.next=null,U===null?L=se:U.next=se,U=Q;var Ae=h.alternate;Ae!==null&&(Ae=Ae.updateQueue,K=Ae.lastBaseUpdate,K!==U&&(K===null?Ae.firstBaseUpdate=se:K.next=se,Ae.lastBaseUpdate=Q))}if(L!==null){var Pe=D.baseState;U=0,Ae=se=Q=null,K=L;do{var we=K.lane,Ue=K.eventTime;if((M&we)===we){Ae!==null&&(Ae=Ae.next={eventTime:Ue,lane:0,tag:K.tag,payload:K.payload,callback:K.callback,next:null});e:{var Qe=h,et=K;switch(we=m,Ue=_,et.tag){case 1:if(Qe=et.payload,typeof Qe=="function"){Pe=Qe.call(Ue,Pe,we);break e}Pe=Qe;break e;case 3:Qe.flags=Qe.flags&-65537|128;case 0:if(Qe=et.payload,we=typeof Qe=="function"?Qe.call(Ue,Pe,we):Qe,we==null)break e;Pe=F({},Pe,we);break e;case 2:il=!0}}K.callback!==null&&K.lane!==0&&(h.flags|=64,we=D.effects,we===null?D.effects=[K]:we.push(K))}else Ue={eventTime:Ue,lane:we,tag:K.tag,payload:K.payload,callback:K.callback,next:null},Ae===null?(se=Ae=Ue,Q=Pe):Ae=Ae.next=Ue,U|=we;if(K=K.next,K===null){if(K=D.shared.pending,K===null)break;we=K,K=we.next,we.next=null,D.lastBaseUpdate=we,D.shared.pending=null}}while(!0);if(Ae===null&&(Q=Pe),D.baseState=Q,D.firstBaseUpdate=se,D.lastBaseUpdate=Ae,m=D.shared.interleaved,m!==null){D=m;do U|=D.lane,D=D.next;while(D!==m)}else L===null&&(D.shared.lanes=0);mu|=U,h.lanes=U,h.memoizedState=Pe}}function FD(h,m,_){if(h=m.effects,m.effects=null,h!==null)for(m=0;m<h.length;m++){var M=h[m],D=M.callback;if(D!==null){if(M.callback=null,M=_,typeof D!="function")throw Error(r(191,D));D.call(M)}}}var Dp={},vo=tl(Dp),Rp=tl(Dp),Lp=tl(Dp);function vu(h){if(h===Dp)throw Error(r(174));return h}function DS(h,m){switch(xr(Lp,m),xr(Rp,h),xr(vo,Dp),h=m.nodeType,h){case 9:case 11:m=(m=m.documentElement)?m.namespaceURI:Ve(null,"");break;default:h=h===8?m.parentNode:m,m=h.namespaceURI||null,h=h.tagName,m=Ve(m,h)}Tr(vo),xr(vo,m)}function mf(){Tr(vo),Tr(Rp),Tr(Lp)}function $D(h){vu(Lp.current);var m=vu(vo.current),_=Ve(m,h.type);m!==_&&(xr(Rp,h),xr(vo,_))}function RS(h){Rp.current===h&&(Tr(vo),Tr(Rp))}var Lr=tl(0);function Om(h){for(var m=h;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===h)break;for(;m.sibling===null;){if(m.return===null||m.return===h)return null;m=m.return}m.sibling.return=m.return,m=m.sibling}return null}var LS=[];function ES(){for(var h=0;h<LS.length;h++)LS[h]._workInProgressVersionPrimary=null;LS.length=0}var Nm=w.ReactCurrentDispatcher,OS=w.ReactCurrentBatchConfig,gu=0,Er=null,rn=null,fn=null,zm=!1,Ep=!1,Op=0,sY=0;function kn(){throw Error(r(321))}function NS(h,m){if(m===null)return!1;for(var _=0;_<m.length&&_<h.length;_++)if(!Ea(h[_],m[_]))return!1;return!0}function zS(h,m,_,M,D,L){if(gu=L,Er=m,m.memoizedState=null,m.updateQueue=null,m.lanes=0,Nm.current=h===null||h.memoizedState===null?fY:dY,h=_(M,D),Ep){L=0;do{if(Ep=!1,Op=0,25<=L)throw Error(r(301));L+=1,fn=rn=null,m.updateQueue=null,Nm.current=pY,h=_(M,D)}while(Ep)}if(Nm.current=$m,m=rn!==null&&rn.next!==null,gu=0,fn=rn=Er=null,zm=!1,m)throw Error(r(300));return h}function BS(){var h=Op!==0;return Op=0,h}function go(){var h={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return fn===null?Er.memoizedState=fn=h:fn=fn.next=h,fn}function ra(){if(rn===null){var h=Er.alternate;h=h!==null?h.memoizedState:null}else h=rn.next;var m=fn===null?Er.memoizedState:fn.next;if(m!==null)fn=m,rn=h;else{if(h===null)throw Error(r(310));rn=h,h={memoizedState:rn.memoizedState,baseState:rn.baseState,baseQueue:rn.baseQueue,queue:rn.queue,next:null},fn===null?Er.memoizedState=fn=h:fn=fn.next=h}return fn}function Np(h,m){return typeof m=="function"?m(h):m}function FS(h){var m=ra(),_=m.queue;if(_===null)throw Error(r(311));_.lastRenderedReducer=h;var M=rn,D=M.baseQueue,L=_.pending;if(L!==null){if(D!==null){var U=D.next;D.next=L.next,L.next=U}M.baseQueue=D=L,_.pending=null}if(D!==null){L=D.next,M=M.baseState;var K=U=null,Q=null,se=L;do{var Ae=se.lane;if((gu&Ae)===Ae)Q!==null&&(Q=Q.next={lane:0,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null}),M=se.hasEagerState?se.eagerState:h(M,se.action);else{var Pe={lane:Ae,action:se.action,hasEagerState:se.hasEagerState,eagerState:se.eagerState,next:null};Q===null?(K=Q=Pe,U=M):Q=Q.next=Pe,Er.lanes|=Ae,mu|=Ae}se=se.next}while(se!==null&&se!==L);Q===null?U=M:Q.next=K,Ea(M,m.memoizedState)||(pi=!0),m.memoizedState=M,m.baseState=U,m.baseQueue=Q,_.lastRenderedState=M}if(h=_.interleaved,h!==null){D=h;do L=D.lane,Er.lanes|=L,mu|=L,D=D.next;while(D!==h)}else D===null&&(_.lanes=0);return[m.memoizedState,_.dispatch]}function $S(h){var m=ra(),_=m.queue;if(_===null)throw Error(r(311));_.lastRenderedReducer=h;var M=_.dispatch,D=_.pending,L=m.memoizedState;if(D!==null){_.pending=null;var U=D=D.next;do L=h(L,U.action),U=U.next;while(U!==D);Ea(L,m.memoizedState)||(pi=!0),m.memoizedState=L,m.baseQueue===null&&(m.baseState=L),_.lastRenderedState=L}return[L,M]}function VD(){}function HD(h,m){var _=Er,M=ra(),D=m(),L=!Ea(M.memoizedState,D);if(L&&(M.memoizedState=D,pi=!0),M=M.queue,VS(jD.bind(null,_,M,h),[h]),M.getSnapshot!==m||L||fn!==null&&fn.memoizedState.tag&1){if(_.flags|=2048,zp(9,WD.bind(null,_,M,D,m),void 0,null),dn===null)throw Error(r(349));(gu&30)!==0||GD(_,m,D)}return D}function GD(h,m,_){h.flags|=16384,h={getSnapshot:m,value:_},m=Er.updateQueue,m===null?(m={lastEffect:null,stores:null},Er.updateQueue=m,m.stores=[h]):(_=m.stores,_===null?m.stores=[h]:_.push(h))}function WD(h,m,_,M){m.value=_,m.getSnapshot=M,UD(m)&&YD(h)}function jD(h,m,_){return _(function(){UD(m)&&YD(h)})}function UD(h){var m=h.getSnapshot;h=h.value;try{var _=m();return!Ea(h,_)}catch{return!0}}function YD(h){var m=ds(h,1);m!==null&&Fa(m,h,1,-1)}function qD(h){var m=go();return typeof h=="function"&&(h=h()),m.memoizedState=m.baseState=h,h={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Np,lastRenderedState:h},m.queue=h,h=h.dispatch=cY.bind(null,Er,h),[m.memoizedState,h]}function zp(h,m,_,M){return h={tag:h,create:m,destroy:_,deps:M,next:null},m=Er.updateQueue,m===null?(m={lastEffect:null,stores:null},Er.updateQueue=m,m.lastEffect=h.next=h):(_=m.lastEffect,_===null?m.lastEffect=h.next=h:(M=_.next,_.next=h,h.next=M,m.lastEffect=h)),h}function XD(){return ra().memoizedState}function Bm(h,m,_,M){var D=go();Er.flags|=h,D.memoizedState=zp(1|m,_,void 0,M===void 0?null:M)}function Fm(h,m,_,M){var D=ra();M=M===void 0?null:M;var L=void 0;if(rn!==null){var U=rn.memoizedState;if(L=U.destroy,M!==null&&NS(M,U.deps)){D.memoizedState=zp(m,_,L,M);return}}Er.flags|=h,D.memoizedState=zp(1|m,_,L,M)}function ZD(h,m){return Bm(8390656,8,h,m)}function VS(h,m){return Fm(2048,8,h,m)}function KD(h,m){return Fm(4,2,h,m)}function QD(h,m){return Fm(4,4,h,m)}function JD(h,m){if(typeof m=="function")return h=h(),m(h),function(){m(null)};if(m!=null)return h=h(),m.current=h,function(){m.current=null}}function eR(h,m,_){return _=_!=null?_.concat([h]):null,Fm(4,4,JD.bind(null,m,h),_)}function HS(){}function tR(h,m){var _=ra();m=m===void 0?null:m;var M=_.memoizedState;return M!==null&&m!==null&&NS(m,M[1])?M[0]:(_.memoizedState=[h,m],h)}function rR(h,m){var _=ra();m=m===void 0?null:m;var M=_.memoizedState;return M!==null&&m!==null&&NS(m,M[1])?M[0]:(h=h(),_.memoizedState=[h,m],h)}function nR(h,m,_){return(gu&21)===0?(h.baseState&&(h.baseState=!1,pi=!0),h.memoizedState=_):(Ea(_,m)||(_=LP(),Er.lanes|=_,mu|=_,h.baseState=!0),m)}function lY(h,m){var _=pr;pr=_!==0&&4>_?_:4,h(!0);var M=OS.transition;OS.transition={};try{h(!1),m()}finally{pr=_,OS.transition=M}}function iR(){return ra().memoizedState}function uY(h,m,_){var M=ul(h);if(_={lane:M,action:_,hasEagerState:!1,eagerState:null,next:null},aR(h))oR(m,_);else if(_=ND(h,m,_,M),_!==null){var D=jn();Fa(_,h,M,D),sR(_,m,M)}}function cY(h,m,_){var M=ul(h),D={lane:M,action:_,hasEagerState:!1,eagerState:null,next:null};if(aR(h))oR(m,D);else{var L=h.alternate;if(h.lanes===0&&(L===null||L.lanes===0)&&(L=m.lastRenderedReducer,L!==null))try{var U=m.lastRenderedState,K=L(U,_);if(D.hasEagerState=!0,D.eagerState=K,Ea(K,U)){var Q=m.interleaved;Q===null?(D.next=D,kS(m)):(D.next=Q.next,Q.next=D),m.interleaved=D;return}}catch{}finally{}_=ND(h,m,D,M),_!==null&&(D=jn(),Fa(_,h,M,D),sR(_,m,M))}}function aR(h){var m=h.alternate;return h===Er||m!==null&&m===Er}function oR(h,m){Ep=zm=!0;var _=h.pending;_===null?m.next=m:(m.next=_.next,_.next=m),h.pending=m}function sR(h,m,_){if((_&4194240)!==0){var M=m.lanes;M&=h.pendingLanes,_|=M,m.lanes=_,Wb(h,_)}}var $m={readContext:ta,useCallback:kn,useContext:kn,useEffect:kn,useImperativeHandle:kn,useInsertionEffect:kn,useLayoutEffect:kn,useMemo:kn,useReducer:kn,useRef:kn,useState:kn,useDebugValue:kn,useDeferredValue:kn,useTransition:kn,useMutableSource:kn,useSyncExternalStore:kn,useId:kn,unstable_isNewReconciler:!1},fY={readContext:ta,useCallback:function(h,m){return go().memoizedState=[h,m===void 0?null:m],h},useContext:ta,useEffect:ZD,useImperativeHandle:function(h,m,_){return _=_!=null?_.concat([h]):null,Bm(4194308,4,JD.bind(null,m,h),_)},useLayoutEffect:function(h,m){return Bm(4194308,4,h,m)},useInsertionEffect:function(h,m){return Bm(4,2,h,m)},useMemo:function(h,m){var _=go();return m=m===void 0?null:m,h=h(),_.memoizedState=[h,m],h},useReducer:function(h,m,_){var M=go();return m=_!==void 0?_(m):m,M.memoizedState=M.baseState=m,h={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:h,lastRenderedState:m},M.queue=h,h=h.dispatch=uY.bind(null,Er,h),[M.memoizedState,h]},useRef:function(h){var m=go();return h={current:h},m.memoizedState=h},useState:qD,useDebugValue:HS,useDeferredValue:function(h){return go().memoizedState=h},useTransition:function(){var h=qD(!1),m=h[0];return h=lY.bind(null,h[1]),go().memoizedState=h,[m,h]},useMutableSource:function(){},useSyncExternalStore:function(h,m,_){var M=Er,D=go();if(kr){if(_===void 0)throw Error(r(407));_=_()}else{if(_=m(),dn===null)throw Error(r(349));(gu&30)!==0||GD(M,m,_)}D.memoizedState=_;var L={value:_,getSnapshot:m};return D.queue=L,ZD(jD.bind(null,M,L,h),[h]),M.flags|=2048,zp(9,WD.bind(null,M,L,_,m),void 0,null),_},useId:function(){var h=go(),m=dn.identifierPrefix;if(kr){var _=fs,M=cs;_=(M&~(1<<32-La(M)-1)).toString(32)+_,m=":"+m+"R"+_,_=Op++,0<_&&(m+="H"+_.toString(32)),m+=":"}else _=sY++,m=":"+m+"r"+_.toString(32)+":";return h.memoizedState=m},unstable_isNewReconciler:!1},dY={readContext:ta,useCallback:tR,useContext:ta,useEffect:VS,useImperativeHandle:eR,useInsertionEffect:KD,useLayoutEffect:QD,useMemo:rR,useReducer:FS,useRef:XD,useState:function(){return FS(Np)},useDebugValue:HS,useDeferredValue:function(h){var m=ra();return nR(m,rn.memoizedState,h)},useTransition:function(){var h=FS(Np)[0],m=ra().memoizedState;return[h,m]},useMutableSource:VD,useSyncExternalStore:HD,useId:iR,unstable_isNewReconciler:!1},pY={readContext:ta,useCallback:tR,useContext:ta,useEffect:VS,useImperativeHandle:eR,useInsertionEffect:KD,useLayoutEffect:QD,useMemo:rR,useReducer:$S,useRef:XD,useState:function(){return $S(Np)},useDebugValue:HS,useDeferredValue:function(h){var m=ra();return rn===null?m.memoizedState=h:nR(m,rn.memoizedState,h)},useTransition:function(){var h=$S(Np)[0],m=ra().memoizedState;return[h,m]},useMutableSource:VD,useSyncExternalStore:HD,useId:iR,unstable_isNewReconciler:!1};function Na(h,m){if(h&&h.defaultProps){m=F({},m),h=h.defaultProps;for(var _ in h)m[_]===void 0&&(m[_]=h[_]);return m}return m}function GS(h,m,_,M){m=h.memoizedState,_=_(M,m),_=_==null?m:F({},m,_),h.memoizedState=_,h.lanes===0&&(h.updateQueue.baseState=_)}var Vm={isMounted:function(h){return(h=h._reactInternals)?de(h)===h:!1},enqueueSetState:function(h,m,_){h=h._reactInternals;var M=jn(),D=ul(h),L=ps(M,D);L.payload=m,_!=null&&(L.callback=_),m=al(h,L,D),m!==null&&(Fa(m,h,D,M),Lm(m,h,D))},enqueueReplaceState:function(h,m,_){h=h._reactInternals;var M=jn(),D=ul(h),L=ps(M,D);L.tag=1,L.payload=m,_!=null&&(L.callback=_),m=al(h,L,D),m!==null&&(Fa(m,h,D,M),Lm(m,h,D))},enqueueForceUpdate:function(h,m){h=h._reactInternals;var _=jn(),M=ul(h),D=ps(_,M);D.tag=2,m!=null&&(D.callback=m),m=al(h,D,M),m!==null&&(Fa(m,h,M,_),Lm(m,h,M))}};function lR(h,m,_,M,D,L,U){return h=h.stateNode,typeof h.shouldComponentUpdate=="function"?h.shouldComponentUpdate(M,L,U):m.prototype&&m.prototype.isPureReactComponent?!wp(_,M)||!wp(D,L):!0}function uR(h,m,_){var M=!1,D=rl,L=m.contextType;return typeof L=="object"&&L!==null?L=ta(L):(D=di(m)?fu:In.current,M=m.contextTypes,L=(M=M!=null)?cf(h,D):rl),m=new m(_,L),h.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=Vm,h.stateNode=m,m._reactInternals=h,M&&(h=h.stateNode,h.__reactInternalMemoizedUnmaskedChildContext=D,h.__reactInternalMemoizedMaskedChildContext=L),m}function cR(h,m,_,M){h=m.state,typeof m.componentWillReceiveProps=="function"&&m.componentWillReceiveProps(_,M),typeof m.UNSAFE_componentWillReceiveProps=="function"&&m.UNSAFE_componentWillReceiveProps(_,M),m.state!==h&&Vm.enqueueReplaceState(m,m.state,null)}function WS(h,m,_,M){var D=h.stateNode;D.props=_,D.state=h.memoizedState,D.refs={},PS(h);var L=m.contextType;typeof L=="object"&&L!==null?D.context=ta(L):(L=di(m)?fu:In.current,D.context=cf(h,L)),D.state=h.memoizedState,L=m.getDerivedStateFromProps,typeof L=="function"&&(GS(h,m,L,_),D.state=h.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&&Vm.enqueueReplaceState(D,D.state,null),Em(h,_,D,M),D.state=h.memoizedState),typeof D.componentDidMount=="function"&&(h.flags|=4194308)}function yf(h,m){try{var _="",M=m;do _+=fe(M),M=M.return;while(M);var D=_}catch(L){D=`
39
+ Error generating stack: `+L.message+`
40
+ `+L.stack}return{value:h,source:m,stack:D,digest:null}}function jS(h,m,_){return{value:h,source:null,stack:_??null,digest:m??null}}function US(h,m){try{console.error(m.value)}catch(_){setTimeout(function(){throw _})}}var hY=typeof WeakMap=="function"?WeakMap:Map;function fR(h,m,_){_=ps(-1,_),_.tag=3,_.payload={element:null};var M=m.value;return _.callback=function(){qm||(qm=!0,s_=M),US(h,m)},_}function dR(h,m,_){_=ps(-1,_),_.tag=3;var M=h.type.getDerivedStateFromError;if(typeof M=="function"){var D=m.value;_.payload=function(){return M(D)},_.callback=function(){US(h,m)}}var L=h.stateNode;return L!==null&&typeof L.componentDidCatch=="function"&&(_.callback=function(){US(h,m),typeof M!="function"&&(sl===null?sl=new Set([this]):sl.add(this));var U=m.stack;this.componentDidCatch(m.value,{componentStack:U!==null?U:""})}),_}function pR(h,m,_){var M=h.pingCache;if(M===null){M=h.pingCache=new hY;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(_),h=IY.bind(null,h,m,_),m.then(h,h))}function hR(h){do{var m;if((m=h.tag===13)&&(m=h.memoizedState,m=m!==null?m.dehydrated!==null:!0),m)return h;h=h.return}while(h!==null);return null}function vR(h,m,_,M,D){return(h.mode&1)===0?(h===m?h.flags|=65536:(h.flags|=128,_.flags|=131072,_.flags&=-52805,_.tag===1&&(_.alternate===null?_.tag=17:(m=ps(-1,1),m.tag=2,al(_,m,1))),_.lanes|=1),h):(h.flags|=65536,h.lanes=D,h)}var vY=w.ReactCurrentOwner,pi=!1;function Wn(h,m,_,M){m.child=h===null?OD(m,null,_,M):hf(m,h.child,_,M)}function gR(h,m,_,M,D){_=_.render;var L=m.ref;return gf(m,D),M=zS(h,m,_,M,L,D),_=BS(),h!==null&&!pi?(m.updateQueue=h.updateQueue,m.flags&=-2053,h.lanes&=~D,hs(h,m,D)):(kr&&_&&bS(m),m.flags|=1,Wn(h,m,M,D),m.child)}function mR(h,m,_,M,D){if(h===null){var L=_.type;return typeof L=="function"&&!h_(L)&&L.defaultProps===void 0&&_.compare===null&&_.defaultProps===void 0?(m.tag=15,m.type=L,yR(h,m,L,M,D)):(h=ey(_.type,null,M,m,m.mode,D),h.ref=m.ref,h.return=m,m.child=h)}if(L=h.child,(h.lanes&D)===0){var U=L.memoizedProps;if(_=_.compare,_=_!==null?_:wp,_(U,M)&&h.ref===m.ref)return hs(h,m,D)}return m.flags|=1,h=fl(L,M),h.ref=m.ref,h.return=m,m.child=h}function yR(h,m,_,M,D){if(h!==null){var L=h.memoizedProps;if(wp(L,M)&&h.ref===m.ref)if(pi=!1,m.pendingProps=M=L,(h.lanes&D)!==0)(h.flags&131072)!==0&&(pi=!0);else return m.lanes=h.lanes,hs(h,m,D)}return YS(h,m,_,M,D)}function xR(h,m,_){var M=m.pendingProps,D=M.children,L=h!==null?h.memoizedState:null;if(M.mode==="hidden")if((m.mode&1)===0)m.memoizedState={baseLanes:0,cachePool:null,transitions:null},xr(bf,Oi),Oi|=_;else{if((_&1073741824)===0)return h=L!==null?L.baseLanes|_:_,m.lanes=m.childLanes=1073741824,m.memoizedState={baseLanes:h,cachePool:null,transitions:null},m.updateQueue=null,xr(bf,Oi),Oi|=h,null;m.memoizedState={baseLanes:0,cachePool:null,transitions:null},M=L!==null?L.baseLanes:_,xr(bf,Oi),Oi|=M}else L!==null?(M=L.baseLanes|_,m.memoizedState=null):M=_,xr(bf,Oi),Oi|=M;return Wn(h,m,D,_),m.child}function bR(h,m){var _=m.ref;(h===null&&_!==null||h!==null&&h.ref!==_)&&(m.flags|=512,m.flags|=2097152)}function YS(h,m,_,M,D){var L=di(_)?fu:In.current;return L=cf(m,L),gf(m,D),_=zS(h,m,_,M,L,D),M=BS(),h!==null&&!pi?(m.updateQueue=h.updateQueue,m.flags&=-2053,h.lanes&=~D,hs(h,m,D)):(kr&&M&&bS(m),m.flags|=1,Wn(h,m,_,D),m.child)}function SR(h,m,_,M,D){if(di(_)){var L=!0;Tm(m)}else L=!1;if(gf(m,D),m.stateNode===null)Gm(h,m),uR(m,_,M),WS(m,_,M,D),M=!0;else if(h===null){var U=m.stateNode,K=m.memoizedProps;U.props=K;var Q=U.context,se=_.contextType;typeof se=="object"&&se!==null?se=ta(se):(se=di(_)?fu:In.current,se=cf(m,se));var Ae=_.getDerivedStateFromProps,Pe=typeof Ae=="function"||typeof U.getSnapshotBeforeUpdate=="function";Pe||typeof U.UNSAFE_componentWillReceiveProps!="function"&&typeof U.componentWillReceiveProps!="function"||(K!==M||Q!==se)&&cR(m,U,M,se),il=!1;var we=m.memoizedState;U.state=we,Em(m,M,U,D),Q=m.memoizedState,K!==M||we!==Q||fi.current||il?(typeof Ae=="function"&&(GS(m,_,Ae,M),Q=m.memoizedState),(K=il||lR(m,_,K,M,we,Q,se))?(Pe||typeof U.UNSAFE_componentWillMount!="function"&&typeof U.componentWillMount!="function"||(typeof U.componentWillMount=="function"&&U.componentWillMount(),typeof U.UNSAFE_componentWillMount=="function"&&U.UNSAFE_componentWillMount()),typeof U.componentDidMount=="function"&&(m.flags|=4194308)):(typeof U.componentDidMount=="function"&&(m.flags|=4194308),m.memoizedProps=M,m.memoizedState=Q),U.props=M,U.state=Q,U.context=se,M=K):(typeof U.componentDidMount=="function"&&(m.flags|=4194308),M=!1)}else{U=m.stateNode,zD(h,m),K=m.memoizedProps,se=m.type===m.elementType?K:Na(m.type,K),U.props=se,Pe=m.pendingProps,we=U.context,Q=_.contextType,typeof Q=="object"&&Q!==null?Q=ta(Q):(Q=di(_)?fu:In.current,Q=cf(m,Q));var Ue=_.getDerivedStateFromProps;(Ae=typeof Ue=="function"||typeof U.getSnapshotBeforeUpdate=="function")||typeof U.UNSAFE_componentWillReceiveProps!="function"&&typeof U.componentWillReceiveProps!="function"||(K!==Pe||we!==Q)&&cR(m,U,M,Q),il=!1,we=m.memoizedState,U.state=we,Em(m,M,U,D);var Qe=m.memoizedState;K!==Pe||we!==Qe||fi.current||il?(typeof Ue=="function"&&(GS(m,_,Ue,M),Qe=m.memoizedState),(se=il||lR(m,_,se,M,we,Qe,Q)||!1)?(Ae||typeof U.UNSAFE_componentWillUpdate!="function"&&typeof U.componentWillUpdate!="function"||(typeof U.componentWillUpdate=="function"&&U.componentWillUpdate(M,Qe,Q),typeof U.UNSAFE_componentWillUpdate=="function"&&U.UNSAFE_componentWillUpdate(M,Qe,Q)),typeof U.componentDidUpdate=="function"&&(m.flags|=4),typeof U.getSnapshotBeforeUpdate=="function"&&(m.flags|=1024)):(typeof U.componentDidUpdate!="function"||K===h.memoizedProps&&we===h.memoizedState||(m.flags|=4),typeof U.getSnapshotBeforeUpdate!="function"||K===h.memoizedProps&&we===h.memoizedState||(m.flags|=1024),m.memoizedProps=M,m.memoizedState=Qe),U.props=M,U.state=Qe,U.context=Q,M=se):(typeof U.componentDidUpdate!="function"||K===h.memoizedProps&&we===h.memoizedState||(m.flags|=4),typeof U.getSnapshotBeforeUpdate!="function"||K===h.memoizedProps&&we===h.memoizedState||(m.flags|=1024),M=!1)}return qS(h,m,_,M,L,D)}function qS(h,m,_,M,D,L){bR(h,m);var U=(m.flags&128)!==0;if(!M&&!U)return D&&AD(m,_,!1),hs(h,m,L);M=m.stateNode,vY.current=m;var K=U&&typeof _.getDerivedStateFromError!="function"?null:M.render();return m.flags|=1,h!==null&&U?(m.child=hf(m,h.child,null,L),m.child=hf(m,null,K,L)):Wn(h,m,K,L),m.memoizedState=M.state,D&&AD(m,_,!0),m.child}function _R(h){var m=h.stateNode;m.pendingContext?CD(h,m.pendingContext,m.pendingContext!==m.context):m.context&&CD(h,m.context,!1),DS(h,m.containerInfo)}function wR(h,m,_,M,D){return pf(),CS(D),m.flags|=256,Wn(h,m,_,M),m.child}var XS={dehydrated:null,treeContext:null,retryLane:0};function ZS(h){return{baseLanes:h,cachePool:null,transitions:null}}function CR(h,m,_){var M=m.pendingProps,D=Lr.current,L=!1,U=(m.flags&128)!==0,K;if((K=U)||(K=h!==null&&h.memoizedState===null?!1:(D&2)!==0),K?(L=!0,m.flags&=-129):(h===null||h.memoizedState!==null)&&(D|=1),xr(Lr,D&1),h===null)return wS(m),h=m.memoizedState,h!==null&&(h=h.dehydrated,h!==null)?((m.mode&1)===0?m.lanes=1:h.data==="$!"?m.lanes=8:m.lanes=1073741824,null):(U=M.children,h=M.fallback,L?(M=m.mode,L=m.child,U={mode:"hidden",children:U},(M&1)===0&&L!==null?(L.childLanes=0,L.pendingProps=U):L=ty(U,M,0,null),h=Su(h,M,_,null),L.return=m,h.return=m,L.sibling=h,m.child=L,m.child.memoizedState=ZS(_),m.memoizedState=XS,h):KS(m,U));if(D=h.memoizedState,D!==null&&(K=D.dehydrated,K!==null))return gY(h,m,U,M,K,D,_);if(L){L=M.fallback,U=m.mode,D=h.child,K=D.sibling;var Q={mode:"hidden",children:M.children};return(U&1)===0&&m.child!==D?(M=m.child,M.childLanes=0,M.pendingProps=Q,m.deletions=null):(M=fl(D,Q),M.subtreeFlags=D.subtreeFlags&14680064),K!==null?L=fl(K,L):(L=Su(L,U,_,null),L.flags|=2),L.return=m,M.return=m,M.sibling=L,m.child=M,M=L,L=m.child,U=h.child.memoizedState,U=U===null?ZS(_):{baseLanes:U.baseLanes|_,cachePool:null,transitions:U.transitions},L.memoizedState=U,L.childLanes=h.childLanes&~_,m.memoizedState=XS,M}return L=h.child,h=L.sibling,M=fl(L,{mode:"visible",children:M.children}),(m.mode&1)===0&&(M.lanes=_),M.return=m,M.sibling=null,h!==null&&(_=m.deletions,_===null?(m.deletions=[h],m.flags|=16):_.push(h)),m.child=M,m.memoizedState=null,M}function KS(h,m){return m=ty({mode:"visible",children:m},h.mode,0,null),m.return=h,h.child=m}function Hm(h,m,_,M){return M!==null&&CS(M),hf(m,h.child,null,_),h=KS(m,m.pendingProps.children),h.flags|=2,m.memoizedState=null,h}function gY(h,m,_,M,D,L,U){if(_)return m.flags&256?(m.flags&=-257,M=jS(Error(r(422))),Hm(h,m,U,M)):m.memoizedState!==null?(m.child=h.child,m.flags|=128,null):(L=M.fallback,D=m.mode,M=ty({mode:"visible",children:M.children},D,0,null),L=Su(L,D,U,null),L.flags|=2,M.return=m,L.return=m,M.sibling=L,m.child=M,(m.mode&1)!==0&&hf(m,h.child,null,U),m.child.memoizedState=ZS(U),m.memoizedState=XS,L);if((m.mode&1)===0)return Hm(h,m,U,null);if(D.data==="$!"){if(M=D.nextSibling&&D.nextSibling.dataset,M)var K=M.dgst;return M=K,L=Error(r(419)),M=jS(L,M,void 0),Hm(h,m,U,M)}if(K=(U&h.childLanes)!==0,pi||K){if(M=dn,M!==null){switch(U&-U){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|U))!==0?0:D,D!==0&&D!==L.retryLane&&(L.retryLane=D,ds(h,D),Fa(M,h,D,-1))}return p_(),M=jS(Error(r(421))),Hm(h,m,U,M)}return D.data==="$?"?(m.flags|=128,m.child=h.child,m=kY.bind(null,h),D._reactRetry=m,null):(h=L.treeContext,Ei=el(D.nextSibling),Li=m,kr=!0,Oa=null,h!==null&&(Ji[ea++]=cs,Ji[ea++]=fs,Ji[ea++]=du,cs=h.id,fs=h.overflow,du=m),m=KS(m,M.children),m.flags|=4096,m)}function TR(h,m,_){h.lanes|=m;var M=h.alternate;M!==null&&(M.lanes|=m),IS(h.return,m,_)}function QS(h,m,_,M,D){var L=h.memoizedState;L===null?h.memoizedState={isBackwards:m,rendering:null,renderingStartTime:0,last:M,tail:_,tailMode:D}:(L.isBackwards=m,L.rendering=null,L.renderingStartTime=0,L.last=M,L.tail=_,L.tailMode=D)}function AR(h,m,_){var M=m.pendingProps,D=M.revealOrder,L=M.tail;if(Wn(h,m,M.children,_),M=Lr.current,(M&2)!==0)M=M&1|2,m.flags|=128;else{if(h!==null&&(h.flags&128)!==0)e:for(h=m.child;h!==null;){if(h.tag===13)h.memoizedState!==null&&TR(h,_,m);else if(h.tag===19)TR(h,_,m);else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===m)break e;for(;h.sibling===null;){if(h.return===null||h.return===m)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}M&=1}if(xr(Lr,M),(m.mode&1)===0)m.memoizedState=null;else switch(D){case"forwards":for(_=m.child,D=null;_!==null;)h=_.alternate,h!==null&&Om(h)===null&&(D=_),_=_.sibling;_=D,_===null?(D=m.child,m.child=null):(D=_.sibling,_.sibling=null),QS(m,!1,D,_,L);break;case"backwards":for(_=null,D=m.child,m.child=null;D!==null;){if(h=D.alternate,h!==null&&Om(h)===null){m.child=D;break}h=D.sibling,D.sibling=_,_=D,D=h}QS(m,!0,_,null,L);break;case"together":QS(m,!1,null,null,void 0);break;default:m.memoizedState=null}return m.child}function Gm(h,m){(m.mode&1)===0&&h!==null&&(h.alternate=null,m.alternate=null,m.flags|=2)}function hs(h,m,_){if(h!==null&&(m.dependencies=h.dependencies),mu|=m.lanes,(_&m.childLanes)===0)return null;if(h!==null&&m.child!==h.child)throw Error(r(153));if(m.child!==null){for(h=m.child,_=fl(h,h.pendingProps),m.child=_,_.return=m;h.sibling!==null;)h=h.sibling,_=_.sibling=fl(h,h.pendingProps),_.return=m;_.sibling=null}return m.child}function mY(h,m,_){switch(m.tag){case 3:_R(m),pf();break;case 5:$D(m);break;case 1:di(m.type)&&Tm(m);break;case 4:DS(m,m.stateNode.containerInfo);break;case 10:var M=m.type._context,D=m.memoizedProps.value;xr(Dm,M._currentValue),M._currentValue=D;break;case 13:if(M=m.memoizedState,M!==null)return M.dehydrated!==null?(xr(Lr,Lr.current&1),m.flags|=128,null):(_&m.child.childLanes)!==0?CR(h,m,_):(xr(Lr,Lr.current&1),h=hs(h,m,_),h!==null?h.sibling:null);xr(Lr,Lr.current&1);break;case 19:if(M=(_&m.childLanes)!==0,(h.flags&128)!==0){if(M)return AR(h,m,_);m.flags|=128}if(D=m.memoizedState,D!==null&&(D.rendering=null,D.tail=null,D.lastEffect=null),xr(Lr,Lr.current),M)break;return null;case 22:case 23:return m.lanes=0,xR(h,m,_)}return hs(h,m,_)}var MR,JS,IR,kR;MR=function(h,m){for(var _=m.child;_!==null;){if(_.tag===5||_.tag===6)h.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}},JS=function(){},IR=function(h,m,_,M){var D=h.memoizedProps;if(D!==M){h=m.stateNode,vu(vo.current);var L=null;switch(_){case"input":D=Te(h,D),M=Te(h,M),L=[];break;case"select":D=F({},D,{value:void 0}),M=F({},M,{value:void 0}),L=[];break;case"textarea":D=Ft(h,D),M=Ft(h,M),L=[];break;default:typeof D.onClick!="function"&&typeof M.onClick=="function"&&(h.onclick=_m)}We(_,M);var U;_=null;for(se in D)if(!M.hasOwnProperty(se)&&D.hasOwnProperty(se)&&D[se]!=null)if(se==="style"){var K=D[se];for(U in K)K.hasOwnProperty(U)&&(_||(_={}),_[U]="")}else se!=="dangerouslySetInnerHTML"&&se!=="children"&&se!=="suppressContentEditableWarning"&&se!=="suppressHydrationWarning"&&se!=="autoFocus"&&(i.hasOwnProperty(se)?L||(L=[]):(L=L||[]).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(U in K)!K.hasOwnProperty(U)||Q&&Q.hasOwnProperty(U)||(_||(_={}),_[U]="");for(U in Q)Q.hasOwnProperty(U)&&K[U]!==Q[U]&&(_||(_={}),_[U]=Q[U])}else _||(L||(L=[]),L.push(se,_)),_=Q;else se==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,K=K?K.__html:void 0,Q!=null&&K!==Q&&(L=L||[]).push(se,Q)):se==="children"?typeof Q!="string"&&typeof Q!="number"||(L=L||[]).push(se,""+Q):se!=="suppressContentEditableWarning"&&se!=="suppressHydrationWarning"&&(i.hasOwnProperty(se)?(Q!=null&&se==="onScroll"&&Cr("scroll",h),L||K===Q||(L=[])):(L=L||[]).push(se,Q))}_&&(L=L||[]).push("style",_);var se=L;(m.updateQueue=se)&&(m.flags|=4)}},kR=function(h,m,_,M){_!==M&&(m.flags|=4)};function Bp(h,m){if(!kr)switch(h.tailMode){case"hidden":m=h.tail;for(var _=null;m!==null;)m.alternate!==null&&(_=m),m=m.sibling;_===null?h.tail=null:_.sibling=null;break;case"collapsed":_=h.tail;for(var M=null;_!==null;)_.alternate!==null&&(M=_),_=_.sibling;M===null?m||h.tail===null?h.tail=null:h.tail.sibling=null:M.sibling=null}}function Pn(h){var m=h.alternate!==null&&h.alternate.child===h.child,_=0,M=0;if(m)for(var D=h.child;D!==null;)_|=D.lanes|D.childLanes,M|=D.subtreeFlags&14680064,M|=D.flags&14680064,D.return=h,D=D.sibling;else for(D=h.child;D!==null;)_|=D.lanes|D.childLanes,M|=D.subtreeFlags,M|=D.flags,D.return=h,D=D.sibling;return h.subtreeFlags|=M,h.childLanes=_,m}function yY(h,m,_){var M=m.pendingProps;switch(SS(m),m.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Pn(m),null;case 1:return di(m.type)&&Cm(),Pn(m),null;case 3:return M=m.stateNode,mf(),Tr(fi),Tr(In),ES(),M.pendingContext&&(M.context=M.pendingContext,M.pendingContext=null),(h===null||h.child===null)&&(km(m)?m.flags|=4:h===null||h.memoizedState.isDehydrated&&(m.flags&256)===0||(m.flags|=1024,Oa!==null&&(c_(Oa),Oa=null))),JS(h,m),Pn(m),null;case 5:RS(m);var D=vu(Lp.current);if(_=m.type,h!==null&&m.stateNode!=null)IR(h,m,_,M,D),h.ref!==m.ref&&(m.flags|=512,m.flags|=2097152);else{if(!M){if(m.stateNode===null)throw Error(r(166));return Pn(m),null}if(h=vu(vo.current),km(m)){M=m.stateNode,_=m.type;var L=m.memoizedProps;switch(M[ho]=m,M[Ip]=L,h=(m.mode&1)!==0,_){case"dialog":Cr("cancel",M),Cr("close",M);break;case"iframe":case"object":case"embed":Cr("load",M);break;case"video":case"audio":for(D=0;D<Tp.length;D++)Cr(Tp[D],M);break;case"source":Cr("error",M);break;case"img":case"image":case"link":Cr("error",M),Cr("load",M);break;case"details":Cr("toggle",M);break;case"input":ye(M,L),Cr("invalid",M);break;case"select":M._wrapperState={wasMultiple:!!L.multiple},Cr("invalid",M);break;case"textarea":Gt(M,L),Cr("invalid",M)}We(_,L),D=null;for(var U in L)if(L.hasOwnProperty(U)){var K=L[U];U==="children"?typeof K=="string"?M.textContent!==K&&(L.suppressHydrationWarning!==!0&&Sm(M.textContent,K,h),D=["children",K]):typeof K=="number"&&M.textContent!==""+K&&(L.suppressHydrationWarning!==!0&&Sm(M.textContent,K,h),D=["children",""+K]):i.hasOwnProperty(U)&&K!=null&&U==="onScroll"&&Cr("scroll",M)}switch(_){case"input":le(M),gt(M,L,!0);break;case"textarea":le(M),ue(M);break;case"select":case"option":break;default:typeof L.onClick=="function"&&(M.onclick=_m)}M=D,m.updateQueue=M,M!==null&&(m.flags|=4)}else{U=D.nodeType===9?D:D.ownerDocument,h==="http://www.w3.org/1999/xhtml"&&(h=_e(_)),h==="http://www.w3.org/1999/xhtml"?_==="script"?(h=U.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild)):typeof M.is=="string"?h=U.createElement(_,{is:M.is}):(h=U.createElement(_),_==="select"&&(U=h,M.multiple?U.multiple=!0:M.size&&(U.size=M.size))):h=U.createElementNS(h,_),h[ho]=m,h[Ip]=M,MR(h,m,!1,!1),m.stateNode=h;e:{switch(U=pt(_,M),_){case"dialog":Cr("cancel",h),Cr("close",h),D=M;break;case"iframe":case"object":case"embed":Cr("load",h),D=M;break;case"video":case"audio":for(D=0;D<Tp.length;D++)Cr(Tp[D],h);D=M;break;case"source":Cr("error",h),D=M;break;case"img":case"image":case"link":Cr("error",h),Cr("load",h),D=M;break;case"details":Cr("toggle",h),D=M;break;case"input":ye(h,M),D=Te(h,M),Cr("invalid",h);break;case"option":D=M;break;case"select":h._wrapperState={wasMultiple:!!M.multiple},D=F({},M,{value:void 0}),Cr("invalid",h);break;case"textarea":Gt(h,M),D=Ft(h,M),Cr("invalid",h);break;default:D=M}We(_,D),K=D;for(L in K)if(K.hasOwnProperty(L)){var Q=K[L];L==="style"?It(h,Q):L==="dangerouslySetInnerHTML"?(Q=Q?Q.__html:void 0,Q!=null&&Me(h,Q)):L==="children"?typeof Q=="string"?(_!=="textarea"||Q!=="")&&Mt(h,Q):typeof Q=="number"&&Mt(h,""+Q):L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&L!=="autoFocus"&&(i.hasOwnProperty(L)?Q!=null&&L==="onScroll"&&Cr("scroll",h):Q!=null&&S(h,L,Q,U))}switch(_){case"input":le(h),gt(h,M,!1);break;case"textarea":le(h),ue(h);break;case"option":M.value!=null&&h.setAttribute("value",""+ne(M.value));break;case"select":h.multiple=!!M.multiple,L=M.value,L!=null?nt(h,!!M.multiple,L,!1):M.defaultValue!=null&&nt(h,!!M.multiple,M.defaultValue,!0);break;default:typeof D.onClick=="function"&&(h.onclick=_m)}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 Pn(m),null;case 6:if(h&&m.stateNode!=null)kR(h,m,h.memoizedProps,M);else{if(typeof M!="string"&&m.stateNode===null)throw Error(r(166));if(_=vu(Lp.current),vu(vo.current),km(m)){if(M=m.stateNode,_=m.memoizedProps,M[ho]=m,(L=M.nodeValue!==_)&&(h=Li,h!==null))switch(h.tag){case 3:Sm(M.nodeValue,_,(h.mode&1)!==0);break;case 5:h.memoizedProps.suppressHydrationWarning!==!0&&Sm(M.nodeValue,_,(h.mode&1)!==0)}L&&(m.flags|=4)}else M=(_.nodeType===9?_:_.ownerDocument).createTextNode(M),M[ho]=m,m.stateNode=M}return Pn(m),null;case 13:if(Tr(Lr),M=m.memoizedState,h===null||h.memoizedState!==null&&h.memoizedState.dehydrated!==null){if(kr&&Ei!==null&&(m.mode&1)!==0&&(m.flags&128)===0)RD(),pf(),m.flags|=98560,L=!1;else if(L=km(m),M!==null&&M.dehydrated!==null){if(h===null){if(!L)throw Error(r(318));if(L=m.memoizedState,L=L!==null?L.dehydrated:null,!L)throw Error(r(317));L[ho]=m}else pf(),(m.flags&128)===0&&(m.memoizedState=null),m.flags|=4;Pn(m),L=!1}else Oa!==null&&(c_(Oa),Oa=null),L=!0;if(!L)return m.flags&65536?m:null}return(m.flags&128)!==0?(m.lanes=_,m):(M=M!==null,M!==(h!==null&&h.memoizedState!==null)&&M&&(m.child.flags|=8192,(m.mode&1)!==0&&(h===null||(Lr.current&1)!==0?nn===0&&(nn=3):p_())),m.updateQueue!==null&&(m.flags|=4),Pn(m),null);case 4:return mf(),JS(h,m),h===null&&Ap(m.stateNode.containerInfo),Pn(m),null;case 10:return MS(m.type._context),Pn(m),null;case 17:return di(m.type)&&Cm(),Pn(m),null;case 19:if(Tr(Lr),L=m.memoizedState,L===null)return Pn(m),null;if(M=(m.flags&128)!==0,U=L.rendering,U===null)if(M)Bp(L,!1);else{if(nn!==0||h!==null&&(h.flags&128)!==0)for(h=m.child;h!==null;){if(U=Om(h),U!==null){for(m.flags|=128,Bp(L,!1),M=U.updateQueue,M!==null&&(m.updateQueue=M,m.flags|=4),m.subtreeFlags=0,M=_,_=m.child;_!==null;)L=_,h=M,L.flags&=14680066,U=L.alternate,U===null?(L.childLanes=0,L.lanes=h,L.child=null,L.subtreeFlags=0,L.memoizedProps=null,L.memoizedState=null,L.updateQueue=null,L.dependencies=null,L.stateNode=null):(L.childLanes=U.childLanes,L.lanes=U.lanes,L.child=U.child,L.subtreeFlags=0,L.deletions=null,L.memoizedProps=U.memoizedProps,L.memoizedState=U.memoizedState,L.updateQueue=U.updateQueue,L.type=U.type,h=U.dependencies,L.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext}),_=_.sibling;return xr(Lr,Lr.current&1|2),m.child}h=h.sibling}L.tail!==null&&Hr()>Sf&&(m.flags|=128,M=!0,Bp(L,!1),m.lanes=4194304)}else{if(!M)if(h=Om(U),h!==null){if(m.flags|=128,M=!0,_=h.updateQueue,_!==null&&(m.updateQueue=_,m.flags|=4),Bp(L,!0),L.tail===null&&L.tailMode==="hidden"&&!U.alternate&&!kr)return Pn(m),null}else 2*Hr()-L.renderingStartTime>Sf&&_!==1073741824&&(m.flags|=128,M=!0,Bp(L,!1),m.lanes=4194304);L.isBackwards?(U.sibling=m.child,m.child=U):(_=L.last,_!==null?_.sibling=U:m.child=U,L.last=U)}return L.tail!==null?(m=L.tail,L.rendering=m,L.tail=m.sibling,L.renderingStartTime=Hr(),m.sibling=null,_=Lr.current,xr(Lr,M?_&1|2:_&1),m):(Pn(m),null);case 22:case 23:return d_(),M=m.memoizedState!==null,h!==null&&h.memoizedState!==null!==M&&(m.flags|=8192),M&&(m.mode&1)!==0?(Oi&1073741824)!==0&&(Pn(m),m.subtreeFlags&6&&(m.flags|=8192)):Pn(m),null;case 24:return null;case 25:return null}throw Error(r(156,m.tag))}function xY(h,m){switch(SS(m),m.tag){case 1:return di(m.type)&&Cm(),h=m.flags,h&65536?(m.flags=h&-65537|128,m):null;case 3:return mf(),Tr(fi),Tr(In),ES(),h=m.flags,(h&65536)!==0&&(h&128)===0?(m.flags=h&-65537|128,m):null;case 5:return RS(m),null;case 13:if(Tr(Lr),h=m.memoizedState,h!==null&&h.dehydrated!==null){if(m.alternate===null)throw Error(r(340));pf()}return h=m.flags,h&65536?(m.flags=h&-65537|128,m):null;case 19:return Tr(Lr),null;case 4:return mf(),null;case 10:return MS(m.type._context),null;case 22:case 23:return d_(),null;case 24:return null;default:return null}}var Wm=!1,Dn=!1,bY=typeof WeakSet=="function"?WeakSet:Set,Ze=null;function xf(h,m){var _=h.ref;if(_!==null)if(typeof _=="function")try{_(null)}catch(M){zr(h,m,M)}else _.current=null}function e_(h,m,_){try{_()}catch(M){zr(h,m,M)}}var PR=!1;function SY(h,m){if(dS=cm,h=lD(),iS(h)){if("selectionStart"in h)var _={start:h.selectionStart,end:h.selectionEnd};else e:{_=(_=h.ownerDocument)&&_.defaultView||window;var M=_.getSelection&&_.getSelection();if(M&&M.rangeCount!==0){_=M.anchorNode;var D=M.anchorOffset,L=M.focusNode;M=M.focusOffset;try{_.nodeType,L.nodeType}catch{_=null;break e}var U=0,K=-1,Q=-1,se=0,Ae=0,Pe=h,we=null;t:for(;;){for(var Ue;Pe!==_||D!==0&&Pe.nodeType!==3||(K=U+D),Pe!==L||M!==0&&Pe.nodeType!==3||(Q=U+M),Pe.nodeType===3&&(U+=Pe.nodeValue.length),(Ue=Pe.firstChild)!==null;)we=Pe,Pe=Ue;for(;;){if(Pe===h)break t;if(we===_&&++se===D&&(K=U),we===L&&++Ae===M&&(Q=U),(Ue=Pe.nextSibling)!==null)break;Pe=we,we=Pe.parentNode}Pe=Ue}_=K===-1||Q===-1?null:{start:K,end:Q}}else _=null}_=_||{start:0,end:0}}else _=null;for(pS={focusedElem:h,selectionRange:_},cm=!1,Ze=m;Ze!==null;)if(m=Ze,h=m.child,(m.subtreeFlags&1028)!==0&&h!==null)h.return=m,Ze=h;else for(;Ze!==null;){m=Ze;try{var Qe=m.alternate;if((m.flags&1024)!==0)switch(m.tag){case 0:case 11:case 15:break;case 1:if(Qe!==null){var et=Qe.memoizedProps,Gr=Qe.memoizedState,ie=m.stateNode,ee=ie.getSnapshotBeforeUpdate(m.elementType===m.type?et:Na(m.type,et),Gr);ie.__reactInternalSnapshotBeforeUpdate=ee}break;case 3:var ae=m.stateNode.containerInfo;ae.nodeType===1?ae.textContent="":ae.nodeType===9&&ae.documentElement&&ae.removeChild(ae.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(Oe){zr(m,m.return,Oe)}if(h=m.sibling,h!==null){h.return=m.return,Ze=h;break}Ze=m.return}return Qe=PR,PR=!1,Qe}function Fp(h,m,_){var M=m.updateQueue;if(M=M!==null?M.lastEffect:null,M!==null){var D=M=M.next;do{if((D.tag&h)===h){var L=D.destroy;D.destroy=void 0,L!==void 0&&e_(m,_,L)}D=D.next}while(D!==M)}}function jm(h,m){if(m=m.updateQueue,m=m!==null?m.lastEffect:null,m!==null){var _=m=m.next;do{if((_.tag&h)===h){var M=_.create;_.destroy=M()}_=_.next}while(_!==m)}}function t_(h){var m=h.ref;if(m!==null){var _=h.stateNode;switch(h.tag){case 5:h=_;break;default:h=_}typeof m=="function"?m(h):m.current=h}}function DR(h){var m=h.alternate;m!==null&&(h.alternate=null,DR(m)),h.child=null,h.deletions=null,h.sibling=null,h.tag===5&&(m=h.stateNode,m!==null&&(delete m[ho],delete m[Ip],delete m[mS],delete m[nY],delete m[iY])),h.stateNode=null,h.return=null,h.dependencies=null,h.memoizedProps=null,h.memoizedState=null,h.pendingProps=null,h.stateNode=null,h.updateQueue=null}function RR(h){return h.tag===5||h.tag===3||h.tag===4}function LR(h){e:for(;;){for(;h.sibling===null;){if(h.return===null||RR(h.return))return null;h=h.return}for(h.sibling.return=h.return,h=h.sibling;h.tag!==5&&h.tag!==6&&h.tag!==18;){if(h.flags&2||h.child===null||h.tag===4)continue e;h.child.return=h,h=h.child}if(!(h.flags&2))return h.stateNode}}function r_(h,m,_){var M=h.tag;if(M===5||M===6)h=h.stateNode,m?_.nodeType===8?_.parentNode.insertBefore(h,m):_.insertBefore(h,m):(_.nodeType===8?(m=_.parentNode,m.insertBefore(h,_)):(m=_,m.appendChild(h)),_=_._reactRootContainer,_!=null||m.onclick!==null||(m.onclick=_m));else if(M!==4&&(h=h.child,h!==null))for(r_(h,m,_),h=h.sibling;h!==null;)r_(h,m,_),h=h.sibling}function n_(h,m,_){var M=h.tag;if(M===5||M===6)h=h.stateNode,m?_.insertBefore(h,m):_.appendChild(h);else if(M!==4&&(h=h.child,h!==null))for(n_(h,m,_),h=h.sibling;h!==null;)n_(h,m,_),h=h.sibling}var yn=null,za=!1;function ol(h,m,_){for(_=_.child;_!==null;)ER(h,m,_),_=_.sibling}function ER(h,m,_){if(po&&typeof po.onCommitFiberUnmount=="function")try{po.onCommitFiberUnmount(im,_)}catch{}switch(_.tag){case 5:Dn||xf(_,m);case 6:var M=yn,D=za;yn=null,ol(h,m,_),yn=M,za=D,yn!==null&&(za?(h=yn,_=_.stateNode,h.nodeType===8?h.parentNode.removeChild(_):h.removeChild(_)):yn.removeChild(_.stateNode));break;case 18:yn!==null&&(za?(h=yn,_=_.stateNode,h.nodeType===8?gS(h.parentNode,_):h.nodeType===1&&gS(h,_),mp(h)):gS(yn,_.stateNode));break;case 4:M=yn,D=za,yn=_.stateNode.containerInfo,za=!0,ol(h,m,_),yn=M,za=D;break;case 0:case 11:case 14:case 15:if(!Dn&&(M=_.updateQueue,M!==null&&(M=M.lastEffect,M!==null))){D=M=M.next;do{var L=D,U=L.destroy;L=L.tag,U!==void 0&&((L&2)!==0||(L&4)!==0)&&e_(_,m,U),D=D.next}while(D!==M)}ol(h,m,_);break;case 1:if(!Dn&&(xf(_,m),M=_.stateNode,typeof M.componentWillUnmount=="function"))try{M.props=_.memoizedProps,M.state=_.memoizedState,M.componentWillUnmount()}catch(K){zr(_,m,K)}ol(h,m,_);break;case 21:ol(h,m,_);break;case 22:_.mode&1?(Dn=(M=Dn)||_.memoizedState!==null,ol(h,m,_),Dn=M):ol(h,m,_);break;default:ol(h,m,_)}}function OR(h){var m=h.updateQueue;if(m!==null){h.updateQueue=null;var _=h.stateNode;_===null&&(_=h.stateNode=new bY),m.forEach(function(M){var D=PY.bind(null,h,M);_.has(M)||(_.add(M),M.then(D,D))})}}function Ba(h,m){var _=m.deletions;if(_!==null)for(var M=0;M<_.length;M++){var D=_[M];try{var L=h,U=m,K=U;e:for(;K!==null;){switch(K.tag){case 5:yn=K.stateNode,za=!1;break e;case 3:yn=K.stateNode.containerInfo,za=!0;break e;case 4:yn=K.stateNode.containerInfo,za=!0;break e}K=K.return}if(yn===null)throw Error(r(160));ER(L,U,D),yn=null,za=!1;var Q=D.alternate;Q!==null&&(Q.return=null),D.return=null}catch(se){zr(D,m,se)}}if(m.subtreeFlags&12854)for(m=m.child;m!==null;)NR(m,h),m=m.sibling}function NR(h,m){var _=h.alternate,M=h.flags;switch(h.tag){case 0:case 11:case 14:case 15:if(Ba(m,h),mo(h),M&4){try{Fp(3,h,h.return),jm(3,h)}catch(et){zr(h,h.return,et)}try{Fp(5,h,h.return)}catch(et){zr(h,h.return,et)}}break;case 1:Ba(m,h),mo(h),M&512&&_!==null&&xf(_,_.return);break;case 5:if(Ba(m,h),mo(h),M&512&&_!==null&&xf(_,_.return),h.flags&32){var D=h.stateNode;try{Mt(D,"")}catch(et){zr(h,h.return,et)}}if(M&4&&(D=h.stateNode,D!=null)){var L=h.memoizedProps,U=_!==null?_.memoizedProps:L,K=h.type,Q=h.updateQueue;if(h.updateQueue=null,Q!==null)try{K==="input"&&L.type==="radio"&&L.name!=null&&ft(D,L),pt(K,U);var se=pt(K,L);for(U=0;U<Q.length;U+=2){var Ae=Q[U],Pe=Q[U+1];Ae==="style"?It(D,Pe):Ae==="dangerouslySetInnerHTML"?Me(D,Pe):Ae==="children"?Mt(D,Pe):S(D,Ae,Pe,se)}switch(K){case"input":He(D,L);break;case"textarea":Rt(D,L);break;case"select":var we=D._wrapperState.wasMultiple;D._wrapperState.wasMultiple=!!L.multiple;var Ue=L.value;Ue!=null?nt(D,!!L.multiple,Ue,!1):we!==!!L.multiple&&(L.defaultValue!=null?nt(D,!!L.multiple,L.defaultValue,!0):nt(D,!!L.multiple,L.multiple?[]:"",!1))}D[Ip]=L}catch(et){zr(h,h.return,et)}}break;case 6:if(Ba(m,h),mo(h),M&4){if(h.stateNode===null)throw Error(r(162));D=h.stateNode,L=h.memoizedProps;try{D.nodeValue=L}catch(et){zr(h,h.return,et)}}break;case 3:if(Ba(m,h),mo(h),M&4&&_!==null&&_.memoizedState.isDehydrated)try{mp(m.containerInfo)}catch(et){zr(h,h.return,et)}break;case 4:Ba(m,h),mo(h);break;case 13:Ba(m,h),mo(h),D=h.child,D.flags&8192&&(L=D.memoizedState!==null,D.stateNode.isHidden=L,!L||D.alternate!==null&&D.alternate.memoizedState!==null||(o_=Hr())),M&4&&OR(h);break;case 22:if(Ae=_!==null&&_.memoizedState!==null,h.mode&1?(Dn=(se=Dn)||Ae,Ba(m,h),Dn=se):Ba(m,h),mo(h),M&8192){if(se=h.memoizedState!==null,(h.stateNode.isHidden=se)&&!Ae&&(h.mode&1)!==0)for(Ze=h,Ae=h.child;Ae!==null;){for(Pe=Ze=Ae;Ze!==null;){switch(we=Ze,Ue=we.child,we.tag){case 0:case 11:case 14:case 15:Fp(4,we,we.return);break;case 1:xf(we,we.return);var Qe=we.stateNode;if(typeof Qe.componentWillUnmount=="function"){M=we,_=we.return;try{m=M,Qe.props=m.memoizedProps,Qe.state=m.memoizedState,Qe.componentWillUnmount()}catch(et){zr(M,_,et)}}break;case 5:xf(we,we.return);break;case 22:if(we.memoizedState!==null){FR(Pe);continue}}Ue!==null?(Ue.return=we,Ze=Ue):FR(Pe)}Ae=Ae.sibling}e:for(Ae=null,Pe=h;;){if(Pe.tag===5){if(Ae===null){Ae=Pe;try{D=Pe.stateNode,se?(L=D.style,typeof L.setProperty=="function"?L.setProperty("display","none","important"):L.display="none"):(K=Pe.stateNode,Q=Pe.memoizedProps.style,U=Q!=null&&Q.hasOwnProperty("display")?Q.display:null,K.style.display=ct("display",U))}catch(et){zr(h,h.return,et)}}}else if(Pe.tag===6){if(Ae===null)try{Pe.stateNode.nodeValue=se?"":Pe.memoizedProps}catch(et){zr(h,h.return,et)}}else if((Pe.tag!==22&&Pe.tag!==23||Pe.memoizedState===null||Pe===h)&&Pe.child!==null){Pe.child.return=Pe,Pe=Pe.child;continue}if(Pe===h)break e;for(;Pe.sibling===null;){if(Pe.return===null||Pe.return===h)break e;Ae===Pe&&(Ae=null),Pe=Pe.return}Ae===Pe&&(Ae=null),Pe.sibling.return=Pe.return,Pe=Pe.sibling}}break;case 19:Ba(m,h),mo(h),M&4&&OR(h);break;case 21:break;default:Ba(m,h),mo(h)}}function mo(h){var m=h.flags;if(m&2){try{e:{for(var _=h.return;_!==null;){if(RR(_)){var M=_;break e}_=_.return}throw Error(r(160))}switch(M.tag){case 5:var D=M.stateNode;M.flags&32&&(Mt(D,""),M.flags&=-33);var L=LR(h);n_(h,L,D);break;case 3:case 4:var U=M.stateNode.containerInfo,K=LR(h);r_(h,K,U);break;default:throw Error(r(161))}}catch(Q){zr(h,h.return,Q)}h.flags&=-3}m&4096&&(h.flags&=-4097)}function _Y(h,m,_){Ze=h,zR(h)}function zR(h,m,_){for(var M=(h.mode&1)!==0;Ze!==null;){var D=Ze,L=D.child;if(D.tag===22&&M){var U=D.memoizedState!==null||Wm;if(!U){var K=D.alternate,Q=K!==null&&K.memoizedState!==null||Dn;K=Wm;var se=Dn;if(Wm=U,(Dn=Q)&&!se)for(Ze=D;Ze!==null;)U=Ze,Q=U.child,U.tag===22&&U.memoizedState!==null?$R(D):Q!==null?(Q.return=U,Ze=Q):$R(D);for(;L!==null;)Ze=L,zR(L),L=L.sibling;Ze=D,Wm=K,Dn=se}BR(h)}else(D.subtreeFlags&8772)!==0&&L!==null?(L.return=D,Ze=L):BR(h)}}function BR(h){for(;Ze!==null;){var m=Ze;if((m.flags&8772)!==0){var _=m.alternate;try{if((m.flags&8772)!==0)switch(m.tag){case 0:case 11:case 15:Dn||jm(5,m);break;case 1:var M=m.stateNode;if(m.flags&4&&!Dn)if(_===null)M.componentDidMount();else{var D=m.elementType===m.type?_.memoizedProps:Na(m.type,_.memoizedProps);M.componentDidUpdate(D,_.memoizedState,M.__reactInternalSnapshotBeforeUpdate)}var L=m.updateQueue;L!==null&&FD(m,L,M);break;case 3:var U=m.updateQueue;if(U!==null){if(_=null,m.child!==null)switch(m.child.tag){case 5:_=m.child.stateNode;break;case 1:_=m.child.stateNode}FD(m,U,_)}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 Ae=se.memoizedState;if(Ae!==null){var Pe=Ae.dehydrated;Pe!==null&&mp(Pe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Dn||m.flags&512&&t_(m)}catch(we){zr(m,m.return,we)}}if(m===h){Ze=null;break}if(_=m.sibling,_!==null){_.return=m.return,Ze=_;break}Ze=m.return}}function FR(h){for(;Ze!==null;){var m=Ze;if(m===h){Ze=null;break}var _=m.sibling;if(_!==null){_.return=m.return,Ze=_;break}Ze=m.return}}function $R(h){for(;Ze!==null;){var m=Ze;try{switch(m.tag){case 0:case 11:case 15:var _=m.return;try{jm(4,m)}catch(Q){zr(m,_,Q)}break;case 1:var M=m.stateNode;if(typeof M.componentDidMount=="function"){var D=m.return;try{M.componentDidMount()}catch(Q){zr(m,D,Q)}}var L=m.return;try{t_(m)}catch(Q){zr(m,L,Q)}break;case 5:var U=m.return;try{t_(m)}catch(Q){zr(m,U,Q)}}}catch(Q){zr(m,m.return,Q)}if(m===h){Ze=null;break}var K=m.sibling;if(K!==null){K.return=m.return,Ze=K;break}Ze=m.return}}var wY=Math.ceil,Um=w.ReactCurrentDispatcher,i_=w.ReactCurrentOwner,na=w.ReactCurrentBatchConfig,er=0,dn=null,qr=null,xn=0,Oi=0,bf=tl(0),nn=0,$p=null,mu=0,Ym=0,a_=0,Vp=null,hi=null,o_=0,Sf=1/0,vs=null,qm=!1,s_=null,sl=null,Xm=!1,ll=null,Zm=0,Hp=0,l_=null,Km=-1,Qm=0;function jn(){return(er&6)!==0?Hr():Km!==-1?Km:Km=Hr()}function ul(h){return(h.mode&1)===0?1:(er&2)!==0&&xn!==0?xn&-xn:oY.transition!==null?(Qm===0&&(Qm=LP()),Qm):(h=pr,h!==0||(h=window.event,h=h===void 0?16:HP(h.type)),h)}function Fa(h,m,_,M){if(50<Hp)throw Hp=0,l_=null,Error(r(185));dp(h,_,M),((er&2)===0||h!==dn)&&(h===dn&&((er&2)===0&&(Ym|=_),nn===4&&cl(h,xn)),vi(h,M),_===1&&er===0&&(m.mode&1)===0&&(Sf=Hr()+500,Am&&nl()))}function vi(h,m){var _=h.callbackNode;oU(h,m);var M=sm(h,h===dn?xn:0);if(M===0)_!==null&&Lt(_),h.callbackNode=null,h.callbackPriority=0;else if(m=M&-M,h.callbackPriority!==m){if(_!=null&&Lt(_),m===1)h.tag===0?aY(HR.bind(null,h)):MD(HR.bind(null,h)),tY(function(){(er&6)===0&&nl()}),_=null;else{switch(EP(M)){case 1:_=Vb;break;case 4:_=DP;break;case 16:_=nm;break;case 536870912:_=RP;break;default:_=nm}_=ZR(_,VR.bind(null,h))}h.callbackPriority=m,h.callbackNode=_}}function VR(h,m){if(Km=-1,Qm=0,(er&6)!==0)throw Error(r(327));var _=h.callbackNode;if(_f()&&h.callbackNode!==_)return null;var M=sm(h,h===dn?xn:0);if(M===0)return null;if((M&30)!==0||(M&h.expiredLanes)!==0||m)m=Jm(h,M);else{m=M;var D=er;er|=2;var L=WR();(dn!==h||xn!==m)&&(vs=null,Sf=Hr()+500,xu(h,m));do try{AY();break}catch(K){GR(h,K)}while(!0);AS(),Um.current=L,er=D,qr!==null?m=0:(dn=null,xn=0,m=nn)}if(m!==0){if(m===2&&(D=Hb(h),D!==0&&(M=D,m=u_(h,D))),m===1)throw _=$p,xu(h,0),cl(h,M),vi(h,Hr()),_;if(m===6)cl(h,M);else{if(D=h.current.alternate,(M&30)===0&&!CY(D)&&(m=Jm(h,M),m===2&&(L=Hb(h),L!==0&&(M=L,m=u_(h,L))),m===1))throw _=$p,xu(h,0),cl(h,M),vi(h,Hr()),_;switch(h.finishedWork=D,h.finishedLanes=M,m){case 0:case 1:throw Error(r(345));case 2:bu(h,hi,vs);break;case 3:if(cl(h,M),(M&130023424)===M&&(m=o_+500-Hr(),10<m)){if(sm(h,0)!==0)break;if(D=h.suspendedLanes,(D&M)!==M){jn(),h.pingedLanes|=h.suspendedLanes&D;break}h.timeoutHandle=vS(bu.bind(null,h,hi,vs),m);break}bu(h,hi,vs);break;case 4:if(cl(h,M),(M&4194240)===M)break;for(m=h.eventTimes,D=-1;0<M;){var U=31-La(M);L=1<<U,U=m[U],U>D&&(D=U),M&=~L}if(M=D,M=Hr()-M,M=(120>M?120:480>M?480:1080>M?1080:1920>M?1920:3e3>M?3e3:4320>M?4320:1960*wY(M/1960))-M,10<M){h.timeoutHandle=vS(bu.bind(null,h,hi,vs),M);break}bu(h,hi,vs);break;case 5:bu(h,hi,vs);break;default:throw Error(r(329))}}}return vi(h,Hr()),h.callbackNode===_?VR.bind(null,h):null}function u_(h,m){var _=Vp;return h.current.memoizedState.isDehydrated&&(xu(h,m).flags|=256),h=Jm(h,m),h!==2&&(m=hi,hi=_,m!==null&&c_(m)),h}function c_(h){hi===null?hi=h:hi.push.apply(hi,h)}function CY(h){for(var m=h;;){if(m.flags&16384){var _=m.updateQueue;if(_!==null&&(_=_.stores,_!==null))for(var M=0;M<_.length;M++){var D=_[M],L=D.getSnapshot;D=D.value;try{if(!Ea(L(),D))return!1}catch{return!1}}}if(_=m.child,m.subtreeFlags&16384&&_!==null)_.return=m,m=_;else{if(m===h)break;for(;m.sibling===null;){if(m.return===null||m.return===h)return!0;m=m.return}m.sibling.return=m.return,m=m.sibling}}return!0}function cl(h,m){for(m&=~a_,m&=~Ym,h.suspendedLanes|=m,h.pingedLanes&=~m,h=h.expirationTimes;0<m;){var _=31-La(m),M=1<<_;h[_]=-1,m&=~M}}function HR(h){if((er&6)!==0)throw Error(r(327));_f();var m=sm(h,0);if((m&1)===0)return vi(h,Hr()),null;var _=Jm(h,m);if(h.tag!==0&&_===2){var M=Hb(h);M!==0&&(m=M,_=u_(h,M))}if(_===1)throw _=$p,xu(h,0),cl(h,m),vi(h,Hr()),_;if(_===6)throw Error(r(345));return h.finishedWork=h.current.alternate,h.finishedLanes=m,bu(h,hi,vs),vi(h,Hr()),null}function f_(h,m){var _=er;er|=1;try{return h(m)}finally{er=_,er===0&&(Sf=Hr()+500,Am&&nl())}}function yu(h){ll!==null&&ll.tag===0&&(er&6)===0&&_f();var m=er;er|=1;var _=na.transition,M=pr;try{if(na.transition=null,pr=1,h)return h()}finally{pr=M,na.transition=_,er=m,(er&6)===0&&nl()}}function d_(){Oi=bf.current,Tr(bf)}function xu(h,m){h.finishedWork=null,h.finishedLanes=0;var _=h.timeoutHandle;if(_!==-1&&(h.timeoutHandle=-1,eY(_)),qr!==null)for(_=qr.return;_!==null;){var M=_;switch(SS(M),M.tag){case 1:M=M.type.childContextTypes,M!=null&&Cm();break;case 3:mf(),Tr(fi),Tr(In),ES();break;case 5:RS(M);break;case 4:mf();break;case 13:Tr(Lr);break;case 19:Tr(Lr);break;case 10:MS(M.type._context);break;case 22:case 23:d_()}_=_.return}if(dn=h,qr=h=fl(h.current,null),xn=Oi=m,nn=0,$p=null,a_=Ym=mu=0,hi=Vp=null,hu!==null){for(m=0;m<hu.length;m++)if(_=hu[m],M=_.interleaved,M!==null){_.interleaved=null;var D=M.next,L=_.pending;if(L!==null){var U=L.next;L.next=D,M.next=U}_.pending=M}hu=null}return h}function GR(h,m){do{var _=qr;try{if(AS(),Nm.current=$m,zm){for(var M=Er.memoizedState;M!==null;){var D=M.queue;D!==null&&(D.pending=null),M=M.next}zm=!1}if(gu=0,fn=rn=Er=null,Ep=!1,Op=0,i_.current=null,_===null||_.return===null){nn=1,$p=m,qr=null;break}e:{var L=h,U=_.return,K=_,Q=m;if(m=xn,K.flags|=32768,Q!==null&&typeof Q=="object"&&typeof Q.then=="function"){var se=Q,Ae=K,Pe=Ae.tag;if((Ae.mode&1)===0&&(Pe===0||Pe===11||Pe===15)){var we=Ae.alternate;we?(Ae.updateQueue=we.updateQueue,Ae.memoizedState=we.memoizedState,Ae.lanes=we.lanes):(Ae.updateQueue=null,Ae.memoizedState=null)}var Ue=hR(U);if(Ue!==null){Ue.flags&=-257,vR(Ue,U,K,L,m),Ue.mode&1&&pR(L,se,m),m=Ue,Q=se;var Qe=m.updateQueue;if(Qe===null){var et=new Set;et.add(Q),m.updateQueue=et}else Qe.add(Q);break e}else{if((m&1)===0){pR(L,se,m),p_();break e}Q=Error(r(426))}}else if(kr&&K.mode&1){var Gr=hR(U);if(Gr!==null){(Gr.flags&65536)===0&&(Gr.flags|=256),vR(Gr,U,K,L,m),CS(yf(Q,K));break e}}L=Q=yf(Q,K),nn!==4&&(nn=2),Vp===null?Vp=[L]:Vp.push(L),L=U;do{switch(L.tag){case 3:L.flags|=65536,m&=-m,L.lanes|=m;var ie=fR(L,Q,m);BD(L,ie);break e;case 1:K=Q;var ee=L.type,ae=L.stateNode;if((L.flags&128)===0&&(typeof ee.getDerivedStateFromError=="function"||ae!==null&&typeof ae.componentDidCatch=="function"&&(sl===null||!sl.has(ae)))){L.flags|=65536,m&=-m,L.lanes|=m;var Oe=dR(L,K,m);BD(L,Oe);break e}}L=L.return}while(L!==null)}UR(_)}catch(rt){m=rt,qr===_&&_!==null&&(qr=_=_.return);continue}break}while(!0)}function WR(){var h=Um.current;return Um.current=$m,h===null?$m:h}function p_(){(nn===0||nn===3||nn===2)&&(nn=4),dn===null||(mu&268435455)===0&&(Ym&268435455)===0||cl(dn,xn)}function Jm(h,m){var _=er;er|=2;var M=WR();(dn!==h||xn!==m)&&(vs=null,xu(h,m));do try{TY();break}catch(D){GR(h,D)}while(!0);if(AS(),er=_,Um.current=M,qr!==null)throw Error(r(261));return dn=null,xn=0,nn}function TY(){for(;qr!==null;)jR(qr)}function AY(){for(;qr!==null&&!Gn();)jR(qr)}function jR(h){var m=XR(h.alternate,h,Oi);h.memoizedProps=h.pendingProps,m===null?UR(h):qr=m,i_.current=null}function UR(h){var m=h;do{var _=m.alternate;if(h=m.return,(m.flags&32768)===0){if(_=yY(_,m,Oi),_!==null){qr=_;return}}else{if(_=xY(_,m),_!==null){_.flags&=32767,qr=_;return}if(h!==null)h.flags|=32768,h.subtreeFlags=0,h.deletions=null;else{nn=6,qr=null;return}}if(m=m.sibling,m!==null){qr=m;return}qr=m=h}while(m!==null);nn===0&&(nn=5)}function bu(h,m,_){var M=pr,D=na.transition;try{na.transition=null,pr=1,MY(h,m,_,M)}finally{na.transition=D,pr=M}return null}function MY(h,m,_,M){do _f();while(ll!==null);if((er&6)!==0)throw Error(r(327));_=h.finishedWork;var D=h.finishedLanes;if(_===null)return null;if(h.finishedWork=null,h.finishedLanes=0,_===h.current)throw Error(r(177));h.callbackNode=null,h.callbackPriority=0;var L=_.lanes|_.childLanes;if(sU(h,L),h===dn&&(qr=dn=null,xn=0),(_.subtreeFlags&2064)===0&&(_.flags&2064)===0||Xm||(Xm=!0,ZR(nm,function(){return _f(),null})),L=(_.flags&15990)!==0,(_.subtreeFlags&15990)!==0||L){L=na.transition,na.transition=null;var U=pr;pr=1;var K=er;er|=4,i_.current=null,SY(h,_),NR(_,h),YU(pS),cm=!!dS,pS=dS=null,h.current=_,_Y(_),Q7(),er=K,pr=U,na.transition=L}else h.current=_;if(Xm&&(Xm=!1,ll=h,Zm=D),L=h.pendingLanes,L===0&&(sl=null),tU(_.stateNode),vi(h,Hr()),m!==null)for(M=h.onRecoverableError,_=0;_<m.length;_++)D=m[_],M(D.value,{componentStack:D.stack,digest:D.digest});if(qm)throw qm=!1,h=s_,s_=null,h;return(Zm&1)!==0&&h.tag!==0&&_f(),L=h.pendingLanes,(L&1)!==0?h===l_?Hp++:(Hp=0,l_=h):Hp=0,nl(),null}function _f(){if(ll!==null){var h=EP(Zm),m=na.transition,_=pr;try{if(na.transition=null,pr=16>h?16:h,ll===null)var M=!1;else{if(h=ll,ll=null,Zm=0,(er&6)!==0)throw Error(r(331));var D=er;for(er|=4,Ze=h.current;Ze!==null;){var L=Ze,U=L.child;if((Ze.flags&16)!==0){var K=L.deletions;if(K!==null){for(var Q=0;Q<K.length;Q++){var se=K[Q];for(Ze=se;Ze!==null;){var Ae=Ze;switch(Ae.tag){case 0:case 11:case 15:Fp(8,Ae,L)}var Pe=Ae.child;if(Pe!==null)Pe.return=Ae,Ze=Pe;else for(;Ze!==null;){Ae=Ze;var we=Ae.sibling,Ue=Ae.return;if(DR(Ae),Ae===se){Ze=null;break}if(we!==null){we.return=Ue,Ze=we;break}Ze=Ue}}}var Qe=L.alternate;if(Qe!==null){var et=Qe.child;if(et!==null){Qe.child=null;do{var Gr=et.sibling;et.sibling=null,et=Gr}while(et!==null)}}Ze=L}}if((L.subtreeFlags&2064)!==0&&U!==null)U.return=L,Ze=U;else e:for(;Ze!==null;){if(L=Ze,(L.flags&2048)!==0)switch(L.tag){case 0:case 11:case 15:Fp(9,L,L.return)}var ie=L.sibling;if(ie!==null){ie.return=L.return,Ze=ie;break e}Ze=L.return}}var ee=h.current;for(Ze=ee;Ze!==null;){U=Ze;var ae=U.child;if((U.subtreeFlags&2064)!==0&&ae!==null)ae.return=U,Ze=ae;else e:for(U=ee;Ze!==null;){if(K=Ze,(K.flags&2048)!==0)try{switch(K.tag){case 0:case 11:case 15:jm(9,K)}}catch(rt){zr(K,K.return,rt)}if(K===U){Ze=null;break e}var Oe=K.sibling;if(Oe!==null){Oe.return=K.return,Ze=Oe;break e}Ze=K.return}}if(er=D,nl(),po&&typeof po.onPostCommitFiberRoot=="function")try{po.onPostCommitFiberRoot(im,h)}catch{}M=!0}return M}finally{pr=_,na.transition=m}}return!1}function YR(h,m,_){m=yf(_,m),m=fR(h,m,1),h=al(h,m,1),m=jn(),h!==null&&(dp(h,1,m),vi(h,m))}function zr(h,m,_){if(h.tag===3)YR(h,h,_);else for(;m!==null;){if(m.tag===3){YR(m,h,_);break}else if(m.tag===1){var M=m.stateNode;if(typeof m.type.getDerivedStateFromError=="function"||typeof M.componentDidCatch=="function"&&(sl===null||!sl.has(M))){h=yf(_,h),h=dR(m,h,1),m=al(m,h,1),h=jn(),m!==null&&(dp(m,1,h),vi(m,h));break}}m=m.return}}function IY(h,m,_){var M=h.pingCache;M!==null&&M.delete(m),m=jn(),h.pingedLanes|=h.suspendedLanes&_,dn===h&&(xn&_)===_&&(nn===4||nn===3&&(xn&130023424)===xn&&500>Hr()-o_?xu(h,0):a_|=_),vi(h,m)}function qR(h,m){m===0&&((h.mode&1)===0?m=1:(m=om,om<<=1,(om&130023424)===0&&(om=4194304)));var _=jn();h=ds(h,m),h!==null&&(dp(h,m,_),vi(h,_))}function kY(h){var m=h.memoizedState,_=0;m!==null&&(_=m.retryLane),qR(h,_)}function PY(h,m){var _=0;switch(h.tag){case 13:var M=h.stateNode,D=h.memoizedState;D!==null&&(_=D.retryLane);break;case 19:M=h.stateNode;break;default:throw Error(r(314))}M!==null&&M.delete(m),qR(h,_)}var XR;XR=function(h,m,_){if(h!==null)if(h.memoizedProps!==m.pendingProps||fi.current)pi=!0;else{if((h.lanes&_)===0&&(m.flags&128)===0)return pi=!1,mY(h,m,_);pi=(h.flags&131072)!==0}else pi=!1,kr&&(m.flags&1048576)!==0&&ID(m,Im,m.index);switch(m.lanes=0,m.tag){case 2:var M=m.type;Gm(h,m),h=m.pendingProps;var D=cf(m,In.current);gf(m,_),D=zS(null,m,M,h,D,_);var L=BS();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,di(M)?(L=!0,Tm(m)):L=!1,m.memoizedState=D.state!==null&&D.state!==void 0?D.state:null,PS(m),D.updater=Vm,m.stateNode=D,D._reactInternals=m,WS(m,M,h,_),m=qS(null,m,M,!0,L,_)):(m.tag=0,kr&&L&&bS(m),Wn(null,m,D,_),m=m.child),m;case 16:M=m.elementType;e:{switch(Gm(h,m),h=m.pendingProps,D=M._init,M=D(M._payload),m.type=M,D=m.tag=RY(M),h=Na(M,h),D){case 0:m=YS(null,m,M,h,_);break e;case 1:m=SR(null,m,M,h,_);break e;case 11:m=gR(null,m,M,h,_);break e;case 14:m=mR(null,m,M,Na(M.type,h),_);break e}throw Error(r(306,M,""))}return m;case 0:return M=m.type,D=m.pendingProps,D=m.elementType===M?D:Na(M,D),YS(h,m,M,D,_);case 1:return M=m.type,D=m.pendingProps,D=m.elementType===M?D:Na(M,D),SR(h,m,M,D,_);case 3:e:{if(_R(m),h===null)throw Error(r(387));M=m.pendingProps,L=m.memoizedState,D=L.element,zD(h,m),Em(m,M,null,_);var U=m.memoizedState;if(M=U.element,L.isDehydrated)if(L={element:M,isDehydrated:!1,cache:U.cache,pendingSuspenseBoundaries:U.pendingSuspenseBoundaries,transitions:U.transitions},m.updateQueue.baseState=L,m.memoizedState=L,m.flags&256){D=yf(Error(r(423)),m),m=wR(h,m,M,_,D);break e}else if(M!==D){D=yf(Error(r(424)),m),m=wR(h,m,M,_,D);break e}else for(Ei=el(m.stateNode.containerInfo.firstChild),Li=m,kr=!0,Oa=null,_=OD(m,null,M,_),m.child=_;_;)_.flags=_.flags&-3|4096,_=_.sibling;else{if(pf(),M===D){m=hs(h,m,_);break e}Wn(h,m,M,_)}m=m.child}return m;case 5:return $D(m),h===null&&wS(m),M=m.type,D=m.pendingProps,L=h!==null?h.memoizedProps:null,U=D.children,hS(M,D)?U=null:L!==null&&hS(M,L)&&(m.flags|=32),bR(h,m),Wn(h,m,U,_),m.child;case 6:return h===null&&wS(m),null;case 13:return CR(h,m,_);case 4:return DS(m,m.stateNode.containerInfo),M=m.pendingProps,h===null?m.child=hf(m,null,M,_):Wn(h,m,M,_),m.child;case 11:return M=m.type,D=m.pendingProps,D=m.elementType===M?D:Na(M,D),gR(h,m,M,D,_);case 7:return Wn(h,m,m.pendingProps,_),m.child;case 8:return Wn(h,m,m.pendingProps.children,_),m.child;case 12:return Wn(h,m,m.pendingProps.children,_),m.child;case 10:e:{if(M=m.type._context,D=m.pendingProps,L=m.memoizedProps,U=D.value,xr(Dm,M._currentValue),M._currentValue=U,L!==null)if(Ea(L.value,U)){if(L.children===D.children&&!fi.current){m=hs(h,m,_);break e}}else for(L=m.child,L!==null&&(L.return=m);L!==null;){var K=L.dependencies;if(K!==null){U=L.child;for(var Q=K.firstContext;Q!==null;){if(Q.context===M){if(L.tag===1){Q=ps(-1,_&-_),Q.tag=2;var se=L.updateQueue;if(se!==null){se=se.shared;var Ae=se.pending;Ae===null?Q.next=Q:(Q.next=Ae.next,Ae.next=Q),se.pending=Q}}L.lanes|=_,Q=L.alternate,Q!==null&&(Q.lanes|=_),IS(L.return,_,m),K.lanes|=_;break}Q=Q.next}}else if(L.tag===10)U=L.type===m.type?null:L.child;else if(L.tag===18){if(U=L.return,U===null)throw Error(r(341));U.lanes|=_,K=U.alternate,K!==null&&(K.lanes|=_),IS(U,_,m),U=L.sibling}else U=L.child;if(U!==null)U.return=L;else for(U=L;U!==null;){if(U===m){U=null;break}if(L=U.sibling,L!==null){L.return=U.return,U=L;break}U=U.return}L=U}Wn(h,m,D.children,_),m=m.child}return m;case 9:return D=m.type,M=m.pendingProps.children,gf(m,_),D=ta(D),M=M(D),m.flags|=1,Wn(h,m,M,_),m.child;case 14:return M=m.type,D=Na(M,m.pendingProps),D=Na(M.type,D),mR(h,m,M,D,_);case 15:return yR(h,m,m.type,m.pendingProps,_);case 17:return M=m.type,D=m.pendingProps,D=m.elementType===M?D:Na(M,D),Gm(h,m),m.tag=1,di(M)?(h=!0,Tm(m)):h=!1,gf(m,_),uR(m,M,D),WS(m,M,D,_),qS(null,m,M,!0,h,_);case 19:return AR(h,m,_);case 22:return xR(h,m,_)}throw Error(r(156,m.tag))};function ZR(h,m){return Hn(h,m)}function DY(h,m,_,M){this.tag=h,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 ia(h,m,_,M){return new DY(h,m,_,M)}function h_(h){return h=h.prototype,!(!h||!h.isReactComponent)}function RY(h){if(typeof h=="function")return h_(h)?1:0;if(h!=null){if(h=h.$$typeof,h===O)return 11;if(h===B)return 14}return 2}function fl(h,m){var _=h.alternate;return _===null?(_=ia(h.tag,m,h.key,h.mode),_.elementType=h.elementType,_.type=h.type,_.stateNode=h.stateNode,_.alternate=h,h.alternate=_):(_.pendingProps=m,_.type=h.type,_.flags=0,_.subtreeFlags=0,_.deletions=null),_.flags=h.flags&14680064,_.childLanes=h.childLanes,_.lanes=h.lanes,_.child=h.child,_.memoizedProps=h.memoizedProps,_.memoizedState=h.memoizedState,_.updateQueue=h.updateQueue,m=h.dependencies,_.dependencies=m===null?null:{lanes:m.lanes,firstContext:m.firstContext},_.sibling=h.sibling,_.index=h.index,_.ref=h.ref,_}function ey(h,m,_,M,D,L){var U=2;if(M=h,typeof h=="function")h_(h)&&(U=1);else if(typeof h=="string")U=5;else e:switch(h){case A:return Su(_.children,D,L,m);case I:U=8,D|=8;break;case k:return h=ia(12,_,m,D|2),h.elementType=k,h.lanes=L,h;case E:return h=ia(13,_,m,D),h.elementType=E,h.lanes=L,h;case z:return h=ia(19,_,m,D),h.elementType=z,h.lanes=L,h;case X:return ty(_,D,L,m);default:if(typeof h=="object"&&h!==null)switch(h.$$typeof){case P:U=10;break e;case R:U=9;break e;case O:U=11;break e;case B:U=14;break e;case W:U=16,M=null;break e}throw Error(r(130,h==null?h:typeof h,""))}return m=ia(U,_,m,D),m.elementType=h,m.type=M,m.lanes=L,m}function Su(h,m,_,M){return h=ia(7,h,M,m),h.lanes=_,h}function ty(h,m,_,M){return h=ia(22,h,M,m),h.elementType=X,h.lanes=_,h.stateNode={isHidden:!1},h}function v_(h,m,_){return h=ia(6,h,null,m),h.lanes=_,h}function g_(h,m,_){return m=ia(4,h.children!==null?h.children:[],h.key,m),m.lanes=_,m.stateNode={containerInfo:h.containerInfo,pendingChildren:null,implementation:h.implementation},m}function LY(h,m,_,M,D){this.tag=m,this.containerInfo=h,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Gb(0),this.expirationTimes=Gb(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gb(0),this.identifierPrefix=M,this.onRecoverableError=D,this.mutableSourceEagerHydrationData=null}function m_(h,m,_,M,D,L,U,K,Q){return h=new LY(h,m,_,K,Q),m===1?(m=1,L===!0&&(m|=8)):m=0,L=ia(3,null,null,m),h.current=L,L.stateNode=h,L.memoizedState={element:M,isDehydrated:_,cache:null,transitions:null,pendingSuspenseBoundaries:null},PS(L),h}function EY(h,m,_){var M=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:C,key:M==null?null:""+M,children:h,containerInfo:m,implementation:_}}function KR(h){if(!h)return rl;h=h._reactInternals;e:{if(de(h)!==h||h.tag!==1)throw Error(r(170));var m=h;do{switch(m.tag){case 3:m=m.stateNode.context;break e;case 1:if(di(m.type)){m=m.stateNode.__reactInternalMemoizedMergedChildContext;break e}}m=m.return}while(m!==null);throw Error(r(171))}if(h.tag===1){var _=h.type;if(di(_))return TD(h,_,m)}return m}function QR(h,m,_,M,D,L,U,K,Q){return h=m_(_,M,!0,h,D,L,U,K,Q),h.context=KR(null),_=h.current,M=jn(),D=ul(_),L=ps(M,D),L.callback=m??null,al(_,L,D),h.current.lanes=D,dp(h,D,M),vi(h,M),h}function ry(h,m,_,M){var D=m.current,L=jn(),U=ul(D);return _=KR(_),m.context===null?m.context=_:m.pendingContext=_,m=ps(L,U),m.payload={element:h},M=M===void 0?null:M,M!==null&&(m.callback=M),h=al(D,m,U),h!==null&&(Fa(h,D,U,L),Lm(h,D,U)),U}function ny(h){if(h=h.current,!h.child)return null;switch(h.child.tag){case 5:return h.child.stateNode;default:return h.child.stateNode}}function JR(h,m){if(h=h.memoizedState,h!==null&&h.dehydrated!==null){var _=h.retryLane;h.retryLane=_!==0&&_<m?_:m}}function y_(h,m){JR(h,m),(h=h.alternate)&&JR(h,m)}function OY(){return null}var eL=typeof reportError=="function"?reportError:function(h){console.error(h)};function x_(h){this._internalRoot=h}iy.prototype.render=x_.prototype.render=function(h){var m=this._internalRoot;if(m===null)throw Error(r(409));ry(h,m,null,null)},iy.prototype.unmount=x_.prototype.unmount=function(){var h=this._internalRoot;if(h!==null){this._internalRoot=null;var m=h.containerInfo;yu(function(){ry(null,h,null,null)}),m[ls]=null}};function iy(h){this._internalRoot=h}iy.prototype.unstable_scheduleHydration=function(h){if(h){var m=zP();h={blockedOn:null,target:h,priority:m};for(var _=0;_<Ks.length&&m!==0&&m<Ks[_].priority;_++);Ks.splice(_,0,h),_===0&&$P(h)}};function b_(h){return!(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)}function ay(h){return!(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11&&(h.nodeType!==8||h.nodeValue!==" react-mount-point-unstable "))}function tL(){}function NY(h,m,_,M,D){if(D){if(typeof M=="function"){var L=M;M=function(){var se=ny(U);L.call(se)}}var U=QR(m,M,h,0,null,!1,!1,"",tL);return h._reactRootContainer=U,h[ls]=U.current,Ap(h.nodeType===8?h.parentNode:h),yu(),U}for(;D=h.lastChild;)h.removeChild(D);if(typeof M=="function"){var K=M;M=function(){var se=ny(Q);K.call(se)}}var Q=m_(h,0,!1,null,null,!1,!1,"",tL);return h._reactRootContainer=Q,h[ls]=Q.current,Ap(h.nodeType===8?h.parentNode:h),yu(function(){ry(m,Q,_,M)}),Q}function oy(h,m,_,M,D){var L=_._reactRootContainer;if(L){var U=L;if(typeof D=="function"){var K=D;D=function(){var Q=ny(U);K.call(Q)}}ry(m,U,h,D)}else U=NY(_,m,h,D,M);return ny(U)}OP=function(h){switch(h.tag){case 3:var m=h.stateNode;if(m.current.memoizedState.isDehydrated){var _=fp(m.pendingLanes);_!==0&&(Wb(m,_|1),vi(m,Hr()),(er&6)===0&&(Sf=Hr()+500,nl()))}break;case 13:yu(function(){var M=ds(h,1);if(M!==null){var D=jn();Fa(M,h,1,D)}}),y_(h,1)}},jb=function(h){if(h.tag===13){var m=ds(h,134217728);if(m!==null){var _=jn();Fa(m,h,134217728,_)}y_(h,134217728)}},NP=function(h){if(h.tag===13){var m=ul(h),_=ds(h,m);if(_!==null){var M=jn();Fa(_,h,m,M)}y_(h,m)}},zP=function(){return pr},BP=function(h,m){var _=pr;try{return pr=h,m()}finally{pr=_}},wr=function(h,m,_){switch(m){case"input":if(He(h,_),m=_.name,_.type==="radio"&&m!=null){for(_=h;_.parentNode;)_=_.parentNode;for(_=_.querySelectorAll("input[name="+JSON.stringify(""+m)+'][type="radio"]'),m=0;m<_.length;m++){var M=_[m];if(M!==h&&M.form===h.form){var D=wm(M);if(!D)throw Error(r(90));Se(M),He(M,D)}}}break;case"textarea":Rt(h,_);break;case"select":m=_.value,m!=null&&nt(h,!!_.multiple,m,!1)}},as=f_,os=yu;var zY={usingClientEntryPoint:!1,Events:[kp,lf,wm,$n,lo,f_]},Gp={findFiberByHostInstance:cu,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},BY={bundleType:Gp.bundleType,version:Gp.version,rendererPackageName:Gp.rendererPackageName,rendererConfig:Gp.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(h){return h=Mr(h),h===null?null:h.stateNode},findFiberByHostInstance:Gp.findFiberByHostInstance||OY,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 sy=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sy.isDisabled&&sy.supportsFiber)try{im=sy.inject(BY),po=sy}catch{}}return gi.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zY,gi.createPortal=function(h,m){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!b_(m))throw Error(r(200));return EY(h,m,null,_)},gi.createRoot=function(h,m){if(!b_(h))throw Error(r(299));var _=!1,M="",D=eL;return m!=null&&(m.unstable_strictMode===!0&&(_=!0),m.identifierPrefix!==void 0&&(M=m.identifierPrefix),m.onRecoverableError!==void 0&&(D=m.onRecoverableError)),m=m_(h,1,!1,null,null,_,!1,M,D),h[ls]=m.current,Ap(h.nodeType===8?h.parentNode:h),new x_(m)},gi.findDOMNode=function(h){if(h==null)return null;if(h.nodeType===1)return h;var m=h._reactInternals;if(m===void 0)throw typeof h.render=="function"?Error(r(188)):(h=Object.keys(h).join(","),Error(r(268,h)));return h=Mr(m),h=h===null?null:h.stateNode,h},gi.flushSync=function(h){return yu(h)},gi.hydrate=function(h,m,_){if(!ay(m))throw Error(r(200));return oy(null,h,m,!0,_)},gi.hydrateRoot=function(h,m,_){if(!b_(h))throw Error(r(405));var M=_!=null&&_.hydratedSources||null,D=!1,L="",U=eL;if(_!=null&&(_.unstable_strictMode===!0&&(D=!0),_.identifierPrefix!==void 0&&(L=_.identifierPrefix),_.onRecoverableError!==void 0&&(U=_.onRecoverableError)),m=QR(m,null,h,1,_??null,D,!1,L,U),h[ls]=m.current,Ap(h),M)for(h=0;h<M.length;h++)_=M[h],D=_._getVersion,D=D(_._source),m.mutableSourceEagerHydrationData==null?m.mutableSourceEagerHydrationData=[_,D]:m.mutableSourceEagerHydrationData.push(_,D);return new iy(m)},gi.render=function(h,m,_){if(!ay(m))throw Error(r(200));return oy(null,h,m,!1,_)},gi.unmountComponentAtNode=function(h){if(!ay(h))throw Error(r(40));return h._reactRootContainer?(yu(function(){oy(null,null,h,!1,function(){h._reactRootContainer=null,h[ls]=null})}),!0):!1},gi.unstable_batchedUpdates=f_,gi.unstable_renderSubtreeIntoContainer=function(h,m,_,M){if(!ay(_))throw Error(r(200));if(h==null||h._reactInternals===void 0)throw Error(r(38));return oy(h,m,_,!1,M)},gi.version="18.3.1-next-f1338f8080-20240426",gi}var uL;function h$(){if(uL)return C_.exports;uL=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(),C_.exports=qY(),C_.exports}var cL;function XY(){if(cL)return ly;cL=1;var e=h$();return ly.createRoot=e.createRoot,ly.hydrateRoot=e.hydrateRoot,ly}var ZY=XY();const KY=Xi(ZY);var V=vx();const Ua=Xi(V),kv=HY({__proto__:null,default:Ua},[V]),QY=V.createContext(null),M_={didCatch:!1,error:null};class JY extends V.Component{constructor(t){super(t),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=M_}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(M_)}}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&&eq(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(M_)}}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=V.createElement(n,l);else if(i===null||V.isValidElement(i))s=i;else throw o}return V.createElement(QY.Provider,{value:{didCatch:a,error:o,resetErrorBoundary:this.resetErrorBoundary}},s)}}function eq(){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 bn(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 tq=typeof Symbol=="function"&&Symbol.observable||"@@observable",fL=tq,I_=()=>Math.random().toString(36).substring(7).split("").join("."),rq={INIT:`@@redux/INIT${I_()}`,REPLACE:`@@redux/REPLACE${I_()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${I_()}`},i1=rq;function jo(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 v$(e,t,r){if(typeof e!="function")throw new Error(bn(2));if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(bn(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(bn(1));return r(v$)(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(bn(3));return i}function f(y){if(typeof y!="function")throw new Error(bn(4));if(l)throw new Error(bn(5));let x=!0;u();const b=s++;return o.set(b,y),function(){if(x){if(l)throw new Error(bn(6));x=!1,u(),o.delete(b),a=null}}}function d(y){if(!jo(y))throw new Error(bn(7));if(typeof y.type>"u")throw new Error(bn(8));if(typeof y.type!="string")throw new Error(bn(17));if(l)throw new Error(bn(9));try{l=!0,i=n(i,y)}finally{l=!1}return(a=o).forEach(b=>{b()}),y}function p(y){if(typeof y!="function")throw new Error(bn(10));n=y,d({type:i1.REPLACE})}function v(){const y=f;return{subscribe(x){if(typeof x!="object"||x===null)throw new Error(bn(11));function b(){const w=x;w.next&&w.next(c())}return b(),{unsubscribe:y(b)}},[fL](){return this}}}return d({type:i1.INIT}),{dispatch:d,subscribe:f,getState:c,replaceReducer:p,[fL]:v}}function nq(e){Object.keys(e).forEach(t=>{const r=e[t];if(typeof r(void 0,{type:i1.INIT})>"u")throw new Error(bn(12));if(typeof r(void 0,{type:i1.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(bn(13))})}function gx(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{nq(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],p=o[f],v=d(p,s);if(typeof v>"u")throw s&&s.type,new Error(bn(14));u[f]=v,l=l||v!==p}return l=l||n.length!==Object.keys(o).length,l?u:o}}function a1(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function iq(...e){return t=>(r,n)=>{const i=t(r,n);let a=()=>{throw new Error(bn(15))};const o={getState:i.getState,dispatch:(l,...u)=>a(l,...u)},s=e.map(l=>l(o));return a=a1(...s)(i.dispatch),{...i,dispatch:a}}}function g$(e){return jo(e)&&"type"in e&&typeof e.type=="string"}var cM=Symbol.for("immer-nothing"),tv=Symbol.for("immer-draftable"),Ii=Symbol.for("immer-state");function wn(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Dc=Object.getPrototypeOf;function Ka(e){return!!e&&!!e[Ii]}function Qa(e){var t;return e?m$(e)||Array.isArray(e)||!!e[tv]||!!((t=e.constructor)!=null&&t[tv])||bg(e)||Sg(e):!1}var aq=Object.prototype.constructor.toString();function m$(e){if(!e||typeof e!="object")return!1;const t=Dc(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)===aq}function oq(e){return Ka(e)||wn(15,e),e[Ii].base_}function Pv(e,t){Rc(e)===0?Reflect.ownKeys(e).forEach(r=>{t(r,e[r],e)}):e.forEach((r,n)=>t(n,r,e))}function Rc(e){const t=e[Ii];return t?t.type_:Array.isArray(e)?1:bg(e)?2:Sg(e)?3:0}function Dv(e,t){return Rc(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function k_(e,t){return Rc(e)===2?e.get(t):e[t]}function y$(e,t,r){const n=Rc(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function sq(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function bg(e){return e instanceof Map}function Sg(e){return e instanceof Set}function Yu(e){return e.copy_||e.base_}function zT(e,t){if(bg(e))return new Map(e);if(Sg(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const r=m$(e);if(t===!0||t==="class_only"&&!r){const n=Object.getOwnPropertyDescriptors(e);delete n[Ii];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(Dc(e),n)}else{const n=Dc(e);if(n!==null&&r)return{...e};const i=Object.create(n);return Object.assign(i,e)}}function fM(e,t=!1){return mx(e)||Ka(e)||!Qa(e)||(Rc(e)>1&&(e.set=e.add=e.clear=e.delete=lq),Object.freeze(e),t&&Object.entries(e).forEach(([r,n])=>fM(n,!0))),e}function lq(){wn(2)}function mx(e){return Object.isFrozen(e)}var BT={};function Lc(e){const t=BT[e];return t||wn(0,e),t}function uq(e,t){BT[e]||(BT[e]=t)}var Rv;function x$(){return Rv}function cq(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function dL(e,t){t&&(Lc("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function FT(e){$T(e),e.drafts_.forEach(fq),e.drafts_=null}function $T(e){e===Rv&&(Rv=e.parent_)}function pL(e){return Rv=cq(Rv,e)}function fq(e){const t=e[Ii];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function hL(e,t){t.unfinalizedDrafts_=t.drafts_.length;const r=t.drafts_[0];return e!==void 0&&e!==r?(r[Ii].modified_&&(FT(t),wn(4)),Qa(e)&&(e=o1(t,e),t.parent_||s1(t,e)),t.patches_&&Lc("Patches").generateReplacementPatches_(r[Ii].base_,e,t.patches_,t.inversePatches_)):e=o1(t,r,[]),FT(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==cM?e:void 0}function o1(e,t,r){if(mx(t))return t;const n=t[Ii];if(!n)return Pv(t,(i,a)=>vL(e,n,t,i,a,r)),t;if(n.scope_!==e)return t;if(!n.modified_)return s1(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),Pv(a,(s,l)=>vL(e,n,i,s,l,r,o)),s1(e,i,!1),r&&e.patches_&&Lc("Patches").generatePatches_(n,r,e.patches_,e.inversePatches_)}return n.copy_}function vL(e,t,r,n,i,a,o){if(Ka(i)){const s=a&&t&&t.type_!==3&&!Dv(t.assigned_,n)?a.concat(n):void 0,l=o1(e,i,s);if(y$(r,n,l),Ka(l))e.canAutoFreeze_=!1;else return}else o&&r.add(i);if(Qa(i)&&!mx(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;o1(e,i),(!t||!t.scope_.parent_)&&typeof n!="symbol"&&Object.prototype.propertyIsEnumerable.call(r,n)&&s1(e,i)}}function s1(e,t,r=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&fM(t,r)}function dq(e,t){const r=Array.isArray(e),n={type_:r?1:0,scope_:t?t.scope_:x$(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=n,a=dM;r&&(i=[n],a=Lv);const{revoke:o,proxy:s}=Proxy.revocable(i,a);return n.draft_=s,n.revoke_=o,s}var dM={get(e,t){if(t===Ii)return e;const r=Yu(e);if(!Dv(r,t))return pq(e,r,t);const n=r[t];return e.finalized_||!Qa(n)?n:n===P_(e.base_,t)?(D_(e),e.copy_[t]=HT(n,e)):n},has(e,t){return t in Yu(e)},ownKeys(e){return Reflect.ownKeys(Yu(e))},set(e,t,r){const n=b$(Yu(e),t);if(n!=null&&n.set)return n.set.call(e.draft_,r),!0;if(!e.modified_){const i=P_(Yu(e),t),a=i==null?void 0:i[Ii];if(a&&a.base_===r)return e.copy_[t]=r,e.assigned_[t]=!1,!0;if(sq(r,i)&&(r!==void 0||Dv(e.base_,t)))return!0;D_(e),VT(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 P_(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,D_(e),VT(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const r=Yu(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty(){wn(11)},getPrototypeOf(e){return Dc(e.base_)},setPrototypeOf(){wn(12)}},Lv={};Pv(dM,(e,t)=>{Lv[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Lv.deleteProperty=function(e,t){return Lv.set.call(this,e,t,void 0)};Lv.set=function(e,t,r){return dM.set.call(this,e[0],t,r,e[0])};function P_(e,t){const r=e[Ii];return(r?Yu(r):e)[t]}function pq(e,t,r){var i;const n=b$(t,r);return n?"value"in n?n.value:(i=n.get)==null?void 0:i.call(e.draft_):void 0}function b$(e,t){if(!(t in e))return;let r=Dc(e);for(;r;){const n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Dc(r)}}function VT(e){e.modified_||(e.modified_=!0,e.parent_&&VT(e.parent_))}function D_(e){e.copy_||(e.copy_=zT(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var hq=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"&&wn(6),n!==void 0&&typeof n!="function"&&wn(7);let i;if(Qa(t)){const a=pL(this),o=HT(t,void 0);let s=!0;try{i=r(o),s=!1}finally{s?FT(a):$T(a)}return dL(a,n),hL(i,a)}else if(!t||typeof t!="object"){if(i=r(t),i===void 0&&(i=t),i===cM&&(i=void 0),this.autoFreeze_&&fM(i,!0),n){const a=[],o=[];Lc("Patches").generateReplacementPatches_(t,i,a,o),n(a,o)}return i}else wn(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){Qa(e)||wn(8),Ka(e)&&(e=S$(e));const t=pL(this),r=HT(e,void 0);return r[Ii].isManual_=!0,$T(t),r}finishDraft(e,t){const r=e&&e[Ii];(!r||!r.isManual_)&&wn(9);const{scope_:n}=r;return dL(n,t),hL(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=Lc("Patches").applyPatches_;return Ka(e)?n(e,t):this.produce(e,i=>n(i,t))}};function HT(e,t){const r=bg(e)?Lc("MapSet").proxyMap_(e,t):Sg(e)?Lc("MapSet").proxySet_(e,t):dq(e,t);return(t?t.scope_:x$()).drafts_.push(r),r}function S$(e){return Ka(e)||wn(10,e),_$(e)}function _$(e){if(!Qa(e)||mx(e))return e;const t=e[Ii];let r;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,r=zT(e,t.scope_.immer_.useStrictShallowCopy_)}else r=zT(e,!0);return Pv(r,(n,i)=>{y$(r,n,_$(i))}),t&&(t.finalized_=!1),r}function vq(){const t="replace",r="add",n="remove";function i(d,p,v,g){switch(d.type_){case 0:case 2:return o(d,p,v,g);case 1:return a(d,p,v,g);case 3:return s(d,p,v,g)}}function a(d,p,v,g){let{base_:y,assigned_:x}=d,b=d.copy_;b.length<y.length&&([y,b]=[b,y],[v,g]=[g,v]);for(let S=0;S<y.length;S++)if(x[S]&&b[S]!==y[S]){const w=p.concat([S]);v.push({op:t,path:w,value:f(b[S])}),g.push({op:t,path:w,value:f(y[S])})}for(let S=y.length;S<b.length;S++){const w=p.concat([S]);v.push({op:r,path:w,value:f(b[S])})}for(let S=b.length-1;y.length<=S;--S){const w=p.concat([S]);g.push({op:n,path:w})}}function o(d,p,v,g){const{base_:y,copy_:x}=d;Pv(d.assigned_,(b,S)=>{const w=k_(y,b),T=k_(x,b),C=S?Dv(y,b)?t:r:n;if(w===T&&C===t)return;const A=p.concat(b);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,p,v,g){let{base_:y,copy_:x}=d,b=0;y.forEach(S=>{if(!x.has(S)){const w=p.concat([b]);v.push({op:n,path:w,value:S}),g.unshift({op:r,path:w,value:S})}b++}),b=0,x.forEach(S=>{if(!y.has(S)){const w=p.concat([b]);v.push({op:r,path:w,value:S}),g.unshift({op:n,path:w,value:S})}b++})}function l(d,p,v,g){v.push({op:t,path:[],value:p===cM?void 0:p}),g.push({op:t,path:[],value:d})}function u(d,p){return p.forEach(v=>{const{path:g,op:y}=v;let x=d;for(let T=0;T<g.length-1;T++){const C=Rc(x);let A=g[T];typeof A!="string"&&typeof A!="number"&&(A=""+A),(C===0||C===1)&&(A==="__proto__"||A==="constructor")&&wn(19),typeof x=="function"&&A==="prototype"&&wn(19),x=k_(x,A),typeof x!="object"&&wn(18,g.join("/"))}const b=Rc(x),S=c(v.value),w=g[g.length-1];switch(y){case t:switch(b){case 2:return x.set(w,S);case 3:wn(16);default:return x[w]=S}case r:switch(b){case 1:return w==="-"?x.push(S):x.splice(w,0,S);case 2:return x.set(w,S);case 3:return x.add(S);default:return x[w]=S}case n:switch(b){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:wn(17,y)}}),d}function c(d){if(!Qa(d))return d;if(Array.isArray(d))return d.map(c);if(bg(d))return new Map(Array.from(d.entries()).map(([v,g])=>[v,c(g)]));if(Sg(d))return new Set(Array.from(d).map(c));const p=Object.create(Dc(d));for(const v in d)p[v]=c(d[v]);return Dv(d,tv)&&(p[tv]=d[tv]),p}function f(d){return Ka(d)?c(d):d}uq("Patches",{applyPatches_:u,generatePatches_:i,generateReplacementPatches_:l})}var Yi=new hq,_g=Yi.produce,w$=Yi.produceWithPatches.bind(Yi);Yi.setAutoFreeze.bind(Yi);Yi.setUseStrictShallowCopy.bind(Yi);var gL=Yi.applyPatches.bind(Yi);Yi.createDraft.bind(Yi);Yi.finishDraft.bind(Yi);function gq(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function mq(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function yq(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 mL=e=>Array.isArray(e)?e:[e];function xq(e){const t=Array.isArray(e[0])?e[0]:e;return yq(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function bq(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var Sq=class{constructor(e){this.value=e}deref(){return this.value}},_q=typeof WeakRef<"u"?WeakRef:Sq,wq=0,yL=1;function uy(){return{s:wq,v:void 0,o:null,p:null}}function Ev(e,t={}){let r=uy();const{resultEqualityCheck:n}=t;let i,a=0;function o(){var f;let s=r;const{length:l}=arguments;for(let d=0,p=l;d<p;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=uy(),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=uy(),g.set(v,s)):s=y}}const u=s;let c;if(s.s===yL)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 _q(c):c}return u.s=yL,u.v=c,c}return o.clearCache=()=>{r=uy(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function C$(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()),gq(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const c={...r,...l},{memoize:f,memoizeOptions:d=[],argsMemoize:p=Ev,argsMemoizeOptions:v=[]}=c,g=mL(d),y=mL(v),x=xq(i),b=f(function(){return a++,u.apply(null,arguments)},...g),S=p(function(){o++;const T=bq(x,arguments);return s=b.apply(null,T),s},...y);return Object.assign(S,{resultFunc:u,memoizedResultFunc:b,dependencies:x,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>s,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:p})};return Object.assign(n,{withTypes:()=>n}),n}var pM=C$(Ev),Cq=Object.assign((e,t=pM)=>{mq(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:()=>Cq});function T$(e){return({dispatch:r,getState:n})=>i=>a=>typeof a=="function"?a(r,n,e):i(a)}var Tq=T$(),Aq=T$,Mq=(...e)=>{const t=C$(...e),r=Object.assign((...n)=>{const i=t(...n),a=(o,...s)=>i(Ka(o)?S$(o):o,...s);return Object.assign(a,i),a},{withTypes:()=>r});return r};Mq(Ev);var Iq=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?a1:a1.apply(null,arguments)},kq=e=>e&&typeof e.match=="function";function Jn(e,t){function r(...n){if(t){let i=t(...n);if(!i)throw new Error(zn(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=>g$(n)&&n.type===e,r}var A$=class Bh extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Bh.prototype)}static get[Symbol.species](){return Bh}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Bh(...t[0].concat(this)):new Bh(...t.concat(this))}};function xL(e){return Qa(e)?_g(e,()=>{}):e}function bL(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(zn(10));const n=r.insert(t,e);return e.set(t,n),n}function Pq(e){return typeof e=="boolean"}var Dq=()=>function(t){const{thunk:r=!0,immutableCheck:n=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new A$;return r&&(Pq(r)?o.push(Tq):o.push(Aq(r.extraArgument))),o},od="RTK_autoBatch",jp=()=>e=>({payload:e,meta:{[od]:!0}}),M$=e=>t=>{setTimeout(t,e)},Rq=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:M$(10),Lq=(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"?Rq:e.type==="callback"?e.queueNotification:M$(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[od]),a=!i,a&&(o||(o=!0,l(u))),n.dispatch(c)}finally{i=!0}}})},Eq=e=>function(r){const{autoBatch:n=!0}=r??{};let i=new A$(e);return n&&i.push(Lq(typeof n=="object"?n:void 0)),i};function I$(e){const t=Dq(),{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(jo(r))s=gx(r);else throw new Error(zn(1));let l;typeof n=="function"?l=n(t):l=t();let u=a1;i&&(u=Iq({trace:!1,...typeof i=="object"&&i}));const c=iq(...l),f=Eq(c);let d=typeof o=="function"?o(f):f();const p=u(...d);return v$(s,a,p)}function k$(e){const t={},r=[];let n;const i={addCase(a,o){const s=typeof a=="string"?a:a.type;if(!s)throw new Error(zn(28));if(s in t)throw new Error(zn(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 Oq(e){return typeof e=="function"}function Nq(e,t){let[r,n,i]=k$(t),a;if(Oq(e))a=()=>xL(e());else{const s=xL(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(Ka(c)){const p=f(c,l);return p===void 0?c:p}else{if(Qa(c))return _g(c,d=>f(d,l));{const d=f(c,l);if(d===void 0){if(c===null)return c;throw new Error(zn(9))}return d}}return c},s)}return o.getInitialState=a,o}var zq="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",hM=(e=21)=>{let t="",r=e;for(;r--;)t+=zq[Math.random()*64|0];return t},P$=(e,t)=>kq(e)?e.match(t):e(t);function Ds(...e){return t=>e.some(r=>P$(r,t))}function rv(...e){return t=>e.every(r=>P$(r,t))}function yx(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 wg(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function vM(...e){return e.length===0?t=>yx(t,["pending"]):wg(e)?Ds(...e.map(t=>t.pending)):vM()(e[0])}function Td(...e){return e.length===0?t=>yx(t,["rejected"]):wg(e)?Ds(...e.map(t=>t.rejected)):Td()(e[0])}function xx(...e){const t=r=>r&&r.meta&&r.meta.rejectedWithValue;return e.length===0?rv(Td(...e),t):wg(e)?rv(Td(...e),t):xx()(e[0])}function Ul(...e){return e.length===0?t=>yx(t,["fulfilled"]):wg(e)?Ds(...e.map(t=>t.fulfilled)):Ul()(e[0])}function GT(...e){return e.length===0?t=>yx(t,["pending","fulfilled","rejected"]):wg(e)?Ds(...e.flatMap(t=>[t.pending,t.rejected,t.fulfilled])):GT()(e[0])}var Bq=["name","message","stack","code"],R_=class{constructor(e,t){S_(this,"_type");this.payload=e,this.meta=t}},SL=class{constructor(e,t){S_(this,"_type");this.payload=e,this.meta=t}},Fq=e=>{if(typeof e=="object"&&e!==null){const t={};for(const r of Bq)typeof e[r]=="string"&&(t[r]=e[r]);return t}return{message:String(e)}},_L=(()=>{function e(t,r,n){const i=Jn(t+"/fulfilled",(l,u,c,f)=>({payload:l,meta:{...f||{},arg:c,requestId:u,requestStatus:"fulfilled"}})),a=Jn(t+"/pending",(l,u,c)=>({payload:void 0,meta:{...c||{},arg:u,requestId:l,requestStatus:"pending"}})),o=Jn(t+"/rejected",(l,u,c,f,d)=>({payload:f,error:(n&&n.serializeError||Fq)(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):hM(),p=new AbortController;let v,g;function y(b){g=b,p.abort()}const x=async function(){var w,T;let b;try{let C=(w=n==null?void 0:n.condition)==null?void 0:w.call(n,l,{getState:c,extra:f});if(Vq(C)&&(C=await C),C===!1||p.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const A=new Promise((I,k)=>{v=()=>{k({name:"AbortError",message:g||"Aborted"})},p.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}))),b=await Promise.race([A,Promise.resolve(r(l,{dispatch:u,getState:c,extra:f,requestId:d,signal:p.signal,abort:y,rejectWithValue:(I,k)=>new R_(I,k),fulfillWithValue:(I,k)=>new SL(I,k)})).then(I=>{if(I instanceof R_)throw I;return I instanceof SL?i(I.payload,d,l,I.meta):i(I,d,l)})])}catch(C){b=C instanceof R_?o(null,d,l,C.payload,C.meta):o(C,d,l)}finally{v&&p.signal.removeEventListener("abort",v)}return n&&!n.dispatchConditionRejection&&o.match(b)&&b.meta.condition||u(b),b}();return Object.assign(x,{abort:y,requestId:d,arg:l,unwrap(){return x.then($q)}})}}return Object.assign(s,{pending:a,rejected:o,fulfilled:i,settled:Ds(o,i),typePrefix:t})}return e.withTypes=()=>e,e})();function $q(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Vq(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Hq=Symbol.for("rtk-slice-createasyncthunk");function Gq(e,t){return`${e}/${t}`}function Wq({creators:e}={}){var r;const t=(r=e==null?void 0:e.asyncThunk)==null?void 0:r[Hq];return function(i){const{name:a,reducerPath:o=a}=i;if(!a)throw new Error(zn(11));const s=(typeof i.reducers=="function"?i.reducers(Uq()):i.reducers)||{},l=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(S,w){const T=typeof S=="string"?S:S.type;if(!T)throw new Error(zn(12));if(T in u.sliceCaseReducersByType)throw new Error(zn(13));return u.sliceCaseReducersByType[T]=w,c},addMatcher(S,w){return u.sliceMatchers.push({matcher:S,reducer:w}),c},exposeAction(S,w){return u.actionCreators[S]=w,c},exposeCaseReducer(S,w){return u.sliceCaseReducersByName[S]=w,c}};l.forEach(S=>{const w=s[S],T={reducerName:S,type:Gq(a,S),createNotation:typeof i.reducers=="function"};qq(w)?Zq(T,w,c,t):Yq(T,w,c)});function f(){const[S={},w=[],T=void 0]=typeof i.extraReducers=="function"?k$(i.extraReducers):[i.extraReducers],C={...S,...u.sliceCaseReducersByType};return Nq(i.initialState,A=>{for(let I in C)A.addCase(I,C[I]);for(let I of u.sliceMatchers)A.addMatcher(I.matcher,I.reducer);for(let I of w)A.addMatcher(I.matcher,I.reducer);T&&A.addDefaultCase(T)})}const d=S=>S,p=new Map;let v;function g(S,w){return v||(v=f()),v(S,w)}function y(){return v||(v=f()),v.getInitialState()}function x(S,w=!1){function T(A){let I=A[S];return typeof I>"u"&&w&&(I=y()),I}function C(A=d){const I=bL(p,w,{insert:()=>new WeakMap});return bL(I,A,{insert:()=>{const k={};for(const[P,R]of Object.entries(i.selectors??{}))k[P]=jq(R,A,y,w);return k}})}return{reducerPath:S,getSelectors:C,get selectors(){return C(T)},selectSlice:T}}const b={name:a,reducer:g,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:y,...x(o),injectInto(S,{reducerPath:w,...T}={}){const C=w??o;return S.inject({reducerPath:C,reducer:g},T),{...b,...x(C,!0)}}};return b}}function jq(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 va=Wq();function Uq(){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 Yq({type:e,reducerName:t,createNotation:r},n,i){let a,o;if("reducer"in n){if(r&&!Xq(n))throw new Error(zn(17));a=n.reducer,o=n.prepare}else a=n;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Jn(e,o):Jn(e))}function qq(e){return e._reducerDefinitionType==="asyncThunk"}function Xq(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Zq({type:e,reducerName:t},r,n,i){if(!i)throw new Error(zn(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||cy,pending:s||cy,rejected:l||cy,settled:u||cy})}function cy(){}var Kq=(e,t)=>{if(typeof e!="function")throw new Error(zn(32))},gM="listenerMiddleware",Qq=e=>{let{type:t,actionCreator:r,matcher:n,predicate:i,effect:a}=e;if(t)i=Jn(t).match;else if(r)t=r.type,i=r.match;else if(n)i=n;else if(!i)throw new Error(zn(21));return Kq(a),{predicate:i,type:t,effect:a}},Jq=Object.assign(e=>{const{type:t,predicate:r,effect:n}=Qq(e);return{id:hM(),effect:n,type:t,predicate:r,pending:new Set,unsubscribe:()=>{throw new Error(zn(22))}}},{withTypes:()=>Jq}),eX=Object.assign(Jn(`${gM}/add`),{withTypes:()=>eX});Jn(`${gM}/removeAll`);var tX=Object.assign(Jn(`${gM}/remove`),{withTypes:()=>tX});function zn(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 L_={exports:{}},E_={};/**
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 wL;function rX(){if(wL)return E_;wL=1;var e=vx();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 E_.useSyncExternalStoreWithSelector=function(l,u,c,f,d){var p=i(null);if(p.current===null){var v={hasValue:!1,value:null};p.current=v}else v=p.current;p=o(function(){function y(T){if(!x){if(x=!0,b=T,T=f(T),d!==void 0&&v.hasValue){var C=v.value;if(d(C,T))return S=C}return S=T}if(C=S,r(b,T))return C;var A=f(T);return d!==void 0&&d(C,A)?C:(b=T,S=A)}var x=!1,b,S,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,p[0],p[1]);return a(function(){v.hasValue=!0,v.value=g},[g]),s(g),g},E_}var CL;function nX(){return CL||(CL=1,L_.exports=rX()),L_.exports}var iX=nX(),Kt="default"in kv?Ua:kv,TL=Symbol.for("react-redux-context"),AL=typeof globalThis<"u"?globalThis:{};function aX(){if(!Kt.createContext)return{};const e=AL[TL]??(AL[TL]=new Map);let t=e.get(Kt.createContext);return t||(t=Kt.createContext(null),e.set(Kt.createContext,t)),t}var Rs=aX(),D$=()=>{throw new Error("uSES not initialized!")};function mM(e=Rs){return function(){return Kt.useContext(e)}}var R$=mM(),L$=D$,oX=e=>{L$=e},sX=(e,t)=>e===t;function lX(e=Rs){const t=e===Rs?R$:mM(e),r=(n,i={})=>{const{equalityFn:a=sX,devModeChecks:o={}}=typeof i=="function"?{equalityFn:i}:i,{store:s,subscription:l,getServerState:u,stabilityCheck:c,identityFunctionCheck:f}=t();Kt.useRef(!0);const d=Kt.useCallback({[n.name](v){return n(v)}}[n.name],[n,c,o.stabilityCheck]),p=L$(l.addNestedSub,s.getState,u||s.getState,d,a);return Kt.useDebugValue(p),p};return Object.assign(r,{withTypes:()=>r}),r}var E$=lX(),uX=Symbol.for("react.element"),cX=Symbol.for("react.portal"),fX=Symbol.for("react.fragment"),dX=Symbol.for("react.strict_mode"),pX=Symbol.for("react.profiler"),hX=Symbol.for("react.provider"),vX=Symbol.for("react.context"),gX=Symbol.for("react.server_context"),O$=Symbol.for("react.forward_ref"),mX=Symbol.for("react.suspense"),yX=Symbol.for("react.suspense_list"),yM=Symbol.for("react.memo"),xX=Symbol.for("react.lazy"),bX=O$,SX=yM;function _X(e){if(typeof e=="object"&&e!==null){const t=e.$$typeof;switch(t){case uX:{const r=e.type;switch(r){case fX:case pX:case dX:case mX:case yX:return r;default:{const n=r&&r.$$typeof;switch(n){case gX:case vX:case O$:case xX:case yM:case hX:return n;default:return t}}}}case cX:return t}}}function wX(e){return _X(e)===yM}function CX(e,t,r,n,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:o}){let s=!1,l,u,c,f,d;function p(b,S){return l=b,u=S,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 b=e(l,u),S=!o(b,c);return c=b,S&&(d=r(c,f,u)),d}function x(b,S){const w=!a(S,u),T=!i(b,l,S,u);return l=b,u=S,w&&T?v():w?g():T?y():d}return function(S,w){return s?x(S,w):p(S,w)}}function TX(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:n,...i}){const a=t(e,i),o=r(e,i),s=n(e,i);return CX(a,o,s,e,i)}function AX(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 WT(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function ML(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function N$(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=ML(e);let u=a(s,l);return typeof u=="function"&&(a.mapToProps=u,a.dependsOnOwnProps=ML(u),u=a(s,l)),u},a}}function xM(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"?WT(t=>AX(e,t)):e?typeof e=="function"?N$(e):xM(e,"mapDispatchToProps"):WT(t=>({dispatch:t}))}function IX(e){return e?typeof e=="function"?N$(e):xM(e,"mapStateToProps"):WT(()=>({}))}function kX(e,t,r){return{...r,...e,...t}}function PX(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 DX(e){return e?typeof e=="function"?PX(e):xM(e,"mergeProps"):()=>kX}function z$(e){e()}function RX(){let e=null,t=null;return{clear(){e=null,t=null},notify(){z$(()=>{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 IL={notify(){},get:()=>[]};function B$(e,t){let r,n=IL,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=RX())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=IL)}function d(){a||(a=!0,c())}function p(){a&&(a=!1,f())}const v={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:u,trySubscribe:d,tryUnsubscribe:p,getListeners:()=>n};return v}var LX=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",EX=typeof navigator<"u"&&navigator.product==="ReactNative",l1=LX||EX?Kt.useLayoutEffect:Kt.useEffect;function kL(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Vl(e,t){if(kL(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])||!kL(e[r[i]],t[r[i]]))return!1;return!0}var OX={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},NX={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},zX={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},F$={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},BX={[bX]:zX,[SX]:F$};function PL(e){return wX(e)?F$:BX[e.$$typeof]||OX}var FX=Object.defineProperty,$X=Object.getOwnPropertyNames,DL=Object.getOwnPropertySymbols,VX=Object.getOwnPropertyDescriptor,HX=Object.getPrototypeOf,RL=Object.prototype;function jT(e,t){if(typeof t!="string"){if(RL){const a=HX(t);a&&a!==RL&&jT(e,a)}let r=$X(t);DL&&(r=r.concat(DL(t)));const n=PL(e),i=PL(t);for(let a=0;a<r.length;++a){const o=r[a];if(!NX[o]&&!(i&&i[o])&&!(n&&n[o])){const s=VX(t,o);try{FX(e,o,s)}catch{}}}}return e}var $$=D$,GX=e=>{$$=e},WX=[null,null];function jX(e,t,r){l1(()=>e(...t),r)}function UX(e,t,r,n,i,a){e.current=n,r.current=!1,i.current&&(i.current=null,a())}function YX(e,t,r,n,i,a,o,s,l,u,c){if(!e)return()=>{};let f=!1,d=null;const p=()=>{if(f||!s.current)return;const g=t.getState();let y,x;try{y=n(g,i.current)}catch(b){x=b,d=b}x||(d=null),y===a.current?o.current||u():(a.current=y,l.current=y,o.current=!0,c())};return r.onStateChange=p,r.trySubscribe(),p(),()=>{if(f=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}function qX(e,t){return e===t}function XX(e,t,r,{pure:n,areStatesEqual:i=qX,areOwnPropsEqual:a=Vl,areStatePropsEqual:o=Vl,areMergedPropsEqual:s=Vl,forwardRef:l=!1,context:u=Rs}={}){const c=u,f=IX(e),d=MX(t),p=DX(r),v=!!e;return y=>{const x=y.displayName||y.name||"Component",b=`Connect(${x})`,S={shouldHandleStateChanges:v,displayName:b,wrappedComponentName:x,WrappedComponent:y,initMapStateToProps:f,initMapDispatchToProps:d,initMergeProps:p,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:s};function w(A){const[I,k,P]=Kt.useMemo(()=>{const{reactReduxForwardedRef:Se,...ze}=A;return[A.context,Se,ze]},[A]),R=Kt.useMemo(()=>{let Se=c;return I!=null&&I.Consumer,Se},[I,c]),O=Kt.useContext(R),E=!!A.store&&!!A.store.getState&&!!A.store.dispatch,z=!!O&&!!O.store,B=E?A.store:O.store,W=z?O.getServerState:B.getState,X=Kt.useMemo(()=>TX(B.dispatch,S),[B]),[H,q]=Kt.useMemo(()=>{if(!v)return WX;const Se=B$(B,E?void 0:O.subscription),ze=Se.notifyNestedSubs.bind(Se);return[Se,ze]},[B,E,O]),F=Kt.useMemo(()=>E?O:{...O,subscription:H},[E,O,H]),Y=Kt.useRef(void 0),Z=Kt.useRef(P),j=Kt.useRef(void 0),te=Kt.useRef(!1),fe=Kt.useRef(!1),re=Kt.useRef(void 0);l1(()=>(fe.current=!0,()=>{fe.current=!1}),[]);const ce=Kt.useMemo(()=>()=>j.current&&P===Z.current?j.current:X(B.getState(),P),[B,P]),ne=Kt.useMemo(()=>ze=>H?YX(v,B,H,X,Z,Y,te,fe,j,q,ze):()=>{},[H]);jX(UX,[Z,Y,te,P,j,q]);let pe;try{pe=$$(ne,ce,W?()=>X(W(),P):ce)}catch(Se){throw re.current&&(Se.message+=`
49
+ The error may be correlated with this previous error:
50
+ ${re.current.stack}
51
+
52
+ `),Se}l1(()=>{re.current=void 0,j.current=void 0,Y.current=pe});const me=Kt.useMemo(()=>Kt.createElement(y,{...pe,ref:k}),[k,y,pe]);return Kt.useMemo(()=>v?Kt.createElement(R.Provider,{value:F},me):me,[R,me,F])}const C=Kt.memo(w);if(C.WrappedComponent=y,C.displayName=w.displayName=b,l){const I=Kt.forwardRef(function(P,R){return Kt.createElement(C,{...P,reactReduxForwardedRef:R})});return I.displayName=b,I.WrappedComponent=y,jT(I,y)}return jT(C,y)}}var Zi=XX;function ZX({store:e,context:t,children:r,serverState:n,stabilityCheck:i="once",identityFunctionCheck:a="once"}){const o=Kt.useMemo(()=>{const u=B$(e);return{store:e,subscription:u,getServerState:n?()=>n:void 0,stabilityCheck:i,identityFunctionCheck:a}},[e,n,i,a]),s=Kt.useMemo(()=>e.getState(),[e]);l1(()=>{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||Rs;return Kt.createElement(l.Provider,{value:o},r)}var LL=ZX;function V$(e=Rs){const t=e===Rs?R$:mM(e),r=()=>{const{store:n}=t();return n};return Object.assign(r,{withTypes:()=>r}),r}var H$=V$();function KX(e=Rs){const t=e===Rs?H$:V$(e),r=()=>t().dispatch;return Object.assign(r,{withTypes:()=>r}),r}var G$=KX(),QX=z$;oX(iX.useSyncExternalStoreWithSelector);GX(V.useSyncExternalStore);function W$(e,t,r){return t&&(Array.isArray(t)?t.map(n=>W$(e,n,r)):typeof t=="object"?bM(t,r):t)}const bM=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[t(n)]:W$(e,i,t)}),{}),j$=e=>e.replace(/_([a-z0-9])/g,(t,r)=>r.toUpperCase()),JX=e=>e[0]===e[0].toUpperCase()?e:e.replace(/([a-z0-9])([A-Z0-9])/g,"$1_$2").toLowerCase(),sd=e=>bM(e,j$),EL=e=>bM(e,JX),UT=e=>e.replace(/([a-z0-9])([A-Z0-9])/g,"$1 $2").replace(/^./,t=>t.toUpperCase()),eZ=e=>Object.fromEntries(new URLSearchParams(e).entries()),tZ=(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]},OL=!!window.authArgs&&sd(window.authArgs),Ov={black:"#000",white:"#fff"},Al={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828",900:"#b71c1c"},wf={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},qu={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Cf={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Tf={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},rZ={900:"#ff6f00"},Up={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},nZ={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 G(){return G=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},G.apply(null,arguments)}function nc(e){return e!==null&&typeof e=="object"&&e.constructor===Object}function U$(e){if(!nc(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=U$(e[r])}),t}function Ci(e,t,r={clone:!0}){const n=r.clone?G({},e):e;return nc(e)&&nc(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(nc(t[i])&&i in e&&nc(e[i])?n[i]=Ci(e[i],t[i],r):r.clone?n[i]=nc(t[i])?U$(t[i]):t[i]:n[i]=t[i])}),n}function Yl(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 xe(e){if(typeof e!="string")throw new Error(Yl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function YT(...e){return e.reduce((t,r)=>r==null?t:function(...i){t.apply(this,i),r.apply(this,i)},()=>{})}function Wd(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 iZ(e,t){return()=>null}function nv(e,t){return V.isValidElement(e)&&t.indexOf(e.type.muiName)!==-1}function Cn(e){return e&&e.ownerDocument||document}function Ca(e){return Cn(e).defaultView||window}function aZ(e,t){return()=>null}function Nv(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Ja=typeof window<"u"?V.useLayoutEffect:V.useEffect;let NL=0;function oZ(e){const[t,r]=V.useState(e),n=e||t;return V.useEffect(()=>{t==null&&(NL+=1,r(`mui-${NL}`))},[t]),n}const zL=kv.useId;function bx(e){if(zL!==void 0){const t=zL();return e??t}return oZ(e)}function sZ(e,t,r,n,i){return null}function Ts({controlled:e,default:t,name:r,state:n="value"}){const{current:i}=V.useRef(e!==void 0),[a,o]=V.useState(t),s=i?e:a,l=V.useCallback(u=>{i||o(u)},[]);return[s,l]}function Qn(e){const t=V.useRef(e);return Ja(()=>{t.current=e}),V.useCallback((...r)=>(0,t.current)(...r),[])}function Dr(...e){return V.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{Nv(r,t)})},e)}let Sx=!0,qT=!1,BL;const lZ={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 uZ(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&lZ[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function cZ(e){e.metaKey||e.altKey||e.ctrlKey||(Sx=!0)}function O_(){Sx=!1}function fZ(){this.visibilityState==="hidden"&&qT&&(Sx=!0)}function dZ(e){e.addEventListener("keydown",cZ,!0),e.addEventListener("mousedown",O_,!0),e.addEventListener("pointerdown",O_,!0),e.addEventListener("touchstart",O_,!0),e.addEventListener("visibilitychange",fZ,!0)}function pZ(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Sx||uZ(t)}function _x(){const e=V.useCallback(i=>{i!=null&&dZ(i.ownerDocument)},[]),t=V.useRef(!1);function r(){return t.current?(qT=!0,window.clearTimeout(BL),BL=window.setTimeout(()=>{qT=!1},100),t.current=!1,!0):!1}function n(i){return pZ(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function Y$(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Af;function q$(){if(Af)return Af;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),Af="reverse",e.scrollLeft>0?Af="default":(e.scrollLeft=1,e.scrollLeft===0&&(Af="negative")),document.body.removeChild(e),Af}function hZ(e,t){const r=e.scrollLeft;if(t!=="rtl")return r;switch(q$()){case"negative":return e.scrollWidth-e.clientWidth+r;case"reverse":return e.scrollWidth-e.clientWidth-r;default:return r}}const vZ=e=>{const t=V.useRef({});return V.useEffect(()=>{t.current=e}),t.current};function SM(e,t){const r=G({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=G({},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]=G({},a),Object.keys(i).forEach(o=>{r[n][o]=SM(i[o],a[o])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function st(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 FL=e=>e,gZ=()=>{let e=FL;return{configure(t){e=t},generate(t){return e(t)},reset(){e=FL}}},_M=gZ(),mZ={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 ot(e,t,r="Mui"){const n=mZ[t];return n?`${r}-${n}`:`${_M.generate(e)}-${t}`}function lt(e,t,r="Mui"){const n={};return t.forEach(i=>{n[i]=ot(e,i,r)}),n}const Ec="$$material";function Be(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 X$(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var yZ=/^((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)-.*))$/,xZ=X$(function(e){return yZ.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function bZ(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 SZ(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 _Z=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(SZ(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=bZ(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}(),En="-ms-",u1="-moz-",ar="-webkit-",Z$="comm",wM="rule",CM="decl",wZ="@import",K$="@keyframes",CZ="@layer",TZ=Math.abs,Cx=String.fromCharCode,AZ=Object.assign;function MZ(e,t){return _n(e,0)^45?(((t<<2^_n(e,0))<<2^_n(e,1))<<2^_n(e,2))<<2^_n(e,3):0}function Q$(e){return e.trim()}function IZ(e,t){return(e=t.exec(e))?e[0]:e}function or(e,t,r){return e.replace(t,r)}function XT(e,t){return e.indexOf(t)}function _n(e,t){return e.charCodeAt(t)|0}function zv(e,t,r){return e.slice(t,r)}function Io(e){return e.length}function TM(e){return e.length}function fy(e,t){return t.push(e),e}function kZ(e,t){return e.map(t).join("")}var Tx=1,Ad=1,J$=0,ki=0,Zr=0,jd="";function Ax(e,t,r,n,i,a,o){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:Tx,column:Ad,length:o,return:""}}function Yp(e,t){return AZ(Ax("",null,null,"",null,null,0),e,{length:-e.length},t)}function PZ(){return Zr}function DZ(){return Zr=ki>0?_n(jd,--ki):0,Ad--,Zr===10&&(Ad=1,Tx--),Zr}function Gi(){return Zr=ki<J$?_n(jd,ki++):0,Ad++,Zr===10&&(Ad=1,Tx++),Zr}function Bo(){return _n(jd,ki)}function D0(){return ki}function Cg(e,t){return zv(jd,e,t)}function Bv(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 eV(e){return Tx=Ad=1,J$=Io(jd=e),ki=0,[]}function tV(e){return jd="",e}function R0(e){return Q$(Cg(ki-1,ZT(e===91?e+2:e===40?e+1:e)))}function RZ(e){for(;(Zr=Bo())&&Zr<33;)Gi();return Bv(e)>2||Bv(Zr)>3?"":" "}function LZ(e,t){for(;--t&&Gi()&&!(Zr<48||Zr>102||Zr>57&&Zr<65||Zr>70&&Zr<97););return Cg(e,D0()+(t<6&&Bo()==32&&Gi()==32))}function ZT(e){for(;Gi();)switch(Zr){case e:return ki;case 34:case 39:e!==34&&e!==39&&ZT(Zr);break;case 40:e===41&&ZT(e);break;case 92:Gi();break}return ki}function EZ(e,t){for(;Gi()&&e+Zr!==57;)if(e+Zr===84&&Bo()===47)break;return"/*"+Cg(t,ki-1)+"*"+Cx(e===47?e:Gi())}function OZ(e){for(;!Bv(Bo());)Gi();return Cg(e,ki)}function NZ(e){return tV(L0("",null,null,null,[""],e=eV(e),0,[0],e))}function L0(e,t,r,n,i,a,o,s,l){for(var u=0,c=0,f=o,d=0,p=0,v=0,g=1,y=1,x=1,b=0,S="",w=i,T=a,C=n,A=S;y;)switch(v=b,b=Gi()){case 40:if(v!=108&&_n(A,f-1)==58){XT(A+=or(R0(b),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:A+=R0(b);break;case 9:case 10:case 13:case 32:A+=RZ(v);break;case 92:A+=LZ(D0()-1,7);continue;case 47:switch(Bo()){case 42:case 47:fy(zZ(EZ(Gi(),D0()),t,r),l);break;default:A+="/"}break;case 123*g:s[u++]=Io(A)*x;case 125*g:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+c:x==-1&&(A=or(A,/\f/g,"")),p>0&&Io(A)-f&&fy(p>32?VL(A+";",n,r,f-1):VL(or(A," ","")+";",n,r,f-2),l);break;case 59:A+=";";default:if(fy(C=$L(A,t,r,u,c,i,s,S,w=[],T=[],f),a),b===123)if(c===0)L0(A,t,C,C,w,a,f,s,T);else switch(d===99&&_n(A,3)===110?100:d){case 100:case 108:case 109:case 115:L0(e,C,C,n&&fy($L(e,C,C,0,0,i,s,S,i,w=[],f),T),i,T,f,s,n?w:T);break;default:L0(A,C,C,C,[""],T,0,s,T)}}u=c=p=0,g=x=1,S=A="",f=o;break;case 58:f=1+Io(A),p=v;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&DZ()==125)continue}switch(A+=Cx(b),b*g){case 38:x=c>0?1:(A+="\f",-1);break;case 44:s[u++]=(Io(A)-1)*x,x=1;break;case 64:Bo()===45&&(A+=R0(Gi())),d=Bo(),c=f=Io(S=A+=OZ(D0())),b++;break;case 45:v===45&&Io(A)==2&&(g=0)}}return a}function $L(e,t,r,n,i,a,o,s,l,u,c){for(var f=i-1,d=i===0?a:[""],p=TM(d),v=0,g=0,y=0;v<n;++v)for(var x=0,b=zv(e,f+1,f=TZ(g=o[v])),S=e;x<p;++x)(S=Q$(g>0?d[x]+" "+b:or(b,/&\f/g,d[x])))&&(l[y++]=S);return Ax(e,t,r,i===0?wM:s,l,u,c)}function zZ(e,t,r){return Ax(e,t,r,Z$,Cx(PZ()),zv(e,2,-2),0)}function VL(e,t,r,n){return Ax(e,t,r,CM,zv(e,0,n),zv(e,n+1,-1),n)}function pd(e,t){for(var r="",n=TM(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function BZ(e,t,r,n){switch(e.type){case CZ:if(e.children.length)break;case wZ:case CM:return e.return=e.return||e.value;case Z$:return"";case K$:return e.return=e.value+"{"+pd(e.children,n)+"}";case wM:e.value=e.props.join(",")}return Io(r=pd(e.children,n))?e.return=e.value+"{"+r+"}":""}function FZ(e){var t=TM(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 $Z(e){return function(t){t.root||(t=t.return)&&e(t)}}var VZ=function(t,r,n){for(var i=0,a=0;i=a,a=Bo(),i===38&&a===12&&(r[n]=1),!Bv(a);)Gi();return Cg(t,ki)},HZ=function(t,r){var n=-1,i=44;do switch(Bv(i)){case 0:i===38&&Bo()===12&&(r[n]=1),t[n]+=VZ(ki-1,r,n);break;case 2:t[n]+=R0(i);break;case 4:if(i===44){t[++n]=Bo()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=Cx(i)}while(i=Gi());return t},GZ=function(t,r){return tV(HZ(eV(t),r))},HL=new WeakMap,WZ=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&&!HL.get(n))&&!i){HL.set(t,!0);for(var a=[],o=GZ(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]}}},jZ=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}};function rV(e,t){switch(MZ(e,t)){case 5103:return ar+"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 ar+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ar+e+u1+e+En+e+e;case 6828:case 4268:return ar+e+En+e+e;case 6165:return ar+e+En+"flex-"+e+e;case 5187:return ar+e+or(e,/(\w+).+(:[^]+)/,ar+"box-$1$2"+En+"flex-$1$2")+e;case 5443:return ar+e+En+"flex-item-"+or(e,/flex-|-self/,"")+e;case 4675:return ar+e+En+"flex-line-pack"+or(e,/align-content|flex-|-self/,"")+e;case 5548:return ar+e+En+or(e,"shrink","negative")+e;case 5292:return ar+e+En+or(e,"basis","preferred-size")+e;case 6060:return ar+"box-"+or(e,"-grow","")+ar+e+En+or(e,"grow","positive")+e;case 4554:return ar+or(e,/([^-])(transform)/g,"$1"+ar+"$2")+e;case 6187:return or(or(or(e,/(zoom-|grab)/,ar+"$1"),/(image-set)/,ar+"$1"),e,"")+e;case 5495:case 3959:return or(e,/(image-set\([^]*)/,ar+"$1$`$1");case 4968:return or(or(e,/(.+:)(flex-)?(.*)/,ar+"box-pack:$3"+En+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ar+e+e;case 4095:case 3583:case 4068:case 2532:return or(e,/(.+)-inline(.+)/,ar+"$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(Io(e)-1-t>6)switch(_n(e,t+1)){case 109:if(_n(e,t+4)!==45)break;case 102:return or(e,/(.+:)(.+)-([^]+)/,"$1"+ar+"$2-$3$1"+u1+(_n(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~XT(e,"stretch")?rV(or(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(_n(e,t+1)!==115)break;case 6444:switch(_n(e,Io(e)-3-(~XT(e,"!important")&&10))){case 107:return or(e,":",":"+ar)+e;case 101:return or(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ar+(_n(e,14)===45?"inline-":"")+"box$3$1"+ar+"$2$3$1"+En+"$2box$3")+e}break;case 5936:switch(_n(e,t+11)){case 114:return ar+e+En+or(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ar+e+En+or(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ar+e+En+or(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ar+e+En+e+e}return e}var UZ=function(t,r,n,i){if(t.length>-1&&!t.return)switch(t.type){case CM:t.return=rV(t.value,t.length);break;case K$:return pd([Yp(t,{value:or(t.value,"@","@"+ar)})],i);case wM:if(t.length)return kZ(t.props,function(a){switch(IZ(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pd([Yp(t,{props:[or(a,/:(read-\w+)/,":"+u1+"$1")]})],i);case"::placeholder":return pd([Yp(t,{props:[or(a,/:(plac\w+)/,":"+ar+"input-$1")]}),Yp(t,{props:[or(a,/:(plac\w+)/,":"+u1+"$1")]}),Yp(t,{props:[or(a,/:(plac\w+)/,En+"input-$1")]})],i)}return""})}},YZ=[UZ],qZ=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||YZ,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=[WZ,jZ];{var c,f=[BZ,$Z(function(g){c.insert(g)})],d=FZ(u.concat(i,f)),p=function(y){return pd(NZ(y),d)};l=function(y,x,b,S){c=b,p(y?y+"{"+x.styles+"}":x.styles),S&&(v.inserted[x.name]=!0)}}var v={key:r,sheet:new _Z({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},N_={exports:{}},ur={};/** @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 GL;function XZ(){if(GL)return ur;GL=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,p=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,b=e?Symbol.for("react.scope"):60119;function S(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 p:case o:return T;default:return C}}case r:return C}}}function w(T){return S(T)===u}return ur.AsyncMode=l,ur.ConcurrentMode=u,ur.ContextConsumer=s,ur.ContextProvider=o,ur.Element=t,ur.ForwardRef=c,ur.Fragment=n,ur.Lazy=v,ur.Memo=p,ur.Portal=r,ur.Profiler=a,ur.StrictMode=i,ur.Suspense=f,ur.isAsyncMode=function(T){return w(T)||S(T)===l},ur.isConcurrentMode=w,ur.isContextConsumer=function(T){return S(T)===s},ur.isContextProvider=function(T){return S(T)===o},ur.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},ur.isForwardRef=function(T){return S(T)===c},ur.isFragment=function(T){return S(T)===n},ur.isLazy=function(T){return S(T)===v},ur.isMemo=function(T){return S(T)===p},ur.isPortal=function(T){return S(T)===r},ur.isProfiler=function(T){return S(T)===a},ur.isStrictMode=function(T){return S(T)===i},ur.isSuspense=function(T){return S(T)===f},ur.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===p||T.$$typeof===o||T.$$typeof===s||T.$$typeof===c||T.$$typeof===y||T.$$typeof===x||T.$$typeof===b||T.$$typeof===g)},ur.typeOf=S,ur}var WL;function ZZ(){return WL||(WL=1,N_.exports=XZ()),N_.exports}var z_,jL;function KZ(){if(jL)return z_;jL=1;var e=ZZ(),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 p(v,g,y){if(typeof g!="string"){if(d){var x=f(g);x&&x!==d&&p(v,x,y)}var b=l(g);u&&(b=b.concat(u(g)));for(var S=o(v),w=o(g),T=0;T<b.length;++T){var C=b[T];if(!r[C]&&!(y&&y[C])&&!(w&&w[C])&&!(S&&S[C])){var A=c(g,C);try{s(v,C,A)}catch{}}}}return v}return z_=p,z_}KZ();var QZ=!0;function JZ(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):n+=i+" "}),n}var nV=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||QZ===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},iV=function(t,r,n){nV(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 eK(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 tK={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},rK=/[A-Z]|^ms/g,nK=/_EMO_([^_]+?)_([^]*?)_EMO_/g,aV=function(t){return t.charCodeAt(1)===45},UL=function(t){return t!=null&&typeof t!="boolean"},B_=X$(function(e){return aV(e)?e:e.replace(rK,"-$&").toLowerCase()}),YL=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(nK,function(n,i,a){return ko={name:i,styles:a,next:ko},i})}return tK[t]!==1&&!aV(t)&&typeof r=="number"&&r!==0?r+"px":r};function Fv(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 ko={name:r.name,styles:r.styles,next:ko},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)ko={name:n.name,styles:n.styles,next:ko},n=n.next;var i=r.styles+";";return i}return iK(e,t,r)}case"function":{if(e!==void 0){var a=ko,o=r(e);return ko=a,Fv(e,t,o)}break}}if(t==null)return r;var s=t[r];return s!==void 0?s:r}function iK(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Fv(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]+"}":UL(o)&&(n+=B_(a)+":"+YL(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++)UL(o[s])&&(n+=B_(a)+":"+YL(a,o[s])+";");else{var l=Fv(e,t,o);switch(a){case"animation":case"animationName":{n+=B_(a)+":"+l+";";break}default:n+=a+"{"+l+"}"}}}return n}var qL=/label:\s*([^\s;\n{]+)\s*(;|$)/g,ko,AM=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="";ko=void 0;var o=t[0];o==null||o.raw===void 0?(i=!1,a+=Fv(n,r,o)):a+=o[0];for(var s=1;s<t.length;s++)a+=Fv(n,r,t[s]),i&&(a+=o[s]);qL.lastIndex=0;for(var l="",u;(u=qL.exec(a))!==null;)l+="-"+u[1];var c=eK(a)+l;return{name:c,styles:a,next:ko}},aK=function(t){return t()},oV=kv.useInsertionEffect?kv.useInsertionEffect:!1,oK=oV||aK,XL=oV||V.useLayoutEffect,sV=V.createContext(typeof HTMLElement<"u"?qZ({key:"css"}):null);sV.Provider;var lV=function(t){return V.forwardRef(function(r,n){var i=V.useContext(sV);return t(r,i,n)})},Mx=V.createContext({}),sK=lV(function(e,t){var r=e.styles,n=AM([r],void 0,V.useContext(Mx)),i=V.useRef();return XL(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]),XL(function(){var a=i.current,o=a[0],s=a[1];if(s){a[1]=!1;return}if(n.next!==void 0&&iV(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 lK(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return AM(t)}var MM=function(){var t=lK.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_"}}},uK=xZ,cK=function(t){return t!=="theme"},ZL=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?uK:cK},KL=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},fK=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return nV(r,n,i),oK(function(){return iV(r,n,i)}),null},dK=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=KL(t,r,n),l=s||ZL(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,p=1;p<d;p++)f.push(c[p],c[0][p])}var v=lV(function(g,y,x){var b=u&&g.as||i,S="",w=[],T=g;if(g.theme==null){T={};for(var C in g)T[C]=g[C];T.theme=V.useContext(Mx)}typeof g.className=="string"?S=JZ(y.registered,w,g.className):g.className!=null&&(S=g.className+" ");var A=AM(f.concat(w),y.registered,T);S+=y.key+"-"+A.name,o!==void 0&&(S+=" "+o);var I=u&&s===void 0?ZL(b):l,k={};for(var P in g)u&&P==="as"||I(P)&&(k[P]=g[P]);return k.className=S,k.ref=x,V.createElement(V.Fragment,null,V.createElement(fK,{cache:y,serialized:A,isStringTag:typeof b=="string"}),V.createElement(b,k))});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,G({},r,y,{shouldForwardProp:KL(v,y,!0)})).apply(void 0,f)},v}},pK=["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"],KT=dK.bind();pK.forEach(function(e){KT[e]=KT(e)});function hK(e){return e==null||Object.keys(e).length===0}function vK(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?i=>t(hK(i)?r:i):t;return N.jsx(sK,{styles:n})}function uV(e,t){return KT(e,t)}const gK=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},mK=["values","unit","step"],yK=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)=>G({},r,{[n.key]:n.val}),{})};function xK(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,i=Be(e,mK),a=yK(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,p){const v=o.indexOf(p);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]]:p)-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 p=o.indexOf(d);return p===0?s(o[1]):p===o.length-1?l(o[p]):u(d,o[o.indexOf(d)+1]).replace("@media","@media not all and")}return G({keys:o,values:a,up:s,down:l,between:u,only:c,not:f,unit:r},i)}const bK={borderRadius:4};function iv(e,t){return t?Ci(e,t,{clone:!1}):e}const IM={xs:0,sm:600,md:900,lg:1200,xl:1536},QL={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${IM[e]}px)`};function eo(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||QL;return t.reduce((o,s,l)=>(o[a.up(a.keys[l])]=r(t[l]),o),{})}if(typeof t=="object"){const a=n.breakpoints||QL;return Object.keys(t).reduce((o,s)=>{if(Object.keys(a.values||IM).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 cV(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,i)=>{const a=e.up(i);return n[a]={},n},{}))||{}}function fV(e,t){return e.reduce((r,n)=>{const i=r[n];return(!i||Object.keys(i).length===0)&&delete r[n],r},t)}function SK(e,...t){const r=cV(e),n=[r,...t].reduce((i,a)=>Ci(i,a),{});return fV(Object.keys(r),n)}function _K(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 F_({values:e,breakpoints:t,base:r}){const n=r||_K(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 Md(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 c1(e,t,r,n=r){let i;return typeof e=="function"?i=e(r):Array.isArray(e)?i=e[r]||n:i=Md(e,r)||n,t&&(i=t(i,n,e)),i}function dr(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=Md(l,n)||{};return eo(o,s,f=>{let d=c1(u,i,f);return f===d&&typeof f=="string"&&(d=c1(u,i,`${t}${f==="default"?"":xe(f)}`,f)),r===!1?d:{[r]:d}})};return a.propTypes={},a.filterProps=[t],a}function wK(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const CK={m:"margin",p:"padding"},TK={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},JL={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},AK=wK(e=>{if(e.length>2)if(JL[e])e=JL[e];else return[e];const[t,r]=e.split(""),n=CK[t],i=TK[r]||"";return Array.isArray(i)?i.map(a=>n+a):[n+i]}),kM=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],PM=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...kM,...PM];function Tg(e,t,r,n){var i;const a=(i=Md(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 DM(e){return Tg(e,"spacing",8)}function Oc(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 MK(e,t){return r=>e.reduce((n,i)=>(n[i]=Oc(t,r),n),{})}function IK(e,t,r,n){if(t.indexOf(r)===-1)return null;const i=AK(r),a=MK(i,n),o=e[r];return eo(e,o,a)}function dV(e,t){const r=DM(e.theme);return Object.keys(e).map(n=>IK(e,t,n,r)).reduce(iv,{})}function Br(e){return dV(e,kM)}Br.propTypes={};Br.filterProps=kM;function Fr(e){return dV(e,PM)}Fr.propTypes={};Fr.filterProps=PM;function kK(e=8){if(e.mui)return e;const t=DM({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 Ix(...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]?iv(i,t[a](n)):i,{});return r.propTypes={},r.filterProps=e.reduce((n,i)=>n.concat(i.filterProps),[]),r}function Po(e){return typeof e!="number"?e:`${e}px solid`}const PK=dr({prop:"border",themeKey:"borders",transform:Po}),DK=dr({prop:"borderTop",themeKey:"borders",transform:Po}),RK=dr({prop:"borderRight",themeKey:"borders",transform:Po}),LK=dr({prop:"borderBottom",themeKey:"borders",transform:Po}),EK=dr({prop:"borderLeft",themeKey:"borders",transform:Po}),OK=dr({prop:"borderColor",themeKey:"palette"}),NK=dr({prop:"borderTopColor",themeKey:"palette"}),zK=dr({prop:"borderRightColor",themeKey:"palette"}),BK=dr({prop:"borderBottomColor",themeKey:"palette"}),FK=dr({prop:"borderLeftColor",themeKey:"palette"}),kx=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Tg(e.theme,"shape.borderRadius",4),r=n=>({borderRadius:Oc(t,n)});return eo(e,e.borderRadius,r)}return null};kx.propTypes={};kx.filterProps=["borderRadius"];Ix(PK,DK,RK,LK,EK,OK,NK,zK,BK,FK,kx);const Px=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Tg(e.theme,"spacing",8),r=n=>({gap:Oc(t,n)});return eo(e,e.gap,r)}return null};Px.propTypes={};Px.filterProps=["gap"];const Dx=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Tg(e.theme,"spacing",8),r=n=>({columnGap:Oc(t,n)});return eo(e,e.columnGap,r)}return null};Dx.propTypes={};Dx.filterProps=["columnGap"];const Rx=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Tg(e.theme,"spacing",8),r=n=>({rowGap:Oc(t,n)});return eo(e,e.rowGap,r)}return null};Rx.propTypes={};Rx.filterProps=["rowGap"];const $K=dr({prop:"gridColumn"}),VK=dr({prop:"gridRow"}),HK=dr({prop:"gridAutoFlow"}),GK=dr({prop:"gridAutoColumns"}),WK=dr({prop:"gridAutoRows"}),jK=dr({prop:"gridTemplateColumns"}),UK=dr({prop:"gridTemplateRows"}),YK=dr({prop:"gridTemplateAreas"}),qK=dr({prop:"gridArea"});Ix(Px,Dx,Rx,$K,VK,HK,GK,WK,jK,UK,YK,qK);function hd(e,t){return t==="grey"?t:e}const XK=dr({prop:"color",themeKey:"palette",transform:hd}),ZK=dr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:hd}),KK=dr({prop:"backgroundColor",themeKey:"palette",transform:hd});Ix(XK,ZK,KK);function $i(e){return e<=1&&e!==0?`${e*100}%`:e}const QK=dr({prop:"width",transform:$i}),RM=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])||IM[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:$i(r)}};return eo(e,e.maxWidth,t)}return null};RM.filterProps=["maxWidth"];const JK=dr({prop:"minWidth",transform:$i}),eQ=dr({prop:"height",transform:$i}),tQ=dr({prop:"maxHeight",transform:$i}),rQ=dr({prop:"minHeight",transform:$i});dr({prop:"size",cssProperty:"width",transform:$i});dr({prop:"size",cssProperty:"height",transform:$i});const nQ=dr({prop:"boxSizing"});Ix(QK,RM,JK,eQ,tQ,rQ,nQ);const Lx={border:{themeKey:"borders",transform:Po},borderTop:{themeKey:"borders",transform:Po},borderRight:{themeKey:"borders",transform:Po},borderBottom:{themeKey:"borders",transform:Po},borderLeft:{themeKey:"borders",transform:Po},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:kx},color:{themeKey:"palette",transform:hd},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:hd},backgroundColor:{themeKey:"palette",transform:hd},p:{style:Fr},pt:{style:Fr},pr:{style:Fr},pb:{style:Fr},pl:{style:Fr},px:{style:Fr},py:{style:Fr},padding:{style:Fr},paddingTop:{style:Fr},paddingRight:{style:Fr},paddingBottom:{style:Fr},paddingLeft:{style:Fr},paddingX:{style:Fr},paddingY:{style:Fr},paddingInline:{style:Fr},paddingInlineStart:{style:Fr},paddingInlineEnd:{style:Fr},paddingBlock:{style:Fr},paddingBlockStart:{style:Fr},paddingBlockEnd:{style:Fr},m:{style:Br},mt:{style:Br},mr:{style:Br},mb:{style:Br},ml:{style:Br},mx:{style:Br},my:{style:Br},margin:{style:Br},marginTop:{style:Br},marginRight:{style:Br},marginBottom:{style:Br},marginLeft:{style:Br},marginX:{style:Br},marginY:{style:Br},marginInline:{style:Br},marginInlineStart:{style:Br},marginInlineEnd:{style:Br},marginBlock:{style:Br},marginBlockStart:{style:Br},marginBlockEnd:{style:Br},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:Px},rowGap:{style:Rx},columnGap:{style:Dx},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:$i},maxWidth:{style:RM},minWidth:{transform:$i},height:{transform:$i},maxHeight:{transform:$i},minHeight:{transform:$i},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function iQ(...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 aQ(e,t){return typeof e=="function"?e(t):e}function oQ(){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=Md(i,u)||{};return f?f(o):eo(o,n,v=>{let g=c1(d,c,v);return v===g&&typeof v=="string"&&(g=c1(d,c,`${r}${v==="default"?"":xe(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:Lx;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=cV(a.breakpoints),f=Object.keys(c);let d=c;return Object.keys(u).forEach(p=>{const v=aQ(u[p],a);if(v!=null)if(typeof v=="object")if(o[p])d=iv(d,e(p,v,a,o));else{const g=eo({theme:a},v,y=>({[p]:y}));iQ(g,v)?d[p]=t({sx:v,theme:a}):d=iv(d,g)}else d=iv(d,e(p,v,a,o))}),fV(f,d)}return Array.isArray(i)?i.map(s):s(i)}return t}const Ag=oQ();Ag.filterProps=["sx"];const sQ=["breakpoints","palette","spacing","shape"];function Mg(e={},...t){const{breakpoints:r={},palette:n={},spacing:i,shape:a={}}=e,o=Be(e,sQ),s=xK(r),l=kK(i);let u=Ci({breakpoints:s,direction:"ltr",components:{},palette:G({mode:"light"},n),spacing:l,shape:G({},bK,a)},o);return u=t.reduce((c,f)=>Ci(c,f),u),u.unstable_sxConfig=G({},Lx,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return Ag({sx:f,theme:this})},u}function lQ(e){return Object.keys(e).length===0}function LM(e=null){const t=V.useContext(Mx);return!t||lQ(t)?e:t}const uQ=Mg();function Ex(e=uQ){return LM(e)}function cQ({styles:e,themeId:t,defaultTheme:r={}}){const n=Ex(r),i=typeof e=="function"?e(t&&n[t]||n):e;return N.jsx(vK,{styles:i})}const fQ=["sx"],dQ=e=>{var t,r;const n={systemProps:{},otherProps:{}},i=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Lx;return Object.keys(e).forEach(a=>{i[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function EM(e){const{sx:t}=e,r=Be(e,fQ),{systemProps:n,otherProps:i}=dQ(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...o)=>{const s=t(...o);return nc(s)?G({},n,s):n}:a=G({},n,t),G({},i,{sx:a})}function pV(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=pV(e[t]))&&(n&&(n+=" "),n+=r);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function Re(){for(var e,t,r=0,n="";r<arguments.length;)(e=arguments[r++])&&(t=pV(e))&&(n&&(n+=" "),n+=t);return n}const pQ=["className","component"];function hQ(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:i}=e,a=uV("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(Ag);return V.forwardRef(function(l,u){const c=Ex(r),f=EM(l),{className:d,component:p="div"}=f,v=Be(f,pQ);return N.jsx(a,G({as:p,ref:u,className:Re(d,i?i(n):n),theme:t&&c[t]||c},v))})}const vQ=["variant"];function eE(e){return e.length===0}function hV(e){const{variant:t}=e,r=Be(e,vQ);let n=t||"";return Object.keys(r).sort().forEach(i=>{i==="color"?n+=eE(n)?e[i]:xe(e[i]):n+=`${eE(n)?i:xe(i)}${xe(e[i].toString())}`}),n}const gQ=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function mQ(e){return Object.keys(e).length===0}function yQ(e){return typeof e=="string"&&e.charCodeAt(0)>96}const xQ=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,bQ=(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=hV(i.props);n[a]=i.style}),n},SQ=(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[hV(l.props)])}),o};function av(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const _Q=Mg(),wQ=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function qp({defaultTheme:e,theme:t,themeId:r}){return mQ(t)?e:t[r]||t}function CQ(e){return e?(t,r)=>r[e]:null}function vV(e={}){const{themeId:t,defaultTheme:r=_Q,rootShouldForwardProp:n=av,slotShouldForwardProp:i=av}=e,a=o=>Ag(G({},o,{theme:qp(G({},o,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(o,s={})=>{gK(o,w=>w.filter(T=>!(T!=null&&T.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:d=CQ(wQ(u))}=s,p=Be(s,gQ),v=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,g=f||!1;let y,x=av;u==="Root"||u==="root"?x=n:u?x=i:yQ(o)&&(x=void 0);const b=uV(o,G({shouldForwardProp:x,label:y},p)),S=(w,...T)=>{const C=T?T.map(P=>typeof P=="function"&&P.__emotion_real!==P?R=>P(G({},R,{theme:qp(G({},R,{defaultTheme:r,themeId:t}))})):P):[];let A=w;l&&d&&C.push(P=>{const R=qp(G({},P,{defaultTheme:r,themeId:t})),O=xQ(l,R);if(O){const E={};return Object.entries(O).forEach(([z,B])=>{E[z]=typeof B=="function"?B(G({},P,{theme:R})):B}),d(P,E)}return null}),l&&!v&&C.push(P=>{const R=qp(G({},P,{defaultTheme:r,themeId:t}));return SQ(P,bQ(l,R),R,l)}),g||C.push(a);const I=C.length-T.length;if(Array.isArray(w)&&I>0){const P=new Array(I).fill("");A=[...w,...P],A.raw=[...w.raw,...P]}else typeof w=="function"&&w.__emotion_real!==w&&(A=P=>w(G({},P,{theme:qp(G({},P,{defaultTheme:r,themeId:t}))})));const k=b(A,...C);return o.muiName&&(k.muiName=o.muiName),k};return b.withConfig&&(S.withConfig=b.withConfig),S}}const gV=vV();function TQ(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:SM(t.components[r].defaultProps,n)}function OM({props:e,name:t,defaultTheme:r,themeId:n}){let i=Ex(r);return n&&(i=i[n]||i),TQ({theme:i,name:t,props:e})}function NM(e,t=0,r=1){return Math.min(Math.max(t,e),r)}function AQ(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 Nc(e){if(e.type)return e;if(e.charAt(0)==="#")return Nc(AQ(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(Yl(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(Yl(10,i))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:i}}function Ox(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 MQ(e){e=Nc(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])),Ox({type:s,values:l})}function tE(e){e=Nc(e);let t=e.type==="hsl"||e.type==="hsla"?Nc(MQ(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 IQ(e,t){const r=tE(e),n=tE(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Ut(e,t){return e=Nc(e),t=NM(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ox(e)}function $v(e,t){if(e=Nc(e),t=NM(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 Ox(e)}function Vv(e,t){if(e=Nc(e),t=NM(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 Ox(e)}const mV=V.createContext(null);function yV(){return V.useContext(mV)}const kQ=typeof Symbol=="function"&&Symbol.for,PQ=kQ?Symbol.for("mui.nested"):"__THEME_NESTED__";function DQ(e,t){return typeof t=="function"?t(e):G({},e,t)}function RQ(e){const{children:t,theme:r}=e,n=yV(),i=V.useMemo(()=>{const a=n===null?r:DQ(n,r);return a!=null&&(a[PQ]=n!==null),a},[r,n]);return N.jsx(mV.Provider,{value:i,children:t})}const rE={};function nE(e,t,r,n=!1){return V.useMemo(()=>{const i=e&&t[e]||t;if(typeof r=="function"){const a=r(i),o=e?G({},t,{[e]:a}):a;return n?()=>o:o}return e?G({},t,{[e]:r}):G({},t,r)},[e,t,r,n])}function LQ(e){const{children:t,theme:r,themeId:n}=e,i=LM(rE),a=yV()||rE,o=nE(n,i,r),s=nE(n,a,r,!0);return N.jsx(RQ,{theme:s,children:N.jsx(Mx.Provider,{value:o,children:t})})}const EQ=["className","component","disableGutters","fixed","maxWidth","classes"],OQ=Mg(),NQ=gV("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${xe(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),zQ=e=>OM({props:e,name:"MuiContainer",defaultTheme:OQ}),BQ=(e,t)=>{const r=l=>ot(t,l),{classes:n,fixed:i,disableGutters:a,maxWidth:o}=e,s={root:["root",o&&`maxWidth${xe(String(o))}`,i&&"fixed",a&&"disableGutters"]};return st(s,r,n)};function FQ(e={}){const{createStyledComponent:t=NQ,useThemeProps:r=zQ,componentName:n="MuiContainer"}=e,i=t(({theme:o,ownerState:s})=>G({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})=>G({},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 V.forwardRef(function(s,l){const u=r(s),{className:c,component:f="div",disableGutters:d=!1,fixed:p=!1,maxWidth:v="lg"}=u,g=Be(u,EQ),y=G({},u,{component:f,disableGutters:d,fixed:p,maxWidth:v}),x=BQ(y,n);return N.jsx(i,G({as:f,ownerState:y,className:Re(x.root,c),ref:l},g))})}const $Q=["component","direction","spacing","divider","children","className","useFlexGap"],VQ=Mg(),HQ=gV("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function GQ(e){return OM({props:e,name:"MuiStack",defaultTheme:VQ})}function WQ(e,t){const r=V.Children.toArray(e).filter(Boolean);return r.reduce((n,i,a)=>(n.push(i),a<r.length-1&&n.push(V.cloneElement(t,{key:`separator-${a}`})),n),[])}const jQ=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],UQ=({ownerState:e,theme:t})=>{let r=G({display:"flex",flexDirection:"column"},eo({theme:t},F_({values:e.direction,breakpoints:t.breakpoints.values}),n=>({flexDirection:n})));if(e.spacing){const n=DM(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=F_({values:e.direction,base:i}),o=F_({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=Ci(r,eo({theme:t},o,(l,u)=>e.useFlexGap?{gap:Oc(n,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${jQ(u?a[u]:e.direction)}`]:Oc(n,l)}}))}return r=SK(t.breakpoints,r),r};function YQ(e={}){const{createStyledComponent:t=HQ,useThemeProps:r=GQ,componentName:n="MuiStack"}=e,i=()=>st({root:["root"]},l=>ot(n,l),{}),a=t(UQ);return V.forwardRef(function(l,u){const c=r(l),f=EM(c),{component:d="div",direction:p="column",spacing:v=0,divider:g,children:y,className:x,useFlexGap:b=!1}=f,S=Be(f,$Q),w={direction:p,spacing:v,useFlexGap:b},T=i();return N.jsx(a,G({as:d,ownerState:w,ref:u,className:Re(T.root,x)},S,{children:g?WQ(y,g):y}))})}function qQ(e,t){return G({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const XQ=["mode","contrastThreshold","tonalOffset"],iE={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:Ov.white,default:Ov.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}},$_={text:{primary:Ov.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:Ov.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 aE(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=Vv(e.main,i):t==="dark"&&(e.dark=$v(e.main,a)))}function ZQ(e="light"){return e==="dark"?{main:qu[200],light:qu[50],dark:qu[400]}:{main:qu[700],light:qu[400],dark:qu[800]}}function KQ(e="light"){return e==="dark"?{main:wf[200],light:wf[50],dark:wf[400]}:{main:wf[500],light:wf[300],dark:wf[700]}}function QQ(e="light"){return e==="dark"?{main:Al[500],light:Al[300],dark:Al[700]}:{main:Al[700],light:Al[400],dark:Al[800]}}function JQ(e="light"){return e==="dark"?{main:Cf[400],light:Cf[300],dark:Cf[700]}:{main:Cf[700],light:Cf[500],dark:Cf[900]}}function eJ(e="light"){return e==="dark"?{main:Tf[400],light:Tf[300],dark:Tf[700]}:{main:Tf[800],light:Tf[500],dark:Tf[900]}}function tJ(e="light"){return e==="dark"?{main:Up[400],light:Up[300],dark:Up[700]}:{main:"#ed6c02",light:Up[500],dark:Up[900]}}function rJ(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,i=Be(e,XQ),a=e.primary||ZQ(t),o=e.secondary||KQ(t),s=e.error||QQ(t),l=e.info||JQ(t),u=e.success||eJ(t),c=e.warning||tJ(t);function f(g){return IQ(g,$_.text.primary)>=r?$_.text.primary:iE.text.primary}const d=({color:g,name:y,mainShade:x=500,lightShade:b=300,darkShade:S=700})=>{if(g=G({},g),!g.main&&g[x]&&(g.main=g[x]),!g.hasOwnProperty("main"))throw new Error(Yl(11,y?` (${y})`:"",x));if(typeof g.main!="string")throw new Error(Yl(12,y?` (${y})`:"",JSON.stringify(g.main)));return aE(g,"light",b,n),aE(g,"dark",S,n),g.contrastText||(g.contrastText=f(g.main)),g},p={dark:$_,light:iE};return Ci(G({common:G({},Ov),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:nZ,contrastThreshold:r,getContrastText:f,augmentColor:d,tonalOffset:n},p[t]),i)}const nJ=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function iJ(e){return Math.round(e*1e5)/1e5}const oE={textTransform:"uppercase"},sE='"Roboto", "Helvetica", "Arial", sans-serif';function aJ(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=sE,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=r,d=Be(r,nJ),p=i/14,v=f||(x=>`${x/u*p}rem`),g=(x,b,S,w,T)=>G({fontFamily:n,fontWeight:x,fontSize:v(b),lineHeight:S},n===sE?{letterSpacing:`${iJ(w/b)}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,oE),caption:g(o,12,1.66,.4),overline:g(o,12,2.66,1,oE),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ci(G({htmlFontSize:u,pxToRem:v,fontFamily:n,fontSize:i,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:l},y),d,{clone:!1})}const oJ=.2,sJ=.14,lJ=.12;function Pr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${oJ})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${sJ})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${lJ})`].join(",")}const uJ=["none",Pr(0,2,1,-1,0,1,1,0,0,1,3,0),Pr(0,3,1,-2,0,2,2,0,0,1,5,0),Pr(0,3,3,-2,0,3,4,0,0,1,8,0),Pr(0,2,4,-1,0,4,5,0,0,1,10,0),Pr(0,3,5,-1,0,5,8,0,0,1,14,0),Pr(0,3,5,-1,0,6,10,0,0,1,18,0),Pr(0,4,5,-2,0,7,10,1,0,2,16,1),Pr(0,5,5,-3,0,8,10,1,0,3,14,2),Pr(0,5,6,-3,0,9,12,1,0,3,16,2),Pr(0,6,6,-3,0,10,14,1,0,4,18,3),Pr(0,6,7,-4,0,11,15,1,0,4,20,3),Pr(0,7,8,-4,0,12,17,2,0,5,22,4),Pr(0,7,8,-4,0,13,19,2,0,5,24,4),Pr(0,7,9,-4,0,14,21,2,0,5,26,4),Pr(0,8,9,-5,0,15,22,2,0,6,28,5),Pr(0,8,10,-5,0,16,24,2,0,6,30,5),Pr(0,8,11,-5,0,17,26,2,0,6,32,5),Pr(0,9,11,-5,0,18,28,2,0,7,34,6),Pr(0,9,12,-6,0,19,29,2,0,7,36,6),Pr(0,10,13,-6,0,20,31,3,0,8,38,7),Pr(0,10,13,-6,0,21,33,3,0,8,40,7),Pr(0,10,14,-6,0,22,35,3,0,8,42,7),Pr(0,11,14,-7,0,23,36,3,0,9,44,8),Pr(0,11,15,-7,0,24,38,3,0,9,46,8)],cJ=["duration","easing","delay"],fJ={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)"},xV={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function lE(e){return`${Math.round(e)}ms`}function dJ(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function pJ(e){const t=G({},fJ,e.easing),r=G({},xV,e.duration);return G({getAutoHeightDuration:dJ,create:(i=["all"],a={})=>{const{duration:o=r.standard,easing:s=t.easeInOut,delay:l=0}=a;return Be(a,cJ),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof o=="string"?o:lE(o)} ${s} ${typeof l=="string"?l:lE(l)}`).join(",")}},e,{easing:t,duration:r})}const hJ={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},vJ=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function zM(e={},...t){const{mixins:r={},palette:n={},transitions:i={},typography:a={}}=e,o=Be(e,vJ);if(e.vars)throw new Error(Yl(18));const s=rJ(n),l=Mg(e);let u=Ci(l,{mixins:qQ(l.breakpoints,r),palette:s,shadows:uJ.slice(),typography:aJ(s,a),transitions:pJ(i),zIndex:G({},hJ)});return u=Ci(u,o),u=t.reduce((c,f)=>Ci(c,f),u),u.unstable_sxConfig=G({},Lx,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(f){return Ag({sx:f,theme:this})},u}const Nx=zM();function es(){const e=Ex(Nx);return e[Ec]||e}function ut({props:e,name:t}){return OM({props:e,name:t,defaultTheme:Nx,themeId:Ec})}const io=e=>av(e)&&e!=="classes",gJ=av,be=vV({themeId:Ec,defaultTheme:Nx,rootShouldForwardProp:io}),mJ=["theme"];function bV(e){let{theme:t}=e,r=Be(e,mJ);const n=t[Ec];return N.jsx(LQ,G({},r,{themeId:n?Ec:void 0,theme:n||t}))}const uE=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function yJ(e){return ot("MuiSvgIcon",e)}lt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const xJ=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],bJ=e=>{const{color:t,fontSize:r,classes:n}=e,i={root:["root",t!=="inherit"&&`color${xe(t)}`,`fontSize${xe(r)}`]};return st(i,yJ,n)},SJ=be("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${xe(r.color)}`],t[`fontSize${xe(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,i,a,o,s,l,u,c,f,d,p,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:(p=(e.vars||e).palette)==null||(p=p.action)==null?void 0:p.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),QT=V.forwardRef(function(t,r){const n=ut({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,p=Be(n,xJ),v=V.isValidElement(i)&&i.type==="svg",g=G({},n,{color:o,component:s,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:d,hasSvgAsChild:v}),y={};c||(y.viewBox=d);const x=bJ(g);return N.jsxs(SJ,G({as:s,className:Re(x.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:r},y,p,v&&i.props,{ownerState:g,children:[v?i.props.children:i,f?N.jsx("title",{children:f}):null]}))});QT.muiName="SvgIcon";function oi(e,t){function r(n,i){return N.jsx(QT,G({"data-testid":`${t}Icon`,ref:i},n,{children:e}))}return r.muiName=QT.muiName,V.memo(V.forwardRef(r))}const _J={configure:e=>{_M.configure(e)}},wJ=Object.freeze(Object.defineProperty({__proto__:null,capitalize:xe,createChainedFunction:YT,createSvgIcon:oi,debounce:Wd,deprecatedPropType:iZ,isMuiElement:nv,ownerDocument:Cn,ownerWindow:Ca,requirePropFactory:aZ,setRef:Nv,unstable_ClassNameGenerator:_J,unstable_useEnhancedEffect:Ja,unstable_useId:bx,unsupportedProp:sZ,useControlled:Ts,useEventCallback:Qn,useForkRef:Dr,useIsFocusVisible:_x},Symbol.toStringTag,{value:"Module"}));var V_={exports:{}},cr={};/**
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 cE;function CJ(){if(cE)return cr;cE=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"),p=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 cr.ContextConsumer=o,cr.ContextProvider=a,cr.Element=e,cr.ForwardRef=l,cr.Fragment=r,cr.Lazy=d,cr.Memo=f,cr.Portal=t,cr.Profiler=i,cr.StrictMode=n,cr.Suspense=u,cr.SuspenseList=c,cr.isAsyncMode=function(){return!1},cr.isConcurrentMode=function(){return!1},cr.isContextConsumer=function(y){return g(y)===o},cr.isContextProvider=function(y){return g(y)===a},cr.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},cr.isForwardRef=function(y){return g(y)===l},cr.isFragment=function(y){return g(y)===r},cr.isLazy=function(y){return g(y)===d},cr.isMemo=function(y){return g(y)===f},cr.isPortal=function(y){return g(y)===t},cr.isProfiler=function(y){return g(y)===i},cr.isStrictMode=function(y){return g(y)===n},cr.isSuspense=function(y){return g(y)===u},cr.isSuspenseList=function(y){return g(y)===c},cr.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===i||y===n||y===u||y===c||y===p||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)},cr.typeOf=g,cr}var fE;function TJ(){return fE||(fE=1,V_.exports=CJ()),V_.exports}TJ();function JT(e,t){return JT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},JT(e,t)}function SV(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,JT(e,t)}var BM=h$();const dy=Xi(BM),dE={disabled:!1},f1=Ua.createContext(null);var AJ=function(t){return t.scrollTop},Fh="unmounted",Xu="exited",Zu="entering",Jf="entered",e2="exiting",Ia=function(e){SV(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=Xu,a.appearStatus=Zu):l=Jf:n.unmountOnExit||n.mountOnEnter?l=Fh:l=Xu,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===Fh?{status:Xu}: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!==Zu&&o!==Jf&&(a=Zu):(o===Zu||o===Jf)&&(a=e2)}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===Zu){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:dy.findDOMNode(this);o&&AJ(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Xu&&this.setState({status:Fh})},r.performEnter=function(i){var a=this,o=this.props.enter,s=this.context?this.context.isMounting:i,l=this.props.nodeRef?[s]:[dy.findDOMNode(this),s],u=l[0],c=l[1],f=this.getTimeouts(),d=s?f.appear:f.enter;if(!i&&!o||dE.disabled){this.safeSetState({status:Jf},function(){a.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Zu},function(){a.props.onEntering(u,c),a.onTransitionEnd(d,function(){a.safeSetState({status:Jf},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:dy.findDOMNode(this);if(!a||dE.disabled){this.safeSetState({status:Xu},function(){i.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:e2},function(){i.props.onExiting(s),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Xu},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:dy.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===Fh)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=Be(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ua.createElement(f1.Provider,{value:null},typeof o=="function"?o(i,s):Ua.cloneElement(Ua.Children.only(o),s))},t}(Ua.Component);Ia.contextType=f1;Ia.propTypes={};function Mf(){}Ia.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Mf,onEntering:Mf,onEntered:Mf,onExit:Mf,onExiting:Mf,onExited:Mf};Ia.UNMOUNTED=Fh;Ia.EXITED=Xu;Ia.ENTERING=Zu;Ia.ENTERED=Jf;Ia.EXITING=e2;function MJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FM(e,t){var r=function(a){return t&&V.isValidElement(a)?t(a):a},n=Object.create(null);return e&&V.Children.map(e,function(i){return i}).forEach(function(i){n[i.key]=r(i)}),n}function IJ(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 uc(e,t,r){return r[t]!=null?r[t]:e.props[t]}function kJ(e,t){return FM(e.children,function(r){return V.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:uc(r,"appear",e),enter:uc(r,"enter",e),exit:uc(r,"exit",e)})})}function PJ(e,t,r){var n=FM(e.children),i=IJ(t,n);return Object.keys(i).forEach(function(a){var o=i[a];if(V.isValidElement(o)){var s=a in t,l=a in n,u=t[a],c=V.isValidElement(u)&&!u.props.in;l&&(!s||c)?i[a]=V.cloneElement(o,{onExited:r.bind(null,o),in:!0,exit:uc(o,"exit",e),enter:uc(o,"enter",e)}):!l&&s&&!c?i[a]=V.cloneElement(o,{in:!1}):l&&s&&V.isValidElement(u)&&(i[a]=V.cloneElement(o,{onExited:r.bind(null,o),in:u.props.in,exit:uc(o,"exit",e),enter:uc(o,"enter",e)}))}}),i}var DJ=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},RJ={component:"div",childFactory:function(t){return t}},$M=function(e){SV(t,e);function t(n,i){var a;a=e.call(this,n,i)||this;var o=a.handleExited.bind(MJ(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?kJ(i,s):PJ(i,o,s),firstRender:!1}},r.handleExited=function(i,a){var o=FM(this.props.children);i.key in o||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(s){var l=G({},s.children);return delete l[i.key],{children:l}}))},r.render=function(){var i=this.props,a=i.component,o=i.childFactory,s=Be(i,["component","childFactory"]),l=this.state.contextValue,u=DJ(this.state.children).map(o);return delete s.appear,delete s.enter,delete s.exit,a===null?Ua.createElement(f1.Provider,{value:l},u):Ua.createElement(f1.Provider,{value:l},Ua.createElement(a,s,u))},t}(Ua.Component);$M.propTypes={};$M.defaultProps=RJ;const VM=e=>e.scrollTop;function ql(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 LJ(e){return ot("MuiCollapse",e)}lt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const EJ=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],OJ=e=>{const{orientation:t,classes:r}=e,n={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return st(n,LJ,r)},NJ=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})=>G({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&G({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),zJ=be("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>G({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),BJ=be("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>G({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),_V=V.forwardRef(function(t,r){const n=ut({props:t,name:"MuiCollapse"}),{addEndListener:i,children:a,className:o,collapsedSize:s="0px",component:l,easing:u,in:c,onEnter:f,onEntered:d,onEntering:p,onExit:v,onExited:g,onExiting:y,orientation:x="vertical",style:b,timeout:S=xV.standard,TransitionComponent:w=Ia}=n,T=Be(n,EJ),C=G({},n,{orientation:x,collapsedSize:s}),A=OJ(C),I=es(),k=V.useRef(),P=V.useRef(null),R=V.useRef(),O=typeof s=="number"?`${s}px`:s,E=x==="horizontal",z=E?"width":"height";V.useEffect(()=>()=>{clearTimeout(k.current)},[]);const B=V.useRef(null),W=Dr(r,B),X=re=>ce=>{if(re){const ne=B.current;ce===void 0?re(ne):re(ne,ce)}},H=()=>P.current?P.current[E?"clientWidth":"clientHeight"]:0,q=X((re,ce)=>{P.current&&E&&(P.current.style.position="absolute"),re.style[z]=O,f&&f(re,ce)}),F=X((re,ce)=>{const ne=H();P.current&&E&&(P.current.style.position="");const{duration:pe,easing:me}=ql({style:b,timeout:S,easing:u},{mode:"enter"});if(S==="auto"){const le=I.transitions.getAutoHeightDuration(ne);re.style.transitionDuration=`${le}ms`,R.current=le}else re.style.transitionDuration=typeof pe=="string"?pe:`${pe}ms`;re.style[z]=`${ne}px`,re.style.transitionTimingFunction=me,p&&p(re,ce)}),Y=X((re,ce)=>{re.style[z]="auto",d&&d(re,ce)}),Z=X(re=>{re.style[z]=`${H()}px`,v&&v(re)}),j=X(g),te=X(re=>{const ce=H(),{duration:ne,easing:pe}=ql({style:b,timeout:S,easing:u},{mode:"exit"});if(S==="auto"){const me=I.transitions.getAutoHeightDuration(ce);re.style.transitionDuration=`${me}ms`,R.current=me}else re.style.transitionDuration=typeof ne=="string"?ne:`${ne}ms`;re.style[z]=O,re.style.transitionTimingFunction=pe,y&&y(re)}),fe=re=>{S==="auto"&&(k.current=setTimeout(re,R.current||0)),i&&i(B.current,re)};return N.jsx(w,G({in:c,onEnter:q,onEntered:Y,onEntering:F,onExit:Z,onExited:j,onExiting:te,addEndListener:fe,nodeRef:B,timeout:S==="auto"?null:S},T,{children:(re,ce)=>N.jsx(NJ,G({as:l,className:Re(A.root,o,{entered:A.entered,exited:!c&&O==="0px"&&A.hidden}[re]),style:G({[E?"minWidth":"minHeight"]:O},b),ownerState:G({},C,{state:re}),ref:W},ce,{children:N.jsx(zJ,{ownerState:G({},C,{state:re}),className:A.wrapper,ref:P,children:N.jsx(BJ,{ownerState:G({},C,{state:re}),className:A.wrapperInner,children:a})})}))}))});_V.muiSupportAuto=!0;function FJ(e){return ot("MuiPaper",e)}lt("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 $J=["className","component","elevation","square","variant"],VJ=e=>{const{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return st(a,FJ,i)},HJ=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 G({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"&&G({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Ut("#fff",uE(t.elevation))}, ${Ut("#fff",uE(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),ao=V.forwardRef(function(t,r){const n=ut({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:o=1,square:s=!1,variant:l="elevation"}=n,u=Be(n,$J),c=G({},n,{component:a,elevation:o,square:s,variant:l}),f=VJ(c);return N.jsx(HJ,G({as:a,ownerState:c,className:Re(f.root,i),ref:r},u))}),wV=V.createContext({});function GJ(e){return ot("MuiAccordion",e)}const py=lt("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]),WJ=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],jJ=e=>{const{classes:t,square:r,expanded:n,disabled:i,disableGutters:a}=e;return st({root:["root",!r&&"rounded",n&&"expanded",i&&"disabled",!a&&"gutters"],region:["region"]},GJ,t)},UJ=be(ao,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${py.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"}},[`&.${py.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${py.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}},({theme:e,ownerState:t})=>G({},!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&&{[`&.${py.expanded}`]:{margin:"16px 0"}})),HM=V.forwardRef(function(t,r){const n=ut({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=_V,TransitionProps:p}=n,v=Be(n,WJ),[g,y]=Ts({controlled:u,default:o,name:"Accordion",state:"expanded"}),x=V.useCallback(A=>{y(!g),c&&c(A,!g)},[g,c,y]),[b,...S]=V.Children.toArray(i),w=V.useMemo(()=>({expanded:g,disabled:s,disableGutters:l,toggle:x}),[g,s,l,x]),T=G({},n,{square:f,disabled:s,disableGutters:l,expanded:g}),C=jJ(T);return N.jsxs(UJ,G({className:Re(C.root,a),ref:r,ownerState:T,square:f},v,{children:[N.jsx(wV.Provider,{value:w,children:b}),N.jsx(d,G({in:g,timeout:"auto"},p,{children:N.jsx("div",{"aria-labelledby":b.props.id,id:b.props["aria-controls"],role:"region",className:C.region,children:S})}))]}))});function YJ(e){return ot("MuiAccordionDetails",e)}lt("MuiAccordionDetails",["root"]);const qJ=["className"],XJ=e=>{const{classes:t}=e;return st({root:["root"]},YJ,t)},ZJ=be("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(1,2,2)})),GM=V.forwardRef(function(t,r){const n=ut({props:t,name:"MuiAccordionDetails"}),{className:i}=n,a=Be(n,qJ),o=n,s=XJ(o);return N.jsx(ZJ,G({className:Re(s.root,i),ref:r,ownerState:o},a))});function KJ(e){const{className:t,classes:r,pulsate:n=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:l,timeout:u}=e,[c,f]=V.useState(!1),d=Re(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},v=Re(r.child,c&&r.childLeaving,n&&r.childPulsate);return!s&&!c&&f(!0),V.useEffect(()=>{if(!s&&l!=null){const g=setTimeout(l,u);return()=>{clearTimeout(g)}}},[l,s,u]),N.jsx("span",{className:d,style:p,children:N.jsx("span",{className:v})})}const ha=lt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),QJ=["center","classes","className"];let zx=e=>e,pE,hE,vE,gE;const t2=550,JJ=80,eee=MM(pE||(pE=zx`
68
+ 0% {
69
+ transform: scale(0);
70
+ opacity: 0.1;
71
+ }
72
+
73
+ 100% {
74
+ transform: scale(1);
75
+ opacity: 0.3;
76
+ }
77
+ `)),tee=MM(hE||(hE=zx`
78
+ 0% {
79
+ opacity: 1;
80
+ }
81
+
82
+ 100% {
83
+ opacity: 0;
84
+ }
85
+ `)),ree=MM(vE||(vE=zx`
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
+ `)),nee=be("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),iee=be(KJ,{name:"MuiTouchRipple",slot:"Ripple"})(gE||(gE=zx`
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
+ `),ha.rippleVisible,eee,t2,({theme:e})=>e.transitions.easing.easeInOut,ha.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,ha.child,ha.childLeaving,tee,t2,({theme:e})=>e.transitions.easing.easeInOut,ha.childPulsate,ree,({theme:e})=>e.transitions.easing.easeInOut),aee=V.forwardRef(function(t,r){const n=ut({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:o}=n,s=Be(n,QJ),[l,u]=V.useState([]),c=V.useRef(0),f=V.useRef(null);V.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const d=V.useRef(!1),p=V.useRef(0),v=V.useRef(null),g=V.useRef(null);V.useEffect(()=>()=>{p.current&&clearTimeout(p.current)},[]);const y=V.useCallback(w=>{const{pulsate:T,rippleX:C,rippleY:A,rippleSize:I,cb:k}=w;u(P=>[...P,N.jsx(iee,{classes:{ripple:Re(a.ripple,ha.ripple),rippleVisible:Re(a.rippleVisible,ha.rippleVisible),ripplePulsate:Re(a.ripplePulsate,ha.ripplePulsate),child:Re(a.child,ha.child),childLeaving:Re(a.childLeaving,ha.childLeaving),childPulsate:Re(a.childPulsate,ha.childPulsate)},timeout:t2,pulsate:T,rippleX:C,rippleY:A,rippleSize:I},c.current)]),c.current+=1,f.current=k},[a]),x=V.useCallback((w={},T={},C=()=>{})=>{const{pulsate:A=!1,center:I=i||T.pulsate,fakeElement:k=!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=k?null:g.current,R=P?P.getBoundingClientRect():{width:0,height:0,left:0,top:0};let O,E,z;if(I||w===void 0||w.clientX===0&&w.clientY===0||!w.clientX&&!w.touches)O=Math.round(R.width/2),E=Math.round(R.height/2);else{const{clientX:B,clientY:W}=w.touches&&w.touches.length>0?w.touches[0]:w;O=Math.round(B-R.left),E=Math.round(W-R.top)}if(I)z=Math.sqrt((2*R.width**2+R.height**2)/3),z%2===0&&(z+=1);else{const B=Math.max(Math.abs((P?P.clientWidth:0)-O),O)*2+2,W=Math.max(Math.abs((P?P.clientHeight:0)-E),E)*2+2;z=Math.sqrt(B**2+W**2)}w!=null&&w.touches?v.current===null&&(v.current=()=>{y({pulsate:A,rippleX:O,rippleY:E,rippleSize:z,cb:C})},p.current=setTimeout(()=>{v.current&&(v.current(),v.current=null)},JJ)):y({pulsate:A,rippleX:O,rippleY:E,rippleSize:z,cb:C})},[i,y]),b=V.useCallback(()=>{x({},{pulsate:!0})},[x]),S=V.useCallback((w,T)=>{if(clearTimeout(p.current),(w==null?void 0:w.type)==="touchend"&&v.current){v.current(),v.current=null,p.current=setTimeout(()=>{S(w,T)});return}v.current=null,u(C=>C.length>0?C.slice(1):C),f.current=T},[]);return V.useImperativeHandle(r,()=>({pulsate:b,start:x,stop:S}),[b,x,S]),N.jsx(nee,G({className:Re(ha.root,a.root,o),ref:g},s,{children:N.jsx($M,{component:null,exit:!0,children:l})}))});function oee(e){return ot("MuiButtonBase",e)}const see=lt("MuiButtonBase",["root","disabled","focusVisible"]),lee=["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"],uee=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,o=st({root:["root",t&&"disabled",r&&"focusVisible"]},oee,i);return r&&n&&(o.root+=` ${n}`),o},cee=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"},[`&.${see.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ls=V.forwardRef(function(t,r){const n=ut({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:p="a",onBlur:v,onClick:g,onContextMenu:y,onDragLeave:x,onFocus:b,onFocusVisible:S,onKeyDown:w,onKeyUp:T,onMouseDown:C,onMouseLeave:A,onMouseUp:I,onTouchEnd:k,onTouchMove:P,onTouchStart:R,tabIndex:O=0,TouchRippleProps:E,touchRippleRef:z,type:B}=n,W=Be(n,lee),X=V.useRef(null),H=V.useRef(null),q=Dr(H,z),{isFocusVisibleRef:F,onFocus:Y,onBlur:Z,ref:j}=_x(),[te,fe]=V.useState(!1);u&&te&&fe(!1),V.useImperativeHandle(i,()=>({focusVisible:()=>{fe(!0),X.current.focus()}}),[]);const[re,ce]=V.useState(!1);V.useEffect(()=>{ce(!0)},[]);const ne=re&&!c&&!u;V.useEffect(()=>{te&&d&&!c&&re&&H.current.pulsate()},[c,d,te,re]);function pe(Me,Mt,qt=f){return Qn(Ge=>(Mt&&Mt(Ge),!qt&&H.current&&H.current[Me](Ge),!0))}const me=pe("start",C),le=pe("stop",y),Se=pe("stop",x),ze=pe("stop",I),Te=pe("stop",Me=>{te&&Me.preventDefault(),A&&A(Me)}),ye=pe("start",R),ft=pe("stop",k),He=pe("stop",P),gt=pe("stop",Me=>{Z(Me),F.current===!1&&fe(!1),v&&v(Me)},!1),xt=Qn(Me=>{X.current||(X.current=Me.currentTarget),Y(Me),F.current===!0&&(fe(!0),S&&S(Me)),b&&b(Me)}),_t=()=>{const Me=X.current;return l&&l!=="button"&&!(Me.tagName==="A"&&Me.href)},nt=V.useRef(!1),Ft=Qn(Me=>{d&&!nt.current&&te&&H.current&&Me.key===" "&&(nt.current=!0,H.current.stop(Me,()=>{H.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=Qn(Me=>{d&&Me.key===" "&&H.current&&te&&!Me.defaultPrevented&&(nt.current=!1,H.current.stop(Me,()=>{H.current.pulsate(Me)})),T&&T(Me),g&&Me.target===Me.currentTarget&&_t()&&Me.key===" "&&!Me.defaultPrevented&&g(Me)});let Rt=l;Rt==="button"&&(W.href||W.to)&&(Rt=p);const ue={};Rt==="button"?(ue.type=B===void 0?"button":B,ue.disabled=u):(!W.href&&!W.to&&(ue.role="button"),u&&(ue["aria-disabled"]=u));const _e=Dr(r,j,X),Ve=G({},n,{centerRipple:a,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:d,tabIndex:O,focusVisible:te}),ke=uee(Ve);return N.jsxs(cee,G({as:Rt,className:Re(ke.root,s),ownerState:Ve,onBlur:gt,onClick:g,onContextMenu:le,onFocus:xt,onKeyDown:Ft,onKeyUp:Gt,onMouseDown:me,onMouseLeave:Te,onMouseUp:ze,onDragLeave:Se,onTouchEnd:ft,onTouchMove:He,onTouchStart:ye,ref:_e,tabIndex:u?-1:O,type:B},ue,W,{children:[o,ne?N.jsx(aee,G({ref:q,center:a},E)):null]}))});function fee(e){return ot("MuiAccordionSummary",e)}const ld=lt("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),dee=["children","className","expandIcon","focusVisibleClassName","onClick"],pee=e=>{const{classes:t,expanded:r,disabled:n,disableGutters:i}=e;return st({root:["root",r&&"expanded",n&&"disabled",!i&&"gutters"],focusVisible:["focusVisible"],content:["content",r&&"expanded",!i&&"contentGutters"],expandIconWrapper:["expandIconWrapper",r&&"expanded"]},fee,t)},hee=be(Ls,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>{const r={duration:e.transitions.duration.shortest};return G({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],r),[`&.${ld.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ld.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${ld.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${ld.expanded}`]:{minHeight:64}})}),vee=be("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})(({theme:e,ownerState:t})=>G({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${ld.expanded}`]:{margin:"20px 0"}})),gee=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}),[`&.${ld.expanded}`]:{transform:"rotate(180deg)"}})),WM=V.forwardRef(function(t,r){const n=ut({props:t,name:"MuiAccordionSummary"}),{children:i,className:a,expandIcon:o,focusVisibleClassName:s,onClick:l}=n,u=Be(n,dee),{disabled:c=!1,disableGutters:f,expanded:d,toggle:p}=V.useContext(wV),v=x=>{p&&p(x),l&&l(x)},g=G({},n,{expanded:d,disabled:c,disableGutters:f}),y=pee(g);return N.jsxs(hee,G({focusRipple:!1,disableRipple:!0,disabled:c,component:"div","aria-expanded":d,className:Re(y.root,a),focusVisibleClassName:Re(y.focusVisible,s),onClick:v,ref:r,ownerState:g},u,{children:[N.jsx(vee,{className:y.content,ownerState:g,children:i}),o&&N.jsx(gee,{className:y.expandIconWrapper,ownerState:g,children:o})]}))});function mee(e){return ot("MuiAlert",e)}const mE=lt("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function yee(e){return ot("MuiIconButton",e)}const xee=lt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),bee=["edge","children","className","color","disabled","disableFocusRipple","size"],See=e=>{const{classes:t,disabled:r,color:n,edge:i,size:a}=e,o={root:["root",r&&"disabled",n!=="default"&&`color${xe(n)}`,i&&`edge${xe(i)}`,`size${xe(a)}`]};return st(o,yee,t)},_ee=be(Ls,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${xe(r.color)}`],r.edge&&t[`edge${xe(r.edge)}`],t[`size${xe(r.size)}`]]}})(({theme:e,ownerState:t})=>G({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})`:Ut(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 G({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&G({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":G({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ut(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)},{[`&.${xee.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Ws=V.forwardRef(function(t,r){const n=ut({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=Be(n,bee),d=G({},n,{edge:i,color:s,disabled:l,disableFocusRipple:u,size:c}),p=See(d);return N.jsx(_ee,G({className:Re(p.root,o),centerRipple:!0,focusRipple:!u,disabled:l,ref:r,ownerState:d},f,{children:a}))}),wee=oi(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"),Cee=oi(N.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Tee=oi(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"),Aee=oi(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"),CV=oi(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"],Iee=e=>{const{variant:t,color:r,severity:n,classes:i}=e,a={root:["root",`${t}${xe(r||n)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return st(a,mee,i)},kee=be(ao,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${xe(r.color||r.severity)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?$v:Vv,n=e.palette.mode==="light"?Vv:$v,i=t.color||t.severity;return G({},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),[`& .${mE.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}`,[`& .${mE.icon}`]:e.vars?{color:e.vars.palette.Alert[`${i}IconColor`]}:{color:e.palette[i].main}},i&&t.variant==="filled"&&G({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)}))}),Pee=be("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Dee=be("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),yE=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}),xE={success:N.jsx(wee,{fontSize:"inherit"}),warning:N.jsx(Cee,{fontSize:"inherit"}),error:N.jsx(Tee,{fontSize:"inherit"}),info:N.jsx(Aee,{fontSize:"inherit"})},Ml=V.forwardRef(function(t,r){var n,i,a,o,s,l;const u=ut({props:t,name:"MuiAlert"}),{action:c,children:f,className:d,closeText:p="Close",color:v,components:g={},componentsProps:y={},icon:x,iconMapping:b=xE,onClose:S,role:w="alert",severity:T="success",slotProps:C={},slots:A={},variant:I="standard"}=u,k=Be(u,Mee),P=G({},u,{color:v,severity:T,variant:I}),R=Iee(P),O=(n=(i=A.closeButton)!=null?i:g.CloseButton)!=null?n:Ws,E=(a=(o=A.closeIcon)!=null?o:g.CloseIcon)!=null?a:CV,z=(s=C.closeButton)!=null?s:y.closeButton,B=(l=C.closeIcon)!=null?l:y.closeIcon;return N.jsxs(kee,G({role:w,elevation:0,ownerState:P,className:Re(R.root,d),ref:r},k,{children:[x!==!1?N.jsx(Pee,{ownerState:P,className:R.icon,children:x||b[T]||xE[T]}):null,N.jsx(Dee,{ownerState:P,className:R.message,children:f}),c!=null?N.jsx(yE,{ownerState:P,className:R.action,children:c}):null,c==null&&S?N.jsx(yE,{ownerState:P,className:R.action,children:N.jsx(O,G({size:"small","aria-label":p,title:p,color:"inherit",onClick:S},z,{children:N.jsx(E,G({fontSize:"small"},B))}))}):null]}))});function Ree(e){return ot("MuiTypography",e)}lt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Lee=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Eee=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:o}=e,s={root:["root",a,e.align!=="inherit"&&`align${xe(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return st(s,Ree,o)},Oee=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${xe(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>G({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})),bE={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Nee={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},zee=e=>Nee[e]||e,Vt=V.forwardRef(function(t,r){const n=ut({props:t,name:"MuiTypography"}),i=zee(n.color),a=EM(G({},n,{color:i})),{align:o="inherit",className:s,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:d="body1",variantMapping:p=bE}=a,v=Be(a,Lee),g=G({},a,{align:o,color:i,className:s,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:d,variantMapping:p}),y=l||(f?"p":p[d]||bE[d])||"span",x=Eee(g);return N.jsx(Oee,G({as:y,ref:r,ownerState:g,className:Re(x.root,s)},v))});function Bee(e){return ot("MuiAppBar",e)}lt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const Fee=["className","color","enableColorOnDark","position"],$ee=e=>{const{color:t,position:r,classes:n}=e,i={root:["root",`color${xe(t)}`,`position${xe(r)}`]};return st(i,Bee,n)},hy=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,Vee=be(ao,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${xe(r.position)}`],t[`color${xe(r.color)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return G({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&&G({},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"&&G({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&G({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:hy(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:hy(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:hy(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:hy(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"}))}),Hee=V.forwardRef(function(t,r){const n=ut({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:o=!1,position:s="fixed"}=n,l=Be(n,Fee),u=G({},n,{color:a,position:s,enableColorOnDark:o}),c=$ee(u);return N.jsx(Vee,G({square:!0,component:"header",ownerState:u,elevation:4,className:Re(c.root,i,s==="fixed"&&"mui-fixed"),ref:r},l))});function Id(e){return typeof e=="string"}function $h(e,t,r){return e===void 0||Id(e)?t:G({},t,{ownerState:G({},t.ownerState,r)})}const Gee={disableDefaultClasses:!1},Wee=V.createContext(Gee);function jee(e){const{disableDefaultClasses:t}=V.useContext(Wee);return r=>t?"":e(r)}function TV(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 Uee(e,t,r){return typeof e=="function"?e(t,r):e}function SE(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 Yee(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:i,className:a}=e;if(!t){const p=Re(i==null?void 0:i.className,n==null?void 0:n.className,a,r==null?void 0:r.className),v=G({},r==null?void 0:r.style,i==null?void 0:i.style,n==null?void 0:n.style),g=G({},r,i,n);return p.length>0&&(g.className=p),Object.keys(v).length>0&&(g.style=v),{props:g,internalRef:void 0}}const o=TV(G({},i,n)),s=SE(n),l=SE(i),u=t(o),c=Re(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=G({},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=G({},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 qee=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function to(e){var t;const{elementType:r,externalSlotProps:n,ownerState:i,skipResolvingSlotProps:a=!1}=e,o=Be(e,qee),s=a?{}:Uee(n,i),{props:l,internalRef:u}=Yee(G({},o,{externalSlotProps:s})),c=Dr(u,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return $h(r,G({},l,{ref:c}),i)}const Xee=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Zee(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 Kee(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 Qee(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Kee(e))}function Jee(e){const t=[],r=[];return Array.from(e.querySelectorAll(Xee)).forEach((n,i)=>{const a=Zee(n);a===-1||!Qee(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 ete(){return!0}function tte(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:i=!1,getTabbable:a=Jee,isEnabled:o=ete,open:s}=e,l=V.useRef(!1),u=V.useRef(null),c=V.useRef(null),f=V.useRef(null),d=V.useRef(null),p=V.useRef(!1),v=V.useRef(null),g=Dr(t.ref,v),y=V.useRef(null);V.useEffect(()=>{!s||!v.current||(p.current=!r)},[r,s]),V.useEffect(()=>{if(!s||!v.current)return;const S=Cn(v.current);return v.current.contains(S.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),p.current&&v.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[s]),V.useEffect(()=>{if(!s||!v.current)return;const S=Cn(v.current),w=A=>{y.current=A,!(n||!o()||A.key!=="Tab")&&S.activeElement===v.current&&A.shiftKey&&(l.current=!0,c.current&&c.current.focus())},T=()=>{const A=v.current;if(A===null)return;if(!S.hasFocus()||!o()||l.current){l.current=!1;return}if(A.contains(S.activeElement)||n&&S.activeElement!==u.current&&S.activeElement!==c.current)return;if(S.activeElement!==d.current)d.current=null;else if(d.current!==null)return;if(!p.current)return;let I=[];if((S.activeElement===u.current||S.activeElement===c.current)&&(I=a(v.current)),I.length>0){var k,P;const R=!!((k=y.current)!=null&&k.shiftKey&&((P=y.current)==null?void 0:P.key)==="Tab"),O=I[0],E=I[I.length-1];typeof O!="string"&&typeof E!="string"&&(R?E.focus():O.focus())}else A.focus()};S.addEventListener("focusin",T),S.addEventListener("keydown",w,!0);const C=setInterval(()=>{S.activeElement&&S.activeElement.tagName==="BODY"&&T()},50);return()=>{clearInterval(C),S.removeEventListener("focusin",T),S.removeEventListener("keydown",w,!0)}},[r,n,i,o,s,a]);const x=S=>{f.current===null&&(f.current=S.relatedTarget),p.current=!0,d.current=S.target;const w=t.props.onFocus;w&&w(S)},b=S=>{f.current===null&&(f.current=S.relatedTarget),p.current=!0};return N.jsxs(V.Fragment,{children:[N.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),V.cloneElement(t,{ref:g,onFocus:x}),N.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}var Ti="top",Ta="bottom",Aa="right",Ai="left",jM="auto",Ig=[Ti,Ta,Aa,Ai],kd="start",Hv="end",rte="clippingParents",AV="viewport",Xp="popper",nte="reference",_E=Ig.reduce(function(e,t){return e.concat([t+"-"+kd,t+"-"+Hv])},[]),MV=[].concat(Ig,[jM]).reduce(function(e,t){return e.concat([t,t+"-"+kd,t+"-"+Hv])},[]),ite="beforeRead",ate="read",ote="afterRead",ste="beforeMain",lte="main",ute="afterMain",cte="beforeWrite",fte="write",dte="afterWrite",pte=[ite,ate,ote,ste,lte,ute,cte,fte,dte];function Uo(e){return e?(e.nodeName||"").toLowerCase():null}function qi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function zc(e){var t=qi(e).Element;return e instanceof t||e instanceof Element}function _a(e){var t=qi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function UM(e){if(typeof ShadowRoot>"u")return!1;var t=qi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function hte(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];!_a(a)||!Uo(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 vte(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},{});!_a(i)||!Uo(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}const gte={name:"applyStyles",enabled:!0,phase:"write",fn:hte,effect:vte,requires:["computeStyles"]};function Fo(e){return e.split("-")[0]}var bc=Math.max,d1=Math.min,Pd=Math.round;function r2(){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 IV(){return!/^((?!chrome|android).)*safari/i.test(r2())}function Dd(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,a=1;t&&_a(e)&&(i=e.offsetWidth>0&&Pd(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Pd(n.height)/e.offsetHeight||1);var o=zc(e)?qi(e):window,s=o.visualViewport,l=!IV()&&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 YM(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 kV(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&UM(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Es(e){return qi(e).getComputedStyle(e)}function mte(e){return["table","td","th"].indexOf(Uo(e))>=0}function nu(e){return((zc(e)?e.ownerDocument:e.document)||window.document).documentElement}function Bx(e){return Uo(e)==="html"?e:e.assignedSlot||e.parentNode||(UM(e)?e.host:null)||nu(e)}function wE(e){return!_a(e)||Es(e).position==="fixed"?null:e.offsetParent}function yte(e){var t=/firefox/i.test(r2()),r=/Trident/i.test(r2());if(r&&_a(e)){var n=Es(e);if(n.position==="fixed")return null}var i=Bx(e);for(UM(i)&&(i=i.host);_a(i)&&["html","body"].indexOf(Uo(i))<0;){var a=Es(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 kg(e){for(var t=qi(e),r=wE(e);r&&mte(r)&&Es(r).position==="static";)r=wE(r);return r&&(Uo(r)==="html"||Uo(r)==="body"&&Es(r).position==="static")?t:r||yte(e)||t}function qM(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ov(e,t,r){return bc(e,d1(t,r))}function xte(e,t,r){var n=ov(e,t,r);return n>r?r:n}function PV(){return{top:0,right:0,bottom:0,left:0}}function DV(e){return Object.assign({},PV(),e)}function RV(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var bte=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,DV(typeof t!="number"?t:RV(t,Ig))};function Ste(e){var t,r=e.state,n=e.name,i=e.options,a=r.elements.arrow,o=r.modifiersData.popperOffsets,s=Fo(r.placement),l=qM(s),u=[Ai,Aa].indexOf(s)>=0,c=u?"height":"width";if(!(!a||!o)){var f=bte(i.padding,r),d=YM(a),p=l==="y"?Ti:Ai,v=l==="y"?Ta:Aa,g=r.rects.reference[c]+r.rects.reference[l]-o[l]-r.rects.popper[c],y=o[l]-r.rects.reference[l],x=kg(a),b=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,S=g/2-y/2,w=f[p],T=b-d[c]-f[v],C=b/2-d[c]/2+S,A=ov(w,C,T),I=l;r.modifiersData[n]=(t={},t[I]=A,t.centerOffset=A-C,t)}}function _te(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)||kV(t.elements.popper,i)&&(t.elements.arrow=i))}const wte={name:"arrow",enabled:!0,phase:"main",fn:Ste,effect:_te,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Rd(e){return e.split("-")[1]}var Cte={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Tte(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:Pd(r*i)/i||0,y:Pd(n*i)/i||0}}function CE(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,p=d===void 0?0:d,v=o.y,g=v===void 0?0:v,y=typeof c=="function"?c({x:p,y:g}):{x:p,y:g};p=y.x,g=y.y;var x=o.hasOwnProperty("x"),b=o.hasOwnProperty("y"),S=Ai,w=Ti,T=window;if(u){var C=kg(r),A="clientHeight",I="clientWidth";if(C===qi(r)&&(C=nu(r),Es(C).position!=="static"&&s==="absolute"&&(A="scrollHeight",I="scrollWidth")),C=C,i===Ti||(i===Ai||i===Aa)&&a===Hv){w=Ta;var k=f&&C===T&&T.visualViewport?T.visualViewport.height:C[A];g-=k-n.height,g*=l?1:-1}if(i===Ai||(i===Ti||i===Ta)&&a===Hv){S=Aa;var P=f&&C===T&&T.visualViewport?T.visualViewport.width:C[I];p-=P-n.width,p*=l?1:-1}}var R=Object.assign({position:s},u&&Cte),O=c===!0?Tte({x:p,y:g},qi(r)):{x:p,y:g};if(p=O.x,g=O.y,l){var E;return Object.assign({},R,(E={},E[w]=b?"0":"",E[S]=x?"0":"",E.transform=(T.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",E))}return Object.assign({},R,(t={},t[w]=b?g+"px":"",t[S]=x?p+"px":"",t.transform="",t))}function Ate(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:Fo(t.placement),variation:Rd(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,CE(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,CE(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:Ate,data:{}};var vy={passive:!0};function Ite(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=qi(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(c){c.addEventListener("scroll",r.update,vy)}),s&&l.addEventListener("resize",r.update,vy),function(){a&&u.forEach(function(c){c.removeEventListener("scroll",r.update,vy)}),s&&l.removeEventListener("resize",r.update,vy)}}const kte={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Ite,data:{}};var Pte={left:"right",right:"left",bottom:"top",top:"bottom"};function E0(e){return e.replace(/left|right|bottom|top/g,function(t){return Pte[t]})}var Dte={start:"end",end:"start"};function TE(e){return e.replace(/start|end/g,function(t){return Dte[t]})}function XM(e){var t=qi(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function ZM(e){return Dd(nu(e)).left+XM(e).scrollLeft}function Rte(e,t){var r=qi(e),n=nu(e),i=r.visualViewport,a=n.clientWidth,o=n.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;var u=IV();(u||!u&&t==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+ZM(e),y:l}}function Lte(e){var t,r=nu(e),n=XM(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=bc(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=bc(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+ZM(e),l=-n.scrollTop;return Es(i||r).direction==="rtl"&&(s+=bc(r.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function KM(e){var t=Es(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function LV(e){return["html","body","#document"].indexOf(Uo(e))>=0?e.ownerDocument.body:_a(e)&&KM(e)?e:LV(Bx(e))}function sv(e,t){var r;t===void 0&&(t=[]);var n=LV(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),a=qi(n),o=i?[a].concat(a.visualViewport||[],KM(n)?n:[]):n,s=t.concat(o);return i?s:s.concat(sv(Bx(o)))}function n2(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ete(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 AE(e,t,r){return t===AV?n2(Rte(e,r)):zc(t)?Ete(t,r):n2(Lte(nu(e)))}function Ote(e){var t=sv(Bx(e)),r=["absolute","fixed"].indexOf(Es(e).position)>=0,n=r&&_a(e)?kg(e):e;return zc(n)?t.filter(function(i){return zc(i)&&kV(i,n)&&Uo(i)!=="body"}):[]}function Nte(e,t,r,n){var i=t==="clippingParents"?Ote(e):[].concat(t),a=[].concat(i,[r]),o=a[0],s=a.reduce(function(l,u){var c=AE(e,u,n);return l.top=bc(c.top,l.top),l.right=d1(c.right,l.right),l.bottom=d1(c.bottom,l.bottom),l.left=bc(c.left,l.left),l},AE(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 EV(e){var t=e.reference,r=e.element,n=e.placement,i=n?Fo(n):null,a=n?Rd(n):null,o=t.x+t.width/2-r.width/2,s=t.y+t.height/2-r.height/2,l;switch(i){case Ti:l={x:o,y:t.y-r.height};break;case Ta:l={x:o,y:t.y+t.height};break;case Aa: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?qM(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(a){case kd:l[u]=l[u]-(t[c]/2-r[c]/2);break;case Hv:l[u]=l[u]+(t[c]/2-r[c]/2);break}}return l}function Gv(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?rte:s,u=r.rootBoundary,c=u===void 0?AV:u,f=r.elementContext,d=f===void 0?Xp:f,p=r.altBoundary,v=p===void 0?!1:p,g=r.padding,y=g===void 0?0:g,x=DV(typeof y!="number"?y:RV(y,Ig)),b=d===Xp?nte:Xp,S=e.rects.popper,w=e.elements[v?b:d],T=Nte(zc(w)?w:w.contextElement||nu(e.elements.popper),l,c,o),C=Dd(e.elements.reference),A=EV({reference:C,element:S,placement:i}),I=n2(Object.assign({},S,A)),k=d===Xp?I:C,P={top:T.top-k.top+x.top,bottom:k.bottom-T.bottom+x.bottom,left:T.left-k.left+x.left,right:k.right-T.right+x.right},R=e.modifiersData.offset;if(d===Xp&&R){var O=R[i];Object.keys(P).forEach(function(E){var z=[Aa,Ta].indexOf(E)>=0?1:-1,B=[Ti,Ta].indexOf(E)>=0?"y":"x";P[E]+=O[B]*z})}return P}function zte(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?MV:l,c=Rd(n),f=c?s?_E:_E.filter(function(v){return Rd(v)===c}):Ig,d=f.filter(function(v){return u.indexOf(v)>=0});d.length===0&&(d=f);var p=d.reduce(function(v,g){return v[g]=Gv(e,{placement:g,boundary:i,rootBoundary:a,padding:o})[Fo(g)],v},{});return Object.keys(p).sort(function(v,g){return p[v]-p[g]})}function Bte(e){if(Fo(e)===jM)return[];var t=E0(e);return[TE(e),t,TE(t)]}function Fte(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,p=r.flipVariations,v=p===void 0?!0:p,g=r.allowedAutoPlacements,y=t.options.placement,x=Fo(y),b=x===y,S=l||(b||!v?[E0(y)]:Bte(y)),w=[y].concat(S).reduce(function(te,fe){return te.concat(Fo(fe)===jM?zte(t,{placement:fe,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:g}):fe)},[]),T=t.rects.reference,C=t.rects.popper,A=new Map,I=!0,k=w[0],P=0;P<w.length;P++){var R=w[P],O=Fo(R),E=Rd(R)===kd,z=[Ti,Ta].indexOf(O)>=0,B=z?"width":"height",W=Gv(t,{placement:R,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),X=z?E?Aa:Ai:E?Ta:Ti;T[B]>C[B]&&(X=E0(X));var H=E0(X),q=[];if(a&&q.push(W[O]<=0),s&&q.push(W[X]<=0,W[H]<=0),q.every(function(te){return te})){k=R,I=!1;break}A.set(R,q)}if(I)for(var F=v?3:1,Y=function(fe){var re=w.find(function(ce){var ne=A.get(ce);if(ne)return ne.slice(0,fe).every(function(pe){return pe})});if(re)return k=re,"break"},Z=F;Z>0;Z--){var j=Y(Z);if(j==="break")break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}}const $te={name:"flip",enabled:!0,phase:"main",fn:Fte,requiresIfExists:["offset"],data:{_skip:!1}};function ME(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 IE(e){return[Ti,Aa,Ta,Ai].some(function(t){return e[t]>=0})}function Vte(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Gv(t,{elementContext:"reference"}),s=Gv(t,{altBoundary:!0}),l=ME(o,n),u=ME(s,i,a),c=IE(l),f=IE(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 Hte={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Vte};function Gte(e,t,r){var n=Fo(e),i=[Ai,Ti].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,Aa].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function Wte(e){var t=e.state,r=e.options,n=e.name,i=r.offset,a=i===void 0?[0,0]:i,o=MV.reduce(function(c,f){return c[f]=Gte(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 jte={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Wte};function Ute(e){var t=e.state,r=e.name;t.modifiersData[r]=EV({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const Yte={name:"popperOffsets",enabled:!0,phase:"read",fn:Ute,data:{}};function qte(e){return e==="x"?"y":"x"}function Xte(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,p=d===void 0?!0:d,v=r.tetherOffset,g=v===void 0?0:v,y=Gv(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),x=Fo(t.placement),b=Rd(t.placement),S=!b,w=qM(x),T=qte(w),C=t.modifiersData.popperOffsets,A=t.rects.reference,I=t.rects.popper,k=typeof g=="function"?g(Object.assign({},t.rects,{placement:t.placement})):g,P=typeof k=="number"?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(C){if(a){var E,z=w==="y"?Ti:Ai,B=w==="y"?Ta:Aa,W=w==="y"?"height":"width",X=C[w],H=X+y[z],q=X-y[B],F=p?-I[W]/2:0,Y=b===kd?A[W]:I[W],Z=b===kd?-I[W]:-A[W],j=t.elements.arrow,te=p&&j?YM(j):{width:0,height:0},fe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:PV(),re=fe[z],ce=fe[B],ne=ov(0,A[W],te[W]),pe=S?A[W]/2-F-ne-re-P.mainAxis:Y-ne-re-P.mainAxis,me=S?-A[W]/2+F+ne+ce+P.mainAxis:Z+ne+ce+P.mainAxis,le=t.elements.arrow&&kg(t.elements.arrow),Se=le?w==="y"?le.clientTop||0:le.clientLeft||0:0,ze=(E=R==null?void 0:R[w])!=null?E:0,Te=X+pe-ze-Se,ye=X+me-ze,ft=ov(p?d1(H,Te):H,X,p?bc(q,ye):q);C[w]=ft,O[w]=ft-X}if(s){var He,gt=w==="x"?Ti:Ai,xt=w==="x"?Ta:Aa,_t=C[T],nt=T==="y"?"height":"width",Ft=_t+y[gt],Gt=_t-y[xt],Rt=[Ti,Ai].indexOf(x)!==-1,ue=(He=R==null?void 0:R[T])!=null?He:0,_e=Rt?Ft:_t-A[nt]-I[nt]-ue+P.altAxis,Ve=Rt?_t+A[nt]+I[nt]-ue-P.altAxis:Gt,ke=p&&Rt?xte(_e,_t,Ve):ov(p?_e:Ft,_t,p?Ve:Gt);C[T]=ke,O[T]=ke-_t}t.modifiersData[n]=O}}const Zte={name:"preventOverflow",enabled:!0,phase:"main",fn:Xte,requiresIfExists:["offset"]};function Kte(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Qte(e){return e===qi(e)||!_a(e)?XM(e):Kte(e)}function Jte(e){var t=e.getBoundingClientRect(),r=Pd(t.width)/e.offsetWidth||1,n=Pd(t.height)/e.offsetHeight||1;return r!==1||n!==1}function ere(e,t,r){r===void 0&&(r=!1);var n=_a(t),i=_a(t)&&Jte(t),a=nu(t),o=Dd(e,i,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(n||!n&&!r)&&((Uo(t)!=="body"||KM(a))&&(s=Qte(t)),_a(t)?(l=Dd(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=ZM(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function tre(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 rre(e){var t=tre(e);return pte.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function nre(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function ire(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 kE={placement:"bottom",modifiers:[],strategy:"absolute"};function PE(){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 are(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,a=i===void 0?kE:i;return function(s,l,u){u===void 0&&(u=a);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},kE,a),modifiersData:{},elements:{reference:s,popper:l},attributes:{},styles:{}},f=[],d=!1,p={state:c,setOptions:function(x){var b=typeof x=="function"?x(c.options):x;g(),c.options=Object.assign({},a,c.options,b),c.scrollParents={reference:zc(s)?sv(s):s.contextElement?sv(s.contextElement):[],popper:sv(l)};var S=rre(ire([].concat(n,c.options.modifiers)));return c.orderedModifiers=S.filter(function(w){return w.enabled}),v(),p.update()},forceUpdate:function(){if(!d){var x=c.elements,b=x.reference,S=x.popper;if(PE(b,S)){c.rects={reference:ere(b,kg(S),c.options.strategy==="fixed"),popper:YM(S)},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,I=A===void 0?{}:A,k=T.name;typeof C=="function"&&(c=C({state:c,options:I,name:k,instance:p})||c)}}}},update:nre(function(){return new Promise(function(y){p.forceUpdate(),y(c)})}),destroy:function(){g(),d=!0}};if(!PE(s,l))return p;p.setOptions(u).then(function(y){!d&&u.onFirstUpdate&&u.onFirstUpdate(y)});function v(){c.orderedModifiers.forEach(function(y){var x=y.name,b=y.options,S=b===void 0?{}:b,w=y.effect;if(typeof w=="function"){var T=w({state:c,name:x,instance:p,options:S}),C=function(){};f.push(T||C)}})}function g(){f.forEach(function(y){return y()}),f=[]}return p}}var ore=[kte,Yte,Mte,gte,jte,$te,Zte,wte,Hte],sre=are({defaultModifiers:ore});function lre(e){return typeof e=="function"?e():e}const OV=V.forwardRef(function(t,r){const{children:n,container:i,disablePortal:a=!1}=t,[o,s]=V.useState(null),l=Dr(V.isValidElement(n)?n.ref:null,r);if(Ja(()=>{a||s(lre(i)||document.body)},[i,a]),Ja(()=>{if(o&&!a)return Nv(r,o),()=>{Nv(r,null)}},[r,o,a]),a){if(V.isValidElement(n)){const u={ref:l};return V.cloneElement(n,u)}return N.jsx(V.Fragment,{children:n})}return N.jsx(V.Fragment,{children:o&&BM.createPortal(n,o)})});function ure(e){return ot("MuiPopper",e)}lt("MuiPopper",["root"]);const cre=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],fre=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function dre(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 i2(e){return typeof e=="function"?e():e}function pre(e){return e.nodeType!==void 0}const hre=()=>st({root:["root"]},jee(ure)),vre={},gre=V.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:p={},slots:v={},TransitionProps:g}=t,y=Be(t,cre),x=V.useRef(null),b=Dr(x,r),S=V.useRef(null),w=Dr(S,d),T=V.useRef(w);Ja(()=>{T.current=w},[w]),V.useImperativeHandle(d,()=>S.current,[]);const C=dre(c,o),[A,I]=V.useState(C),[k,P]=V.useState(i2(i));V.useEffect(()=>{S.current&&S.current.forceUpdate()}),V.useEffect(()=>{i&&P(i2(i))},[i]),Ja(()=>{if(!k||!u)return;const B=H=>{I(H.placement)};let W=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:H})=>{B(H)}}];l!=null&&(W=W.concat(l)),f&&f.modifiers!=null&&(W=W.concat(f.modifiers));const X=sre(k,x.current,G({placement:C},f,{modifiers:W}));return T.current(X),()=>{X.destroy(),T.current(null)}},[k,s,l,u,f,C]);const R={placement:A};g!==null&&(R.TransitionProps=g);const O=hre(),E=(n=v.root)!=null?n:"div",z=to({elementType:E,externalSlotProps:p.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:b},ownerState:t,className:O.root});return N.jsx(E,G({},z,{children:typeof a=="function"?a(R):a}))}),mre=V.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=vre,popperRef:p,style:v,transition:g=!1,slotProps:y={},slots:x={}}=t,b=Be(t,fre),[S,w]=V.useState(!0),T=()=>{w(!1)},C=()=>{w(!0)};if(!l&&!c&&(!g||S))return null;let A;if(a)A=a;else if(n){const P=i2(n);A=P&&pre(P)?Cn(P).body:Cn(null).body}const I=!c&&l&&(!g||S)?"none":void 0,k=g?{in:c,onEnter:T,onExited:C}:void 0;return N.jsx(OV,{disablePortal:s,container:A,children:N.jsx(gre,G({anchorEl:n,direction:o,disablePortal:s,modifiers:u,ref:r,open:g?!S:c,placement:f,popperOptions:d,popperRef:p,slotProps:y,slots:x},b,{style:G({position:"fixed",top:0,left:0,display:I},v),TransitionProps:k,children:i}))})});function yre(e){const t=Cn(e);return t.body===e?Ca(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function lv(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function DE(e){return parseInt(Ca(e).getComputedStyle(e).paddingRight,10)||0}function xre(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 RE(e,t,r,n,i){const a=[t,r,...n];[].forEach.call(e.children,o=>{const s=a.indexOf(o)===-1,l=!xre(o);s&&l&&lv(o,i)})}function H_(e,t){let r=-1;return e.some((n,i)=>t(n)?(r=i,!0):!1),r}function bre(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(yre(n)){const o=Y$(Cn(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${DE(n)+o}px`;const s=Cn(n).querySelectorAll(".mui-fixed");[].forEach.call(s,l=>{r.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${DE(l)+o}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Cn(n).body;else{const o=n.parentElement,s=Ca(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 Sre(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class _re{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&&lv(t.modalRef,!1);const i=Sre(r);RE(r,t.mount,t.modalRef,i,!0);const a=H_(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=H_(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[n];i.restore||(i.restore=bre(i,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const i=H_(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&&lv(t.modalRef,r),RE(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&&lv(o.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function wre(e){return typeof e=="function"?e():e}function Cre(e){return e?e.props.hasOwnProperty("in"):!1}const Tre=new _re;function Are(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:i=Tre,closeAfterTransition:a=!1,onTransitionEnter:o,onTransitionExited:s,children:l,onClose:u,open:c,rootRef:f}=e,d=V.useRef({}),p=V.useRef(null),v=V.useRef(null),g=Dr(v,f),[y,x]=V.useState(!c),b=Cre(l);let S=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(S=!1);const w=()=>Cn(p.current),T=()=>(d.current.modalRef=v.current,d.current.mount=p.current,d.current),C=()=>{i.mount(T(),{disableScrollLock:n}),v.current&&(v.current.scrollTop=0)},A=Qn(()=>{const W=wre(t)||w().body;i.add(T(),W),v.current&&C()}),I=V.useCallback(()=>i.isTopModal(T()),[i]),k=Qn(W=>{p.current=W,W&&(c&&I()?C():v.current&&lv(v.current,S))}),P=V.useCallback(()=>{i.remove(T(),S)},[S,i]);V.useEffect(()=>()=>{P()},[P]),V.useEffect(()=>{c?A():(!b||!a)&&P()},[c,P,b,a,A]);const R=W=>X=>{var H;(H=W.onKeyDown)==null||H.call(W,X),!(X.key!=="Escape"||!I())&&(r||(X.stopPropagation(),u&&u(X,"escapeKeyDown")))},O=W=>X=>{var H;(H=W.onClick)==null||H.call(W,X),X.target===X.currentTarget&&u&&u(X,"backdropClick")};return{getRootProps:(W={})=>{const X=TV(e);delete X.onTransitionEnter,delete X.onTransitionExited;const H=G({},X,W);return G({role:"presentation"},H,{onKeyDown:R(H),ref:g})},getBackdropProps:(W={})=>{const X=W;return G({"aria-hidden":!0},X,{onClick:O(X),open:c})},getTransitionProps:()=>{const W=()=>{x(!1),o&&o()},X=()=>{x(!0),s&&s(),a&&P()};return{onEnter:YT(W,l==null?void 0:l.props.onEnter),onExited:YT(X,l==null?void 0:l.props.onExited)}},rootRef:g,portalRef:k,isTopModal:I,exited:y,hasTransition:b}}const Mre=["onChange","maxRows","minRows","style","value"];function gy(e){return parseInt(e,10)||0}const Ire={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function LE(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const kre=V.forwardRef(function(t,r){const{onChange:n,maxRows:i,minRows:a=1,style:o,value:s}=t,l=Be(t,Mre),{current:u}=V.useRef(s!=null),c=V.useRef(null),f=Dr(r,c),d=V.useRef(null),p=V.useRef(0),[v,g]=V.useState({outerHeightStyle:0}),y=V.useCallback(()=>{const T=c.current,A=Ca(T).getComputedStyle(T);if(A.width==="0px")return{outerHeightStyle:0};const I=d.current;I.style.width=A.width,I.value=T.value||t.placeholder||"x",I.value.slice(-1)===`
141
+ `&&(I.value+=" ");const k=A.boxSizing,P=gy(A.paddingBottom)+gy(A.paddingTop),R=gy(A.borderBottomWidth)+gy(A.borderTopWidth),O=I.scrollHeight;I.value="x";const E=I.scrollHeight;let z=O;a&&(z=Math.max(Number(a)*E,z)),i&&(z=Math.min(Number(i)*E,z)),z=Math.max(z,E);const B=z+(k==="border-box"?P+R:0),W=Math.abs(z-O)<=1;return{outerHeightStyle:B,overflow:W}},[i,a,t.placeholder]),x=(T,C)=>{const{outerHeightStyle:A,overflow:I}=C;return p.current<20&&(A>0&&Math.abs((T.outerHeightStyle||0)-A)>1||T.overflow!==I)?(p.current+=1,{overflow:I,outerHeightStyle:A}):T},b=V.useCallback(()=>{const T=y();LE(T)||g(C=>x(C,T))},[y]),S=()=>{const T=y();LE(T)||BM.flushSync(()=>{g(C=>x(C,T))})};V.useEffect(()=>{const T=()=>{p.current=0,c.current&&S()},C=Wd(()=>{p.current=0,c.current&&S()});let A;const I=c.current,k=Ca(I);return k.addEventListener("resize",C),typeof ResizeObserver<"u"&&(A=new ResizeObserver(T),A.observe(I)),()=>{C.clear(),k.removeEventListener("resize",C),A&&A.disconnect()}}),Ja(()=>{b()}),V.useEffect(()=>{p.current=0},[s]);const w=T=>{p.current=0,u||b(),n&&n(T)};return N.jsxs(V.Fragment,{children:[N.jsx("textarea",G({value:s,onChange:w,ref:f,rows:a,style:G({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:G({},Ire.shadow,o,{paddingTop:0,paddingBottom:0})})]})});function EE(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function Pre(e={}){const{ignoreAccents:t=!0,ignoreCase:r=!0,limit:n,matchFrom:i="any",stringify:a,trim:o=!1}=e;return(s,{inputValue:l,getOptionLabel:u})=>{let c=o?l.trim():l;r&&(c=c.toLowerCase()),t&&(c=EE(c));const f=c?s.filter(d=>{let p=(a||u)(d);return r&&(p=p.toLowerCase()),t&&(p=EE(p)),i==="start"?p.indexOf(c)===0:p.indexOf(c)>-1}):s;return typeof n=="number"?f.slice(0,n):f}}function G_(e,t){for(let r=0;r<e.length;r+=1)if(t(e[r]))return r;return-1}const Dre=Pre(),Rre=5,Lre=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))};function Ere(e){const{unstable_isActiveElementInListbox:t=Lre,unstable_classNamePrefix:r="Mui",autoComplete:n=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:o=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:d=!1,disabled:p,disabledItemsFocusable:v=!1,disableListWrap:g=!1,filterOptions:y=Dre,filterSelectedOptions:x=!1,freeSolo:b=!1,getOptionDisabled:S,getOptionLabel:w=ge=>{var de;return(de=ge.label)!=null?de:ge},groupBy:T,handleHomeEndKeys:C=!e.freeSolo,id:A,includeInputInList:I=!1,inputValue:k,isOptionEqualToValue:P=(ge,de)=>ge===de,multiple:R=!1,onChange:O,onClose:E,onHighlightChange:z,onInputChange:B,onOpen:W,open:X,openOnFocus:H=!1,options:q,readOnly:F=!1,selectOnFocus:Y=!e.freeSolo,value:Z}=e,j=bx(A);let te=w;te=ge=>{const de=w(ge);return typeof de!="string"?String(de):de};const fe=V.useRef(!1),re=V.useRef(!0),ce=V.useRef(null),ne=V.useRef(null),[pe,me]=V.useState(null),[le,Se]=V.useState(-1),ze=i?0:-1,Te=V.useRef(ze),[ye,ft]=Ts({controlled:Z,default:c,name:u}),[He,gt]=Ts({controlled:k,default:"",name:u,state:"inputValue"}),[xt,_t]=V.useState(!1),nt=V.useCallback((ge,de)=>{if(!(R?ye.length<de.length:de!==null)&&!s)return;let qe;if(R)qe="";else if(de==null)qe="";else{const $t=te(de);qe=typeof $t=="string"?$t:""}He!==qe&&(gt(qe),B&&B(ge,qe,"reset"))},[te,He,R,B,gt,s,ye]),[Ft,Gt]=Ts({controlled:X,default:!1,name:u,state:"open"}),[Rt,ue]=V.useState(!0),_e=!R&&ye!=null&&He===te(ye),Ve=Ft&&!F,ke=Ve?y(q.filter(ge=>!(x&&(R?ye:[ye]).some(de=>de!==null&&P(ge,de)))),{inputValue:_e&&Rt?"":He,getOptionLabel:te}):[],Me=vZ({filteredOptions:ke,value:ye,inputValue:He});V.useEffect(()=>{const ge=ye!==Me.value;xt&&!ge||b&&!ge||nt(null,ye)},[ye,nt,xt,Me.value,b]);const Mt=Ft&&ke.length>0&&!F,qt=Qn(ge=>{ge===-1?ce.current.focus():pe.querySelector(`[data-tag-index="${ge}"]`).focus()});V.useEffect(()=>{R&&le>ye.length-1&&(Se(-1),qt(-1))},[ye,R,le,qt]);function Ge(ge,de){if(!ne.current||ge===-1)return-1;let Ie=ge;for(;;){if(de==="next"&&Ie===ke.length||de==="previous"&&Ie===-1)return-1;const qe=ne.current.querySelector(`[data-option-index="${Ie}"]`),$t=v?!1:!qe||qe.disabled||qe.getAttribute("aria-disabled")==="true";if(qe&&!qe.hasAttribute("tabindex")||$t)Ie+=de==="next"?1:-1;else return Ie}}const ct=Qn(({event:ge,index:de,reason:Ie="auto"})=>{if(Te.current=de,de===-1?ce.current.removeAttribute("aria-activedescendant"):ce.current.setAttribute("aria-activedescendant",`${j}-option-${de}`),z&&z(ge,de===-1?null:ke[de],Ie),!ne.current)return;const qe=ne.current.querySelector(`[role="option"].${r}-focused`);qe&&(qe.classList.remove(`${r}-focused`),qe.classList.remove(`${r}-focusVisible`));let $t=ne.current;if(ne.current.getAttribute("role")!=="listbox"&&($t=ne.current.parentElement.querySelector('[role="listbox"]')),!$t)return;if(de===-1){$t.scrollTop=0;return}const Mr=ne.current.querySelector(`[data-option-index="${de}"]`);if(Mr&&(Mr.classList.add(`${r}-focused`),Ie==="keyboard"&&Mr.classList.add(`${r}-focusVisible`),$t.scrollHeight>$t.clientHeight&&Ie!=="mouse"&&Ie!=="touch")){const Ir=Mr,Hn=$t.clientHeight+$t.scrollTop,Lt=Ir.offsetTop+Ir.offsetHeight;Lt>Hn?$t.scrollTop=Lt-$t.clientHeight:Ir.offsetTop-Ir.offsetHeight*(T?1.3:0)<$t.scrollTop&&($t.scrollTop=Ir.offsetTop-Ir.offsetHeight*(T?1.3:0))}}),It=Qn(({event:ge,diff:de,direction:Ie="next",reason:qe="auto"})=>{if(!Ve)return;const Mr=Ge((()=>{const Ir=ke.length-1;if(de==="reset")return ze;if(de==="start")return 0;if(de==="end")return Ir;const Hn=Te.current+de;return Hn<0?Hn===-1&&I?-1:g&&Te.current!==-1||Math.abs(de)>1?0:Ir:Hn>Ir?Hn===Ir+1&&I?-1:g||Math.abs(de)>1?Ir:0:Hn})(),Ie);if(ct({index:Mr,reason:qe,event:ge}),n&&de!=="reset")if(Mr===-1)ce.current.value=He;else{const Ir=te(ke[Mr]);ce.current.value=Ir,Ir.toLowerCase().indexOf(He.toLowerCase())===0&&He.length>0&&ce.current.setSelectionRange(He.length,Ir.length)}}),Ee=()=>{const ge=(de,Ie)=>{const qe=de?te(de):"",$t=Ie?te(Ie):"";return qe===$t};if(Te.current!==-1&&Me.filteredOptions&&Me.filteredOptions.length!==ke.length&&Me.inputValue===He&&(R?ye.length===Me.value.length&&Me.value.every((de,Ie)=>te(ye[Ie])===te(de)):ge(Me.value,ye))){const de=Me.filteredOptions[Te.current];if(de&&ke.some(qe=>te(qe)===te(de)))return!0}return!1},We=V.useCallback(()=>{if(!Ve||Ee())return;const ge=R?ye[0]:ye;if(ke.length===0||ge==null){It({diff:"reset"});return}if(ne.current){if(ge!=null){const de=ke[Te.current];if(R&&de&&G_(ye,qe=>P(de,qe))!==-1)return;const Ie=G_(ke,qe=>P(qe,ge));Ie===-1?It({diff:"reset"}):ct({index:Ie});return}if(Te.current>=ke.length-1){ct({index:ke.length-1});return}ct({index:Te.current})}},[ke.length,R?!1:ye,x,It,ct,Ve,He,R]),pt=Qn(ge=>{Nv(ne,ge),ge&&We()});V.useEffect(()=>{We()},[We]);const Ct=ge=>{Ft||(Gt(!0),ue(!0),W&&W(ge))},Jt=(ge,de)=>{Ft&&(Gt(!1),E&&E(ge,de))},wr=(ge,de,Ie,qe)=>{if(R){if(ye.length===de.length&&ye.every(($t,Mr)=>$t===de[Mr]))return}else if(ye===de)return;O&&O(ge,de,Ie,qe),ft(de)},Nr=V.useRef(!1),Jr=(ge,de,Ie="selectOption",qe="options")=>{let $t=Ie,Mr=de;if(R){Mr=Array.isArray(ye)?ye.slice():[];const Ir=G_(Mr,Hn=>P(de,Hn));Ir===-1?Mr.push(de):qe!=="freeSolo"&&(Mr.splice(Ir,1),$t="removeOption")}nt(ge,Mr),wr(ge,Mr,$t,{option:de}),!d&&(!ge||!ge.ctrlKey&&!ge.metaKey)&&Jt(ge,$t),(o===!0||o==="touch"&&Nr.current||o==="mouse"&&!Nr.current)&&ce.current.blur()};function Ki(ge,de){if(ge===-1)return-1;let Ie=ge;for(;;){if(de==="next"&&Ie===ye.length||de==="previous"&&Ie===-1)return-1;const qe=pe.querySelector(`[data-tag-index="${Ie}"]`);if(!qe||!qe.hasAttribute("tabindex")||qe.disabled||qe.getAttribute("aria-disabled")==="true")Ie+=de==="next"?1:-1;else return Ie}}const $n=(ge,de)=>{if(!R)return;He===""&&Jt(ge,"toggleInput");let Ie=le;le===-1?He===""&&de==="previous"&&(Ie=ye.length-1):(Ie+=de==="next"?1:-1,Ie<0&&(Ie=0),Ie===ye.length&&(Ie=-1)),Ie=Ki(Ie,de),Se(Ie),qt(Ie)},lo=ge=>{fe.current=!0,gt(""),B&&B(ge,"","clear"),wr(ge,R?[]:null,"clear")},as=ge=>de=>{if(ge.onKeyDown&&ge.onKeyDown(de),!de.defaultMuiPrevented&&(le!==-1&&["ArrowLeft","ArrowRight"].indexOf(de.key)===-1&&(Se(-1),qt(-1)),de.which!==229))switch(de.key){case"Home":Ve&&C&&(de.preventDefault(),It({diff:"start",direction:"next",reason:"keyboard",event:de}));break;case"End":Ve&&C&&(de.preventDefault(),It({diff:"end",direction:"previous",reason:"keyboard",event:de}));break;case"PageUp":de.preventDefault(),It({diff:-5,direction:"previous",reason:"keyboard",event:de}),Ct(de);break;case"PageDown":de.preventDefault(),It({diff:Rre,direction:"next",reason:"keyboard",event:de}),Ct(de);break;case"ArrowDown":de.preventDefault(),It({diff:1,direction:"next",reason:"keyboard",event:de}),Ct(de);break;case"ArrowUp":de.preventDefault(),It({diff:-1,direction:"previous",reason:"keyboard",event:de}),Ct(de);break;case"ArrowLeft":$n(de,"previous");break;case"ArrowRight":$n(de,"next");break;case"Enter":if(Te.current!==-1&&Ve){const Ie=ke[Te.current],qe=S?S(Ie):!1;if(de.preventDefault(),qe)return;Jr(de,Ie,"selectOption"),n&&ce.current.setSelectionRange(ce.current.value.length,ce.current.value.length)}else b&&He!==""&&_e===!1&&(R&&de.preventDefault(),Jr(de,He,"createOption","freeSolo"));break;case"Escape":Ve?(de.preventDefault(),de.stopPropagation(),Jt(de,"escape")):l&&(He!==""||R&&ye.length>0)&&(de.preventDefault(),de.stopPropagation(),lo(de));break;case"Backspace":if(R&&!F&&He===""&&ye.length>0){const Ie=le===-1?ye.length-1:le,qe=ye.slice();qe.splice(Ie,1),wr(de,qe,"removeOption",{option:ye[Ie]})}break;case"Delete":if(R&&!F&&He===""&&ye.length>0&&le!==-1){const Ie=le,qe=ye.slice();qe.splice(Ie,1),wr(de,qe,"removeOption",{option:ye[Ie]})}break}},os=ge=>{_t(!0),H&&!fe.current&&Ct(ge)},ss=ge=>{if(t(ne)){ce.current.focus();return}_t(!1),re.current=!0,fe.current=!1,a&&Te.current!==-1&&Ve?Jr(ge,ke[Te.current],"blur"):a&&b&&He!==""?Jr(ge,He,"blur","freeSolo"):s&&nt(ge,ye),Jt(ge,"blur")},uo=ge=>{const de=ge.target.value;He!==de&&(gt(de),ue(!1),B&&B(ge,de,"input")),de===""?!f&&!R&&wr(ge,null,"clear"):Ct(ge)},Ar=ge=>{const de=Number(ge.currentTarget.getAttribute("data-option-index"));Te.current!==de&&ct({event:ge,index:de,reason:"mouse"})},yr=ge=>{ct({event:ge,index:Number(ge.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Nr.current=!0},en=ge=>{const de=Number(ge.currentTarget.getAttribute("data-option-index"));Jr(ge,ke[de],"selectOption"),Nr.current=!1},co=ge=>de=>{const Ie=ye.slice();Ie.splice(ge,1),wr(de,Ie,"removeOption",{option:ye[ge]})},ui=ge=>{Ft?Jt(ge,"toggleInput"):Ct(ge)},tn=ge=>{ge.currentTarget.contains(ge.target)&&ge.target.getAttribute("id")!==j&&ge.preventDefault()},ci=ge=>{ge.currentTarget.contains(ge.target)&&(ce.current.focus(),Y&&re.current&&ce.current.selectionEnd-ce.current.selectionStart===0&&ce.current.select(),re.current=!1)},fo=ge=>{!p&&(He===""||!Ft)&&ui(ge)};let Vn=b&&He.length>0;Vn=Vn||(R?ye.length>0:ye!==null);let Qi=ke;return T&&(Qi=ke.reduce((ge,de,Ie)=>{const qe=T(de);return ge.length>0&&ge[ge.length-1].group===qe?ge[ge.length-1].options.push(de):ge.push({key:Ie,index:Ie,group:qe,options:[de]}),ge},[])),p&&xt&&ss(),{getRootProps:(ge={})=>G({"aria-owns":Mt?`${j}-listbox`:null},ge,{onKeyDown:as(ge),onMouseDown:tn,onClick:ci}),getInputLabelProps:()=>({id:`${j}-label`,htmlFor:j}),getInputProps:()=>({id:j,value:He,onBlur:ss,onFocus:os,onChange:uo,onMouseDown:fo,"aria-activedescendant":Ve?"":null,"aria-autocomplete":n?"both":"list","aria-controls":Mt?`${j}-listbox`:void 0,"aria-expanded":Mt,autoComplete:"off",ref:ce,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:p}),getClearProps:()=>({tabIndex:-1,onClick:lo}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:ui}),getTagProps:({index:ge})=>G({key:ge,"data-tag-index":ge,tabIndex:-1},!F&&{onDelete:co(ge)}),getListboxProps:()=>({role:"listbox",id:`${j}-listbox`,"aria-labelledby":`${j}-label`,ref:pt,onMouseDown:ge=>{ge.preventDefault()}}),getOptionProps:({index:ge,option:de})=>{const Ie=(R?ye:[ye]).some($t=>$t!=null&&P(de,$t)),qe=S?S(de):!1;return{key:te(de),tabIndex:-1,role:"option",id:`${j}-option-${ge}`,onMouseMove:Ar,onClick:en,onTouchStart:yr,"data-option-index":ge,"aria-disabled":qe,"aria-selected":Ie}},id:j,inputValue:He,value:ye,dirty:Vn,expanded:Ve&&pe,popupOpen:Ve,focused:xt||le!==-1,anchorEl:pe,setAnchorEl:me,focusedTag:le,groupedOptions:Qi}}const Ore=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Nre=be(mre,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Fx=V.forwardRef(function(t,r){var n;const i=LM(),a=ut({props:t,name:"MuiPopper"}),{anchorEl:o,component:s,components:l,componentsProps:u,container:c,disablePortal:f,keepMounted:d,modifiers:p,open:v,placement:g,popperOptions:y,popperRef:x,transition:b,slots:S,slotProps:w}=a,T=Be(a,Ore),C=(n=S==null?void 0:S.root)!=null?n:l==null?void 0:l.Root,A=G({anchorEl:o,container:c,disablePortal:f,keepMounted:d,modifiers:p,open:v,placement:g,popperOptions:y,popperRef:x,transition:b},T);return N.jsx(Nre,G({as:s,direction:i==null?void 0:i.direction,slots:{root:C},slotProps:w??u},A,{ref:r}))});function zre(e){return ot("MuiListSubheader",e)}lt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Bre=["className","color","component","disableGutters","disableSticky","inset"],Fre=e=>{const{classes:t,color:r,disableGutters:n,inset:i,disableSticky:a}=e,o={root:["root",r!=="default"&&`color${xe(r)}`,!n&&"gutters",i&&"inset",!a&&"sticky"]};return st(o,zre,t)},$re=be("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${xe(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>G({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),NV=V.forwardRef(function(t,r){const n=ut({props:t,name:"MuiListSubheader"}),{className:i,color:a="default",component:o="li",disableGutters:s=!1,disableSticky:l=!1,inset:u=!1}=n,c=Be(n,Bre),f=G({},n,{color:a,component:o,disableGutters:s,disableSticky:l,inset:u}),d=Fre(f);return N.jsx($re,G({as:o,className:Re(d.root,i),ref:r,ownerState:f},c))});NV.muiSkipListHighlight=!0;const Vre=oi(N.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");function Hre(e){return ot("MuiChip",e)}const nr=lt("MuiChip",["root","sizeSmall","sizeMedium","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Gre=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],Wre=e=>{const{classes:t,disabled:r,size:n,color:i,iconColor:a,onDelete:o,clickable:s,variant:l}=e,u={root:["root",l,r&&"disabled",`size${xe(n)}`,`color${xe(i)}`,s&&"clickable",s&&`clickableColor${xe(i)}`,o&&"deletable",o&&`deletableColor${xe(i)}`,`${l}${xe(i)}`],label:["label",`label${xe(n)}`],avatar:["avatar",`avatar${xe(n)}`,`avatarColor${xe(i)}`],icon:["icon",`icon${xe(n)}`,`iconColor${xe(a)}`],deleteIcon:["deleteIcon",`deleteIcon${xe(n)}`,`deleteIconColor${xe(i)}`,`deleteIcon${xe(l)}Color${xe(i)}`]};return st(u,Hre,t)},jre=be("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{color:n,iconColor:i,clickable:a,onDelete:o,size:s,variant:l}=r;return[{[`& .${nr.avatar}`]:t.avatar},{[`& .${nr.avatar}`]:t[`avatar${xe(s)}`]},{[`& .${nr.avatar}`]:t[`avatarColor${xe(n)}`]},{[`& .${nr.icon}`]:t.icon},{[`& .${nr.icon}`]:t[`icon${xe(s)}`]},{[`& .${nr.icon}`]:t[`iconColor${xe(i)}`]},{[`& .${nr.deleteIcon}`]:t.deleteIcon},{[`& .${nr.deleteIcon}`]:t[`deleteIcon${xe(s)}`]},{[`& .${nr.deleteIcon}`]:t[`deleteIconColor${xe(n)}`]},{[`& .${nr.deleteIcon}`]:t[`deleteIcon${xe(l)}Color${xe(n)}`]},t.root,t[`size${xe(s)}`],t[`color${xe(n)}`],a&&t.clickable,a&&n!=="default"&&t[`clickableColor${xe(n)})`],o&&t.deletable,o&&n!=="default"&&t[`deletableColor${xe(n)}`],t[l],t[`${l}${xe(n)}`]]}})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return G({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${nr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${nr.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:r,fontSize:e.typography.pxToRem(12)},[`& .${nr.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${nr.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${nr.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${nr.icon}`]:G({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&G({color:e.vars?e.vars.palette.Chip.defaultIconColor:r},t.color!=="default"&&{color:"inherit"})),[`& .${nr.deleteIcon}`]:G({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Ut(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Ut(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Ut(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${nr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ut(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${nr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>G({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ut(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${nr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ut(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${nr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>G({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${nr.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${nr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${nr.avatar}`]:{marginLeft:4},[`& .${nr.avatarSmall}`]:{marginLeft:2},[`& .${nr.icon}`]:{marginLeft:4},[`& .${nr.iconSmall}`]:{marginLeft:2},[`& .${nr.deleteIcon}`]:{marginRight:5},[`& .${nr.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ut(e.palette[t.color].main,.7)}`,[`&.${nr.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Ut(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${nr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Ut(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${nr.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Ut(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),Ure=be("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:r}=e,{size:n}=r;return[t.label,t[`label${xe(n)}`]]}})(({ownerState:e})=>G({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.size==="small"&&{paddingLeft:8,paddingRight:8}));function OE(e){return e.key==="Backspace"||e.key==="Delete"}const Yre=V.forwardRef(function(t,r){const n=ut({props:t,name:"MuiChip"}),{avatar:i,className:a,clickable:o,color:s="default",component:l,deleteIcon:u,disabled:c=!1,icon:f,label:d,onClick:p,onDelete:v,onKeyDown:g,onKeyUp:y,size:x="medium",variant:b="filled",tabIndex:S,skipFocusWhenDisabled:w=!1}=n,T=Be(n,Gre),C=V.useRef(null),A=Dr(C,r),I=q=>{q.stopPropagation(),v&&v(q)},k=q=>{q.currentTarget===q.target&&OE(q)&&q.preventDefault(),g&&g(q)},P=q=>{q.currentTarget===q.target&&(v&&OE(q)?v(q):q.key==="Escape"&&C.current&&C.current.blur()),y&&y(q)},R=o!==!1&&p?!0:o,O=R||v?Ls:l||"div",E=G({},n,{component:O,disabled:c,size:x,color:s,iconColor:V.isValidElement(f)&&f.props.color||s,onDelete:!!v,clickable:R,variant:b}),z=Wre(E),B=O===Ls?G({component:l||"div",focusVisibleClassName:z.focusVisible},v&&{disableRipple:!0}):{};let W=null;v&&(W=u&&V.isValidElement(u)?V.cloneElement(u,{className:Re(u.props.className,z.deleteIcon),onClick:I}):N.jsx(Vre,{className:Re(z.deleteIcon),onClick:I}));let X=null;i&&V.isValidElement(i)&&(X=V.cloneElement(i,{className:Re(z.avatar,i.props.className)}));let H=null;return f&&V.isValidElement(f)&&(H=V.cloneElement(f,{className:Re(z.icon,f.props.className)})),N.jsxs(jre,G({as:O,className:Re(z.root,a),disabled:R&&c?!0:void 0,onClick:p,onKeyDown:k,onKeyUp:P,ref:A,tabIndex:w&&c?-1:S,ownerState:E},B,T,{children:[X||H,N.jsx(Ure,{className:Re(z.label),ownerState:E,children:d}),W]}))});function iu({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 $x=V.createContext(void 0);function ts(){return V.useContext($x)}function zV(e){return N.jsx(cQ,G({},e,{defaultTheme:Nx,themeId:Ec}))}function NE(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function p1(e,t=!1){return e&&(NE(e.value)&&e.value!==""||t&&NE(e.defaultValue)&&e.defaultValue!=="")}function qre(e){return e.startAdornment}function Xre(e){return ot("MuiInputBase",e)}const Bi=lt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Zre=["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"],Vx=(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${xe(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},Hx=(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]},Kre=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:p,type:v}=e,g={root:["root",`color${xe(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",o&&"focused",s&&"formControl",d&&d!=="medium"&&`size${xe(d)}`,c&&"multiline",p&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",n&&"disabled",v==="search"&&"inputTypeSearch",c&&"inputMultiline",d==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",p&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return st(g,Xre,t)},Gx=be("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Vx})(({theme:e,ownerState:t})=>G({},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",[`&.${Bi.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&G({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Wx=be("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Hx})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light",n=G({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 G({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] + .${Bi.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},[`&.${Bi.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"})}),Qre=N.jsx(zV,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),QM=V.forwardRef(function(t,r){var n;const i=ut({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:o,autoFocus:s,className:l,components:u={},componentsProps:c={},defaultValue:f,disabled:d,disableInjectingGlobalStyles:p,endAdornment:v,fullWidth:g=!1,id:y,inputComponent:x="input",inputProps:b={},inputRef:S,maxRows:w,minRows:T,multiline:C=!1,name:A,onBlur:I,onChange:k,onClick:P,onFocus:R,onKeyDown:O,onKeyUp:E,placeholder:z,readOnly:B,renderSuffix:W,rows:X,slotProps:H={},slots:q={},startAdornment:F,type:Y="text",value:Z}=i,j=Be(i,Zre),te=b.value!=null?b.value:Z,{current:fe}=V.useRef(te!=null),re=V.useRef(),ce=V.useCallback(ke=>{},[]),ne=Dr(re,S,b.ref,ce),[pe,me]=V.useState(!1),le=ts(),Se=iu({props:i,muiFormControl:le,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Se.focused=le?le.focused:pe,V.useEffect(()=>{!le&&d&&pe&&(me(!1),I&&I())},[le,d,pe,I]);const ze=le&&le.onFilled,Te=le&&le.onEmpty,ye=V.useCallback(ke=>{p1(ke)?ze&&ze():Te&&Te()},[ze,Te]);Ja(()=>{fe&&ye({value:te})},[te,ye,fe]);const ft=ke=>{if(Se.disabled){ke.stopPropagation();return}R&&R(ke),b.onFocus&&b.onFocus(ke),le&&le.onFocus?le.onFocus(ke):me(!0)},He=ke=>{I&&I(ke),b.onBlur&&b.onBlur(ke),le&&le.onBlur?le.onBlur(ke):me(!1)},gt=(ke,...Me)=>{if(!fe){const Mt=ke.target||re.current;if(Mt==null)throw new Error(Yl(1));ye({value:Mt.value})}b.onChange&&b.onChange(ke,...Me),k&&k(ke,...Me)};V.useEffect(()=>{ye(re.current)},[]);const xt=ke=>{re.current&&ke.currentTarget===ke.target&&re.current.focus(),P&&P(ke)};let _t=x,nt=b;C&&_t==="input"&&(X?nt=G({type:void 0,minRows:X,maxRows:X},nt):nt=G({type:void 0,maxRows:w,minRows:T},nt),_t=kre);const Ft=ke=>{ye(ke.animationName==="mui-auto-fill-cancel"?re.current:{value:"x"})};V.useEffect(()=>{le&&le.setAdornedStart(!!F)},[le,F]);const Gt=G({},i,{color:Se.color||"primary",disabled:Se.disabled,endAdornment:v,error:Se.error,focused:Se.focused,formControl:le,fullWidth:g,hiddenLabel:Se.hiddenLabel,multiline:C,size:Se.size,startAdornment:F,type:Y}),Rt=Kre(Gt),ue=q.root||u.Root||Gx,_e=H.root||c.root||{},Ve=q.input||u.Input||Wx;return nt=G({},nt,(n=H.input)!=null?n:c.input),N.jsxs(V.Fragment,{children:[!p&&Qre,N.jsxs(ue,G({},_e,!Id(ue)&&{ownerState:G({},Gt,_e.ownerState)},{ref:r,onClick:xt},j,{className:Re(Rt.root,_e.className,l,B&&"MuiInputBase-readOnly"),children:[F,N.jsx($x.Provider,{value:null,children:N.jsx(Ve,G({ownerState:Gt,"aria-invalid":Se.error,"aria-describedby":a,autoComplete:o,autoFocus:s,defaultValue:f,disabled:Se.disabled,id:y,onAnimationStart:Ft,name:A,placeholder:z,readOnly:B,required:Se.required,rows:X,value:te,onKeyDown:O,onKeyUp:E,type:Y},nt,!Id(Ve)&&{as:_t,ownerState:G({},Gt,nt.ownerState)},{ref:ne,className:Re(Rt.input,nt.className,B&&"MuiInputBase-readOnly"),onBlur:He,onChange:gt,onFocus:ft}))}),v,W?W(G({},Se,{startAdornment:F})):null]}))]})});function Jre(e){return ot("MuiInput",e)}const Pl=G({},Bi,lt("MuiInput",["root","underline","input"]));function ene(e){return ot("MuiOutlinedInput",e)}const To=G({},Bi,lt("MuiOutlinedInput",["root","notchedOutline","input"]));function tne(e){return ot("MuiFilledInput",e)}const Fi=G({},Bi,lt("MuiFilledInput",["root","underline","input"])),BV=oi(N.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function rne(e){return ot("MuiAutocomplete",e)}const jt=lt("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var zE,BE;const nne=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],ine=["ref"],ane=e=>{const{classes:t,disablePortal:r,expanded:n,focused:i,fullWidth:a,hasClearIcon:o,hasPopupIcon:s,inputFocused:l,popupOpen:u,size:c}=e,f={root:["root",n&&"expanded",i&&"focused",a&&"fullWidth",o&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${xe(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",r&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return st(f,rne,t)},one=be("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e,{fullWidth:n,hasClearIcon:i,hasPopupIcon:a,inputFocused:o,size:s}=r;return[{[`& .${jt.tag}`]:t.tag},{[`& .${jt.tag}`]:t[`tagSize${xe(s)}`]},{[`& .${jt.inputRoot}`]:t.inputRoot},{[`& .${jt.input}`]:t.input},{[`& .${jt.input}`]:o&&t.inputFocused},t.root,n&&t.fullWidth,a&&t.hasPopupIcon,i&&t.hasClearIcon]}})(({ownerState:e})=>G({[`&.${jt.focused} .${jt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${jt.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${jt.tag}`]:G({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${jt.inputRoot}`]:{flexWrap:"wrap",[`.${jt.hasPopupIcon}&, .${jt.hasClearIcon}&`]:{paddingRight:30},[`.${jt.hasPopupIcon}.${jt.hasClearIcon}&`]:{paddingRight:56},[`& .${jt.input}`]:{width:0,minWidth:30}},[`& .${Pl.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Pl.root}.${Bi.sizeSmall}`]:{[`& .${Pl.input}`]:{padding:"2px 4px 3px 0"}},[`& .${To.root}`]:{padding:9,[`.${jt.hasPopupIcon}&, .${jt.hasClearIcon}&`]:{paddingRight:39},[`.${jt.hasPopupIcon}.${jt.hasClearIcon}&`]:{paddingRight:65},[`& .${jt.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${jt.endAdornment}`]:{right:9}},[`& .${To.root}.${Bi.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${jt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Fi.root}`]:{paddingTop:19,paddingLeft:8,[`.${jt.hasPopupIcon}&, .${jt.hasClearIcon}&`]:{paddingRight:39},[`.${jt.hasPopupIcon}.${jt.hasClearIcon}&`]:{paddingRight:65},[`& .${Fi.input}`]:{padding:"7px 4px"},[`& .${jt.endAdornment}`]:{right:9}},[`& .${Fi.root}.${Bi.sizeSmall}`]:{paddingBottom:1,[`& .${Fi.input}`]:{padding:"2.5px 4px"}},[`& .${Bi.hiddenLabel}`]:{paddingTop:8},[`& .${Fi.root}.${Bi.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${jt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Fi.root}.${Bi.hiddenLabel}.${Bi.sizeSmall}`]:{[`& .${jt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${jt.input}`]:G({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),sne=be("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),lne=be(Ws,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),une=be(Ws,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>G({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>G({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),cne=be(Fx,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${jt.option}`]:t.option},t.popper,r.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>G({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),fne=be(ao,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>G({},e.typography.body1,{overflow:"auto"})),dne=be("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),pne=be("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),hne=be("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${jt.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${jt.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${jt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ut(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${jt.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ut(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${jt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ut(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),vne=be(NV,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),gne=be("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${jt.option}`]:{paddingLeft:24}}),mne=V.forwardRef(function(t,r){var n,i,a,o;const s=ut({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:u=!1,autoSelect:c=!1,blurOnSelect:f=!1,ChipProps:d,className:p,clearIcon:v=zE||(zE=N.jsx(CV,{fontSize:"small"})),clearOnBlur:g=!s.freeSolo,clearOnEscape:y=!1,clearText:x="Clear",closeText:b="Close",componentsProps:S={},defaultValue:w=s.multiple?[]:null,disableClearable:T=!1,disableCloseOnSelect:C=!1,disabled:A=!1,disabledItemsFocusable:I=!1,disableListWrap:k=!1,disablePortal:P=!1,filterSelectedOptions:R=!1,forcePopupIcon:O="auto",freeSolo:E=!1,fullWidth:z=!1,getLimitTagsText:B=Ie=>`+${Ie}`,getOptionLabel:W,groupBy:X,handleHomeEndKeys:H=!s.freeSolo,includeInputInList:q=!1,limitTags:F=-1,ListboxComponent:Y="ul",ListboxProps:Z,loading:j=!1,loadingText:te="Loading…",multiple:fe=!1,noOptionsText:re="No options",openOnFocus:ce=!1,openText:ne="Open",PaperComponent:pe=ao,PopperComponent:me=Fx,popupIcon:le=BE||(BE=N.jsx(BV,{})),readOnly:Se=!1,renderGroup:ze,renderInput:Te,renderOption:ye,renderTags:ft,selectOnFocus:He=!s.freeSolo,size:gt="medium",slotProps:xt={}}=s,_t=Be(s,nne),{getRootProps:nt,getInputProps:Ft,getInputLabelProps:Gt,getPopupIndicatorProps:Rt,getClearProps:ue,getTagProps:_e,getListboxProps:Ve,getOptionProps:ke,value:Me,dirty:Mt,expanded:qt,id:Ge,popupOpen:ct,focused:It,focusedTag:Ee,anchorEl:We,setAnchorEl:pt,inputValue:Ct,groupedOptions:Jt}=Ere(G({},s,{componentName:"Autocomplete"})),wr=!T&&!A&&Mt&&!Se,Nr=(!E||O===!0)&&O!==!1,{onMouseDown:Jr}=Ft(),{ref:Ki}=Z??{},$n=Ve(),{ref:lo}=$n,as=Be($n,ine),os=Dr(lo,Ki),uo=W||(Ie=>{var qe;return(qe=Ie.label)!=null?qe:Ie}),Ar=G({},s,{disablePortal:P,expanded:qt,focused:It,fullWidth:z,getOptionLabel:uo,hasClearIcon:wr,hasPopupIcon:Nr,inputFocused:Ee===-1,popupOpen:ct,size:gt}),yr=ane(Ar);let en;if(fe&&Me.length>0){const Ie=qe=>G({className:yr.tag,disabled:A},_e(qe));ft?en=ft(Me,Ie,Ar):en=Me.map((qe,$t)=>N.jsx(Yre,G({label:uo(qe),size:gt},Ie({index:$t}),d)))}if(F>-1&&Array.isArray(en)){const Ie=en.length-F;!It&&Ie>0&&(en=en.splice(0,F),en.push(N.jsx("span",{className:yr.tag,children:B(Ie)},en.length)))}const ui=ze||(Ie=>N.jsxs("li",{children:[N.jsx(vne,{className:yr.groupLabel,ownerState:Ar,component:"div",children:Ie.group}),N.jsx(gne,{className:yr.groupUl,ownerState:Ar,children:Ie.children})]},Ie.key)),ci=ye||((Ie,qe)=>N.jsx("li",G({},Ie,{children:uo(qe)}))),fo=(Ie,qe)=>{const $t=ke({option:Ie,index:qe});return ci(G({},$t,{className:yr.option}),Ie,{selected:$t["aria-selected"],index:qe,inputValue:Ct},Ar)},Vn=(n=xt.clearIndicator)!=null?n:S.clearIndicator,Qi=(i=xt.paper)!=null?i:S.paper,ge=(a=xt.popper)!=null?a:S.popper,de=(o=xt.popupIndicator)!=null?o:S.popupIndicator;return N.jsxs(V.Fragment,{children:[N.jsx(one,G({ref:r,className:Re(yr.root,p),ownerState:Ar},nt(_t),{children:Te({id:Ge,disabled:A,fullWidth:!0,size:gt==="small"?"small":void 0,InputLabelProps:Gt(),InputProps:G({ref:pt,className:yr.inputRoot,startAdornment:en,onClick:Ie=>{Ie.target===Ie.currentTarget&&Jr(Ie)}},(wr||Nr)&&{endAdornment:N.jsxs(sne,{className:yr.endAdornment,ownerState:Ar,children:[wr?N.jsx(lne,G({},ue(),{"aria-label":x,title:x,ownerState:Ar},Vn,{className:Re(yr.clearIndicator,Vn==null?void 0:Vn.className),children:v})):null,Nr?N.jsx(une,G({},Rt(),{disabled:A,"aria-label":ct?b:ne,title:ct?b:ne,ownerState:Ar},de,{className:Re(yr.popupIndicator,de==null?void 0:de.className),children:le})):null]})}),inputProps:G({className:yr.input,disabled:A,readOnly:Se},Ft())})})),We?N.jsx(cne,G({as:me,disablePortal:P,style:{width:We?We.clientWidth:null},ownerState:Ar,role:"presentation",anchorEl:We,open:ct},ge,{className:Re(yr.popper,ge==null?void 0:ge.className),children:N.jsxs(fne,G({ownerState:Ar,as:pe},Qi,{className:Re(yr.paper,Qi==null?void 0:Qi.className),children:[j&&Jt.length===0?N.jsx(dne,{className:yr.loading,ownerState:Ar,children:te}):null,Jt.length===0&&!E&&!j?N.jsx(pne,{className:yr.noOptions,ownerState:Ar,role:"presentation",onMouseDown:Ie=>{Ie.preventDefault()},children:re}):null,Jt.length>0?N.jsx(hne,G({as:Y,className:yr.listbox,ownerState:Ar},as,Z,{ref:os,children:Jt.map((Ie,qe)=>X?ui({key:Ie.key,group:Ie.group,children:Ie.options.map(($t,Mr)=>fo($t,Ie.index+Mr))}):fo(Ie,qe))})):null]}))})):null]})}),yne=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],xne={entering:{opacity:1},entered:{opacity:1}},bne=V.forwardRef(function(t,r){const n=es(),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:p,onExited:v,onExiting:g,style:y,timeout:x=i,TransitionComponent:b=Ia}=t,S=Be(t,yne),w=V.useRef(null),T=Dr(w,s.ref,r),C=z=>B=>{if(z){const W=w.current;B===void 0?z(W):z(W,B)}},A=C(d),I=C((z,B)=>{VM(z);const W=ql({style:y,timeout:x,easing:l},{mode:"enter"});z.style.webkitTransition=n.transitions.create("opacity",W),z.style.transition=n.transitions.create("opacity",W),c&&c(z,B)}),k=C(f),P=C(g),R=C(z=>{const B=ql({style:y,timeout:x,easing:l},{mode:"exit"});z.style.webkitTransition=n.transitions.create("opacity",B),z.style.transition=n.transitions.create("opacity",B),p&&p(z)}),O=C(v),E=z=>{a&&a(w.current,z)};return N.jsx(b,G({appear:o,in:u,nodeRef:w,onEnter:I,onEntered:k,onEntering:A,onExit:R,onExited:O,onExiting:P,addEndListener:E,timeout:x},S,{children:(z,B)=>V.cloneElement(s,G({style:G({opacity:0,visibility:z==="exited"&&!u?"hidden":void 0},xne[z],y,s.props.style),ref:T},B))}))});function Sne(e){return ot("MuiBackdrop",e)}lt("MuiBackdrop",["root","invisible"]);const _ne=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],wne=e=>{const{classes:t,invisible:r}=e;return st({root:["root",r&&"invisible"]},Sne,t)},Cne=be("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>G({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"})),Tne=V.forwardRef(function(t,r){var n,i,a;const o=ut({props:t,name:"MuiBackdrop"}),{children:s,className:l,component:u="div",components:c={},componentsProps:f={},invisible:d=!1,open:p,slotProps:v={},slots:g={},TransitionComponent:y=bne,transitionDuration:x}=o,b=Be(o,_ne),S=G({},o,{component:u,invisible:d}),w=wne(S),T=(n=v.root)!=null?n:f.root;return N.jsx(y,G({in:p,timeout:x},b,{children:N.jsx(Cne,G({"aria-hidden":!0},T,{as:(i=(a=g.root)!=null?a:c.Root)!=null?i:u,className:Re(w.root,l,T==null?void 0:T.className),ownerState:G({},S,T==null?void 0:T.ownerState),classes:w,ref:r,children:s}))}))}),Ane=zM(),Xt=hQ({themeId:Ec,defaultTheme:Ane,defaultClassName:"MuiBox-root",generateClassName:_M.generate});function Mne(e){return ot("MuiButton",e)}const my=lt("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"]),Ine=V.createContext({}),kne=V.createContext(void 0),Pne=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Dne=e=>{const{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,classes:o}=e,s={root:["root",a,`${a}${xe(t)}`,`size${xe(i)}`,`${a}Size${xe(i)}`,t==="inherit"&&"colorInherit",r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${xe(i)}`],endIcon:["endIcon",`iconSize${xe(i)}`]},l=st(s,Mne,o);return G({},o,l)},FV=e=>G({},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}}),Rne=be(Ls,{shouldForwardProp:e=>io(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${xe(r.color)}`],t[`size${xe(r.size)}`],t[`${r.variant}Size${xe(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 G({},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":G({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Ut(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})`:Ut(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})`:Ut(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":G({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${my.focusVisible}`]:G({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${my.disabled}`]:G({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 ${Ut(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"},[`&.${my.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${my.disabled}`]:{boxShadow:"none"}}),Lne=be("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${xe(r.size)}`]]}})(({ownerState:e})=>G({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},FV(e))),Ene=be("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${xe(r.size)}`]]}})(({ownerState:e})=>G({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},FV(e))),Yo=V.forwardRef(function(t,r){const n=V.useContext(Ine),i=V.useContext(kne),a=SM(n,t),o=ut({props:a,name:"MuiButton"}),{children:s,color:l="primary",component:u="button",className:c,disabled:f=!1,disableElevation:d=!1,disableFocusRipple:p=!1,endIcon:v,focusVisibleClassName:g,fullWidth:y=!1,size:x="medium",startIcon:b,type:S,variant:w="text"}=o,T=Be(o,Pne),C=G({},o,{color:l,component:u,disabled:f,disableElevation:d,disableFocusRipple:p,fullWidth:y,size:x,type:S,variant:w}),A=Dne(C),I=b&&N.jsx(Lne,{className:A.startIcon,ownerState:C,children:b}),k=v&&N.jsx(Ene,{className:A.endIcon,ownerState:C,children:v}),P=i||"";return N.jsxs(Rne,G({ownerState:C,className:Re(n.className,A.root,c,P),component:u,disabled:f,focusRipple:!p,focusVisibleClassName:Re(A.focusVisible,g),ref:r,type:S},T,{classes:A,children:[I,s,k]}))});function One(e){return ot("PrivateSwitchBase",e)}lt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Nne=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],zne=e=>{const{classes:t,checked:r,disabled:n,edge:i}=e,a={root:["root",r&&"checked",n&&"disabled",i&&`edge${xe(i)}`],input:["input"]};return st(a,One,t)},Bne=be(Ls)(({ownerState:e})=>G({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Fne=be("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),$V=V.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:p,inputRef:v,name:g,onBlur:y,onChange:x,onFocus:b,readOnly:S,required:w=!1,tabIndex:T,type:C,value:A}=t,I=Be(t,Nne),[k,P]=Ts({controlled:i,default:!!s,name:"SwitchBase",state:"checked"}),R=ts(),O=q=>{b&&b(q),R&&R.onFocus&&R.onFocus(q)},E=q=>{y&&y(q),R&&R.onBlur&&R.onBlur(q)},z=q=>{if(q.nativeEvent.defaultPrevented)return;const F=q.target.checked;P(F),x&&x(q,F)};let B=l;R&&typeof B>"u"&&(B=R.disabled);const W=C==="checkbox"||C==="radio",X=G({},t,{checked:k,disabled:B,disableFocusRipple:u,edge:c}),H=zne(X);return N.jsxs(Bne,G({component:"span",className:Re(H.root,o),centerRipple:!0,focusRipple:!u,disabled:B,tabIndex:null,role:void 0,onFocus:O,onBlur:E,ownerState:X,ref:r},I,{children:[N.jsx(Fne,G({autoFocus:n,checked:i,defaultChecked:s,className:H.input,disabled:B,id:W?d:void 0,name:g,onChange:z,readOnly:S,ref:v,required:w,ownerState:X,tabIndex:T,type:C},C==="checkbox"&&A===void 0?{}:{value:A},p)),k?a:f]}))}),$ne=oi(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"),Vne=oi(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"),Hne=oi(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 Gne(e){return ot("MuiCheckbox",e)}const W_=lt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Wne=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],jne=e=>{const{classes:t,indeterminate:r,color:n,size:i}=e,a={root:["root",r&&"indeterminate",`color${xe(n)}`,`size${xe(i)}`]},o=st(a,Gne,t);return G({},t,o)},Une=be($V,{shouldForwardProp:e=>io(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${xe(r.color)}`]]}})(({theme:e,ownerState:t})=>G({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})`:Ut(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${W_.checked}, &.${W_.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${W_.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Yne=N.jsx(Vne,{}),qne=N.jsx($ne,{}),Xne=N.jsx(Hne,{}),a2=V.forwardRef(function(t,r){var n,i;const a=ut({props:t,name:"MuiCheckbox"}),{checkedIcon:o=Yne,color:s="primary",icon:l=qne,indeterminate:u=!1,indeterminateIcon:c=Xne,inputProps:f,size:d="medium",className:p}=a,v=Be(a,Wne),g=u?c:l,y=u?c:o,x=G({},a,{color:s,indeterminate:u,size:d}),b=jne(x);return N.jsx(Une,G({type:"checkbox",inputProps:G({"data-indeterminate":u},f),icon:V.cloneElement(g,{fontSize:(n=g.props.fontSize)!=null?n:d}),checkedIcon:V.cloneElement(y,{fontSize:(i=y.props.fontSize)!=null?i:d}),ownerState:x,ref:r,className:Re(b.root,p)},v,{classes:b}))}),Pg=FQ({createStyledComponent:be("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`maxWidth${xe(String(r.maxWidth))}`],r.fixed&&t.fixed,r.disableGutters&&t.disableGutters]}}),useThemeProps:e=>ut({props:e,name:"MuiContainer"})}),Zne=(e,t)=>G({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),Kne=e=>G({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}}),Qne=(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=G({html:Zne(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:G({margin:0},Kne(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 VV(e){const t=ut({props:e,name:"MuiCssBaseline"}),{children:r,enableColorScheme:n=!1}=t;return N.jsxs(V.Fragment,{children:[N.jsx(zV,{styles:i=>Qne(i,n)}),r]})}function Jne(e){return ot("MuiModal",e)}lt("MuiModal",["root","hidden","backdrop"]);const eie=["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"],tie=e=>{const{open:t,exited:r,classes:n}=e;return st({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},Jne,n)},rie=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})=>G({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),nie=be(Tne,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),JM=V.forwardRef(function(t,r){var n,i,a,o,s,l;const u=ut({name:"MuiModal",props:t}),{BackdropComponent:c=nie,BackdropProps:f,className:d,closeAfterTransition:p=!1,children:v,container:g,component:y,components:x={},componentsProps:b={},disableAutoFocus:S=!1,disableEnforceFocus:w=!1,disableEscapeKeyDown:T=!1,disablePortal:C=!1,disableRestoreFocus:A=!1,disableScrollLock:I=!1,hideBackdrop:k=!1,keepMounted:P=!1,onBackdropClick:R,open:O,slotProps:E,slots:z}=u,B=Be(u,eie),W=G({},u,{closeAfterTransition:p,disableAutoFocus:S,disableEnforceFocus:w,disableEscapeKeyDown:T,disablePortal:C,disableRestoreFocus:A,disableScrollLock:I,hideBackdrop:k,keepMounted:P}),{getRootProps:X,getBackdropProps:H,getTransitionProps:q,portalRef:F,isTopModal:Y,exited:Z,hasTransition:j}=Are(G({},W,{rootRef:r})),te=G({},W,{exited:Z}),fe=tie(te),re={};if(v.props.tabIndex===void 0&&(re.tabIndex="-1"),j){const{onEnter:ze,onExited:Te}=q();re.onEnter=ze,re.onExited=Te}const ce=(n=(i=z==null?void 0:z.root)!=null?i:x.Root)!=null?n:rie,ne=(a=(o=z==null?void 0:z.backdrop)!=null?o:x.Backdrop)!=null?a:c,pe=(s=E==null?void 0:E.root)!=null?s:b.root,me=(l=E==null?void 0:E.backdrop)!=null?l:b.backdrop,le=to({elementType:ce,externalSlotProps:pe,externalForwardedProps:B,getSlotProps:X,additionalProps:{ref:r,as:y},ownerState:te,className:Re(d,pe==null?void 0:pe.className,fe==null?void 0:fe.root,!te.open&&te.exited&&(fe==null?void 0:fe.hidden))}),Se=to({elementType:ne,externalSlotProps:me,additionalProps:f,getSlotProps:ze=>H(G({},ze,{onClick:Te=>{R&&R(Te),ze!=null&&ze.onClick&&ze.onClick(Te)}})),className:Re(me==null?void 0:me.className,f==null?void 0:f.className,fe==null?void 0:fe.backdrop),ownerState:te});return!P&&!O&&(!j||Z)?null:N.jsx(OV,{ref:F,container:g,disablePortal:C,children:N.jsxs(ce,G({},le,{children:[!k&&c?N.jsx(ne,G({},Se)):null,N.jsx(tte,{disableEnforceFocus:w,disableAutoFocus:S,disableRestoreFocus:A,isEnabled:Y,open:O,children:V.cloneElement(v,re)})]}))})});function iie(e){return ot("MuiDivider",e)}lt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const aie=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],oie=e=>{const{absolute:t,children:r,classes:n,flexItem:i,light:a,orientation:o,textAlign:s,variant:l}=e;return st({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"]},iie,n)},sie=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})=>G({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)`:Ut(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})=>G({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>G({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>G({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>G({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),lie=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})=>G({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)`})),ed=V.forwardRef(function(t,r){const n=ut({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:p="fullWidth"}=n,v=Be(n,aie),g=G({},n,{absolute:i,component:s,flexItem:l,light:u,orientation:c,role:f,textAlign:d,variant:p}),y=oie(g);return N.jsx(sie,G({as:s,className:Re(y.root,o),role:f,ref:r,ownerState:g},v,{children:a?N.jsx(lie,{className:y.wrapper,ownerState:g,children:a}):null}))});ed.muiSkipListHighlight=!0;const uie=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function cie(e,t,r){const n=t.getBoundingClientRect(),i=r&&r.getBoundingClientRect(),a=Ca(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 fie(e){return typeof e=="function"?e():e}function yy(e,t,r){const n=fie(r),i=cie(e,t,n);i&&(t.style.webkitTransform=i,t.style.transform=i)}const die=V.forwardRef(function(t,r){const n=es(),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:p,onEntered:v,onEntering:g,onExit:y,onExited:x,onExiting:b,style:S,timeout:w=a,TransitionComponent:T=Ia}=t,C=Be(t,uie),A=V.useRef(null),I=Dr(l.ref,A,r),k=H=>q=>{H&&(q===void 0?H(A.current):H(A.current,q))},P=k((H,q)=>{yy(c,H,u),VM(H),p&&p(H,q)}),R=k((H,q)=>{const F=ql({timeout:w,style:S,easing:f},{mode:"enter"});H.style.webkitTransition=n.transitions.create("-webkit-transform",G({},F)),H.style.transition=n.transitions.create("transform",G({},F)),H.style.webkitTransform="none",H.style.transform="none",g&&g(H,q)}),O=k(v),E=k(b),z=k(H=>{const q=ql({timeout:w,style:S,easing:f},{mode:"exit"});H.style.webkitTransition=n.transitions.create("-webkit-transform",q),H.style.transition=n.transitions.create("transform",q),yy(c,H,u),y&&y(H)}),B=k(H=>{H.style.webkitTransition="",H.style.transition="",x&&x(H)}),W=H=>{o&&o(A.current,H)},X=V.useCallback(()=>{A.current&&yy(c,A.current,u)},[c,u]);return V.useEffect(()=>{if(d||c==="down"||c==="right")return;const H=Wd(()=>{A.current&&yy(c,A.current,u)}),q=Ca(A.current);return q.addEventListener("resize",H),()=>{H.clear(),q.removeEventListener("resize",H)}},[c,d,u]),V.useEffect(()=>{d||X()},[d,X]),N.jsx(T,G({nodeRef:A,onEnter:P,onEntered:O,onEntering:R,onExit:z,onExited:B,onExiting:E,addEndListener:W,appear:s,in:d,timeout:w},C,{children:(H,q)=>V.cloneElement(l,G({ref:I,style:G({visibility:H==="exited"&&!d?"hidden":void 0},S,l.props.style)},q))}))});function pie(e){return ot("MuiDrawer",e)}lt("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const hie=["BackdropProps"],vie=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],HV=(e,t)=>{const{ownerState:r}=e;return[t.root,(r.variant==="permanent"||r.variant==="persistent")&&t.docked,t.modal]},gie=e=>{const{classes:t,anchor:r,variant:n}=e,i={root:["root"],docked:[(n==="permanent"||n==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${xe(r)}`,n!=="temporary"&&`paperAnchorDocked${xe(r)}`]};return st(i,pie,t)},mie=be(JM,{name:"MuiDrawer",slot:"Root",overridesResolver:HV})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),FE=be("div",{shouldForwardProp:io,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:HV})({flex:"0 0 auto"}),yie=be(ao,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.paper,t[`paperAnchor${xe(r.anchor)}`],r.variant!=="temporary"&&t[`paperAnchorDocked${xe(r.anchor)}`]]}})(({theme:e,ownerState:t})=>G({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}`})),GV={left:"right",right:"left",top:"down",bottom:"up"};function xie(e){return["left","right"].indexOf(e)!==-1}function bie(e,t){return e.direction==="rtl"&&xie(t)?GV[t]:t}const Sie=V.forwardRef(function(t,r){const n=ut({props:t,name:"MuiDrawer"}),i=es(),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:p,open:v=!1,PaperProps:g={},SlideProps:y,TransitionComponent:x=die,transitionDuration:b=a,variant:S="temporary"}=n,w=Be(n.ModalProps,hie),T=Be(n,vie),C=V.useRef(!1);V.useEffect(()=>{C.current=!0},[]);const A=bie(i,o),k=G({},n,{anchor:o,elevation:c,open:v,variant:S},T),P=gie(k),R=N.jsx(yie,G({elevation:S==="temporary"?c:0,square:!0},g,{className:Re(P.paper,g.className),ownerState:k,children:l}));if(S==="permanent")return N.jsx(FE,G({className:Re(P.root,P.docked,u),ownerState:k,ref:r},T,{children:R}));const O=N.jsx(x,G({in:v,direction:GV[A],timeout:b,appear:C.current},y,{children:R}));return S==="persistent"?N.jsx(FE,G({className:Re(P.root,P.docked,u),ownerState:k,ref:r},T,{children:O})):N.jsx(mie,G({BackdropProps:G({},s,d,{transitionDuration:b}),className:Re(P.root,P.modal,u),open:v,ownerState:k,onClose:p,hideBackdrop:f,ref:r},T,w,{children:O}))}),_ie=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],wie=e=>{const{classes:t,disableUnderline:r}=e,i=st({root:["root",!r&&"underline"],input:["input"]},tne,t);return G({},t,i)},Cie=be(Gx,{shouldForwardProp:e=>io(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Vx(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 G({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}},[`&.${Fi.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${Fi.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"},[`&.${Fi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Fi.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(.${Fi.disabled}, .${Fi.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Fi.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&G({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),Tie=be(Wx,{name:"MuiFilledInput",slot:"Input",overridesResolver:Hx})(({theme:e,ownerState:t})=>G({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})),eI=V.forwardRef(function(t,r){var n,i,a,o;const s=ut({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:d=!1,slotProps:p,slots:v={},type:g="text"}=s,y=Be(s,_ie),x=G({},s,{fullWidth:c,inputComponent:f,multiline:d,type:g}),b=wie(s),S={root:{ownerState:x},input:{ownerState:x}},w=p??u?Ci(p??u,S):S,T=(n=(i=v.root)!=null?i:l.Root)!=null?n:Cie,C=(a=(o=v.input)!=null?o:l.Input)!=null?a:Tie;return N.jsx(QM,G({slots:{root:T,input:C},componentsProps:w,fullWidth:c,inputComponent:f,multiline:d,ref:r,type:g},y,{classes:b}))});eI.muiName="Input";function Aie(e){return ot("MuiFormControl",e)}lt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Mie=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Iie=e=>{const{classes:t,margin:r,fullWidth:n}=e,i={root:["root",r!=="none"&&`margin${xe(r)}`,n&&"fullWidth"]};return st(i,Aie,t)},kie=be("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>G({},t.root,t[`margin${xe(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>G({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%"})),tI=V.forwardRef(function(t,r){const n=ut({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:p="none",required:v=!1,size:g="medium",variant:y="outlined"}=n,x=Be(n,Mie),b=G({},n,{color:o,component:s,disabled:l,error:u,fullWidth:f,hiddenLabel:d,margin:p,required:v,size:g,variant:y}),S=Iie(b),[w,T]=V.useState(()=>{let E=!1;return i&&V.Children.forEach(i,z=>{if(!nv(z,["Input","Select"]))return;const B=nv(z,["Select"])?z.props.input:z;B&&qre(B.props)&&(E=!0)}),E}),[C,A]=V.useState(()=>{let E=!1;return i&&V.Children.forEach(i,z=>{nv(z,["Input","Select"])&&(p1(z.props,!0)||p1(z.props.inputProps,!0))&&(E=!0)}),E}),[I,k]=V.useState(!1);l&&I&&k(!1);const P=c!==void 0&&!l?c:I;let R;const O=V.useMemo(()=>({adornedStart:w,setAdornedStart:T,color:o,disabled:l,error:u,filled:C,focused:P,fullWidth:f,hiddenLabel:d,size:g,onBlur:()=>{k(!1)},onEmpty:()=>{A(!1)},onFilled:()=>{A(!0)},onFocus:()=>{k(!0)},registerEffect:R,required:v,variant:y}),[w,o,l,u,C,P,f,d,R,v,g,y]);return N.jsx($x.Provider,{value:O,children:N.jsx(kie,G({as:s,ownerState:b,className:Re(S.root,a),ref:r},x,{children:i}))})}),WV=YQ({createStyledComponent:be("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>ut({props:e,name:"MuiStack"})});function Pie(e){return ot("MuiFormControlLabel",e)}const Vh=lt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Die=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Rie=e=>{const{classes:t,disabled:r,labelPlacement:n,error:i,required:a}=e,o={root:["root",r&&"disabled",`labelPlacement${xe(n)}`,i&&"error",a&&"required"],label:["label",r&&"disabled"],asterisk:["asterisk",i&&"error"]};return st(o,Pie,t)},Lie=be("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${Vh.label}`]:t.label},t.root,t[`labelPlacement${xe(r.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>G({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Vh.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},{[`& .${Vh.label}`]:{[`&.${Vh.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),Eie=be("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Vh.error}`]:{color:(e.vars||e).palette.error.main}})),jV=V.forwardRef(function(t,r){var n,i;const a=ut({props:t,name:"MuiFormControlLabel"}),{className:o,componentsProps:s={},control:l,disabled:u,disableTypography:c,label:f,labelPlacement:d="end",required:p,slotProps:v={}}=a,g=Be(a,Die),y=ts(),x=(n=u??l.props.disabled)!=null?n:y==null?void 0:y.disabled,b=p??l.props.required,S={disabled:x,required:b};["checked","name","onChange","value","inputRef"].forEach(k=>{typeof l.props[k]>"u"&&typeof a[k]<"u"&&(S[k]=a[k])});const w=iu({props:a,muiFormControl:y,states:["error"]}),T=G({},a,{disabled:x,labelPlacement:d,required:b,error:w.error}),C=Rie(T),A=(i=v.typography)!=null?i:s.typography;let I=f;return I!=null&&I.type!==Vt&&!c&&(I=N.jsx(Vt,G({component:"span"},A,{className:Re(C.label,A==null?void 0:A.className),children:I}))),N.jsxs(Lie,G({className:Re(C.root,o),ownerState:T,ref:r},g,{children:[V.cloneElement(l,S),b?N.jsxs(WV,{direction:"row",alignItems:"center",children:[I,N.jsxs(Eie,{ownerState:T,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):I]}))});function Oie(e){return ot("MuiFormGroup",e)}lt("MuiFormGroup",["root","row","error"]);const Nie=["className","row"],zie=e=>{const{classes:t,row:r,error:n}=e;return st({root:["root",r&&"row",n&&"error"]},Oie,t)},Bie=be("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.row&&t.row]}})(({ownerState:e})=>G({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),UV=V.forwardRef(function(t,r){const n=ut({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1}=n,o=Be(n,Nie),s=ts(),l=iu({props:n,muiFormControl:s,states:["error"]}),u=G({},n,{row:a,error:l.error}),c=zie(u);return N.jsx(Bie,G({className:Re(c.root,i),ownerState:u,ref:r},o))});function Fie(e){return ot("MuiFormHelperText",e)}const $E=lt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var VE;const $ie=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Vie=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${xe(n)}`,r&&"contained",s&&"focused",o&&"filled",l&&"required"]};return st(u,Fie,t)},Hie=be("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.size&&t[`size${xe(r.size)}`],r.contained&&t.contained,r.filled&&t.filled]}})(({theme:e,ownerState:t})=>G({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${$E.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$E.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Gie=V.forwardRef(function(t,r){const n=ut({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:o="p"}=n,s=Be(n,$ie),l=ts(),u=iu({props:n,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=G({},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=Vie(c);return N.jsx(Hie,G({as:o,ownerState:c,className:Re(f.root,a),ref:r},s,{children:i===" "?VE||(VE=N.jsx("span",{className:"notranslate",children:"​"})):i}))});function Wie(e){return ot("MuiFormLabel",e)}const uv=lt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),jie=["children","className","color","component","disabled","error","filled","focused","required"],Uie=e=>{const{classes:t,color:r,focused:n,disabled:i,error:a,filled:o,required:s}=e,l={root:["root",`color${xe(r)}`,i&&"disabled",a&&"error",o&&"filled",n&&"focused",s&&"required"],asterisk:["asterisk",a&&"error"]};return st(l,Wie,t)},Yie=be("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>G({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>G({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${uv.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${uv.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${uv.error}`]:{color:(e.vars||e).palette.error.main}})),qie=be("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${uv.error}`]:{color:(e.vars||e).palette.error.main}})),Xie=V.forwardRef(function(t,r){const n=ut({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:o="label"}=n,s=Be(n,jie),l=ts(),u=iu({props:n,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=G({},n,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=Uie(c);return N.jsxs(Yie,G({as:o,ownerState:c,className:Re(f.root,a),ref:r},s,{children:[i,u.required&&N.jsxs(qie,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),Zie=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function o2(e){return`scale(${e}, ${e**2})`}const Kie={entering:{opacity:1,transform:o2(1)},entered:{opacity:1,transform:"none"}},j_=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),h1=V.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:p,style:v,timeout:g="auto",TransitionComponent:y=Ia}=t,x=Be(t,Zie),b=V.useRef(),S=V.useRef(),w=es(),T=V.useRef(null),C=Dr(T,a.ref,r),A=B=>W=>{if(B){const X=T.current;W===void 0?B(X):B(X,W)}},I=A(c),k=A((B,W)=>{VM(B);const{duration:X,delay:H,easing:q}=ql({style:v,timeout:g,easing:o},{mode:"enter"});let F;g==="auto"?(F=w.transitions.getAutoHeightDuration(B.clientHeight),S.current=F):F=X,B.style.transition=[w.transitions.create("opacity",{duration:F,delay:H}),w.transitions.create("transform",{duration:j_?F:F*.666,delay:H,easing:q})].join(","),l&&l(B,W)}),P=A(u),R=A(p),O=A(B=>{const{duration:W,delay:X,easing:H}=ql({style:v,timeout:g,easing:o},{mode:"exit"});let q;g==="auto"?(q=w.transitions.getAutoHeightDuration(B.clientHeight),S.current=q):q=W,B.style.transition=[w.transitions.create("opacity",{duration:q,delay:X}),w.transitions.create("transform",{duration:j_?q:q*.666,delay:j_?X:X||q*.333,easing:H})].join(","),B.style.opacity=0,B.style.transform=o2(.75),f&&f(B)}),E=A(d),z=B=>{g==="auto"&&(b.current=setTimeout(B,S.current||0)),n&&n(T.current,B)};return V.useEffect(()=>()=>{clearTimeout(b.current)},[]),N.jsx(y,G({appear:i,in:s,nodeRef:T,onEnter:k,onEntered:P,onEntering:I,onExit:O,onExited:E,onExiting:R,addEndListener:z,timeout:g==="auto"?null:g},x,{children:(B,W)=>V.cloneElement(a,G({style:G({opacity:0,transform:o2(.75),visibility:B==="exited"&&!s?"hidden":void 0},Kie[B],v,a.props.style),ref:C},W))}))});h1.muiSupportAuto=!0;const Qie=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Jie=e=>{const{classes:t,disableUnderline:r}=e,i=st({root:["root",!r&&"underline"],input:["input"]},Jre,t);return G({},t,i)},eae=be(Gx,{shouldForwardProp:e=>io(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...Vx(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})`),G({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"},[`&.${Pl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Pl.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(.${Pl.disabled}, .${Pl.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Pl.disabled}:before`]:{borderBottomStyle:"dotted"}})}),tae=be(Wx,{name:"MuiInput",slot:"Input",overridesResolver:Hx})({}),rI=V.forwardRef(function(t,r){var n,i,a,o;const s=ut({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:d="input",multiline:p=!1,slotProps:v,slots:g={},type:y="text"}=s,x=Be(s,Qie),b=Jie(s),w={root:{ownerState:{disableUnderline:l}}},T=v??c?Ci(v??c,w):w,C=(n=(i=g.root)!=null?i:u.Root)!=null?n:eae,A=(a=(o=g.input)!=null?o:u.Input)!=null?a:tae;return N.jsx(QM,G({slots:{root:C,input:A},slotProps:T,fullWidth:f,inputComponent:d,multiline:p,ref:r,type:y},x,{classes:b}))});rI.muiName="Input";function rae(e){return ot("MuiInputAdornment",e)}const HE=lt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var GE;const nae=["children","className","component","disablePointerEvents","disableTypography","position","variant"],iae=(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${xe(r.position)}`],r.disablePointerEvents===!0&&t.disablePointerEvents,t[r.variant]]},aae=e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:i,size:a,variant:o}=e,s={root:["root",r&&"disablePointerEvents",i&&`position${xe(i)}`,o,n&&"hiddenLabel",a&&`size${xe(a)}`]};return st(s,rae,t)},oae=be("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:iae})(({theme:e,ownerState:t})=>G({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${HE.positionStart}&:not(.${HE.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),sae=V.forwardRef(function(t,r){const n=ut({props:t,name:"MuiInputAdornment"}),{children:i,className:a,component:o="div",disablePointerEvents:s=!1,disableTypography:l=!1,position:u,variant:c}=n,f=Be(n,nae),d=ts()||{};let p=c;c&&d.variant,d&&!p&&(p=d.variant);const v=G({},n,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:s,position:u,variant:p}),g=aae(v);return N.jsx($x.Provider,{value:null,children:N.jsx(oae,G({as:o,ownerState:v,className:Re(g.root,a),ref:r},f,{children:typeof i=="string"&&!l?N.jsx(Vt,{color:"text.secondary",children:i}):N.jsxs(V.Fragment,{children:[u==="start"?GE||(GE=N.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})});function lae(e){return ot("MuiInputLabel",e)}lt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const uae=["disableAnimation","margin","shrink","variant","className"],cae=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${xe(n)}`,o],asterisk:[s&&"asterisk"]},u=st(l,lae,t);return G({},t,u)},fae=be(Xie,{shouldForwardProp:e=>io(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${uv.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})=>G({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"&&G({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&&G({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"&&G({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)"}))),jx=V.forwardRef(function(t,r){const n=ut({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:o}=n,s=Be(n,uae),l=ts();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=iu({props:n,muiFormControl:l,states:["size","variant","required"]}),f=G({},n,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required}),d=cae(f);return N.jsx(fae,G({"data-shrink":u,ownerState:f,ref:r,className:Re(d.root,o)},s,{classes:d}))});function dae(e){return ot("MuiLink",e)}const pae=lt("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),YV={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},hae=e=>YV[e]||e,vae=({theme:e,ownerState:t})=>{const r=hae(t.color),n=Md(e,`palette.${r}`,!1)||t.color,i=Md(e,`palette.${r}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:Ut(n,.4)},gae=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],mae=e=>{const{classes:t,component:r,focusVisible:n,underline:i}=e,a={root:["root",`underline${xe(i)}`,r==="button"&&"button",n&&"focusVisible"]};return st(a,dae,t)},yae=be(Vt,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${xe(r.underline)}`],r.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>G({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&G({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:vae({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"},[`&.${pae.focusVisible}`]:{outline:"auto"}})),hn=V.forwardRef(function(t,r){const n=ut({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,p=Be(n,gae),{isFocusVisibleRef:v,onBlur:g,onFocus:y,ref:x}=_x(),[b,S]=V.useState(!1),w=Dr(r,x),T=k=>{g(k),v.current===!1&&S(!1),s&&s(k)},C=k=>{y(k),v.current===!0&&S(!0),l&&l(k)},A=G({},n,{color:a,component:o,focusVisible:b,underline:c,variant:f}),I=mae(A);return N.jsx(yae,G({color:a,className:Re(I.root,i),classes:u,component:o,onBlur:T,onFocus:C,ref:w,ownerState:A,variant:f,sx:[...Object.keys(YV).includes(a)?[]:[{color:a}],...Array.isArray(d)?d:[d]]},p))}),cv=V.createContext({});function xae(e){return ot("MuiList",e)}lt("MuiList",["root","padding","dense","subheader"]);const bae=["children","className","component","dense","disablePadding","subheader"],Sae=e=>{const{classes:t,disablePadding:r,dense:n,subheader:i}=e;return st({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},xae,t)},_ae=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})=>G({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),qV=V.forwardRef(function(t,r){const n=ut({props:t,name:"MuiList"}),{children:i,className:a,component:o="ul",dense:s=!1,disablePadding:l=!1,subheader:u}=n,c=Be(n,bae),f=V.useMemo(()=>({dense:s}),[s]),d=G({},n,{component:o,dense:s,disablePadding:l}),p=Sae(d);return N.jsx(cv.Provider,{value:f,children:N.jsxs(_ae,G({as:o,className:Re(p.root,a),ref:r,ownerState:d},c,{children:[u,i]}))})});function wae(e){return ot("MuiListItem",e)}const td=lt("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Cae=lt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Tae(e){return ot("MuiListItemSecondaryAction",e)}lt("MuiListItemSecondaryAction",["root","disableGutters"]);const Aae=["className"],Mae=e=>{const{disableGutters:t,classes:r}=e;return st({root:["root",t&&"disableGutters"]},Tae,r)},Iae=be("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>G({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),XV=V.forwardRef(function(t,r){const n=ut({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=n,a=Be(n,Aae),o=V.useContext(cv),s=G({},n,{disableGutters:o.disableGutters}),l=Mae(s);return N.jsx(Iae,G({className:Re(l.root,i),ownerState:s,ref:r},a))});XV.muiName="ListItemSecondaryAction";const kae=["className"],Pae=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],Dae=(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]},Rae=e=>{const{alignItems:t,button:r,classes:n,dense:i,disabled:a,disableGutters:o,disablePadding:s,divider:l,hasSecondaryAction:u,selected:c}=e;return st({root:["root",i&&"dense",!o&&"gutters",!s&&"padding",l&&"divider",a&&"disabled",r&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},wae,n)},Lae=be("div",{name:"MuiListItem",slot:"Root",overridesResolver:Dae})(({theme:e,ownerState:t})=>G({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&G({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Cae.root}`]:{paddingRight:48}},{[`&.${td.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${td.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ut(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${td.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Ut(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${td.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"}},[`&.${td.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Ut(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})`:Ut(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),Eae=be("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),If=V.forwardRef(function(t,r){const n=ut({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:p}={},dense:v=!1,disabled:g=!1,disableGutters:y=!1,disablePadding:x=!1,divider:b=!1,focusVisibleClassName:S,secondaryAction:w,selected:T=!1,slotProps:C={},slots:A={}}=n,I=Be(n.ContainerProps,kae),k=Be(n,Pae),P=V.useContext(cv),R=V.useMemo(()=>({dense:v||P.dense||!1,alignItems:i,disableGutters:y}),[i,P.dense,v,y]),O=V.useRef(null);Ja(()=>{a&&O.current&&O.current.focus()},[a]);const E=V.Children.toArray(s),z=E.length&&nv(E[E.length-1],["ListItemSecondaryAction"]),B=G({},n,{alignItems:i,autoFocus:a,button:o,dense:R.dense,disabled:g,disableGutters:y,disablePadding:x,divider:b,hasSecondaryAction:z,selected:T}),W=Rae(B),X=Dr(O,r),H=A.root||c.Root||Lae,q=C.root||f.root||{},F=G({className:Re(W.root,q.className,l),disabled:g},k);let Y=u||"li";return o&&(F.component=u||"div",F.focusVisibleClassName=Re(td.focusVisible,S),Y=Ls),z?(Y=!F.component&&!u?"div":Y,d==="li"&&(Y==="li"?Y="div":F.component==="li"&&(F.component="div")),N.jsx(cv.Provider,{value:R,children:N.jsxs(Eae,G({as:d,className:Re(W.container,p),ref:X,ownerState:B},I,{children:[N.jsx(H,G({},q,!Id(H)&&{as:Y,ownerState:G({},B,q.ownerState)},F,{children:E})),E.pop()]}))})):N.jsx(cv.Provider,{value:R,children:N.jsxs(H,G({},q,{as:Y,ref:X},!Id(H)&&{ownerState:G({},B,q.ownerState)},F,{children:[E,w&&N.jsx(XV,{children:w})]}))})}),Oae=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function U_(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function WE(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function ZV(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 Zp(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")||!ZV(s,a)||l)s=i(e,s,r);else return s.focus(),!0}return!1}const Nae=V.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=Be(t,Oae),p=V.useRef(null),v=V.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ja(()=>{i&&p.current.focus()},[i]),V.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(S,w)=>{const T=!p.current.style.width;if(S.clientHeight<p.current.clientHeight&&T){const C=`${Y$(Cn(S))}px`;p.current.style[w.direction==="rtl"?"paddingLeft":"paddingRight"]=C,p.current.style.width=`calc(100% + ${C})`}return p.current}}),[]);const g=S=>{const w=p.current,T=S.key,C=Cn(w).activeElement;if(T==="ArrowDown")S.preventDefault(),Zp(w,C,u,l,U_);else if(T==="ArrowUp")S.preventDefault(),Zp(w,C,u,l,WE);else if(T==="Home")S.preventDefault(),Zp(w,null,u,l,U_);else if(T==="End")S.preventDefault(),Zp(w,null,u,l,WE);else if(T.length===1){const A=v.current,I=T.toLowerCase(),k=performance.now();A.keys.length>0&&(k-A.lastTime>500?(A.keys=[],A.repeating=!0,A.previousKeyMatched=!0):A.repeating&&I!==A.keys[0]&&(A.repeating=!1)),A.lastTime=k,A.keys.push(I);const P=C&&!A.repeating&&ZV(C,A);A.previousKeyMatched&&(P||Zp(w,C,!1,l,U_,A))?S.preventDefault():A.previousKeyMatched=!1}c&&c(S)},y=Dr(p,r);let x=-1;V.Children.forEach(o,(S,w)=>{if(!V.isValidElement(S)){x===w&&(x+=1,x>=o.length&&(x=-1));return}S.props.disabled||(f==="selectedMenu"&&S.props.selected||x===-1)&&(x=w),x===w&&(S.props.disabled||S.props.muiSkipListHighlight||S.type.muiSkipListHighlight)&&(x+=1,x>=o.length&&(x=-1))});const b=V.Children.map(o,(S,w)=>{if(w===x){const T={};return a&&(T.autoFocus=!0),S.props.tabIndex===void 0&&f==="selectedMenu"&&(T.tabIndex=0),V.cloneElement(S,T)}return S});return N.jsx(qV,G({role:"menu",ref:y,className:s,onKeyDown:g,tabIndex:i?0:-1},d,{children:b}))});function zae(e){return ot("MuiPopover",e)}lt("MuiPopover",["root","paper"]);const Bae=["onEntering"],Fae=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],$ae=["slotProps"];function jE(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function UE(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function YE(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Y_(e){return typeof e=="function"?e():e}const Vae=e=>{const{classes:t}=e;return st({root:["root"],paper:["paper"]},zae,t)},Hae=be(JM,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),KV=be(ao,{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}),QV=V.forwardRef(function(t,r){var n,i,a;const o=ut({props:t,name:"MuiPopover"}),{action:s,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:d,className:p,container:v,elevation:g=8,marginThreshold:y=16,open:x,PaperProps:b={},slots:S,slotProps:w,transformOrigin:T={vertical:"top",horizontal:"left"},TransitionComponent:C=h1,transitionDuration:A="auto",TransitionProps:{onEntering:I}={},disableScrollLock:k=!1}=o,P=Be(o.TransitionProps,Bae),R=Be(o,Fae),O=(n=w==null?void 0:w.paper)!=null?n:b,E=V.useRef(),z=Dr(E,O.ref),B=G({},o,{anchorOrigin:u,anchorReference:f,elevation:g,marginThreshold:y,externalPaperSlotProps:O,transformOrigin:T,TransitionComponent:C,transitionDuration:A,TransitionProps:P}),W=Vae(B),X=V.useCallback(()=>{if(f==="anchorPosition")return c;const ze=Y_(l),ye=(ze&&ze.nodeType===1?ze:Cn(E.current).body).getBoundingClientRect();return{top:ye.top+jE(ye,u.vertical),left:ye.left+UE(ye,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),H=V.useCallback(ze=>({vertical:jE(ze,T.vertical),horizontal:UE(ze,T.horizontal)}),[T.horizontal,T.vertical]),q=V.useCallback(ze=>{const Te={width:ze.offsetWidth,height:ze.offsetHeight},ye=H(Te);if(f==="none")return{top:null,left:null,transformOrigin:YE(ye)};const ft=X();let He=ft.top-ye.vertical,gt=ft.left-ye.horizontal;const xt=He+Te.height,_t=gt+Te.width,nt=Ca(Y_(l)),Ft=nt.innerHeight-y,Gt=nt.innerWidth-y;if(y!==null&&He<y){const Rt=He-y;He-=Rt,ye.vertical+=Rt}else if(y!==null&&xt>Ft){const Rt=xt-Ft;He-=Rt,ye.vertical+=Rt}if(y!==null&&gt<y){const Rt=gt-y;gt-=Rt,ye.horizontal+=Rt}else if(_t>Gt){const Rt=_t-Gt;gt-=Rt,ye.horizontal+=Rt}return{top:`${Math.round(He)}px`,left:`${Math.round(gt)}px`,transformOrigin:YE(ye)}},[l,f,X,H,y]),[F,Y]=V.useState(x),Z=V.useCallback(()=>{const ze=E.current;if(!ze)return;const Te=q(ze);Te.top!==null&&(ze.style.top=Te.top),Te.left!==null&&(ze.style.left=Te.left),ze.style.transformOrigin=Te.transformOrigin,Y(!0)},[q]);V.useEffect(()=>(k&&window.addEventListener("scroll",Z),()=>window.removeEventListener("scroll",Z)),[l,k,Z]);const j=(ze,Te)=>{I&&I(ze,Te),Z()},te=()=>{Y(!1)};V.useEffect(()=>{x&&Z()}),V.useImperativeHandle(s,()=>x?{updatePosition:()=>{Z()}}:null,[x,Z]),V.useEffect(()=>{if(!x)return;const ze=Wd(()=>{Z()}),Te=Ca(l);return Te.addEventListener("resize",ze),()=>{ze.clear(),Te.removeEventListener("resize",ze)}},[l,x,Z]);let fe=A;A==="auto"&&!C.muiSupportAuto&&(fe=void 0);const re=v||(l?Cn(Y_(l)).body:void 0),ce=(i=S==null?void 0:S.root)!=null?i:Hae,ne=(a=S==null?void 0:S.paper)!=null?a:KV,pe=to({elementType:ne,externalSlotProps:G({},O,{style:F?O.style:G({},O.style,{opacity:0})}),additionalProps:{elevation:g,ref:z},ownerState:B,className:Re(W.paper,O==null?void 0:O.className)}),me=to({elementType:ce,externalSlotProps:(w==null?void 0:w.root)||{},externalForwardedProps:R,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:re,open:x},ownerState:B,className:Re(W.root,p)}),{slotProps:le}=me,Se=Be(me,$ae);return N.jsx(ce,G({},Se,!Id(ce)&&{slotProps:le,disableScrollLock:k},{children:N.jsx(C,G({appear:!0,in:x,onEntering:j,onExited:te,timeout:fe},P,{children:N.jsx(ne,G({},pe,{children:d}))}))}))});function Gae(e){return ot("MuiMenu",e)}lt("MuiMenu",["root","paper","list"]);const Wae=["onEntering"],jae=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Uae={vertical:"top",horizontal:"right"},Yae={vertical:"top",horizontal:"left"},qae=e=>{const{classes:t}=e;return st({root:["root"],paper:["paper"],list:["list"]},Gae,t)},Xae=be(QV,{shouldForwardProp:e=>io(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Zae=be(KV,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Kae=be(Nae,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Qae=V.forwardRef(function(t,r){var n,i;const a=ut({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:s,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:f,open:d,PaperProps:p={},PopoverClasses:v,transitionDuration:g="auto",TransitionProps:{onEntering:y}={},variant:x="selectedMenu",slots:b={},slotProps:S={}}=a,w=Be(a.TransitionProps,Wae),T=Be(a,jae),C=es(),A=C.direction==="rtl",I=G({},a,{autoFocus:o,disableAutoFocusItem:u,MenuListProps:c,onEntering:y,PaperProps:p,transitionDuration:g,TransitionProps:w,variant:x}),k=qae(I),P=o&&!u&&d,R=V.useRef(null),O=(q,F)=>{R.current&&R.current.adjustStyleForScrollbar(q,C),y&&y(q,F)},E=q=>{q.key==="Tab"&&(q.preventDefault(),f&&f(q,"tabKeyDown"))};let z=-1;V.Children.map(s,(q,F)=>{V.isValidElement(q)&&(q.props.disabled||(x==="selectedMenu"&&q.props.selected||z===-1)&&(z=F))});const B=(n=b.paper)!=null?n:Zae,W=(i=S.paper)!=null?i:p,X=to({elementType:b.root,externalSlotProps:S.root,ownerState:I,className:[k.root,l]}),H=to({elementType:B,externalSlotProps:W,ownerState:I,className:k.paper});return N.jsx(Xae,G({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:A?"right":"left"},transformOrigin:A?Uae:Yae,slots:{paper:B,root:b.root},slotProps:{root:X,paper:H},open:d,ref:r,transitionDuration:g,TransitionProps:G({onEntering:O},w),ownerState:I},T,{classes:v,children:N.jsx(Kae,G({onKeyDown:E,actions:R,autoFocus:o&&(z===-1||u),autoFocusItem:P,variant:x},c,{className:Re(k.list,c.className),children:s}))}))});function Jae(e){return ot("MuiNativeSelect",e)}const nI=lt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),eoe=["className","disabled","error","IconComponent","inputRef","variant"],toe=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${xe(r)}`,a&&"iconOpen",n&&"disabled"]};return st(s,Jae,t)},JV=({ownerState:e,theme:t})=>G({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":G({},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"},[`&.${nI.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}}),roe=be("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:io,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${nI.multiple}`]:t.multiple}]}})(JV),e6=({ownerState:e,theme:t})=>G({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${nI.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),noe=be("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${xe(r.variant)}`],r.open&&t.iconOpen]}})(e6),ioe=V.forwardRef(function(t,r){const{className:n,disabled:i,error:a,IconComponent:o,inputRef:s,variant:l="standard"}=t,u=Be(t,eoe),c=G({},t,{disabled:i,variant:l,error:a}),f=toe(c);return N.jsxs(V.Fragment,{children:[N.jsx(roe,G({ownerState:c,className:Re(f.select,n),disabled:i,ref:s||r},u)),t.multiple?null:N.jsx(noe,{as:o,ownerState:c,className:f.icon})]})});var qE;const aoe=["children","classes","className","label","notched"],ooe=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%"}),soe=be("legend")(({ownerState:e,theme:t})=>G({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&&G({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 loe(e){const{className:t,label:r,notched:n}=e,i=Be(e,aoe),a=r!=null&&r!=="",o=G({},e,{notched:n,withLabel:a});return N.jsx(ooe,G({"aria-hidden":!0,className:t,ownerState:o},i,{children:N.jsx(soe,{ownerState:o,children:a?N.jsx("span",{children:r}):qE||(qE=N.jsx("span",{className:"notranslate",children:"​"}))})}))}const uoe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],coe=e=>{const{classes:t}=e,n=st({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ene,t);return G({},t,n)},foe=be(Gx,{shouldForwardProp:e=>io(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Vx})(({theme:e,ownerState:t})=>{const r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return G({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${To.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${To.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${To.focused} .${To.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${To.error} .${To.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${To.disabled} .${To.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&G({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),doe=be(loe,{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}}),poe=be(Wx,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Hx})(({theme:e,ownerState:t})=>G({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})),Ux=V.forwardRef(function(t,r){var n,i,a,o,s;const l=ut({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:d,multiline:p=!1,notched:v,slots:g={},type:y="text"}=l,x=Be(l,uoe),b=coe(l),S=ts(),w=iu({props:l,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T=G({},l,{color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:S,fullWidth:c,hiddenLabel:w.hiddenLabel,multiline:p,size:w.size,type:y}),C=(n=(i=g.root)!=null?i:u.Root)!=null?n:foe,A=(a=(o=g.input)!=null?o:u.Input)!=null?a:poe;return N.jsx(QM,G({slots:{root:C,input:A},renderSuffix:I=>N.jsx(doe,{ownerState:T,className:b.notchedOutline,label:d!=null&&d!==""&&w.required?s||(s=N.jsxs(V.Fragment,{children:[d," ","*"]})):d,notched:typeof v<"u"?v:!!(I.startAdornment||I.filled||I.focused)}),fullWidth:c,inputComponent:f,multiline:p,ref:r,type:y},x,{classes:G({},b,{notchedOutline:null})}))});Ux.muiName="Input";function hoe(e){return ot("MuiSelect",e)}const Kp=lt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var XE;const voe=["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"],goe=be("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${Kp.select}`]:t.select},{[`&.${Kp.select}`]:t[r.variant]},{[`&.${Kp.error}`]:t.error},{[`&.${Kp.multiple}`]:t.multiple}]}})(JV,{[`&.${Kp.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),moe=be("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${xe(r.variant)}`],r.open&&t.iconOpen]}})(e6),yoe=be("input",{shouldForwardProp:e=>gJ(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 ZE(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function xoe(e){return e==null||typeof e=="string"&&!e.trim()}const boe=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${xe(r)}`,a&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]};return st(s,hoe,t)},Soe=V.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:p,error:v=!1,IconComponent:g,inputRef:y,labelId:x,MenuProps:b={},multiple:S,name:w,onBlur:T,onChange:C,onClose:A,onFocus:I,onOpen:k,open:P,readOnly:R,renderValue:O,SelectDisplayProps:E={},tabIndex:z,value:B,variant:W="standard"}=t,X=Be(t,voe),[H,q]=Ts({controlled:B,default:f,name:"Select"}),[F,Y]=Ts({controlled:P,default:c,name:"Select"}),Z=V.useRef(null),j=V.useRef(null),[te,fe]=V.useState(null),{current:re}=V.useRef(P!=null),[ce,ne]=V.useState(),pe=Dr(r,y),me=V.useCallback(Ge=>{j.current=Ge,Ge&&fe(Ge)},[]),le=te==null?void 0:te.parentNode;V.useImperativeHandle(pe,()=>({focus:()=>{j.current.focus()},node:Z.current,value:H}),[H]),V.useEffect(()=>{c&&F&&te&&!re&&(ne(s?null:le.clientWidth),j.current.focus())},[te,s]),V.useEffect(()=>{o&&j.current.focus()},[o]),V.useEffect(()=>{if(!x)return;const Ge=Cn(j.current).getElementById(x);if(Ge){const ct=()=>{getSelection().isCollapsed&&j.current.focus()};return Ge.addEventListener("click",ct),()=>{Ge.removeEventListener("click",ct)}}},[x]);const Se=(Ge,ct)=>{Ge?k&&k(ct):A&&A(ct),re||(ne(s?null:le.clientWidth),Y(Ge))},ze=Ge=>{Ge.button===0&&(Ge.preventDefault(),j.current.focus(),Se(!0,Ge))},Te=Ge=>{Se(!1,Ge)},ye=V.Children.toArray(l),ft=Ge=>{const ct=ye.find(It=>It.props.value===Ge.target.value);ct!==void 0&&(q(ct.props.value),C&&C(Ge,ct))},He=Ge=>ct=>{let It;if(ct.currentTarget.hasAttribute("tabindex")){if(S){It=Array.isArray(H)?H.slice():[];const Ee=H.indexOf(Ge.props.value);Ee===-1?It.push(Ge.props.value):It.splice(Ee,1)}else It=Ge.props.value;if(Ge.props.onClick&&Ge.props.onClick(ct),H!==It&&(q(It),C)){const Ee=ct.nativeEvent||ct,We=new Ee.constructor(Ee.type,Ee);Object.defineProperty(We,"target",{writable:!0,value:{value:It,name:w}}),C(We,Ge)}S||Se(!1,ct)}},gt=Ge=>{R||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ge.key)!==-1&&(Ge.preventDefault(),Se(!0,Ge))},xt=te!==null&&F,_t=Ge=>{!xt&&T&&(Object.defineProperty(Ge,"target",{writable:!0,value:{value:H,name:w}}),T(Ge))};delete X["aria-invalid"];let nt,Ft;const Gt=[];let Rt=!1;(p1({value:H})||p)&&(O?nt=O(H):Rt=!0);const ue=ye.map(Ge=>{if(!V.isValidElement(Ge))return null;let ct;if(S){if(!Array.isArray(H))throw new Error(Yl(2));ct=H.some(It=>ZE(It,Ge.props.value)),ct&&Rt&&Gt.push(Ge.props.children)}else ct=ZE(H,Ge.props.value),ct&&Rt&&(Ft=Ge.props.children);return V.cloneElement(Ge,{"aria-selected":ct?"true":"false",onClick:He(Ge),onKeyUp:It=>{It.key===" "&&It.preventDefault(),Ge.props.onKeyUp&&Ge.props.onKeyUp(It)},role:"option",selected:ct,value:void 0,"data-value":Ge.props.value})});Rt&&(S?Gt.length===0?nt=null:nt=Gt.reduce((Ge,ct,It)=>(Ge.push(ct),It<Gt.length-1&&Ge.push(", "),Ge),[]):nt=Ft);let _e=ce;!s&&re&&te&&(_e=le.clientWidth);let Ve;typeof z<"u"?Ve=z:Ve=d?null:0;const ke=E.id||(w?`mui-component-select-${w}`:void 0),Me=G({},t,{variant:W,value:H,open:xt,error:v}),Mt=boe(Me),qt=G({},b.PaperProps,(n=b.slotProps)==null?void 0:n.paper);return N.jsxs(V.Fragment,{children:[N.jsx(goe,G({ref:me,tabIndex:Ve,role:"button","aria-disabled":d?"true":void 0,"aria-expanded":xt?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[x,ke].filter(Boolean).join(" ")||void 0,"aria-describedby":i,onKeyDown:gt,onMouseDown:d||R?null:ze,onBlur:_t,onFocus:I},E,{ownerState:Me,className:Re(E.className,Mt.select,u),id:ke,children:xoe(nt)?XE||(XE=N.jsx("span",{className:"notranslate",children:"​"})):nt})),N.jsx(yoe,G({"aria-invalid":v,value:Array.isArray(H)?H.join(","):H,name:w,ref:Z,"aria-hidden":!0,onChange:ft,tabIndex:-1,disabled:d,className:Mt.nativeInput,autoFocus:o,ownerState:Me},X)),N.jsx(moe,{as:g,className:Mt.icon,ownerState:Me}),N.jsx(Qae,G({id:`menu-${w||""}`,anchorEl:le,open:xt,onClose:Te,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:G({"aria-labelledby":x,role:"listbox",disableListWrap:!0},b.MenuListProps),slotProps:{paper:G({},qt,{style:G({minWidth:_e},qt!=null?qt.style:null)})},children:ue}))]})}),_oe=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],woe=["root"],Coe=e=>{const{classes:t}=e;return t},iI={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>io(e)&&e!=="variant",slot:"Root"},Toe=be(rI,iI)(""),Aoe=be(Ux,iI)(""),Moe=be(eI,iI)(""),aI=V.forwardRef(function(t,r){const n=ut({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:o={},className:s,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=BV,id:f,input:d,inputProps:p,label:v,labelId:g,MenuProps:y,multiple:x=!1,native:b=!1,onClose:S,onOpen:w,open:T,renderValue:C,SelectDisplayProps:A,variant:I="outlined"}=n,k=Be(n,_oe),P=b?ioe:Soe,R=ts(),O=iu({props:n,muiFormControl:R,states:["variant","error"]}),E=O.variant||I,z=G({},n,{variant:E,classes:o}),B=Coe(z),W=Be(B,woe),X=d||{standard:N.jsx(Toe,{ownerState:z}),outlined:N.jsx(Aoe,{label:v,ownerState:z}),filled:N.jsx(Moe,{ownerState:z})}[E],H=Dr(r,X.ref);return N.jsx(V.Fragment,{children:V.cloneElement(X,G({inputComponent:P,inputProps:G({children:a,error:O.error,IconComponent:c,variant:E,type:void 0,multiple:x},b?{id:f}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:g,MenuProps:y,onClose:S,onOpen:w,open:T,renderValue:C,SelectDisplayProps:G({id:f},A)},p,{classes:p?Ci(W,p.classes):W},d?d.props.inputProps:{})},x&&b&&E==="outlined"?{notched:!0}:{},{ref:H,className:Re(X.props.className,s,B.root)},!d&&{variant:E},k))})});aI.muiName="Select";function Ioe(e){return ot("MuiTooltip",e)}const Dl=lt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),koe=["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 Poe(e){return Math.round(e*1e5)/1e5}const Doe=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${xe(a.split("-")[0])}`],arrow:["arrow"]};return st(o,Ioe,t)},Roe=be(Fx,{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})=>G({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Dl.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Dl.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Dl.arrow}`]:G({},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"] .${Dl.arrow}`]:G({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),Loe=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${xe(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>G({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Ut(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:`${Poe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Dl.popper}[data-popper-placement*="left"] &`]:G({transformOrigin:"right center"},t.isRtl?G({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):G({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Dl.popper}[data-popper-placement*="right"] &`]:G({transformOrigin:"left center"},t.isRtl?G({marginRight:"14px"},t.touch&&{marginRight:"24px"}):G({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Dl.popper}[data-popper-placement*="top"] &`]:G({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Dl.popper}[data-popper-placement*="bottom"] &`]:G({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Eoe=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:Ut(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let xy=!1,q_=null,Qp={x:0,y:0};function by(e,t){return r=>{t&&t(r),e(r)}}const t6=V.forwardRef(function(t,r){var n,i,a,o,s,l,u,c,f,d,p,v,g,y,x,b,S,w,T;const C=ut({props:t,name:"MuiTooltip"}),{arrow:A=!1,children:I,components:k={},componentsProps:P={},describeChild:R=!1,disableFocusListener:O=!1,disableHoverListener:E=!1,disableInteractive:z=!1,disableTouchListener:B=!1,enterDelay:W=100,enterNextDelay:X=0,enterTouchDelay:H=700,followCursor:q=!1,id:F,leaveDelay:Y=0,leaveTouchDelay:Z=1500,onClose:j,onOpen:te,open:fe,placement:re="bottom",PopperComponent:ce,PopperProps:ne={},slotProps:pe={},slots:me={},title:le,TransitionComponent:Se=h1,TransitionProps:ze}=C,Te=Be(C,koe),ye=V.isValidElement(I)?I:N.jsx("span",{children:I}),ft=es(),He=ft.direction==="rtl",[gt,xt]=V.useState(),[_t,nt]=V.useState(null),Ft=V.useRef(!1),Gt=z||q,Rt=V.useRef(),ue=V.useRef(),_e=V.useRef(),Ve=V.useRef(),[ke,Me]=Ts({controlled:fe,default:!1,name:"Tooltip",state:"open"});let Mt=ke;const qt=bx(F),Ge=V.useRef(),ct=V.useCallback(()=>{Ge.current!==void 0&&(document.body.style.WebkitUserSelect=Ge.current,Ge.current=void 0),clearTimeout(Ve.current)},[]);V.useEffect(()=>()=>{clearTimeout(Rt.current),clearTimeout(ue.current),clearTimeout(_e.current),ct()},[ct]);const It=Lt=>{clearTimeout(q_),xy=!0,Me(!0),te&&!Mt&&te(Lt)},Ee=Qn(Lt=>{clearTimeout(q_),q_=setTimeout(()=>{xy=!1},800+Y),Me(!1),j&&Mt&&j(Lt),clearTimeout(Rt.current),Rt.current=setTimeout(()=>{Ft.current=!1},ft.transitions.duration.shortest)}),We=Lt=>{Ft.current&&Lt.type!=="touchstart"||(gt&&gt.removeAttribute("title"),clearTimeout(ue.current),clearTimeout(_e.current),W||xy&&X?ue.current=setTimeout(()=>{It(Lt)},xy?X:W):It(Lt))},pt=Lt=>{clearTimeout(ue.current),clearTimeout(_e.current),_e.current=setTimeout(()=>{Ee(Lt)},Y)},{isFocusVisibleRef:Ct,onBlur:Jt,onFocus:wr,ref:Nr}=_x(),[,Jr]=V.useState(!1),Ki=Lt=>{Jt(Lt),Ct.current===!1&&(Jr(!1),pt(Lt))},$n=Lt=>{gt||xt(Lt.currentTarget),wr(Lt),Ct.current===!0&&(Jr(!0),We(Lt))},lo=Lt=>{Ft.current=!0;const Gn=ye.props;Gn.onTouchStart&&Gn.onTouchStart(Lt)},as=We,os=pt,ss=Lt=>{lo(Lt),clearTimeout(_e.current),clearTimeout(Rt.current),ct(),Ge.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ve.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ge.current,We(Lt)},H)},uo=Lt=>{ye.props.onTouchEnd&&ye.props.onTouchEnd(Lt),ct(),clearTimeout(_e.current),_e.current=setTimeout(()=>{Ee(Lt)},Z)};V.useEffect(()=>{if(!Mt)return;function Lt(Gn){(Gn.key==="Escape"||Gn.key==="Esc")&&Ee(Gn)}return document.addEventListener("keydown",Lt),()=>{document.removeEventListener("keydown",Lt)}},[Ee,Mt]);const Ar=Dr(ye.ref,Nr,xt,r);!le&&le!==0&&(Mt=!1);const yr=V.useRef(),en=Lt=>{const Gn=ye.props;Gn.onMouseMove&&Gn.onMouseMove(Lt),Qp={x:Lt.clientX,y:Lt.clientY},yr.current&&yr.current.update()},co={},ui=typeof le=="string";R?(co.title=!Mt&&ui&&!E?le:null,co["aria-describedby"]=Mt?qt:null):(co["aria-label"]=ui?le:null,co["aria-labelledby"]=Mt&&!ui?qt:null);const tn=G({},co,Te,ye.props,{className:Re(Te.className,ye.props.className),onTouchStart:lo,ref:Ar},q?{onMouseMove:en}:{}),ci={};B||(tn.onTouchStart=ss,tn.onTouchEnd=uo),E||(tn.onMouseOver=by(as,tn.onMouseOver),tn.onMouseLeave=by(os,tn.onMouseLeave),Gt||(ci.onMouseOver=as,ci.onMouseLeave=os)),O||(tn.onFocus=by($n,tn.onFocus),tn.onBlur=by(Ki,tn.onBlur),Gt||(ci.onFocus=$n,ci.onBlur=Ki));const fo=V.useMemo(()=>{var Lt;let Gn=[{name:"arrow",enabled:!!_t,options:{element:_t,padding:4}}];return(Lt=ne.popperOptions)!=null&&Lt.modifiers&&(Gn=Gn.concat(ne.popperOptions.modifiers)),G({},ne.popperOptions,{modifiers:Gn})},[_t,ne]),Vn=G({},C,{isRtl:He,arrow:A,disableInteractive:Gt,placement:re,PopperComponentProp:ce,touch:Ft.current}),Qi=Doe(Vn),ge=(n=(i=me.popper)!=null?i:k.Popper)!=null?n:Roe,de=(a=(o=(s=me.transition)!=null?s:k.Transition)!=null?o:Se)!=null?a:h1,Ie=(l=(u=me.tooltip)!=null?u:k.Tooltip)!=null?l:Loe,qe=(c=(f=me.arrow)!=null?f:k.Arrow)!=null?c:Eoe,$t=$h(ge,G({},ne,(d=pe.popper)!=null?d:P.popper,{className:Re(Qi.popper,ne==null?void 0:ne.className,(p=(v=pe.popper)!=null?v:P.popper)==null?void 0:p.className)}),Vn),Mr=$h(de,G({},ze,(g=pe.transition)!=null?g:P.transition),Vn),Ir=$h(Ie,G({},(y=pe.tooltip)!=null?y:P.tooltip,{className:Re(Qi.tooltip,(x=(b=pe.tooltip)!=null?b:P.tooltip)==null?void 0:x.className)}),Vn),Hn=$h(qe,G({},(S=pe.arrow)!=null?S:P.arrow,{className:Re(Qi.arrow,(w=(T=pe.arrow)!=null?T:P.arrow)==null?void 0:w.className)}),Vn);return N.jsxs(V.Fragment,{children:[V.cloneElement(ye,tn),N.jsx(ge,G({as:ce??Fx,placement:re,anchorEl:q?{getBoundingClientRect:()=>({top:Qp.y,left:Qp.x,right:Qp.x,bottom:Qp.y,width:0,height:0})}:gt,popperRef:yr,open:gt?Mt:!1,id:qt,transition:!0},ci,$t,{popperOptions:fo,children:({TransitionProps:Lt})=>N.jsx(de,G({timeout:ft.transitions.duration.shorter},Lt,Mr,{children:N.jsxs(Ie,G({},Ir,{children:[le,A?N.jsx(qe,G({},Hn,{ref:nt})):null]}))}))}))]})});function Ooe(e){return ot("MuiSwitch",e)}const qn=lt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Noe=["className","color","edge","size","sx"],zoe=e=>{const{classes:t,edge:r,size:n,color:i,checked:a,disabled:o}=e,s={root:["root",r&&`edge${xe(r)}`,`size${xe(n)}`],switchBase:["switchBase",`color${xe(i)}`,a&&"checked",o&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=st(s,Ooe,t);return G({},t,l)},Boe=be("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.edge&&t[`edge${xe(r.edge)}`],t[`size${xe(r.size)}`]]}})(({ownerState:e})=>G({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,[`& .${qn.thumb}`]:{width:16,height:16},[`& .${qn.switchBase}`]:{padding:4,[`&.${qn.checked}`]:{transform:"translateX(16px)"}}})),Foe=be($V,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.switchBase,{[`& .${qn.input}`]:t.input},r.color!=="default"&&t[`color${xe(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}),[`&.${qn.checked}`]:{transform:"translateX(20px)"},[`&.${qn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${qn.checked} + .${qn.track}`]:{opacity:.5},[`&.${qn.disabled} + .${qn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${qn.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>G({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Ut(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${qn.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})`:Ut(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${qn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?Vv(e.palette[t.color].main,.62):$v(e.palette[t.color].main,.55)}`}},[`&.${qn.checked} + .${qn.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),$oe=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}`})),Voe=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%"})),Hoe=V.forwardRef(function(t,r){const n=ut({props:t,name:"MuiSwitch"}),{className:i,color:a="primary",edge:o=!1,size:s="medium",sx:l}=n,u=Be(n,Noe),c=G({},n,{color:a,edge:o,size:s}),f=zoe(c),d=N.jsx(Voe,{className:f.thumb,ownerState:c});return N.jsxs(Boe,{className:Re(f.root,i),sx:l,ownerState:c,children:[N.jsx(Foe,G({type:"checkbox",icon:d,checkedIcon:d,ref:r,ownerState:c},u,{classes:G({},f,{root:f.switchBase})})),N.jsx($oe,{className:f.track,ownerState:c})]})});function Goe(e){return ot("MuiTab",e)}const _u=lt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Woe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],joe=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${xe(r)}`,n&&"fullWidth",i&&"wrapped",s&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return st(u,Goe,t)},Uoe=be(Ls,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.label&&r.icon&&t.labelIcon,t[`textColor${xe(r.textColor)}`],r.fullWidth&&t.fullWidth,r.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>G({},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,[`& > .${_u.iconWrapper}`]:G({},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,[`&.${_u.selected}`]:{opacity:1},[`&.${_u.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${_u.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${_u.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${_u.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${_u.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)})),Yoe=V.forwardRef(function(t,r){const n=ut({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:p,onFocus:v,selected:g,selectionFollowsFocus:y,textColor:x="inherit",value:b,wrapped:S=!1}=n,w=Be(n,Woe),T=G({},n,{disabled:a,disableFocusRipple:o,selected:g,icon:!!l,iconPosition:u,label:!!f,fullWidth:s,textColor:x,wrapped:S}),C=joe(T),A=l&&f&&V.isValidElement(l)?V.cloneElement(l,{className:Re(C.iconWrapper,l.props.className)}):l,I=P=>{!g&&d&&d(P,b),p&&p(P)},k=P=>{y&&!g&&d&&d(P,b),v&&v(P)};return N.jsxs(Uoe,G({focusRipple:!o,className:Re(C.root,i),ref:r,role:"tab","aria-selected":g,disabled:a,onClick:I,onFocus:k,ownerState:T,tabIndex:g?0:-1},w,{children:[u==="top"||u==="start"?N.jsxs(V.Fragment,{children:[A,f]}):N.jsxs(V.Fragment,{children:[f,A]}),c]}))}),r6=V.createContext();function qoe(e){return ot("MuiTable",e)}lt("MuiTable",["root","stickyHeader"]);const Xoe=["className","component","padding","size","stickyHeader"],Zoe=e=>{const{classes:t,stickyHeader:r}=e;return st({root:["root",r&&"stickyHeader"]},qoe,t)},Koe=be("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>G({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":G({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),KE="table",n6=V.forwardRef(function(t,r){const n=ut({props:t,name:"MuiTable"}),{className:i,component:a=KE,padding:o="normal",size:s="medium",stickyHeader:l=!1}=n,u=Be(n,Xoe),c=G({},n,{component:a,padding:o,size:s,stickyHeader:l}),f=Zoe(c),d=V.useMemo(()=>({padding:o,size:s,stickyHeader:l}),[o,s,l]);return N.jsx(r6.Provider,{value:d,children:N.jsx(Koe,G({as:a,role:a===KE?null:"table",ref:r,className:Re(f.root,i),ownerState:c},u))})}),Yx=V.createContext();function Qoe(e){return ot("MuiTableBody",e)}lt("MuiTableBody",["root"]);const Joe=["className","component"],ese=e=>{const{classes:t}=e;return st({root:["root"]},Qoe,t)},tse=be("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),rse={variant:"body"},QE="tbody",i6=V.forwardRef(function(t,r){const n=ut({props:t,name:"MuiTableBody"}),{className:i,component:a=QE}=n,o=Be(n,Joe),s=G({},n,{component:a}),l=ese(s);return N.jsx(Yx.Provider,{value:rse,children:N.jsx(tse,G({className:Re(l.root,i),as:a,ref:r,role:a===QE?null:"rowgroup",ownerState:s},o))})});function nse(e){return ot("MuiTableCell",e)}const ise=lt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),ase=["align","className","component","padding","scope","size","sortDirection","variant"],ose=e=>{const{classes:t,variant:r,align:n,padding:i,size:a,stickyHeader:o}=e,s={root:["root",r,o&&"stickyHeader",n!=="inherit"&&`align${xe(n)}`,i!=="normal"&&`padding${xe(i)}`,`size${xe(a)}`]};return st(s,nse,t)},sse=be("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${xe(r.size)}`],r.padding!=="normal"&&t[`padding${xe(r.padding)}`],r.align!=="inherit"&&t[`align${xe(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>G({},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"?Vv(Ut(e.palette.divider,1),.88):$v(Ut(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",[`&.${ise.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})),ic=V.forwardRef(function(t,r){const n=ut({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:o,padding:s,scope:l,size:u,sortDirection:c,variant:f}=n,d=Be(n,ase),p=V.useContext(r6),v=V.useContext(Yx),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 b=f||v&&v.variant,S=G({},n,{align:i,component:y,padding:s||(p&&p.padding?p.padding:"normal"),size:u||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:b==="head"&&p&&p.stickyHeader,variant:b}),w=ose(S);let T=null;return c&&(T=c==="asc"?"ascending":"descending"),N.jsx(sse,G({as:y,ref:r,className:Re(w.root,a),"aria-sort":T,scope:x,ownerState:S},d))});function lse(e){return ot("MuiTableContainer",e)}lt("MuiTableContainer",["root"]);const use=["className","component"],cse=e=>{const{classes:t}=e;return st({root:["root"]},lse,t)},fse=be("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),a6=V.forwardRef(function(t,r){const n=ut({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=n,o=Be(n,use),s=G({},n,{component:a}),l=cse(s);return N.jsx(fse,G({ref:r,as:a,className:Re(l.root,i),ownerState:s},o))});function dse(e){return ot("MuiTableHead",e)}lt("MuiTableHead",["root"]);const pse=["className","component"],hse=e=>{const{classes:t}=e;return st({root:["root"]},dse,t)},vse=be("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),gse={variant:"head"},JE="thead",o6=V.forwardRef(function(t,r){const n=ut({props:t,name:"MuiTableHead"}),{className:i,component:a=JE}=n,o=Be(n,pse),s=G({},n,{component:a}),l=hse(s);return N.jsx(Yx.Provider,{value:gse,children:N.jsx(vse,G({as:a,className:Re(l.root,i),ref:r,role:a===JE?null:"rowgroup",ownerState:s},o))})});function mse(e){return ot("MuiToolbar",e)}lt("MuiToolbar",["root","gutters","regular","dense"]);const yse=["className","component","disableGutters","variant"],xse=e=>{const{classes:t,disableGutters:r,variant:n}=e;return st({root:["root",!r&&"gutters",n]},mse,t)},bse=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})=>G({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),Sse=V.forwardRef(function(t,r){const n=ut({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:o=!1,variant:s="regular"}=n,l=Be(n,yse),u=G({},n,{component:a,disableGutters:o,variant:s}),c=xse(u);return N.jsx(bse,G({as:a,className:Re(c.root,i),ref:r,ownerState:u},l))}),_se=oi(N.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),wse=oi(N.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Cse(e){return ot("MuiTableRow",e)}const eO=lt("MuiTableRow",["root","selected","hover","head","footer"]),Tse=["className","component","hover","selected"],Ase=e=>{const{classes:t,selected:r,hover:n,head:i,footer:a}=e;return st({root:["root",r&&"selected",n&&"hover",i&&"head",a&&"footer"]},Cse,t)},Mse=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,[`&.${eO.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${eO.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Ut(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}))`:Ut(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),tO="tr",v1=V.forwardRef(function(t,r){const n=ut({props:t,name:"MuiTableRow"}),{className:i,component:a=tO,hover:o=!1,selected:s=!1}=n,l=Be(n,Tse),u=V.useContext(Yx),c=G({},n,{component:a,hover:o,selected:s,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=Ase(c);return N.jsx(Mse,G({as:a,ref:r,className:Re(f.root,i),role:a===tO?null:"row",ownerState:c},l))});function Ise(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function kse(e,t,r,n={},i=()=>{}){const{ease:a=Ise,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 p=Math.min(1,(d-s)/o);if(t[e]=a(p)*(r-l)+l,p>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(f)};return l===r?(i(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const Pse=["onChange"],Dse={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Rse(e){const{onChange:t}=e,r=Be(e,Pse),n=V.useRef(),i=V.useRef(null),a=()=>{n.current=i.current.offsetHeight-i.current.clientHeight};return Ja(()=>{const o=Wd(()=>{const l=n.current;a(),l!==n.current&&t(n.current)}),s=Ca(i.current);return s.addEventListener("resize",o),()=>{o.clear(),s.removeEventListener("resize",o)}},[t]),V.useEffect(()=>{a(),t(n.current)},[t]),N.jsx("div",G({style:Dse,ref:i},r))}function Lse(e){return ot("MuiTabScrollButton",e)}const Ese=lt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Ose=["className","slots","slotProps","direction","orientation","disabled"],Nse=e=>{const{classes:t,orientation:r,disabled:n}=e;return st({root:["root",r,n&&"disabled"]},Lse,t)},zse=be(Ls,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.orientation&&t[r.orientation]]}})(({ownerState:e})=>G({width:40,flexShrink:0,opacity:.8,[`&.${Ese.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),Bse=V.forwardRef(function(t,r){var n,i;const a=ut({props:t,name:"MuiTabScrollButton"}),{className:o,slots:s={},slotProps:l={},direction:u}=a,c=Be(a,Ose),d=es().direction==="rtl",p=G({isRtl:d},a),v=Nse(p),g=(n=s.StartScrollButtonIcon)!=null?n:_se,y=(i=s.EndScrollButtonIcon)!=null?i:wse,x=to({elementType:g,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),b=to({elementType:y,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return N.jsx(zse,G({component:"div",className:Re(v.root,o),ref:r,role:null,ownerState:p,tabIndex:null},c,{children:u==="left"?N.jsx(g,G({},x)):N.jsx(y,G({},b))}))});function Fse(e){return ot("MuiTabs",e)}const X_=lt("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),$se=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],rO=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,nO=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,Sy=(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}}},Vse=e=>{const{vertical:t,fixed:r,hideScrollbar:n,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:l}=e;return st({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"]},Fse,l)},Hse=be("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`& .${X_.scrollButtons}`]:t.scrollButtons},{[`& .${X_.scrollButtons}`]:r.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,r.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>G({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${X_.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Gse=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})=>G({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"})),Wse=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})=>G({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),jse=be("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>G({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})),Use=be(Rse)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),iO={},Yse=V.forwardRef(function(t,r){const n=ut({props:t,name:"MuiTabs"}),i=es(),a=i.direction==="rtl",{"aria-label":o,"aria-labelledby":s,action:l,centered:u=!1,children:c,className:f,component:d="div",allowScrollButtonsMobile:p=!1,indicatorColor:v="primary",onChange:g,orientation:y="horizontal",ScrollButtonComponent:x=Bse,scrollButtons:b="auto",selectionFollowsFocus:S,slots:w={},slotProps:T={},TabIndicatorProps:C={},TabScrollButtonProps:A={},textColor:I="primary",value:k,variant:P="standard",visibleScrollbar:R=!1}=n,O=Be(n,$se),E=P==="scrollable",z=y==="vertical",B=z?"scrollTop":"scrollLeft",W=z?"top":"left",X=z?"bottom":"right",H=z?"clientHeight":"clientWidth",q=z?"height":"width",F=G({},n,{component:d,allowScrollButtonsMobile:p,indicatorColor:v,orientation:y,vertical:z,scrollButtons:b,textColor:I,variant:P,visibleScrollbar:R,fixed:!E,hideScrollbar:E&&!R,scrollableX:E&&!z,scrollableY:E&&z,centered:u&&!E,scrollButtonsHideMobile:!p}),Y=Vse(F),Z=to({elementType:w.StartScrollButtonIcon,externalSlotProps:T.startScrollButtonIcon,ownerState:F}),j=to({elementType:w.EndScrollButtonIcon,externalSlotProps:T.endScrollButtonIcon,ownerState:F}),[te,fe]=V.useState(!1),[re,ce]=V.useState(iO),[ne,pe]=V.useState(!1),[me,le]=V.useState(!1),[Se,ze]=V.useState(!1),[Te,ye]=V.useState({overflow:"hidden",scrollbarWidth:0}),ft=new Map,He=V.useRef(null),gt=V.useRef(null),xt=()=>{const Ee=He.current;let We;if(Ee){const Ct=Ee.getBoundingClientRect();We={clientWidth:Ee.clientWidth,scrollLeft:Ee.scrollLeft,scrollTop:Ee.scrollTop,scrollLeftNormalized:hZ(Ee,i.direction),scrollWidth:Ee.scrollWidth,top:Ct.top,bottom:Ct.bottom,left:Ct.left,right:Ct.right}}let pt;if(Ee&&k!==!1){const Ct=gt.current.children;if(Ct.length>0){const Jt=Ct[ft.get(k)];pt=Jt?Jt.getBoundingClientRect():null}}return{tabsMeta:We,tabMeta:pt}},_t=Qn(()=>{const{tabsMeta:Ee,tabMeta:We}=xt();let pt=0,Ct;if(z)Ct="top",We&&Ee&&(pt=We.top-Ee.top+Ee.scrollTop);else if(Ct=a?"right":"left",We&&Ee){const wr=a?Ee.scrollLeftNormalized+Ee.clientWidth-Ee.scrollWidth:Ee.scrollLeft;pt=(a?-1:1)*(We[Ct]-Ee[Ct]+wr)}const Jt={[Ct]:pt,[q]:We?We[q]:0};if(isNaN(re[Ct])||isNaN(re[q]))ce(Jt);else{const wr=Math.abs(re[Ct]-Jt[Ct]),Nr=Math.abs(re[q]-Jt[q]);(wr>=1||Nr>=1)&&ce(Jt)}}),nt=(Ee,{animation:We=!0}={})=>{We?kse(B,He.current,Ee,{duration:i.transitions.duration.standard}):He.current[B]=Ee},Ft=Ee=>{let We=He.current[B];z?We+=Ee:(We+=Ee*(a?-1:1),We*=a&&q$()==="reverse"?-1:1),nt(We)},Gt=()=>{const Ee=He.current[H];let We=0;const pt=Array.from(gt.current.children);for(let Ct=0;Ct<pt.length;Ct+=1){const Jt=pt[Ct];if(We+Jt[H]>Ee){Ct===0&&(We=Ee);break}We+=Jt[H]}return We},Rt=()=>{Ft(-1*Gt())},ue=()=>{Ft(Gt())},_e=V.useCallback(Ee=>{ye({overflow:null,scrollbarWidth:Ee})},[]),Ve=()=>{const Ee={};Ee.scrollbarSizeListener=E?N.jsx(Use,{onChange:_e,className:Re(Y.scrollableX,Y.hideScrollbar)}):null;const pt=E&&(b==="auto"&&(ne||me)||b===!0);return Ee.scrollButtonStart=pt?N.jsx(x,G({slots:{StartScrollButtonIcon:w.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Z},orientation:y,direction:a?"right":"left",onClick:Rt,disabled:!ne},A,{className:Re(Y.scrollButtons,A.className)})):null,Ee.scrollButtonEnd=pt?N.jsx(x,G({slots:{EndScrollButtonIcon:w.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:j},orientation:y,direction:a?"left":"right",onClick:ue,disabled:!me},A,{className:Re(Y.scrollButtons,A.className)})):null,Ee},ke=Qn(Ee=>{const{tabsMeta:We,tabMeta:pt}=xt();if(!(!pt||!We)){if(pt[W]<We[W]){const Ct=We[B]+(pt[W]-We[W]);nt(Ct,{animation:Ee})}else if(pt[X]>We[X]){const Ct=We[B]+(pt[X]-We[X]);nt(Ct,{animation:Ee})}}}),Me=Qn(()=>{E&&b!==!1&&ze(!Se)});V.useEffect(()=>{const Ee=Wd(()=>{He.current&&_t()}),We=Ca(He.current);We.addEventListener("resize",Ee);let pt;return typeof ResizeObserver<"u"&&(pt=new ResizeObserver(Ee),Array.from(gt.current.children).forEach(Ct=>{pt.observe(Ct)})),()=>{Ee.clear(),We.removeEventListener("resize",Ee),pt&&pt.disconnect()}},[_t]),V.useEffect(()=>{const Ee=Array.from(gt.current.children),We=Ee.length;if(typeof IntersectionObserver<"u"&&We>0&&E&&b!==!1){const pt=Ee[0],Ct=Ee[We-1],Jt={root:He.current,threshold:.99},wr=$n=>{pe(!$n[0].isIntersecting)},Nr=new IntersectionObserver(wr,Jt);Nr.observe(pt);const Jr=$n=>{le(!$n[0].isIntersecting)},Ki=new IntersectionObserver(Jr,Jt);return Ki.observe(Ct),()=>{Nr.disconnect(),Ki.disconnect()}}},[E,b,Se,c==null?void 0:c.length]),V.useEffect(()=>{fe(!0)},[]),V.useEffect(()=>{_t()}),V.useEffect(()=>{ke(iO!==re)},[ke,re]),V.useImperativeHandle(l,()=>({updateIndicator:_t,updateScrollButtons:Me}),[_t,Me]);const Mt=N.jsx(jse,G({},C,{className:Re(Y.indicator,C.className),ownerState:F,style:G({},re,C.style)}));let qt=0;const Ge=V.Children.map(c,Ee=>{if(!V.isValidElement(Ee))return null;const We=Ee.props.value===void 0?qt:Ee.props.value;ft.set(We,qt);const pt=We===k;return qt+=1,V.cloneElement(Ee,G({fullWidth:P==="fullWidth",indicator:pt&&!te&&Mt,selected:pt,selectionFollowsFocus:S,onChange:g,textColor:I,value:We},qt===1&&k===!1&&!Ee.props.tabIndex?{tabIndex:0}:{}))}),ct=Ee=>{const We=gt.current,pt=Cn(We).activeElement;if(pt.getAttribute("role")!=="tab")return;let Jt=y==="horizontal"?"ArrowLeft":"ArrowUp",wr=y==="horizontal"?"ArrowRight":"ArrowDown";switch(y==="horizontal"&&a&&(Jt="ArrowRight",wr="ArrowLeft"),Ee.key){case Jt:Ee.preventDefault(),Sy(We,pt,nO);break;case wr:Ee.preventDefault(),Sy(We,pt,rO);break;case"Home":Ee.preventDefault(),Sy(We,null,rO);break;case"End":Ee.preventDefault(),Sy(We,null,nO);break}},It=Ve();return N.jsxs(Hse,G({className:Re(Y.root,f),ownerState:F,ref:r,as:d},O,{children:[It.scrollButtonStart,It.scrollbarSizeListener,N.jsxs(Gse,{className:Y.scroller,ownerState:F,style:{overflow:Te.overflow,[z?`margin${a?"Left":"Right"}`:"marginBottom"]:R?void 0:-Te.scrollbarWidth},ref:He,children:[N.jsx(Wse,{"aria-label":o,"aria-labelledby":s,"aria-orientation":y==="vertical"?"vertical":null,className:Y.flexContainer,ownerState:F,onKeyDown:ct,ref:gt,role:"tablist",children:Ge}),te&&Mt]}),It.scrollButtonEnd]}))});function qse(e){return ot("MuiTextField",e)}lt("MuiTextField",["root"]);const Xse=["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"],Zse={standard:rI,filled:eI,outlined:Ux},Kse=e=>{const{classes:t}=e;return st({root:["root"]},qse,t)},Qse=be(tI,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Sc=V.forwardRef(function(t,r){const n=ut({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:p=!1,helperText:v,id:g,InputLabelProps:y,inputProps:x,InputProps:b,inputRef:S,label:w,maxRows:T,minRows:C,multiline:A=!1,name:I,onBlur:k,onChange:P,onFocus:R,placeholder:O,required:E=!1,rows:z,select:B=!1,SelectProps:W,type:X,value:H,variant:q="outlined"}=n,F=Be(n,Xse),Y=G({},n,{autoFocus:a,color:l,disabled:c,error:f,fullWidth:p,multiline:A,required:E,select:B,variant:q}),Z=Kse(Y),j={};q==="outlined"&&(y&&typeof y.shrink<"u"&&(j.notched=y.shrink),j.label=w),B&&((!W||!W.native)&&(j.id=void 0),j["aria-describedby"]=void 0);const te=bx(g),fe=v&&te?`${te}-helper-text`:void 0,re=w&&te?`${te}-label`:void 0,ce=Zse[q],ne=N.jsx(ce,G({"aria-describedby":fe,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:p,multiline:A,name:I,rows:z,maxRows:T,minRows:C,type:X,value:H,id:te,inputRef:S,onBlur:k,onChange:P,onFocus:R,placeholder:O,inputProps:x},j,b));return N.jsxs(Qse,G({className:Re(Z.root,s),disabled:c,error:f,fullWidth:p,ref:r,required:E,color:l,variant:q,ownerState:Y},F,{children:[w!=null&&w!==""&&N.jsx(jx,G({htmlFor:te,id:re},y,{children:w})),B?N.jsx(aI,G({"aria-describedby":fe,id:te,labelId:re,value:H,input:ne},W,{children:o})):ne,v&&N.jsx(Gie,G({id:fe},d,{children:v}))]}))});function s6(){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 Jse=oi(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"),ele=oi(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 l6({name:e="password",label:t="Password",defaultValue:r,isRequired:n}){const[i,a]=V.useState(!1),o=()=>a(!i);return N.jsxs(tI,{variant:"outlined",children:[N.jsx(jx,{htmlFor:`${t}-${e}-field`,children:t}),N.jsx(Ux,{defaultValue:r,endAdornment:N.jsx(sae,{position:"end",children:N.jsx(Ws,{edge:"end",onClick:o,children:i?N.jsx(ele,{}):N.jsx(Jse,{})})}),id:`${t}-${e}-field`,label:t,name:e,required:n,type:i?"text":"password"})]})}function oI({label:e,name:t,options:r,multiple:n=!1,defaultValue:i,size:a="medium",sx:o,...s}){return N.jsxs(tI,{size:a,sx:o,children:[N.jsx(jx,{htmlFor:t,shrink:!0,children:e}),N.jsx(aI,{...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 tle(e,t){const r={};return(e[e.length-1]===""?[...e,""]:e).join((r.padRight?" ":"")+","+(r.padLeft===!1?"":" ")).trim()}const rle=/[ \t\n\f\r]/g;function nle(e){return typeof e=="object"?e.type==="text"?aO(e.value):!1:aO(e)}function aO(e){return e.replace(rle,"")===""}class Dg{constructor(t,r,n){this.property=t,this.normal=r,n&&(this.space=n)}}Dg.prototype.property={};Dg.prototype.normal={};Dg.prototype.space=null;function u6(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 Dg(r,n,t)}function s2(e){return e.toLowerCase()}class ka{constructor(t,r){this.property=t,this.attribute=r}}ka.prototype.space=null;ka.prototype.boolean=!1;ka.prototype.booleanish=!1;ka.prototype.overloadedBoolean=!1;ka.prototype.number=!1;ka.prototype.commaSeparated=!1;ka.prototype.spaceSeparated=!1;ka.prototype.commaOrSpaceSeparated=!1;ka.prototype.mustUseProperty=!1;ka.prototype.defined=!1;let ile=0;const Nt=jc(),Xr=jc(),c6=jc(),Le=jc(),br=jc(),vd=jc(),zi=jc();function jc(){return 2**++ile}const l2=Object.freeze(Object.defineProperty({__proto__:null,boolean:Nt,booleanish:Xr,commaOrSpaceSeparated:zi,commaSeparated:vd,number:Le,overloadedBoolean:c6,spaceSeparated:br},Symbol.toStringTag,{value:"Module"})),Z_=Object.keys(l2);class sI extends ka{constructor(t,r,n,i){let a=-1;if(super(t,r),oO(this,"space",i),typeof n=="number")for(;++a<Z_.length;){const o=Z_[a];oO(this,Z_[a],(n&l2[o])===l2[o])}}}sI.prototype.defined=!0;function oO(e,t,r){r&&(e[t]=r)}const ale={}.hasOwnProperty;function Ud(e){const t={},r={};let n;for(n in e.properties)if(ale.call(e.properties,n)){const i=e.properties[n],a=new sI(n,e.transform(e.attributes||{},n),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(n)&&(a.mustUseProperty=!0),t[n]=a,r[s2(n)]=n,r[s2(a.attribute)]=n}return new Dg(t,r,e.space)}const f6=Ud({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}}),d6=Ud({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function p6(e,t){return t in e?e[t]:t}function h6(e,t){return p6(e,t.toLowerCase())}const v6=Ud({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:h6,properties:{xmlns:null,xmlnsXLink:null}}),g6=Ud({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Xr,ariaAutoComplete:null,ariaBusy:Xr,ariaChecked:Xr,ariaColCount:Le,ariaColIndex:Le,ariaColSpan:Le,ariaControls:br,ariaCurrent:null,ariaDescribedBy:br,ariaDetails:null,ariaDisabled:Xr,ariaDropEffect:br,ariaErrorMessage:null,ariaExpanded:Xr,ariaFlowTo:br,ariaGrabbed:Xr,ariaHasPopup:null,ariaHidden:Xr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:br,ariaLevel:Le,ariaLive:null,ariaModal:Xr,ariaMultiLine:Xr,ariaMultiSelectable:Xr,ariaOrientation:null,ariaOwns:br,ariaPlaceholder:null,ariaPosInSet:Le,ariaPressed:Xr,ariaReadOnly:Xr,ariaRelevant:null,ariaRequired:Xr,ariaRoleDescription:br,ariaRowCount:Le,ariaRowIndex:Le,ariaRowSpan:Le,ariaSelected:Xr,ariaSetSize:Le,ariaSort:null,ariaValueMax:Le,ariaValueMin:Le,ariaValueNow:Le,ariaValueText:null,role:null}}),ole=Ud({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:h6,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:vd,acceptCharset:br,accessKey:br,action:null,allow:null,allowFullScreen:Nt,allowPaymentRequest:Nt,allowUserMedia:Nt,alt:null,as:null,async:Nt,autoCapitalize:null,autoComplete:br,autoFocus:Nt,autoPlay:Nt,blocking:br,capture:Nt,charSet:null,checked:Nt,cite:null,className:br,cols:Le,colSpan:null,content:null,contentEditable:Xr,controls:Nt,controlsList:br,coords:Le|vd,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Nt,defer:Nt,dir:null,dirName:null,disabled:Nt,download:c6,draggable:Xr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Nt,formTarget:null,headers:br,height:Le,hidden:Nt,high:Le,href:null,hrefLang:null,htmlFor:br,httpEquiv:br,id:null,imageSizes:null,imageSrcSet:null,inert:Nt,inputMode:null,integrity:null,is:null,isMap:Nt,itemId:null,itemProp:br,itemRef:br,itemScope:Nt,itemType:br,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Nt,low:Le,manifest:null,max:null,maxLength:Le,media:null,method:null,min:null,minLength:Le,multiple:Nt,muted:Nt,name:null,nonce:null,noModule:Nt,noValidate:Nt,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:Nt,optimum:Le,pattern:null,ping:br,placeholder:null,playsInline:Nt,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Nt,referrerPolicy:null,rel:br,required:Nt,reversed:Nt,rows:Le,rowSpan:Le,sandbox:br,scope:null,scoped:Nt,seamless:Nt,selected:Nt,shape:null,size:Le,sizes:null,slot:null,span:Le,spellCheck:Xr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Le,step:null,style:null,tabIndex:Le,target:null,title:null,translate:null,type:null,typeMustMatch:Nt,useMap:null,value:Xr,width:Le,wrap:null,align:null,aLink:null,archive:br,axis:null,background:null,bgColor:null,border:Le,borderColor:null,bottomMargin:Le,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Nt,declare:Nt,event:null,face:null,frame:null,frameBorder:null,hSpace:Le,leftMargin:Le,link:null,longDesc:null,lowSrc:null,marginHeight:Le,marginWidth:Le,noResize:Nt,noHref:Nt,noShade:Nt,noWrap:Nt,object:null,profile:null,prompt:null,rev:null,rightMargin:Le,rules:null,scheme:null,scrolling:Xr,standby:null,summary:null,text:null,topMargin:Le,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Le,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Nt,disableRemotePlayback:Nt,prefix:null,property:null,results:Le,security:null,unselectable:null}}),sle=Ud({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:p6,properties:{about:zi,accentHeight:Le,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Le,amplitude:Le,arabicForm:null,ascent:Le,attributeName:null,attributeType:null,azimuth:Le,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Le,by:null,calcMode:null,capHeight:Le,className:br,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:Le,diffuseConstant:Le,direction:null,display:null,dur:null,divisor:Le,dominantBaseline:null,download:Nt,dx:null,dy:null,edgeMode:null,editable:null,elevation:Le,enableBackground:null,end:null,event:null,exponent:Le,externalResourcesRequired:null,fill:null,fillOpacity:Le,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:vd,g2:vd,glyphName:vd,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Le,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Le,horizOriginX:Le,horizOriginY:Le,id:null,ideographic:Le,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Le,k:Le,k1:Le,k2:Le,k3:Le,k4:Le,kernelMatrix:zi,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Le,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:Le,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:Le,overlineThickness:Le,paintOrder:null,panose1:null,path:null,pathLength:Le,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:br,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Le,pointsAtY:Le,pointsAtZ:Le,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:zi,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:zi,rev:zi,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:zi,requiredFeatures:zi,requiredFonts:zi,requiredFormats:zi,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:Le,specularExponent:Le,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Le,strikethroughThickness:Le,string:null,stroke:null,strokeDashArray:zi,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Le,strokeOpacity:Le,strokeWidth:null,style:null,surfaceScale:Le,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:zi,tabIndex:Le,tableValues:null,target:null,targetX:Le,targetY:Le,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:zi,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Le,underlineThickness:Le,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Le,values:null,vAlphabetic:Le,vMathematical:Le,vectorEffect:null,vHanging:Le,vIdeographic:Le,version:null,vertAdvY:Le,vertOriginX:Le,vertOriginY:Le,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Le,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),lle=/^data[-\w.:]+$/i,sO=/-[a-z]/g,ule=/[A-Z]/g;function cle(e,t){const r=s2(t);let n=t,i=ka;if(r in e.normal)return e.property[e.normal[r]];if(r.length>4&&r.slice(0,4)==="data"&&lle.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(sO,dle);n="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!sO.test(a)){let o=a.replace(ule,fle);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}i=sI}return new i(n,t)}function fle(e){return"-"+e.toLowerCase()}function dle(e){return e.charAt(1).toUpperCase()}const ple={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"},hle=u6([d6,f6,v6,g6,ole],"html"),m6=u6([d6,f6,v6,g6,sle],"svg");function vle(e){return e.join(" ").trim()}var _y={exports:{}},K_,lO;function gle(){if(lO)return K_;lO=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",p="declaration";K_=function(g,y){if(typeof g!="string")throw new TypeError("First argument must be a string");if(!g)return[];y=y||{};var x=1,b=1;function S(E){var z=E.match(t);z&&(x+=z.length);var B=E.lastIndexOf(l);b=~B?E.length-B:b+E.length}function w(){var E={line:x,column:b};return function(z){return z.position=new T(E),I(),z}}function T(E){this.start=E,this.end={line:x,column:b},this.source=y.source}T.prototype.content=g;function C(E){var z=new Error(y.source+":"+x+":"+b+": "+E);if(z.reason=E,z.filename=y.source,z.line=x,z.column=b,z.source=g,!y.silent)throw z}function A(E){var z=E.exec(g);if(z){var B=z[0];return S(B),g=g.slice(B.length),z}}function I(){A(r)}function k(E){var z;for(E=E||[];z=P();)z!==!1&&E.push(z);return E}function P(){var E=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 B=g.slice(2,z-2);return b+=2,S(B),g=g.slice(z),b+=2,E({type:d,comment:B})}}function R(){var E=w(),z=A(n);if(z){if(P(),!A(i))return C("property missing ':'");var B=A(a),W=E({type:p,property:v(z[0].replace(e,f)),value:B?v(B[0].replace(e,f)):f});return A(o),W}}function O(){var E=[];k(E);for(var z;z=R();)z!==!1&&(E.push(z),k(E));return E}return I(),O()};function v(g){return g?g.replace(s,f):f}return K_}var uO;function mle(){if(uO)return _y.exports;uO=1;var e=gle();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 _y.exports=t,_y.exports.default=t,_y.exports}var yle=mle();const xle=Xi(yle),y6=x6("end"),lI=x6("start");function x6(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 ble(e){const t=lI(e),r=y6(e);if(t&&r)return{start:t,end:r}}function fv(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?cO(e.position):"start"in e||"end"in e?cO(e):"line"in e||"column"in e?u2(e):""}function u2(e){return fO(e&&e.line)+":"+fO(e&&e.column)}function cO(e){return u2(e&&e.start)+"-"+u2(e&&e.end)}function fO(e){return e&&typeof e=="number"?e:1}class si 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=fv(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}}si.prototype.file="";si.prototype.name="";si.prototype.reason="";si.prototype.message="";si.prototype.stack="";si.prototype.column=void 0;si.prototype.line=void 0;si.prototype.ancestors=void 0;si.prototype.cause=void 0;si.prototype.fatal=void 0;si.prototype.place=void 0;si.prototype.ruleId=void 0;si.prototype.source=void 0;const uI={}.hasOwnProperty,Sle=new Map,_le=/[A-Z]/g,wle=/-([a-z])/g,Cle=new Set(["table","tbody","thead","tfoot","tr"]),Tle=new Set(["td","th"]);function Ale(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=Ile(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=Mle(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"?m6:hle,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=b6(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function b6(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=m6,e.schema=i),e.ancestors.push(t);let a=kle(e,t);const o=Ple(e,e.ancestors);let s=e.Fragment;if(e.ancestors.pop(),t.type==="element")if(a&&Cle.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!nle(l):!0})),uI.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 Mle(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 Ile(e,t){return r;function r(n,i,a,o){const s=Array.isArray(a.children),l=lI(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 kle(e,t){const r=[];let n=-1;const i=e.passKeys?new Map:Sle;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=b6(e,a,o);s!==void 0&&r.push(s)}return r}function Ple(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"&&uI.call(r.properties,i)){const o=Dle(e,t,i,r.properties[i]);if(o){const[s,l]=o;e.tableCellAlignToStyle&&s==="align"&&typeof l=="string"&&Tle.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 Dle(e,t,r,n){const i=cle(e.schema,r);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?tle(n):vle(n)),i.property==="style"){let a=typeof n=="object"?n:Rle(e,t,String(n));return e.stylePropertyNameCase==="css"&&(a=Lle(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&i.space?ple[i.property]||i.property:i.attribute,n]}}function Rle(e,t,r){const n={};try{xle(r,i)}catch(a){if(!e.ignoreInvalidStyle){const o=a,s=new si("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(wle,Ole)),n[s]=o}}function Lle(e){const t={};let r;for(r in e)uI.call(e,r)&&(t[Ele(r)]=e[r]);return t}function Ele(e){let t=e.replace(_le,Nle);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Ole(e,t){return t.toUpperCase()}function Nle(e){return"-"+e.toLowerCase()}const Q_={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"]},zle={};function Ble(e,t){const r=zle,n=typeof r.includeImageAlt=="boolean"?r.includeImageAlt:!0,i=typeof r.includeHtml=="boolean"?r.includeHtml:!0;return S6(e,n,i)}function S6(e,t,r){if(Fle(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 dO(e.children,t,r)}return Array.isArray(e)?dO(e,t,r):""}function dO(e,t,r){const n=[];let i=-1;for(;++i<e.length;)n[i]=S6(e[i],t,r);return n.join("")}function Fle(e){return!!(e&&typeof e=="object")}const pO=document.createElement("i");function cI(e){const t="&"+e+";";pO.innerHTML=t;const r=pO.textContent;return r.charCodeAt(r.length-1)===59&&e!=="semi"||r===t?!1:r}function qo(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 ga(e,t){return e.length>0?(qo(e,e.length,0,t),e):t}const hO={}.hasOwnProperty;function $le(e){const t={};let r=-1;for(;++r<e.length;)Vle(t,e[r]);return t}function Vle(e,t){let r;for(r in t){const i=(hO.call(e,r)?e[r]:void 0)||(e[r]={}),a=t[r];let o;if(a)for(o in a){hO.call(i,o)||(i[o]=[]);const s=a[o];Hle(i[o],Array.isArray(s)?s:s?[s]:[])}}}function Hle(e,t){let r=-1;const n=[];for(;++r<t.length;)(t[r].add==="after"?e:n).push(t[r]);qo(e,0,0,n)}function _6(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 gd(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Gle=au(new RegExp("\\p{P}","u")),Do=au(/[A-Za-z]/),Vi=au(/[\dA-Za-z]/),Wle=au(/[#-'*+\--9=?A-Z^-~]/);function c2(e){return e!==null&&(e<32||e===127)}const f2=au(/\d/),jle=au(/[\dA-Fa-f]/),w6=au(/[!-/:-@[-`{-~]/);function At(e){return e!==null&&e<-2}function Mi(e){return e!==null&&(e<0||e===32)}function sr(e){return e===-2||e===-1||e===32}function Ule(e){return w6(e)||Gle(e)}const Yle=au(/\s/);function au(e){return t;function t(r){return r!==null&&r>-1&&e.test(String.fromCharCode(r))}}function Yd(e){const t=[];let r=-1,n=0,i=0;for(;++r<e.length;){const a=e.charCodeAt(r);let o="";if(a===37&&Vi(e.charCodeAt(r+1))&&Vi(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 Sr(e,t,r,n){const i=n?n-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(l){return sr(l)?(e.enter(r),s(l)):t(l)}function s(l){return sr(l)&&a++<i?(e.consume(l),s):(e.exit(r),t(l))}}const qle={tokenize:Xle};function Xle(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"),Sr(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 At(s)?(e.consume(s),e.exit("chunkText"),a):(e.consume(s),o)}}const Zle={tokenize:Kle},vO={tokenize:Qle};function Kle(e){const t=this,r=[];let n=0,i,a,o;return s;function s(S){if(n<r.length){const w=r[n];return t.containerState=w[1],e.attempt(w[0].continuation,l,u)(S)}return u(S)}function l(S){if(n++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&b();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 qo(t.events,T+1,0,t.events.slice(w)),t.events.length=A,u(S)}return s(S)}function u(S){if(n===r.length){if(!i)return d(S);if(i.currentConstruct&&i.currentConstruct.concrete)return v(S);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(vO,c,f)(S)}function c(S){return i&&b(),x(n),d(S)}function f(S){return t.parser.lazy[t.now().line]=n!==r.length,o=t.now().offset,v(S)}function d(S){return t.containerState={},e.attempt(vO,p,v)(S)}function p(S){return n++,r.push([t.currentConstruct,t.containerState]),d(S)}function v(S){if(S===null){i&&b(),x(0),e.consume(S);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{contentType:"flow",previous:a,_tokenizer:i}),g(S)}function g(S){if(S===null){y(e.exit("chunkFlow"),!0),x(0),e.consume(S);return}return At(S)?(e.consume(S),y(e.exit("chunkFlow")),n=0,t.interrupt=void 0,s):(e.consume(S),g)}function y(S,w){const T=t.sliceStream(S);if(w&&T.push(null),S.previous=a,a&&(a.next=S),a=S,i.defineSkip(S.start),i.write(T),t.parser.lazy[S.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 I=A,k,P;for(;I--;)if(t.events[I][0]==="exit"&&t.events[I][1].type==="chunkFlow"){if(k){P=t.events[I][1].end;break}k=!0}for(x(n),C=A;C<t.events.length;)t.events[C][1].end=Object.assign({},P),C++;qo(t.events,I+1,0,t.events.slice(A)),t.events.length=C}}function x(S){let w=r.length;for(;w-- >S;){const T=r[w];t.containerState=T[1],T[0].exit.call(t,e)}r.length=S}function b(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Qle(e,t,r){return Sr(e,e.attempt(this.parser.constructs.document,t,r),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function gO(e){if(e===null||Mi(e)||Yle(e))return 1;if(Ule(e))return 2}function fI(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 d2={name:"attention",tokenize:eue,resolveAll:Jle};function Jle(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);mO(f,-l),mO(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=ga(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=ga(u,[["enter",i,t],["enter",o,t],["exit",o,t],["enter",a,t]]),u=ga(u,fI(t.parser.constructs.insideSpan.null,e.slice(n+1,r),t)),u=ga(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=ga(u,[["enter",e[r][1],t],["exit",e[r][1],t]])):c=0,qo(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 eue(e,t){const r=this.parser.constructs.attentionMarkers.null,n=this.previous,i=gO(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=gO(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 mO(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const tue={name:"autolink",tokenize:rue};function rue(e,t,r){let n=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a}function a(p){return Do(p)?(e.consume(p),o):u(p)}function o(p){return p===43||p===45||p===46||Vi(p)?(n=1,s(p)):u(p)}function s(p){return p===58?(e.consume(p),n=0,l):(p===43||p===45||p===46||Vi(p))&&n++<32?(e.consume(p),s):(n=0,u(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||c2(p)?r(p):(e.consume(p),l)}function u(p){return p===64?(e.consume(p),c):Wle(p)?(e.consume(p),u):r(p)}function c(p){return Vi(p)?f(p):r(p)}function f(p){return p===46?(e.consume(p),n=0,c):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):d(p)}function d(p){if((p===45||Vi(p))&&n++<63){const v=p===45?d:f;return e.consume(p),v}return r(p)}}const qx={tokenize:nue,partial:!0};function nue(e,t,r){return n;function n(a){return sr(a)?Sr(e,i,"linePrefix")(a):i(a)}function i(a){return a===null||At(a)?t(a):r(a)}}const C6={name:"blockQuote",tokenize:iue,continuation:{tokenize:aue},exit:oue};function iue(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 sr(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function aue(e,t,r){const n=this;return i;function i(o){return sr(o)?Sr(e,a,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):a(o)}function a(o){return e.attempt(C6,t,r)(o)}}function oue(e){e.exit("blockQuote")}const T6={name:"characterEscape",tokenize:sue};function sue(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 w6(a)?(e.enter("characterEscapeValue"),e.consume(a),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):r(a)}}const A6={name:"characterReference",tokenize:lue};function lue(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=Vi,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=jle,c):(e.enter("characterReferenceValue"),a=7,o=f2,c(f))}function c(f){if(f===59&&i){const d=e.exit("characterReferenceValue");return o===Vi&&!cI(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 yO={tokenize:cue,partial:!0},xO={name:"codeFenced",tokenize:uue,concrete:!0};function uue(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"),sr(C)?Sr(e,f,"whitespace")(C):f(C))}function f(C){return C===null||At(C)?(e.exit("codeFencedFence"),n.interrupt?t(C):e.check(yO,g,w)(C)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(C))}function d(C){return C===null||At(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(C)):sr(C)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Sr(e,p,"whitespace")(C)):C===96&&C===s?r(C):(e.consume(C),d)}function p(C){return C===null||At(C)?f(C):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),v(C))}function v(C){return C===null||At(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&&sr(C)?Sr(e,b,"linePrefix",a+1)(C):b(C)}function b(C){return C===null||At(C)?e.check(yO,g,w)(C):(e.enter("codeFlowValue"),S(C))}function S(C){return C===null||At(C)?(e.exit("codeFlowValue"),b(C)):(e.consume(C),S)}function w(C){return e.exit("codeFenced"),t(C)}function T(C,A,I){let k=0;return P;function P(B){return C.enter("lineEnding"),C.consume(B),C.exit("lineEnding"),R}function R(B){return C.enter("codeFencedFence"),sr(B)?Sr(C,O,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):O(B)}function O(B){return B===s?(C.enter("codeFencedFenceSequence"),E(B)):I(B)}function E(B){return B===s?(k++,C.consume(B),E):k>=o?(C.exit("codeFencedFenceSequence"),sr(B)?Sr(C,z,"whitespace")(B):z(B)):I(B)}function z(B){return B===null||At(B)?(C.exit("codeFencedFence"),A(B)):I(B)}}}function cue(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 J_={name:"codeIndented",tokenize:due},fue={tokenize:pue,partial:!0};function due(e,t,r){const n=this;return i;function i(u){return e.enter("codeIndented"),Sr(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):At(u)?e.attempt(fue,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||At(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function pue(e,t,r){const n=this;return i;function i(o){return n.parser.lazy[n.now().line]?r(o):At(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):Sr(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):At(o)?i(o):r(o)}}const hue={name:"codeText",tokenize:mue,resolve:vue,previous:gue};function vue(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 gue(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function mue(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)):At(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||At(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,yue(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),qo(e,i,r-i+1,s))}}return!u}function yue(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,p=r,v=0,g=0;const y=[g];for(;p;){for(;e[++i][1]!==p;);a.push(i),p._tokenizer||(c=n.sliceStream(p),p.next||c.push(null),f&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=p,p=p.next}for(p=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),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):y.pop(),d=y.length;d--;){const x=s.slice(y[d],y[d+1]),b=a.pop();l.unshift([b,b+x.length-1]),qo(e,b,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 xue={tokenize:_ue,resolve:Sue},bue={tokenize:wue,partial:!0};function Sue(e){return M6(e),e}function _ue(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):At(s)?e.check(bue,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 wue(e,t,r){const n=this;return i;function i(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Sr(e,a,"linePrefix")}function a(o){if(o===null||At(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 I6(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||c2(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"}),p(x))}function p(x){return x===62?(e.exit("chunkString"),e.exit(s),d(x)):x===null||x===60||At(x)?r(x):(e.consume(x),x===92?v:p)}function v(x){return x===60||x===62||x===92?(e.consume(x),p):p(x)}function g(x){return!c&&(x===null||x===41||Mi(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||c2(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 k6(e,t,r,n,i,a){const o=this;let s=0,l;return u;function u(p){return e.enter(n),e.enter(i),e.consume(p),e.exit(i),e.enter(a),c}function c(p){return s>999||p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?r(p):p===93?(e.exit(a),e.enter(i),e.consume(p),e.exit(i),e.exit(n),t):At(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(p))}function f(p){return p===null||p===91||p===93||At(p)||s++>999?(e.exit("chunkString"),c(p)):(e.consume(p),l||(l=!sr(p)),p===92?d:f)}function d(p){return p===91||p===92||p===93?(e.consume(p),s++,f):f(p)}}function P6(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):At(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Sr(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(d))}function c(d){return d===o||d===null||At(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 dv(e,t){let r;return n;function n(i){return At(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),r=!0,n):sr(i)?Sr(e,n,r?"linePrefix":"lineSuffix")(i):t(i)}}const Cue={name:"definition",tokenize:Aue},Tue={tokenize:Mue,partial:!0};function Aue(e,t,r){const n=this;let i;return a;function a(p){return e.enter("definition"),o(p)}function o(p){return k6.call(n,e,s,r,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=gd(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):r(p)}function l(p){return Mi(p)?dv(e,u)(p):u(p)}function u(p){return I6(e,c,r,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function c(p){return e.attempt(Tue,f,f)(p)}function f(p){return sr(p)?Sr(e,d,"whitespace")(p):d(p)}function d(p){return p===null||At(p)?(e.exit("definition"),n.parser.defined.push(i),t(p)):r(p)}}function Mue(e,t,r){return n;function n(s){return Mi(s)?dv(e,i)(s):r(s)}function i(s){return P6(e,a,r,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function a(s){return sr(s)?Sr(e,o,"whitespace")(s):o(s)}function o(s){return s===null||At(s)?t(s):r(s)}}const Iue={name:"hardBreakEscape",tokenize:kue};function kue(e,t,r){return n;function n(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return At(a)?(e.exit("hardBreakEscape"),t(a)):r(a)}}const Pue={name:"headingAtx",tokenize:Rue,resolve:Due};function Due(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"},qo(e,n,r-n+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function Rue(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||Mi(c)?(e.exit("atxHeadingSequence"),s(c)):r(c)}function s(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||At(c)?(e.exit("atxHeading"),t(c)):sr(c)?Sr(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||Mi(c)?(e.exit("atxHeadingText"),s(c)):(e.consume(c),u)}}const Lue=["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"],bO=["pre","script","style","textarea"],Eue={name:"htmlFlow",tokenize:Bue,resolveTo:zue,concrete:!0},Oue={tokenize:$ue,partial:!0},Nue={tokenize:Fue,partial:!0};function zue(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 Bue(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:F):Do(j)?(e.consume(j),o=String.fromCharCode(j),y):r(j)}function d(j){return j===45?(e.consume(j),i=2,p):j===91?(e.consume(j),i=5,s=0,v):Do(j)?(e.consume(j),i=4,n.interrupt?t:F):r(j)}function p(j){return j===45?(e.consume(j),n.interrupt?t:F):r(j)}function v(j){const te="CDATA[";return j===te.charCodeAt(s++)?(e.consume(j),s===te.length?n.interrupt?t:O:v):r(j)}function g(j){return Do(j)?(e.consume(j),o=String.fromCharCode(j),y):r(j)}function y(j){if(j===null||j===47||j===62||Mi(j)){const te=j===47,fe=o.toLowerCase();return!te&&!a&&bO.includes(fe)?(i=1,n.interrupt?t(j):O(j)):Lue.includes(o.toLowerCase())?(i=6,te?(e.consume(j),x):n.interrupt?t(j):O(j)):(i=7,n.interrupt&&!n.parser.lazy[n.now().line]?r(j):a?b(j):S(j))}return j===45||Vi(j)?(e.consume(j),o+=String.fromCharCode(j),y):r(j)}function x(j){return j===62?(e.consume(j),n.interrupt?t:O):r(j)}function b(j){return sr(j)?(e.consume(j),b):P(j)}function S(j){return j===47?(e.consume(j),P):j===58||j===95||Do(j)?(e.consume(j),w):sr(j)?(e.consume(j),S):P(j)}function w(j){return j===45||j===46||j===58||j===95||Vi(j)?(e.consume(j),w):T(j)}function T(j){return j===61?(e.consume(j),C):sr(j)?(e.consume(j),T):S(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):sr(j)?(e.consume(j),C):I(j)}function A(j){return j===l?(e.consume(j),l=null,k):j===null||At(j)?r(j):(e.consume(j),A)}function I(j){return j===null||j===34||j===39||j===47||j===60||j===61||j===62||j===96||Mi(j)?T(j):(e.consume(j),I)}function k(j){return j===47||j===62||sr(j)?S(j):r(j)}function P(j){return j===62?(e.consume(j),R):r(j)}function R(j){return j===null||At(j)?O(j):sr(j)?(e.consume(j),R):r(j)}function O(j){return j===45&&i===2?(e.consume(j),W):j===60&&i===1?(e.consume(j),X):j===62&&i===4?(e.consume(j),Y):j===63&&i===3?(e.consume(j),F):j===93&&i===5?(e.consume(j),q):At(j)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Oue,Z,E)(j)):j===null||At(j)?(e.exit("htmlFlowData"),E(j)):(e.consume(j),O)}function E(j){return e.check(Nue,z,Z)(j)}function z(j){return e.enter("lineEnding"),e.consume(j),e.exit("lineEnding"),B}function B(j){return j===null||At(j)?E(j):(e.enter("htmlFlowData"),O(j))}function W(j){return j===45?(e.consume(j),F):O(j)}function X(j){return j===47?(e.consume(j),o="",H):O(j)}function H(j){if(j===62){const te=o.toLowerCase();return bO.includes(te)?(e.consume(j),Y):O(j)}return Do(j)&&o.length<8?(e.consume(j),o+=String.fromCharCode(j),H):O(j)}function q(j){return j===93?(e.consume(j),F):O(j)}function F(j){return j===62?(e.consume(j),Y):j===45&&i===2?(e.consume(j),F):O(j)}function Y(j){return j===null||At(j)?(e.exit("htmlFlowData"),Z(j)):(e.consume(j),Y)}function Z(j){return e.exit("htmlFlow"),t(j)}}function Fue(e,t,r){const n=this;return i;function i(o){return At(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 $ue(e,t,r){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(qx,t,r)}}const Vue={name:"htmlText",tokenize:Hue};function Hue(e,t,r){const n=this;let i,a,o;return s;function s(F){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(F),l}function l(F){return F===33?(e.consume(F),u):F===47?(e.consume(F),T):F===63?(e.consume(F),S):Do(F)?(e.consume(F),I):r(F)}function u(F){return F===45?(e.consume(F),c):F===91?(e.consume(F),a=0,v):Do(F)?(e.consume(F),b):r(F)}function c(F){return F===45?(e.consume(F),p):r(F)}function f(F){return F===null?r(F):F===45?(e.consume(F),d):At(F)?(o=f,X(F)):(e.consume(F),f)}function d(F){return F===45?(e.consume(F),p):f(F)}function p(F){return F===62?W(F):F===45?d(F):f(F)}function v(F){const Y="CDATA[";return F===Y.charCodeAt(a++)?(e.consume(F),a===Y.length?g:v):r(F)}function g(F){return F===null?r(F):F===93?(e.consume(F),y):At(F)?(o=g,X(F)):(e.consume(F),g)}function y(F){return F===93?(e.consume(F),x):g(F)}function x(F){return F===62?W(F):F===93?(e.consume(F),x):g(F)}function b(F){return F===null||F===62?W(F):At(F)?(o=b,X(F)):(e.consume(F),b)}function S(F){return F===null?r(F):F===63?(e.consume(F),w):At(F)?(o=S,X(F)):(e.consume(F),S)}function w(F){return F===62?W(F):S(F)}function T(F){return Do(F)?(e.consume(F),C):r(F)}function C(F){return F===45||Vi(F)?(e.consume(F),C):A(F)}function A(F){return At(F)?(o=A,X(F)):sr(F)?(e.consume(F),A):W(F)}function I(F){return F===45||Vi(F)?(e.consume(F),I):F===47||F===62||Mi(F)?k(F):r(F)}function k(F){return F===47?(e.consume(F),W):F===58||F===95||Do(F)?(e.consume(F),P):At(F)?(o=k,X(F)):sr(F)?(e.consume(F),k):W(F)}function P(F){return F===45||F===46||F===58||F===95||Vi(F)?(e.consume(F),P):R(F)}function R(F){return F===61?(e.consume(F),O):At(F)?(o=R,X(F)):sr(F)?(e.consume(F),R):k(F)}function O(F){return F===null||F===60||F===61||F===62||F===96?r(F):F===34||F===39?(e.consume(F),i=F,E):At(F)?(o=O,X(F)):sr(F)?(e.consume(F),O):(e.consume(F),z)}function E(F){return F===i?(e.consume(F),i=void 0,B):F===null?r(F):At(F)?(o=E,X(F)):(e.consume(F),E)}function z(F){return F===null||F===34||F===39||F===60||F===61||F===96?r(F):F===47||F===62||Mi(F)?k(F):(e.consume(F),z)}function B(F){return F===47||F===62||Mi(F)?k(F):r(F)}function W(F){return F===62?(e.consume(F),e.exit("htmlTextData"),e.exit("htmlText"),t):r(F)}function X(F){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),H}function H(F){return sr(F)?Sr(e,q,"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):q(F)}function q(F){return e.enter("htmlTextData"),o(F)}}const dI={name:"labelEnd",tokenize:que,resolveTo:Yue,resolveAll:Uue},Gue={tokenize:Xue},Wue={tokenize:Zue},jue={tokenize:Kue};function Uue(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 Yue(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=ga(s,e.slice(a+1,a+n+3)),s=ga(s,[["enter",c,t]]),s=ga(s,fI(t.parser.constructs.insideSpan.null,e.slice(a+n+4,o-3),t)),s=ga(s,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),s=ga(s,e.slice(o+1)),s=ga(s,[["exit",l,t]]),qo(e,a,e.length,s),e}function que(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(gd(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(Gue,c,o?c:f)(d):d===91?e.attempt(Wue,c,o?u:f)(d):o?c(d):f(d)}function u(d){return e.attempt(jue,c,f)(d)}function c(d){return t(d)}function f(d){return a._balanced=!0,r(d)}}function Xue(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 Mi(f)?dv(e,a)(f):a(f)}function a(f){return f===41?c(f):I6(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return Mi(f)?dv(e,l)(f):c(f)}function s(f){return r(f)}function l(f){return f===34||f===39||f===40?P6(e,u,r,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return Mi(f)?dv(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 Zue(e,t,r){const n=this;return i;function i(s){return k6.call(n,e,a,o,"reference","referenceMarker","referenceString")(s)}function a(s){return n.parser.defined.includes(gd(n.sliceSerialize(n.events[n.events.length-1][1]).slice(1,-1)))?t(s):r(s)}function o(s){return r(s)}}function Kue(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 Que={name:"labelStartImage",tokenize:Jue,resolveAll:dI.resolveAll};function Jue(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 ece={name:"labelStartLink",tokenize:tce,resolveAll:dI.resolveAll};function tce(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 ew={name:"lineEnding",tokenize:rce};function rce(e,t){return r;function r(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),Sr(e,t,"linePrefix")}}const O0={name:"thematicBreak",tokenize:nce};function nce(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||At(u))?(e.exit("thematicBreak"),t(u)):r(u)}function l(u){return u===i?(e.consume(u),n++,l):(e.exit("thematicBreakSequence"),sr(u)?Sr(e,s,"whitespace")(u):s(u))}}const xi={name:"list",tokenize:oce,continuation:{tokenize:sce},exit:uce},ice={tokenize:cce,partial:!0},ace={tokenize:lce,partial:!0};function oce(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(p){const v=n.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(v==="listUnordered"?!n.containerState.marker||p===n.containerState.marker:f2(p)){if(n.containerState.type||(n.containerState.type=v,e.enter(v,{_container:!0})),v==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(O0,r,u)(p):u(p);if(!n.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return r(p)}function l(p){return f2(p)&&++o<10?(e.consume(p),l):(!n.interrupt||o<2)&&(n.containerState.marker?p===n.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):r(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),n.containerState.marker=n.containerState.marker||p,e.check(qx,n.interrupt?r:c,e.attempt(ice,d,f))}function c(p){return n.containerState.initialBlankLine=!0,a++,d(p)}function f(p){return sr(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):r(p)}function d(p){return n.containerState.size=a+n.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function sce(e,t,r){const n=this;return n.containerState._closeFlow=void 0,e.check(qx,i,a);function i(s){return n.containerState.furtherBlankLines=n.containerState.furtherBlankLines||n.containerState.initialBlankLine,Sr(e,t,"listItemIndent",n.containerState.size+1)(s)}function a(s){return n.containerState.furtherBlankLines||!sr(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(ace,t,o)(s))}function o(s){return n.containerState._closeFlow=!0,n.interrupt=void 0,Sr(e,e.attempt(xi,t,r),"linePrefix",n.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function lce(e,t,r){const n=this;return Sr(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 uce(e){e.exit(this.containerState.type)}function cce(e,t,r){const n=this;return Sr(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!sr(a)&&o&&o[1].type==="listItemPrefixWhitespace"?t(a):r(a)}}const SO={name:"setextUnderline",tokenize:dce,resolveTo:fce};function fce(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 dce(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"),sr(u)?Sr(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||At(u)?(e.exit("setextHeadingLine"),t(u)):r(u)}}const pce={tokenize:hce};function hce(e){const t=this,r=e.attempt(qx,n,e.attempt(this.parser.constructs.flowInitial,i,Sr(e,e.attempt(this.parser.constructs.flow,i,e.attempt(xue,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 vce={resolveAll:R6()},gce=D6("string"),mce=D6("text");function D6(e){return{tokenize:t,resolveAll:R6(e==="text"?yce: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 p=f[d];if(!p.previous||p.previous.call(n,n.previous))return!0}return!1}}}function R6(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 yce(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 xce(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:b,enter:S,exit:w,attempt:A(T),check:A(C),interrupt:A(C,{interrupt:!0})},u={previous:null,code:null,containerState:{},events:[],parser:e,sliceStream:p,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=ga(o,R),y(),o[o.length-1]!==null?[]:(I(t,0),u.events=fI(a,u.events,u),u.events)}function d(R,O){return Sce(p(R),O)}function p(R){return bce(o,R)}function v(){const{line:R,column:O,offset:E,_index:z,_bufferIndex:B}=n;return{line:R,column:O,offset:E,_index:z,_bufferIndex:B}}function g(R){i[R.line]=R.column,P()}function y(){let R;for(;n._index<o.length;){const O=o[n._index];if(typeof O=="string")for(R=n._index,n._bufferIndex<0&&(n._bufferIndex=0);n._index===R&&n._bufferIndex<O.length;)x(O.charCodeAt(n._bufferIndex));else x(O)}}function x(R){c=c(R)}function b(R){At(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 S(R,O){const E=O||{};return E.type=R,E.start=v(),u.events.push(["enter",E,u]),s.push(E),E}function w(R){const O=s.pop();return O.end=v(),u.events.push(["exit",O,u]),O}function T(R,O){I(R,O.from)}function C(R,O){O.restore()}function A(R,O){return E;function E(z,B,W){let X,H,q,F;return Array.isArray(z)?Z(z):"tokenize"in z?Z([z]):Y(z);function Y(re){return ce;function ce(ne){const pe=ne!==null&&re[ne],me=ne!==null&&re.null,le=[...Array.isArray(pe)?pe:pe?[pe]:[],...Array.isArray(me)?me:me?[me]:[]];return Z(le)(ne)}}function Z(re){return X=re,H=0,re.length===0?W:j(re[H])}function j(re){return ce;function ce(ne){return F=k(),q=re,re.partial||(u.currentConstruct=re),re.name&&u.parser.constructs.disable.null.includes(re.name)?fe():re.tokenize.call(O?Object.assign(Object.create(u),O):u,l,te,fe)(ne)}}function te(re){return R(q,F),B}function fe(re){return F.restore(),++H<X.length?j(X[H]):W}}}function I(R,O){R.resolveAll&&!a.includes(R)&&a.push(R),R.resolve&&qo(u.events,O,u.events.length-O,R.resolve(u.events.slice(O),u)),R.resolveTo&&(u.events=R.resolveTo(u.events,u))}function k(){const R=v(),O=u.previous,E=u.currentConstruct,z=u.events.length,B=Array.from(s);return{restore:W,from:z};function W(){n=R,u.previous=O,u.currentConstruct=E,u.events.length=z,s=B,P()}}function P(){n.line in i&&n.column<2&&(n.column=i[n.line],n.offset+=i[n.line]-1)}}function bce(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 Sce(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 _ce={42:xi,43:xi,45:xi,48:xi,49:xi,50:xi,51:xi,52:xi,53:xi,54:xi,55:xi,56:xi,57:xi,62:C6},wce={91:Cue},Cce={[-2]:J_,[-1]:J_,32:J_},Tce={35:Pue,42:O0,45:[SO,O0],60:Eue,61:SO,95:O0,96:xO,126:xO},Ace={38:A6,92:T6},Mce={[-5]:ew,[-4]:ew,[-3]:ew,33:Que,38:A6,42:d2,60:[tue,Vue],91:ece,92:[Iue,T6],93:dI,95:d2,96:hue},Ice={null:[d2,vce]},kce={null:[42,95]},Pce={null:[]},Dce=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:kce,contentInitial:wce,disable:Pce,document:_ce,flow:Tce,flowInitial:Cce,insideSpan:Ice,string:Ace,text:Mce},Symbol.toStringTag,{value:"Module"}));function Rce(e){const r=$le([Dce,...(e||{}).extensions||[]]),n={defined:[],lazy:{},constructs:r,content:i(qle),document:i(Zle),flow:i(pce),string:i(gce),text:i(mce)};return n;function i(a){return o;function o(s){return xce(n,a,s)}}}function Lce(e){for(;!M6(e););return e}const _O=/[\0\t\n\r]/g;function Ece(){let e=1,t="",r=!0,n;return i;function i(a,o,s){const l=[];let u,c,f,d,p;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(_O.lastIndex=f,u=_O.exec(a),d=u&&u.index!==void 0?u.index:a.length,p=a.charCodeAt(d),!u){t=a.slice(f);break}if(p===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),p){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 Oce=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Nce(e){return e.replace(Oce,zce)}function zce(e,t,r){if(t)return t;if(r.charCodeAt(0)===35){const i=r.charCodeAt(1),a=i===120||i===88;return _6(r.slice(a?2:1),a?16:10)}return cI(r)||e}const L6={}.hasOwnProperty;function Bce(e,t,r){return typeof t!="string"&&(r=t,t=void 0),Fce(r)(Lce(Rce(r).document().write(Ece()(e,t,!0))))}function Fce(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(gt),autolinkProtocol:k,autolinkEmail:k,atxHeading:a(Te),blockQuote:a(pe),characterEscape:k,characterReference:k,codeFenced:a(me),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:a(me,o),codeText:a(le,o),codeTextData:k,data:k,codeFlowValue:k,definition:a(Se),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:a(ze),hardBreakEscape:a(ye),hardBreakTrailing:a(ye),htmlFlow:a(ft,o),htmlFlowData:k,htmlText:a(ft,o),htmlTextData:k,image:a(He),label:o,link:a(gt),listItem:a(_t),listItemValue:d,listOrdered:a(xt,f),listUnordered:a(xt),paragraph:a(nt),reference:j,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:a(Te),strong:a(Ft),thematicBreak:a(Rt)},exit:{atxHeading:l(),atxHeadingSequence:T,autolink:l(),autolinkEmail:ne,autolinkProtocol:ce,blockQuote:l(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:fe,characterReferenceMarkerNumeric:fe,characterReferenceValue:re,codeFenced:l(y),codeFencedFence:g,codeFencedFenceInfo:p,codeFencedFenceMeta:v,codeFlowValue:P,codeIndented:l(x),codeText:l(B),codeTextData:P,data:P,definition:l(),definitionDestinationString:w,definitionLabelString:b,definitionTitleString:S,emphasis:l(),hardBreakEscape:l(O),hardBreakTrailing:l(O),htmlFlow:l(E),htmlFlowData:P,htmlText:l(z),htmlTextData:P,image:l(X),label:q,labelText:H,lineEnding:R,link:l(W),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:te,resourceDestinationString:F,resourceTitleString:Y,resource:Z,setextHeading:l(I),setextHeadingLineSequence:A,setextHeadingText:C,strong:l(),thematicBreak:l()}};E6(t,(e||{}).mdastExtensions||[]);const r={};return n;function n(ue){let _e={type:"root",children:[]};const Ve={stack:[_e],tokenStack:[],config:t,enter:s,exit:u,buffer:o,resume:c,data:r},ke=[];let Me=-1;for(;++Me<ue.length;)if(ue[Me][1].type==="listOrdered"||ue[Me][1].type==="listUnordered")if(ue[Me][0]==="enter")ke.push(Me);else{const Mt=ke.pop();Me=i(ue,Mt,Me)}for(Me=-1;++Me<ue.length;){const Mt=t[ue[Me][0]];L6.call(Mt,ue[Me][1].type)&&Mt[ue[Me][1].type].call(Object.assign({sliceSerialize:ue[Me][2].sliceSerialize},Ve),ue[Me][1])}if(Ve.tokenStack.length>0){const Mt=Ve.tokenStack[Ve.tokenStack.length-1];(Mt[1]||wO).call(Ve,void 0,Mt[0])}for(_e.position={start:pl(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:pl(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},Me=-1;++Me<t.transforms.length;)_e=t.transforms[Me](_e)||_e;return _e}function i(ue,_e,Ve){let ke=_e-1,Me=-1,Mt=!1,qt,Ge,ct,It;for(;++ke<=Ve;){const Ee=ue[ke];switch(Ee[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{Ee[0]==="enter"?Me++:Me--,It=void 0;break}case"lineEndingBlank":{Ee[0]==="enter"&&(qt&&!It&&!Me&&!ct&&(ct=ke),It=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:It=void 0}if(!Me&&Ee[0]==="enter"&&Ee[1].type==="listItemPrefix"||Me===-1&&Ee[0]==="exit"&&(Ee[1].type==="listUnordered"||Ee[1].type==="listOrdered")){if(qt){let We=ke;for(Ge=void 0;We--;){const pt=ue[We];if(pt[1].type==="lineEnding"||pt[1].type==="lineEndingBlank"){if(pt[0]==="exit")continue;Ge&&(ue[Ge][1].type="lineEndingBlank",Mt=!0),pt[1].type="lineEnding",Ge=We}else if(!(pt[1].type==="linePrefix"||pt[1].type==="blockQuotePrefix"||pt[1].type==="blockQuotePrefixWhitespace"||pt[1].type==="blockQuoteMarker"||pt[1].type==="listItemIndent"))break}ct&&(!Ge||ct<Ge)&&(qt._spread=!0),qt.end=Object.assign({},Ge?ue[Ge][1].start:Ee[1].end),ue.splice(Ge||ke,0,["exit",qt,Ee[2]]),ke++,Ve++}if(Ee[1].type==="listItemPrefix"){const We={type:"listItem",_spread:!1,start:Object.assign({},Ee[1].start),end:void 0};qt=We,ue.splice(ke,0,["enter",We,Ee[2]]),ke++,Ve++,ct=void 0,It=!0}}}return ue[_e][1]._spread=Mt,Ve}function a(ue,_e){return Ve;function Ve(ke){s.call(this,ue(ke),ke),_e&&_e.call(this,ke)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(ue,_e,Ve){this.stack[this.stack.length-1].children.push(ue),this.stack.push(ue),this.tokenStack.push([_e,Ve]),ue.position={start:pl(_e.start),end:void 0}}function l(ue){return _e;function _e(Ve){ue&&ue.call(this,Ve),u.call(this,Ve)}}function u(ue,_e){const Ve=this.stack.pop(),ke=this.tokenStack.pop();if(ke)ke[0].type!==ue.type&&(_e?_e.call(this,ue,ke[0]):(ke[1]||wO).call(this,ue,ke[0]));else throw new Error("Cannot close `"+ue.type+"` ("+fv({start:ue.start,end:ue.end})+"): it’s not open");Ve.position.end=pl(ue.end)}function c(){return Ble(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function d(ue){if(this.data.expectingFirstListItemValue){const _e=this.stack[this.stack.length-2];_e.start=Number.parseInt(this.sliceSerialize(ue),10),this.data.expectingFirstListItemValue=void 0}}function p(){const ue=this.resume(),_e=this.stack[this.stack.length-1];_e.lang=ue}function v(){const ue=this.resume(),_e=this.stack[this.stack.length-1];_e.meta=ue}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function y(){const ue=this.resume(),_e=this.stack[this.stack.length-1];_e.value=ue.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const ue=this.resume(),_e=this.stack[this.stack.length-1];_e.value=ue.replace(/(\r?\n|\r)$/g,"")}function b(ue){const _e=this.resume(),Ve=this.stack[this.stack.length-1];Ve.label=_e,Ve.identifier=gd(this.sliceSerialize(ue)).toLowerCase()}function S(){const ue=this.resume(),_e=this.stack[this.stack.length-1];_e.title=ue}function w(){const ue=this.resume(),_e=this.stack[this.stack.length-1];_e.url=ue}function T(ue){const _e=this.stack[this.stack.length-1];if(!_e.depth){const Ve=this.sliceSerialize(ue).length;_e.depth=Ve}}function C(){this.data.setextHeadingSlurpLineEnding=!0}function A(ue){const _e=this.stack[this.stack.length-1];_e.depth=this.sliceSerialize(ue).codePointAt(0)===61?1:2}function I(){this.data.setextHeadingSlurpLineEnding=void 0}function k(ue){const Ve=this.stack[this.stack.length-1].children;let ke=Ve[Ve.length-1];(!ke||ke.type!=="text")&&(ke=Gt(),ke.position={start:pl(ue.start),end:void 0},Ve.push(ke)),this.stack.push(ke)}function P(ue){const _e=this.stack.pop();_e.value+=this.sliceSerialize(ue),_e.position.end=pl(ue.end)}function R(ue){const _e=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Ve=_e.children[_e.children.length-1];Ve.position.end=pl(ue.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(_e.type)&&(k.call(this,ue),P.call(this,ue))}function O(){this.data.atHardBreak=!0}function E(){const ue=this.resume(),_e=this.stack[this.stack.length-1];_e.value=ue}function z(){const ue=this.resume(),_e=this.stack[this.stack.length-1];_e.value=ue}function B(){const ue=this.resume(),_e=this.stack[this.stack.length-1];_e.value=ue}function W(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const _e=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=_e,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function X(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const _e=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=_e,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function H(ue){const _e=this.sliceSerialize(ue),Ve=this.stack[this.stack.length-2];Ve.label=Nce(_e),Ve.identifier=gd(_e).toLowerCase()}function q(){const ue=this.stack[this.stack.length-1],_e=this.resume(),Ve=this.stack[this.stack.length-1];if(this.data.inReference=!0,Ve.type==="link"){const ke=ue.children;Ve.children=ke}else Ve.alt=_e}function F(){const ue=this.resume(),_e=this.stack[this.stack.length-1];_e.url=ue}function Y(){const ue=this.resume(),_e=this.stack[this.stack.length-1];_e.title=ue}function Z(){this.data.inReference=void 0}function j(){this.data.referenceType="collapsed"}function te(ue){const _e=this.resume(),Ve=this.stack[this.stack.length-1];Ve.label=_e,Ve.identifier=gd(this.sliceSerialize(ue)).toLowerCase(),this.data.referenceType="full"}function fe(ue){this.data.characterReferenceType=ue.type}function re(ue){const _e=this.sliceSerialize(ue),Ve=this.data.characterReferenceType;let ke;Ve?(ke=_6(_e,Ve==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):ke=cI(_e);const Me=this.stack.pop();Me.value+=ke,Me.position.end=pl(ue.end)}function ce(ue){P.call(this,ue);const _e=this.stack[this.stack.length-1];_e.url=this.sliceSerialize(ue)}function ne(ue){P.call(this,ue);const _e=this.stack[this.stack.length-1];_e.url="mailto:"+this.sliceSerialize(ue)}function pe(){return{type:"blockquote",children:[]}}function me(){return{type:"code",lang:null,meta:null,value:""}}function le(){return{type:"inlineCode",value:""}}function Se(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ze(){return{type:"emphasis",children:[]}}function Te(){return{type:"heading",depth:0,children:[]}}function ye(){return{type:"break"}}function ft(){return{type:"html",value:""}}function He(){return{type:"image",title:null,url:"",alt:null}}function gt(){return{type:"link",title:null,url:"",children:[]}}function xt(ue){return{type:"list",ordered:ue.type==="listOrdered",start:null,spread:ue._spread,children:[]}}function _t(ue){return{type:"listItem",spread:ue._spread,checked:null,children:[]}}function nt(){return{type:"paragraph",children:[]}}function Ft(){return{type:"strong",children:[]}}function Gt(){return{type:"text",value:""}}function Rt(){return{type:"thematicBreak"}}}function pl(e){return{line:e.line,column:e.column,offset:e.offset}}function E6(e,t){let r=-1;for(;++r<t.length;){const n=t[r];Array.isArray(n)?E6(e,n):$ce(e,n)}}function $ce(e,t){let r;for(r in t)if(L6.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 wO(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+fv({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+fv({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+fv({start:t.start,end:t.end})+") is still open")}function Vce(e){const t=this;t.parser=r;function r(n){return Bce(n,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Hce(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 Gce(e,t){const r={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,r),[e.applyData(t,r),{type:"text",value:`
146
+ `}]}function Wce(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 jce(e,t){const r={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Uce(e,t){const r={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Yce(e,t){const r=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=String(t.identifier).toUpperCase(),i=Yd(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 qce(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 Xce(e,t){if(e.options.allowDangerousHtml){const r={type:"raw",value:t.value};return e.patch(t,r),e.applyData(t,r)}}function O6(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 Zce(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return O6(e,t);const i={src:Yd(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 Kce(e,t){const r={src:Yd(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 Qce(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 Jce(e,t){const r=String(t.identifier).toUpperCase(),n=e.definitionById.get(r);if(!n)return O6(e,t);const i={href:Yd(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 efe(e,t){const r={href:Yd(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 tfe(e,t,r){const n=e.all(t),i=r?rfe(r):N6(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 rfe(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=N6(r[n])}return t}function N6(e){const t=e.spread;return t??e.children.length>1}function nfe(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 ife(e,t){const r={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function afe(e,t){const r={type:"root",children:e.wrap(e.all(t))};return e.patch(t,r),e.applyData(t,r)}function ofe(e,t){const r={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function sfe(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=lI(t.children[1]),l=y6(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 lfe(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={},p=o?o[l]:void 0;p&&(d.align=p);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 ufe(e,t){const r={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}const CO=9,TO=32;function cfe(e){const t=String(e),r=/\r?\n|\r/g;let n=r.exec(t),i=0;const a=[];for(;n;)a.push(AO(t.slice(i,n.index),i>0,!0),n[0]),i=n.index+n[0].length,n=r.exec(t);return a.push(AO(t.slice(i),i>0,!1)),a.join("")}function AO(e,t,r){let n=0,i=e.length;if(t){let a=e.codePointAt(n);for(;a===CO||a===TO;)n++,a=e.codePointAt(n)}if(r){let a=e.codePointAt(i-1);for(;a===CO||a===TO;)i--,a=e.codePointAt(i-1)}return i>n?e.slice(n,i):""}function ffe(e,t){const r={type:"text",value:cfe(String(t.value))};return e.patch(t,r),e.applyData(t,r)}function dfe(e,t){const r={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,r),e.applyData(t,r)}const pfe={blockquote:Hce,break:Gce,code:Wce,delete:jce,emphasis:Uce,footnoteReference:Yce,heading:qce,html:Xce,imageReference:Zce,image:Kce,inlineCode:Qce,linkReference:Jce,link:efe,listItem:tfe,list:nfe,paragraph:ife,root:afe,strong:ofe,table:sfe,tableCell:ufe,tableRow:lfe,text:ffe,thematicBreak:dfe,toml:wy,yaml:wy,definition:wy,footnoteDefinition:wy};function wy(){}const z6=-1,Xx=0,g1=1,m1=2,pI=3,hI=4,vI=5,gI=6,B6=7,F6=8,MO=typeof self=="object"?self:globalThis,hfe=(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 Xx:case z6:return r(o,i);case g1:{const s=r([],i);for(const l of o)s.push(n(l));return s}case m1:{const s=r({},i);for(const[l,u]of o)s[n(l)]=n(u);return s}case pI:return r(new Date(o),i);case hI:{const{source:s,flags:l}=o;return r(new RegExp(s,l),i)}case vI:{const s=r(new Map,i);for(const[l,u]of o)s.set(n(l),n(u));return s}case gI:{const s=r(new Set,i);for(const l of o)s.add(n(l));return s}case B6:{const{name:s,message:l}=o;return r(new MO[s](l),i)}case F6:return r(BigInt(o),i);case"BigInt":return r(Object(BigInt(o)),i)}return r(new MO[a](o),i)};return n},IO=e=>hfe(new Map,e)(0),kf="",{toString:vfe}={},{keys:gfe}=Object,Jp=e=>{const t=typeof e;if(t!=="object"||!e)return[Xx,t];const r=vfe.call(e).slice(8,-1);switch(r){case"Array":return[g1,kf];case"Object":return[m1,kf];case"Date":return[pI,kf];case"RegExp":return[hI,kf];case"Map":return[vI,kf];case"Set":return[gI,kf]}return r.includes("Array")?[g1,r]:r.includes("Error")?[B6,r]:[m1,r]},Cy=([e,t])=>e===Xx&&(t==="function"||t==="symbol"),mfe=(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]=Jp(o);switch(s){case Xx:{let c=o;switch(l){case"bigint":s=F6,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([z6],o)}return i([s,c],o)}case g1:{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 m1:{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 gfe(o))(e||!Cy(Jp(o[d])))&&c.push([a(d),a(o[d])]);return f}case pI:return i([s,o.toISOString()],o);case hI:{const{source:c,flags:f}=o;return i([s,{source:c,flags:f}],o)}case vI:{const c=[],f=i([s,c],o);for(const[d,p]of o)(e||!(Cy(Jp(d))||Cy(Jp(p))))&&c.push([a(d),a(p)]);return f}case gI:{const c=[],f=i([s,c],o);for(const d of o)(e||!Cy(Jp(d)))&&c.push(a(d));return f}}const{message:u}=o;return i([s,{name:l,message:u}],o)};return a},kO=(e,{json:t,lossy:r}={})=>{const n=[];return mfe(!(t||r),!!t,new Map,n)(e),n},y1=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?IO(kO(e,t)):structuredClone(e):(e,t)=>IO(kO(e,t));function yfe(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 xfe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function bfe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=e.options.footnoteBackContent||yfe,n=e.options.footnoteBackLabel||xfe,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=Yd(f.toLowerCase());let p=0;const v=[],g=e.footnoteCounts.get(f);for(;g!==void 0&&++p<=g;){v.length>0&&v.push({type:"text",value:" "});let b=typeof r=="string"?r:r(l,p);typeof b=="string"&&(b={type:"text",value:b}),v.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof n=="string"?n:n(l,p),className:["data-footnote-backref"]},children:Array.isArray(b)?b:[b]})}const y=c[c.length-1];if(y&&y.type==="element"&&y.tagName==="p"){const b=y.children[y.children.length-1];b&&b.type==="text"?b.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:{...y1(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 $6=function(e){if(e==null)return Cfe;if(typeof e=="function")return Zx(e);if(typeof e=="object")return Array.isArray(e)?Sfe(e):_fe(e);if(typeof e=="string")return wfe(e);throw new Error("Expected function, string, or object as test")};function Sfe(e){const t=[];let r=-1;for(;++r<e.length;)t[r]=$6(e[r]);return Zx(n);function n(...i){let a=-1;for(;++a<t.length;)if(t[a].apply(this,i))return!0;return!1}}function _fe(e){const t=e;return Zx(r);function r(n){const i=n;let a;for(a in e)if(i[a]!==t[a])return!1;return!0}}function wfe(e){return Zx(t);function t(r){return r&&r.type===e}}function Zx(e){return t;function t(r,n,i){return!!(Tfe(r)&&e.call(this,r,typeof n=="number"?n:void 0,i||void 0))}}function Cfe(){return!0}function Tfe(e){return e!==null&&typeof e=="object"&&"type"in e}const V6=[],Afe=!0,PO=!1,Mfe="skip";function Ife(e,t,r,n){let i;typeof t=="function"&&typeof r!="function"?(n=r,r=t):i=t;const a=$6(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 p=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(d,"name",{value:"node ("+(l.type+(p?"<"+p+">":""))+")"})}return d;function d(){let p=V6,v,g,y;if((!t||a(l,u,c[c.length-1]||void 0))&&(p=kfe(r(l,c)),p[0]===PO))return p;if("children"in l&&l.children){const x=l;if(x.children&&p[0]!==Mfe)for(g=(n?x.children.length:-1)+o,y=c.concat(x);g>-1&&g<x.children.length;){const b=x.children[g];if(v=s(b,g,y)(),v[0]===PO)return v;g=typeof v[1]=="number"?v[1]:g+o}}return p}}}function kfe(e){return Array.isArray(e)?e:typeof e=="number"?[Afe,e]:e==null?V6:[e]}function H6(e,t,r,n){let i,a,o;typeof t=="function"?(a=void 0,o=t,i=r):(a=t,o=r,i=n),Ife(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 p2={}.hasOwnProperty,Pfe={};function Dfe(e,t){const r=t||Pfe,n=new Map,i=new Map,a=new Map,o={...pfe,...r.handlers},s={all:u,applyData:Lfe,definitionById:n,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:o,one:l,options:r,patch:Rfe,wrap:Ofe};return H6(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,p=s.handlers[d];if(p2.call(s.handlers,d)&&p)return p(s,c,f);if(s.options.passThrough&&s.options.passThrough.includes(d)){if("children"in c){const{children:g,...y}=c,x=y1(y);return x.children=s.all(c),x}return y1(c)}return(s.options.unknownHandler||Efe)(s,c,f)}function u(c){const f=[];if("children"in c){const d=c.children;let p=-1;for(;++p<d.length;){const v=s.one(d[p],c);if(v){if(p&&d[p-1].type==="break"&&(!Array.isArray(v)&&v.type==="text"&&(v.value=DO(v.value)),!Array.isArray(v)&&v.type==="element")){const g=v.children[0];g&&g.type==="text"&&(g.value=DO(g.value))}Array.isArray(v)?f.push(...v):f.push(v)}}}return f}}function Rfe(e,t){e.position&&(t.position=ble(e))}function Lfe(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,y1(a)),"children"in r&&r.children&&i!==null&&i!==void 0&&(r.children=i)}return r}function Efe(e,t){const r=t.data||{},n="value"in t&&!(p2.call(r,"hProperties")||p2.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 Ofe(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 DO(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}function RO(e,t){const r=Dfe(e,t),n=r.one(e,void 0),i=bfe(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 Nfe(e,t){return e&&"run"in e?async function(r,n){const i=RO(r,t);await e.run(i,n)}:function(r){return RO(r,t||e)}}function LO(e){if(e)throw e}var tw,EO;function zfe(){if(EO)return tw;EO=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 tw=function l(){var u,c,f,d,p,v,g=arguments[0],y=1,x=arguments.length,b=!1;for(typeof g=="boolean"&&(b=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&&(b&&d&&(a(d)||(p=i(d)))?(p?(p=!1,v=f&&i(f)?f:[]):v=f&&a(f)?f:{},o(g,{name:c,newValue:l(b,v,d)})):typeof d<"u"&&o(g,{name:c,newValue:d}));return g},tw}var Bfe=zfe();const rw=Xi(Bfe);function h2(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 Ffe(){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?$fe(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 $fe(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 Ao={basename:Vfe,dirname:Hfe,extname:Gfe,join:Wfe,sep:"/"};function Vfe(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Rg(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 Hfe(e){if(Rg(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 Gfe(e){Rg(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 Wfe(...e){let t=-1,r;for(;++t<e.length;)Rg(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":jfe(r)}function jfe(e){Rg(e);const t=e.codePointAt(0)===47;let r=Ufe(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}function Ufe(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 Rg(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Yfe={cwd:qfe};function qfe(){return"/"}function v2(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Xfe(e){if(typeof e=="string")e=new URL(e);else if(!v2(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 Zfe(e)}function Zfe(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 nw=["history","path","basename","stem","extname","dirname"];class G6{constructor(t){let r;t?v2(t)?r={path:t}:typeof t=="string"||Kfe(t)?r={value:t}:r=t:r={},this.cwd=Yfe.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let n=-1;for(;++n<nw.length;){const a=nw[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)nw.includes(i)||(this[i]=r[i])}get basename(){return typeof this.path=="string"?Ao.basename(this.path):void 0}set basename(t){aw(t,"basename"),iw(t,"basename"),this.path=Ao.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ao.dirname(this.path):void 0}set dirname(t){OO(this.basename,"dirname"),this.path=Ao.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ao.extname(this.path):void 0}set extname(t){if(iw(t,"extname"),OO(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=Ao.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){v2(t)&&(t=Xfe(t)),aw(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ao.basename(this.path,this.extname):void 0}set stem(t){aw(t,"stem"),iw(t,"stem"),this.path=Ao.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 si(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 iw(e,t){if(e&&e.includes(Ao.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ao.sep+"`")}function aw(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function OO(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function Kfe(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Qfe=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},Jfe={}.hasOwnProperty;class mI extends Qfe{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=Ffe()}copy(){const t=new mI;let r=-1;for(;++r<this.attachers.length;){const n=this.attachers[r];t.use(...n)}return t.data(rw(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(lw("data",this.frozen),this.namespace[t]=r,this):Jfe.call(this.namespace,t)&&this.namespace[t]||void 0:t?(lw("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=Ty(t),n=this.parser||this.Parser;return ow("parse",n),n(String(r),r)}process(t,r){const n=this;return this.freeze(),ow("process",this.parser||this.Parser),sw("process",this.compiler||this.Compiler),r?i(void 0,r):new Promise(i);function i(a,o){const s=Ty(t),l=n.parse(s);n.run(l,s,function(c,f,d){if(c||!f||!d)return u(c);const p=f,v=n.stringify(p,d);rde(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(),ow("processSync",this.parser||this.Parser),sw("processSync",this.compiler||this.Compiler),this.process(t,i),zO("processSync","process",r),n;function i(a,o){r=!0,LO(a),n=o}}run(t,r,n){NO(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=Ty(r);i.run(t,l,u);function u(c,f,d){const p=f||t;c?s(c):o?o(p):n(void 0,p,d)}}}runSync(t,r){let n=!1,i;return this.run(t,r,a),zO("runSync","run",n),i;function a(o,s){LO(o),i=s,n=!0}}stringify(t,r){this.freeze();const n=Ty(r),i=this.compiler||this.Compiler;return sw("stringify",i),NO(t),i(t,n)}use(t,...r){const n=this.attachers,i=this.namespace;if(lw("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=rw(!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[p,...v]=c;const g=n[d][1];h2(g)&&h2(p)&&(p=rw(!0,g,p)),n[d]=[u,p,...v]}}}}const ede=new mI().freeze();function ow(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function sw(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function lw(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 NO(e){if(!h2(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function zO(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Ty(e){return tde(e)?e:new G6(e)}function tde(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function rde(e){return typeof e=="string"||nde(e)}function nde(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const ide="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",BO=[],FO={allowDangerousHtml:!0},ade=/^(https?|ircs?|mailto|xmpp)$/i,ode=[{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 sde(e){const t=e.allowedElements,r=e.allowElement,n=e.children||"",i=e.className,a=e.components,o=e.disallowedElements,s=e.rehypePlugins||BO,l=e.remarkPlugins||BO,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...FO}:FO,c=e.skipHtml,f=e.unwrapDisallowed,d=e.urlTransform||lde,p=ede().use(Vce).use(l).use(Nfe,u).use(s),v=new G6;typeof n=="string"&&(v.value=n);for(const b of ode)Object.hasOwn(e,b.from)&&(""+b.from+(b.to?"use `"+b.to+"` instead":"remove it")+ide+b.id,void 0);const g=p.parse(v);let y=p.runSync(g,v);return i&&(y={type:"element",tagName:"div",properties:{className:i},children:y.type==="root"?y.children:[y]}),H6(y,x),Ale(y,{Fragment:N.Fragment,components:a,ignoreInvalidStyle:!0,jsx:N.jsx,jsxs:N.jsxs,passKeys:!0,passNode:!0});function x(b,S,w){if(b.type==="raw"&&w&&typeof S=="number")return c?w.children.splice(S,1):w.children[S]={type:"text",value:b.value},S;if(b.type==="element"){let T;for(T in Q_)if(Object.hasOwn(Q_,T)&&Object.hasOwn(b.properties,T)){const C=b.properties[T],A=Q_[T];(A===null||A.includes(b.tagName))&&(b.properties[T]=d(String(C||""),T,b))}}if(b.type==="element"){let T=t?!t.includes(b.tagName):o?o.includes(b.tagName):!1;if(!T&&r&&typeof S=="number"&&(T=!r(b,S,w)),T&&w&&typeof S=="number")return f&&b.children?w.children.splice(S,1,...b.children):w.children.splice(S,1),S}}}function lde(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||ade.test(e.slice(0,t))?e:""}function cc({content:e}){return N.jsx(sde,{components:{a:hn},skipHtml:!1,children:e})}function yI({name:e,label:t,type:r="text",defaultValue:n,choices:i,isSecret:a,isRequired:o}){return i?N.jsx(oI,{defaultValue:n,label:t,name:e,options:i,required:o,sx:{width:"100%"}}):typeof n=="boolean"?N.jsx(jV,{control:N.jsx(a2,{defaultChecked:n,required:o}),label:N.jsx(cc,{content:t}),name:e}):a?N.jsx(l6,{defaultValue:n,isRequired:o,label:t,name:e}):N.jsx(Sc,{defaultValue:n,label:t,name:e,required:o,sx:{width:"100%"},type:r})}var eh={},uw={exports:{}},$O;function ou(){return $O||($O=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}(uw)),uw.exports}var cw={};const ude=GY(wJ);var VO;function su(){return VO||(VO=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=ude}(cw)),cw}var HO;function cde(){if(HO)return eh;HO=1;var e=ou();Object.defineProperty(eh,"__esModule",{value:!0}),eh.default=void 0;var t=e(su()),r=Gs(),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 eh.default=n,eh}var fde=cde();const dde=Xi(fde);var th={},GO;function pde(){if(GO)return th;GO=1;var e=ou();Object.defineProperty(th,"__esModule",{value:!0}),th.default=void 0;var t=e(su()),r=Gs(),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 th.default=n,th}var hde=pde();const vde=Xi(hde),$o={DARK:"dark",LIGHT:"light"},gde=localStorage.theme===$o.DARK||!("theme"in localStorage)&&window.matchMedia("(prefers-color-scheme: dark)").matches?$o.DARK:$o.LIGHT,Di=E$,mde=G$;function _s(e,t){const r=mde();return V.useCallback(n=>{r(e(n))},[e,r])}const yde={isDarkMode:!1},W6=va({name:"theme",initialState:yde,reducers:{setIsDarkMode:(e,{payload:t})=>{e.isDarkMode=t}}}),xde=W6.actions,j6=W6.reducer;function g2(){const e=Di(({theme:{isDarkMode:n}})=>n),t=_s(xde.setIsDarkMode);V.useEffect(()=>{t(gde===$o.DARK)},[]);const r=()=>{localStorage.theme=e?$o.LIGHT:$o.DARK,t(!e)};return N.jsx(Ws,{color:"inherit",onClick:r,children:e?N.jsx(vde,{}):N.jsx(dde,{})})}const bde=e=>zM({palette:{mode:e,primary:{main:"#15803d"},success:{main:"#00C853"}},components:{MuiCssBaseline:{styleOverrides:{":root":{"--footer-height":"40px"},p:{margin:0},ul:{paddingLeft:"16px"}}}}});function U6(){const e=Di(({theme:{isDarkMode:r}})=>r);return V.useMemo(()=>bde(e?$o.DARK:$o.LIGHT),[e])}function Sde({authProviders:e,customForm:t,error:r,info:n,usernamePasswordCallback:i}){const a=U6();return N.jsxs(bV,{theme:a,children:[N.jsx(VV,{}),N.jsx(Xt,{sx:{position:"absolute",top:4,right:4},children:N.jsx(g2,{})}),N.jsxs(Xt,{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(Xt,{sx:{display:"flex",justifyContent:"center",columnGap:2},children:N.jsx(s6,{})}),i&&!t&&N.jsx("form",{action:i,method:"POST",children:N.jsxs(Xt,{sx:{display:"flex",flexDirection:"column",rowGap:2},children:[N.jsx(Sc,{label:"Username",name:"username"}),N.jsx(l6,{}),n&&N.jsx(Ml,{severity:"info",children:N.jsx(cc,{content:n})}),r&&N.jsx(Ml,{severity:"error",children:r}),N.jsx(Yo,{size:"large",type:"submit",variant:"contained",children:"Login"})]})}),t&&N.jsx("form",{action:t.callbackUrl,method:"POST",children:N.jsxs(Xt,{sx:{display:"flex",flexDirection:"column",rowGap:2},children:[t.inputs.map((o,s)=>N.jsx(yI,{...o},`custom-form-input-${s}`)),n&&N.jsx(Ml,{severity:"info",children:N.jsx(cc,{content:n})}),r&&N.jsx(Ml,{severity:"error",children:r}),N.jsx(Yo,{size:"large",type:"submit",variant:"contained",children:t.submitButtonText||"Login"})]})}),n&&!t&&!i&&N.jsx(Ml,{severity:"info",children:N.jsx(cc,{content:n})}),r&&!t&&!i&&N.jsx(Ml,{severity:"error",children:N.jsx(cc,{content:r})}),e&&N.jsx(Xt,{sx:{display:"flex",flexDirection:"column",rowGap:1},children:e.map(({label:o,callbackUrl:s,iconUrl:l},u)=>N.jsxs(Ws,{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(Vt,{height:"32",variant:"button",children:o})]},`auth-provider-${u}`))})]})]})}var rh={},WO;function _de(){if(WO)return rh;WO=1;var e=ou();Object.defineProperty(rh,"__esModule",{value:!0}),rh.default=void 0;var t=e(su()),r=Gs(),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 rh.default=n,rh}var wde=_de();const Cde=Xi(wde);function Kx({open:e,onClose:t,children:r}){return N.jsx(JM,{onClose:t,open:e,children:N.jsxs(Pg,{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(Ws,{color:"inherit",onClick:t,sx:{position:"absolute",top:1,right:1},children:N.jsx(Cde,{})}),r]})})}function Tde(){const[e,t]=V.useState(!1),r=Di(({swarm:n})=>n.version);return N.jsxs(N.Fragment,{children:[N.jsx(Xt,{sx:{display:"flex",justifyContent:"flex-end"},children:N.jsx(Yo,{color:"inherit",onClick:()=>t(!0),variant:"text",children:"About"})}),N.jsxs(Kx,{onClose:()=>t(!1),open:e,children:[N.jsxs("div",{children:[N.jsx(Vt,{component:"h2",mb:1,variant:"h4",children:"About"}),N.jsxs(Vt,{component:"p",variant:"subtitle1",children:["Locust is free and open source software released under the"," ",N.jsx(hn,{href:"https://github.com/locustio/locust/blob/master/LICENSE",children:"MIT License"})]}),N.jsxs(Vt,{component:"p",sx:{mt:2},variant:"subtitle1",children:["It was originally developed by Carl Byström and"," ",N.jsx(hn,{href:"https://twitter.com/jonatanheyman",children:"Jonatan Heyman"}),". Since 2019, it is primarily maintained by ",N.jsx(hn,{href:"https://github.com/cyberw",children:"Lars Holmberg"}),"."]}),N.jsxs(Vt,{component:"p",sx:{mt:2},variant:"subtitle1",children:["Many thanks to all our wonderful"," ",N.jsx(hn,{href:"https://github.com/locustio/locust/graphs/contributors",children:"contributors"}),"!"]})]}),N.jsxs("div",{children:[N.jsx(Vt,{component:"h2",mb:1,variant:"h4",children:"Need help getting started?"}),N.jsx(hn,{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(Vt,{component:"h2",mb:1,variant:"h4",children:"Version"}),N.jsx(hn,{href:`https://github.com/locustio/locust/releases/tag/${r}`,children:r})]}),N.jsxs("div",{children:[N.jsx(Vt,{component:"h2",mb:1,variant:"h4",children:"Links"}),N.jsx(Vt,{component:"p",variant:"subtitle1",children:N.jsx(hn,{href:"https://github.com/locustio/locust",children:"GitHub"})}),N.jsx(Vt,{component:"p",variant:"subtitle1",children:N.jsx(hn,{href:"https://docs.locust.io/en/stable",children:"Documentation"})}),N.jsx(Vt,{component:"p",variant:"subtitle1",children:N.jsx(hn,{href:"https://medium.com/locust-cloud",children:"Blog"})})]})]})]})}function Ade(){return N.jsx(Pg,{maxWidth:"xl",sx:{display:"flex",height:"var(--footer-height)",alignItems:"center",justifyContent:"flex-end"},children:N.jsx(Tde,{})})}var nh={},jO;function Mde(){if(jO)return nh;jO=1;var e=ou();Object.defineProperty(nh,"__esModule",{value:!0}),nh.default=void 0;var t=e(su()),r=Gs(),n=(0,t.default)((0,r.jsx)("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}),"Menu");return nh.default=n,nh}var Ide=Mde();const kde=Xi(Ide),Y6=e=>(Array.isArray(e)?e.length:Object.keys(e).length)===0;function Pde(e,t){return{...e,...t}}const Dde=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},Qx=(e,t)=>Object.entries(t).reduce((r,[n,i])=>({...r,[n]:[...r[n]||[],i]}),e),Nn={READY:"ready",RUNNING:"running",STOPPED:"stopped",SPAWNING:"spawning"},Vo=window.templateArgs?sd(window.templateArgs):{};Vo.isReport&&{...Vo,charts:(Vo.history||[]).reduce((e,{currentResponseTimePercentiles:t,...r})=>Qx(e,{...t,...r}),{})};function Rde({isDistributed:e,state:t,host:r,totalRps:n,failRatio:i,userCount:a,workerCount:o}){return N.jsxs(Xt,{sx:{display:"flex",columnGap:2,rowGap:1,flexDirection:{xs:"column",md:"row"}},children:[N.jsxs(Xt,{sx:{display:"flex",flexDirection:"column"},children:[N.jsx(Vt,{sx:{fontWeight:"bold"},children:"Host"}),N.jsx(t6,{title:r,children:N.jsx(Vt,{noWrap:!0,sx:{overflow:"hidden",textOverflow:"ellipsis",maxWidth:{xs:"180px",lg:"400px"}},children:r})})]}),N.jsx(ed,{flexItem:!0,orientation:"vertical"}),N.jsxs(Xt,{sx:{display:"flex",flexDirection:"column"},children:[N.jsx(Vt,{sx:{fontWeight:"bold"},children:"Status"}),N.jsx(Vt,{variant:"button",children:t})]}),(t===Nn.RUNNING||t===Nn.SPAWNING)&&N.jsxs(N.Fragment,{children:[N.jsx(ed,{flexItem:!0,orientation:"vertical"}),N.jsxs(Xt,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[N.jsx(Vt,{sx:{fontWeight:"bold"},children:"Users"}),N.jsx(Vt,{noWrap:!0,variant:"button",children:a})]})]}),e&&N.jsxs(N.Fragment,{children:[N.jsx(ed,{flexItem:!0,orientation:"vertical"}),N.jsxs(Xt,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[N.jsx(Vt,{sx:{fontWeight:"bold"},children:"Workers"}),N.jsx(Vt,{noWrap:!0,variant:"button",children:o})]})]}),N.jsx(ed,{flexItem:!0,orientation:"vertical"}),N.jsxs(Xt,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[N.jsx(Vt,{sx:{fontWeight:"bold"},children:"RPS"}),N.jsx(Vt,{noWrap:!0,variant:"button",children:n})]}),N.jsx(ed,{flexItem:!0,orientation:"vertical"}),N.jsxs(Xt,{sx:{display:"flex",flexDirection:"column",alignItems:{md:"center"}},children:[N.jsx(Vt,{sx:{fontWeight:"bold"},children:"Failures"}),N.jsx(Vt,{noWrap:!0,variant:"button",children:`${i}%`})]})]})}const Lde=({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}),UO=Zi(Lde)(Rde);var ih={},YO;function Ede(){if(YO)return ih;YO=1;var e=ou();Object.defineProperty(ih,"__esModule",{value:!0}),ih.default=void 0;var t=e(su()),r=Gs(),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 ih.default=n,ih}var Ode=Ede();const xI=Xi(Ode),Nde="input, select, textarea",zde=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 q6({children:e,onSubmit:t,onChange:r}){const n=V.useCallback(async i=>{i.preventDefault();const o=[...i.target.querySelectorAll(Nde)].reduce((s,l)=>({...s,[l.name]:zde(l)}),{});t(o)},[t]);return N.jsx("form",{onChange:r,onSubmit:n,children:e})}function qO({defaultValue:e,...t}){const[r,n]=V.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 V.useEffect(()=>{e&&n(e)},[e]),N.jsx(Sc,{...t,onChange:i,value:r})}function Bde({extraOptions:e}){return N.jsxs(HM,{children:[N.jsx(WM,{expandIcon:N.jsx(xI,{}),children:N.jsx(Vt,{children:"Custom parameters"})}),N.jsx(GM,{children:N.jsx(Xt,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:Object.entries(e).map(([t,r],n)=>V.createElement(yI,{...r,key:`valid-parameter-${n}`,label:r.helpText?`${UT(t)} (${r.helpText})`:UT(t),name:t}))})})]})}var ah={},XO;function Fde(){if(XO)return ah;XO=1;var e=ou();Object.defineProperty(ah,"__esModule",{value:!0}),ah.default=void 0;var t=e(su()),r=Gs(),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 ah.default=n,ah}var $de=Fde();const Vde=Xi($de);var X6=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(X6||{});function Hde(e){return{status:e,isUninitialized:e==="uninitialized",isLoading:e==="pending",isSuccess:e==="fulfilled",isError:e==="rejected"}}function Gde(e){return new RegExp("(^|:)//").test(e)}var Wde=e=>e.replace(/\/$/,""),jde=e=>e.replace(/^\//,"");function Ude(e,t){if(!e)return t;if(!t)return e;if(Gde(t))return t;const r=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=Wde(e),t=jde(t),`${e}${r}${t}`}var ZO=e=>[].concat(...e);function Yde(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}function qde(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}var KO=jo;function Z6(e,t){if(e===t||!(KO(e)&&KO(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]=Z6(e[o],t[o]),i&&(i=e[o]===a[o]);return i?e:a}var QO=(...e)=>fetch(...e),Xde=e=>e.status>=200&&e.status<=299,Zde=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function JO(e){if(!jo(e))return e;const t={...e};for(const[r,n]of Object.entries(t))n===void 0&&delete t[r];return t}function Kde({baseUrl:e,prepareHeaders:t=f=>f,fetchFn:r=QO,paramsSerializer:n,isJsonContentType:i=Zde,jsonContentType:a="application/json",jsonReplacer:o,timeout:s,responseHandler:l,validateStatus:u,...c}={}){return typeof fetch>"u"&&r===QO&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(d,p)=>{const{signal:v,getState:g,extra:y,endpoint:x,forced:b,type:S}=p;let w,{url:T,headers:C=new Headers(c.headers),params:A=void 0,responseHandler:I=l??"json",validateStatus:k=u??Xde,timeout:P=s,...R}=typeof d=="string"?{url:d}:d,O={...c,signal:v,...R};C=new Headers(JO(C)),O.headers=await t(C,{getState:g,extra:y,endpoint:x,forced:b,type:S})||C;const E=Z=>typeof Z=="object"&&(jo(Z)||Array.isArray(Z)||typeof Z.toJSON=="function");if(!O.headers.has("content-type")&&E(O.body)&&O.headers.set("content-type",a),E(O.body)&&i(O.headers)&&(O.body=JSON.stringify(O.body,o)),A){const Z=~T.indexOf("?")?"&":"?",j=n?n(A):new URLSearchParams(JO(A));T+=Z+j}T=Ude(e,T);const z=new Request(T,O);w={request:new Request(T,O)};let W,X=!1,H=P&&setTimeout(()=>{X=!0,p.abort()},P);try{W=await r(z)}catch(Z){return{error:{status:X?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(Z)},meta:w}}finally{H&&clearTimeout(H)}const q=W.clone();w.response=q;let F,Y="";try{let Z;if(await Promise.all([f(W,I).then(j=>F=j,j=>Z=j),q.text().then(j=>Y=j,()=>{})]),Z)throw Z}catch(Z){return{error:{status:"PARSING_ERROR",originalStatus:W.status,data:Y,error:String(Z)},meta:w}}return k(W,F)?{data:F,meta:w}:{error:{status:W.status,data:F},meta:w}};async function f(d,p){if(typeof p=="function")return p(d);if(p==="content-type"&&(p=i(d.headers)?"json":"text"),p==="json"){const v=await d.text();return v.length?JSON.parse(v):null}return d.text()}}var eN=class{constructor(e,t=void 0){this.value=e,this.meta=t}},bI=Jn("__rtkq/focused"),K6=Jn("__rtkq/unfocused"),SI=Jn("__rtkq/online"),Q6=Jn("__rtkq/offline");function J6(e){return e.type==="query"}function Qde(e){return e.type==="mutation"}function _I(e,t,r,n,i,a){return Jde(e)?e(t,r,n,i).map(m2).map(a):Array.isArray(e)?e.map(m2).map(a):[]}function Jde(e){return typeof e=="function"}function m2(e){return typeof e=="string"?{type:e}:e}function tN(e){return e!=null}function md(e){let t=0;for(const r in e)t++;return t}function epe(e,t){return e.catch(t)}var Wv=Symbol("forceQueryFn"),y2=e=>typeof e[Wv]=="function";function tpe({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:p};function c(y,x){return b=>{var T;const S=i.endpointDefinitions[y],w=e({queryArgs:x,endpointDefinition:S,endpointName:y});return(T=a.get(b))==null?void 0:T[w]}}function f(y,x){return b=>{var S;return(S=o.get(b))==null?void 0:S[x]}}function d(){return y=>Object.values(a.get(y)||{}).filter(tN)}function p(){return y=>Object.values(o.get(y)||{}).filter(tN)}function v(y,x){const b=(S,{subscribe:w=!0,forceRefetch:T,subscriptionOptions:C,[Wv]:A,...I}={})=>(k,P)=>{var Z;const R=e({queryArgs:S,endpointDefinition:x,endpointName:y}),O=t({...I,type:"query",subscribe:w,forceRefetch:T,subscriptionOptions:C,endpointName:y,originalArgs:S,queryCacheKey:R,[Wv]:A}),E=n.endpoints[y].select(S),z=k(O),B=E(P()),{requestId:W,abort:X}=z,H=B.requestId!==W,q=(Z=a.get(k))==null?void 0:Z[R],F=()=>E(P()),Y=Object.assign(A?z.then(F):H&&!q?Promise.resolve(B):Promise.all([q,z]).then(F),{arg:S,requestId:W,subscriptionOptions:C,queryCacheKey:R,abort:X,async unwrap(){const j=await Y;if(j.isError)throw j.error;return j.data},refetch:()=>k(b(S,{subscribe:!1,forceRefetch:!0})),unsubscribe(){w&&k(s({queryCacheKey:R,requestId:W}))},updateSubscriptionOptions(j){Y.subscriptionOptions=j,k(u({endpointName:y,requestId:W,queryCacheKey:R,options:j}))}});if(!q&&!H&&!A){const j=a.get(k)||{};j[R]=Y,a.set(k,j),Y.then(()=>{delete j[R],md(j)||a.delete(k)})}return Y};return b}function g(y){return(x,{track:b=!0,fixedCacheKey:S}={})=>(w,T)=>{const C=r({type:"mutation",endpointName:y,originalArgs:x,track:b,fixedCacheKey:S}),A=w(C),{requestId:I,abort:k,unwrap:P}=A,R=epe(A.unwrap().then(B=>({data:B})),B=>({error:B})),O=()=>{w(l({requestId:I,fixedCacheKey:S}))},E=Object.assign(R,{arg:A.arg,requestId:I,abort:k,unwrap:P,reset:O}),z=o.get(w)||{};return o.set(w,z),z[I]=E,E.then(()=>{delete z[I],md(z)||o.delete(w)}),S&&(z[S]=E,E.then(()=>{z[S]===E&&(delete z[S],md(z)||o.delete(w))})),E}}}function rN(e){return e}function rpe({reducerPath:e,baseQuery:t,context:{endpointDefinitions:r},serializeQueryArgs:n,api:i,assertTagType:a}){const o=(b,S,w,T)=>(C,A)=>{const I=r[b],k=n({queryArgs:S,endpointDefinition:I,endpointName:b});if(C(i.internalActions.queryResultPatched({queryCacheKey:k,patches:w})),!T)return;const P=i.endpoints[b].select(S)(A()),R=_I(I.providesTags,P.data,void 0,S,{},a);C(i.internalActions.updateProvidedBy({queryCacheKey:k,providedTags:R}))},s=(b,S,w,T=!0)=>(C,A)=>{const k=i.endpoints[b].select(S)(A());let P={patches:[],inversePatches:[],undo:()=>C(i.util.patchQueryData(b,S,P.inversePatches,T))};if(k.status==="uninitialized")return P;let R;if("data"in k)if(Qa(k.data)){const[O,E,z]=w$(k.data,w);P.patches.push(...E),P.inversePatches.push(...z),R=O}else R=w(k.data),P.patches.push({op:"replace",path:[],value:R}),P.inversePatches.push({op:"replace",path:[],value:k.data});return P.patches.length===0||C(i.util.patchQueryData(b,S,P.patches,T)),P},l=(b,S,w)=>T=>T(i.endpoints[b].initiate(S,{subscribe:!1,forceRefetch:!0,[Wv]:()=>({data:w})})),u=async(b,{signal:S,abort:w,rejectWithValue:T,fulfillWithValue:C,dispatch:A,getState:I,extra:k})=>{const P=r[b.endpointName];try{let R=rN,O;const E={signal:S,abort:w,dispatch:A,getState:I,extra:k,endpoint:b.endpointName,type:b.type,forced:b.type==="query"?c(b,I()):void 0},z=b.type==="query"?b[Wv]:void 0;if(z?O=z():P.query?(O=await t(P.query(b.originalArgs),E,P.extraOptions),P.transformResponse&&(R=P.transformResponse)):O=await P.queryFn(b.originalArgs,E,P.extraOptions,B=>t(B,E,P.extraOptions)),typeof process<"u",O.error)throw new eN(O.error,O.meta);return C(await R(O.data,O.meta,b.originalArgs),{fulfilledTimeStamp:Date.now(),baseQueryMeta:O.meta,[od]:!0})}catch(R){let O=R;if(O instanceof eN){let E=rN;P.query&&P.transformErrorResponse&&(E=P.transformErrorResponse);try{return T(await E(O.value,O.meta,b.originalArgs),{baseQueryMeta:O.meta,[od]:!0})}catch(z){O=z}}throw console.error(O),O}};function c(b,S){var I,k,P;const w=(k=(I=S[e])==null?void 0:I.queries)==null?void 0:k[b.queryCacheKey],T=(P=S[e])==null?void 0:P.config.refetchOnMountOrArgChange,C=w==null?void 0:w.fulfilledTimeStamp,A=b.forceRefetch??(b.subscribe&&T);return A?A===!0||(Number(new Date)-Number(C))/1e3>=A:!1}const f=_L(`${e}/executeQuery`,u,{getPendingMeta(){return{startedTimeStamp:Date.now(),[od]:!0}},condition(b,{getState:S}){var P,R,O;const w=S(),T=(R=(P=w[e])==null?void 0:P.queries)==null?void 0:R[b.queryCacheKey],C=T==null?void 0:T.fulfilledTimeStamp,A=b.originalArgs,I=T==null?void 0:T.originalArgs,k=r[b.endpointName];return y2(b)?!0:(T==null?void 0:T.status)==="pending"?!1:c(b,w)||J6(k)&&((O=k==null?void 0:k.forceRefetch)!=null&&O.call(k,{currentArg:A,previousArg:I,endpointState:T,state:w}))?!0:!C},dispatchConditionRejection:!0}),d=_L(`${e}/executeMutation`,u,{getPendingMeta(){return{startedTimeStamp:Date.now(),[od]:!0}}}),p=b=>"force"in b,v=b=>"ifOlderThan"in b,g=(b,S,w)=>(T,C)=>{const A=p(w)&&w.force,I=v(w)&&w.ifOlderThan,k=(R=!0)=>{const O={forceRefetch:R,isPrefetch:!0};return i.endpoints[b].initiate(S,O)},P=i.endpoints[b].select(S)(C());if(A)T(k());else if(I){const R=P==null?void 0:P.fulfilledTimeStamp;if(!R){T(k());return}(Number(new Date)-Number(new Date(R)))/1e3>=I&&T(k())}else T(k(!1))};function y(b){return S=>{var w,T;return((T=(w=S==null?void 0:S.meta)==null?void 0:w.arg)==null?void 0:T.endpointName)===b}}function x(b,S){return{matchPending:rv(vM(b),y(S)),matchFulfilled:rv(Ul(b),y(S)),matchRejected:rv(Td(b),y(S))}}return{queryThunk:f,mutationThunk:d,prefetch:g,updateQueryData:s,upsertQueryData:l,patchQueryData:o,buildMatchThunkActions:x}}function eH(e,t,r,n){return _I(r[e.meta.arg.endpointName][t],Ul(e)?e.payload:void 0,xx(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,n)}function Ay(e,t,r){const n=e[t];n&&r(n)}function jv(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function nN(e,t,r){const n=e[jv(t)];n&&r(n)}var oh={};function npe({reducerPath:e,queryThunk:t,mutationThunk:r,context:{endpointDefinitions:n,apiUid:i,extractRehydrationInfo:a,hasRehydrationInfo:o},assertTagType:s,config:l}){const u=Jn(`${e}/resetApiState`),c=va({name:`${e}/queries`,initialState:oh,reducers:{removeQueryResult:{reducer(S,{payload:{queryCacheKey:w}}){delete S[w]},prepare:jp()},queryResultPatched:{reducer(S,{payload:{queryCacheKey:w,patches:T}}){Ay(S,w,C=>{C.data=gL(C.data,T.concat())})},prepare:jp()}},extraReducers(S){S.addCase(t.pending,(w,{meta:T,meta:{arg:C}})=>{var I;const A=y2(C);w[I=C.queryCacheKey]??(w[I]={status:"uninitialized",endpointName:C.endpointName}),Ay(w,C.queryCacheKey,k=>{k.status="pending",k.requestId=A&&k.requestId?k.requestId:T.requestId,C.originalArgs!==void 0&&(k.originalArgs=C.originalArgs),k.startedTimeStamp=T.startedTimeStamp})}).addCase(t.fulfilled,(w,{meta:T,payload:C})=>{Ay(w,T.arg.queryCacheKey,A=>{if(A.requestId!==T.requestId&&!y2(T.arg))return;const{merge:I}=n[T.arg.endpointName];if(A.status="fulfilled",I)if(A.data!==void 0){const{fulfilledTimeStamp:k,arg:P,baseQueryMeta:R,requestId:O}=T;let E=_g(A.data,z=>I(z,C,{arg:P.originalArgs,baseQueryMeta:R,fulfilledTimeStamp:k,requestId:O}));A.data=E}else A.data=C;else A.data=n[T.arg.endpointName].structuralSharing??!0?Z6(Ka(A.data)?oq(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:I,payload:k})=>{Ay(w,C.queryCacheKey,P=>{if(!T){if(P.requestId!==A)return;P.status="rejected",P.error=k??I}})}).addMatcher(o,(w,T)=>{const{queries:C}=a(T);for(const[A,I]of Object.entries(C))((I==null?void 0:I.status)==="fulfilled"||(I==null?void 0:I.status)==="rejected")&&(w[A]=I)})}}),f=va({name:`${e}/mutations`,initialState:oh,reducers:{removeMutationResult:{reducer(S,{payload:w}){const T=jv(w);T in S&&delete S[T]},prepare:jp()}},extraReducers(S){S.addCase(r.pending,(w,{meta:T,meta:{requestId:C,arg:A,startedTimeStamp:I}})=>{A.track&&(w[jv(T)]={requestId:C,status:"pending",endpointName:A.endpointName,startedTimeStamp:I})}).addCase(r.fulfilled,(w,{payload:T,meta:C})=>{C.arg.track&&nN(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&&nN(w,A,I=>{I.requestId===A.requestId&&(I.status="rejected",I.error=T??C)})}).addMatcher(o,(w,T)=>{const{mutations:C}=a(T);for(const[A,I]of Object.entries(C))((I==null?void 0:I.status)==="fulfilled"||(I==null?void 0:I.status)==="rejected")&&A!==(I==null?void 0:I.requestId)&&(w[A]=I)})}}),d=va({name:`${e}/invalidation`,initialState:oh,reducers:{updateProvidedBy:{reducer(S,w){var A,I;const{queryCacheKey:T,providedTags:C}=w.payload;for(const k of Object.values(S))for(const P of Object.values(k)){const R=P.indexOf(T);R!==-1&&P.splice(R,1)}for(const{type:k,id:P}of C){const R=(A=S[k]??(S[k]={}))[I=P||"__internal_without_id"]??(A[I]=[]);R.includes(T)||R.push(T)}},prepare:jp()}},extraReducers(S){S.addCase(c.actions.removeQueryResult,(w,{payload:{queryCacheKey:T}})=>{for(const C of Object.values(w))for(const A of Object.values(C)){const I=A.indexOf(T);I!==-1&&A.splice(I,1)}}).addMatcher(o,(w,T)=>{var A,I;const{provided:C}=a(T);for(const[k,P]of Object.entries(C))for(const[R,O]of Object.entries(P)){const E=(A=w[k]??(w[k]={}))[I=R||"__internal_without_id"]??(A[I]=[]);for(const z of O)E.includes(z)||E.push(z)}}).addMatcher(Ds(Ul(t),xx(t)),(w,T)=>{const C=eH(T,"providesTags",n,s),{queryCacheKey:A}=T.meta.arg;d.caseReducers.updateProvidedBy(w,d.actions.updateProvidedBy({queryCacheKey:A,providedTags:C}))})}}),p=va({name:`${e}/subscriptions`,initialState:oh,reducers:{updateSubscriptionOptions(S,w){},unsubscribeQueryResult(S,w){},internal_getRTKQSubscriptions(){}}}),v=va({name:`${e}/internalSubscriptions`,initialState:oh,reducers:{subscriptionsUpdated:{reducer(S,w){return gL(S,w.payload)},prepare:jp()}}}),g=va({name:`${e}/config`,initialState:{online:Yde(),focused:qde(),middlewareRegistered:!1,...l},reducers:{middlewareRegistered(S,{payload:w}){S.middlewareRegistered=S.middlewareRegistered==="conflict"||i!==w?"conflict":!0}},extraReducers:S=>{S.addCase(SI,w=>{w.online=!0}).addCase(Q6,w=>{w.online=!1}).addCase(bI,w=>{w.focused=!0}).addCase(K6,w=>{w.focused=!1}).addMatcher(o,w=>({...w}))}}),y=gx({queries:c.reducer,mutations:f.reducer,provided:d.reducer,subscriptions:v.reducer,config:g.reducer}),x=(S,w)=>y(u.match(w)?void 0:S,w),b={...g.actions,...c.actions,...p.actions,...v.actions,...f.actions,...d.actions,resetApiState:u};return{reducer:x,actions:b}}var fc=Symbol.for("RTKQ/skipToken"),tH={status:"uninitialized"},iN=_g(tH,()=>{}),aN=_g(tH,()=>{});function ipe({serializeQueryArgs:e,reducerPath:t,createSelector:r}){const n=f=>iN,i=f=>aN;return{buildQuerySelector:s,buildMutationSelector:l,selectInvalidatedBy:u,selectCachedArgsForQuery:c};function a(f){return{...f,...Hde(f.status)}}function o(f){return f[t]}function s(f,d){return p=>{const v=e({queryArgs:p,endpointDefinition:d,endpointName:f});return r(p===fc?n:x=>{var b,S;return((S=(b=o(x))==null?void 0:b.queries)==null?void 0:S[v])??iN},a)}}function l(){return f=>{let d;return typeof f=="object"?d=jv(f)??fc:d=f,r(d===fc?i:g=>{var y,x;return((x=(y=o(g))==null?void 0:y.mutations)==null?void 0:x[d])??aN},a)}}function u(f,d){const p=f[t],v=new Set;for(const g of d.map(m2)){const y=p.provided[g.type];if(!y)continue;let x=(g.id!==void 0?y[g.id]:ZO(Object.values(y)))??[];for(const b of x)v.add(b)}return ZO(Array.from(v.values()).map(g=>{const y=p.queries[g];return y?[{queryCacheKey:g,endpointName:y.endpointName,originalArgs:y.originalArgs}]:[]}))}function c(f,d){return Object.values(f[t].queries).filter(p=>(p==null?void 0:p.endpointName)===d&&p.status!=="uninitialized").map(p=>p.originalArgs)}}var Pf=WeakMap?new WeakMap:void 0,oN=({endpointName:e,queryArgs:t})=>{let r="";const n=Pf==null?void 0:Pf.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=jo(o)?Object.keys(o).sort().reduce((s,l)=>(s[l]=o[l],s),{}):o,o));jo(t)&&(Pf==null||Pf.set(t,i)),r=i}return`${e}(${r})`};function rH(...e){return function(r){const n=Ev(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=oN;if("serializeQueryArgs"in u.endpointDefinition){const f=u.endpointDefinition.serializeQueryArgs;c=d=>{const p=f(d);return typeof p=="string"?p:oN({...d,queryArgs:p})}}else r.serializeQueryArgs&&(c=r.serializeQueryArgs);return c(u)},tagTypes:[...r.tagTypes||[]]},a={endpointDefinitions:{},batch(u){u()},apiUid:hM(),extractRehydrationInfo:n,hasRehydrationInfo:Ev(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(zn(39));continue}a.endpointDefinitions[f]=d;for(const p of s)p.injectEndpoint(f,d)}return o}return o.injectEndpoints({endpoints:r.endpoints})}}function ape(e){for(let t in e)return!1;return!0}var ope=2147483647/1e3-1,spe=({reducerPath:e,api:t,queryThunk:r,context:n,internalState:i})=>{const{removeQueryResult:a,unsubscribeQueryResult:o}=t.internalActions,s=Ds(o.match,r.fulfilled,r.rejected);function l(d){const p=i.currentSubscriptions[d];return!!p&&!ape(p)}const u={},c=(d,p,v)=>{var g;if(s(d)){const y=p.getState()[e],{queryCacheKey:x}=o.match(d)?d.payload:d.meta.arg;f(x,(g=y.queries[x])==null?void 0:g.endpointName,p,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=p.getState()[e],{queries:x}=n.extractRehydrationInfo(d);for(const[b,S]of Object.entries(x))f(b,S==null?void 0:S.endpointName,p,y.config)}};function f(d,p,v,g){const y=n.endpointDefinitions[p],x=(y==null?void 0:y.keepUnusedDataFor)??g.keepUnusedDataFor;if(x===1/0)return;const b=Math.max(0,Math.min(x,ope));if(!l(d)){const S=u[d];S&&clearTimeout(S),u[d]=setTimeout(()=>{l(d)||v.dispatch(a({queryCacheKey:d})),delete u[d]},b*1e3)}}return c},lpe=({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=Ds(Ul(n),xx(n)),f=Ds(Ul(n,i),Td(n,i));let d=[];const p=(y,x)=>{c(y)?g(eH(y,"invalidatesTags",r,o),x):f(y)?g([],x):a.util.invalidateTags.match(y)&&g(_I(y.payload,void 0,void 0,void 0,void 0,o),x)};function v(y){var x,b;for(const S in y.queries)if(((x=y.queries[S])==null?void 0:x.status)==="pending")return!0;for(const S in y.mutations)if(((b=y.mutations[S])==null?void 0:b.status)==="pending")return!0;return!1}function g(y,x){const b=x.getState(),S=b[e];if(d.push(...y),S.config.invalidationBehavior==="delayed"&&v(S))return;const w=d;if(d=[],w.length===0)return;const T=a.util.selectInvalidatedBy(b,w);t.batch(()=>{const C=Array.from(T.values());for(const{queryCacheKey:A}of C){const I=S.queries[A],k=l.currentSubscriptions[A]??{};I&&(md(k)===0?x.dispatch(u({queryCacheKey:A})):I.status!=="uninitialized"&&x.dispatch(s(I,A)))}})}return p},upe=({reducerPath:e,queryThunk:t,api:r,refetchQuery:n,internalState:i})=>{const a={},o=(d,p)=>{(r.internalActions.updateSubscriptionOptions.match(d)||r.internalActions.unsubscribeQueryResult.match(d))&&l(d.payload,p),(t.pending.match(d)||t.rejected.match(d)&&d.meta.condition)&&l(d.meta.arg,p),(t.fulfilled.match(d)||t.rejected.match(d)&&!d.meta.condition)&&s(d.meta.arg,p),r.util.resetApiState.match(d)&&c()};function s({queryCacheKey:d},p){const v=p.getState()[e],g=v.queries[d],y=i.currentSubscriptions[d];if(!g||g.status==="uninitialized")return;const{lowestPollingInterval:x,skipPollingIfUnfocused:b}=f(y);if(!Number.isFinite(x))return;const S=a[d];S!=null&&S.timeout&&(clearTimeout(S.timeout),S.timeout=void 0);const w=Date.now()+x;a[d]={nextPollTimestamp:w,pollingInterval:x,timeout:setTimeout(()=>{(v.config.focused||!b)&&p.dispatch(n(g,d)),s({queryCacheKey:d},p)},x)}}function l({queryCacheKey:d},p){const g=p.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 b=a[d],S=Date.now()+x;(!b||S<b.nextPollTimestamp)&&s({queryCacheKey:d},p)}function u(d){const p=a[d];p!=null&&p.timeout&&clearTimeout(p.timeout),delete a[d]}function c(){for(const d of Object.keys(a))u(d)}function f(d={}){let p=!1,v=Number.POSITIVE_INFINITY;for(let g in d)d[g].pollingInterval&&(v=Math.min(d[g].pollingInterval,v),p=d[g].skipPollingIfUnfocused||p);return{lowestPollingInterval:v,skipPollingIfUnfocused:p}}return o},cpe=({reducerPath:e,context:t,api:r,refetchQuery:n,internalState:i})=>{const{removeQueryResult:a}=r.internalActions,o=(l,u)=>{bI.match(l)&&s(u,"refetchOnFocus"),SI.match(l)&&s(u,"refetchOnReconnect")};function s(l,u){const c=l.getState()[e],f=c.queries,d=i.currentSubscriptions;t.batch(()=>{for(const p of Object.keys(d)){const v=f[p],g=d[p];if(!g||!v)continue;(Object.values(g).some(x=>x[u]===!0)||Object.values(g).every(x=>x[u]===void 0)&&c.config[u])&&(md(g)===0?l.dispatch(a({queryCacheKey:p})):v.status!=="uninitialized"&&l.dispatch(n(v,p)))}})}return o},sN=new Error("Promise never resolved before cacheEntryRemoved."),fpe=({api:e,reducerPath:t,context:r,queryThunk:n,mutationThunk:i,internalState:a})=>{const o=GT(n),s=GT(i),l=Ul(n,i),u={},c=(p,v,g)=>{const y=f(p);if(n.pending.match(p)){const x=g[t].queries[y],b=v.getState()[t].queries[y];!x&&b&&d(p.meta.arg.endpointName,p.meta.arg.originalArgs,y,v,p.meta.requestId)}else if(i.pending.match(p))v.getState()[t].mutations[y]&&d(p.meta.arg.endpointName,p.meta.arg.originalArgs,y,v,p.meta.requestId);else if(l(p)){const x=u[y];x!=null&&x.valueResolved&&(x.valueResolved({data:p.payload,meta:p.meta.baseQueryMeta}),delete x.valueResolved)}else if(e.internalActions.removeQueryResult.match(p)||e.internalActions.removeMutationResult.match(p)){const x=u[y];x&&(delete u[y],x.cacheEntryRemoved())}else if(e.util.resetApiState.match(p))for(const[x,b]of Object.entries(u))delete u[x],b.cacheEntryRemoved()};function f(p){return o(p)?p.meta.arg.queryCacheKey:s(p)?p.meta.arg.fixedCacheKey??p.meta.requestId:e.internalActions.removeQueryResult.match(p)?p.payload.queryCacheKey:e.internalActions.removeMutationResult.match(p)?jv(p.payload):""}function d(p,v,g,y,x){const b=r.endpointDefinitions[p],S=b==null?void 0:b.onCacheEntryAdded;if(!S)return;let w={};const T=new Promise(R=>{w.cacheEntryRemoved=R}),C=Promise.race([new Promise(R=>{w.valueResolved=R}),T.then(()=>{throw sN})]);C.catch(()=>{}),u[g]=w;const A=e.endpoints[p].select(b.type==="query"?v:g),I=y.dispatch((R,O,E)=>E),k={...y,getCacheEntry:()=>A(y.getState()),requestId:x,extra:I,updateCachedData:b.type==="query"?R=>y.dispatch(e.util.updateQueryData(p,v,R)):void 0,cacheDataLoaded:C,cacheEntryRemoved:T},P=S(v,k);Promise.resolve(P).catch(R=>{if(R!==sN)throw R})}return c},dpe=({api:e,context:t,queryThunk:r,mutationThunk:n})=>{const i=vM(r,n),a=Td(r,n),o=Ul(r,n),s={};return(u,c)=>{var f,d;if(i(u)){const{requestId:p,arg:{endpointName:v,originalArgs:g}}=u.meta,y=t.endpointDefinitions[v],x=y==null?void 0:y.onQueryStarted;if(x){const b={},S=new Promise((A,I)=>{b.resolve=A,b.reject=I});S.catch(()=>{}),s[p]=b;const w=e.endpoints[v].select(y.type==="query"?g:p),T=c.dispatch((A,I,k)=>k),C={...c,getCacheEntry:()=>w(c.getState()),requestId:p,extra:T,updateCachedData:y.type==="query"?A=>c.dispatch(e.util.updateQueryData(v,g,A)):void 0,queryFulfilled:S};x(g,C)}}else if(o(u)){const{requestId:p,baseQueryMeta:v}=u.meta;(f=s[p])==null||f.resolve({data:u.payload,meta:v}),delete s[p]}else if(a(u)){const{requestId:p,rejectedWithValue:v,baseQueryMeta:g}=u.meta;(d=s[p])==null||d.reject({error:u.payload??u.error,isUnhandledError:!v,meta:g}),delete s[p]}}},ppe=({api:e,context:{apiUid:t},reducerPath:r})=>(n,i)=>{e.util.resetApiState.match(n)&&i.dispatch(e.internalActions.middlewareRegistered(t))},hpe=({api:e,queryThunk:t,internalState:r})=>{const n=`${e.reducerPath}/subscriptions`;let i=null,a=null;const{updateSubscriptionOptions:o,unsubscribeQueryResult:s}=e.internalActions,l=(p,v)=>{var y,x,b;if(o.match(v)){const{queryCacheKey:S,requestId:w,options:T}=v.payload;return(y=p==null?void 0:p[S])!=null&&y[w]&&(p[S][w]=T),!0}if(s.match(v)){const{queryCacheKey:S,requestId:w}=v.payload;return p[S]&&delete p[S][w],!0}if(e.internalActions.removeQueryResult.match(v))return delete p[v.payload.queryCacheKey],!0;if(t.pending.match(v)){const{meta:{arg:S,requestId:w}}=v,T=p[x=S.queryCacheKey]??(p[x]={});return T[`${w}_running`]={},S.subscribe&&(T[w]=S.subscriptionOptions??T[w]??{}),!0}let g=!1;if(t.fulfilled.match(v)||t.rejected.match(v)){const S=p[v.meta.arg.queryCacheKey]||{},w=`${v.meta.requestId}_running`;g||(g=!!S[w]),delete S[w]}if(t.rejected.match(v)){const{meta:{condition:S,arg:w,requestId:T}}=v;if(S&&w.subscribe){const C=p[b=w.queryCacheKey]??(p[b]={});C[T]=w.subscriptionOptions??C[T]??{},g=!0}}return g},u=()=>r.currentSubscriptions,d={getSubscriptions:u,getSubscriptionCount:p=>{const g=u()[p]??{};return md(g)},isRequestSubscribed:(p,v)=>{var y;const g=u();return!!((y=g==null?void 0:g[p])!=null&&y[v])}};return(p,v)=>{if(i||(i=JSON.parse(JSON.stringify(r.currentSubscriptions))),e.util.resetApiState.match(p))return i=r.currentSubscriptions={},a=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(p))return[!1,d];const g=l(r.currentSubscriptions,p);let y=!0;if(g){a||(a=setTimeout(()=>{const S=JSON.parse(JSON.stringify(r.currentSubscriptions)),[,w]=w$(i,()=>S);v.next(e.internalActions.subscriptionsUpdated(w)),i=S,a=null},500));const x=typeof p.type=="string"&&!!p.type.startsWith(n),b=t.rejected.match(p)&&p.meta.condition&&!!p.meta.arg.subscribe;y=!x&&!b}return[y,!1]}};function vpe(e){const{reducerPath:t,queryThunk:r,api:n,context:i}=e,{apiUid:a}=i,o={invalidateTags:Jn(`${t}/invalidateTags`)},s=f=>f.type.startsWith(`${t}/`),l=[ppe,spe,lpe,upe,fpe,dpe];return{middleware:f=>{let d=!1;const v={...e,internalState:{currentSubscriptions:{}},refetchQuery:c,isThisApiSliceAction:s},g=l.map(b=>b(v)),y=hpe(v),x=cpe(v);return b=>S=>{if(!g$(S))return b(S);d||(d=!0,f.dispatch(n.internalActions.middlewareRegistered(a)));const w={...f,next:b},T=f.getState(),[C,A]=y(S,w,T);let I;if(C?I=b(S):I=A,f.getState()[t]&&(x(S,w,T),s(S)||i.hasRehydrationInfo(S)))for(let k of g)k(S,w,T);return I}},actions:o};function c(f,d,p={}){return r({type:"query",endpointName:f.endpointName,originalArgs:f.originalArgs,subscribe:!1,forceRefetch:!0,queryCacheKey:d,...p})}}function hl(e,...t){return Object.assign(e,...t)}var lN=Symbol(),nH=({createSelector:e=pM}={})=>({name:lN,init(t,{baseQuery:r,tagTypes:n,reducerPath:i,serializeQueryArgs:a,keepUnusedDataFor:o,refetchOnMountOrArgChange:s,refetchOnFocus:l,refetchOnReconnect:u,invalidationBehavior:c},f){vq();const d=H=>H;Object.assign(t,{reducerPath:i,endpoints:{},internalActions:{onOnline:SI,onOffline:Q6,onFocus:bI,onFocusLost:K6},util:{}});const{queryThunk:p,mutationThunk:v,patchQueryData:g,updateQueryData:y,upsertQueryData:x,prefetch:b,buildMatchThunkActions:S}=rpe({baseQuery:r,reducerPath:i,context:f,api:t,serializeQueryArgs:a,assertTagType:d}),{reducer:w,actions:T}=npe({context:f,queryThunk:p,mutationThunk:v,reducerPath:i,assertTagType:d,config:{refetchOnFocus:l,refetchOnReconnect:u,refetchOnMountOrArgChange:s,keepUnusedDataFor:o,reducerPath:i,invalidationBehavior:c}});hl(t.util,{patchQueryData:g,updateQueryData:y,upsertQueryData:x,prefetch:b,resetApiState:T.resetApiState}),hl(t.internalActions,T);const{middleware:C,actions:A}=vpe({reducerPath:i,context:f,queryThunk:p,mutationThunk:v,api:t,assertTagType:d});hl(t.util,A),hl(t,{reducer:w,middleware:C});const{buildQuerySelector:I,buildMutationSelector:k,selectInvalidatedBy:P,selectCachedArgsForQuery:R}=ipe({serializeQueryArgs:a,reducerPath:i,createSelector:e});hl(t.util,{selectInvalidatedBy:P,selectCachedArgsForQuery:R});const{buildInitiateQuery:O,buildInitiateMutation:E,getRunningMutationThunk:z,getRunningMutationsThunk:B,getRunningQueriesThunk:W,getRunningQueryThunk:X}=tpe({queryThunk:p,mutationThunk:v,api:t,serializeQueryArgs:a,context:f});return hl(t.util,{getRunningMutationThunk:z,getRunningMutationsThunk:B,getRunningQueryThunk:X,getRunningQueriesThunk:W}),{name:lN,injectEndpoint(H,q){var Y;const F=t;(Y=F.endpoints)[H]??(Y[H]={}),J6(q)?hl(F.endpoints[H],{name:H,select:I(H,q),initiate:O(H,q)},S(p,H)):Qde(q)&&hl(F.endpoints[H],{name:H,select:k(),initiate:E(H)},S(v,H))}}}});nH();function gpe(e){return e.type==="query"}function mpe(e){return e.type==="mutation"}function My(e,...t){return Object.assign(e,...t)}function fw(e){return e.replace(e[0],e[0].toUpperCase())}var Df=WeakMap?new WeakMap:void 0,ype=({endpointName:e,queryArgs:t})=>{let r="";const n=Df==null?void 0:Df.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=jo(o)?Object.keys(o).sort().reduce((s,l)=>(s[l]=o[l],s),{}):o,o));jo(t)&&(Df==null||Df.set(t,i)),r=i}return`${e}(${r})`},dw=Symbol();function uN(e,t,r,n){const i=V.useMemo(()=>({queryArgs:e,serialized:typeof e=="object"?t({queryArgs:e,endpointDefinition:r,endpointName:n}):e}),[e,t,r,n]),a=V.useRef(i);return V.useEffect(()=>{a.current.serialized!==i.serialized&&(a.current=i)},[i]),a.current.serialized===i.serialized?a.current.queryArgs:e}function pw(e){const t=V.useRef(e);return V.useEffect(()=>{Vl(t.current,e)||(t.current=e)},[e]),Vl(t.current,e)?t.current:e}var xpe=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",bpe=xpe(),Spe=()=>typeof navigator<"u"&&navigator.product==="ReactNative",_pe=Spe(),wpe=()=>bpe||_pe?V.useLayoutEffect:V.useEffect,Cpe=wpe(),Tpe=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:X6.pending}:e;function Ape({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():V.useEffect;return{buildQueryHooks:d,buildMutationHook:p,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 b=x!==void 0,S=v.isLoading,w=(!g||g.isLoading||g.isUninitialized)&&!b&&S,T=v.isSuccess||S&&b;return{...v,data:x,currentData:v.data,isFetching:S,isLoading:w,isSuccess:T}}function f(v,g){const y=r(),x=pw(g);return V.useCallback((b,S)=>y(e.util.prefetch(v,b,{...x,...S})),[v,y,x])}function d(v){const g=(b,{refetchOnReconnect:S,refetchOnFocus:w,refetchOnMountOrArgChange:T,skip:C=!1,pollingInterval:A=0,skipPollingIfUnfocused:I=!1}={})=>{const{initiate:k}=e.endpoints[v],P=r(),R=V.useRef(void 0);if(!R.current){const F=P(e.internalActions.internal_getRTKQSubscriptions());R.current=F}const O=uN(C?fc:b,ype,l.endpointDefinitions[v],v),E=pw({refetchOnReconnect:S,refetchOnFocus:w,pollingInterval:A,skipPollingIfUnfocused:I}),z=V.useRef(!1),B=V.useRef(void 0);let{queryCacheKey:W,requestId:X}=B.current||{},H=!1;W&&X&&(H=R.current.isRequestSubscribed(W,X));const q=!H&&z.current;return u(()=>{z.current=H}),u(()=>{q&&(B.current=void 0)},[q]),u(()=>{var Z;const F=B.current;if(O===fc){F==null||F.unsubscribe(),B.current=void 0;return}const Y=(Z=B.current)==null?void 0:Z.subscriptionOptions;if(!F||F.arg!==O){F==null||F.unsubscribe();const j=P(k(O,{subscriptionOptions:E,forceRefetch:T}));B.current=j}else E!==Y&&F.updateSubscriptionOptions(E)},[P,k,T,O,E,q]),V.useEffect(()=>()=>{var F;(F=B.current)==null||F.unsubscribe(),B.current=void 0},[]),V.useMemo(()=>({refetch:()=>{var F;if(!B.current)throw new Error(zn(38));return(F=B.current)==null?void 0:F.refetch()}}),[])},y=({refetchOnReconnect:b,refetchOnFocus:S,pollingInterval:w=0,skipPollingIfUnfocused:T=!1}={})=>{const{initiate:C}=e.endpoints[v],A=r(),[I,k]=V.useState(dw),P=V.useRef(void 0),R=pw({refetchOnReconnect:b,refetchOnFocus:S,pollingInterval:w,skipPollingIfUnfocused:T});u(()=>{var B,W;const z=(B=P.current)==null?void 0:B.subscriptionOptions;R!==z&&((W=P.current)==null||W.updateSubscriptionOptions(R))},[R]);const O=V.useRef(R);u(()=>{O.current=R},[R]);const E=V.useCallback(function(z,B=!1){let W;return t(()=>{var X;(X=P.current)==null||X.unsubscribe(),P.current=W=A(C(z,{subscriptionOptions:O.current,forceRefetch:!B})),k(z)}),W},[A,C]);return V.useEffect(()=>()=>{var z;(z=P==null?void 0:P.current)==null||z.unsubscribe()},[]),V.useEffect(()=>{I!==dw&&!P.current&&E(I,!0)},[I,E]),V.useMemo(()=>[E,I],[E,I])},x=(b,{skip:S=!1,selectFromResult:w}={})=>{const{select:T}=e.endpoints[v],C=uN(S?fc:b,s,l.endpointDefinitions[v],v),A=V.useRef(void 0),I=V.useMemo(()=>o([T(C),(E,z)=>z,E=>C],c,{memoizeOptions:{resultEqualityCheck:Vl}}),[T,C]),k=V.useMemo(()=>w?o([I],w,{devModeChecks:{identityFunctionCheck:"never"}}):I,[I,w]),P=n(E=>k(E,A.current),Vl),R=i(),O=I(R.getState(),A.current);return Cpe(()=>{A.current=O},[O]),P};return{useQueryState:x,useQuerySubscription:g,useLazyQuerySubscription:y,useLazyQuery(b){const[S,w]=y(b),T=x(w,{...b,skip:w===dw}),C=V.useMemo(()=>({lastArg:w}),[w]);return V.useMemo(()=>[S,T,C],[S,T,C])},useQuery(b,S){const w=g(b,S),T=x(b,{selectFromResult:b===fc||S!=null&&S.skip?void 0:Tpe,...S}),{data:C,status:A,isLoading:I,isSuccess:k,isError:P,error:R}=T;return V.useDebugValue({data:C,status:A,isLoading:I,isSuccess:k,isError:P,error:R}),V.useMemo(()=>({...T,...w}),[T,w])}}}function p(v){return({selectFromResult:g,fixedCacheKey:y}={})=>{const{select:x,initiate:b}=e.endpoints[v],S=r(),[w,T]=V.useState();V.useEffect(()=>()=>{w!=null&&w.arg.fixedCacheKey||w==null||w.reset()},[w]);const C=V.useCallback(function(Y){const Z=S(b(Y,{fixedCacheKey:y}));return T(Z),Z},[S,b,y]),{requestId:A}=w||{},I=V.useMemo(()=>x({fixedCacheKey:y,requestId:w==null?void 0:w.requestId}),[y,w,x]),k=V.useMemo(()=>g?o([I],g):I,[g,I]),P=n(k,Vl),R=y==null?w==null?void 0:w.arg.originalArgs:void 0,O=V.useCallback(()=>{t(()=>{w&&T(void 0),y&&S(e.internalActions.removeMutationResult({requestId:A,fixedCacheKey:y}))})},[S,y,w,A]),{endpointName:E,data:z,status:B,isLoading:W,isSuccess:X,isError:H,error:q}=P;V.useDebugValue({endpointName:E,data:z,status:B,isLoading:W,isSuccess:X,isError:H,error:q});const F=V.useMemo(()=>({...P,originalArgs:R,reset:O}),[P,R,O]);return V.useMemo(()=>[C,F],[C,F])}}}var Mpe=Symbol(),Ipe=({batch:e=QX,hooks:t={useDispatch:G$,useSelector:E$,useStore:H$},createSelector:r=pM,unstable__sideEffectsInRender:n=!1,...i}={})=>({name:Mpe,init(a,{serializeQueryArgs:o},s){const l=a,{buildQueryHooks:u,buildMutationHook:c,usePrefetch:f}=Ape({api:a,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:n,createSelector:r},serializeQueryArgs:o,context:s});return My(l,{usePrefetch:f}),My(s,{batch:e}),{injectEndpoint(d,p){if(gpe(p)){const{useQuery:v,useLazyQuery:g,useLazyQuerySubscription:y,useQueryState:x,useQuerySubscription:b}=u(d);My(l.endpoints[d],{useQuery:v,useLazyQuery:g,useLazyQuerySubscription:y,useQueryState:x,useQuerySubscription:b}),a[`use${fw(d)}Query`]=v,a[`useLazy${fw(d)}Query`]=g}else if(mpe(p)){const v=c(d);My(l.endpoints[d],{useMutation:v}),a[`use${fw(d)}Mutation`]=v}}}}}),kpe=rH(nH(),Ipe());const Ppe=(e,t,r)=>Kde(window.baseUrl?{baseUrl:window.baseUrl,credentials:"include"}:void 0)(e,t,r),x1=kpe({baseQuery:Ppe,endpoints:e=>({getStats:e.query({query:()=>"stats/requests",transformResponse:sd}),getTasks:e.query({query:()=>"tasks",transformResponse:sd}),getExceptions:e.query({query:()=>"exceptions",transformResponse:sd}),getLogs:e.query({query:()=>"logs",transformResponse:sd}),startSwarm:e.mutation({query:t=>({url:"swarm",method:"POST",body:Dde(EL(t)),headers:{"content-type":"application/x-www-form-urlencoded"}})}),updateUserSettings:e.mutation({query:t=>({url:"user",method:"POST",body:EL(t)})})})}),{useGetStatsQuery:Dpe,useGetTasksQuery:Rpe,useGetExceptionsQuery:Lpe,useGetLogsQuery:Epe,useStartSwarmMutation:Ope,useUpdateUserSettingsMutation:Npe}=x1;function Lg(e,{payload:t}){return Pde(e,t)}const zpe=Vo,iH=va({name:"swarm",initialState:zpe,reducers:{setSwarm:Lg}}),wI=iH.actions,Bpe=iH.reducer;function Fpe({availableTasks:e,userToEdit:t,handleEditUser:r}){const{tasks:n,...i}=t.userClass;return N.jsx(q6,{onSubmit:r,children:N.jsxs(Xt,{sx:{display:"flex",flexDirection:"column",rowGap:4,my:2},children:[N.jsx(Vt,{children:`${t.userClassName} Settings`}),N.jsx(oI,{defaultValue:n,label:"Tasks",multiple:!0,name:"tasks",options:e}),Object.entries(i).map(([a,o])=>N.jsx(Sc,{defaultValue:o,inputProps:{"data-type":typeof o=="number"?"number":"text"},label:UT(a),name:a},`user-to-edit-${a}`)),N.jsx(Yo,{size:"large",type:"submit",variant:"contained",children:"Save"})]})})}function $pe({availableUserClasses:e,availableUserTasks:t,selectedUserClasses:r,setSelectedUserClasses:n,setSwarm:i,users:a}){const[o,s]=V.useState(!1),[l,u]=V.useState(),[c]=Npe(),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)),p=r.length,v=e.length,g=y=>y.target.checked?n(e):n([]);return N.jsxs(N.Fragment,{children:[N.jsx(Xt,{sx:{position:"relative",border:"1px",borderColor:"divider",borderStyle:"solid",padding:2,borderRadius:1},children:N.jsxs(Xt,{sx:{maxHeight:"30vh",overflow:"auto"},children:[N.jsx(jx,{shrink:!0,sx:{position:"absolute",backgroundColor:"background.paper",width:"fit-content",top:"0",marginTop:"-5px",padding:"0 5px"},children:"User Classes"}),N.jsx(UV,{children:N.jsx(a6,{component:ao,children:N.jsxs(n6,{children:[N.jsx(o6,{children:N.jsx(v1,{children:N.jsx(ic,{colSpan:4,padding:"checkbox",children:N.jsx(a2,{checked:v>0&&p===v,indeterminate:p>0&&p<v,onChange:g})})})}),N.jsx(i6,{children:Object.entries(a).map(([y,x])=>N.jsxs(v1,{hover:!0,children:[N.jsx(ic,{onClick:d(y),padding:"checkbox",children:N.jsx(a2,{checked:r.includes(y)})}),N.jsx(ic,{children:y}),N.jsx(ic,{children:N.jsx(Vt,{variant:"subtitle2",children:x.host})}),N.jsx(ic,{align:"right",children:N.jsx(Ws,{onClick:()=>{s(!o),u({userClass:x,userClassName:y})},children:N.jsx(Vde,{})})})]},`user-class-${y}`))})]})})})]})}),N.jsx(Kx,{onClose:()=>s(!1),open:o,children:l&&N.jsx(Fpe,{availableTasks:t[l.userClassName],handleEditUser:f,userToEdit:l})})]})}const Vpe={setSwarm:wI.setSwarm},Hpe=({swarm:{availableUserTasks:e,users:t}})=>({availableUserTasks:e,users:t}),Gpe=Zi(Hpe,Vpe)($pe);function Wpe({allProfiles:e,availableShapeClasses:t,availableUserClasses:r,host:n,extraOptions:i,hideCommonOptions:a,shapeUseCommonOptions:o,numUsers:s,userCount:l,overrideHostWarning:u,profile:c,runTime:f,setSwarm:d,showUserclassPicker:p,spawnRate:v,alert:g,isDisabled:y=!1,isEditSwarm:x=!1,onFormChange:b,onFormSubmit:S,advancedOptions:w}){const[T]=Ope(),[C,A]=V.useState(""),[I,k]=V.useState(r),P=async E=>{const{data:z}=await T({...E,...p&&I?{userClasses:I}:{}});z&&z.success?d({state:Nn.RUNNING,host:E.host||n,runTime:E.runTime,spawnRate:E.spawnRate,userCount:E.userCount,profile:E.profile}):A(z?z.message:"An unknown error occured."),S&&S(E)},R=E=>{C&&A(""),b&&b(E)},O=E=>{if(!o){const z=E.target.value!==t[0];d({hideCommonOptions:z})}};return N.jsxs(Pg,{maxWidth:"md",sx:{my:2},children:[N.jsx(Vt,{component:"h2",noWrap:!0,variant:"h6",children:x?"Edit running load test":"Start new load test"}),!x&&p&&N.jsx(Xt,{marginBottom:2,marginTop:2,children:N.jsx(Gpe,{availableUserClasses:r,selectedUserClasses:I,setSelectedUserClasses:k})}),N.jsx(q6,{onChange:R,onSubmit:P,children:N.jsxs(Xt,{sx:{marginBottom:2,marginTop:2,display:"flex",flexDirection:"column",rowGap:4},children:[!x&&p&&N.jsx(oI,{label:"Shape Class",name:"shapeClass",onChange:O,options:t}),N.jsx(qO,{defaultValue:a&&"0"||l||s||1,disabled:!!a,label:"Number of users (peak concurrency)",name:"userCount",required:!0,title:a?"Disabled for tests using LoadTestShape class":""}),N.jsx(qO,{defaultValue:a&&"0"||v||1,disabled:!!a,label:"Ramp up (users started/second)",name:"spawnRate",required:!0,title:a?"Disabled for tests using LoadTestShape class":""}),!x&&N.jsxs(N.Fragment,{children:[N.jsx(Sc,{defaultValue:n,label:`Host ${u?"(setting this will override the host for the User classes)":""}`,name:"host"}),N.jsxs(HM,{children:[N.jsx(WM,{expandIcon:N.jsx(xI,{}),children:N.jsx(Vt,{children:"Advanced options"})}),N.jsx(GM,{children:N.jsxs(Xt,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[N.jsx(Sc,{defaultValue:f,disabled:!!a,label:"Run time (e.g. 20, 20s, 3m, 2h, 1h20m, 3h30m10s, etc.)",name:"runTime",sx:{width:"100%"},title:a?"Disabled for tests using LoadTestShape class":""}),N.jsx(mne,{defaultValue:c,disablePortal:!0,freeSolo:!0,options:e&&Array.isArray(e)?e:[],renderInput:E=>N.jsx(Sc,{...E,defaultValue:c,label:"Profile",name:"profile"})}),w&&w.map(({component:E,...z},B)=>E?N.jsx(E,{...z}):V.createElement(yI,{...z,key:`advanced-parameter-${B}`}))]})})]})]}),!!i&&!Y6(i)&&N.jsx(Bde,{extraOptions:i}),g&&!C&&N.jsx(Ml,{severity:g.level||"info",children:g.message}),C&&N.jsx(Ml,{severity:"error",children:C}),N.jsx(Yo,{disabled:y,size:"large",type:"submit",variant:"contained",children:x?"Update":"Start"})]})})]})}const jpe=({swarm:{allProfiles:e,availableShapeClasses:t,availableUserClasses:r,extraOptions:n,hideCommonOptions:i,shapeUseCommonOptions:a,host:o,numUsers:s,userCount:l,overrideHostWarning:u,profile:c,runTime:f,spawnRate:d,showUserclassPicker:p}},v)=>({allProfiles:e||(v==null?void 0:v.allProfiles),availableShapeClasses:t,availableUserClasses:r,extraOptions:n,hideCommonOptions:i,shapeUseCommonOptions:a,host:o,overrideHostWarning:u,profile:c,showUserclassPicker:p,numUsers:s,userCount:l,runTime:f,spawnRate:d}),Upe={setSwarm:wI.setSwarm},CI=Zi(jpe,Upe)(Wpe);function Ype(e){const[t,r]=V.useState(!1),{hideCommonOptions:n}=Di(({swarm:i})=>i);return N.jsxs(N.Fragment,{children:[N.jsx(t6,{title:n?"Disabled for tests using LoadTestShape class":"",children:N.jsx(Xt,{children:N.jsx(Yo,{color:"secondary",disabled:!!n,onClick:()=>r(!0),sx:{minHeight:"100%"},type:"button",variant:"contained",children:"Edit"})})}),N.jsx(Kx,{onClose:()=>r(!1),open:t,children:N.jsx(CI,{...e,isEditSwarm:!0,onFormSubmit:()=>r(!1)})})]})}function qpe(e){const[t,r]=V.useState(!1);return N.jsxs(N.Fragment,{children:[N.jsx(Yo,{color:"success",onClick:()=>r(!0),type:"button",variant:"contained",children:"New"}),N.jsx(Kx,{onClose:()=>r(!1),open:t,children:N.jsx(CI,{...e})})]})}function Xpe(){const e=()=>{fetch((window.baseUrl?`${window.baseUrl}/`:"")+"stats/reset",window.baseUrl?{credentials:"include"}:void 0)};return N.jsx(Yo,{color:"warning",onClick:e,type:"button",variant:"contained",children:"Reset"})}function Zpe(){const[e,t]=V.useState(!1);V.useEffect(()=>{t(!1)},[]);const r=()=>{fetch((window.baseUrl?`${window.baseUrl}/`:"")+"stop",window.baseUrl?{credentials:"include"}:void 0),t(!0)};return N.jsx(Yo,{color:"error",disabled:e,onClick:r,type:"button",variant:"contained",children:e?"Loading":"Stop"})}function cN(){const e=Di(({swarm:t})=>t.state);return e===Nn.READY?null:N.jsxs(Xt,{sx:{display:"flex",columnGap:2,marginY:"auto",height:"50px"},children:[e===Nn.STOPPED?N.jsx(qpe,{}):N.jsxs(N.Fragment,{children:[N.jsx(Ype,{}),N.jsx(Zpe,{})]}),N.jsx(Xpe,{})]})}function Kpe(){const e=es(),[t,r]=V.useState(!1);V.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(Hee,{position:"static",children:N.jsx(Pg,{maxWidth:"xl",children:N.jsxs(Sse,{disableGutters:!0,sx:{display:"flex",justifyContent:"space-between",columnGap:2},children:[N.jsx(hn,{color:"inherit",href:"/",sx:{display:"flex",alignItems:"center"},underline:"none",children:N.jsx(s6,{})}),N.jsx(Ws,{"aria-label":"menu",color:"inherit",edge:"start",onClick:n(!0),sx:{display:{xs:"block",md:"none"}},children:N.jsx(kde,{})}),N.jsxs(Xt,{sx:{display:{xs:"none",md:"flex"},columnGap:{md:2,lg:6}},children:[N.jsx(UO,{}),N.jsx(cN,{}),N.jsx(g2,{})]})]})})}),N.jsx(Sie,{anchor:"right",onClose:n(!1),open:t,children:N.jsxs(Xt,{sx:{display:"flex",flexDirection:"column",columnGap:{md:2,lg:6},rowGap:2,p:2,maxWidth:"100vw"},children:[N.jsx(Xt,{sx:{display:"flex",justifyContent:"flex-end"},children:N.jsx(g2,{})}),N.jsx(cN,{}),N.jsx(UO,{})]})})]})}function Qpe({children:e}){return N.jsxs(N.Fragment,{children:[N.jsxs(Xt,{sx:{minHeight:"calc(100vh - var(--footer-height))"},children:[N.jsx(Kpe,{}),N.jsx("main",{children:e})]}),N.jsx(Ade,{})]})}const aH=e=>e.includes("WARNING")||e.includes("ERROR")||e.includes("CRITICAL"),oH="logViewer";function Jx(e,t,{shouldRunInterval:r,immediate:n}={shouldRunInterval:!0,immediate:!1}){const i=V.useRef(e);V.useEffect(()=>{i.current=e},[e]),V.useEffect(()=>{if(!r)return;n&&i.current();const a=setInterval(()=>i.current(),t);return()=>{clearInterval(a)}},[t,r])}const Jpe={},sH=va({name:"notification",initialState:Jpe,reducers:{setNotification:Lg}}),lH=sH.actions,ehe=sH.reducer;function the(e,{key:t,shouldNotify:r}){const n=_s(lH.setNotification),i=Di(({url:{query:o}})=>o&&o.tab),a=`${t}Notification`;V.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 rhe={master:[],workers:{}},uH=va({name:"logViewer",initialState:rhe,reducers:{setLogs:Lg}}),nhe=uH.actions,ihe=uH.reducer,cH=e=>e.reduce((t,r)=>t.concat(Array.isArray(r)?cH(r):r),[]),ahe={master:[],workers:{}};function ohe(){const e=Di(({swarm:l})=>l),t=_s(nhe.setLogs),{data:r,refetch:n}=Epe(),i=r||ahe,a=V.useMemo(()=>cH(Object.values(i.workers)),[i.workers]),o=V.useMemo(()=>[...i.master].concat(a),[i.master,i.workers]),s=V.useCallback(l=>o.slice(localStorage[l]).some(aH),[o]);return Jx(n,5e3,{shouldRunInterval:e.state===Nn.SPAWNING||e.state==Nn.RUNNING}),the(o,{key:oH,shouldNotify:s}),V.useEffect(()=>{t(i)},[i]),i}var sh={},fN;function she(){if(fN)return sh;fN=1;var e=ou();Object.defineProperty(sh,"__esModule",{value:!0}),sh.default=void 0;var t=e(su()),r=Gs(),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 sh.default=n,sh}var lhe=she();const fH=Xi(lhe);function uhe(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 che(e,{hasTotalRow:t=!1,defaultSortKey:r="name"}={hasTotalRow:!1,defaultSortKey:"name"}){const[n,i]=V.useState(e),[a,o]=V.useState(!1),s=V.useRef(),l=c=>{const d=(t?e.slice(0,-1):[...e]).sort(uhe(c,c===s.current&&!a));i(t?[...d,...e.slice(-1)]:d)},u=V.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 V.useEffect(()=>{e.length?l(s.current||r):l.length&&i(e)},[e]),{onTableHeadClick:u,sortedRows:n,currentSortField:s.current}}const Hh=(e,t=0)=>{const r=Math.pow(10,t);return Math.round(e*r)/r};function fhe({content:e,formatter:t,round:r,markdown:n}){return t?t(e):r?Hh(e,r):n?N.jsx(cc,{content:e}):e}function Eg({rows:e,structure:t,hasTotalRow:r,defaultSortKey:n}){const{onTableHeadClick:i,sortedRows:a,currentSortField:o}=che(e,{hasTotalRow:r,defaultSortKey:n});return N.jsx(a6,{component:ao,children:N.jsxs(n6,{children:[N.jsx(o6,{sx:{position:"sticky",top:0,zIndex:2,backgroundColor:"background.paper"},children:N.jsx(v1,{children:t.map(({title:s,key:l})=>N.jsx(ic,{"data-sortkey":l,onClick:i,sx:{cursor:"pointer",color:o===l?"primary.main":"text.primary"},children:s},`table-head-${l}`))})}),N.jsx(i6,{children:a.map((s,l)=>N.jsx(v1,{children:t.map(({key:u,...c},f)=>N.jsx(ic,{children:N.jsx(fhe,{content:s[u],...c})},`table-row=${f}`))},`${s.name}-${l}`))})]})})}function dhe({rows:e,tableStructure:t}){return t?N.jsx(Eg,{rows:e,structure:t}):null}const phe=({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:j$(a),...o})):null,rows:i?i.data:[]}},hhe=Zi(phe)(dhe),vhe=[{key:"count",title:"# occurrences"},{key:"msg",title:"Message",markdown:!0},{key:"traceback",title:"Traceback",markdown:!0}];function ghe({exceptions:e}){return N.jsx(Eg,{rows:e,structure:vhe})}const mhe=({ui:{exceptions:e}})=>({exceptions:e}),yhe=Zi(mhe)(ghe),xhe={totalRps:0,failRatio:0,startTime:"",stats:[],errors:[],exceptions:[],charts:(Vo.history||[]).reduce(Qx,{}),ratios:{},userCount:0};var p$;const bhe=(p$=Vo.percentilesToChart)==null?void 0:p$.reduce((e,t)=>({...e,[`responseTimePercentile${t}`]:{value:null}}),{}),She=e=>Qx(e,{...bhe,currentRps:{value:null},currentFailPerSec:{value:null},totalAvgResponseTime:{value:null},userCount:{value:null},time:""}),dH=va({name:"ui",initialState:xhe,reducers:{setUi:Lg,updateCharts:(e,{payload:t})=>({...e,charts:Qx(e.charts,t)}),updateChartMarkers:(e,{payload:t})=>({...e,charts:{...She(e.charts),markers:e.charts.markers?[...e.charts.markers,t]:[(e.charts.time||[""])[0],t]}})}}),pv=dH.actions,_he=dH.reducer,whe=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)},Che=()=>window.location.search?eZ(window.location.search):null,The={query:Che()},pH=va({name:"url",initialState:The,reducers:{setUrl:Lg}}),Ahe=pH.actions,Mhe=pH.reducer,Ihe=gx({[x1.reducerPath]:x1.reducer,logViewer:ihe,notification:ehe,swarm:Bpe,theme:j6,ui:_he,url:Mhe}),khe=I$({reducer:Ihe,middleware:e=>e().concat(x1.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 x2=function(e,t){return x2=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])},x2(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");x2(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Phe=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Dhe=function(){function e(){this.browser=new Phe,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}(),kt=new Dhe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(kt.wxa=!0,kt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?kt.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(kt.node=!0,kt.svgSupported=!0):Rhe(navigator.userAgent,kt);function Rhe(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 TI=12,hH="sans-serif",Xl=TI+"px "+hH,Lhe=20,Ehe=100,Ohe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Nhe(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)-Lhe)/Ehe;t[n]=i}return t}var zhe=Nhe(Ohe),Zl={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,n){if(!e){var i=Zl.createCanvas();e=i&&i.getContext("2d")}if(e)return t!==n&&(t=e.font=n||Xl),e.measureText(r);r=r||"",n=n||Xl;var a=/((?:\d+)?\.?\d*)px/.exec(n),o=a&&+a[1]||TI,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}},vH=Xo(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),gH=Xo(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),qd=Object.prototype.toString,eb=Array.prototype,Bhe=eb.forEach,Fhe=eb.filter,AI=eb.slice,$he=eb.map,dN=(function(){}).constructor,Iy=dN?dN.prototype:null,MI="__proto__",Vhe=2311;function mH(){return Vhe++}function II(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console<"u"&&console.error.apply(console,e)}function Ke(e){if(e==null||typeof e!="object")return e;var t=e,r=qd.call(e);if(r==="[object Array]"){if(!hv(e)){t=[];for(var n=0,i=e.length;n<i;n++)t[n]=Ke(e[n])}}else if(gH[r]){if(!hv(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(!vH[r]&&!hv(e)&&!Ld(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==MI&&(t[o]=Ke(e[o]))}return t}function ht(e,t,r){if(!Xe(t)||!Xe(e))return r?Ke(t):e;for(var n in t)if(t.hasOwnProperty(n)&&n!==MI){var i=e[n],a=t[n];Xe(a)&&Xe(i)&&!he(a)&&!he(i)&&!Ld(a)&&!Ld(i)&&!pN(a)&&!pN(i)&&!hv(a)&&!hv(i)?ht(i,a,r):(r||!(n in e))&&(e[n]=Ke(t[n]))}return e}function kI(e,t){for(var r=e[0],n=1,i=e.length;n<i;n++)r=ht(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!==MI&&(e[r]=t[r]);return e}function Ye(e,t,r){for(var n=Dt(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 bt(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 Hhe(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 Yr(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 Ye(e,t,r)}function Bn(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function $(e,t,r){if(e&&t)if(e.forEach&&e.forEach===Bhe)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 ve(e,t,r){if(!e)return[];if(!t)return PI(e);if(e.map&&e.map===$he)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 Xo(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 tr(e,t,r){if(!e)return[];if(!t)return PI(e);if(e.filter&&e.filter===Fhe)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 Ghe(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 Dt(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 Whe(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return function(){return e.apply(t,r.concat(AI.call(arguments)))}}var Ne=Iy&&je(Iy.bind)?Iy.call.bind(Iy.bind):Whe;function at(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(AI.call(arguments)))}}function he(e){return Array.isArray?Array.isArray(e):qd.call(e)==="[object Array]"}function je(e){return typeof e=="function"}function De(e){return typeof e=="string"}function b2(e){return qd.call(e)==="[object String]"}function Bt(e){return typeof e=="number"}function Xe(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function pN(e){return!!vH[qd.call(e)]}function Pi(e){return!!gH[qd.call(e)]}function Ld(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function tb(e){return e.colorStops!=null}function jhe(e){return e.image!=null}function Uhe(e){return qd.call(e)==="[object RegExp]"}function Uv(e){return e!==e}function gn(){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 it(e,t){return e??t}function Ho(e,t,r){return e??t??r}function PI(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return AI.apply(e,t)}function DI(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 ri(e,t){if(!e)throw new Error(t)}function Ya(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var yH="__ec_primitive__";function b1(e){e[yH]=!0}function hv(e){return e[yH]}var Yhe=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 Dt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var n in r)r.hasOwnProperty(n)&&t(r[n],n)},e}(),xH=typeof Map=="function";function qhe(){return xH?new Map:new Yhe}var Xhe=function(){function e(t){var r=he(t);this.data=qhe();var n=this;t instanceof e?t.each(i):t&&$(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 xH?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function $e(e){return new Xhe(e)}function S1(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 rb(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 bH(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Fe(e,t){return e.hasOwnProperty(t)}function Vr(){}var N0=180/Math.PI;function Uc(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Xn(e,t){return e[0]=t[0],e[1]=t[1],e}function As(e){return[e[0],e[1]]}function Zhe(e,t,r){return e[0]=t,e[1]=r,e}function hN(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function S2(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e}function dc(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function _2(e){return Math.sqrt(Khe(e))}function Khe(e){return e[0]*e[0]+e[1]*e[1]}function z0(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function Xd(e,t){var r=_2(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function w2(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var Rl=w2;function Qhe(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var _c=Qhe;function B0(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 Tn(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 Ll(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function El(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var Rf=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),Jhe=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 Rf(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 Rf(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 Rf(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new Rf(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new Rf(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Rf(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),Pa=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}(),eve=Math.log(2);function C2(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)/eve);return e[r][l]}for(var u=n|1<<r,c=r+1;n&1<<c;)c++;for(var f=0,d=0,p=0;d<s;d++){var v=1<<d;v&i||(f+=(p%2?-1:1)*e[r][d]*C2(e,t-1,c,u,i|v,a),p++)}return a[o]=f,f}function vN(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=C2(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)*C2(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 gN="___zrEVENTSAVED",hw=[];function tve(e,t,r,n,i){return T2(hw,t,n,i,!0)&&T2(e,r,hw[0],hw[1])}function T2(e,t,r,n,i){if(t.getBoundingClientRect&&kt.domSupported&&!SH(t)){var a=t[gN]||(t[gN]={}),o=rve(t,a),s=nve(o,a,i);if(s)return s(e,r,n),!0}return!1}function rve(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 nve(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,p=c.top;o.push(d,p),l=l&&a&&d===a[f]&&p===a[f+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?vN(s,o):vN(o,s))}function SH(e){return e.nodeName.toUpperCase()==="CANVAS"}var ive=/([&<>"'])/g,ave={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function bi(e){return e==null?"":(e+"").replace(ive,function(t,r){return ave[r]})}var ove=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,vw=[],sve=kt.browser.firefox&&+kt.browser.version.split(".")[0]<39;function A2(e,t,r,n){return r=r||{},n?mN(e,t,r):sve&&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):mN(e,t,r),r}function mN(e,t,r){if(kt.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(SH(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(T2(vw,e,n,i)){r.zrX=vw[0],r.zrY=vw[1];return}}r.zrX=r.zrY=0}function RI(e){return e||window.event}function ca(e,t,r){if(t=RI(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&&A2(e,o,t,r)}else{A2(e,t,t,r);var a=lve(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&ove.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function lve(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 M2(e,t,r,n){e.addEventListener(t,r,n)}function uve(e,t,r,n){e.removeEventListener(t,r,n)}var Os=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function yN(e){return e.which===2||e.which===3}var cve=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=A2(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 gw)if(gw.hasOwnProperty(r)){var n=gw[r](this._track,t);if(n)return n}},e}();function xN(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function fve(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var gw={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=xN(n)/xN(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=fve(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 nb(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function LI(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 Ms(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 Zo(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 Yc(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 EI(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 Zd(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 dve(e){var t=Wi();return LI(t,e),t}var dt=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}(),ky=Math.min,Py=Math.max,wu=new dt,Cu=new dt,Tu=new dt,Au=new dt,lh=new dt,uh=new dt,vt=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=ky(t.x,this.x),n=ky(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Py(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Py(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 Zo(a,a,[-r.x,-r.y]),EI(a,a,[n,i]),Zo(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 p=1/0,v=0,g=Math.abs(a-l),y=Math.abs(u-i),x=Math.abs(s-c),b=Math.abs(f-o),S=Math.min(g,y),w=Math.min(x,b);a<l||u<i?S>v&&(v=S,g<y?dt.set(uh,-g,0):dt.set(uh,y,0)):S<p&&(p=S,g<y?dt.set(lh,g,0):dt.set(lh,-y,0)),s<c||f<o?w>v&&(v=w,x<b?dt.set(uh,0,-x):dt.set(uh,0,b)):S<p&&(p=S,x<b?dt.set(lh,0,x):dt.set(lh,0,-b))}return r&&dt.copy(r,d?lh:uh),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}wu.x=Tu.x=r.x,wu.y=Au.y=r.y,Cu.x=Au.x=r.x+r.width,Cu.y=Tu.y=r.y+r.height,wu.transform(n),Au.transform(n),Cu.transform(n),Tu.transform(n),t.x=ky(wu.x,Cu.x,Tu.x,Au.x),t.y=ky(wu.y,Cu.y,Tu.y,Au.y);var l=Py(wu.x,Cu.x,Tu.x,Au.x),u=Py(wu.y,Cu.y,Tu.y,Au.y);t.width=l-t.x,t.height=u-t.y},e}(),_H="silent";function pve(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:hve}}function hve(){Os(this.event)}var vve=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}(Pa),ch=function(){function e(t,r){this.x=t,this.y=r}return e}(),gve=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],mw=new vt(0,0,0,0),wH=function(e){J(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new ch(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new vve,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Jhe(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&($(gve,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=CH(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 ch(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 ch(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=pve(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 ch(r,n);if(bN(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new vt(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)&&(mw.copy(d.getBoundingRect()),d.transform&&mw.applyTransform(d.transform),mw.intersect(c)&&s.push(d))}if(s.length)for(var p=4,v=Math.PI/12,g=Math.PI*2,y=0;y<u;y+=p)for(var x=0;x<g;x+=v){var b=r+y*Math.cos(x),S=n+y*Math.sin(x);if(bN(s,o,b,S,i),o.target)return o}}return o},t.prototype.processGesture=function(r,n){this._gestureMgr||(this._gestureMgr=new cve);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 ch;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Pa);$(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){wH.prototype[e]=function(t){var r=t.zrX,n=t.zrY,i=CH(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||Rl(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function mve(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?_H:!0}return!1}function bN(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=mve(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==_H)){t.target=o;break}}}function CH(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var TH=32,fh=7;function yve(e){for(var t=0;e>=TH;)t|=e&1,e>>=1;return e+t}function SN(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++;xve(e,t,i)}else for(;i<r&&n(e[i],e[i-1])>=0;)i++;return i-t}function xve(e,t,r){for(r--;t<r;){var n=e[t];e[t++]=e[r],e[r--]=n}}function _N(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 yw(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 xw(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 bve(e,t){var r=fh,n,i,a=0,o=[];n=[],i=[];function s(p,v){n[a]=p,i[a]=v,a+=1}function l(){for(;a>1;){var p=a-2;if(p>=1&&i[p-1]<=i[p]+i[p+1]||p>=2&&i[p-2]<=i[p]+i[p-1])i[p-1]<i[p+1]&&p--;else if(i[p]>i[p+1])break;c(p)}}function u(){for(;a>1;){var p=a-2;p>0&&i[p-1]<i[p+1]&&p--,c(p)}}function c(p){var v=n[p],g=i[p],y=n[p+1],x=i[p+1];i[p]=g+x,p===a-3&&(n[p+1]=n[p+2],i[p+1]=i[p+2]),a--;var b=xw(e[y],e,v,g,0,t);v+=b,g-=b,g!==0&&(x=yw(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(p,v,g,y){var x=0;for(x=0;x<v;x++)o[x]=e[p+x];var b=0,S=g,w=p;if(e[w++]=e[S++],--y===0){for(x=0;x<v;x++)e[w+x]=o[b+x];return}if(v===1){for(x=0;x<y;x++)e[w+x]=e[S+x];e[w+y]=o[b];return}for(var T=r,C,A,I;;){C=0,A=0,I=!1;do if(t(e[S],o[b])<0){if(e[w++]=e[S++],A++,C=0,--y===0){I=!0;break}}else if(e[w++]=o[b++],C++,A=0,--v===1){I=!0;break}while((C|A)<T);if(I)break;do{if(C=xw(e[S],o,b,v,0,t),C!==0){for(x=0;x<C;x++)e[w+x]=o[b+x];if(w+=C,b+=C,v-=C,v<=1){I=!0;break}}if(e[w++]=e[S++],--y===0){I=!0;break}if(A=yw(o[b],e,S,y,0,t),A!==0){for(x=0;x<A;x++)e[w+x]=e[S+x];if(w+=A,S+=A,y-=A,y===0){I=!0;break}}if(e[w++]=o[b++],--v===1){I=!0;break}T--}while(C>=fh||A>=fh);if(I)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[S+x];e[w+y]=o[b]}else{if(v===0)throw new Error;for(x=0;x<v;x++)e[w+x]=o[b+x]}}function d(p,v,g,y){var x=0;for(x=0;x<y;x++)o[x]=e[g+x];var b=p+v-1,S=y-1,w=g+y-1,T=0,C=0;if(e[w--]=e[b--],--v===0){for(T=w-(y-1),x=0;x<y;x++)e[T+x]=o[x];return}if(y===1){for(w-=v,b-=v,C=w+1,T=b+1,x=v-1;x>=0;x--)e[C+x]=e[T+x];e[w]=o[S];return}for(var A=r;;){var I=0,k=0,P=!1;do if(t(o[S],e[b])<0){if(e[w--]=e[b--],I++,k=0,--v===0){P=!0;break}}else if(e[w--]=o[S--],k++,I=0,--y===1){P=!0;break}while((I|k)<A);if(P)break;do{if(I=v-xw(o[S],e,p,v,v-1,t),I!==0){for(w-=I,b-=I,v-=I,C=w+1,T=b+1,x=I-1;x>=0;x--)e[C+x]=e[T+x];if(v===0){P=!0;break}}if(e[w--]=o[S--],--y===1){P=!0;break}if(k=y-yw(e[b],o,0,y,y-1,t),k!==0){for(w-=k,S-=k,y-=k,C=w+1,T=S+1,x=0;x<k;x++)e[C+x]=o[T+x];if(y<=1){P=!0;break}}if(e[w--]=e[b--],--v===0){P=!0;break}A--}while(I>=fh||k>=fh);if(P)break;A<0&&(A=0),A+=2}if(r=A,r<1&&(r=1),y===1){for(w-=v,b-=v,C=w+1,T=b+1,x=v-1;x>=0;x--)e[C+x]=e[T+x];e[w]=o[S]}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 F0(e,t,r,n){r||(r=0),n||(n=e.length);var i=n-r;if(!(i<2)){var a=0;if(i<TH){a=SN(e,r,n,t),_N(e,r,n,r+a,t);return}var o=bve(e,t),s=yve(i);do{if(a=SN(e,r,n,t),a<s){var l=i;l>s&&(l=s),_N(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 Go=1,$0=2,Gh=4,wN=!1;function bw(){wN||(wN=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function CN(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Sve=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=CN}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,F0(n,CN)},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|=Go),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)&&(bw(),c.z=0),isNaN(c.z2)&&(bw(),c.z2=0),isNaN(c.zlevel)&&(bw(),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 p=t.getTextContent();p&&this._updateAndAddDisplayable(p,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=bt(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}(),_1;_1=kt.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var vv={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-vv.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?vv.bounceIn(e*2)*.5:vv.bounceOut(e*2-1)*.5+.5}},Dy=Math.pow,Hl=Math.sqrt,AH=1e-8,MH=1e-4,TN=Hl(3),Ry=1/3,Ro=Uc(),ma=Uc(),yd=Uc();function Ol(e){return e>-1e-8&&e<AH}function IH(e){return e>AH||e<-1e-8}function an(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 AN(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function w1(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,p=0;if(Ol(c)&&Ol(f))if(Ol(s))a[0]=0;else{var v=-l/s;v>=0&&v<=1&&(a[p++]=v)}else{var g=f*f-4*c*d;if(Ol(g)){var y=f/c,v=-s/o+y,x=-y/2;v>=0&&v<=1&&(a[p++]=v),x>=0&&x<=1&&(a[p++]=x)}else if(g>0){var b=Hl(g),S=c*s+1.5*o*(-f+b),w=c*s+1.5*o*(-f-b);S<0?S=-Dy(-S,Ry):S=Dy(S,Ry),w<0?w=-Dy(-w,Ry):w=Dy(w,Ry);var v=(-s-(S+w))/(3*o);v>=0&&v<=1&&(a[p++]=v)}else{var T=(2*c*s-3*o*f)/(2*Hl(c*c*c)),C=Math.acos(T)/3,A=Hl(c),I=Math.cos(C),v=(-s-2*A*I)/(3*o),x=(-s+A*(I+TN*Math.sin(C)))/(3*o),k=(-s+A*(I-TN*Math.sin(C)))/(3*o);v>=0&&v<=1&&(a[p++]=v),x>=0&&x<=1&&(a[p++]=x),k>=0&&k<=1&&(a[p++]=k)}}return p}function kH(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(Ol(o)){if(IH(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(Ol(c))i[0]=-a/(2*o);else if(c>0){var f=Hl(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 Kl(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 PH(e,t,r,n,i,a,o,s,l,u,c){var f,d=.005,p=1/0,v,g,y,x;Ro[0]=l,Ro[1]=u;for(var b=0;b<1;b+=.05)ma[0]=an(e,r,i,o,b),ma[1]=an(t,n,a,s,b),y=_c(Ro,ma),y<p&&(f=b,p=y);p=1/0;for(var S=0;S<32&&!(d<MH);S++)v=f-d,g=f+d,ma[0]=an(e,r,i,o,v),ma[1]=an(t,n,a,s,v),y=_c(ma,Ro),v>=0&&y<p?(f=v,p=y):(yd[0]=an(e,r,i,o,g),yd[1]=an(t,n,a,s,g),x=_c(yd,Ro),g<=1&&x<p?(f=g,p=x):d*=.5);return c&&(c[0]=an(e,r,i,o,f),c[1]=an(t,n,a,s,f)),Hl(p)}function _ve(e,t,r,n,i,a,o,s,l){for(var u=e,c=t,f=0,d=1/l,p=1;p<=l;p++){var v=p*d,g=an(e,r,i,o,v),y=an(t,n,a,s,v),x=g-u,b=y-c;f+=Math.sqrt(x*x+b*b),u=g,c=y}return f}function vn(e,t,r,n){var i=1-n;return i*(i*e+2*n*t)+n*n*r}function I2(e,t,r,n){return 2*((1-n)*(t-e)+n*(r-t))}function wve(e,t,r,n,i){var a=e-2*t+r,o=2*(t-e),s=e-n,l=0;if(Ol(a)){if(IH(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(Ol(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=Hl(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 DH(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function Yv(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 RH(e,t,r,n,i,a,o,s,l){var u,c=.005,f=1/0;Ro[0]=o,Ro[1]=s;for(var d=0;d<1;d+=.05){ma[0]=vn(e,r,i,d),ma[1]=vn(t,n,a,d);var p=_c(Ro,ma);p<f&&(u=d,f=p)}f=1/0;for(var v=0;v<32&&!(c<MH);v++){var g=u-c,y=u+c;ma[0]=vn(e,r,i,g),ma[1]=vn(t,n,a,g);var p=_c(ma,Ro);if(g>=0&&p<f)u=g,f=p;else{yd[0]=vn(e,r,i,y),yd[1]=vn(t,n,a,y);var x=_c(yd,Ro);y<=1&&x<f?(u=y,f=x):c*=.5}}return l&&(l[0]=vn(e,r,i,u),l[1]=vn(t,n,a,u)),Hl(f)}function Cve(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,p=vn(e,r,i,d),v=vn(t,n,a,d),g=p-s,y=v-l;u+=Math.sqrt(g*g+y*y),s=p,l=v}return u}var Tve=/cubic-bezier\(([0-9,\.e ]+)\)/;function OI(e){var t=e&&Tve.exec(e);if(t){var r=t[1].split(","),n=+Ya(r[0]),i=+Ya(r[1]),a=+Ya(r[2]),o=+Ya(r[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:w1(0,n,a,1,l,s)&&an(0,i,o,1,s[0])}}}var Ave=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||Vr,this.ondestroy=t.ondestroy||Vr,this.onrestart=t.onrestart||Vr,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=je(t)?t:vv[t]||OI(t)},e}(),LH=function(){function e(t){this.value=t}return e}(),Mve=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new LH(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}(),Og=function(){function e(t){this._list=new Mve,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 LH(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}(),MN={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 Xa(e){return e=Math.round(e),e<0?0:e>255?255:e}function Ive(e){return e=Math.round(e),e<0?0:e>360?360:e}function qv(e){return e<0?0:e>1?1:e}function Sw(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Xa(parseFloat(t)/100*255):Xa(parseInt(t,10))}function wc(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?qv(parseFloat(t)/100):qv(parseFloat(t))}function _w(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 Nl(e,t,r){return e+(t-e)*r}function ua(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function k2(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var EH=new Og(20),Ly=null;function Lf(e,t){Ly&&k2(Ly,t),Ly=EH.put(e,Ly||t.slice())}function ji(e,t){if(e){t=t||[];var r=EH.get(e);if(r)return k2(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in MN)return k2(t,MN[n]),Lf(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)){ua(t,0,0,0,1);return}return ua(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),Lf(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){ua(t,0,0,0,1);return}return ua(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),Lf(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?ua(t,+u[0],+u[1],+u[2],1):ua(t,0,0,0,1);c=wc(u.pop());case"rgb":if(u.length>=3)return ua(t,Sw(u[0]),Sw(u[1]),Sw(u[2]),u.length===3?c:wc(u[3])),Lf(e,t),t;ua(t,0,0,0,1);return;case"hsla":if(u.length!==4){ua(t,0,0,0,1);return}return u[3]=wc(u[3]),P2(u,t),Lf(e,t),t;case"hsl":if(u.length!==3){ua(t,0,0,0,1);return}return P2(u,t),Lf(e,t),t;default:return}}ua(t,0,0,0,1)}}function P2(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=wc(e[1]),i=wc(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],ua(t,Xa(_w(o,a,r+1/3)*255),Xa(_w(o,a,r)*255),Xa(_w(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function kve(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 p=[l*360,u,s];return e[3]!=null&&p.push(e[3]),p}}function D2(e,t){var r=ji(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 Is(r,r.length===4?"rgba":"rgb")}}function ww(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]=Xa(Nl(o[0],s[0],l)),r[1]=Xa(Nl(o[1],s[1],l)),r[2]=Xa(Nl(o[2],s[2],l)),r[3]=qv(Nl(o[3],s[3],l)),r}}function Pve(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=ji(t[i]),s=ji(t[a]),l=n-i,u=Is([Xa(Nl(o[0],s[0],l)),Xa(Nl(o[1],s[1],l)),Xa(Nl(o[2],s[2],l)),qv(Nl(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function gv(e,t,r,n){var i=ji(e);if(e)return i=kve(i),t!=null&&(i[0]=Ive(t)),r!=null&&(i[1]=wc(r)),n!=null&&(i[2]=wc(n)),Is(P2(i),"rgba")}function C1(e,t){var r=ji(e);if(r&&t!=null)return r[3]=qv(t),Is(r,"rgba")}function Is(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 T1(e,t){var r=ji(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var IN=new Og(100);function R2(e){if(De(e)){var t=IN.get(e);return t||(t=D2(e,-.1),IN.put(e,t)),t}else if(tb(e)){var r=oe({},e);return r.colorStops=ve(e.colorStops,function(n){return{offset:n.offset,color:D2(n.color,-.1)}}),r}return e}var A1=Math.round;function Xv(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=ji(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var Dve=1e-4;function zl(e){return e<Dve&&e>-1e-4}function Ey(e){return A1(e*1e3)/1e3}function L2(e){return A1(e*1e4)/1e4}function Rve(e){return"matrix("+Ey(e[0])+","+Ey(e[1])+","+Ey(e[2])+","+Ey(e[3])+","+L2(e[4])+","+L2(e[5])+")"}var Lve={left:"start",right:"end",center:"middle",middle:"middle"};function Eve(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function Ove(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function Nve(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 OH(e){return e&&!!e.image}function zve(e){return e&&!!e.svgElement}function NI(e){return OH(e)||zve(e)}function NH(e){return e.type==="linear"}function zH(e){return e.type==="radial"}function BH(e){return e&&(e.type==="linear"||e.type==="radial")}function ib(e){return"url(#"+e+")"}function FH(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 $H(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*N0,i=it(e.scaleX,1),a=it(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("+A1(o*N0)+"deg, "+A1(s*N0)+"deg)"),l.join(" ")}var Bve=function(){return kt.hasGlobalWindow&&je(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}}(),E2=Array.prototype.slice;function bs(e,t,r){return(t-e)*r+e}function Cw(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=bs(t[a],r[a],n);return e}function Fve(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]=bs(t[o][s],r[o][s],n)}return e}function Oy(e,t,r,n){for(var i=t.length,a=0;a<i;a++)e[a]=t[a]+r[a]*n;return e}function kN(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 $ve(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 Vve(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]:E2.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 mv(e){if(Bn(e)){var t=e.length;if(Bn(e[0])){for(var r=[],n=0;n<t;n++)r.push(E2.call(e[n]));return r}return E2.call(e)}return e}function V0(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 Hve(e){return Bn(e&&e[0])?2:1}var Ny=0,H0=1,VH=2,Wh=3,O2=4,N2=5,PN=6;function DN(e){return e===O2||e===N2}function zy(e){return e===H0||e===VH}var dh=[0,0,0,0],Gve=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=PN,l=r;if(Bn(r)){var u=Hve(r);s=u,(u===1&&!Bt(r[0])||u===2&&!Bt(r[0][0]))&&(o=!0)}else if(Bt(r)&&!Uv(r))s=Ny;else if(De(r))if(!isNaN(+r))s=Ny;else{var c=ji(r);c&&(l=c,s=Wh)}else if(tb(r)){var f=oe({},l);f.colorStops=ve(r.colorStops,function(p){return{offset:p.offset,color:ji(p.color)}}),NH(r)?s=O2:zH(r)&&(s=N2),l=f}a===0?this.valType=s:(s!==this.valType||s===PN)&&(o=!0),this.discrete=this.discrete||o;var d={time:t,value:l,rawValue:r,percent:0};return n&&(d.easing=n,d.easingFunc=je(n)?n:vv[n]||OI(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=zy(i),u=DN(i),c=0;c<a;c++){var f=n[c],d=f.value,p=o.value;f.percent=f.time/t,s||(l&&c!==a-1?Vve(d,p,i):u&&$ve(d.colorStops,p.colorStops))}if(!s&&i!==N2&&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===Ny?n[c].additiveValue=n[c].value-v:i===Wh?n[c].additiveValue=Oy([],n[c].value,v,-1):zy(i)&&(n[c].additiveValue=i===H0?Oy([],n[c].value,v,-1):kN([],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===Wh,c,f=this._lastFr,d=Math.min,p,v;if(s===1)p=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],p=o[c]}if(p&&v){this._lastFr=c,this._lastFrP=r;var y=v.percent-p.percent,x=y===0?1:d((r-p.percent)/y,1);v.easingFunc&&(x=v.easingFunc(x));var b=n?this._additiveValue:u?dh:t[l];if((zy(a)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)t[l]=x<1?p.rawValue:v.rawValue;else if(zy(a))a===H0?Cw(b,p[i],v[i],x):Fve(b,p[i],v[i],x);else if(DN(a)){var S=p[i],w=v[i],T=a===O2;t[l]={type:T?"linear":"radial",x:bs(S.x,w.x,x),y:bs(S.y,w.y,x),colorStops:ve(S.colorStops,function(A,I){var k=w.colorStops[I];return{offset:bs(A.offset,k.offset,x),color:V0(Cw([],A.color,k.color,x))}}),global:w.global},T?(t[l].x2=bs(S.x2,w.x2,x),t[l].y2=bs(S.y2,w.y2,x)):t[l].r=bs(S.r,w.r,x)}else if(u)Cw(b,p[i],v[i],x),n||(t[l]=V0(b));else{var C=bs(p[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===Ny?t[n]=t[n]+i:r===Wh?(ji(t[n],dh),Oy(dh,dh,i,1),t[n]=V0(dh)):r===H0?Oy(t[n],t[n],i,1):r===VH&&kN(t[n],t[n],i,1)},e}(),zI=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){II("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,Dt(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 Gve(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===Wh&&u&&(u=V0(u))}else u=this._target[s];if(u==null)continue;t>0&&l.addKeyframe(0,mv(u),i),this._trackKeys.push(s)}l.addKeyframe(t,mv(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 Ave({life:i,loop:this._loop,delay:this._delay||0,onframe:function(p){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,p);var x=r._onframeCbs;if(x)for(var y=0;y<x.length;y++)x[y](r._target,p)},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 ve(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]=mv(l.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||Dt(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 ud(){return new Date().getTime()}var Wve=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=ud()-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&&(_1(n),!r._paused&&r.update())}_1(n)},t.prototype.start=function(){this._running||(this._time=ud(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=ud(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=ud()-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 zI(r,n.loop);return this.addAnimator(i),i},t}(Pa),jve=300,Tw=kt.domSupported,Aw=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=ve(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),RN={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},LN=!1;function z2(e){var t=e.pointerType;return t==="pen"||t==="touch"}function Uve(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 Mw(e){e&&(e.zrByTouch=!0)}function Yve(e,t){return ca(e.dom,new qve(e,t),!0)}function HH(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 qve=function(){function e(t,r){this.stopPropagation=Vr,this.stopImmediatePropagation=Vr,this.preventDefault=Vr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Ga={mousedown:function(e){e=ca(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=ca(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=ca(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=ca(this.dom,e);var t=e.toElement||e.relatedTarget;HH(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){LN=!0,e=ca(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){LN||(e=ca(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=ca(this.dom,e),Mw(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Ga.mousemove.call(this,e),Ga.mousedown.call(this,e)},touchmove:function(e){e=ca(this.dom,e),Mw(e),this.handler.processGesture(e,"change"),Ga.mousemove.call(this,e)},touchend:function(e){e=ca(this.dom,e),Mw(e),this.handler.processGesture(e,"end"),Ga.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<jve&&Ga.click.call(this,e)},pointerdown:function(e){Ga.mousedown.call(this,e)},pointermove:function(e){z2(e)||Ga.mousemove.call(this,e)},pointerup:function(e){Ga.mouseup.call(this,e)},pointerout:function(e){z2(e)||Ga.mouseout.call(this,e)}};$(["click","dblclick","contextmenu"],function(e){Ga[e]=function(t){t=ca(this.dom,t),this.trigger(e,t)}});var B2={pointermove:function(e){z2(e)||B2.mousemove.call(this,e)},pointerup:function(e){B2.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 Xve(e,t){var r=t.domHandlers;kt.pointerEventsSupported?$(Aw.pointer,function(n){G0(t,n,function(i){r[n].call(e,i)})}):(kt.touchEventsSupported&&$(Aw.touch,function(n){G0(t,n,function(i){r[n].call(e,i),Uve(t)})}),$(Aw.mouse,function(n){G0(t,n,function(i){i=RI(i),t.touching||r[n].call(e,i)})}))}function Zve(e,t){kt.pointerEventsSupported?$(RN.pointer,r):kt.touchEventsSupported||$(RN.mouse,r);function r(n){function i(a){a=RI(a),HH(e,a.target)||(a=Yve(e,a),t.domHandlers[n].call(e,a))}G0(t,n,i,{capture:!0})}}function G0(e,t,r,n){e.mounted[t]=r,e.listenerOpts[t]=n,M2(e.domTarget,t,r,n)}function Iw(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&uve(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var EN=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),Kve=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 EN(r,Ga),Tw&&(i._globalHandlerScope=new EN(document,B2)),Xve(i,i._localHandlerScope),i}return t.prototype.dispose=function(){Iw(this._localHandlerScope),Tw&&Iw(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,Tw&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var n=this._globalHandlerScope;r?Zve(this,n):Iw(n)}},t}(Pa),GH=1;kt.hasGlobalWindow&&(GH=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var M1=GH,F2=.4,$2="#333",V2="#ccc",Qve="#eee",ON=nb,Jve=5e-5;function Mu(e){return e>Jve||e<-5e-5}var Iu=[],Ef=[],kw=Wi(),Pw=Math.abs,ws=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 Mu(this.rotation)||Mu(this.x)||Mu(this.y)||Mu(this.scaleX-1)||Mu(this.scaleY-1)||Mu(this.skewX)||Mu(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(ON(n),this.invTransform=null);return}n=n||Wi(),r?this.getLocalTransform(n):ON(n),t&&(r?Ms(n,t,n):LI(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(Iu);var n=Iu[0]<0?-1:1,i=Iu[1]<0?-1:1,a=((Iu[0]-n)*r+n)/Iu[0]||0,o=((Iu[1]-i)*r+i)/Iu[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Wi(),Zd(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(),Ms(Ef,t.invTransform,r),r=Ef);var n=this.originX,i=this.originY;(n||i)&&(kw[4]=n,kw[5]=i,Ms(Ef,r,kw),Ef[4]-=n,Ef[5]-=i,r=Ef),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&&Tn(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&Tn(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&Pw(t[0]-1)>1e-10&&Pw(t[3]-1)>1e-10?Math.sqrt(Pw(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){WH(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,p=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-p*v*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=p*a,r[2]=d*o,u&&Yc(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}(),Ko=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function WH(e,t){for(var r=0;r<Ko.length;r++){var n=Ko[r];e[n]=t[n]}}var NN={};function Ui(e,t){t=t||Xl;var r=NN[t];r||(r=NN[t]=new Og(500));var n=r.get(e);return n==null&&(n=Zl.measureText(e,t).width,r.put(e,n)),n}function zN(e,t,r,n){var i=Ui(e,t),a=ab(t),o=jh(0,i,r),s=rd(0,a,n),l=new vt(o,s,i,a);return l}function Ng(e,t,r,n){var i=((e||"")+"").split(`
169
+ `),a=i.length;if(a===1)return zN(i[0],t,r,n);for(var o=new vt(0,0,0,0),s=0;s<i.length;s++){var l=zN(i[s],t,r,n);s===0?o.copy(l):o.union(l)}return o}function jh(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function rd(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function ab(e){return Ui("国",e)}function ro(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function I1(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+=ro(n[0],r.width),u+=ro(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 Dw="__zr_normal__",Rw=Ko.concat(["ignore"]),ege=Xo(Ko,function(e,t){return e[t]=!0,e},{ignore:!1}),Of={},tge=new vt(0,0,0,0),ob=function(){function e(t){this.id=mH(),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=tge;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Of,n,c):I1(Of,n,c),a.x=Of.x,a.y=Of.y,o=Of.align,s=Of.verticalAlign;var f=n.origin;if(f&&n.rotation!=null){var d=void 0,p=void 0;f==="center"?(d=c.width*.5,p=c.height*.5):(d=ro(f[0],c.width),p=ro(f[1],c.height)),u=!0,a.originX=-a.x+d+(i?0:c.x),a.originY=-a.y+p+(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,b=void 0,S=void 0;g&&this.canBeInsideText()?(x=n.insideFill,b=n.insideStroke,(x==null||x==="auto")&&(x=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(x),S=!0)):(x=n.outsideFill,b=n.outsideStroke,(x==null||x==="auto")&&(x=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(x),S=!0)),x=x||"#000",(x!==y.fill||b!==y.stroke||S!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=x,y.stroke=b,y.autoStroke=S,y.align=o,y.verticalAlign=s,r.setDefaultTextStyle(y)),r.__dirty|=Go,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()?V2:$2},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&ji(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,Is(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(Xe(t))for(var n=t,i=Dt(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!==Dw)){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,Rw)},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(Dw,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===Dw,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(bt(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){II("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 p=this._mergeStates(i),v=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(t.join(","),p,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=bt(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=bt(i,t),o=bt(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<Rw.length;c++){var f=Rw[c],d=a&&ege[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 p=this.animators[c],v=p.targetName;p.getLoop()||p.__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 ws,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|=Go;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 zI(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=bt(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){Lw(this,t,r,n)},e.prototype.animateFrom=function(t,r,n){Lw(this,t,r,n,!0)},e.prototype._transitionState=function(t,r,n,i){for(var a=Lw(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=Go;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}();Yr(ob,Pa);Yr(ob,ws);function Lw(e,t,r,n,i){r=r||{};var a=[];jH(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 p=a[d];c&&p.done(c),f&&p.aborted(f),r.force&&p.duration(r.duration),p.start(r.easing)}return a}function Ew(e,t,r){for(var n=0;n<r;n++)e[n]=t[n]}function rge(e){return Bn(e[0])}function nge(e,t,r){if(Bn(t[r]))if(Bn(e[r])||(e[r]=[]),Pi(t[r])){var n=t[r].length;e[r].length!==n&&(e[r]=new t[r].constructor(n),Ew(e[r],t[r],n))}else{var i=t[r],a=e[r],o=i.length;if(rge(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?Ew(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else Ew(a,i,o);a.length=i.length}else e[r]=t[r]}function ige(e,t){return e===t||Bn(e)&&Bn(t)&&age(e,t)}function age(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 jH(e,t,r,n,i,a,o,s){for(var l=Dt(n),u=i.duration,c=i.delay,f=i.additive,d=i.setToFinal,p=!Xe(a),v=e.animators,g=[],y=0;y<l.length;y++){var x=l[y],b=n[x];if(b!=null&&r[x]!=null&&(p||a[x]))if(Xe(b)&&!Bn(b)&&!tb(b)){if(t){s||(r[x]=b,e.updateDuringAnimation(t));continue}jH(e,x,r[x],b,i,a&&a[x],o,s)}else g.push(x);else s||(r[x]=b,e.updateDuringAnimation(t),g.push(x))}var S=g.length;if(!f&&S)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=bt(v,T);v.splice(A,1)}}}if(i.force||(g=tr(g,function(R){return!ige(n[R],r[R])}),S=g.length),S>0||i.force&&!o.length){var I=void 0,k=void 0,P=void 0;if(s){k={},d&&(I={});for(var w=0;w<S;w++){var x=g[w];k[x]=r[x],d?I[x]=n[x]:r[x]=n[x]}}else if(d){P={};for(var w=0;w<S;w++){var x=g[w];P[x]=mv(r[x]),nge(r,n,x)}}var T=new zI(r,!1,!1,f?tr(v,function(O){return O.targetName===t}):null);T.targetName=t,i.scope&&(T.scope=i.scope),d&&I&&T.whenWithKeys(0,I,g),P&&T.whenWithKeys(0,P,g),T.whenWithKeys(u??500,s?k:n,g).delay(c||0),e.addAnimator(T,t),o.push(T)}}var Je=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=bt(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=bt(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 vt(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?(vt.applyTransform(n,u,c),o=o||n.clone(),o.union(n)):(o=o||u.clone(),o.union(u))}}return o||n},t}(ob);Je.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 W0={},UH={};function oge(e){delete UH[e]}function sge(e){if(!e)return!1;if(typeof e=="string")return T1(e,1)<F2;if(e.colorStops){for(var t=e.colorStops,r=0,n=t.length,i=0;i<n;i++)r+=T1(t[i].color,1);return r/=n,r<F2}return!1}var lge=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 Sve,o=n.renderer||"canvas";W0[o]||(o=Dt(W0)[0]),n.useDirtyRect=n.useDirtyRect==null?!1:n.useDirtyRect;var s=new W0[o](r,a,n,t),l=n.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!kt.node&&!kt.worker&&!l?new Kve(s.getViewportRoot(),s.root):null,c=n.useCoarsePointer,f=c==null||c==="auto"?kt.touchEventsSupported:!!c,d=44,p;f&&(p=it(n.pointerSize,d)),this.handler=new wH(a,s,u,s.root,p),this.animation=new Wve({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=sge(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=ud();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var i=ud();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 Je&&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,oge(this.id))},e}();function BN(e,t){var r=new lge(mH(),e,t);return UH[r.id]=r,r}function uge(e,t){W0[e]=t}var H2;function cge(e){if(typeof H2=="function")return H2(e)}function fge(e){H2=e}var dge=1e-4,YH=20;function pge(e){return e.replace(/^\s+|\s+$/g,"")}function Qt(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 Ce(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 De(e)?pge(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Or(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),YH),e=(+e).toFixed(t),r?e:+e}function Sa(e){return e.sort(function(t,r){return t-r}),e}function Eo(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 hge(e)}function hge(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 qH(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 vge(e,t){var r=Xo(e,function(p,v){return p+(isNaN(v)?0:v)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=ve(e,function(p){return(isNaN(p)?0:p)/r*n*100}),a=n*100,o=ve(i,function(p){return Math.floor(p)}),s=Xo(o,function(p,v){return p+v},0),l=ve(i,function(p,v){return p-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 ve(o,function(p){return p/n})}function gge(e,t){var r=Math.max(Eo(e),Eo(t)),n=e+t;return r>YH?n:Or(n,r)}var FN=9007199254740991;function XH(e){var t=Math.PI*2;return(e%t+t)%t}function Zv(e){return e>-1e-4&&e<dge}var mge=/^(?:(\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 Qo(e){if(e instanceof Date)return e;if(De(e)){var t=mge.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 yge(e){return Math.pow(10,BI(e))}function BI(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 ZH(e,t){var r=BI(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 Ow(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 $N(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 Ns(e){var t=parseFloat(e);return t==e&&(t!==0||!De(e)||e.indexOf("x")<=0)?t:NaN}function KH(e){return!isNaN(Ns(e))}function QH(){return Math.round(Math.random()*9)}function JH(e,t){return t===0?e:JH(t,e%t)}function VN(e,t){return e==null?t:t==null?e:e*t/JH(e,t)}function Yt(e){throw new Error(e)}function HN(e,t,r){return(t-e)*r+e}var eG="series\0",tG="\0_ec_\0";function ir(e){return e instanceof Array?e:e==null?[]:[e]}function Bc(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 GN=["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 Kd(e){return Xe(e)&&!he(e)&&!(e instanceof Date)?e.value:e}function xge(e){return Xe(e)&&!(e instanceof Array)}function rG(e,t,r){var n=r==="normalMerge",i=r==="replaceMerge",a=r==="replaceAll";e=e||[],t=(t||[]).slice();var o=$e();$(t,function(l,u){if(!Xe(l)){t[u]=null;return}});var s=bge(e,o,r);return(n||i)&&Sge(s,e,o,t),n&&_ge(s,t),n||i?wge(s,t,i):a&&Cge(s,t),Tge(s),s}function bge(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"||Kv(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return n}function Sge(e,t,r,n){$(n,function(i,a){if(!(!i||i.id==null)){var o=yv(i.id),s=r.get(o);if(s!=null){var l=e[s];ri(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=t[s],n[a]=null}}})}function _ge(e,t){$(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)&&!Kv(r)&&!Kv(a)&&nG("name",a,r)){e[i].newOption=r,t[n]=null;return}}})}function wge(e,t,r){$(t,function(n){if(n){for(var i,a=0;(i=e[a])&&(i.newOption||Kv(i.existing)||i.existing&&n.id!=null&&!nG("id",n,i.existing));)a++;i?(i.newOption=n,i.brandNew=r):e.push({newOption:n,brandNew:r,existing:null,keyInfo:null}),a++}})}function Cge(e,t){$(t,function(r){e.push({newOption:r,brandNew:!0,existing:null,keyInfo:null})})}function Tge(e){var t=$e();$(e,function(r){var n=r.existing;n&&t.set(n.id,r)}),$(e,function(r){var n=r.newOption;ri(!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={})}),$(e,function(r,n){var i=r.existing,a=r.newOption,o=r.keyInfo;if(Xe(a)){if(o.name=a.name!=null?yv(a.name):i?i.name:eG+n,i)o.id=yv(i.id);else if(a.id!=null)o.id=yv(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 nG(e,t,r){var n=Kr(t[e],null),i=Kr(r[e],null);return n!=null&&i!=null&&n===i}function yv(e){return Kr(e,"")}function Kr(e,t){return e==null?t:De(e)?e:Bt(e)||b2(e)?e+"":t}function FI(e){var t=e.name;return!!(t&&t.indexOf(eG))}function Kv(e){return e&&e.id!=null&&yv(e.id).indexOf(tG)===0}function Age(e){return tG+e}function Mge(e,t,r){$(e,function(n){var i=n.newOption;Xe(i)&&(n.keyInfo.mainType=t,n.keyInfo.subType=Ige(t,i,n.existing,r))})}function Ige(e,t,r,n){var i=t.type?t.type:r?r.subType:n.determineSubType(e,t);return i}function kge(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=Kr(o[u].seriesId,null);if(f==null)return;for(var d=ir(o[u].dataIndex),p=l&&l[f],v=0,g=d.length;v<g;v++){var y=d[v];p&&p[y]?p[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 Fc(e,t){if(t.dataIndexInside!=null)return t.dataIndexInside;if(t.dataIndex!=null)return he(t.dataIndex)?ve(t.dataIndex,function(r){return e.indexOfRawIndex(r)}):e.indexOfRawIndex(t.dataIndex);if(t.name!=null)return he(t.name)?ve(t.name,function(r){return e.indexOfName(r)}):e.indexOfName(t.name)}function Ot(){var e="__ec_inner_"+Pge++;return function(t){return t[e]||(t[e]={})}}var Pge=QH();function xv(e,t,r){var n=$I(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=zg(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 $I(e,t){var r;if(De(e)){var n={};n[e+"Index"]=0,r=n}else r=e;var i=$e(),a={},o=!1;return $(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&&bt(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 jr={useDefault:!0,enableAll:!1,enableNone:!1},Dge={useDefault:!1,enableAll:!0,enableNone:!0};function zg(e,t,r,n){n=n||jr;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?(ri(n.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(ri(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 iG(e,t,r){e.setAttribute?e.setAttribute(t,r):e[t]=r}function Rge(e,t){return e.getAttribute?e.getAttribute(t):e[t]}function Lge(e){return e==="auto"?kt.domSupported?"html":"richText":e||"html"}function G2(e,t){var r=$e(),n=[];return $(e,function(i){var a=t(i);(r.get(a)||(n.push(a),r.set(a,[]))).push(i)}),{keys:n,buckets:r}}function aG(e,t,r,n,i){var a=t==null||t==="auto";if(n==null)return n;if(Bt(n)){var o=HN(r||0,n,i);return Or(o,a?Math.max(Eo(r||0),Eo(n)):t)}else{if(De(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 p=l&&l[f]?l[f]:0,v=u[f],o=HN(p,v,i);s[f]=Or(o,a?Math.max(Eo(p),Eo(v)):t)}}return s}}var Ege=".",ku="___EC__COMPONENT__CONTAINER___",oG="___EC__EXTENDED_CLASS___";function Oo(e){var t={main:"",sub:""};if(e){var r=e.split(Ege);t.main=r[0]||"",t.sub=r[1]||""}return t}function Oge(e){ri(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(e),'componentType "'+e+'" illegal')}function Nge(e){return!!(e&&e[oG])}function VI(e,t){e.$constructor=e,e.extend=function(r){var n=this,i;return zge(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)},Hhe(i,this)),oe(i.prototype,r),i[oG]=!0,i.extend=this.extend,i.superCall=$ge,i.superApply=Vge,i.superClass=n,i}}function zge(e){return je(e)&&/^class\s/.test(Function.prototype.toString.call(e))}function sG(e,t){e.extend=t.extend}var Bge=Math.round(Math.random()*10);function Fge(e){var t=["__\0is_clz",Bge++].join("_");e.prototype[t]=!0,e.isInstance=function(r){return!!(r&&r[t])}}function $ge(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 Vge(e,t,r){return this.superClass.prototype[t].apply(e,r)}function sb(e){var t={};e.registerClass=function(n){var i=n.type||n.prototype.type;if(i){Oge(i),n.prototype.type=i;var a=Oo(i);if(!a.sub)t[a.main]=n;else if(a.sub!==ku){var o=r(a);o[a.sub]=n}}return n},e.getClass=function(n,i,a){var o=t[n];if(o&&o[ku]&&(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=Oo(n),a=[],o=t[i.main];return o&&o[ku]?$(o,function(s,l){l!==ku&&a.push(s)}):a.push(o),a},e.hasClass=function(n){var i=Oo(n);return!!t[i.main]},e.getAllClassMainTypes=function(){var n=[];return $(t,function(i,a){n.push(a)}),n},e.hasSubTypes=function(n){var i=Oo(n),a=t[i.main];return a&&a[ku]};function r(n){var i=t[n.main];return(!i||!i[ku])&&(i=t[n.main]={},i[ku]=!0),i}}function $c(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&&bt(i,l)>=0||a&&bt(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var Hge=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Gge=$c(Hge),Wge=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return Gge(this,t,r)},e}(),W2=new Og(50);function jge(e){if(typeof e=="string"){var t=W2.get(e);return t&&t.image}else return e}function HI(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=W2.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!lb(t)&&a.pending.push(o)):(t=Zl.loadImage(e,WN,WN),t.__zrImageSrc=e,W2.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function WN(){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 lb(e){return e&&e.width&&e.height}var Nw=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Uge(e,t,r,n,i){if(!t)return"";var a=(e+"").split(`
178
+ `);i=lG(t,r,n,i);for(var o=0,s=a.length;o<s;o++)a[o]=uG(a[o],i);return a.join(`
179
+ `)}function lG(e,t,r,n){n=n||{};var i=oe({},n);i.font=t,r=it(r,"..."),i.maxIterations=it(n.maxIterations,2);var a=i.minChar=it(n.minChar,0);i.cnCharWidth=Ui("国",t);var o=i.ascCharWidth=Ui("a",t);i.placeholder=it(n.placeholder,"");for(var s=e=Math.max(0,e-1),l=0;l<a&&s>=o;l++)s-=o;var u=Ui(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 uG(e,t){var r=t.containerWidth,n=t.font,i=t.contentWidth;if(!r)return"";var a=Ui(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?Yge(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,s),a=Ui(e,n)}return e===""&&(e=t.placeholder),e}function Yge(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 qge(e,t){e!=null&&(e+="");var r=t.overflow,n=t.padding,i=t.font,a=r==="truncate",o=ab(i),s=it(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",c=t.width,f;c!=null&&(r==="break"||r==="breakAll")?f=e?cG(e,t.font,c,r==="breakAll",0).lines:[]:f=e?e.split(`
180
+ `):[];var d=f.length*s,p=it(t.height,d);if(d>p&&u){var v=Math.floor(p/s);f=f.slice(0,v)}if(e&&a&&c!=null)for(var g=lG(c,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),y=0;y<f.length;y++)f[y]=uG(f[y],g);for(var x=p,b=0,y=0;y<f.length;y++)b=Math.max(Ui(f[y],i),b);c==null&&(c=b);var S=b;return n&&(x+=n[0]+n[2],S+=n[1]+n[3],c+=n[1]+n[3]),l&&(S=c),{lines:f,height:p,outerWidth:S,outerHeight:x,lineHeight:s,calculatedLineHeight:o,contentWidth:b,contentHeight:d,width:c}}var Xge=function(){function e(){}return e}(),jN=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),Zge=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 Kge(e,t){var r=new Zge;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=Nw.lastIndex=0,l;(l=Nw.exec(e))!=null;){var u=l.index;u>s&&zw(r,e.substring(s,u),t,o),zw(r,l[2],t,o,l[1]),s=Nw.lastIndex}s<e.length&&zw(r,e.substring(s,e.length),t,o);var c=[],f=0,d=0,p=t.padding,v=a==="truncate",g=t.lineOverflow==="truncate";function y(H,q,F){H.width=q,H.lineHeight=F,f+=F,d=Math.max(d,q)}e:for(var x=0;x<r.lines.length;x++){for(var b=r.lines[x],S=0,w=0,T=0;T<b.tokens.length;T++){var C=b.tokens[T],A=C.styleName&&t.rich[C.styleName]||{},I=C.textPadding=A.padding,k=I?I[1]+I[3]:0,P=C.font=A.font||t.font;C.contentHeight=ab(P);var R=it(A.height,C.contentHeight);if(C.innerHeight=R,I&&(R+=I[0]+I[2]),C.height=R,C.lineHeight=Ho(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?(b.tokens=b.tokens.slice(0,T),y(b,w,S),r.lines=r.lines.slice(0,x+1)):r.lines=r.lines.slice(0,x);break e}var O=A.width,E=O==null||O==="auto";if(typeof O=="string"&&O.charAt(O.length-1)==="%")C.percentWidth=O,c.push(C),C.contentWidth=Ui(C.text,P);else{if(E){var z=A.backgroundColor,B=z&&z.image;B&&(B=jge(B),lb(B)&&(C.width=Math.max(C.width,B.width*R/B.height)))}var W=v&&n!=null?n-w:null;W!=null&&W<C.width?!E||W<k?(C.text="",C.width=C.contentWidth=0):(C.text=Uge(C.text,W-k,P,t.ellipsis,{minChar:t.truncateMinChar}),C.width=C.contentWidth=Ui(C.text,P)):C.contentWidth=Ui(C.text,P)}C.width+=k,w+=C.width,A&&(S=Math.max(S,C.lineHeight))}y(b,w,S)}r.outerWidth=r.width=it(n,d),r.outerHeight=r.height=it(i,f),r.contentHeight=f,r.contentWidth=d,p&&(r.outerWidth+=p[1]+p[3],r.outerHeight+=p[0]+p[2]);for(var x=0;x<c.length;x++){var C=c[x],X=C.percentWidth;C.width=parseInt(X,10)/100*r.width}return r}function zw(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,p=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var v=ro(o.width,n.width)+p;s.length>0&&v+n.accumWidth>n.width&&(c=t.split(`
181
+ `),u=!0),n.accumWidth=v}else{var g=cG(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+p,f=g.linesWidths,c=g.lines}}else c=t.split(`
182
+ `);for(var y=0;y<c.length;y++){var x=c[y],b=new Xge;if(b.styleName=i,b.text=x,b.isLineHolder=!x&&!a,typeof o.width=="number"?b.width=o.width:b.width=f?f[y]:Ui(x,l),!y&&!u){var S=(s[s.length-1]||(s[0]=new jN)).tokens,w=S.length;w===1&&S[0].isLineHolder?S[0]=b:(x||!w||a)&&S.push(b)}else s.push(new jN([b]))}}function Qge(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Jge=Xo(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function eme(e){return Qge(e)?!!Jge[e]:!0}function cG(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 p=Ui(d,t),v=n?!1:!eme(d);if(a.length?c+p>r:i+c+p>r){c?(s||l)&&(v?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=d,u+=p,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=d,c=p)):v?(a.push(l),o.push(u),l=d,u=p):(a.push(d),o.push(p));continue}c+=p,v?(l+=d,u+=p):(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 j2="__zr_style_"+Math.round(Math.random()*10),Cc={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ub={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Cc[j2]=!0;var UN=["z","z2","invisible"],tme=["invisible"],Ma=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=Dt(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&&rme(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 vt(0,0,0,0)),n?vt.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 vt(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|=$0,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&$0)},t.prototype.styleUpdated=function(){this.__dirty&=-3},t.prototype.createStyle=function(r){return rb(Cc,r)},t.prototype.useStyle=function(r){r[j2]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[j2]},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,UN)},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=Dt(c),d=0;d<f.length;d++){var p=f[d];p in u&&(u[p]=u[p],this.style[p]=c[p])}for(var v=Dt(u),d=0;d<v.length;d++){var p=v[d];this.style[p]=this.style[p]}this._transitionState(r,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var g=this.__inHover?tme:UN,d=0;d<g.length;d++){var p=g[d];n&&n[p]!=null?this[p]=n[p]:l&&i[p]!=null&&(this[p]=i[p])}},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 ub},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=Go|$0}(),t}(ob),Bw=new vt(0,0,0,0),Fw=new vt(0,0,0,0);function rme(e,t,r){return Bw.copy(e.getBoundingRect()),e.transform&&Bw.applyTransform(e.transform),Fw.width=t,Fw.height=r,!Bw.intersect(Fw)}var Si=Math.min,_i=Math.max,$w=Math.sin,Vw=Math.cos,Pu=Math.PI*2,By=Uc(),Fy=Uc(),$y=Uc();function cb(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=Si(i,n[0]),a=_i(a,n[0]),o=Si(o,n[1]),s=_i(s,n[1]);t[0]=i,t[1]=o,r[0]=a,r[1]=s}}function YN(e,t,r,n,i,a){i[0]=Si(e,r),i[1]=Si(t,n),a[0]=_i(e,r),a[1]=_i(t,n)}var qN=[],XN=[];function nme(e,t,r,n,i,a,o,s,l,u){var c=kH,f=an,d=c(e,r,i,o,qN);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<d;p++){var v=f(e,r,i,o,qN[p]);l[0]=Si(v,l[0]),u[0]=_i(v,u[0])}d=c(t,n,a,s,XN);for(var p=0;p<d;p++){var g=f(t,n,a,s,XN[p]);l[1]=Si(g,l[1]),u[1]=_i(g,u[1])}l[0]=Si(e,l[0]),u[0]=_i(e,u[0]),l[0]=Si(o,l[0]),u[0]=_i(o,u[0]),l[1]=Si(t,l[1]),u[1]=_i(t,u[1]),l[1]=Si(s,l[1]),u[1]=_i(s,u[1])}function ime(e,t,r,n,i,a,o,s){var l=DH,u=vn,c=_i(Si(l(e,r,i),1),0),f=_i(Si(l(t,n,a),1),0),d=u(e,r,i,c),p=u(t,n,a,f);o[0]=Si(e,i,d),o[1]=Si(t,a,p),s[0]=_i(e,i,d),s[1]=_i(t,a,p)}function ame(e,t,r,n,i,a,o,s,l){var u=Ll,c=El,f=Math.abs(i-a);if(f%Pu<1e-4&&f>1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(By[0]=Vw(i)*r+e,By[1]=$w(i)*n+t,Fy[0]=Vw(a)*r+e,Fy[1]=$w(a)*n+t,u(s,By,Fy),c(l,By,Fy),i=i%Pu,i<0&&(i=i+Pu),a=a%Pu,a<0&&(a=a+Pu),i>a&&!o?a+=Pu:i<a&&o&&(i+=Pu),o){var d=a;a=i,i=d}for(var p=0;p<a;p+=Math.PI/2)p>i&&($y[0]=Vw(p)*r+e,$y[1]=$w(p)*n+t,u(s,$y,s),c(l,$y,l))}var fr={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Du=[],Ru=[],yo=[],vl=[],xo=[],bo=[],Hw=Math.min,Gw=Math.max,Lu=Math.cos,Eu=Math.sin,gs=Math.abs,U2=Math.PI,Cl=U2*2,Ww=typeof Float32Array<"u",ph=[];function jw(e){var t=Math.round(e/U2*1e8)/1e8;return t%2*U2}function GI(e,t){var r=jw(e[0]);r<0&&(r+=Cl);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Cl?i=r+Cl:t&&r-i>=Cl?i=r-Cl:!t&&r>i?i=r+(Cl-jw(r-i)):t&&r<i&&(i=r-(Cl-jw(i-r))),e[0]=r,e[1]=i}var Jo=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=gs(n/M1/t)||0,this._uy=gs(n/M1/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(fr.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=gs(t-this._xi),i=gs(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(fr.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(fr.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(fr.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(),ph[0]=i,ph[1]=a,GI(ph,o),i=ph[0],a=ph[1];var s=a-i;return this.addData(fr.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=Lu(a)*n+t,this._yi=Eu(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(fr.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(fr.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)&&Ww&&(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();Ww&&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,Ww&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){yo[0]=yo[1]=xo[0]=xo[1]=Number.MAX_VALUE,vl[0]=vl[1]=bo[0]=bo[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 fr.M:r=i=t[o++],n=a=t[o++],xo[0]=i,xo[1]=a,bo[0]=i,bo[1]=a;break;case fr.L:YN(r,n,t[o],t[o+1],xo,bo),r=t[o++],n=t[o++];break;case fr.C:nme(r,n,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],xo,bo),r=t[o++],n=t[o++];break;case fr.Q:ime(r,n,t[o++],t[o++],t[o],t[o+1],xo,bo),r=t[o++],n=t[o++];break;case fr.A:var u=t[o++],c=t[o++],f=t[o++],d=t[o++],p=t[o++],v=t[o++]+p;o+=1;var g=!t[o++];l&&(i=Lu(p)*f+u,a=Eu(p)*d+c),ame(u,c,f,d,p,v,g,xo,bo),r=Lu(v)*f+u,n=Eu(v)*d+c;break;case fr.R:i=r=t[o++],a=n=t[o++];var y=t[o++],x=t[o++];YN(i,a,i+y,a+x,xo,bo);break;case fr.Z:r=i,n=a;break}Ll(yo,yo,xo),El(vl,vl,bo)}return o===0&&(yo[0]=yo[1]=vl[0]=vl[1]=0),new vt(yo[0],yo[1],vl[0]-yo[0],vl[1]-yo[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 p=t[d++],v=d===1;v&&(a=t[d],o=t[d+1],s=a,l=o);var g=-1;switch(p){case fr.M:a=s=t[d++],o=l=t[d++];break;case fr.L:{var y=t[d++],x=t[d++],b=y-a,S=x-o;(gs(b)>n||gs(S)>i||d===r-1)&&(g=Math.sqrt(b*b+S*S),a=y,o=x);break}case fr.C:{var w=t[d++],T=t[d++],y=t[d++],x=t[d++],C=t[d++],A=t[d++];g=_ve(a,o,w,T,y,x,C,A,10),a=C,o=A;break}case fr.Q:{var w=t[d++],T=t[d++],y=t[d++],x=t[d++];g=Cve(a,o,w,T,y,x,10),a=y,o=x;break}case fr.A:var I=t[d++],k=t[d++],P=t[d++],R=t[d++],O=t[d++],E=t[d++],z=E+O;d+=1,v&&(s=Lu(O)*P+I,l=Eu(O)*R+k),g=Gw(P,R)*Hw(Cl,Math.abs(E)),a=Lu(z)*P+I,o=Eu(z)*R+k;break;case fr.R:{s=a=t[d++],l=o=t[d++];var B=t[d++],W=t[d++];g=B*2+W*2;break}case fr.Z:{var b=s-a,S=l-o;g=Math.sqrt(b*b+S*S),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,p=r<1,v,g,y=0,x=0,b,S=0,w,T;if(!(p&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,g=this._pathLen,b=r*g,!b)))e:for(var C=0;C<o;){var A=n[C++],I=C===1;switch(I&&(u=n[C],c=n[C+1],s=u,l=c),A!==fr.L&&S>0&&(t.lineTo(w,T),S=0),A){case fr.M:s=u=n[C++],l=c=n[C++],t.moveTo(u,c);break;case fr.L:{f=n[C++],d=n[C++];var k=gs(f-u),P=gs(d-c);if(k>i||P>a){if(p){var R=v[x++];if(y+R>b){var O=(b-y)/R;t.lineTo(u*(1-O)+f*O,c*(1-O)+d*O);break e}y+=R}t.lineTo(f,d),u=f,c=d,S=0}else{var E=k*k+P*P;E>S&&(w=f,T=d,S=E)}break}case fr.C:{var z=n[C++],B=n[C++],W=n[C++],X=n[C++],H=n[C++],q=n[C++];if(p){var R=v[x++];if(y+R>b){var O=(b-y)/R;Kl(u,z,W,H,O,Du),Kl(c,B,X,q,O,Ru),t.bezierCurveTo(Du[1],Ru[1],Du[2],Ru[2],Du[3],Ru[3]);break e}y+=R}t.bezierCurveTo(z,B,W,X,H,q),u=H,c=q;break}case fr.Q:{var z=n[C++],B=n[C++],W=n[C++],X=n[C++];if(p){var R=v[x++];if(y+R>b){var O=(b-y)/R;Yv(u,z,W,O,Du),Yv(c,B,X,O,Ru),t.quadraticCurveTo(Du[1],Ru[1],Du[2],Ru[2]);break e}y+=R}t.quadraticCurveTo(z,B,W,X),u=W,c=X;break}case fr.A:var F=n[C++],Y=n[C++],Z=n[C++],j=n[C++],te=n[C++],fe=n[C++],re=n[C++],ce=!n[C++],ne=Z>j?Z:j,pe=gs(Z-j)>.001,me=te+fe,le=!1;if(p){var R=v[x++];y+R>b&&(me=te+fe*(b-y)/R,le=!0),y+=R}if(pe&&t.ellipse?t.ellipse(F,Y,Z,j,re,te,me,ce):t.arc(F,Y,ne,te,me,ce),le)break e;I&&(s=Lu(te)*Z+F,l=Eu(te)*j+Y),u=Lu(me)*Z+F,c=Eu(me)*j+Y;break;case fr.R:s=u=n[C],l=c=n[C+1],f=n[C++],d=n[C++];var Se=n[C++],ze=n[C++];if(p){var R=v[x++];if(y+R>b){var Te=b-y;t.moveTo(f,d),t.lineTo(f+Hw(Te,Se),d),Te-=Se,Te>0&&t.lineTo(f+Se,d+Hw(Te,ze)),Te-=ze,Te>0&&t.lineTo(f+Gw(Se-Te,0),d+ze),Te-=Se,Te>0&&t.lineTo(f,d+Gw(ze-Te,0));break e}y+=R}t.rect(f,d,Se,ze);break;case fr.Z:if(p){var R=v[x++];if(y+R>b){var O=(b-y)/R;t.lineTo(u*(1-O)+s*O,c*(1-O)+l*O);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=fr,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function Il(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 ome(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=PH(e,t,r,n,i,a,o,s,u,c,null);return d<=f/2}function fG(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=RH(e,t,r,n,i,a,s,l,null);return c<=u/2}var ZN=Math.PI*2;function Hi(e){return e%=ZN,e<0&&(e+=ZN),e}var hh=Math.PI*2;function sme(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)%hh<1e-4)return!0;if(a){var f=n;n=Hi(i),i=Hi(f)}else n=Hi(n),i=Hi(i);n>i&&(i+=hh);var d=Math.atan2(l,s);return d<0&&(d+=hh),d>=n&&d<=i||d+hh>=n&&d+hh<=i}function Ss(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 gl=Jo.CMD,Ou=Math.PI*2,lme=1e-4;function ume(e,t){return Math.abs(e-t)<lme}var Zn=[-1,-1,-1],da=[-1,-1];function cme(){var e=da[0];da[0]=da[1],da[1]=e}function fme(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=w1(t,n,a,s,u,Zn);if(c===0)return 0;for(var f=0,d=-1,p=void 0,v=void 0,g=0;g<c;g++){var y=Zn[g],x=y===0||y===1?.5:1,b=an(e,r,i,o,y);b<l||(d<0&&(d=kH(t,n,a,s,da),da[1]<da[0]&&d>1&&cme(),p=an(t,n,a,s,da[0]),d>1&&(v=an(t,n,a,s,da[1]))),d===2?y<da[0]?f+=p<t?x:-x:y<da[1]?f+=v<p?x:-x:f+=s<v?x:-x:y<da[0]?f+=p<t?x:-x:f+=s<p?x:-x)}return f}function dme(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=wve(t,n,a,s,Zn);if(l===0)return 0;var u=DH(t,n,a);if(u>=0&&u<=1){for(var c=0,f=vn(t,n,a,u),d=0;d<l;d++){var p=Zn[d]===0||Zn[d]===1?.5:1,v=vn(e,r,i,Zn[d]);v<o||(Zn[d]<u?c+=f<t?p:-p:c+=a<f?p:-p)}return c}else{var p=Zn[0]===0||Zn[0]===1?.5:1,v=vn(e,r,i,Zn[0]);return v<o?0:a<t?p:-p}}function pme(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);Zn[0]=-l,Zn[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Ou-1e-4){n=0,i=Ou;var c=a?1:-1;return o>=Zn[0]+e&&o<=Zn[1]+e?c:0}if(n>i){var f=n;n=i,i=f}n<0&&(n+=Ou,i+=Ou);for(var d=0,p=0;p<2;p++){var v=Zn[p];if(v+e>o){var g=Math.atan2(s,v),c=a?1:-1;g<0&&(g=Ou+g),(g>=n&&g<=i||g+Ou>=n&&g+Ou<=i)&&(g>Math.PI/2&&g<Math.PI*1.5&&(c=-c),d+=c)}}return d}function dG(e,t,r,n,i){for(var a=e.data,o=e.len(),s=0,l=0,u=0,c=0,f=0,d,p,v=0;v<o;){var g=a[v++],y=v===1;switch(g===gl.M&&v>1&&(r||(s+=Ss(l,u,c,f,n,i))),y&&(l=a[v],u=a[v+1],c=l,f=u),g){case gl.M:c=a[v++],f=a[v++],l=c,u=f;break;case gl.L:if(r){if(Il(l,u,a[v],a[v+1],t,n,i))return!0}else s+=Ss(l,u,a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case gl.C:if(r){if(ome(l,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=fme(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 gl.Q:if(r){if(fG(l,u,a[v++],a[v++],a[v],a[v+1],t,n,i))return!0}else s+=dme(l,u,a[v++],a[v++],a[v],a[v+1],n,i)||0;l=a[v++],u=a[v++];break;case gl.A:var x=a[v++],b=a[v++],S=a[v++],w=a[v++],T=a[v++],C=a[v++];v+=1;var A=!!(1-a[v++]);d=Math.cos(T)*S+x,p=Math.sin(T)*w+b,y?(c=d,f=p):s+=Ss(l,u,d,p,n,i);var I=(n-x)*w/S+x;if(r){if(sme(x,b,w,T,T+C,A,t,I,i))return!0}else s+=pme(x,b,w,T,T+C,A,I,i);l=Math.cos(T+C)*S+x,u=Math.sin(T+C)*w+b;break;case gl.R:c=l=a[v++],f=u=a[v++];var k=a[v++],P=a[v++];if(d=c+k,p=f+P,r){if(Il(c,f,d,f,t,n,i)||Il(d,f,d,p,t,n,i)||Il(d,p,c,p,t,n,i)||Il(c,p,c,f,t,n,i))return!0}else s+=Ss(d,f,d,p,n,i),s+=Ss(c,p,c,f,n,i);break;case gl.Z:if(r){if(Il(l,u,c,f,t,n,i))return!0}else s+=Ss(l,u,c,f,n,i);l=c,u=f;break}}return!r&&!ume(u,f)&&(s+=Ss(l,u,c,f,n,i)||0),s!==0}function hme(e,t,r){return dG(e,0,!1,t,r)}function vme(e,t,r,n){return dG(e,t,!0,r,n)}var k1=Ye({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Cc),gme={style:Ye({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ub.style)},Uw=Ko.concat(["invisible","culling","z","z2","zlevel","parent"]),wt=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<Uw.length;++s)i[Uw[s]]=this[Uw[s]];i.__dirty|=Go}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var n=Dt(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(De(r)){var n=T1(r,0);return n>.5?$2:n>.2?Qve:V2}else if(r)return V2}return $2},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(De(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=T1(r,0)<F2;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 Jo(!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&Gh)&&(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)),vme(s,l/u,r,n)))return!0}if(this.hasFill())return hme(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=Gh,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&Gh)},t.prototype.createStyle=function(r){return rb(k1,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=Dt(u),d=0;d<f.length;d++){var p=f[d];typeof u[p]=="object"?this.shape[p]=u[p]:c[p]=u[p]}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 gme},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 Ke(r.style)},o.prototype.getDefaultShape=function(){return Ke(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=Go|$0|Gh}(),t}(Ma),mme=Ye({strokeFirst:!0,font:Xl,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},k1),Ed=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 rb(mme,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=Ng(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}(Ma);Ed.prototype.type="tspan";var yme=Ye({x:0,y:0},Cc),xme={style:Ye({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ub.style)};function bme(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var mn=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return rb(yme,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=bme(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 xme},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new vt(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Ma);mn.prototype.type="image";function Sme(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 cd=Math.round;function pG(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&&(cd(n*2)===cd(i*2)&&(e.x1=e.x2=pc(n,s,!0)),cd(a*2)===cd(o*2)&&(e.y1=e.y2=pc(a,s,!0))),e}}function hG(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=pc(n,s,!0),e.y=pc(i,s,!0),e.width=Math.max(pc(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(pc(i+o,s,!1)-e.y,o===0?0:1)),e}}function pc(e,t,r){if(!t)return e;var n=cd(e*2);return(n+cd(t))%2===0?n/2:(n+(r?1:-1))/2}var _me=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),wme={},Et=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new _me},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=hG(wme,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?Sme(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(wt);Et.prototype.type="rect";var KN={fill:"#000"},QN=2,Cme={style:Ye({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},ub.style)},zt=function(e){J(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=KN,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,Mme(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 vt(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||KN},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=Dt(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 Cme},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||Xl,i=r.padding,a=az(r),o=qge(a,r),s=Yw(r),l=!!r.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,d=o.lines,p=o.lineHeight,v=this._defaultStyle,g=r.x||0,y=r.y||0,x=r.align||v.align||"left",b=r.verticalAlign||v.verticalAlign||"top",S=g,w=rd(y,o.contentHeight,b);if(s||i){var T=jh(g,c,x),C=rd(y,u,b);s&&this._renderBackground(r,r,T,C,c,u)}w+=p/2,i&&(S=iz(g,x,i),b==="top"?w+=i[0]:b==="bottom"&&(w-=i[2]));for(var A=0,I=!1,k=nz("fill"in r?r.fill:(I=!0,v.fill)),P=rz("stroke"in r?r.stroke:!l&&(!v.autoStroke||I)?(A=QN,v.stroke):null),R=r.textShadowBlur>0,O=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),E=o.calculatedLineHeight,z=0;z<d.length;z++){var B=this._getOrCreateChild(Ed),W=B.createStyle();B.useStyle(W),W.text=d[z],W.x=S,W.y=w,W.textAlign=x,W.textBaseline="middle",W.opacity=r.opacity,W.strokeFirst=!0,R&&(W.shadowBlur=r.textShadowBlur||0,W.shadowColor=r.textShadowColor||"transparent",W.shadowOffsetX=r.textShadowOffsetX||0,W.shadowOffsetY=r.textShadowOffsetY||0),W.stroke=P,W.fill=k,P&&(W.lineWidth=r.lineWidth||A,W.lineDash=r.lineDash,W.lineDashOffset=r.lineDashOffset||0),W.font=n,ez(W,r),w+=p,O&&B.setBoundingRect(new vt(jh(W.x,r.width,W.textAlign),rd(W.y,E,W.textBaseline),f,E))}},t.prototype._updateRichTexts=function(){var r=this.style,n=az(r),i=Kge(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,p=r.verticalAlign||f.verticalAlign,v=jh(u,o,d),g=rd(c,s,p),y=v,x=g;l&&(y+=l[3],x+=l[0]);var b=y+a;Yw(r)&&this._renderBackground(r,r,v,g,o,s);for(var S=!!r.backgroundColor,w=0;w<i.lines.length;w++){for(var T=i.lines[w],C=T.tokens,A=C.length,I=T.lineHeight,k=T.width,P=0,R=y,O=b,E=A-1,z=void 0;P<A&&(z=C[P],!z.align||z.align==="left");)this._placeToken(z,r,I,x,R,"left",S),k-=z.width,R+=z.width,P++;for(;E>=0&&(z=C[E],z.align==="right");)this._placeToken(z,r,I,x,O,"right",S),k-=z.width,O-=z.width,E--;for(R+=(a-(R-y)-(b-O)-k)/2;P<=E;)z=C[P],this._placeToken(z,r,I,x,R+z.width/2,"center",S),R+=z.width,P++;x+=I}},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&&Yw(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 p=!!u.backgroundColor,v=r.textPadding;v&&(o=iz(o,s,v),f-=r.height/2-v[0]-r.innerHeight/2);var g=this._getOrCreateChild(Ed),y=g.createStyle();g.useStyle(y);var x=this._defaultStyle,b=!1,S=0,w=nz("fill"in u?u.fill:"fill"in n?n.fill:(b=!0,x.fill)),T=rz("stroke"in u?u.stroke:"stroke"in n?n.stroke:!p&&!l&&(!x.autoStroke||b)?(S=QN,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||Xl,y.opacity=Ho(u.opacity,n.opacity,1),ez(y,u),T&&(y.lineWidth=Ho(u.lineWidth,n.lineWidth,S),y.lineDash=it(u.lineDash,n.lineDash),y.lineDashOffset=n.lineDashOffset||0,y.stroke=T),w&&(y.fill=w);var A=r.contentWidth,I=r.contentHeight;g.setBoundingRect(new vt(jh(y.x,A,y.textAlign),rd(y.y,I,y.textBaseline),A,I))},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,p=r.borderRadius,v=this,g,y;if(d||r.lineHeight||u&&c){g=this._getOrCreateChild(Et),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=p,g.dirtyShape()}if(d){var b=g.style;b.fill=l||null,b.fillOpacity=it(r.fillOpacity,1)}else if(f){y=this._getOrCreateChild(mn),y.onload=function(){v.dirtyStyle()};var S=y.style;S.image=l.image,S.x=i,S.y=a,S.width=o,S.height=s}if(u&&c){var b=g.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=it(r.strokeOpacity,1),b.lineDash=r.borderDash,b.lineDashOffset=r.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(b.strokeFirst=!0,b.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=Ho(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return gG(r)&&(n=[r.fontStyle,r.fontWeight,vG(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Ya(n)||r.textFont||r.font},t}(Ma),Tme={left:!0,right:1,center:1},Ame={top:1,bottom:1,middle:1},JN=["fontStyle","fontWeight","fontSize","fontFamily"];function vG(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?TI+"px":e+"px"}function ez(e,t){for(var r=0;r<JN.length;r++){var n=JN[r],i=t[n];i!=null&&(e[n]=i)}}function gG(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function Mme(e){return tz(e),$(e.rich,tz),e}function tz(e){if(e){e.font=zt.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||Tme[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||Ame[r]?r:"top";var n=e.padding;n&&(e.padding=DI(e.padding))}}function rz(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function nz(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function iz(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function az(e){var t=e.text;return t!=null&&(t+=""),t}function Yw(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var tt=Ot(),Y2=function(e,t,r,n){if(n){var i=tt(n);i.dataIndex=r,i.dataType=t,i.seriesIndex=e,i.ssrType="chart",n.type==="group"&&n.traverse(function(a){var o=tt(a);o.seriesIndex=e,o.dataIndex=r,o.dataType=t,o.ssrType="chart"})}},oz=1,sz={},mG=Ot(),WI=Ot(),jI=0,Bg=1,fb=2,ni=["emphasis","blur","select"],Qv=["normal","emphasis","blur","select"],Qd=10,Ime=9,Tc="highlight",j0="downplay",bv="select",U0="unselect",Sv="toggleSelect";function Nf(e){return e!=null&&e!=="none"}function db(e,t,r){e.onHoverStateChange&&(e.hoverState||0)!==r&&e.onHoverStateChange(t),e.hoverState=r}function yG(e){db(e,"emphasis",fb)}function xG(e){e.hoverState===fb&&db(e,"normal",jI)}function UI(e){db(e,"blur",Bg)}function bG(e){e.hoverState===Bg&&db(e,"normal",jI)}function kme(e){e.selected=!0}function Pme(e){e.selected=!1}function lz(e,t,r){t(e,r)}function js(e,t,r){lz(e,t,r),e.isGroup&&e.traverse(function(n){lz(n,t,r)})}function P1(e,t){switch(t){case"emphasis":e.hoverState=fb;break;case"normal":e.hoverState=jI;break;case"blur":e.hoverState=Bg;break;case"select":e.selected=!0}}function Dme(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 Rme(e,t,r,n){var i=r&&bt(r,"select")>=0,a=!1;if(e instanceof wt){var o=mG(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Nf(s)||Nf(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=oe({},n),u=oe({},u),u.fill=s):!Nf(u.fill)&&Nf(s)?(a=!0,n=oe({},n),u=oe({},u),u.fill=R2(s)):!Nf(u.stroke)&&Nf(l)&&(a||(n=oe({},n),u=oe({},u)),u.stroke=R2(l)),n.style=u}}if(n&&n.z2==null){a||(n=oe({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??Qd)}return n}function Lme(e,t,r){if(r&&r.z2==null){r=oe({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??Ime)}return r}function Eme(e,t,r){var n=bt(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:Dme(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 qw(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return Rme(this,e,t,r);if(e==="blur")return Eme(this,e,r);if(e==="select")return Lme(this,e,r)}return r}function Vc(e){e.stateProxy=qw;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=qw),r&&(r.stateProxy=qw)}function uz(e,t){!CG(e,t)&&!e.__highByOuter&&js(e,yG)}function cz(e,t){!CG(e,t)&&!e.__highByOuter&&js(e,xG)}function zs(e,t){e.__highByOuter|=1<<(t||0),js(e,yG)}function Bs(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&js(e,xG)}function SG(e){js(e,UI)}function YI(e){js(e,bG)}function _G(e){js(e,kme)}function wG(e){js(e,Pme)}function CG(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function TG(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=WI(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){bG(u)}),s&&r.push(a)),o.isBlured=!1}),$(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function q2(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&&YI(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 p=n.getViewOfSeriesModel(u);if(p.group.traverse(function(y){y.__highByOuter&&c&&t==="self"||UI(y)}),Bn(t))a(u.getData(),t);else if(Xe(t))for(var v=Dt(t),g=0;g<v.length;g++)a(u.getData(v[g]),t[v[g]]);l.push(u),WI(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 X2(e,t,r){if(!(e==null||t==null)){var n=r.getModel().getComponent(e,t);if(n){WI(n).isBlured=!0;var i=r.getViewOfComponentModel(n);!i||!i.focusBlurEnabled||i.group.traverse(function(a){UI(a)})}}}function Ome(e,t,r){var n=e.seriesIndex,i=e.getData(t.dataType);if(i){var a=Fc(i,t);a=(he(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=tt(o);q2(n,u.focus,u.blurScope,r)}else{var c=e.get(["emphasis","focus"]),f=e.get(["emphasis","blurScope"]);c!=null&&q2(n,c,f,r)}}}function qI(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(tt(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function Nme(e,t,r){var n=tt(e),i=qI(n.componentMainType,n.componentIndex,n.componentHighDownName,r),a=i.dispatchers,o=i.focusSelf;a?(o&&X2(n.componentMainType,n.componentIndex,r),$(a,function(s){return uz(s,t)})):(q2(n.seriesIndex,n.focus,n.blurScope,r),n.focus==="self"&&X2(n.componentMainType,n.componentIndex,r),uz(e,t))}function zme(e,t,r){TG(r);var n=tt(e),i=qI(n.componentMainType,n.componentIndex,n.componentHighDownName,r).dispatchers;i?$(i,function(a){return cz(a,t)}):cz(e,t)}function Bme(e,t,r){if(K2(t)){var n=t.dataType,i=e.getData(n),a=Fc(i,t);he(a)||(a=[a]),e[t.type===Sv?"toggleSelect":t.type===bv?"select":"unselect"](a,n)}}function fz(e){var t=e.getAllData();$(t,function(r){var n=r.data,i=r.type;n.eachItemGraphicEl(function(a,o){e.isSelected(o,i)?_G(a):wG(a)})})}function Fme(e){var t=[];return e.eachSeries(function(r){var n=r.getAllData();$(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 Ac(e,t,r){hc(e,!0),js(e,Vc),Z2(e,t,r)}function $me(e){hc(e,!1)}function Rr(e,t,r,n){n?$me(e):Ac(e,t,r)}function Z2(e,t,r){var n=tt(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var dz=["emphasis","blur","select"],Vme={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function An(e,t,r,n){r=r||"itemStyle";for(var i=0;i<dz.length;i++){var a=dz[i],o=t.getModel([a,r]),s=e.ensureState(a);s.style=n?n(o):o[Vme[r]]()}}function hc(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 Jv(e){return!!(e&&e.__highDownDispatcher)}function Hme(e,t,r){var n=tt(e);n.componentMainType=t.mainType,n.componentIndex=t.componentIndex,n.componentHighDownName=r}function Gme(e){var t=sz[e];return t==null&&oz<=32&&(t=sz[e]=oz++),t}function K2(e){var t=e.type;return t===bv||t===U0||t===Sv}function pz(e){var t=e.type;return t===Tc||t===j0}function Wme(e){var t=mG(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 zf=Jo.CMD,jme=[[],[],[]],hz=Math.sqrt,Ume=Math.atan2;function AG(e,t){if(t){var r=e.data,n=e.len(),i,a,o,s,l,u,c=zf.M,f=zf.C,d=zf.L,p=zf.R,v=zf.A,g=zf.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],b=hz(t[0]*t[0]+t[1]*t[1]),S=hz(t[2]*t[2]+t[3]*t[3]),w=Ume(-t[1]/S,t[0]/b);r[o]*=b,r[o++]+=y,r[o]*=S,r[o++]+=x,r[o++]*=b,r[o++]*=S,r[o++]+=w,r[o++]+=w,o+=2,s=o;break;case p:u[0]=r[o++],u[1]=r[o++],Tn(u,u,t),r[s++]=u[0],r[s++]=u[1],u[0]+=r[o++],u[1]+=r[o++],Tn(u,u,t),r[s++]=u[0],r[s++]=u[1]}for(l=0;l<a;l++){var T=jme[l];T[0]=r[o++],T[1]=r[o++],Tn(T,T,t),r[s++]=T[0],r[s++]=T[1]}}e.increaseVersion()}}var Xw=Math.sqrt,Vy=Math.sin,Hy=Math.cos,vh=Math.PI;function vz(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Q2(e,t){return(e[0]*t[0]+e[1]*t[1])/(vz(e)*vz(t))}function gz(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Q2(e,t))}function mz(e,t,r,n,i,a,o,s,l,u,c){var f=l*(vh/180),d=Hy(f)*(e-r)/2+Vy(f)*(t-n)/2,p=-1*Vy(f)*(e-r)/2+Hy(f)*(t-n)/2,v=d*d/(o*o)+p*p/(s*s);v>1&&(o*=Xw(v),s*=Xw(v));var g=(i===a?-1:1)*Xw((o*o*(s*s)-o*o*(p*p)-s*s*(d*d))/(o*o*(p*p)+s*s*(d*d)))||0,y=g*o*p/s,x=g*-s*d/o,b=(e+r)/2+Hy(f)*y-Vy(f)*x,S=(t+n)/2+Vy(f)*y+Hy(f)*x,w=gz([1,0],[(d-y)/o,(p-x)/s]),T=[(d-y)/o,(p-x)/s],C=[(-1*d-y)/o,(-1*p-x)/s],A=gz(T,C);if(Q2(T,C)<=-1&&(A=vh),Q2(T,C)>=1&&(A=0),A<0){var I=Math.round(A/vh*1e6)/1e6;A=vh*2+I%2*vh}c.addData(u,b,S,o,s,w,A,f,a)}var Yme=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,qme=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Xme(e){var t=new Jo;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=Jo.CMD,l=e.match(Yme);if(!l)return t;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,p=c.match(qme)||[],v=p.length,g=0;g<v;g++)p[g]=parseFloat(p[g]);for(var y=0;y<v;){var x=void 0,b=void 0,S=void 0,w=void 0,T=void 0,C=void 0,A=void 0,I=r,k=n,P=void 0,R=void 0;switch(f){case"l":r+=p[y++],n+=p[y++],d=s.L,t.addData(d,r,n);break;case"L":r=p[y++],n=p[y++],d=s.L,t.addData(d,r,n);break;case"m":r+=p[y++],n+=p[y++],d=s.M,t.addData(d,r,n),i=r,a=n,f="l";break;case"M":r=p[y++],n=p[y++],d=s.M,t.addData(d,r,n),i=r,a=n,f="L";break;case"h":r+=p[y++],d=s.L,t.addData(d,r,n);break;case"H":r=p[y++],d=s.L,t.addData(d,r,n);break;case"v":n+=p[y++],d=s.L,t.addData(d,r,n);break;case"V":n=p[y++],d=s.L,t.addData(d,r,n);break;case"C":d=s.C,t.addData(d,p[y++],p[y++],p[y++],p[y++],p[y++],p[y++]),r=p[y-2],n=p[y-1];break;case"c":d=s.C,t.addData(d,p[y++]+r,p[y++]+n,p[y++]+r,p[y++]+n,p[y++]+r,p[y++]+n),r+=p[y-2],n+=p[y-1];break;case"S":x=r,b=n,P=t.len(),R=t.data,o===s.C&&(x+=r-R[P-4],b+=n-R[P-3]),d=s.C,I=p[y++],k=p[y++],r=p[y++],n=p[y++],t.addData(d,x,b,I,k,r,n);break;case"s":x=r,b=n,P=t.len(),R=t.data,o===s.C&&(x+=r-R[P-4],b+=n-R[P-3]),d=s.C,I=r+p[y++],k=n+p[y++],r+=p[y++],n+=p[y++],t.addData(d,x,b,I,k,r,n);break;case"Q":I=p[y++],k=p[y++],r=p[y++],n=p[y++],d=s.Q,t.addData(d,I,k,r,n);break;case"q":I=p[y++]+r,k=p[y++]+n,r+=p[y++],n+=p[y++],d=s.Q,t.addData(d,I,k,r,n);break;case"T":x=r,b=n,P=t.len(),R=t.data,o===s.Q&&(x+=r-R[P-4],b+=n-R[P-3]),r=p[y++],n=p[y++],d=s.Q,t.addData(d,x,b,r,n);break;case"t":x=r,b=n,P=t.len(),R=t.data,o===s.Q&&(x+=r-R[P-4],b+=n-R[P-3]),r+=p[y++],n+=p[y++],d=s.Q,t.addData(d,x,b,r,n);break;case"A":S=p[y++],w=p[y++],T=p[y++],C=p[y++],A=p[y++],I=r,k=n,r=p[y++],n=p[y++],d=s.A,mz(I,k,r,n,C,A,S,w,T,d,t);break;case"a":S=p[y++],w=p[y++],T=p[y++],C=p[y++],A=p[y++],I=r,k=n,r+=p[y++],n+=p[y++],d=s.A,mz(I,k,r,n,C,A,S,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 MG=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(wt);function IG(e){return e.setData!=null}function kG(e,t){var r=Xme(e),n=oe({},t);return n.buildPath=function(i){if(IG(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){AG(r,i),this.dirtyShape()},n}function PG(e,t){return new MG(kG(e,t))}function Zme(e,t){var r=kG(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}(MG);return n}function Kme(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 wt(t);return o.createPathProxy(),o.buildPath=function(s){if(IG(s)){s.appendPath(r);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function XI(e,t){t=t||{};var r=new wt;return e.shape&&r.setShape(e.shape),r.setStyle(e.style),t.bakeTransform?AG(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 Qme=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),Us=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Qme},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}(wt);Us.prototype.type="circle";var Jme=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),pb=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Jme},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}(wt);pb.prototype.type="ellipse";var DG=Math.PI,Zw=DG*2,Nu=Math.sin,Bf=Math.cos,eye=Math.acos,Rn=Math.atan2,yz=Math.abs,_v=Math.sqrt,Uh=Math.max,So=Math.min,Ha=1e-4;function tye(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<Ha))return d=(c*(t-a)-f*(e-i))/d,[e+d*l,t+d*u]}function Gy(e,t,r,n,i,a,o){var s=e-r,l=t-n,u=(o?a:-a)/_v(s*s+l*l),c=u*l,f=-u*s,d=e+c,p=t+f,v=r+c,g=n+f,y=(d+v)/2,x=(p+g)/2,b=v-d,S=g-p,w=b*b+S*S,T=i-a,C=d*g-v*p,A=(S<0?-1:1)*_v(Uh(0,T*T*w-C*C)),I=(C*S-b*A)/w,k=(-C*b-S*A)/w,P=(C*S+b*A)/w,R=(-C*b+S*A)/w,O=I-y,E=k-x,z=P-y,B=R-x;return O*O+E*E>z*z+B*B&&(I=P,k=R),{cx:I,cy:k,x0:-c,y0:-f,x1:I*(i/T-1),y1:k*(i/T-1)}}function rye(e){var t;if(he(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 nye(e,t){var r,n=Uh(t.r,0),i=Uh(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,p=yz(u-l),v=p>Zw&&p%Zw;if(v>Ha&&(p=v),!(n>Ha))e.moveTo(c,f);else if(p>Zw-Ha)e.moveTo(c+n*Bf(l),f+n*Nu(l)),e.arc(c,f,n,l,u,!d),i>Ha&&(e.moveTo(c+i*Bf(u),f+i*Nu(u)),e.arc(c,f,i,u,l,d));else{var g=void 0,y=void 0,x=void 0,b=void 0,S=void 0,w=void 0,T=void 0,C=void 0,A=void 0,I=void 0,k=void 0,P=void 0,R=void 0,O=void 0,E=void 0,z=void 0,B=n*Bf(l),W=n*Nu(l),X=i*Bf(u),H=i*Nu(u),q=p>Ha;if(q){var F=t.cornerRadius;F&&(r=rye(F),g=r[0],y=r[1],x=r[2],b=r[3]);var Y=yz(n-i)/2;if(S=So(Y,x),w=So(Y,b),T=So(Y,g),C=So(Y,y),k=A=Uh(S,w),P=I=Uh(T,C),(A>Ha||I>Ha)&&(R=n*Bf(u),O=n*Nu(u),E=i*Bf(l),z=i*Nu(l),p<DG)){var Z=tye(B,W,E,z,R,O,X,H);if(Z){var j=B-Z[0],te=W-Z[1],fe=R-Z[0],re=O-Z[1],ce=1/Nu(eye((j*fe+te*re)/(_v(j*j+te*te)*_v(fe*fe+re*re)))/2),ne=_v(Z[0]*Z[0]+Z[1]*Z[1]);k=So(A,(n-ne)/(ce+1)),P=So(I,(i-ne)/(ce-1))}}}if(!q)e.moveTo(c+B,f+W);else if(k>Ha){var pe=So(x,k),me=So(b,k),le=Gy(E,z,B,W,n,pe,d),Se=Gy(R,O,X,H,n,me,d);e.moveTo(c+le.cx+le.x0,f+le.cy+le.y0),k<A&&pe===me?e.arc(c+le.cx,f+le.cy,k,Rn(le.y0,le.x0),Rn(Se.y0,Se.x0),!d):(pe>0&&e.arc(c+le.cx,f+le.cy,pe,Rn(le.y0,le.x0),Rn(le.y1,le.x1),!d),e.arc(c,f,n,Rn(le.cy+le.y1,le.cx+le.x1),Rn(Se.cy+Se.y1,Se.cx+Se.x1),!d),me>0&&e.arc(c+Se.cx,f+Se.cy,me,Rn(Se.y1,Se.x1),Rn(Se.y0,Se.x0),!d))}else e.moveTo(c+B,f+W),e.arc(c,f,n,l,u,!d);if(!(i>Ha)||!q)e.lineTo(c+X,f+H);else if(P>Ha){var pe=So(g,P),me=So(y,P),le=Gy(X,H,R,O,i,-me,d),Se=Gy(B,W,E,z,i,-pe,d);e.lineTo(c+le.cx+le.x0,f+le.cy+le.y0),P<I&&pe===me?e.arc(c+le.cx,f+le.cy,P,Rn(le.y0,le.x0),Rn(Se.y0,Se.x0),!d):(me>0&&e.arc(c+le.cx,f+le.cy,me,Rn(le.y0,le.x0),Rn(le.y1,le.x1),!d),e.arc(c,f,i,Rn(le.cy+le.y1,le.cx+le.x1),Rn(Se.cy+Se.y1,Se.cx+Se.x1),d),pe>0&&e.arc(c+Se.cx,f+Se.cy,pe,Rn(Se.y1,Se.x1),Rn(Se.y0,Se.x0),!d))}else e.lineTo(c+X,f+H),e.arc(c,f,i,u,l,d)}e.closePath()}}}var iye=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}(),ii=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new iye},t.prototype.buildPath=function(r,n){nye(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(wt);ii.prototype.type="sector";var aye=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),Fg=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new aye},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}(wt);Fg.prototype.type="ring";function oye(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,p=e.length;d<p;d++)Ll(c,c,e[d]),El(f,f,e[d]);Ll(c,c,n[0]),El(f,f,n[1])}for(var d=0,p=e.length;d<p;d++){var v=e[d];if(r)l=e[d?d-1:p-1],u=e[(d+1)%p];else if(d===0||d===p-1){i.push(As(e[d]));continue}else l=e[d-1],u=e[d+1];dc(a,u,l),z0(a,a,t);var g=w2(v,l),y=w2(v,u),x=g+y;x!==0&&(g/=x,y/=x),z0(o,a,-g),z0(s,a,y);var b=hN([],v,o),S=hN([],v,s);n&&(El(b,b,c),Ll(b,b,f),El(S,S,c),Ll(S,S,f)),i.push(b),i.push(S)}return r&&i.push(i.shift()),i}function RG(e,t,r){var n=t.smooth,i=t.points;if(i&&i.length>=2){if(n){var a=oye(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 sye=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),ai=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new sye},t.prototype.buildPath=function(r,n){RG(r,n,!0)},t}(wt);ai.prototype.type="polygon";var lye=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),li=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 lye},t.prototype.buildPath=function(r,n){RG(r,n,!1)},t}(wt);li.prototype.type="polyline";var uye={},cye=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),on=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 cye},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=pG(uye,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}(wt);on.prototype.type="line";var mi=[],fye=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 xz(e,t,r){var n=e.cpx2,i=e.cpy2;return n!=null||i!=null?[(r?AN:an)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?AN:an)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?I2:vn)(e.x1,e.cpx1,e.x2,t),(r?I2:vn)(e.y1,e.cpy1,e.y2,t)]}var $g=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 fye},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&&(Yv(i,l,o,d,mi),l=mi[1],o=mi[2],Yv(a,u,s,d,mi),u=mi[1],s=mi[2]),r.quadraticCurveTo(l,u,o,s)):(d<1&&(Kl(i,l,c,o,d,mi),l=mi[1],c=mi[2],o=mi[3],Kl(a,u,f,s,d,mi),u=mi[1],f=mi[2],s=mi[3]),r.bezierCurveTo(l,u,c,f,o,s)))},t.prototype.pointAt=function(r){return xz(this.shape,r,!1)},t.prototype.tangentAt=function(r){var n=xz(this.shape,r,!0);return Xd(n,n)},t}(wt);$g.prototype.type="bezier-curve";var dye=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}(),hb=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 dye},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}(wt);hb.prototype.type="arc";var ZI=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),wt.prototype.getBoundingRect.call(this)},t}(wt),LG=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}(),Vg=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}(LG),EG=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}(LG),zu=[0,0],Bu=[0,0],Wy=new dt,jy=new dt,D1=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new dt;for(var n=0;n<2;n++)this._axes[n]=new dt;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);dt.sub(i[0],n[1],n[0]),dt.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 Wy.set(1/0,1/0),jy.set(0,0),!this._intersectCheckOneSide(this,t,Wy,jy,i,1)&&(n=!1,i)||!this._intersectCheckOneSide(t,this,Wy,jy,i,-1)&&(n=!1,i)||i||dt.copy(r,n?Wy:jy),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,zu),this._getProjMinMaxOnAxis(l,r._corners,Bu),zu[1]<Bu[0]||zu[0]>Bu[1]){if(s=!1,a)return s;var c=Math.abs(Bu[0]-zu[1]),f=Math.abs(zu[0]-Bu[1]);Math.min(c,f)>i.len()&&(c<f?dt.scale(i,u,-c*o):dt.scale(i,u,f*o))}else if(n){var c=Math.abs(Bu[0]-zu[1]),f=Math.abs(zu[0]-Bu[1]);Math.min(c,f)<n.len()&&(c<f?dt.scale(n,u,c*o):dt.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}(),pye=[],hye=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 vt(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(pye)),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}(Ma),OG=Ot();function Jd(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=it(n.duration,200),c=it(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)),je(f)&&(f=f(r,i)),je(u)&&(u=u(r));var d={duration:u||0,delay:f,easing:c};return d}else return null}function KI(e,t,r,n,i,a,o){var s=!1,l;je(i)?(o=a,a=i,i=null):Xe(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=Jd(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,p=c.easing,v={duration:f,delay:d||0,easing:p,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 Ht(e,t,r,n,i,a){KI("update",e,t,r,n,i,a)}function mr(e,t,r,n,i,a){KI("enter",e,t,r,n,i,a)}function xd(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 Ql(e,t,r,n,i,a){xd(e)||KI("leave",e,t,r,n,i,a)}function bz(e,t,r,n){e.removeTextContent(),e.removeTextGuideLine(),Ql(e,{style:{opacity:0}},t,r,n)}function eg(e,t,r){function n(){e.parent&&e.parent.remove(e)}e.isGroup?e.traverse(function(i){i.isGroup||bz(i,t,r,n)}):bz(e,t,r,n)}function no(e){OG(e).oldStyle=e.style}function vye(e){return OG(e).oldStyle}var R1=Math.max,L1=Math.min,J2={};function gye(e){return wt.extend(e)}var mye=Zme;function yye(e,t){return mye(e,t)}function oo(e,t){J2[e]=t}function QI(e){if(J2.hasOwnProperty(e))return J2[e]}function vb(e,t,r,n){var i=PG(e,t);return r&&(n==="center"&&(r=zG(r,i.getBoundingRect())),BG(i,r)),i}function NG(e,t,r){var n=new mn({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(zG(t,a))}}});return n}function zG(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 xa=Kme;function BG(e,t){if(e.applyTransform){var r=e.getBoundingRect(),n=r.calculateTransform(t);e.applyTransform(n)}}function Od(e,t){return pG(e,e,{lineWidth:t}),e}function xye(e){return hG(e.shape,e.shape,e.style),e}var Y0=pc;function Mc(e,t){for(var r=nb([]);e&&e!==t;)Ms(r,e.getLocalTransform(),r),e=e.parent;return r}function Za(e,t,r){return t&&!Bn(t)&&(t=ws.getLocalTransform(t)),r&&(t=Zd([],t)),Tn([],e,t)}function gb(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=Za(a,t,r),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function Sz(e){return!e.isGroup}function bye(e){return e.shape!=null}function Hg(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){Sz(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return bye(o)&&(s.shape=oe({},o.shape)),s}var a=n(e);t.traverse(function(o){if(Sz(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),Ht(o,l,r,tt(o).dataIndex)}}})}function FG(e,t){return ve(e,function(r){var n=r[0];n=R1(n,t.x),n=L1(n,t.x+t.width);var i=r[1];return i=R1(i,t.y),i=L1(i,t.y+t.height),[n,i]})}function Sye(e,t){var r=R1(e.x,t.x),n=L1(e.x+e.width,t.x+t.width),i=R1(e.y,t.y),a=L1(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 Gg(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),Ye(i,r),new mn(n)):vb(e.replace("path://",""),n,r,"center")}function Yh(e,t,r,n,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if($G(e,t,r,n,s[0],s[1],o[0],o[1]))return!0;o=s}}function $G(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,d=Kw(c,f,l,u);if(_ye(d))return!1;var p=e-i,v=t-a,g=Kw(p,v,l,u)/d;if(g<0||g>1)return!1;var y=Kw(p,v,c,f)/d;return!(y<0||y>1)}function Kw(e,t,r,n){return e*n-r*t}function _ye(e){return e<=1e-6&&e>=-1e-6}function ep(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=De(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&&$(Dt(l),function(c){Fe(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=tt(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Ye({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function _z(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function lu(e,t){if(e)if(he(e))for(var r=0;r<e.length;r++)_z(e[r],t);else _z(e,t)}oo("circle",Us);oo("ellipse",pb);oo("sector",ii);oo("ring",Fg);oo("polygon",ai);oo("polyline",li);oo("rect",Et);oo("line",on);oo("bezierCurve",$g);oo("arc",hb);const qc=Object.freeze(Object.defineProperty({__proto__:null,Arc:hb,BezierCurve:$g,BoundingRect:vt,Circle:Us,CompoundPath:ZI,Ellipse:pb,Group:Je,Image:mn,IncrementalDisplayable:hye,Line:on,LinearGradient:Vg,OrientedBoundingRect:D1,Path:wt,Point:dt,Polygon:ai,Polyline:li,RadialGradient:EG,Rect:Et,Ring:Fg,Sector:ii,Text:zt,applyTransform:Za,clipPointsByRect:FG,clipRectByRect:Sye,createIcon:Gg,extendPath:yye,extendShape:gye,getShapeClass:QI,getTransform:Mc,groupTransition:Hg,initProps:mr,isElementRemoved:xd,lineLineIntersect:$G,linePolygonIntersect:Yh,makeImage:NG,makePath:vb,mergePath:xa,registerShape:oo,removeElement:Ql,removeElementWithFadeOut:eg,resizePath:BG,setTooltipConfig:ep,subPixelOptimize:Y0,subPixelOptimizeLine:Od,subPixelOptimizeRect:xye,transformDirection:gb,traverseElements:lu,updateProps:Ht},Symbol.toStringTag,{value:"Module"}));var mb={};function VG(e,t){for(var r=0;r<ni.length;r++){var n=ni[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 eA(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=je(e.defaultText)?e.defaultText(i,e,r):e.defaultText);for(var l={normal:s},u=0;u<ni.length;u++){var c=ni[u],f=t[c];l[c]=it(n?n.getFormattedLabel(i,c,null,a,f&&f.get("formatter")):null,s)}return l}function Mn(e,t,r,n){r=r||mb;for(var i=e instanceof zt,a=!1,o=0;o<Qv.length;o++){var s=t[Qv[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?e:e.getTextContent();if(a){i||(l||(l=new zt,e.setTextContent(l)),e.stateProxy&&(l.stateProxy=e.stateProxy));var u=eA(r,t),c=t.normal,f=!!c.getShallow("show"),d=vr(c,n&&n.normal,r,!1,!i);d.text=u.normal,i||e.setTextConfig(E1(c,r,!1));for(var o=0;o<ni.length;o++){var p=ni[o],s=t[p];if(s){var v=l.ensureState(p),g=!!it(s.getShallow("show"),f);if(g!==f&&(v.ignore=!g),v.style=vr(s,n&&n[p],r,!0,!i),v.style.text=u[p],!i){var y=e.ensureState(p);y.textConfig=E1(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&&(tp(l).setLabelText=function(x){var b=eA(r,t,x);VG(l,b)})}else l&&(l.ignore=!0);e.dirty()}function un(e,t){t=t||"label";for(var r={normal:e.getModel(t)},n=0;n<ni.length;n++){var i=ni[n];r[i]=e.getModel([i,t])}return r}function vr(e,t,r,n,i){var a={};return wye(a,e,r,n,i),t&&oe(a,t),a}function E1(e,t,r){t=t||{};var n={},i,a=e.getShallow("rotate"),o=it(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 wye(e,t,r,n,i){r=r||mb;var a=t.ecModel,o=a&&a.option.textStyle,s=Cye(t),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=t.getModel(["rich",u]);Az(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),Az(e,t,o,r,n,i,!0,!1)}function Cye(e){for(var t;e&&e!==e.ecModel;){var r=(e.option||mb).rich;if(r){t=t||{};for(var n=Dt(r),i=0;i<n.length;i++){var a=n[i];t[a]=1}}e=e.parentModel}return t}var wz=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],Cz=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],Tz=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function Az(e,t,r,n,i,a,o,s){r=!i&&r||mb;var l=n&&n.inheritColor,u=t.getShallow("color"),c=t.getShallow("textBorderColor"),f=it(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=it(t.getShallow("textBorderWidth"),r.textBorderWidth);d!=null&&(e.lineWidth=d);var p=it(t.getShallow("textBorderType"),r.textBorderType);p!=null&&(e.lineDash=p);var v=it(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<wz.length;g++){var y=wz[g],x=it(t.getShallow(y),r[y]);x!=null&&(e[y]=x)}for(var g=0;g<Cz.length;g++){var y=Cz[g],x=t.getShallow(y);x!=null&&(e[y]=x)}if(e.verticalAlign==null){var b=t.getShallow("baseline");b!=null&&(e.verticalAlign=b)}if(!o||!n.disableBox){for(var g=0;g<Tz.length;g++){var y=Tz[g],x=t.getShallow(y);x!=null&&(e[y]=x)}var S=t.getShallow("borderType");S!=null&&(e.borderDash=S),(e.backgroundColor==="auto"||e.backgroundColor==="inherit")&&l&&(e.backgroundColor=l),(e.borderColor==="auto"||e.borderColor==="inherit")&&l&&(e.borderColor=l)}}function JI(e,t){var r=t&&t.getModel("textStyle");return Ya([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 tp=Ot();function HG(e,t,r,n){if(e){var i=tp(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 GG(e,t,r,n,i){var a=tp(e);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=it(a.interpolatedValue,a.prevValue),l=a.value;function u(c){var f=aG(r,a.precision,s,l,c);a.interpolatedValue=c===1?null:f;var d=eA({labelDataIndex:t,labelFetcher:i,defaultText:o?o(f):f+""},a.statesModels,f);VG(e,d)}e.percent=0,(a.prevValue==null?mr:Ht)(e,{percent:1},n,t,null,u)}var Tye=["textStyle","color"],Qw=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],Jw=new zt,Aye=function(){function e(){}return e.prototype.getTextColor=function(t){var r=this.ecModel;return this.getShallow("color")||(!t&&r?r.get(Tye):null)},e.prototype.getFont=function(){return JI({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<Qw.length;n++)r[Qw[n]]=this.getShallow(Qw[n]);return Jw.useStyle(r),Jw.update(),Jw.getBoundingRect()},e}(),WG=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Mye=$c(WG),Iye=function(){function e(){}return e.prototype.getLineStyle=function(t){return Mye(this,t)},e}(),jG=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],kye=$c(jG),Pye=function(){function e(){}return e.prototype.getItemStyle=function(t,r){return kye(this,t,r)},e}(),Zt=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){ht(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(Ke(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(!kt.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}();VI(Zt);Fge(Zt);Yr(Zt,Iye);Yr(Zt,Pye);Yr(Zt,Wge);Yr(Zt,Aye);var Dye=Math.round(Math.random()*10);function rp(e){return[e||"",Dye++].join("_")}function Rye(e){var t={};e.registerSubTypeDefaulter=function(r,n){var i=Oo(r);t[i.main]=n},e.determineSubType=function(r,n){var i=n.type;if(!i){var a=Oo(r).main;e.hasSubTypes(r)&&t[a]&&(i=t[a](n))}return i}}function Lye(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($(a,function(b){d[b]=!0});f.length;){var p=f.pop(),v=c[p],g=!!d[p];g&&(s.call(l,p,v.originalDeps.slice()),delete d[p]),$(v.successor,g?x:y)}$(d,function(){var b="";throw new Error(b)});function y(b){c[b].entryCount--,c[b].entryCount===0&&f.push(b)}function x(b){d[b]=!0,y(b)}};function r(a){var o={},s=[];return $(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),$(f,function(d){bt(u.predecessor,d)<0&&u.predecessor.push(d);var p=n(o,d);bt(p.successor,d)<0&&p.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 $(a,function(l){bt(o,l)>=0&&s.push(l)}),s}}function uu(e,t){return ht(ht({},e,!0),t,!0)}const Eye={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:". "}}}},Oye={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 O1="ZH",ek="EN",bd=ek,q0={},tk={},UG=kt.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||bd).toUpperCase();return e.indexOf(O1)>-1?O1:bd}():bd;function YG(e,t){e=e.toUpperCase(),tk[e]=new Zt(t),q0[e]=t}function Nye(e){if(De(e)){var t=q0[e.toUpperCase()]||{};return e===O1||e===ek?Ke(t):ht(Ke(t),Ke(q0[bd]),!1)}else return ht(Ke(e),Ke(q0[bd]),!1)}function tA(e){return tk[e]}function zye(){return tk[bd]}YG(ek,Eye);YG(O1,Oye);var rk=1e3,nk=rk*60,wv=nk*60,ba=wv*24,Mz=ba*365,qh={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}"},Uy="{yyyy}-{MM}-{dd}",Iz={year:"{yyyy}",month:"{yyyy}-{MM}",day:Uy,hour:Uy+" "+qh.hour,minute:Uy+" "+qh.minute,second:Uy+" "+qh.second,millisecond:qh.none},eC=["year","month","day","hour","minute","second","millisecond"],qG=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function ml(e,t){return e+="","0000".substr(0,t-e.length)+e}function Sd(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 Bye(e){return e===Sd(e)}function Fye(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function yb(e,t,r,n){var i=Qo(e),a=i[ik(r)](),o=i[_d(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[xb(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[tg(r)](),f=(c-1)%12+1,d=i[bb(r)](),p=i[Sb(r)](),v=i[_b(r)](),g=c>=12?"pm":"am",y=g.toUpperCase(),x=n instanceof Zt?n:tA(n||UG)||zye(),b=x.getModel("time"),S=b.get("month"),w=b.get("monthAbbr"),T=b.get("dayOfWeek"),C=b.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,g+"").replace(/{A}/g,y+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,ml(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,S[o-1]).replace(/{MMM}/g,w[o-1]).replace(/{MM}/g,ml(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,ml(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,T[u]).replace(/{ee}/g,C[u]).replace(/{e}/g,u+"").replace(/{HH}/g,ml(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,ml(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,ml(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,ml(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,ml(v,3)).replace(/{S}/g,v+"")}function $ye(e,t,r,n,i){var a=null;if(De(r))a=r;else if(je(r))a=r(e.value,t,{level:e.level});else{var o=oe({},qh);if(e.level>0)for(var s=0;s<eC.length;++s)o[eC[s]]="{primary|"+o[eC[s]]+"}";var l=r?r.inherit===!1?r:Ye(r,o):o,u=XG(e.value,i);if(l[u])a=l[u];else if(l.inherit){for(var c=qG.indexOf(u),s=c-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(he(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 yb(new Date(e.value),a,i,n)}function XG(e,t){var r=Qo(e),n=r[_d(t)]()+1,i=r[xb(t)](),a=r[tg(t)](),o=r[bb(t)](),s=r[Sb(t)](),l=r[_b(t)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&a===0,p=d&&i===1,v=p&&n===1;return v?"year":p?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function kz(e,t,r){var n=Bt(e)?Qo(e):e;switch(t=t||XG(e,r),t){case"year":return n[ik(r)]();case"half-year":return n[_d(r)]()>=6?1:0;case"quarter":return Math.floor((n[_d(r)]()+1)/4);case"month":return n[_d(r)]();case"day":return n[xb(r)]();case"half-day":return n[tg(r)]()/24;case"hour":return n[tg(r)]();case"minute":return n[bb(r)]();case"second":return n[Sb(r)]();case"millisecond":return n[_b(r)]()}}function ik(e){return e?"getUTCFullYear":"getFullYear"}function _d(e){return e?"getUTCMonth":"getMonth"}function xb(e){return e?"getUTCDate":"getDate"}function tg(e){return e?"getUTCHours":"getHours"}function bb(e){return e?"getUTCMinutes":"getMinutes"}function Sb(e){return e?"getUTCSeconds":"getSeconds"}function _b(e){return e?"getUTCMilliseconds":"getMilliseconds"}function Vye(e){return e?"setUTCFullYear":"setFullYear"}function ZG(e){return e?"setUTCMonth":"setMonth"}function KG(e){return e?"setUTCDate":"setDate"}function QG(e){return e?"setUTCHours":"setHours"}function JG(e){return e?"setUTCMinutes":"setMinutes"}function eW(e){return e?"setUTCSeconds":"setSeconds"}function tW(e){return e?"setUTCMilliseconds":"setMilliseconds"}function rW(e){if(!KH(e))return De(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function nW(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 np=DI;function rA(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Ya(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?Qo(e):e;if(isNaN(+l)){if(s)return"-"}else return yb(l,n,r)}if(t==="ordinal")return b2(e)?i(e):Bt(e)&&a(e)?e+"":"-";var u=Ns(e);return a(u)?rW(u):b2(e)?i(e):typeof e=="boolean"?e+"":"-"}var Pz=["a","b","c","d","e","f","g"],tC=function(e,t){return"{"+e+(t??"")+"}"};function iW(e,t,r){he(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a<i.length;a++){var o=Pz[a];e=e.replace(tC(o),tC(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(tC(Pz[l],s),r?bi(u):u)}return e}function Hye(e,t,r){return $(t,function(n,i){e=e.replace("{"+i+"}",n)}),e}function Gye(e,t){var r=De(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:'+bi(n)+";"+(t||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+bi(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 Hc(e,t){return t=t||"transparent",De(e)?e:Xe(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function N1(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var X0=$,aW=["left","right","top","bottom","width","height"],vc=[["width","left","right"],["height","top","bottom"]];function ak(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(),p,v;if(e==="horizontal"){var g=c.width+(d?-d.x+c.x:0);p=a+g,p>n||l.newline?(a=0,p=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=p+r:o=v+r)})}var Ic=ak;at(ak,"vertical");at(ak,"horizontal");function Wye(e,t,r){var n=t.width,i=t.height,a=Ce(e.left,n),o=Ce(e.top,i),s=Ce(e.right,n),l=Ce(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=np(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function Qr(e,t,r){r=np(r||0);var n=t.width,i=t.height,a=Ce(e.left,n),o=Ce(e.top,i),s=Ce(e.right,n),l=Ce(e.bottom,i),u=Ce(e.width,n),c=Ce(e.height,i),f=r[2]+r[0],d=r[1]+r[3],p=e.aspect;switch(isNaN(u)&&(u=n-s-d-a),isNaN(c)&&(c=i-l-f-o),p!=null&&(isNaN(u)&&isNaN(c)&&(p>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),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 vt(a+r[3],o+r[0],u,c);return v.margin=r,v}function wb(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 vt(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=Qr(Ye({width:u.width,height:u.height},t),r,n),d=o?f.x-u.x:0,p=s?f.y-u.y:0;return l==="raw"?(a.x=d,a.y=p):(a.x+=d,a.y+=p),a===e&&e.markRedraw(),!0}function jye(e,t){return e[vc[t][0]]!=null||e[vc[t][1]]!=null&&e[vc[t][2]]!=null}function rg(e){var t=e.layoutMode||e.constructor.layoutMode;return Xe(t)?t:t?{type:t}:null}function Jl(e,t,r){var n=r&&r.ignoreSize;!he(n)&&(n=[n,n]);var i=o(vc[0],0),a=o(vc[1],1);u(vc[0],e,i),u(vc[1],e,a);function o(c,f){var d={},p=0,v={},g=0,y=2;if(X0(c,function(S){v[S]=e[S]}),X0(c,function(S){s(t,S)&&(d[S]=v[S]=t[S]),l(d,S)&&p++,l(v,S)&&g++}),n[f])return l(t,c[1])?v[c[2]]=null:l(t,c[2])&&(v[c[1]]=null),v;if(g===y||!p)return v;if(p>=y)return d;for(var x=0;x<c.length;x++){var b=c[x];if(!s(d,b)&&s(e,b)){d[b]=e[b];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){X0(c,function(p){f[p]=d[p]})}}function ip(e){return oW({},e)}function oW(e,t){return t&&e&&X0(aW,function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e}var Uye=Ot(),Pt=function(e){J(t,e);function t(r,n,i){var a=e.call(this,r,n,i)||this;return a.uid=rp("ec_cpt_model"),a}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=rg(this),a=i?ip(r):{},o=n.getTheme();ht(r,o.get(this.mainType)),ht(r,this.getDefaultOption()),i&&Jl(r,a,i)},t.prototype.mergeOption=function(r,n){ht(this.option,r,!0);var i=rg(this);i&&Jl(this.option,r,i)},t.prototype.optionUpdated=function(r,n){},t.prototype.getDefaultOption=function(){var r=this.constructor;if(!Nge(r))return r.defaultOption;var n=Uye(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=ht(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return zg(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}(Zt);sG(Pt,Zt);sb(Pt);Rye(Pt);Lye(Pt,Yye);function Yye(e){var t=[];return $(Pt.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=ve(t,function(r){return Oo(r).main}),e!=="dataset"&&bt(t,"dataset")<=0&&t.unshift("dataset"),t}var sW="";typeof navigator<"u"&&(sW=navigator.platform||"");var Ff="rgba(0, 0, 0, 0.2)";const qye={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Ff,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Ff,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Ff,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Ff,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Ff,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Ff,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:sW.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 lW=$e(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Da="original",Fn="arrayRows",Ra="objectRows",rs="keyedColumns",Gl="typedArray",uW="unknown",Wo="column",ap="row",Sn={Must:1,Might:2,Not:3},cW=Ot();function Xye(e){cW(e).datasetMap=$e()}function fW(e,t,r){var n={},i=sk(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=cW(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,f;e=e.slice(),$(e,function(g,y){var x=Xe(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});$(e,function(g,y){var x=g.name,b=v(g);if(c==null){var S=d.valueWayDim;p(n[x],S,b),p(o,S,b),d.valueWayDim+=b}else if(c===y)p(n[x],0,b),p(a,0,b);else{var S=d.categoryWayDim;p(n[x],S,b),p(o,S,b),d.categoryWayDim+=b}});function p(g,y,x){for(var b=0;b<x;b++)g.push(y+b)}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 ok(e,t,r){var n={},i=sk(e);if(!i)return n;var a=t.sourceFormat,o=t.dimensionsDefine,s;(a===Ra||a===rs)&&$(o,function(c,f){(Xe(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},d=[],p=0,v=Math.min(5,r);p<v;p++){var g=pW(t.data,a,t.seriesLayoutBy,o,t.startIndex,p);d.push(g);var y=g===Sn.Not;if(y&&c.v==null&&p!==s&&(c.v=p),(c.n==null||c.n===c.v||!y&&d[c.n]===Sn.Not)&&(c.n=p),x(c)&&d[c.n]!==Sn.Not)return c;y||(g===Sn.Might&&f.v==null&&p!==s&&(f.v=p),(f.n==null||f.n===f.v)&&(f.n=p))}function x(b){return b.v!=null&&b.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 sk(e){var t=e.get("data",!0);if(!t)return zg(e.ecModel,"dataset",{index:e.get("datasetIndex",!0),id:e.get("datasetId",!0)},jr).models[0]}function Zye(e){return!e.get("transform",!0)&&!e.get("fromTransformResult",!0)?[]:zg(e.ecModel,"dataset",{index:e.get("fromDatasetIndex",!0),id:e.get("fromDatasetId",!0)},jr).models}function dW(e,t){return pW(e.data,e.sourceFormat,e.seriesLayoutBy,e.dimensionsDefine,e.startIndex,t)}function pW(e,t,r,n,i,a){var o,s=5;if(Pi(e))return Sn.Not;var l,u;if(n){var c=n[a];Xe(c)?(l=c.name,u=c.type):De(c)&&(l=c)}if(u!=null)return u==="ordinal"?Sn.Must:Sn.Not;if(t===Fn){var f=e;if(r===ap){for(var d=f[a],p=0;p<(d||[]).length&&p<s;p++)if((o=w(d[i+p]))!=null)return o}else for(var p=0;p<f.length&&p<s;p++){var v=f[i+p];if(v&&(o=w(v[a]))!=null)return o}}else if(t===Ra){var g=e;if(!l)return Sn.Not;for(var p=0;p<g.length&&p<s;p++){var y=g[p];if(y&&(o=w(y[l]))!=null)return o}}else if(t===rs){var x=e;if(!l)return Sn.Not;var d=x[l];if(!d||Pi(d))return Sn.Not;for(var p=0;p<d.length&&p<s;p++)if((o=w(d[p]))!=null)return o}else if(t===Da)for(var b=e,p=0;p<b.length&&p<s;p++){var y=b[p],S=Kd(y);if(!he(S))return Sn.Not;if((o=w(S[a]))!=null)return o}function w(T){var C=De(T);if(T!=null&&Number.isFinite(Number(T))&&T!=="")return C?Sn.Might:Sn.Not;if(C&&T!=="-")return Sn.Must}return Sn.Not}var nA=$e();function Kye(e,t){ri(nA.get(e)==null&&t),nA.set(e,t)}function Qye(e,t,r){var n=nA.get(t);if(!n)return r;var i=n(e);return i?r.concat(i):r}var Dz=Ot(),Jye=Ot(),lk=function(){function e(){}return e.prototype.getColorFromPalette=function(t,r,n){var i=ir(this.get("color",!0)),a=this.get("colorLayer",!0);return hW(this,Dz,i,a,t,r,n)},e.prototype.clearColorPalette=function(){t0e(this,Dz)},e}();function iA(e,t,r,n){var i=ir(e.get(["aria","decal","decals"]));return hW(e,Jye,i,null,t,r,n)}function e0e(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 hW(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:e0e(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 t0e(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Yy,gh,Rz,Lz="\0_ec_inner",r0e=1,uk=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 Zt(a),this._locale=new Zt(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=Nz(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,Nz(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"?Rz(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&&$(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=$e(),u=n&&n.replaceMergeMainTypeMap;Xye(this),$(r,function(f,d){f!=null&&(Pt.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?Ke(f):ht(i[d],f,!0))}),u&&u.each(function(f,d){Pt.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),Pt.topologicalTravel(s,Pt.getAllClassMainTypes(),c,this);function c(f){var d=Qye(this,f,ir(r[f])),p=a.get(f),v=p?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",g=rG(p,d,v);Mge(g,f,Pt),i[f]=null,a.set(f,null),o.set(f,0);var y=[],x=[],b=0,S;$(g,function(w,T){var C=w.existing,A=w.newOption;if(!A)C&&(C.mergeOption({},this),C.optionUpdated({},!1));else{var I=f==="series",k=Pt.getClass(f,w.keyInfo.subType,!I);if(!k)return;if(f==="tooltip"){if(S)return;S=!0}if(C&&C.constructor===k)C.name=w.keyInfo.name,C.mergeOption(A,this),C.optionUpdated(A,!1);else{var P=oe({componentIndex:T},w.keyInfo);C=new k(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),b++):(y.push(void 0),x.push(void 0))},this),i[f]=y,a.set(f,x),o.set(f,b),f==="series"&&Yy(this)}this._seriesIndices||Yy(this)},t.prototype.getOption=function(){var r=Ke(this.option);return $(r,function(n,i){if(Pt.hasClass(i)){for(var a=ir(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!Kv(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[Lz],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=[],$(ir(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=Ez("id",a,s):o!=null?l=Ez("name",o,s):l=tr(s,function(u){return!!u}),Oz(l,r)},t.prototype.findComponents=function(r){var n=r.query,i=r.mainType,a=s(n),o=a?this.queryComponents(a):tr(this._componentsMap.get(i),function(u){return!!u});return l(Oz(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?tr(u,r.filter):u}},t.prototype.eachComponent=function(r,n,i){var a=this._componentsMap;if(je(r)){var o=n,s=r;a.each(function(f,d){for(var p=0;f&&p<f.length;p++){var v=f[p];v&&s.call(o,d,v,v.componentIndex)}})}else for(var l=De(r)?a.get(r):Xe(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=Kr(r,null);return tr(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 tr(this._componentsMap.get("series"),function(n){return!!n&&n.subType===r})},t.prototype.getSeries=function(){return tr(this._componentsMap.get("series"),function(r){return!!r})},t.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},t.prototype.eachSeries=function(r,n){gh(this),$(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];r.call(n,a,i)},this)},t.prototype.eachRawSeries=function(r,n){$(this._componentsMap.get("series"),function(i){i&&r.call(n,i,i.componentIndex)})},t.prototype.eachSeriesByType=function(r,n,i){gh(this),$(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 $(this.getSeriesByType(r),n,i)},t.prototype.isSeriesFiltered=function(r){return gh(this),this._seriesIndicesMap.get(r.componentIndex)==null},t.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},t.prototype.filterSeries=function(r,n){gh(this);var i=[];$(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=$e(i)},t.prototype.restoreData=function(r){Yy(this);var n=this._componentsMap,i=[];n.each(function(a,o){Pt.hasClass(o)&&i.push(o)}),Pt.topologicalTravel(i,Pt.getAllClassMainTypes(),function(a){$(n.get(a),function(o){o&&(a!=="series"||!n0e(o,r))&&o.restoreData()})})},t.internalField=function(){Yy=function(r){var n=r._seriesIndices=[];$(r._componentsMap.get("series"),function(i){i&&n.push(i.componentIndex)}),r._seriesIndicesMap=$e(n)},gh=function(r){},Rz=function(r,n){r.option={},r.option[Lz]=r0e,r._componentsMap=$e({series:[]}),r._componentsCount=$e();var i=n.aria;Xe(i)&&i.enabled==null&&(i.enabled=!0),i0e(n,r._theme.option),ht(n,qye,!1),r._mergeOption(n,null)}}(),t}(Zt);function n0e(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 i0e(e,t){var r=e.color&&!e.colorLayer;$(t,function(n,i){i==="colorLayer"&&r||Pt.hasClass(i)||(typeof n=="object"?e[i]=e[i]?ht(e[i],n,!1):Ke(n):e[i]==null&&(e[i]=n))})}function Ez(e,t,r){if(he(t)){var n=$e();return $(t,function(a){if(a!=null){var o=Kr(a,null);o!=null&&n.set(a,!0)}}),tr(r,function(a){return a&&n.get(a[e])})}else{var i=Kr(t,null);return tr(r,function(a){return a&&i!=null&&a[e]===i})}}function Oz(e,t){return t.hasOwnProperty("subType")?tr(e,function(r){return r&&r.subType===t.subType}):e}function Nz(e){var t=$e();return e&&$(ir(e.replaceMerge),function(r){t.set(r,!0)}),{replaceMergeMainTypeMap:t}}Yr(uk,lk);var a0e=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],vW=function(){function e(t){$(a0e,function(r){this[r]=Ne(t[r],t)},this)}return e}(),rC={},Wg=function(){function e(){this._coordinateSystems=[]}return e.prototype.create=function(t,r){var n=[];$(rC,function(i,a){var o=i.create(t,r);n=n.concat(o||[])}),this._coordinateSystems=n},e.prototype.update=function(t,r){$(this._coordinateSystems,function(n){n.update&&n.update(t,r)})},e.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},e.register=function(t,r){rC[t]=r},e.get=function(t){return rC[t]},e}(),o0e=/^(min|max)?(.+)$/,s0e=function(){function e(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return e.prototype.setOption=function(t,r,n){t&&($(ir(t.series),function(o){o&&o.data&&Pi(o.data)&&b1(o.data)}),$(ir(t.dataset),function(o){o&&o.source&&Pi(o.source)&&b1(o.source)})),t=Ke(t);var i=this._optionBackup,a=l0e(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=[],Ke(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=Ke(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++)u0e(i[l].query,r,n)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!f0e(o,this._currentMediaIndices)&&(s=ve(o,function(c){return Ke(c===-1?a.option:i[c].option)})),this._currentMediaIndices=o,s},e}();function l0e(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&&he(u)&&$(u,function(p){p&&p.option&&(p.query?n.push(p):i||(i=p))}),d(a),$(l,function(p){return d(p)}),$(n,function(p){return d(p.option)});function d(p){$(t,function(v){v(p,r)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:n}}function u0e(e,t,r){var n={width:t,height:r,aspectratio:t/r},i=!0;return $(e,function(a,o){var s=o.match(o0e);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();c0e(n[u],a,l)||(i=!1)}}),i}function c0e(e,t,r){return r==="min"?e>=t:r==="max"?e<=t:e===t}function f0e(e,t){return e.join(",")===t.join(",")}var $a=$,ng=Xe,zz=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function nC(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=zz.length;r<n;r++){var i=zz[r],a=t.normal,o=t.emphasis;a&&a[i]&&(e[i]=e[i]||{},e[i].normal?ht(e[i].normal,a[i]):e[i].normal=a[i],a[i]=null),o&&o[i]&&(e[i]=e[i]||{},e[i].emphasis?ht(e[i].emphasis,o[i]):e[i].emphasis=o[i],o[i]=null)}}function On(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,Ye(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 Xh(e){On(e,"itemStyle"),On(e,"lineStyle"),On(e,"areaStyle"),On(e,"label"),On(e,"labelLine"),On(e,"upperLabel"),On(e,"edgeLabel")}function Wr(e,t){var r=ng(e)&&e[t],n=ng(r)&&r.textStyle;if(n)for(var i=0,a=GN.length;i<a;i++){var o=GN[i];n.hasOwnProperty(o)&&(r[o]=n[o])}}function fa(e){e&&(Xh(e),Wr(e,"label"),e.emphasis&&Wr(e.emphasis,"label"))}function d0e(e){if(ng(e)){nC(e),Xh(e),Wr(e,"label"),Wr(e,"upperLabel"),Wr(e,"edgeLabel"),e.emphasis&&(Wr(e.emphasis,"label"),Wr(e.emphasis,"upperLabel"),Wr(e.emphasis,"edgeLabel"));var t=e.markPoint;t&&(nC(t),fa(t));var r=e.markLine;r&&(nC(r),fa(r));var n=e.markArea;n&&fa(n);var i=e.data;if(e.type==="graph"){i=i||e.nodes;var a=e.links||e.edges;if(a&&!Pi(a))for(var o=0;o<a.length;o++)fa(a[o]);$(e.categories,function(u){Xh(u)})}if(i&&!Pi(i))for(var o=0;o<i.length;o++)fa(i[o]);if(t=e.markPoint,t&&t.data)for(var s=t.data,o=0;o<s.length;o++)fa(s[o]);if(r=e.markLine,r&&r.data)for(var l=r.data,o=0;o<l.length;o++)he(l[o])?(fa(l[o][0]),fa(l[o][1])):fa(l[o]);e.type==="gauge"?(Wr(e,"axisLabel"),Wr(e,"title"),Wr(e,"detail")):e.type==="treemap"?(On(e.breadcrumb,"itemStyle"),$(e.levels,function(u){Xh(u)})):e.type==="tree"&&Xh(e.leaves)}}function ms(e){return he(e)?e:e?[e]:[]}function Bz(e){return(he(e)?e[0]:e)||{}}function p0e(e,t){$a(ms(e.series),function(n){ng(n)&&d0e(n)});var r=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];t&&r.push("valueAxis","categoryAxis","logAxis","timeAxis"),$a(r,function(n){$a(ms(e[n]),function(i){i&&(Wr(i,"axisLabel"),Wr(i.axisPointer,"label"))})}),$a(ms(e.parallel),function(n){var i=n&&n.parallelAxisDefault;Wr(i,"axisLabel"),Wr(i&&i.axisPointer,"label")}),$a(ms(e.calendar),function(n){On(n,"itemStyle"),Wr(n,"dayLabel"),Wr(n,"monthLabel"),Wr(n,"yearLabel")}),$a(ms(e.radar),function(n){Wr(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)}),$a(ms(e.geo),function(n){ng(n)&&(fa(n),$a(ms(n.regions),function(i){fa(i)}))}),$a(ms(e.timeline),function(n){fa(n),On(n,"label"),On(n,"itemStyle"),On(n,"controlStyle",!0);var i=n.data;he(i)&&$(i,function(a){Xe(a)&&(On(a,"label"),On(a,"itemStyle"))})}),$a(ms(e.toolbox),function(n){On(n,"iconStyle"),$a(n.feature,function(i){On(i,"iconStyle")})}),Wr(Bz(e.axisPointer),"label"),Wr(Bz(e.tooltip).axisPointer,"label")}function h0e(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 v0e(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 Fz(e){e&&$(g0e,function(t){t[0]in e&&!(t[1]in e)&&(e[t[1]]=e[t[0]])})}var g0e=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],m0e=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],iC=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function mh(e){var t=e&&e.itemStyle;if(t)for(var r=0;r<iC.length;r++){var n=iC[r][1],i=iC[r][0];t[n]!=null&&(t[i]=t[n])}}function $z(e){e&&e.alignTo==="edge"&&e.margin!=null&&e.edgeDistance==null&&(e.edgeDistance=e.margin)}function Vz(e){e&&e.downplay&&!e.blur&&(e.blur=e.downplay)}function y0e(e){e&&e.focusNodeAdjacency!=null&&(e.emphasis=e.emphasis||{},e.emphasis.focus==null&&(e.emphasis.focus="adjacency"))}function gW(e,t){if(e)for(var r=0;r<e.length;r++)t(e[r]),e[r]&&gW(e[r].children,t)}function mW(e,t){p0e(e,t),e.series=ir(e.series),$(e.series,function(r){if(Xe(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),$z(r.label);var i=r.data;if(i&&!Pi(i))for(var a=0;a<i.length;a++)$z(i[a]);r.hoverOffset!=null&&(r.emphasis=r.emphasis||{},(r.emphasis.scaleSize=null)&&(r.emphasis.scaleSize=r.hoverOffset))}else if(n==="gauge"){var o=h0e(r,"pointer.color");o!=null&&v0e(r,"itemStyle.color",o)}else if(n==="bar"){mh(r),mh(r.backgroundStyle),mh(r.emphasis);var i=r.data;if(i&&!Pi(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(mh(i[a]),mh(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)),Vz(r),gW(r.data,Vz)}else n==="graph"||n==="sankey"?y0e(r):n==="map"&&(r.mapType&&!r.map&&(r.map=r.mapType),r.mapLocation&&Ye(r,r.mapLocation));r.hoverAnimation!=null&&(r.emphasis=r.emphasis||{},r.emphasis&&r.emphasis.scale==null&&(r.emphasis.scale=r.hoverAnimation)),Fz(r)}}),e.dataRange&&(e.visualMap=e.dataRange),$(m0e,function(r){var n=e[r];n&&(he(n)||(n=[n]),$(n,function(i){Fz(i)}))})}function x0e(e){var t=$e();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(b0e)}function b0e(e){$(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 p,v;s?v=o.getRawIndex(f):p=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,p)),v>=0){var b=x.data.getByRawIndex(x.stackResultDimension,v);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&d>=0&&b>0||l==="samesign"&&d<=0&&b<0){d=gge(d,b),g=b;break}}}return n[0]=d,n[1]=g,n})})}var Cb=function(){function e(t){this.data=t.data||(t.sourceFormat===rs?{}:[]),this.sourceFormat=t.sourceFormat||uW,this.seriesLayoutBy=t.seriesLayoutBy||Wo,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&&dW(this,n)===Sn.Must&&(i.type="ordinal")}}return e}();function ck(e){return e instanceof Cb}function aA(e,t,r){r=r||yW(e);var n=t.seriesLayoutBy,i=_0e(e,r,n,t.sourceHeader,t.dimensions),a=new Cb({data:e,sourceFormat:r,seriesLayoutBy:n,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Ke(t)});return a}function fk(e){return new Cb({data:e,sourceFormat:Pi(e)?Gl:Da})}function S0e(e){return new Cb({data:e.data,sourceFormat:e.sourceFormat,seriesLayoutBy:e.seriesLayoutBy,dimensionsDefine:Ke(e.dimensionsDefine),startIndex:e.startIndex,dimensionsDetectedCount:e.dimensionsDetectedCount})}function yW(e){var t=uW;if(Pi(e))t=Gl;else if(he(e)){e.length===0&&(t=Fn);for(var r=0,n=e.length;r<n;r++){var i=e[r];if(i!=null){if(he(i)||Pi(i)){t=Fn;break}else if(Xe(i)){t=Ra;break}}}}else if(Xe(e)){for(var a in e)if(Fe(e,a)&&Bn(e[a])){t=rs;break}}return t}function _0e(e,t,r,n,i){var a,o;if(!e)return{dimensionsDefine:Hz(i),startIndex:o,dimensionsDetectedCount:a};if(t===Fn){var s=e;n==="auto"||n==null?Gz(function(u){u!=null&&u!=="-"&&(De(u)?o==null&&(o=1):o=0)},r,s,10):o=Bt(n)?n:n?1:0,!i&&o===1&&(i=[],Gz(function(u,c){i[c]=u!=null?u+"":""},r,s,1/0)),a=i?i.length:r===ap?s.length:s[0]?s[0].length:null}else if(t===Ra)i||(i=w0e(e));else if(t===rs)i||(i=[],$(e,function(u,c){i.push(c)}));else if(t===Da){var l=Kd(e[0]);a=he(l)&&l.length||1}return{startIndex:o,dimensionsDefine:Hz(i),dimensionsDetectedCount:a}}function w0e(e){for(var t=0,r;t<e.length&&!(r=e[t++]););if(r)return Dt(r)}function Hz(e){if(e){var t=$e();return ve(e,function(r,n){r=Xe(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 Gz(e,t,r,n){if(t===ap)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 xW(e){var t=e.sourceFormat;return t===Ra||t===rs}var Fu,$u,Vu,Wz,jz,bW=function(){function e(t,r){var n=ck(t)?t:fk(t);this._source=n;var i=this._data=n.data;n.sourceFormat===Gl&&(this._offset=0,this._dimSize=r,this._data=i),jz(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;jz=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,p=Wz[dk(u,c)];if(oe(o,p),u===Gl)o.getItem=r,o.count=i,o.fillStorage=n;else{var v=SW(u,c);o.getItem=Ne(v,null,s,f,d);var g=_W(u,c);o.count=Ne(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 p=u[d],v=p[0]==null?1/0:p[0],g=p[1]==null?-1/0:p[1],y=s-o,x=l[d],b=0;b<y;b++){var S=c[b*f+d];x[o+b]=S,S<v&&(v=S),S>g&&(g=S)}p[0]=v,p[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};Wz=(t={},t[Fn+"_"+Wo]={pure:!0,appendData:a},t[Fn+"_"+ap]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Ra]={pure:!0,appendData:a},t[rs]={pure:!0,appendData:function(o){var s=this._data;$(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},t[Da]={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}(),Uz=function(e,t,r,n){return e[n]},C0e=(Fu={},Fu[Fn+"_"+Wo]=function(e,t,r,n){return e[n+t]},Fu[Fn+"_"+ap]=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},Fu[Ra]=Uz,Fu[rs]=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},Fu[Da]=Uz,Fu);function SW(e,t){var r=C0e[dk(e,t)];return r}var Yz=function(e,t,r){return e.length},T0e=($u={},$u[Fn+"_"+Wo]=function(e,t,r){return Math.max(0,e.length-t)},$u[Fn+"_"+ap]=function(e,t,r){var n=e[0];return n?Math.max(0,n.length-t):0},$u[Ra]=Yz,$u[rs]=function(e,t,r){var n=r[0].name,i=e[n];return i?i.length:0},$u[Da]=Yz,$u);function _W(e,t){var r=T0e[dk(e,t)];return r}var aC=function(e,t,r){return e[t]},A0e=(Vu={},Vu[Fn]=aC,Vu[Ra]=function(e,t,r){return e[r]},Vu[rs]=aC,Vu[Da]=function(e,t,r){var n=Kd(e);return n instanceof Array?n[t]:n},Vu[Gl]=aC,Vu);function wW(e){var t=A0e[e];return t}function dk(e,t){return e===Fn?e+"_"+t:e}function Nd(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 wW(a)(n,o,s)}else{var l=n;return a===Da&&(l=Kd(n)),l}}}}var M0e=/\{@(.+?)\}/g,Tb=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",p=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:p?p.fullDimensions:null,encode:p?p.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&&he(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(t);a=u.get(r==="normal"?["label","formatter"]:[r,"label","formatter"])}if(je(a))return l.status=r,l.dimensionIndex=i,a(l);if(De(a)){var c=iW(a,l);return c.replace(M0e,function(f,d){var p=d.length,v=d;v.charAt(0)==="["&&v.charAt(p-1)==="]"&&(v=+v.slice(1,p-1));var g=Nd(s,t,v);if(o&&he(o.interpolatedValue)){var y=s.getDimensionIndex(v);y>=0&&(g=o.interpolatedValue[y])}return g!=null?g+"":""})}},e.prototype.getRawValue=function(t,r){return Nd(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function qz(e){var t,r;return Xe(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function Cv(e){return new I0e(e)}var I0e=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(b){return!(b>=1)&&(b=1),b}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 p=this._dueIndex,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!n&&(f||p<v)){var g=this._progress;if(he(g))for(var y=0;y<g.length;y++)this._doProgress(g[y],p,v,l,u);else this._doProgress(g,p,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){Xz.reset(r,n,i,a),this._callingProgress=t,this._callingProgress({start:r,end:n,count:n-r,next:Xz.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),he(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}(),Xz=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 Wl(e,t){var r=t&&t.type;return r==="ordinal"?e:(r==="time"&&!Bt(e)&&e!=null&&e!=="-"&&(e=+Qo(e)),e==null||e===""?NaN:Number(e))}var k0e=$e({number:function(e){return parseFloat(e)},time:function(e){return+Qo(e)},trim:function(e){return De(e)?Ya(e):e}});function CW(e){return k0e.get(e)}var TW={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}},P0e=function(){function e(t,r){if(!Bt(r)){var n="";Yt(n)}this._opFn=TW[t],this._rvalFloat=Ns(r)}return e.prototype.evaluate=function(t){return Bt(t)?this._opFn(t,this._rvalFloat):this._opFn(Ns(t),this._rvalFloat)},e}(),AW=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=Bt(t)?t:Ns(t),i=Bt(r)?r:Ns(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=De(t),l=De(r);s&&(n=l?t:0),l&&(i=s?r:0)}return n<i?this._resultLT:n>i?-this._resultLT:0},e}(),D0e=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=Ns(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=Ns(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function R0e(e,t){return e==="eq"||e==="ne"?new D0e(e==="eq",t):Fe(TW,e)?new P0e(e,t):null}var L0e=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 Wl(t,r)},e}();function E0e(e,t){var r=new L0e,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==Wo&&Yt(o);var s=[],l={},u=e.dimensionsDefine;if(u)$(u,function(g,y){var x=g.name,b={index:y,name:x,displayName:g.displayName};if(s.push(b),x!=null){var S="";Fe(l,x)&&Yt(S),l[x]=b}});else for(var c=0;c<e.dimensionsDetectedCount;c++)s.push({index:c});var f=SW(i,Wo);t.__isBuiltIn&&(r.getRawDataItem=function(g){return f(n,a,s,g)},r.getRawData=Ne(O0e,null,e)),r.cloneRawData=Ne(N0e,null,e);var d=_W(i,Wo);r.count=Ne(d,null,n,a,s);var p=wW(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 p(g,y,x.name)}};return r.getDimensionInfo=Ne(z0e,null,s,l),r.cloneAllDimensionInfo=Ne(B0e,null,s),r}function O0e(e){var t=e.sourceFormat;if(!pk(t)){var r="";Yt(r)}return e.data}function N0e(e){var t=e.sourceFormat,r=e.data;if(!pk(t)){var n="";Yt(n)}if(t===Fn){for(var i=[],a=0,o=r.length;a<o;a++)i.push(r[a].slice());return i}else if(t===Ra){for(var i=[],a=0,o=r.length;a<o;a++)i.push(oe({},r[a]));return i}}function z0e(e,t,r){if(r!=null){if(Bt(r)||!isNaN(r)&&!Fe(t,r))return e[r];if(Fe(t,r))return t[r]}}function B0e(e){return Ke(e)}var MW=$e();function F0e(e){e=Ke(e);var t=e.type,r="";t||Yt(r);var n=t.split(":");n.length!==2&&Yt(r);var i=!1;n[0]==="echarts"&&(t=n[1],i=!0),e.__isBuiltIn=i,MW.set(t,e)}function $0e(e,t,r){var n=ir(e),i=n.length,a="";i||Yt(a);for(var o=0,s=i;o<s;o++){var l=n[o];t=V0e(l,t),o!==s-1&&(t.length=Math.max(t.length,1))}return t}function V0e(e,t,r,n){var i="";t.length||Yt(i),Xe(e)||Yt(i);var a=e.type,o=MW.get(a);o||Yt(i);var s=ve(t,function(u){return E0e(u,o)}),l=ir(o.transform({upstream:s[0],upstreamList:s,config:Ke(e.config)}));return ve(l,function(u,c){var f="";Xe(u)||Yt(f),u.data||Yt(f);var d=yW(u.data);pk(d)||Yt(f);var p,v=t[0];if(v&&c===0&&!u.dimensions){var g=v.startIndex;g&&(u.data=v.data.slice(0,g).concat(u.data)),p={seriesLayoutBy:Wo,sourceHeader:g,dimensions:v.metaRawOption.dimensions}}else p={seriesLayoutBy:Wo,sourceHeader:0,dimensions:u.dimensions};return aA(u.data,p,null)})}function pk(e){return e===Fn||e===Ra}var Ab="undefined",H0e=typeof Uint32Array===Ab?Array:Uint32Array,G0e=typeof Uint16Array===Ab?Array:Uint16Array,IW=typeof Int32Array===Ab?Array:Int32Array,Zz=typeof Float64Array===Ab?Array:Float64Array,kW={float:Zz,int:IW,ordinal:Array,number:Array,time:Zz},oC;function yh(e){return e>65535?H0e:G0e}function $f(){return[1/0,-1/0]}function W0e(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Kz(e,t,r,n,i){var a=kW[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 oA=function(){function e(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=$e()}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=oC[i.sourceFormat];this._dimValueGetter=n||a,this._rawExtent=[],xW(i),this._dimensions=ve(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 kW[r||"float"](this._rawCount),this._rawExtent[a]=$f(),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]=$f());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];Kz(n,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var p=d-s,v=0;v<a;v++){var c=i[v],g=oC.arrayRows.call(this,t[p]||f,c.property,p,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=ve(o,function(b){return b.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=$f()),Kz(a,c,f.type,r,n)}if(i.fillStorage)i.fillStorage(t,r,a,l);else for(var d=[],p=t;p<r;p++){d=i.getItem(p,d);for(var v=0;v<s;v++){var g=a[v],y=this._dimValueGetter(d,u[v],p,v);g[p]=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),p=r-a[d],v=Math.abs(p);v<=n&&((v<s||v===s&&p>=0&&l<0)&&(s=v,l=p,u=0),p===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=yh(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=yh(n._rawCount),o=new a(i),s=[],l=t.length,u=0,c=t[0],f=n._chunks,d=0;d<i;d++){var p=void 0,v=n.getRawIndex(d);if(l===0)p=r(d);else if(l===1){var g=f[c][v];p=r(g,d)}else{for(var y=0;y<l;y++)s[y]=f[t[y]][v];s[y]=d,p=r.apply(null,s)}p&&(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=Dt(t),a=i.length;if(!a)return this;var o=r.count(),s=yh(r._rawCount),l=new s(o),u=0,c=i[0],f=t[c][0],d=t[c][1],p=r._chunks,v=!1;if(!r._indices){var g=0;if(a===1){for(var y=p[i[0]],x=0;x<n;x++){var b=y[x];(b>=f&&b<=d||isNaN(b))&&(l[u++]=g),g++}v=!0}else if(a===2){for(var y=p[i[0]],S=p[i[1]],w=t[i[1]][0],T=t[i[1]][1],x=0;x<n;x++){var b=y[x],C=S[x];(b>=f&&b<=d||isNaN(b))&&(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),b=p[i[0]][A];(b>=f&&b<=d||isNaN(b))&&(l[u++]=A)}else for(var x=0;x<o;x++){for(var I=!0,A=r.getRawIndex(x),k=0;k<a;k++){var P=i[k],b=p[P][A];(b<t[P][0]||b>t[P][1])&&(I=!1)}I&&(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]]=$f();for(var f=0;f<s;f++){for(var d=t.getRawIndex(f),p=0;p<o;p++)l[p]=i[r[p]][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],b=i[g];b&&(b[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,p=new(yh(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));p[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,b=0,S=g;S<y;S++){var w=this.getRawIndex(S),T=a[w];isNaN(T)||(b+=T)}b/=y-g;var C=v,A=Math.min(v+l,o),I=v-1,k=a[u];c=-1,d=C;for(var P=-1,R=0,S=C;S<A;S++){var w=this.getRawIndex(S),T=a[w];if(isNaN(T)){R++,P<0&&(P=w);continue}f=Math.abs((I-x)*(T-k)-(I-S)*(b-k)),f>c&&(c=f,d=w)}R>0&&R<A-C&&(p[s++]=Math.min(P,d),d=Math.max(P,d)),p[s++]=d,u=d}return p[s++]=this.getRawIndex(o-1),n._count=s,n._indices=p,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]=$f(),d=new(yh(this._rawCount))(Math.ceil(c/l)),p=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),b=this.getRawIndex(Math.min(v+i(s,x)||0,c-1));u[b]=x,x<f[0]&&(f[0]=x),x>f[1]&&(f[1]=x),d[p++]=b}return a._count=p,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=$f();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&&Xo(t,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)n._chunks[o]=a[o]?W0e(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=Ke(this._extent),t._rawExtent=Ke(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 Wl(r[a],this._dimensions[a])}oC={arrayRows:t,objectRows:function(r,n,i,a){return Wl(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return Wl(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),PW=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(qy(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=Pi(s)?Gl:Da,a=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},p=it(f.seriesLayoutBy,d.seriesLayoutBy)||null,v=it(f.sourceHeader,d.sourceHeader),g=it(f.dimensions,d.dimensions),y=p!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||g;i=y?[aA(s,{seriesLayoutBy:p,sourceHeader:v,dimensions:g},l)]:[]}else{var x=t;if(n){var b=this._applyTransform(r);i=b.sourceList,a=b.upstreamSignList}else{var S=x.get("source",!0);i=[aA(S,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&&Jz(a)}var o,s=[],l=[];return $(t,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&Jz(f),s.push(c),l.push(u._getVersionSign())}),n?o=$0e(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[S0e(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];qy(this._sourceHost)&&l?s=l._innerGetDataStore(t,r,n):(s=new oA,s.initData(new bW(r,t.length),t)),o[n]=s}return s},e.prototype._getUpstreamSourceManagers=function(){var t=this._sourceHost;if(qy(t)){var r=sk(t);return r?[r.getSourceManager()]:[]}else return ve(Zye(t),function(n){return n.getSourceManager()})},e.prototype._getSourceMetaRawOption=function(){var t=this._sourceHost,r,n,i;if(qy(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 Qz(e){var t=e.option.transform;t&&b1(e.option.transform)}function qy(e){return e.mainType==="series"}function Jz(e){throw new Error(e)}var DW="line-height:1";function RW(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:"+bi(n+"")+"px;color:"+bi(r)+";font-weight:"+bi(i+""),valueStyle:"font-size:"+bi(o+"")+"px;color:"+bi(a)+";font-weight:"+bi(s+"")}:{nameStyle:{fontSize:n,fill:r,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var j0e=[0,10,20,30],U0e=["",`
184
+ `,`
185
+
186
+ `,`
187
+
188
+
189
+ `];function cn(e,t){return t.type=e,t}function sA(e){return e.type==="section"}function LW(e){return sA(e)?Y0e:q0e}function EW(e){if(sA(e)){var t=0,r=e.blocks.length,n=r>1||r>0&&!e.noHeader;return $(e.blocks,function(i){var a=EW(i);a>=t&&(t=a+ +(n&&(!a||sA(i)&&!i.noHeader)))}),t}return 0}function Y0e(e,t,r,n){var i=t.noHeader,a=X0e(EW(t)),o=[],s=t.blocks||[];ri(!s||he(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Fe(u,l)){var c=new AW(u[l],null);s.sort(function(v,g){return c.evaluate(v.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}$(s,function(v,g){var y=t.valueFormatter,x=LW(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):lA(o.join(""),i?r:a.html);if(i)return f;var d=rA(t.header,"ordinal",e.useUTC),p=RW(n,e.renderMode).nameStyle;return e.renderMode==="richText"?OW(e,d,p)+a.richText+f:lA('<div style="'+p+";"+DW+';">'+bi(d)+"</div>"+f,r)}function q0e(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=he(w)?w:[w],ve(w,function(T,C){return rA(T,he(p)?p[C]:p,u)})};if(!(a&&o)){var f=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),d=a?"":rA(l,"ordinal",u),p=t.valueType,v=o?[]:c(t.value,t.dataIndex),g=!s||!a,y=!s&&a,x=RW(n,i),b=x.nameStyle,S=x.valueStyle;return i==="richText"?(s?"":f)+(a?"":OW(e,d,b))+(o?"":Q0e(e,v,g,y,S)):lA((s?"":f)+(a?"":Z0e(d,!s,b))+(o?"":K0e(v,g,y,S)),r)}}function e5(e,t,r,n,i,a){if(e){var o=LW(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function X0e(e){return{html:j0e[e],richText:U0e[e]}}function lA(e,t){var r='<div style="clear:both"></div>',n="margin: "+t+"px 0 0";return'<div style="'+n+";"+DW+';">'+e+r+"</div>"}function Z0e(e,t,r){var n=t?"margin-left:2px":"";return'<span style="'+r+";"+n+'">'+bi(e)+"</span>"}function K0e(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=he(e)?e:[e],'<span style="'+a+";"+n+'">'+ve(e,function(o){return bi(o)}).join("&nbsp;&nbsp;")+"</span>"}function OW(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function Q0e(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(he(t)?t.join(" "):t,a)}function NW(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return Hc(n)}function zW(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var sC=function(){function e(){this.richTextStyles={},this._nextStyleNameId=QH()}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=Gye({color:r,type:t,renderMode:n,markerId:i});return De(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};he(r)?$(r,function(a){return oe(n,a)}):oe(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function BW(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=he(s),u=NW(t,r),c,f,d,p;if(o>1||l&&!o){var v=J0e(s,t,r,a,u);c=v.inlineValues,f=v.inlineValueTypes,d=v.blocks,p=v.inlineValues[0]}else if(o){var g=i.getDimensionInfo(a[0]);p=c=Nd(i,r,a[0]),f=g.type}else p=c=l?s[0]:s;var y=FI(t),x=y&&t.name||"",b=i.getName(r),S=n?x:b;return cn("section",{header:x,noHeader:n||!y,sortParam:p,blocks:[cn("nameValue",{markerType:"item",markerColor:u,name:S,noName:!Ya(S),value:c,valueType:f,dataIndex:r})].concat(d||[])})}function J0e(e,t,r,n,i){var a=t.getData(),o=Xo(e,function(f,d,p){var v=a.getDimensionInfo(p);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];n.length?$(n,function(f){c(Nd(a,r,f),f)}):$(e,c);function c(f,d){var p=a.getDimensionInfo(d);!p||p.otherDims.tooltip===!1||(o?u.push(cn("nameValue",{markerType:"subItem",markerColor:i,name:p.displayName,value:f,valueType:p.type})):(s.push(f),l.push(p.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var yl=Ot();function Xy(e,t){return e.getName(t)||e.getId(t)}var Z0="__universalTransitionEnabled",gr=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=Cv({count:t1e,reset:r1e}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=yl(this).sourceManager=new PW(this);a.prepareSource();var o=this.getInitialData(r,i);r5(o,this),this.dataTask.context.data=o,yl(this).dataBeforeProcessed=o,t5(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=rg(this),a=i?ip(r):{},o=this.subType;Pt.hasClass(o)&&(o+="Series"),ht(r,n.getTheme().get(this.subType)),ht(r,this.getDefaultOption()),Bc(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&Jl(r,a,i)},t.prototype.mergeOption=function(r,n){r=ht(this.option,r,!0),this.fillDataTextStyle(r.data);var i=rg(this);i&&Jl(this.option,r,i);var a=yl(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);r5(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,yl(this).dataBeforeProcessed=o,t5(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!Pi(r))for(var n=["show"],i=0;i<r.length;i++)r[i]&&r[i].label&&Bc(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=uA(this);if(n){var i=n.context.data;return r==null||!i.getLinkedData?i:i.getLinkedData(r)}else return yl(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=uA(this);if(n){var i=n.context;i.outputData=r,n!==this.dataTask&&(i.data=r)}yl(this).data=r},t.prototype.getEncode=function(){var r=this.get("encode",!0);if(r)return $e(r)},t.prototype.getSourceManager=function(){return yl(this).sourceManager},t.prototype.getSource=function(){return this.getSourceManager().getSource()},t.prototype.getRawData=function(){return yl(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 BW({series:this,dataIndex:r,multipleSeries:n})},t.prototype.isAnimationEnabled=function(){var r=this.ecModel;if(kt.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=lk.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=Xy(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=Dt(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[Xy(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[Z0])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"){Xe(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=n[c],d=Xy(r,f);u[d]=!0,this._selectedDataIndicesMap[d]=r.getRawIndex(f)}}else if(s==="single"||s===!0){var p=n[l-1],d=Xy(r,p);o.selectedMap=(i={},i[d]=!0,i),this._selectedDataIndicesMap=(a={},a[d]=r.getRawIndex(p),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 Pt.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}(Pt);Yr(gr,Tb);Yr(gr,lk);sG(gr,Pt);function t5(e){var t=e.name;FI(e)||(e.name=e1e(e)||t)}function e1e(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return $(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function t1e(e){return e.model.getRawData().count()}function r1e(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),n1e}function n1e(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function r5(e,t){$(S1(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,at(i1e,t))})}function i1e(e,t){var r=uA(e);return r&&r.setOutputEnd((t||this).count()),t}function uA(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 _r=function(){function e(){this.group=new Je,this.uid=rp("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}();VI(_r);sb(_r);function op(){var e=Ot();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 FW=Ot(),a1e=op(),lr=function(){function e(){this.group=new Je,this.uid=rp("viewChart"),this.renderTask=Cv({plan:o1e,reset:s1e}),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&&i5(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&i5(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){lu(this.group,t)},e.markUpdateMethod=function(t,r){FW(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function n5(e,t,r){e&&Jv(e)&&(t==="emphasis"?zs:Bs)(e,r)}function i5(e,t,r){var n=Fc(e,t),i=t&&t.highlightKey!=null?Gme(t.highlightKey):null;n!=null?$(ir(n),function(a){n5(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){n5(a,r,i)})}VI(lr);sb(lr);function o1e(e){return a1e(e.model)}function s1e(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&FW(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),l1e[l]}var l1e={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)}}},z1="\0__throttleOriginMethod",a5="\0__throttleRate",o5="\0__throttleType";function hk(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 p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];n=new Date().getTime(),l=this,u=p;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(p){c=p},d}function sp(e,t,r,n){var i=e[t];if(i){var a=i[z1]||i,o=i[o5],s=i[a5];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=hk(a,r,n==="debounce"),i[z1]=a,i[o5]=n,i[a5]=r}return i}}function ig(e,t){var r=e[t];r&&r[z1]&&(r.clear&&r.clear(),e[t]=r[z1])}var s5=Ot(),l5={itemStyle:$c(jG,!0),lineStyle:$c(WG,!0)},u1e={lineStyle:"stroke",itemStyle:"fill"};function $W(e,t){var r=e.visualStyleMapper||l5[t];return r||(console.warn("Unknown style type '"+t+"'."),l5.itemStyle)}function VW(e,t){var r=e.visualDrawType||u1e[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var c1e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=$W(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=VW(e,n),u=o[l],c=je(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"||je(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||je(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(p,v){var g=e.getDataParams(v),y=oe({},o);y[l]=c(g),p.setItemVisual(v,"style",y)}}}},xh=new Zt,f1e={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=$W(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){xh.option=l[n];var u=i(xh),c=o.ensureUniqueItemVisual(s,"style");oe(c,u),xh.option.decal&&(o.setItemVisual(s,"decal",xh.option.decal),xh.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},d1e={performRawSeries:!0,overallReset:function(e){var t=$e();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)),s5(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=s5(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=VW(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"),p=n.getName(u)||u+"",v=n.count();d[l]=r.getColorFromPalette(p,o,v)}})}})}},Zy=Math.PI;function p1e(e,t){t=t||{},Ye(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 Je,n=new Et({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new zt({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 Et({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 hb({shape:{startAngle:-Zy/2,endAngle:-Zy/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:Zy*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:Zy*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 HW=function(){function e(t,r,n,i){this._stageTaskMap=$e(),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=$e();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;$(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";ri(!(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;$(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 p,v=d.agentStubMap;v.each(function(y){s(i,y)&&(y.dirty(),p=!0)}),p&&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 b=o.getPerformArgs(y,i.block);b.skip=!l.performRawSeries&&r.isSeriesFiltered(y.context.model),o.updatePayload(y,n),y.perform(b)&&(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=$e(),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,p=s.set(d,o&&o.get(d)||Cv({plan:y1e,reset:x1e,count:S1e}));p.context={model:f,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(f,p)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||Cv({reset:h1e});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=$e(),u=t.seriesType,c=t.getTargetSeries,f=!0,d=!1,p="";ri(!t.createOnAllSeries,p),u?n.eachRawSeriesByType(u,v):c?c(n,i).each(v):(f=!1,$(n.getSeries(),v));function v(g){var y=g.uid,x=l.set(y,s&&s.get(y)||(d=!0,Cv({reset:v1e,onDirty:m1e})));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 je(t)&&(t={overallReset:t,seriesType:_1e(t)}),t.uid=rp("stageHandler"),r&&(t.visualType=r),t},e}();function h1e(e){e.overallReset(e.ecModel,e.api,e.payload)}function v1e(e){return e.overallProgress&&g1e}function g1e(){this.agent.dirty(),this.getDownstream().dirty()}function m1e(){this.agent&&this.agent.dirty()}function y1e(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function x1e(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=ir(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?ve(t,function(r,n){return GW(n)}):b1e}var b1e=GW(0);function GW(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 S1e(e){return e.data.count()}function _1e(e){B1=null;try{e(ag,WW)}catch{}return B1}var ag={},WW={},B1;jW(ag,uk);jW(WW,vW);ag.eachSeriesByType=ag.eachRawSeriesByType=function(e){B1=e};ag.eachComponent=function(e){e.mainType==="series"&&e.subType&&(B1=e.subType)};function jW(e,t){for(var r in t.prototype)e[r]=Vr}var u5=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const w1e={color:u5,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],u5]};var Yn="#B9B8CE",c5="#100C2A",Ky=function(){return{axisLine:{lineStyle:{color:Yn}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},f5=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],UW={darkMode:!0,color:f5,backgroundColor:c5,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Yn}},textStyle:{color:Yn},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Yn}},dataZoom:{borderColor:"#71708A",textStyle:{color:Yn},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:Yn}},timeline:{lineStyle:{color:Yn},label:{color:Yn},controlStyle:{color:Yn,borderColor:Yn}},calendar:{itemStyle:{color:c5},dayLabel:{color:Yn},monthLabel:{color:Yn},yearLabel:{color:Yn}},timeAxis:Ky(),logAxis:Ky(),valueAxis:Ky(),categoryAxis:Ky(),line:{symbol:"circle"},graph:{color:f5},gauge:{title:{color:Yn},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Yn},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};UW.categoryAxis.splitLine.show=!1;var C1e=function(){function e(){}return e.prototype.normalizeQuery=function(t){var r={},n={},i={};if(De(t)){var a=Oo(t);r.mainType=a.main||null,r.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};$(t,function(l,u){for(var c=!1,f=0;f<o.length;f++){var d=o[f],p=u.lastIndexOf(d);if(p>0&&p===u.length-d.length){var v=u.slice(0,p);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,p,v){return f[p]==null||d[v||p]===f[p]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),cA=["symbol","symbolSize","symbolRotate","symbolOffset"],d5=cA.concat(["symbolKeepAspect"]),T1e={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<cA.length;o++){var s=cA[o],l=e.get(s);je(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=Dt(i);function c(f,d){for(var p=e.getRawValue(d),v=e.getDataParams(d),g=0;g<u.length;g++){var y=u[g];f.setItemVisual(d,y,i[y](p,v))}}return{dataEach:a?c:null}}},A1e={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<d5.length;s++){var l=d5[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:r.hasItemOption?n:null}}};function vk(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 jg(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 YW(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 qW(e,t){function r(n,i){var a=[];return n.eachComponent({mainType:"series",subType:e,query:i},function(o){a.push(o.seriesIndex)}),a}$([[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 Vf(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=Fc(f,i.fromActionPayload);r.trigger(a,{type:a,seriesId:o.id,name:he(d)?f.getName(d[0]):f.getName(d),selected:De(l)?l:oe({},l)})}})}function M1e(e,t,r){e.on("selectchanged",function(n){var i=r.getModel();n.isFromClick?(Vf("map","selectchanged",t,i,n),Vf("pie","selectchanged",t,i,n)):n.fromAction==="select"?(Vf("map","selected",t,i,n),Vf("pie","selected",t,i,n)):n.fromAction==="unselect"&&(Vf("map","unselected",t,i,n),Vf("pie","unselected",t,i,n))})}function gc(e,t,r){for(var n;e&&!(t(e)&&(n=e,r));)e=e.__hostTarget||e.parent;return n}var I1e=Math.round(Math.random()*9),k1e=typeof Object.defineProperty=="function",P1e=function(){function e(){this._id="__ec_inner_"+I1e++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var n=this._guard(t);return k1e?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}(),D1e=wt.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()}}),R1e=wt.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()}}),L1e=wt.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),p=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*p,l+s+d*p,r,n-v,r,n),e.bezierCurveTo(r,n-v,r-c+f*p,l+s+d*p,r-c,l+s),e.closePath()}}),E1e=wt.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()}}),O1e={line:on,rect:Et,roundRect:Et,square:Et,circle:Us,diamond:R1e,pin:L1e,arrow:E1e,triangle:D1e},N1e={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}},F1={};$(O1e,function(e,t){F1[t]=new e});var z1e=wt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(e,t,r){var n=I1(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=F1[n];i||(n="rect",i=F1[n]),N1e[n](t.x,t.y,t.width,t.height,i.shape),i.buildPath(e,i.shape,r)}}});function B1e(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 Ur(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=NG(e.slice(8),new vt(t,r,n,i),o?"center":"cover"):e.indexOf("path://")===0?l=vb(e.slice(7),{},new vt(t,r,n,i),o?"center":"cover"):l=new z1e({shape:{symbolType:e,x:t,y:r,width:n,height:i}}),l.__isEmptyBrush=s,l.setColor=B1e,a&&l.setColor(a),l}function lp(e){return he(e)||(e=[+e,+e]),[e[0]||0,e[1]||0]}function Xc(e,t){if(e!=null)return he(e)||(e=[e,e]),[Ce(e[0],t[0])||0,Ce(it(e[1],e[0]),t[1])||0]}function mc(e){return isFinite(e)}function F1e(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=mc(n)?n:0,i=mc(i)?i:1,a=mc(a)?a:0,o=mc(o)?o:0;var s=e.createLinearGradient(n,a,i,o);return s}function $1e(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=mc(o)?o:.5,s=mc(s)?s:.5,l=l>=0&&mc(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function fA(e,t,r){for(var n=t.type==="radial"?$1e(e,t,r):F1e(e,t,r),i=t.colorStops,a=0;a<i.length;a++)n.addColorStop(i[a].offset,i[a].color);return n}function V1e(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 fd(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 H1e(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Bt(e)?[e]:he(e)?e:null}function gk(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&H1e(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=ve(r,function(a){return a/i}),n/=i)}return[r,n]}var G1e=new Jo(!0);function $1(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function p5(e){return typeof e=="string"&&e!=="none"}function V1(e){var t=e.fill;return t!=null&&t!=="none"}function h5(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 v5(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 dA(e,t,r){var n=HI(t.image,t.__image,r);if(lb(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)*N0),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function W1e(e,t,r,n){var i,a=$1(r),o=V1(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||G1e,f=t.__dirty;if(!n){var d=r.fill,p=r.stroke,v=o&&!!d.colorStops,g=a&&!!p.colorStops,y=o&&!!d.image,x=a&&!!p.image,b=void 0,S=void 0,w=void 0,T=void 0,C=void 0;(v||g)&&(C=t.getBoundingRect()),v&&(b=f?fA(e,d,C):t.__canvasFillGradient,t.__canvasFillGradient=b),g&&(S=f?fA(e,p,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=S),y&&(w=f||!t.__canvasFillPattern?dA(e,d,t):t.__canvasFillPattern,t.__canvasFillPattern=w),x&&(T=f||!t.__canvasStrokePattern?dA(e,p,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),v?e.fillStyle=b:y&&(w?e.fillStyle=w:o=!1),g?e.strokeStyle=S:x&&(T?e.strokeStyle=T:a=!1)}var A=t.getGlobalScale();c.setScale(A[0],A[1],t.segmentIgnoreThreshold);var I,k;e.setLineDash&&r.lineDash&&(i=gk(t),I=i[0],k=i[1]);var P=!0;(u||f&Gh)&&(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),I&&(e.setLineDash(I),e.lineDashOffset=k),n||(r.strokeFirst?(a&&v5(e,r),o&&h5(e,r)):(o&&h5(e,r),a&&v5(e,r))),I&&e.setLineDash([])}function j1e(e,t,r){var n=t.__image=HI(r.image,t.__image,t,t.onload);if(!(!n||!lb(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 U1e(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||Xl,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=gk(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?($1(r)&&e.strokeText(i,r.x,r.y),V1(r)&&e.fillText(i,r.x,r.y)):(V1(r)&&e.fillText(i,r.x,r.y),$1(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var g5=["shadowBlur","shadowOffsetX","shadowOffsetY"],m5=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function XW(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){wi(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?Cc.opacity:o}(n||t.blend!==r.blend)&&(a||(wi(e,i),a=!0),e.globalCompositeOperation=t.blend||Cc.blend);for(var s=0;s<g5.length;s++){var l=g5[s];(n||t[l]!==r[l])&&(a||(wi(e,i),a=!0),e[l]=e.dpr*(t[l]||0))}return(n||t.shadowColor!==r.shadowColor)&&(a||(wi(e,i),a=!0),e.shadowColor=t.shadowColor||Cc.shadowColor),a}function y5(e,t,r,n,i){var a=og(t,i.inHover),o=n?null:r&&og(r,i.inHover)||{};if(a===o)return!1;var s=XW(e,a,o,n,i);if((n||a.fill!==o.fill)&&(s||(wi(e,i),s=!0),p5(a.fill)&&(e.fillStyle=a.fill)),(n||a.stroke!==o.stroke)&&(s||(wi(e,i),s=!0),p5(a.stroke)&&(e.strokeStyle=a.stroke)),(n||a.opacity!==o.opacity)&&(s||(wi(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||(wi(e,i),s=!0),e.lineWidth=u)}for(var c=0;c<m5.length;c++){var f=m5[c],d=f[0];(n||a[d]!==o[d])&&(s||(wi(e,i),s=!0),e[d]=a[d]||f[1])}return s}function Y1e(e,t,r,n,i){return XW(e,og(t,i.inHover),r&&og(r,i.inHover),n,i)}function ZW(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 q1e(e,t,r){for(var n=!1,i=0;i<e.length;i++){var a=e[i];n=n||a.isZeroArea(),ZW(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=n}function X1e(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 x5=1,b5=2,S5=3,_5=4;function Z1e(e){var t=V1(e),r=$1(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 wi(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function og(e,t){return t&&e.__hoverStyle||e.style}function KW(e,t){yc(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function yc(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||V1e(a,o))&&(o&&o.length&&(wi(e,r),e.restore(),l=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(wi(e,r),e.save(),q1e(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 wt&&t.autoBatch&&Z1e(t.style);s||X1e(i,u.transform)?(wi(e,r),ZW(e,t)):c||wi(e,r);var f=og(t,r.inHover);t instanceof wt?(r.lastDrawType!==x5&&(l=!0,r.lastDrawType=x5),y5(e,t,u,l,r),(!c||!r.batchFill&&!r.batchStroke)&&e.beginPath(),W1e(e,t,f,c),c&&(r.batchFill=f.fill||"",r.batchStroke=f.stroke||"")):t instanceof Ed?(r.lastDrawType!==S5&&(l=!0,r.lastDrawType=S5),y5(e,t,u,l,r),U1e(e,t,f)):t instanceof mn?(r.lastDrawType!==b5&&(l=!0,r.lastDrawType=b5),Y1e(e,t,u,l,r),j1e(e,t,f)):t.getTemporalDisplayables&&(r.lastDrawType!==_5&&(l=!0,r.lastDrawType=_5),K1e(e,t,r)),c&&n&&wi(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function K1e(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(),yc(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(),yc(e,l,a,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}var lC=new P1e,w5=new Og(100),C5=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function zd(e,t){if(e==="none")return null;var r=t.getDevicePixelRatio(),n=t.getZr(),i=n.painter.type==="svg";e.dirty&&lC.delete(e);var a=lC.get(e);if(a)return a;var o=Ye(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,lC.set(e,s),e.dirty=!1,s;function l(u){for(var c=[r],f=!0,d=0;d<C5.length;++d){var p=o[C5[d]];if(p!=null&&!he(p)&&!De(p)&&!Bt(p)&&typeof p!="boolean"){f=!1;break}c.push(p)}var v;if(f){v=c.join(",")+(i?"-svg":"");var g=w5.get(v);g&&(i?u.svgElement=g:u.image=g)}var y=JW(o.dashArrayX),x=Q1e(o.dashArrayY),b=QW(o.symbol),S=J1e(y),w=ej(x),T=!i&&Zl.createCanvas(),C=i&&{tag:"g",attrs:{},key:"dcl",children:[]},A=k(),I;T&&(T.width=A.width*r,T.height=A.height*r,I=T.getContext("2d")),P(),f&&w5.put(v,T||C),u.image=T,u.svgElement=C,u.svgWidth=A.width,u.svgHeight=A.height;function k(){for(var R=1,O=0,E=S.length;O<E;++O)R=VN(R,S[O]);for(var z=1,O=0,E=b.length;O<E;++O)z=VN(z,b[O].length);R*=z;var B=w*S.length*b.length;return{width:Math.max(1,Math.min(R,o.maxTileWidth)),height:Math.max(1,Math.min(B,o.maxTileHeight))}}function P(){I&&(I.clearRect(0,0,T.width,T.height),o.backgroundColor&&(I.fillStyle=o.backgroundColor,I.fillRect(0,0,T.width,T.height)));for(var R=0,O=0;O<x.length;++O)R+=x[O];if(R<=0)return;for(var E=-w,z=0,B=0,W=0;E<A.height;){if(z%2===0){for(var X=B/2%b.length,H=0,q=0,F=0;H<A.width*2;){for(var Y=0,O=0;O<y[W].length;++O)Y+=y[W][O];if(Y<=0)break;if(q%2===0){var Z=(1-o.symbolSize)*.5,j=H+y[W][q]*Z,te=E+x[z]*Z,fe=y[W][q]*o.symbolSize,re=x[z]*o.symbolSize,ce=F/2%b[X].length;ne(j,te,fe,re,b[X][ce])}H+=y[W][q],++F,++q,q===y[W].length&&(q=0)}++W,W===y.length&&(W=0)}E+=x[z],++B,++z,z===x.length&&(z=0)}function ne(pe,me,le,Se,ze){var Te=i?1:r,ye=Ur(ze,pe*Te,me*Te,le*Te,Se*Te,o.color,o.symbolKeepAspect);if(i){var ft=n.painter.renderOneToVNode(ye);ft&&C.children.push(ft)}else KW(I,ye)}}}}function QW(e){if(!e||e.length===0)return[["rect"]];if(De(e))return[[e]];for(var t=!0,r=0;r<e.length;++r)if(!De(e[r])){t=!1;break}if(t)return QW([e]);for(var n=[],r=0;r<e.length;++r)De(e[r])?n.push([e[r]]):n.push(e[r]);return n}function JW(e){if(!e||e.length===0)return[[0,0]];if(Bt(e)){var t=Math.ceil(e);return[[t,t]]}for(var r=!0,n=0;n<e.length;++n)if(!Bt(e[n])){r=!1;break}if(r)return JW([e]);for(var i=[],n=0;n<e.length;++n)if(Bt(e[n])){var t=Math.ceil(e[n]);i.push([t,t])}else{var t=ve(e[n],function(s){return Math.ceil(s)});t.length%2===1?i.push(t.concat(t)):i.push(t)}return i}function Q1e(e){if(!e||typeof e=="object"&&e.length===0)return[0,0];if(Bt(e)){var t=Math.ceil(e);return[t,t]}var r=ve(e,function(n){return Math.ceil(n)});return e.length%2?r.concat(r):r}function J1e(e){return ve(e,function(t){return ej(t)})}function ej(e){for(var t=0,r=0;r<e.length;++r)t+=e[r];return e.length%2===1?t*2:t}function exe(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=zd(s,t)}});var i=n.getVisual("decal");if(i){var a=n.getVisual("style");a.decal=zd(i,t)}}})}var Wa=new Pa,tj={};function txe(e,t){tj[e]=t}function rxe(e){return tj[e]}var nxe=1,ixe=800,axe=900,oxe=1e3,sxe=2e3,lxe=5e3,rj=1e3,uxe=1100,mk=2e3,nj=3e3,cxe=4e3,Mb=4500,fxe=4600,dxe=5e3,pxe=6e3,ij=7e3,hxe={PROCESSOR:{FILTER:oxe,SERIES_FILTER:ixe,STATISTIC:lxe},VISUAL:{LAYOUT:rj,PROGRESSIVE_LAYOUT:uxe,GLOBAL:mk,CHART:nj,POST_CHART_LAYOUT:fxe,COMPONENT:cxe,BRUSH:dxe,CHART_ITEM:Mb,ARIA:pxe,DECAL:ij}},Ln="__flagInMainProcess",yi="__pendingUpdate",uC="__needsUpdateStatus",T5=/^[a-zA-Z0-9_]+$/,cC="__connectUpdateStatus",A5=0,vxe=1,gxe=2;function aj(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(this.isDisposed()){this.id;return}return sj(this,e,t)}}function oj(e){return function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return sj(this,e,t)}}function sj(e,t,r){return r[0]=r[0]&&r[0].toLowerCase(),Pa.prototype[t].apply(e,r)}var lj=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(Pa),uj=lj.prototype;uj.on=oj("on");uj.off=oj("off");var Hf,fC,Jy,xl,dC,pC,hC,bh,Sh,M5,I5,vC,k5,e0,P5,cj,aa,D5,H1=function(e){J(t,e);function t(r,n,i){var a=e.call(this,new C1e)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},De(n)&&(n=fj[n]),a._dom=r;var o="canvas",s="auto",l=!1;i.ssr&&fge(function(d){var p=tt(d),v=p.dataIndex;if(v!=null){var g=$e();return g.set("series_index",p.seriesIndex),g.set("data_index",v),p.ssrType&&g.set("ssr_type",p.ssrType),g}});var u=a._zr=BN(r,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:it(i.useDirtyRect,l),useCoarsePointer:it(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=hk(Ne(u.flush,u),17),n=Ke(n),n&&mW(n,!0),a._theme=n,a._locale=Nye(i.locale||UG),a._coordSysMgr=new Wg;var c=a._api=P5(a);function f(d,p){return d.__prio-p.__prio}return F0(W1,f),F0(pA,f),a._scheduler=new HW(a,c,pA,W1),a._messageCenter=new lj,a._initEvents(),a.resize=Ne(a.resize,a),u.animation.on("frame",a._onframe,a),M5(u,a),I5(u,a),b1(a),a}return t.prototype._onframe=function(){if(!this._disposed){D5(this);var r=this._scheduler;if(this[yi]){var n=this[yi].silent;this[Ln]=!0;try{Hf(this),xl.update.call(this,null,this[yi].updateParams)}catch(l){throw this[Ln]=!1,this[yi]=null,l}this._zr.flush(),this[Ln]=!1,this[yi]=null,bh.call(this,n),Sh.call(this,n)}else if(r.unfinished){var i=nxe,a=this._model,o=this._api;r.unfinished=!1;do{var s=+new Date;r.performSeriesTasks(a),r.performDataProcessorTasks(a),pC(this,a),r.performVisualTasks(a),e0(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[Ln]){if(this._disposed){this.id;return}var a,o,s;if(Xe(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Ln]=!0,!this._model||n){var l=new s0e(this._api),u=this._theme,c=this._model=new uk;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},hA);var f={seriesTransition:s,optionChanged:!0};if(i)this[yi]={silent:a,updateParams:f},this[Ln]=!1,this.getZr().wakeUp();else{try{Hf(this),xl.update.call(this,null,f)}catch(d){throw this[yi]=null,this[Ln]=!1,d}this._ssr||this._zr.flush(),this[yi]=null,this[Ln]=!1,bh.call(this,a),Sh.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||kt.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(kt.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return $(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;$(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 $(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(gA[i]){var l=s,u=s,c=-s,f=-s,d=[],p=r&&r.pixelRatio||this.getDevicePixelRatio();$(wd,function(S,w){if(S.group===i){var T=n?S.getZr().painter.getSvgDom().innerHTML:S.renderToCanvas(Ke(r)),C=S.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*=p,u*=p,c*=p,f*=p;var v=c-l,g=f-u,y=Zl.createCanvas(),x=BN(y,{renderer:n?"svg":"canvas"});if(x.resize({width:v,height:g}),n){var b="";return $(d,function(S){var w=S.left-l,T=S.top-u;b+='<g transform="translate('+w+","+T+')">'+S.dom+"</g>"}),x.painter.getSvgRoot().innerHTML=b,r.connectedBackgroundColor&&x.painter.setBackgroundColor(r.connectedBackgroundColor),x.refreshImmediately(),x.painter.toDataURL()}else return r.connectedBackgroundColor&&x.add(new Et({shape:{x:0,y:0,width:v,height:g},style:{fill:r.connectedBackgroundColor}})),$(d,function(S){var w=new mn({style:{x:S.left*p-l,y:S.top*p-u,image:S.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 dC(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return dC(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=xv(i,r);return $(o,function(s,l){l.indexOf("Models")>=0&&$(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=xv(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?vk(s,l,n):jg(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;$(mxe,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&gc(s,function(v){var g=tt(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),p=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:p},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),$(Tv,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),$(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),M1e(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&&iG(this.getDom(),xk,"");var n=this,i=n._api,a=n._model;$(n._componentsViews,function(o){o.dispose(a,i)}),$(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 wd[n.id]},t.prototype.resize=function(r){if(!this[Ln]){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[yi]&&(a==null&&(a=this[yi].silent),i=!0,this[yi]=null),this[Ln]=!0;try{i&&Hf(this),xl.update.call(this,{type:"resize",animation:oe({duration:0},r&&r.animation)})}catch(o){throw this[Ln]=!1,o}this[Ln]=!1,bh.call(this,a),Sh.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Xe(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!vA[r]){var i=vA[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=Tv[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Xe(n)||(n={silent:!!n}),!!G1[r.type]&&this._model){if(this[Ln]){this._pendingActions.push(r);return}var i=n.silent;hC.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&kt.browser.weChat&&this._throttledZrFlush(),bh.call(this,i),Sh.call(this,i)}},t.prototype.updateLabelLayout=function(){Wa.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(){Hf=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),fC(f,!0),fC(f,!1),d.plan()},fC=function(f,d){for(var p=f._model,v=f._scheduler,g=d?f._componentsViews:f._chartsViews,y=d?f._componentsMap:f._chartsMap,x=f._zr,b=f._api,S=0;S<g.length;S++)g[S].__alive=!1;d?p.eachComponent(function(C,A){C!=="series"&&w(A)}):p.eachSeries(w);function w(C){var A=C.__requireNewView;C.__requireNewView=!1;var I="_ec_"+C.id+"_"+C.type,k=!A&&y[I];if(!k){var P=Oo(C.type),R=d?_r.getClass(P.main,P.sub):lr.getClass(P.sub);k=new R,k.init(p,b),y[I]=k,g.push(k),x.add(k.group)}C.__viewId=k.__id=I,k.__alive=!0,k.__model=C,k.group.__ecComponentInfo={mainType:C.mainType,index:C.componentIndex},!d&&v.prepareView(k,C,p,b)}for(var S=0;S<g.length;){var T=g[S];T.__alive?S++:(!d&&T.renderTask.dispose(),x.remove(T.group),T.dispose(p,b),g.splice(S,1),y[T.__id]===T&&delete y[T.__id],T.__id=T.group.__ecComponentInfo=null)}},Jy=function(f,d,p,v,g){var y=f._model;if(y.setUpdatePayload(p),!v){$([].concat(f._componentsViews).concat(f._chartsViews),T);return}var x={};x[v+"Id"]=p[v+"Id"],x[v+"Index"]=p[v+"Index"],x[v+"Name"]=p[v+"Name"];var b={mainType:v,query:x};g&&(b.subType=g);var S=p.excludeSeriesId,w;S!=null&&(w=$e(),$(ir(S),function(C){var A=Kr(C,null);A!=null&&w.set(A,!0)})),y&&y.eachComponent(b,function(C){var A=w&&w.get(C.id)!=null;if(!A)if(pz(p))if(C instanceof gr)p.type===Tc&&!p.notBlur&&!C.get(["emphasis","disabled"])&&Ome(C,p,f._api);else{var I=qI(C.mainType,C.componentIndex,p.name,f._api),k=I.focusSelf,P=I.dispatchers;p.type===Tc&&k&&!p.notBlur&&X2(C.mainType,C.componentIndex,f._api),P&&$(P,function(R){p.type===Tc?zs(R):Bs(R)})}else K2(p)&&C instanceof gr&&(Bme(C,p,f._api),fz(C),aa(f))},f),y&&y.eachComponent(b,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,p)}},xl={prepareAndUpdate:function(f){Hf(this),xl.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var p=this._model,v=this._api,g=this._zr,y=this._coordSysMgr,x=this._scheduler;if(p){p.setUpdatePayload(f),x.restoreData(p,f),x.performSeriesTasks(p),y.create(p,v),x.performDataProcessorTasks(p,f),pC(this,p),y.update(p,v),r(p),x.performVisualTasks(p,f),vC(this,p,v,f,d);var b=p.get("backgroundColor")||"transparent",S=p.get("darkMode");g.setBackgroundColor(b),S!=null&&S!=="auto"&&g.setDarkMode(S),Wa.trigger("afterupdate",p,v)}},updateTransform:function(f){var d=this,p=this._model,v=this._api;if(p){p.setUpdatePayload(f);var g=[];p.eachComponent(function(x,b){if(x!=="series"){var S=d.getViewOfComponentModel(b);if(S&&S.__alive)if(S.updateTransform){var w=S.updateTransform(b,p,v,f);w&&w.update&&g.push(S)}else g.push(S)}});var y=$e();p.eachSeries(function(x){var b=d._chartsMap[x.__viewId];if(b.updateTransform){var S=b.updateTransform(x,p,v,f);S&&S.update&&y.set(x.uid,1)}else y.set(x.uid,1)}),r(p),this._scheduler.performVisualTasks(p,f,{setDirty:!0,dirtyMap:y}),e0(this,p,v,f,{},y),Wa.trigger("afterupdate",p,v)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),lr.markUpdateMethod(f,"updateView"),r(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),vC(this,d,this._api,f,{}),Wa.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,p=this._model;p&&(p.setUpdatePayload(f),p.eachSeries(function(v){v.getData().clearAllVisual()}),lr.markUpdateMethod(f,"updateVisual"),r(p),this._scheduler.performVisualTasks(p,f,{visualType:"visual",setDirty:!0}),p.eachComponent(function(v,g){if(v!=="series"){var y=d.getViewOfComponentModel(g);y&&y.__alive&&y.updateVisual(g,p,d._api,f)}}),p.eachSeries(function(v){var g=d._chartsMap[v.__viewId];g.updateVisual(v,p,d._api,f)}),Wa.trigger("afterupdate",p,this._api))},updateLayout:function(f){xl.update.call(this,f)}},dC=function(f,d,p,v){if(f._disposed){f.id;return}for(var g=f._model,y=f._coordSysMgr.getCoordinateSystems(),x,b=xv(g,p),S=0;S<y.length;S++){var w=y[S];if(w[d]&&(x=w[d](g,b,v))!=null)return x}},pC=function(f,d){var p=f._chartsMap,v=f._scheduler;d.eachSeries(function(g){v.updateStreamModes(g,p[g.__viewId])})},hC=function(f,d){var p=this,v=this.getModel(),g=f.type,y=f.escapeConnect,x=G1[g],b=x.actionInfo,S=(b.update||"update").split(":"),w=S.pop(),T=S[0]!=null&&Oo(S[0]);this[Ln]=!0;var C=[f],A=!1;f.batch&&(A=!0,C=ve(f.batch,function(z){return z=Ye(oe({},z),f),z.batch=null,z}));var I=[],k,P=K2(f),R=pz(f);if(R&&TG(this._api),$(C,function(z){if(k=x.action(z,p._model,p._api),k=k||oe({},z),k.type=b.event||k.type,I.push(k),R){var B=$I(f),W=B.queryOptionMap,X=B.mainTypeSpecified,H=X?W.keys()[0]:"series";Jy(p,w,z,H),aa(p)}else P?(Jy(p,w,z,"series"),aa(p)):T&&Jy(p,w,z,T.main,T.sub)}),w!=="none"&&!R&&!P&&!T)try{this[yi]?(Hf(this),xl.update.call(this,f),this[yi]=null):xl[w].call(this,f)}catch(z){throw this[Ln]=!1,z}if(A?k={type:b.event||g,escapeConnect:y,batch:I}:k=I[0],this[Ln]=!1,!d){var O=this._messageCenter;if(O.trigger(k.type,k),P){var E={type:"selectchanged",escapeConnect:y,selected:Fme(v),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};O.trigger(E.type,E)}}},bh=function(f){for(var d=this._pendingActions;d.length;){var p=d.shift();hC.call(this,p,f)}},Sh=function(f){!f&&this.trigger("updated")},M5=function(f,d){f.on("rendered",function(p){d.trigger("rendered",p),f.animation.isFinished()&&!d[yi]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},I5=function(f,d){f.on("mouseover",function(p){var v=p.target,g=gc(v,Jv);g&&(Nme(g,p,d._api),aa(d))}).on("mouseout",function(p){var v=p.target,g=gc(v,Jv);g&&(zme(g,p,d._api),aa(d))}).on("click",function(p){var v=p.target,g=gc(v,function(b){return tt(b).dataIndex!=null},!0);if(g){var y=g.selected?"unselect":"select",x=tt(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=[],p=[],v=!1;if(f.eachComponent(function(b,S){var w=S.get("zlevel")||0,T=S.get("z")||0,C=S.getZLevelKey();v=v||!!C,(b==="series"?p:d).push({zlevel:w,z:T,idx:S.componentIndex,type:b,key:C})}),v){var g=d.concat(p),y,x;F0(g,function(b,S){return b.zlevel===S.zlevel?b.z-S.z:b.zlevel-S.zlevel}),$(g,function(b){var S=f.getComponent(b.type,b.idx),w=b.zlevel,T=b.key;y!=null&&(w=Math.max(y,w)),T?(w===y&&T!==x&&w++,x=T):x&&(w===y&&w++,x=""),y=w,S.setZLevel(w)})}}vC=function(f,d,p,v,g){n(d),k5(f,d,p,v,g),$(f._chartsViews,function(y){y.__alive=!1}),e0(f,d,p,v,g),$(f._chartsViews,function(y){y.__alive||y.remove(d,p)})},k5=function(f,d,p,v,g,y){$(y||f._componentsViews,function(x){var b=x.__model;u(b,x),x.render(b,d,p,v),s(b,x),c(b,x)})},e0=function(f,d,p,v,g,y){var x=f._scheduler;g=oe(g||{},{updatedSeries:d.getSeries()}),Wa.trigger("series:beforeupdate",d,p,g);var b=!1;d.eachSeries(function(S){var w=f._chartsMap[S.__viewId];w.__alive=!0;var T=w.renderTask;x.updatePayload(T,v),u(S,w),y&&y.get(S.uid)&&T.dirty(),T.perform(x.getPerformArgs(T))&&(b=!0),w.group.silent=!!S.get("silent"),o(S,w),fz(S)}),x.unfinished=b||x.unfinished,Wa.trigger("series:layoutlabels",d,p,g),Wa.trigger("series:transition",d,p,g),d.eachSeries(function(S){var w=f._chartsMap[S.__viewId];s(S,w),c(S,w)}),a(f,d),Wa.trigger("series:afterupdate",d,p,g)},aa=function(f){f[uC]=!0,f.getZr().wakeUp()},D5=function(f){f[uC]&&(f.getZr().storage.traverse(function(d){xd(d)||i(d)}),f[uC]=!1)};function i(f){for(var d=[],p=f.currentStates,v=0;v<p.length;v++){var g=p[v];g==="emphasis"||g==="blur"||g==="select"||d.push(g)}f.selected&&f.states.select&&d.push("select"),f.hoverState===fb&&f.states.emphasis?d.push("emphasis"):f.hoverState===Bg&&f.states.blur&&d.push("blur"),f.useStates(d)}function a(f,d){var p=f._zr,v=p.storage,g=0;v.traverse(function(y){y.isGroup||g++}),g>d.get("hoverLayerThreshold")&&!kt.node&&!kt.worker&&d.eachSeries(function(y){if(!y.preventUsingHoverLayer){var x=f._chartsMap[y.__viewId];x.__alive&&x.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function o(f,d){var p=f.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=p)})}function s(f,d){if(!f.preventAutoZ){var p=f.get("z")||0,v=f.get("zlevel")||0;d.eachRendered(function(g){return l(g,p,v,-1/0),!0})}}function l(f,d,p,v){var g=f.getTextContent(),y=f.getTextGuideLine(),x=f.isGroup;if(x)for(var b=f.childrenRef(),S=0;S<b.length;S++)v=Math.max(l(b[S],d,p,v),v);else f.z=d,f.zlevel=p,v=Math.max(f.z2,v);if(g&&(g.z=d,g.zlevel=p,isFinite(v)&&(g.z2=v+2)),y){var w=f.textGuideLineConfig;y.z=d,y.zlevel=p,isFinite(v)&&(y.z2=v+(w&&w.showAbove?1:-1))}return v}function u(f,d){d.eachRendered(function(p){if(!xd(p)){var v=p.getTextContent(),g=p.getTextGuideLine();p.stateTransition&&(p.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),p.hasState()?(p.prevStates=p.currentStates,p.clearStates()):p.prevStates&&(p.prevStates=null)}})}function c(f,d){var p=f.getModel("stateAnimation"),v=f.isAnimationEnabled(),g=p.get("duration"),y=g>0?{duration:g,delay:p.get("delay"),easing:p.get("easing")}:null;d.eachRendered(function(x){if(x.states&&x.states.emphasis){if(xd(x))return;if(x instanceof wt&&Wme(x),x.__dirty){var b=x.prevStates;b&&x.useStates(b)}if(v){x.stateTransition=y;var S=x.getTextContent(),w=x.getTextGuideLine();S&&(S.stateTransition=y),w&&(w.stateTransition=y)}x.__dirty&&i(x)}})}P5=function(f){return new(function(d){J(p,d);function p(){return d!==null&&d.apply(this,arguments)||this}return p.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},p.prototype.getComponentByElement=function(v){for(;v;){var g=v.__ecComponentInfo;if(g!=null)return f._model.getComponent(g.mainType,g.index);v=v.parent}},p.prototype.enterEmphasis=function(v,g){zs(v,g),aa(f)},p.prototype.leaveEmphasis=function(v,g){Bs(v,g),aa(f)},p.prototype.enterBlur=function(v){SG(v),aa(f)},p.prototype.leaveBlur=function(v){YI(v),aa(f)},p.prototype.enterSelect=function(v){_G(v),aa(f)},p.prototype.leaveSelect=function(v){wG(v),aa(f)},p.prototype.getModel=function(){return f.getModel()},p.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},p.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},p}(vW))(f)},cj=function(f){function d(p,v){for(var g=0;g<p.length;g++){var y=p[g];y[cC]=v}}$(Tv,function(p,v){f._messageCenter.on(v,function(g){if(gA[f.group]&&f[cC]!==A5){if(g&&g.escapeConnect)return;var y=f.makeActionFromEvent(g),x=[];$(wd,function(b){b!==f&&b.group===f.group&&x.push(b)}),d(x,A5),$(x,function(b){b[cC]!==vxe&&b.dispatchAction(y)}),d(x,gxe)}})})}}(),t}(Pa),yk=H1.prototype;yk.on=aj("on");yk.off=aj("off");yk.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 mxe=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];var G1={},Tv={},pA=[],hA=[],W1=[],fj={},vA={},wd={},gA={},yxe=+new Date-0,xxe=+new Date-0,xk="_echarts_instance_";function bxe(e,t,r){{var n=dj(e);if(n)return n}var i=new H1(e,t,r);return i.id="ec_"+yxe++,wd[i.id]=i,iG(e,xk,i.id),cj(i),Wa.trigger("afterinit",i),i}function Sxe(e){if(he(e)){var t=e;e=null,$(t,function(r){r.group!=null&&(e=r.group)}),e=e||"g_"+xxe++,$(t,function(r){r.group=e})}return gA[e]=!0,e}function _xe(e){De(e)?e=wd[e]:e instanceof H1||(e=dj(e)),e instanceof H1&&!e.isDisposed()&&e.dispose()}function dj(e){return wd[Rge(e,xk)]}function pj(e,t){fj[e]=t}function hj(e){bt(hA,e)<0&&hA.push(e)}function vj(e,t){Sk(pA,e,t,sxe)}function wxe(e){bk("afterinit",e)}function Cxe(e){bk("afterupdate",e)}function bk(e,t){Wa.on(e,t)}function ns(e,t,r){je(t)&&(r=t,t="");var n=Xe(e)?e.type:[e,e={event:t}][0];e.event=(e.event||n).toLowerCase(),t=e.event,!Tv[t]&&(ri(T5.test(n)&&T5.test(t)),G1[n]||(G1[n]={action:r,actionInfo:e}),Tv[t]=n)}function Txe(e,t){Wg.register(e,t)}function Axe(e,t){Sk(W1,e,t,rj,"layout")}function Zc(e,t){Sk(W1,e,t,nj,"visual")}var R5=[];function Sk(e,t,r,n,i){if((je(t)||Xe(t))&&(r=t,t=n),!(bt(R5,r)>=0)){R5.push(r);var a=HW.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function gj(e,t){vA[e]=t}function Mxe(e,t,r){var n=rxe("registerMap");n&&n(e,t,r)}var Ixe=F0e;Zc(mk,c1e);Zc(Mb,f1e);Zc(Mb,d1e);Zc(mk,T1e);Zc(Mb,A1e);Zc(ij,exe);hj(mW);vj(axe,x0e);gj("default",p1e);ns({type:Tc,event:Tc,update:Tc},Vr);ns({type:j0,event:j0,update:j0},Vr);ns({type:bv,event:bv,update:bv},Vr);ns({type:U0,event:U0,update:U0},Vr);ns({type:Sv,event:Sv,update:Sv},Vr);pj("light",w1e);pj("dark",UW);var L5=[],kxe={registerPreprocessor:hj,registerProcessor:vj,registerPostInit:wxe,registerPostUpdate:Cxe,registerUpdateLifecycle:bk,registerAction:ns,registerCoordinateSystem:Txe,registerLayout:Axe,registerVisual:Zc,registerTransform:Ixe,registerLoading:gj,registerMap:Mxe,registerImpl:txe,PRIORITY:hxe,ComponentModel:Pt,ComponentView:_r,SeriesModel:gr,ChartView:lr,registerComponentModel:function(e){Pt.registerClass(e)},registerComponentView:function(e){_r.registerClass(e)},registerSeriesModel:function(e){gr.registerClass(e)},registerChartView:function(e){lr.registerClass(e)},registerSubTypeDefaulter:function(e,t){Pt.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){uge(e,t)}};function St(e){if(he(e)){$(e,function(t){St(t)});return}bt(L5,e)>=0||(L5.push(e),je(e)&&(e={install:e}),e.install(kxe))}function _h(e){return e==null?0:e.length||1}function E5(e){return e}var Fs=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||E5,this._newKeyGetter=i||E5,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=_h(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=_h(u),d=_h(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 p=0;p<f;p++)this._remove&&this._remove(u[p]);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=_h(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=_h(l);u===0?(r[s]=o,a&&n.push(s)):u===1?r[s]=[l,o]:l.push(o)}}},e}(),Pxe=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 Dxe(e,t){var r={},n=r.encode={},i=$e(),a=[],o=[],s={};$(e.dimensions,function(d){var p=e.getDimensionInfo(d),v=p.coordDim;if(v){var g=p.coordDimIndex;gC(n,v)[g]=d,p.isExtraCoord||(i.set(v,1),Rxe(p.type)&&(a[0]=d),gC(s,v)[g]=e.getDimensionIndex(p.name)),p.defaultTooltip&&o.push(d)}lW.each(function(y,x){var b=gC(n,x),S=p.otherDims[x];S!=null&&S!==!1&&(b[S]=p.name)})});var l=[],u={};i.each(function(d,p){var v=n[p];u[p]=v[0],l=l.concat(v)}),r.dataDimsOnCoord=l,r.dataDimIndicesOnCoord=ve(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 Pxe(s,t),r}function gC(e,t){return e.hasOwnProperty(t)||(e[t]=[]),e[t]}function j1(e){return e==="category"?"ordinal":e==="time"?"time":"float"}function Rxe(e){return!(e==="ordinal"||e==="time")}var K0=function(){function e(t){this.otherDims={},t!=null&&oe(this,t)}return e}(),Lxe=Ot(),Exe={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},mj=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=bj(this.source)))},e.prototype.getSourceDimensionIndex=function(t){return it(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=xW(this.source),n=!Sj(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+=Exe[u]||"f",c&&(i+=c.uid),i+="$"}var p=this.source,v=[p.seriesLayoutBy,p.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 yj(e){return e instanceof mj}function xj(e){for(var t=$e(),r=0;r<(e||[]).length;r++){var n=e[r],i=Xe(n)?n.name:n;i!=null&&t.get(i)==null&&t.set(i,r)}return t}function bj(e){var t=Lxe(e);return t.dimNameMap||(t.dimNameMap=xj(e.dimensionsDefine))}function Sj(e){return e>30}var wh=Xe,bl=ve,Oxe=typeof Int32Array>"u"?Array:Int32Array,Nxe="e\0\0",O5=-1,zxe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Bxe=["_approximateExtent"],N5,t0,Ch,Th,mC,r0,yC,ei=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;yj(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=De(f)?new K0({name:f}):f instanceof K0?f:new K0(f),p=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=p,d.coordDimIndex=0);var v=d.otherDims=d.otherDims||{};o.push(p),a[p]=d,u[p]!=null&&(l=!0),d.createInvertedIndices&&(s[p]=[]),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=$e();$(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(Bt(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 oA&&(a=t),!a){var o=this.dimensions,s=ck(t)||Bn(t)?new bW(t,o.length):t;a=new oA;var l=bl(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=Dxe(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&&yC(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===Da;if(l&&!i.pure)for(var u=[],c=t;c<r;c++){var f=i.getItem(c,u);if(!this.hasItemOption&&xge(f)&&(this.hasItemOption=!0),f){var d=f.name;a[c]==null&&d!=null&&(a[c]=Kr(d,null));var p=f.id;o[c]==null&&p!=null&&(o[c]=Kr(p,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<r;c++)yC(this,c);N5(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){wh(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=Ch(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 t0(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 he(t)?i.getValues(bl(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)?O5:i},e.prototype.indicesOfNearest=function(t,r,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),r,n)},e.prototype.each=function(t,r,n){je(t)&&(n=r,r=t,t=[]);var i=n||this,a=bl(Th(t),this._getStoreDimIndex,this);this._store.each(a,i?Ne(r,i):r)},e.prototype.filterSelf=function(t,r,n){je(t)&&(n=r,r=t,t=[]);var i=n||this,a=bl(Th(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?Ne(r,i):r),this},e.prototype.selectRange=function(t){var r=this,n={},i=Dt(t);return $(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){je(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=bl(Th(t),this._getStoreDimIndex,this),s=r0(this);return s._store=this._store.map(o,a?Ne(r,a):r),s},e.prototype.modify=function(t,r,n,i){var a=n||i||this,o=bl(Th(t),this._getStoreDimIndex,this);this._store.modify(o,a?Ne(r,a):r)},e.prototype.downSample=function(t,r,n,i){var a=r0(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),r,n,i),a},e.prototype.lttbDownSample=function(t,r){var n=r0(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 Zt(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 t0(t,n)},function(n){return t0(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||{},wh(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),he(a)?a=a.slice():wh(a)&&(a=oe({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,wh(r)?oe(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){wh(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;Y2(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){$(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:bl(this.dimensions,this._getDimInfo,this),this.hostModel)),mC(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];je(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(PI(arguments)))})},e.internalField=function(){N5=function(t){var r=t._invertedIndicesMap;$(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new Oxe(o.categories.length);for(var l=0;l<n.length;l++)n[l]=O5;for(var l=0;l<s.count();l++)n[s.get(a.storeDimIndex,l)]=l}})},Ch=function(t,r,n){return Kr(t._getCategory(r,n),null)},t0=function(t,r){var n=t._idList[r];return n==null&&t._idDimIdx!=null&&(n=Ch(t,t._idDimIdx,r)),n==null&&(n=Nxe+r),n},Th=function(t){return he(t)||(t=t!=null?[t]:[]),t},r0=function(t){var r=new e(t._schema?t._schema:bl(t.dimensions,t._getDimInfo,t),t.hostModel);return mC(r,t),r},mC=function(t,r){$(zxe.concat(r.__wrappedMethods||[]),function(n){r.hasOwnProperty(n)&&(t[n]=r[n])}),t.__wrappedMethods=r.__wrappedMethods,$(Bxe,function(n){t[n]=Ke(r[n])}),t._calculationInfo=oe({},r._calculationInfo)},yC=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=Ch(t,a,r)),l==null&&o!=null&&(i[r]=l=Ch(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 Ug(e,t){ck(e)||(e=fk(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=$e(),a=[],o=$xe(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Sj(o),l=n===e.dimensionsDefine,u=l?bj(e):xj(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var f=$e(c),d=new IW(o),p=0;p<d.length;p++)d[p]=-1;function v(k){var P=d[k];if(P<0){var R=n[k],O=Xe(R)?R:{name:R},E=new K0,z=O.name;z!=null&&u.get(z)!=null&&(E.name=E.displayName=z),O.type!=null&&(E.type=O.type),O.displayName!=null&&(E.displayName=O.displayName);var B=a.length;return d[k]=B,E.storeDimIndex=k,a.push(E),E}return a[P]}if(!s)for(var p=0;p<o;p++)v(p);f.each(function(k,P){var R=ir(k).slice();if(R.length===1&&!De(R[0])&&R[0]<0){f.set(P,!1);return}var O=f.set(P,[]);$(R,function(E,z){var B=De(E)?u.get(E):E;B!=null&&B<o&&(O[z]=B,y(v(B),P,z))})});var g=0;$(r,function(k){var P,R,O,E;if(De(k))P=k,E={};else{E=k,P=E.name;var z=E.ordinalMeta;E.ordinalMeta=null,E=oe({},E),E.ordinalMeta=z,R=E.dimsDef,O=E.otherDims,E.name=E.coordDim=E.coordDimIndex=E.dimsDef=E.otherDims=null}var B=f.get(P);if(B!==!1){if(B=ir(B),!B.length)for(var W=0;W<(R&&R.length||1);W++){for(;g<o&&v(g).coordDim!=null;)g++;g<o&&B.push(g++)}$(B,function(X,H){var q=v(X);if(l&&E.type!=null&&(q.type=E.type),y(Ye(q,E),P,H),q.name==null&&R){var F=R[H];!Xe(F)&&(F={name:F}),q.name=q.displayName=F.name,q.defaultTooltip=F.defaultTooltip}O&&Ye(q.otherDims,O)})}});function y(k,P,R){lW.get(P)!=null?k.otherDims[P]=R:(k.coordDim=P,k.coordDimIndex=R,i.set(P,!0))}var x=t.generateCoord,b=t.generateCoordCount,S=b!=null;b=x?b||1:0;var w=x||"value";function T(k){k.name==null&&(k.name=k.coordDim)}if(s)$(a,function(k){T(k)}),a.sort(function(k,P){return k.storeDimIndex-P.storeDimIndex});else for(var C=0;C<o;C++){var A=v(C),I=A.coordDim;I==null&&(A.coordDim=Vxe(w,i,S),A.coordDimIndex=0,(!x||b<=0)&&(A.isExtraCoord=!0),b--),T(A),A.type==null&&(dW(e,C)===Sn.Must||A.isExtraCoord&&(A.otherDims.itemName!=null||A.otherDims.seriesName!=null))&&(A.type="ordinal")}return Fxe(a),new mj({source:e,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function Fxe(e){for(var t=$e(),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 $xe(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return $(t,function(a){var o;Xe(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function Vxe(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 Hxe=function(){function e(t){this.coordSysDims=[],this.axisMap=$e(),this.categoryAxisMap=$e(),this.coordSysName=t}return e}();function Gxe(e){var t=e.get("coordinateSystem"),r=new Hxe(t),n=Wxe[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var Wxe={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",jr).models[0],a=e.getReferringComponents("yAxis",jr).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),Gf(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),Gf(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",jr).models[0];t.coordSysDims=["single"],r.set("single",i),Gf(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",jr).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),Gf(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),Gf(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();$(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),Gf(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function Gf(e){return e.get("type")==="category"}function jxe(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;Uxe(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,f,d;if($(a,function(b,S){De(b)&&(a[S]=b={name:b}),l&&!b.isExtraCoord&&(!n&&!u&&b.ordinalMeta&&(u=b),!c&&b.type!=="ordinal"&&b.type!=="time"&&(!i||i===b.coordDim)&&(c=b))}),c&&!n&&!u&&(n=!0),c){f="__\0ecstackresult_"+e.id,d="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var p=c.coordDim,v=c.type,g=0;$(a,function(b){b.coordDim===p&&g++});var y={name:f,coordDim:p,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 Uxe(e){return!yj(e.schema)}function eu(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function _j(e,t){return eu(e,t)?e.getCalculationInfo("stackResultDimension"):t}function Yxe(e,t){var r=e.get("coordinateSystem"),n=Wg.get(r),i;return t&&t.coordSysDims&&(i=ve(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=j1(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function qxe(e,t,r){var n,i;return r&&$(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 Ys(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=fk(e)):(i=n.getSource(),a=i.sourceFormat===Da);var o=Gxe(t),s=Yxe(t,o),l=r.useEncodeDefaulter,u=je(l)?l:l?at(fW,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=Ug(i,c),d=qxe(f.dimensions,r.createInvertedIndices,o),p=a?null:n.getSharedDataStore(f),v=jxe(t,{schema:f,store:p}),g=new ei(f,t);g.setCalculationInfo(v);var y=d!=null&&Xxe(i)?function(x,b,S,w){return w===d?S:this.defaultDimValueGetter(x,b,S,w)}:null;return g.hasItemOption=!1,g.initData(a?i:p,null,y),g}function Xxe(e){if(e.sourceFormat===Da){var t=Zxe(e.data||[]);return!he(Kd(t))}}function Zxe(e){for(var t=0;t<e.length&&e[t]==null;)t++;return e[t]}var is=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}();sb(is);var Kxe=0,mA=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Kxe}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&ve(n,Qxe);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(!De(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=$e(this.categories))},e}();function Qxe(e){return Xe(e)&&e.value!=null?e.value:e+""}function yA(e){return e.type==="interval"||e.type==="log"}function Jxe(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=ZH(a/t);r!=null&&o<r&&(o=i.interval=r),n!=null&&o>n&&(o=i.interval=n);var s=i.intervalPrecision=wj(o),l=i.niceTickExtent=[Or(Math.ceil(e[0]/o)*o,s),Or(Math.floor(e[1]/o)*o,s)];return ebe(l,e),i}function xC(e){var t=Math.pow(10,BI(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,Or(r*t)}function wj(e){return Eo(e)+2}function z5(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function ebe(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),z5(e,0,t),z5(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function Ib(e,t){return e>=t[0]&&e<=t[1]}function kb(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function Pb(e,t){return e*(t[1]-t[0])+t[0]}var Db=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 mA({})),he(i)&&(i=new mA({categories:ve(i,function(a){return Xe(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:De(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),Ib(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),kb(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(Pb(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}(is);is.registerClass(Db);var Hu=Or,$s=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 Ib(r,this._extent)},t.prototype.normalize=function(r){return kb(r,this._extent)},t.prototype.scale=function(r){return Pb(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=wj(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:Hu(a[0]-n,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=Hu(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:Hu(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 p=Hu(l.value+(u+1)*d);p>a[0]&&p<a[1]&&c.push(p),u++}i.push(c)}return i},t.prototype.getLabel=function(r,n){if(r==null)return"";var i=n&&n.precision;i==null?i=Eo(r.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=Hu(r.value,i,!0);return rW(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=Jxe(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]=Hu(Math.floor(n[0]/o)*o)),r.fixMax||(n[1]=Hu(Math.ceil(n[1]/o)*o))},t.prototype.setNiceExtent=function(r,n){this._niceExtent=[r,n]},t.type="interval",t}(is);is.registerClass($s);var Cj=typeof Float32Array<"u",tbe=Cj?Float32Array:Array;function No(e){return he(e)?Cj?new Float32Array(e):e:new tbe(e)}var xA="__ec_stack_";function Tj(e){return e.get("stack")||xA+e.seriesIndex}function _k(e){return e.dim+e.index}function rbe(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(Ye({bandWidth:i,axisKey:n,stackId:xA+a},e));for(var o=Ij(t),s=[],a=0;a<e.count;a++){var l=o[n][xA+a];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function Aj(e,t){var r=[];return t.eachSeriesByType(e,function(n){Dj(n)&&r.push(n)}),r}function nbe(e){var t={};$(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,p=f.getDimensionIndex(f.mapDimension(c.dim)),v=f.getStore(),g=0,y=v.count();g<y;++g){var x=v.get(p,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=nbe(e),r=[];return $(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 p=n.getData();s=Math.abs(o[1]-o[0])/p.count()}var v=Ce(n.get("barWidth"),s),g=Ce(n.get("barMaxWidth"),s),y=Ce(n.get("barMinWidth")||(Rj(n)?.5:1),s),x=n.get("barGap"),b=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:v,barMaxWidth:g,barMinWidth:y,barGap:x,barCategoryGap:b,axisKey:_k(a),stackId:Tj(n)})}),Ij(r)}function Ij(e){var t={};$(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 p=n.barGap;p!=null&&(s.gap=p);var v=n.barCategoryGap;v!=null&&(s.categoryGap=v)});var r={};return $(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=Dt(a).length;s=Math.max(35-l*4,15)+"%"}var u=Ce(s,o),c=Ce(n.gap,1),f=n.remainedWidth,d=n.autoWidthCount,p=(f-u)/(d+(d-1)*c);p=Math.max(p,0),$(a,function(x){var b=x.maxWidth,S=x.minWidth;if(x.width){var w=x.width;b&&(w=Math.min(w,b)),S&&(w=Math.max(w,S)),x.width=w,f-=w+c*w,d--}else{var w=p;b&&b<w&&(w=Math.min(b,f)),S&&S>w&&(w=S),w!==p&&(x.width=w,f-=w+c*w,d--)}}),p=(f-u)/(d+(d-1)*c),p=Math.max(p,0);var v=0,g;$(a,function(x,b){x.width||(x.width=p),g=x,v+=x.width*(1+c)}),g&&(v-=g.width*c);var y=-v/2;$(a,function(x,b){r[i][b]=r[i][b]||{bandWidth:o,offset:y,width:x.width},y+=x.width*(1+c)})}),r}function ibe(e,t,r){if(e&&t){var n=e[_k(t)];return n}}function kj(e,t){var r=Aj(e,t),n=Mj(r);$(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=Tj(i),u=n[_k(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function Pj(e){return{seriesType:e,plan:op(),reset:function(t){if(Dj(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=eu(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),p=abe(i,a),v=Rj(t),g=t.get("barMinHeight")||0,y=c&&r.getDimensionIndex(c),x=r.getLayout("size"),b=r.getLayout("offset");return{progress:function(S,w){for(var T=S.count,C=v&&No(T*3),A=v&&l&&No(T*3),I=v&&No(T),k=n.master.getRect(),P=d?k.width:k.height,R,O=w.getStore(),E=0;(R=S.next())!=null;){var z=O.get(f?y:o,R),B=O.get(s,R),W=p,X=void 0;f&&(X=+z-O.get(o,R));var H=void 0,q=void 0,F=void 0,Y=void 0;if(d){var Z=n.dataToPoint([z,B]);if(f){var j=n.dataToPoint([X,B]);W=j[0]}H=W,q=Z[1]+b,F=Z[0]-W,Y=x,Math.abs(F)<g&&(F=(F<0?-1:1)*g)}else{var Z=n.dataToPoint([B,z]);if(f){var j=n.dataToPoint([B,X]);W=j[1]}H=Z[0]+b,q=W,F=x,Y=Z[1]-W,Math.abs(Y)<g&&(Y=(Y<=0?-1:1)*g)}v?(C[E]=H,C[E+1]=q,C[E+2]=d?F:Y,A&&(A[E]=d?k.x:H,A[E+1]=d?q:k.y,A[E+2]=P),I[R]=R):w.setItemLayout(R,{x:H,y:q,width:F,height:Y}),E+=3}v&&w.setLayout({largePoints:C,largeDataIndices:I,largeBackgroundPoints:A,valueAxisHorizontal:d})}}}}}}function Dj(e){return e.coordinateSystem&&e.coordinateSystem.type==="cartesian2d"}function Rj(e){return e.pipelineContext&&e.pipelineContext.large}function abe(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 obe=function(e,t,r,n){for(;r<n;){var i=r+n>>>1;e[i][1]<t?r=i+1:n=i}return r},wk=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 yb(r.value,Iz[Fye(Sd(this._minLevelUnit))]||Iz.second,n,this.getSetting("locale"))},t.prototype.getFormattedLabel=function(r,n,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return $ye(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=pbe(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]-=ba,n[1]+=ba),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]-ba}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=n0.length,l=Math.min(obe(n0,this._approxInterval,0,s),s-1);this._interval=n0[l][1],this._minLevelUnit=n0[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return Bt(r)?r:+Qo(r)},t.prototype.contain=function(r){return Ib(this.parse(r),this._extent)},t.prototype.normalize=function(r){return kb(this.parse(r),this._extent)},t.prototype.scale=function(r){return Pb(r,this._extent)},t.type="time",t}($s),n0=[["second",rk],["minute",nk],["hour",wv],["quarter-day",wv*6],["half-day",wv*12],["day",ba*1.2],["half-week",ba*3.5],["week",ba*7],["month",ba*31],["quarter",ba*95],["half-year",Mz/2],["year",Mz]];function sbe(e,t,r,n){var i=Qo(t),a=Qo(r),o=function(v){return kz(i,v,n)===kz(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")},p=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 p()}}function lbe(e,t){return e/=ba,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function ube(e){var t=30*ba;return e/=t,e>6?6:e>3?3:e>2?2:1}function cbe(e){return e/=wv,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function B5(e,t){return e/=t?nk:rk,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function fbe(e){return ZH(e)}function dbe(e,t,r){var n=new Date(e);switch(Sd(t)){case"year":case"month":n[ZG(r)](0);case"day":n[KG(r)](1);case"hour":n[QG(r)](0);case"minute":n[JG(r)](0);case"second":n[eW(r)](0),n[tW(r)](0)}return n.getTime()}function pbe(e,t,r,n){var i=1e4,a=qG,o=0;function s(P,R,O,E,z,B,W){for(var X=new Date(R),H=R,q=X[E]();H<O&&H<=n[1];)W.push({value:H}),q+=P,X[z](q),H=X.getTime();W.push({value:H,notAdd:!0})}function l(P,R,O){var E=[],z=!R.length;if(!sbe(Sd(P),n[0],n[1],r)){z&&(R=[{value:dbe(new Date(n[0]),P,r)},{value:n[1]}]);for(var B=0;B<R.length-1;B++){var W=R[B].value,X=R[B+1].value;if(W!==X){var H=void 0,q=void 0,F=void 0,Y=!1;switch(P){case"year":H=Math.max(1,Math.round(t/ba/365)),q=ik(r),F=Vye(r);break;case"half-year":case"quarter":case"month":H=ube(t),q=_d(r),F=ZG(r);break;case"week":case"half-week":case"day":H=lbe(t),q=xb(r),F=KG(r),Y=!0;break;case"half-day":case"quarter-day":case"hour":H=cbe(t),q=tg(r),F=QG(r);break;case"minute":H=B5(t,!0),q=bb(r),F=JG(r);break;case"second":H=B5(t,!1),q=Sb(r),F=eW(r);break;case"millisecond":H=fbe(t),q=_b(r),F=tW(r);break}s(H,W,X,q,F,Y,E),P==="year"&&O.length>1&&B===0&&O.unshift({value:O[0].value-H})}}for(var B=0;B<E.length;B++)O.push(E[B]);return E}}for(var u=[],c=[],f=0,d=0,p=0;p<a.length&&o++<i;++p){var v=Sd(a[p]);if(Bye(a[p])){l(a[p],u[u.length-1]||[],c);var g=a[p+1]?Sd(a[p+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 b=c[x].value;(x===0||c[x-1].value!==b)&&(y.push(c[x]),b>=n[0]&&b<=n[1]&&f++)}var S=(n[1]-n[0])/t;if(f>S*1.5&&d>S/1.5||(u.push(y),f>S||e===a[p]))break}c=[]}}}for(var w=tr(ve(u,function(P){return tr(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,p=0;p<w.length;++p)for(var A=w[p],I=0;I<A.length;++I)T.push({value:A[I].value,level:C-p});T.sort(function(P,R){return P.value-R.value});for(var k=[],p=0;p<T.length;++p)(p===0||T[p].value!==T[p-1].value)&&k.push(T[p]);return k}is.registerClass(wk);var F5=is.prototype,Av=$s.prototype,hbe=Or,vbe=Math.floor,gbe=Math.ceil,i0=Math.pow,Va=Math.log,Ck=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 $s,r._interval=0,r}return t.prototype.getTicks=function(r){var n=this._originalScale,i=this._extent,a=n.getExtent(),o=Av.getTicks.call(this,r);return ve(o,function(s){var l=s.value,u=Or(i0(this.base,l));return u=l===i[0]&&this._fixMin?a0(u,a[0]):u,u=l===i[1]&&this._fixMax?a0(u,a[1]):u,{value:u}},this)},t.prototype.setExtent=function(r,n){var i=Va(this.base);r=Va(Math.max(0,r))/i,n=Va(Math.max(0,n))/i,Av.setExtent.call(this,r,n)},t.prototype.getExtent=function(){var r=this.base,n=F5.getExtent.call(this);n[0]=i0(r,n[0]),n[1]=i0(r,n[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(n[0]=a0(n[0],a[0])),this._fixMax&&(n[1]=a0(n[1],a[1])),n},t.prototype.unionExtent=function(r){this._originalScale.unionExtent(r);var n=this.base;r[0]=Va(r[0])/Va(n),r[1]=Va(r[1])/Va(n),F5.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=yge(i),o=r/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Or(gbe(n[0]/a)*a),Or(vbe(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){Av.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=Va(r)/Va(this.base),Ib(r,this._extent)},t.prototype.normalize=function(r){return r=Va(r)/Va(this.base),kb(r,this._extent)},t.prototype.scale=function(r){return r=Pb(r,this._extent),i0(this.base,r)},t.type="log",t}(is),Lj=Ck.prototype;Lj.getMinorTicks=Av.getMinorTicks;Lj.getLabel=Av.getLabel;function a0(e,t){return hbe(e,Eo(t))}is.registerClass(Ck);var mbe=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;je(o)?this._modelMinNum=o0(t,o({min:n[0],max:n[1]})):o!=="dataMin"&&(this._modelMinNum=o0(t,o));var s=this._modelMaxRaw=r.get("max",!0);if(je(s)?this._modelMaxNum=o0(t,s({min:n[0],max:n[1]})):s!=="dataMax"&&(this._modelMaxNum=o0(t,s)),i)this._axisDataLen=r.getCategories().length;else{var l=r.get("boundaryGap"),u=he(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?this._boundaryGapInner=[0,0]:this._boundaryGapInner=[ro(u[0],1),ro(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=Uv(s)||Uv(l)||t&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,p=this._determinedMax;return d!=null&&(s=d,u=!0),p!=null&&(l=p,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},e.prototype.modifyDataMinMax=function(t,r){this[xbe[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=ybe[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),ybe={min:"_determinedMin",max:"_determinedMax"},xbe={min:"_dataMin",max:"_dataMax"};function Ej(e,t,r){var n=e.rawExtentInfo;return n||(n=new mbe(e,t,r),e.rawExtentInfo=n,n)}function o0(e,t){return t==null?null:Uv(t)?NaN:e.parse(t)}function Oj(e,t){var r=e.type,n=Ej(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=Aj("bar",o),l=!1;if($(s,function(f){l=l||f.getBaseAxis()===t.axis}),l){var u=Mj(s),c=bbe(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function bbe(e,t,r,n){var i=r.axis.getExtent(),a=i[1]-i[0],o=ibe(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;$(o,function(p){s=Math.min(p.offset,s)});var l=-1/0;$(o,function(p){l=Math.max(p.offset+p.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=Oj(e,r),i=n.extent,a=r.get("splitNumber");e instanceof Ck&&(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 Rb(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Db({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new wk({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(is.getClass(t)||$s)}}function Sbe(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function up(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):De(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):je(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(Tk(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function Tk(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function _be(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof Db?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=up(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),p=o.getTextRect(d),v=wbe(p,o.get("rotate")||0);l?l.union(v):l=v}return l}}function wbe(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 vt(e.x,e.y,a,o);return s}function Ak(e){var t=e.get("interval");return t??"auto"}function Nj(e){return e.type==="category"&&Ak(e.getLabelModel())===0}function U1(e,t){var r={};return $(e.mapDimensionsAll(t),function(n){r[_j(e,n)]=!0}),Dt(r)}function Cbe(e,t,r){t&&$(U1(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 Yg=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),Tbe=1e-8;function $5(e,t){return Math.abs(e-t)<Tbe}function ac(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+=Ss(i[0],i[1],o[0],o[1],t,r),i=o}var s=e[0];return(!$5(i[0],s[0])||!$5(i[1],s[1]))&&(n+=Ss(i[0],i[1],s[0],s[1],t,r)),n!==0}var Abe=[];function bC(e,t){for(var r=0;r<e.length;r++)Tn(e[r],e[r],t)}function V5(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])&&(Ll(t,t,a),El(r,r,a))}}function Mbe(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 zj=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}(),H5=function(){function e(t,r){this.type="polygon",this.exterior=t,this.interiors=r}return e}(),G5=function(){function e(t){this.type="linestring",this.points=t}return e}(),Bj=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 Mbe(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 $(o,function(s){s.type==="polygon"?V5(s.exterior,i,a,r):$(s.points,function(l){V5(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 vt(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(ac(l,r[0],r[1])){for(var c=0;c<(u?u.length:0);c++)if(ac(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 vt(r,n,i,a),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var d=c[f];d.type==="polygon"?(bC(d.exterior,u),$(d.interiors,function(p){bC(p,u)})):$(d.points,function(p){bC(p,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}(zj),Ibe=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=nb(Abe),o=r;o&&!o.isGeoSVGGraphicRoot;)Ms(a,o.getLocalTransform(),a),o=o.parent;return Zd(a,a),Tn(i,i,a),i},t}(zj);function kbe(e){if(!e.UTF8Encoding)return e;var t=e,r=t.UTF8Scale;r==null&&(r=1024);var n=t.features;return $(n,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=Fj(s,o,r);break;case"Polygon":SC(s,o,r);break;case"MultiLineString":SC(s,o,r);break;case"MultiPolygon":$(s,function(l,u){return SC(l,o[u],r)})}}),t.UTF8Encoding=!1,t}function SC(e,t,r){for(var n=0;n<e.length;n++)e[n]=Fj(e[n],t[n],r)}function Fj(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 Pbe(e,t){return e=kbe(e),ve(tr(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 H5(o[0],o.slice(1)));break;case"MultiPolygon":$(i.coordinates,function(l){l[0]&&a.push(new H5(l[0],l.slice(1)))});break;case"LineString":a.push(new G5([i.coordinates]));break;case"MultiLineString":a.push(new G5(i.coordinates))}var s=new Bj(n[t||"name"],a,n.cp);return s.properties=n,s})}var sg=Ot();function $j(e,t){var r=ve(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 Dbe(e){var t=e.getLabelModel().get("customValues");if(t){var r=up(e);return{labels:$j(e,t).map(function(n){var i={value:n};return{formattedLabel:r(i),rawLabel:e.scale.getLabel(i),tickValue:n}})}}return e.type==="category"?Lbe(e):Obe(e)}function Rbe(e,t){var r=e.getTickModel().get("customValues");return r?{ticks:$j(e,r)}:e.type==="category"?Ebe(e,t):{ticks:ve(e.scale.getTicks(),function(n){return n.value})}}function Lbe(e){var t=e.getLabelModel(),r=Vj(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function Vj(e,t){var r=Hj(e,"labels"),n=Ak(t),i=Gj(r,n);if(i)return i;var a,o;return je(n)?a=Uj(e,n):(o=n==="auto"?Nbe(e):n,a=jj(e,o)),Wj(r,n,{labels:a,labelCategoryInterval:o})}function Ebe(e,t){var r=Hj(e,"ticks"),n=Ak(t),i=Gj(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),je(n))a=Uj(e,n,!0);else if(n==="auto"){var s=Vj(e,e.getLabelModel());o=s.labelCategoryInterval,a=ve(s.labels,function(l){return l.tickValue})}else o=n,a=jj(e,o,!0);return Wj(r,n,{ticks:a,tickCategoryInterval:o})}function Obe(e){var t=e.scale.getTicks(),r=up(e);return{labels:ve(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function Hj(e,t){return sg(e)[t]||(sg(e)[t]=[])}function Gj(e,t){for(var r=0;r<e.length;r++)if(e[r].key===t)return e[r].value}function Wj(e,t,r){return e.push({key:t,value:r}),r}function Nbe(e){var t=sg(e).autoInterval;return t??(sg(e).autoInterval=e.calculateCategoryInterval())}function zbe(e){var t=Bbe(e),r=up(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,p=0;l<=a[1];l+=s){var v=0,g=0,y=Ng(r({value:l}),t.font,"center","top");v=y.width*1.3,g=y.height*1.3,d=Math.max(d,v,7),p=Math.max(p,g,7)}var x=d/c,b=p/f;isNaN(x)&&(x=1/0),isNaN(b)&&(b=1/0);var S=Math.max(0,Math.floor(Math.min(x,b))),w=sg(e.model),T=e.getExtent(),C=w.lastAutoInterval,A=w.lastTickCount;return C!=null&&A!=null&&Math.abs(C-S)<=1&&Math.abs(A-o)<=1&&C>S&&w.axisExtent0===T[0]&&w.axisExtent1===T[1]?S=C:(w.lastTickCount=o,w.lastAutoInterval=S,w.axisExtent0=T[0],w.axisExtent1=T[1]),S}function Bbe(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 jj(e,t,r){var n=up(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=Nj(e),d=o.get("showMinLabel")||f,p=o.get("showMaxLabel")||f;d&&u!==a[0]&&g(a[0]);for(var v=u;v<=a[1];v+=l)g(v);p&&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 Uj(e,t,r){var n=e.scale,i=up(e),a=[];return $(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 W5=[0,1],so=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 qH(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(),j5(n,i.count())),Qt(t,W5,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),j5(n,i.count()));var a=Qt(t,n,W5,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=Rbe(this,r),i=n.ticks,a=ve(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return Fbe(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=ve(n,function(a){return ve(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return Dbe(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 zbe(this)},e}();function j5(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function Fbe(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;$(t,function(p){p.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(p,v){return p=Or(p),v=Or(v),f?p>v:p<v}}var Ah=Math.PI*2,Gu=Jo.CMD,$be=["top","right","bottom","left"];function Vbe(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 Hbe(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)%Ah<1e-4)return l[0]=c,l[1]=f,u-r;if(a){var d=n;n=Hi(i),i=Hi(d)}else n=Hi(n),i=Hi(i);n>i&&(i+=Ah);var p=Math.atan2(s,o);if(p<0&&(p+=Ah),p>=n&&p<=i||p+Ah>=n&&p+Ah<=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,b=(v-o)*(v-o)+(g-s)*(g-s),S=(y-o)*(y-o)+(x-s)*(x-s);return b<S?(l[0]=v,l[1]=g,Math.sqrt(b)):(l[0]=y,l[1]=x,Math.sqrt(S))}function Y1(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 p=l*c+u*f,v=p/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 Yj(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 ja=[];function Gbe(e,t,r){var n=Yj(t.x,t.y,t.width,t.height,e.x,e.y,ja);return r.set(ja[0],ja[1]),n}function Wbe(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,p=0;p<c.length;){var v=c[p++];p===1&&(n=c[p],i=c[p+1],a=n,o=i);var g=u;switch(v){case Gu.M:a=c[p++],o=c[p++],n=a,i=o;break;case Gu.L:g=Y1(n,i,c[p],c[p+1],f,d,ja,!0),n=c[p++],i=c[p++];break;case Gu.C:g=PH(n,i,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],f,d,ja),n=c[p++],i=c[p++];break;case Gu.Q:g=RH(n,i,c[p++],c[p++],c[p],c[p+1],f,d,ja),n=c[p++],i=c[p++];break;case Gu.A:var y=c[p++],x=c[p++],b=c[p++],S=c[p++],w=c[p++],T=c[p++];p+=1;var C=!!(1-c[p++]);s=Math.cos(w)*b+y,l=Math.sin(w)*S+x,p<=1&&(a=s,o=l);var A=(f-y)*S/b+y;g=Hbe(y,x,S,w,w+T,C,A,d,ja),n=Math.cos(w+T)*b+y,i=Math.sin(w+T)*S+x;break;case Gu.R:a=n=c[p++],o=i=c[p++];var I=c[p++],k=c[p++];g=Yj(a,o,I,k,f,d,ja);break;case Gu.Z:g=Y1(n,i,a,o,f,d,ja,!0),n=a,i=o;break}g<u&&(u=g,r.set(ja[0],ja[1]))}return u}var qa=new dt,hr=new dt,$r=new dt,zo=new dt,Lo=new dt;function U5(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||$be,s=n.getBoundingRect().clone();s.applyTransform(n.getComputedTransform());var l=1/0,u=i.anchor,c=e.getComputedTransform(),f=c&&Zd([],c),d=t.get("length2")||0;u&&$r.copy(u);for(var p=0;p<o.length;p++){var v=o[p];Vbe(v,0,s,qa,zo),dt.scaleAndAdd(hr,qa,zo,d),hr.transform(f);var g=e.getBoundingRect(),y=u?u.distance(hr):e instanceof wt?Wbe(hr,e.path,$r):Gbe(hr,g,$r);y<l&&(l=y,hr.transform(c),$r.transform(c),$r.toArray(a[0]),hr.toArray(a[1]),qa.toArray(a[2]))}qj(a,t.get("minTurnAngle")),r.setShape({points:a})}}}var q1=[],Kn=new dt;function qj(e,t){if(t<=180&&t>0){t=t/180*Math.PI,qa.fromArray(e[0]),hr.fromArray(e[1]),$r.fromArray(e[2]),dt.sub(zo,qa,hr),dt.sub(Lo,$r,hr);var r=zo.len(),n=Lo.len();if(!(r<.001||n<.001)){zo.scale(1/r),Lo.scale(1/n);var i=zo.dot(Lo),a=Math.cos(t);if(a<i){var o=Y1(hr.x,hr.y,$r.x,$r.y,qa.x,qa.y,q1,!1);Kn.fromArray(q1),Kn.scaleAndAdd(Lo,o/Math.tan(Math.PI-t));var s=$r.x!==hr.x?(Kn.x-hr.x)/($r.x-hr.x):(Kn.y-hr.y)/($r.y-hr.y);if(isNaN(s))return;s<0?dt.copy(Kn,hr):s>1&&dt.copy(Kn,$r),Kn.toArray(e[1])}}}}function jbe(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,qa.fromArray(e[0]),hr.fromArray(e[1]),$r.fromArray(e[2]),dt.sub(zo,hr,qa),dt.sub(Lo,$r,hr);var n=zo.len(),i=Lo.len();if(!(n<.001||i<.001)){zo.scale(1/n),Lo.scale(1/i);var a=zo.dot(t),o=Math.cos(r);if(a<o){var s=Y1(hr.x,hr.y,$r.x,$r.y,qa.x,qa.y,q1,!1);Kn.fromArray(q1);var l=Math.PI/2,u=Math.acos(Lo.dot(t)),c=l+u-r;if(c>=l)dt.copy(Kn,$r);else{Kn.scaleAndAdd(Lo,s/Math.tan(Math.PI/2-c));var f=$r.x!==hr.x?(Kn.x-hr.x)/($r.x-hr.x):(Kn.y-hr.y)/($r.y-hr.y);if(isNaN(f))return;f<0?dt.copy(Kn,hr):f>1&&dt.copy(Kn,$r)}Kn.toArray(e[1])}}}}function _C(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 Ube(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=Rl(n[0],n[1]),a=Rl(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=B0([],n[1],n[0],o/i),l=B0([],n[1],n[2],o/a),u=B0([],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 Mk(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<Qv.length;l++){var u=Qv[l],c=t[u],f=u==="normal";if(c){var d=c.get("show"),p=f?s:it(i.states[u]&&i.states[u].ignore,s);if(p||!it(d,o)){var v=f?n:n&&n.states[u];v&&(v.ignore=!0),n&&_C(n,!0,u,c);continue}n||(n=new li,e.setTextGuideLine(n),!f&&(s||!o)&&_C(n,!0,"normal",t.normal),e.stateProxy&&(n.stateProxy=e.stateProxy)),_C(n,!1,u,c)}}if(n){Ye(n.style,r),n.style.fill=null;var g=a.get("showAbove"),y=e.textGuideLineConfig=e.textGuideLineConfig||{};y.showAbove=g||!1,n.buildPath=Ube}}function Ik(e,t){t=t||"labelLine";for(var r={normal:e.getModel(t)},n=0;n<ni.length;n++){var i=ni[n];r[i]=e.getModel([i,t])}return r}function Xj(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 D1(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 Zj(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 p=e[0],v=e[o-1],g,y;x(),g<0&&w(-g,.8),y<0&&w(y,.8),x(),b(g,y,1),b(y,g,-1),x(),g<0&&T(-g),y<0&&T(y);function x(){g=p.rect[t]-n,y=i-v.rect[t]-v.rect[r]}function b(C,A,I){if(C<0){var k=Math.min(A,-C);if(k>0){S(k*I,0,o);var P=k+C;P<0&&w(-P*I,1)}else w(-C*I,1)}}function S(C,A,I){C!==0&&(u=!0);for(var k=A;k<I;k++){var P=e[k],R=P.rect;R[t]+=C,P.label[t]+=C}}function w(C,A){for(var I=[],k=0,P=1;P<o;P++){var R=e[P-1].rect,O=Math.max(e[P].rect[t]-R[t]-R[r],0);I.push(O),k+=O}if(k){var E=Math.min(Math.abs(C)/k,A);if(C>0)for(var P=0;P<o-1;P++){var z=I[P]*E;S(z,0,P+1)}else for(var P=o-1;P>0;P--){var z=I[P-1]*E;S(-z,P,o)}}}function T(C){var A=C<0?-1:1;C=Math.abs(C);for(var I=Math.ceil(C/(o-1)),k=0;k<o-1;k++)if(A>0?S(I,0,k+1):S(-I,o-k-1,o),C-=I,C<=0)return}return u}function Ybe(e,t,r,n){return Zj(e,"x","width",t,r)}function Kj(e,t,r,n){return Zj(e,"y","height",t,r)}function Qj(e){var t=[];e.sort(function(g,y){return y.priority-g.priority});var r=new vt(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,p=0;p<t.length;p++){var v=t[p];if(r.intersect(v.rect)){if(o&&v.axisAligned){d=!0;break}if(v.obb||(v.obb=new D1(v.localRect,v.transform)),f||(f=new D1(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 qbe(e){if(e){for(var t=[],r=0;r<e.length;r++)t.push(e[r].slice());return t}}function Xbe(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:qbe(n&&n.shape.points)}}var Y5=["align","verticalAlign","width","height","fontSize"],Un=new ws,wC=Ot(),Zbe=Ot();function s0(e,t,r){for(var n=0;n<r.length;n++){var i=r[n];t[i]!=null&&(e[i]=t[i])}}var l0=["x","y","rotation"],Kbe=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();vt.applyTransform(c,c,u),u?Un.setLocalTransform(u):(Un.x=Un.y=Un.rotation=Un.originX=Un.originY=0,Un.scaleX=Un.scaleY=1),Un.rotation=Hi(Un.rotation);var f=i.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var p=f.getComputedTransform();vt.applyTransform(d,d,p)}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:Un.x,y:Un.y,scaleX:Un.scaleX,scaleY:Un.scaleY,rotation:Un.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");(je(i)||Dt(i).length)&&t.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=tt(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(S,w){return function(){U5(S,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;je(o.layoutOption)?c=o.layoutOption(Xbe(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=Ce(c.x,r),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=Ce(c.y,n),s.setStyle("y",0),d=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var p=l.getTextGuideLine();p&&(p.setShape({points:c.labelLinePoints}),d=!1)}var v=wC(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<Y5.length;g++){var y=Y5[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 b=o.seriesModel.getData(o.dataType);x=b.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=Xj(this._labelList),a=tr(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=tr(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});Ybe(a,0,r),Kj(o,0,n);var s=tr(i,function(l){return l.layoutOption.hideOverlap});Qj(s)},e.prototype.processLabelsOverall=function(){var t=this;$(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=wC(l).needsUpdateLabelLine),s&&t._updateLabelLine(o,n),a&&t._animateLabels(o,n)})})},e.prototype._updateLabelLine=function(t,r){var n=t.getTextContent(),i=tt(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");Mk(t,Ik(s),l),U5(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&&!xd(t))){var a=wC(n),o=a.oldLayout,s=tt(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&&(bt(d,"select")>=0&&n.attr(a.oldLayoutSelect),bt(d,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),Ht(n,u,r,l)}else if(n.attr(u),!tp(n).valueAnimation){var f=it(n.style.opacity,1);n.style.opacity=0,mr(n,{style:{opacity:f}},r,l)}if(a.oldLayout=u,n.states.select){var p=a.oldLayoutSelect={};s0(p,u,l0),s0(p,n.states.select,l0)}if(n.states.emphasis){var v=a.oldLayoutEmphasis={};s0(v,u,l0),s0(v,n.states.emphasis,l0)}GG(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=Zbe(i),o=a.oldLayout,g={points:i.shape.points};o?(i.attr({shape:o}),Ht(i,{shape:g},r)):(i.setShape(g),i.style.strokePercent=0,mr(i,{style:{strokePercent:1}},r)),a.oldLayout=g}},e}(),CC=Ot();function Qbe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=CC(r).labelManager;i||(i=CC(r).labelManager=new Kbe),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=CC(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}var TC=Math.sin,AC=Math.cos,Jj=Math.PI,Wu=Math.PI*2,Jbe=180/Jj,e8=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=zl(f-Wu)||(c?u>=Wu:-u>=Wu),p=u>0?u%Wu:u%Wu+Wu,v=!1;d?v=!0:zl(f)?v=!1:v=p>=Jj==!!c;var g=t+n*AC(o),y=r+i*TC(o);this._start&&this._add("M",g,y);var x=Math.round(a*Jbe);if(d){var b=1/this._p,S=(c?1:-1)*(Wu-b);this._add("A",n,i,x,1,+c,t+n*AC(o+S),r+i*TC(o+S)),b>.01&&this._add("A",n,i,x,0,+c,g,y)}else{var w=t+n*AC(s),T=r+i*TC(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 p=arguments[d];if(isNaN(p)){this._invalid=!0;return}c.push(Math.round(p*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}(),kk="none",eSe=Math.round;function tSe(e){var t=e.fill;return t!=null&&t!==kk}function rSe(e){var t=e.stroke;return t!=null&&t!==kk}var bA=["lineCap","miterLimit","lineJoin"],nSe=ve(bA,function(e){return"stroke-"+e.toLowerCase()});function iSe(e,t,r,n){var i=t.opacity==null?1:t.opacity;if(r instanceof mn){e("opacity",i);return}if(tSe(t)){var a=Xv(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",kk);if(rSe(t)){var s=Xv(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=gk(r),p=d[0],v=d[1];p&&(v=eSe(v||0),e("stroke-dasharray",p.join(",")),(v||n)&&e("stroke-dashoffset",v))}for(var g=0;g<bA.length;g++){var y=bA[g];if(t[y]!==k1[y]){var x=t[y]||k1[y];x&&e(nSe[g],x)}}}}var t8="http://www.w3.org/2000/svg",r8="http://www.w3.org/1999/xlink",aSe="http://www.w3.org/2000/xmlns/",oSe="http://www.w3.org/XML/1998/namespace",q5="ecmeta_";function n8(e){return document.createElementNS(t8,e)}function sn(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 lSe(e){return"</"+e+">"}function Pk(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"?bi(l):l||"")+(a?""+r+ve(a,function(u){return n(u)}).join(r)+r:"")+lSe(o)}return n(e)}function uSe(e,t,r){r=r||{};var n=r.newline?`
191
+ `:"",i=" {"+n,a=n+"}",o=ve(Dt(e),function(l){return l+i+ve(Dt(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=ve(Dt(t),function(l){return"@keyframes "+l+i+ve(Dt(t[l]),function(u){return u+i+ve(Dt(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 SA(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function X5(e,t,r,n){return sn("svg","root",{width:e,height:t,xmlns:t8,"xmlns:xlink":r8,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var cSe=0;function i8(){return cSe++}var Z5={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"},Ku="transform-origin";function fSe(e,t,r){var n=oe({},e.shape);oe(n,t),e.buildPath(r,n);var i=new e8;return i.reset(FH(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function dSe(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[Ku]=r+"px "+n+"px")}var pSe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function a8(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function hSe(e,t,r){var n=e.shape.paths,i={},a,o;if($(n,function(l){var u=SA(r.zrId);u.animation=!0,Lb(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=Dt(c),p=d.length;if(p){o=d[p-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 b=f[x].animation;b.indexOf(o)>=0&&(a=b)}}}),!!a){t.d=!1;var s=a8(i,r);return a.replace(o,s)}}function K5(e){return De(e)?Z5[e]?"cubic-bezier("+Z5[e]+")":OI(e)?e:"":""}function Lb(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof ZI){var s=hSe(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=K5(c.getClip().easing),p=c.getDelay();d?f.push(d):f.push("linear"),p&&f.push(p/1e3+"s"),c.getLoop()&&f.push("infinite");var v=f.join(" ");l[v]=l[v]||[v,[]],l[v][1].push(c)}function g(b){var S=b[1],w=S.length,T={},C={},A={},I="animation-timing-function";function k(ne,pe,me){for(var le=ne.getTracks(),Se=ne.getMaxTime(),ze=0;ze<le.length;ze++){var Te=le[ze];if(Te.needsAnimate()){var ye=Te.keyframes,ft=Te.propName;if(me&&(ft=me(ft)),ft)for(var He=0;He<ye.length;He++){var gt=ye[He],xt=Math.round(gt.time/Se*100)+"%",_t=K5(gt.easing),nt=gt.rawValue;(De(nt)||Bt(nt))&&(pe[xt]=pe[xt]||{},pe[xt][ft]=gt.rawValue,_t&&(pe[xt][I]=_t))}}}}for(var P=0;P<w;P++){var R=S[P],O=R.targetName;O?O==="shape"&&k(R,C):!n&&k(R,T)}for(var E in T){var z={};WH(z,e),oe(z,T[E]);var B=$H(z),W=T[E][I];A[E]=B?{transform:B}:{},dSe(A[E],z),W&&(A[E][I]=W)}var X,H=!0;for(var E in C){A[E]=A[E]||{};var q=!X,W=C[E][I];q&&(X=new Jo);var F=X.len();X.reset(),A[E].d=fSe(e,C[E],X);var Y=X.len();if(!q&&F!==Y){H=!1;break}W&&(A[E][I]=W)}if(!H)for(var E in A)delete A[E].d;if(!n)for(var P=0;P<w;P++){var R=S[P],O=R.targetName;O==="style"&&k(R,A,function(le){return pSe[le]})}for(var Z=Dt(A),j=!0,te,P=1;P<Z.length;P++){var fe=Z[P-1],re=Z[P];if(A[fe][Ku]!==A[re][Ku]){j=!1;break}te=A[fe][Ku]}if(j&&te){for(var E in A)A[E][Ku]&&delete A[E][Ku];t[Ku]=te}if(tr(Z,function(ne){return Dt(A[ne]).length>0}).length){var ce=a8(A,r);return ce+" "+b[0]+" both"}}for(var y in l){var s=g(l[y]);s&&o.push(s)}if(o.length){var x=r.zrId+"-cls-"+i8();r.cssNodes["."+x]={animation:o.join(",")},t.class=x}}function vSe(e,t,r){if(!e.ignore)if(e.isSilent()){var n={"pointer-events":"none"};Q5(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=R2(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),Q5(n,t,r)}}function Q5(e,t,r,n){var i=JSON.stringify(e),a=r.cssStyleCache[i];a||(a=r.zrId+"-cls-"+i8(),r.cssStyleCache[i]=a,r.cssNodes["."+a+":hover"]=e),t.class=t.class?t.class+" "+a:a}var lg=Math.round;function o8(e){return e&&De(e.src)}function s8(e){return e&&je(e.toDataURL)}function Dk(e,t,r,n){iSe(function(i,a){var o=i==="fill"||i==="stroke";o&&BH(a)?u8(t,e,i,n):o&&NI(a)?c8(r,e,i,n):o&&a==="none"?e[i]="transparent":e[i]=a},t,r,!1),_Se(r,e,n)}function Rk(e,t){var r=cge(t);r&&(r.each(function(n,i){n!=null&&(e[(q5+i).toLowerCase()]=n+"")}),t.isSilent()&&(e[q5+"silent"]="true"))}function J5(e){return zl(e[0]-1)&&zl(e[1])&&zl(e[2])&&zl(e[3]-1)}function gSe(e){return zl(e[4])&&zl(e[5])}function Lk(e,t,r){if(t&&!(gSe(t)&&J5(t))){var n=1e4;e.transform=J5(t)?"translate("+lg(t[4]*n)/n+" "+lg(t[5]*n)/n+")":Rve(t)}}function eB(e,t,r){for(var n=e.points,i=[],a=0;a<n.length;a++)i.push(lg(n[a][0]*r)/r),i.push(lg(n[a][1]*r)/r);t.points=i.join(" ")}function tB(e){return!e.smooth}function mSe(e){var t=ve(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]]=lg(s*i)/i)}}}var ySe={circle:[mSe(["cx","cy","r"])],polyline:[eB,tB],polygon:[eB,tB]};function xSe(e){for(var t=e.animators,r=0;r<t.length;r++)if(t[r].targetName==="shape")return!0;return!1}function l8(e,t){var r=e.style,n=e.shape,i=ySe[e.type],a={},o=t.animation,s="path",l=e.style.strokePercent,u=t.compress&&FH(e)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](n))&&!(o&&xSe(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 p=d.getVersion(),v=e,g=v.__svgPathBuilder;(v.__svgPathVersion!==p||!g||l!==v.__svgPathStrokePercent)&&(g||(g=v.__svgPathBuilder=new e8),g.reset(u),d.rebuildPath(g,l),g.generateStr(),v.__svgPathVersion=p,v.__svgPathStrokePercent=l),a.d=g.getStr()}return Lk(a,e.transform),Dk(a,r,e,t),Rk(a,e),t.animation&&Lb(e,a,t),t.emphasis&&vSe(e,a,t),sn(s,e.id+"",a)}function bSe(e,t){var r=e.style,n=r.image;if(n&&!De(n)&&(o8(n)?n=n.src:s8(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),Lk(l,e.transform),Dk(l,r,e,t),Rk(l,e),t.animation&&Lb(e,l,t),sn("image",e.id+"",l)}}function SSe(e,t){var r=e.style,n=r.text;if(n!=null&&(n+=""),!(!n||isNaN(r.x)||isNaN(r.y))){var i=r.font||Xl,a=r.x||0,o=Eve(r.y||0,ab(i),r.textBaseline),s=Lve[r.textAlign]||r.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(gG(r)){var u="",c=r.fontStyle,f=vG(r.fontSize);if(!parseFloat(f))return;var d=r.fontFamily||hH,p=r.fontWeight;u+="font-size:"+f+";font-family:"+d+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),p&&p!=="normal"&&(u+="font-weight:"+p+";"),l.style=u}else l.style="font: "+i;return n.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),Lk(l,e.transform),Dk(l,r,e,t),Rk(l,e),t.animation&&Lb(e,l,t),sn("text",e.id+"",l,void 0,n)}}function rB(e,t){if(e instanceof wt)return l8(e,t);if(e instanceof mn)return bSe(e,t);if(e instanceof Ed)return SSe(e,t)}function _Se(e,t,r){var n=e.style;if(Ove(n)){var i=Nve(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,p=Xv(n.shadowColor),v=p.opacity,g=p.color,y=d/2/l,x=d/2/u,b=y+" "+x;o=r.zrId+"-s"+r.shadowIdx++,r.defs[o]=sn("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[sn("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:b,"flood-color":g,"flood-opacity":v})]),a[i]=o}t.filter=ib(o)}}function u8(e,t,r,n){var i=e[r],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(NH(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(zH(i))a="radialGradient",o.cx=it(i.x,.5),o.cy=it(i.y,.5),o.r=it(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=L2(s[u].offset)*100+"%",d=s[u].color,p=Xv(d),v=p.color,g=p.opacity,y={offset:f};y["stop-color"]=v,g<1&&(y["stop-opacity"]=g),l.push(sn("stop",u+"",y))}var x=sn(a,"",o,l),b=Pk(x),S=n.gradientCache,w=S[b];w||(w=n.zrId+"-g"+n.gradientIdx++,S[b]=w,o.id=w,n.defs[w]=sn(a,w,o,l)),t[r]=ib(w)}function c8(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(OH(i)){var d=i.imageWidth,p=i.imageHeight,v=void 0,g=i.image;if(De(g)?v=g:o8(g)?v=g.src:s8(g)&&(v=g.toDataURL()),typeof Image>"u"){var y="Image width/height must been given explictly in svg-ssr renderer.";ri(d,y),ri(p,y)}else if(d==null||p==null){var x=function(P,R){if(P){var O=P.elm,E=d||R.width,z=p||R.height;P.tag==="pattern"&&(u?(z=1,E/=a.width):c&&(E=1,z/=a.height)),P.attrs.width=E,P.attrs.height=z,O&&(O.setAttribute("width",E),O.setAttribute("height",z))}},b=HI(v,null,e,function(P){l||x(C,P),x(f,P)});b&&b.width&&b.height&&(d=d||b.width,p=p||b.height)}f=sn("image","img",{href:v,width:d,height:p}),o.width=d,o.height=p}else i.svgElement&&(f=Ke(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(f){var S,w;l?S=w=1:u?(w=1,S=o.width/a.width):c?(S=1,w=o.height/a.height):o.patternUnits="userSpaceOnUse",S!=null&&!isNaN(S)&&(o.width=S),w!=null&&!isNaN(w)&&(o.height=w);var T=$H(i);T&&(o.patternTransform=T);var C=sn("pattern","",o,[f]),A=Pk(C),I=n.patternCache,k=I[A];k||(k=n.zrId+"-p"+n.patternIdx++,I[A]=k,o.id=k,C=n.defs[k]=sn("pattern",k,o,[f])),t[r]=ib(k)}}function wSe(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]=sn("clipPath",a,o,[l8(e,r)])}t["clip-path"]=ib(a)}function nB(e){return document.createTextNode(e)}function oc(e,t,r){e.insertBefore(t,r)}function iB(e,t){e.removeChild(t)}function aB(e,t){e.appendChild(t)}function f8(e){return e.parentNode}function d8(e){return e.nextSibling}function MC(e,t){e.textContent=t}var oB=58,CSe=120,TSe=sn("","");function _A(e){return e===void 0}function Mo(e){return e!==void 0}function ASe(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 Zh(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function ug(e){var t,r=e.children,n=e.tag;if(Mo(n)){var i=e.elm=n8(n);if(Ek(TSe,e),he(r))for(t=0;t<r.length;++t){var a=r[t];a!=null&&aB(i,ug(a))}else Mo(e.text)&&!Xe(e.text)&&aB(i,nB(e.text))}else e.elm=nB(e.text);return e.elm}function p8(e,t,r,n,i){for(;n<=i;++n){var a=r[n];a!=null&&oc(e,ug(a),t)}}function X1(e,t,r,n){for(;r<=n;++r){var i=t[r];if(i!=null)if(Mo(i.tag)){var a=f8(i.elm);iB(a,i.elm)}else iB(e,i.elm)}}function Ek(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)!==CSe?n.setAttribute(r,o):r==="xmlns:xlink"||r==="xmlns"?n.setAttributeNS(aSe,r,o):r.charCodeAt(3)===oB?n.setAttributeNS(oSe,r,o):r.charCodeAt(5)===oB?n.setAttributeNS(r8,r,o):n.setAttribute(r,o))}for(r in i)r in a||n.removeAttribute(r)}}function MSe(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,p,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]:Zh(o,u)?(nd(o,u),o=t[++n],u=r[++i]):Zh(s,c)?(nd(s,c),s=t[--a],c=r[--l]):Zh(o,c)?(nd(o,c),oc(e,o.elm,d8(s.elm)),o=t[++n],c=r[--l]):Zh(s,u)?(nd(s,u),oc(e,s.elm,o.elm),s=t[--a],u=r[++i]):(_A(f)&&(f=ASe(t,n,a)),d=f[u.key],_A(d)?oc(e,ug(u),o.elm):(p=t[d],p.tag!==u.tag?oc(e,ug(u),o.elm):(nd(p,u),t[d]=void 0,oc(e,p.elm,o.elm))),u=r[++i]);(n<=a||i<=l)&&(n>a?(v=r[l+1]==null?null:r[l+1].elm,p8(e,v,r,i,l)):X1(e,t,n,a))}function nd(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(Ek(e,t),_A(t.text)?Mo(n)&&Mo(i)?n!==i&&MSe(r,n,i):Mo(i)?(Mo(e.text)&&MC(r,""),p8(r,null,i,0,i.length-1)):Mo(n)?X1(r,n,0,n.length-1):Mo(e.text)&&MC(r,""):e.text!==t.text&&(Mo(n)&&X1(r,n,0,n.length-1),MC(r,t.text)))}function ISe(e,t){if(Zh(e,t))nd(e,t);else{var r=e.elm,n=f8(r);ug(t),n!==null&&(oc(n,t.elm,d8(r)),X1(n,[e],0,0))}return t}var kSe=0,PSe=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=sB(),this.configLayer=sB(),this.storage=r,this._opts=n=oe({},n),this.root=t,this._id="zr"+kSe++,this._oldVNode=X5(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=n8("svg");Ek(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",ISe(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return rB(t,SA(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=SA(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress,a.emphasis=t.emphasis;var o=[],s=this._bgVNode=DSe(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=sn("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=ve(Dt(a.defs),function(d){return a.defs[d]});if(u.length&&o.push(sn("defs","defs",{},u)),t.animation){var c=uSe(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=sn("style","stl",{},[],c);o.push(f)}}return X5(n,i,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},Pk(this.renderToVNode({animation:it(t.cssAnimation,!0),emphasis:it(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:it(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,p=d&&d.length||0,v=l&&l.length||0,g=void 0;for(g=Math.max(p-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<p;x++){var b={};wSe(d[x],b,r);var S=sn("g","clip-g-"+u++,b,[]);(s?s.children:n).push(S),a[o++]=S,s=S}l=d;var w=rB(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=fd(i,0,n),r=fd(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(NI(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=Bve(r),r&&n+"base64,"+r):n+"charset=UTF-8,"+encodeURIComponent(r)},e}();function sB(e){return function(){}}function DSe(e,t,r,n){var i;if(r&&r!=="none")if(i=sn("rect","bg",{width:e,height:t,x:"0",y:"0"}),BH(r))u8({fill:r},i.attrs,"fill",n);else if(NI(r))c8({style:{fill:r},dirty:Vr,getBoundingRect:function(){return{width:e,height:t}}},i.attrs,"fill",n);else{var a=Xv(r),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}function RSe(e){e.registerPainter("svg",PSe)}function lB(e,t,r){var n=Zl.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 IC=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||M1,typeof r=="string"?o=lB(r,n,i):Xe(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(bH(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=lB("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 vt(0,0,0,0);function c(b){if(!(!b.isFinite()||b.isZero()))if(o.length===0){var S=new vt(0,0,0,0);S.copy(b),o.push(S)}else{for(var w=!1,T=1/0,C=0,A=0;A<o.length;++A){var I=o[A];if(I.intersect(b)){var k=new vt(0,0,0,0);k.copy(I),k.union(b),o[A]=k,w=!0;break}else if(l){u.copy(b),u.union(I);var P=b.width*b.height,R=I.width*I.height,O=u.width*u.height,E=O-P-R;E<T&&(T=E,C=A)}}if(l&&(o[C].union(b),w=!0),!w){var S=new vt(0,0,0,0);S.copy(b),o.push(S)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=r[f];if(d){var p=d.shouldBePainted(i,a,!0,!0),v=d.__isRendered&&(d.__dirty&Go||!p)?d.getPrevPaintRect():null;v&&c(v);var g=p&&(d.__dirty&Go||!d.__isRendered)?d.getPaintRect():null;g&&c(g)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=n[f],p=d&&d.shouldBePainted(i,a,!0,!0);if(d&&(!p||!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 p=this.domBack;function v(g,y,x,b){if(o.clearRect(g,y,x,b),n&&n!=="transparent"){var S=void 0;if(tb(n)){var w=n.global||n.__width===x&&n.__height===b;S=w&&n.__canvasGradient||fA(o,n,{x:0,y:0,width:x,height:b}),n.__canvasGradient=S,n.__width=x,n.__height=b}else jhe(n)&&(n.scaleX=n.scaleX||f,n.scaleY=n.scaleY||f,S=dA(o,n,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));o.save(),o.fillStyle=S||n,o.fillRect(g,y,x,b),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(p,g,y,x,b),o.restore())}!i||u?v(0,0,s,l):i.length&&$(i,function(g){v(g.x*f,g.y*f,g.width*f,g.height*f)})},t}(Pa),uB=1e5,ju=314159,u0=.01,LSe=.001;function ESe(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function OSe(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 NSe=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||M1,this._singleCanvas=a,this.root=t;var o=t.style;o&&(bH(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 p=new IC(c,this,this.dpr);p.__builtin__=!0,p.initContext(),l[ju]=p,p.zlevel=ju,s.push(ju),this._domRoot=t}else{this._width=fd(t,0,n),this._height=fd(t,1,n);var u=this._domRoot=OSe(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(uB)),a||(a=n.ctx,a.save()),yc(a,s,i,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(uB)},e.prototype.paintOne=function(t,r){KW(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;_1(function(){l._paintList(t,r,n,i)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(ju).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,b=o&&y.createRepaintRects(t,r,p._width,p._height),S=n?y.__startIndex:y.__drawIndex,w=!n&&y.incremental&&Date.now,T=w&&Date.now(),C=y.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(y.__startIndex===y.__endIndex)y.clear(!1,C,b);else if(S===y.__startIndex){var A=t[S];(!A.incremental||!A.notClear||n)&&y.clear(!1,C,b)}S===-1&&(console.error("For some unknown reason. drawIndex is -1"),S=y.__startIndex);var I,k=function(E){var z={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(I=S;I<y.__endIndex;I++){var B=t[I];if(B.__inHover&&(f=!0),i._doPaintEl(B,y,o,E,z,I===y.__endIndex-1),w){var W=Date.now()-T;if(W>15)break}}z.prevElClipPaths&&x.restore()};if(b)if(b.length===0)I=y.__endIndex;else for(var P=p.dpr,R=0;R<b.length;++R){var O=b[R];x.save(),x.beginPath(),x.rect(O.x*P,O.y*P,O.width*P,O.height*P),x.clip(),k(O),x.restore()}else x.save(),k(),x.restore();y.__drawIndex=I,y.__drawIndex<y.__endIndex&&(c=!1)},p=this,v=0;v<a.length;v++)d(v);return kt.wxa&&$(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))&&(yc(s,t,a,o),t.setPrevPaintRect(l))}else yc(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=ju);var n=this._layers[t];return n||(n=new IC("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?ht(n,this._layerConfig[t],!0):this._layerConfig[t-u0]&&ht(n,this._layerConfig[t-u0],!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]&&ESe(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+LSe,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?u0:0),this._needsManuallyCompositing),c.__builtin__||II("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&Go&&!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,$(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?ht(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+u0){var o=this._layers[a];ht(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(bt(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=fd(a,0,i),r=fd(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(ju).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[ju].dom;var r=new IC("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];yc(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",NSe)}var BSe=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 Ys(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(r){var n=new Je,i=Ur("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=Ur(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}(gr);function Fd(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=Nd(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o<r.length;o++)a.push(Nd(e,t,r[o]));return a.join(" ")}}function h8(e,t){var r=e.mapDimensionsAll("defaultedLabel");if(!he(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 qg=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=Ur(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=FSe,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(){zs(this.childAt(0))},t.prototype.downplay=function(){Bs(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 p={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(p):Ht(d,p,s,n),no(d)}if(this._updateCommon(r,n,l,i,a),u){var d=this.childAt(0);if(!c){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,mr(d,p,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,p,v,g,y,x;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,d=a.focus,p=a.blurScope,g=a.labelStatesModels,y=a.hoverScale,x=a.cursorStyle,v=a.emphasisDisabled),!a||r.hasItemOption){var b=a&&a.itemModel?a.itemModel:r.getItemModel(n),S=b.getModel("emphasis");u=S.getModel("itemStyle").getItemStyle(),f=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),d=S.get("focus"),p=S.get("blurScope"),v=S.get("disabled"),g=un(b),y=S.getShallow("scale"),x=b.getShallow("cursor")}var w=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var T=Xc(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 mn){var I=s.style;s.useStyle(oe({image:I.image,x:I.x,y:I.y,width:I.width,height:I.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 k=r.getItemVisual(n,"liftZ"),P=this._z2;k!=null?P==null&&(this._z2=s.z2,s.z2+=k):P!=null&&(s.z2=P,this._z2=null);var R=o&&o.useNameLabel;Mn(s,g,{labelFetcher:l,labelDataIndex:n,defaultText:O,inheritColor:A,defaultOpacity:C.opacity});function O(B){return R?r.getName(B):Fd(r,B)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var E=s.ensureState("emphasis");E.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;E.scaleX=this._sizeX*z,E.scaleY=this._sizeY*z,this.setSymbolScale(1),Rr(this,d,p,v)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=tt(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&Ql(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();Ql(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return lp(r.getItemVisual(n,"symbolSize"))},t}(Je);function FSe(e,t){this.parent.drift(e,t)}function kC(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 cB(e){return e!=null&&!Xe(e)&&(e={isIgnore:e}),e||{}}function fB(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:un(t),cursorStyle:t.get("cursor")}}var Xg=function(){function e(t){this.group=new Je,this._SymbolCtor=t||qg}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=cB(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=fB(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(kC(t,d,f,r)){var p=new o(t,f,l,u);p.setPosition(d),t.setItemGraphicEl(f,p),n.add(p)}}).update(function(f,d){var p=a.getItemGraphicEl(d),v=c(f);if(!kC(t,v,f,r)){n.remove(p);return}var g=t.getItemVisual(f,"symbol")||"circle",y=p&&p.getSymbolType&&p.getSymbolType();if(!p||y&&y!==g)n.remove(p),p=new o(t,f,l,u),p.setPosition(v);else{p.updateData(t,f,l,u);var x={x:v[0],y:v[1]};s?p.attr(x):Ht(p,x,i)}n.add(p),t.setItemGraphicEl(f,p)}).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=fB(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=cB(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(kC(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){lu(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 v8(e,t,r){var n=e.getBaseAxis(),i=e.getOtherAxis(n),a=$Se(i,r),o=n.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=ve(e.dimensions,function(v){return t.mapDimension(v)}),d=!1,p=t.getCalculationInfo("stackResultDimension");return eu(t,f[0])&&(d=!0,f[0]=p),eu(t,f[1])&&(d=!0,f[1]=p),{dataDimsForPoint:f,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function $Se(e,t){var r=0,n=e.scale.getExtent();return t==="start"?r=n[0]:t==="end"?r=n[1]:Bt(t)&&!isNaN(t)?r=t:n[0]>0?r=n[0]:n[1]<0&&(r=n[1]),r}function g8(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 VSe(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 HSe(e,t,r,n,i,a,o,s){for(var l=VSe(e,t),u=[],c=[],f=[],d=[],p=[],v=[],g=[],y=v8(i,t,o),x=e.getLayout("points")||[],b=t.getLayout("points")||[],S=0;S<l.length;S++){var w=l[S],T=!0,C=void 0,A=void 0;switch(w.cmd){case"=":C=w.idx*2,A=w.idx1*2;var I=x[C],k=x[C+1],P=b[A],R=b[A+1];(isNaN(I)||isNaN(k))&&(I=P,k=R),u.push(I,k),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 O=w.idx,E=y.dataDimsForPoint,z=i.dataToPoint([t.get(E[0],O),t.get(E[1],O)]);A=O*2,u.push(z[0],z[1]),c.push(b[A],b[A+1]);var B=g8(y,i,t,O);f.push(B[0],B[1]),d.push(n[A],n[A+1]),g.push(t.getRawIndex(O));break;case"-":T=!1}T&&(p.push(w),v.push(v.length))}v.sort(function(fe,re){return g[fe]-g[re]});for(var W=u.length,X=No(W),H=No(W),q=No(W),F=No(W),Y=[],S=0;S<v.length;S++){var Z=v[S],j=S*2,te=Z*2;X[j]=u[te],X[j+1]=u[te+1],H[j]=c[te],H[j+1]=c[te+1],q[j]=f[te],q[j+1]=f[te+1],F[j]=d[te],F[j+1]=d[te+1],Y[S]=p[Z]}return{current:X,next:H,stackedOnCurrent:q,stackedOnNext:F,status:Y}}var Sl=Math.min,_l=Math.max;function kc(e,t){return isNaN(e)||isNaN(t)}function wA(e,t,r,n,i,a,o,s,l){for(var u,c,f,d,p,v,g=r,y=0;y<n;y++){var x=t[g*2],b=t[g*2+1];if(g>=i||g<0)break;if(kc(x,b)){if(l){g+=a;continue}break}if(g===r)e[a>0?"moveTo":"lineTo"](x,b),f=x,d=b;else{var S=x-u,w=b-c;if(S*S+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===b&&y<n;)y++,T+=a,g+=a,C=t[T*2],A=t[T*2+1],x=t[g*2],b=t[g*2+1],S=x-u,w=b-c;var I=y+1;if(l)for(;kc(C,A)&&I<n;)I++,T+=a,C=t[T*2],A=t[T*2+1];var k=.5,P=0,R=0,O=void 0,E=void 0;if(I>=n||kc(C,A))p=x,v=b;else{P=C-u,R=A-c;var z=x-u,B=C-x,W=b-c,X=A-b,H=void 0,q=void 0;if(s==="x"){H=Math.abs(z),q=Math.abs(B);var F=P>0?1:-1;p=x-F*H*o,v=b,O=x+F*q*o,E=b}else if(s==="y"){H=Math.abs(W),q=Math.abs(X);var Y=R>0?1:-1;p=x,v=b-Y*H*o,O=x,E=b+Y*q*o}else H=Math.sqrt(z*z+W*W),q=Math.sqrt(B*B+X*X),k=q/(q+H),p=x-P*o*(1-k),v=b-R*o*(1-k),O=x+P*o*k,E=b+R*o*k,O=Sl(O,_l(C,x)),E=Sl(E,_l(A,b)),O=_l(O,Sl(C,x)),E=_l(E,Sl(A,b)),P=O-x,R=E-b,p=x-P*H/q,v=b-R*H/q,p=Sl(p,_l(u,x)),v=Sl(v,_l(c,b)),p=_l(p,Sl(u,x)),v=_l(v,Sl(c,b)),P=x-p,R=b-v,O=x+P*q/H,E=b+R*q/H}e.bezierCurveTo(f,d,p,v,x,b),f=O,d=E}else e.lineTo(x,b)}u=x,c=b,g+=a}return y}var m8=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),GSe=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 m8},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&kc(i[o*2-2],i[o*2-1]);o--);for(;a<o&&kc(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=wA(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=Jo.CMD,s,l,u=n==="x",c=[],f=0;f<a.length;){var d=a[f++],p=void 0,v=void 0,g=void 0,y=void 0,x=void 0,b=void 0,S=void 0;switch(d){case o.M:s=a[f++],l=a[f++];break;case o.L:if(p=a[f++],v=a[f++],S=u?(r-s)/(p-s):(r-l)/(v-l),S<=1&&S>=0){var w=u?(v-l)*S+l:(p-s)*S+s;return u?[r,w]:[w,r]}s=p,l=v;break;case o.C:p=a[f++],v=a[f++],g=a[f++],y=a[f++],x=a[f++],b=a[f++];var T=u?w1(s,p,g,x,r,c):w1(l,v,y,b,r,c);if(T>0)for(var C=0;C<T;C++){var A=c[C];if(A<=1&&A>=0){var w=u?an(l,v,y,b,A):an(s,p,g,x,A);return u?[r,w]:[w,r]}}s=x,l=b;break}}},t}(wt),WSe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(m8),y8=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 WSe},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&&kc(i[s*2-2],i[s*2-1]);s--);for(;o<s&&kc(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=wA(r,i,o,s,s,1,n.smooth,l,n.connectNulls);wA(r,a,o+u-1,u,s,-1,n.stackedOnSmooth,l,n.connectNulls),o+=u+1,r.closePath()}},t}(wt);function x8(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 Et({shape:{x:o,y:s,width:l,height:u}});if(t){var d=e.getBaseAxis(),p=d.isHorizontal(),v=d.inverse;p?(v&&(f.shape.x+=l),f.shape.width=0):(v||(f.shape.y+=u),f.shape.height=0);var g=je(i)?function(y){i(y,f)}:null;mr(f,{shape:{width:l,height:u,x:o,y:s}},r,null,n,g)}return f}function b8(e,t,r){var n=e.getArea(),i=Or(n.r0,1),a=Or(n.r,1),o=new ii({shape:{cx:Or(e.cx,1),cy:Or(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,mr(o,{shape:{endAngle:n.endAngle,r:a}},r)}return o}function Zg(e,t,r,n,i){if(e){if(e.type==="polar")return b8(e,t,r);if(e.type==="cartesian2d")return x8(e,t,r,n,i)}else return null;return null}function Kc(e,t){return e.type===t}function dB(e,t){if(e.length===t.length){for(var r=0;r<e.length;r++)if(e[r]!==t[r])return;return!0}}function pB(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 hB(e,t){var r=pB(e),n=r[0],i=r[1],a=pB(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 vB(e){return Bt(e)?e:e?.5:0}function jSe(e,t,r){if(!r.valueDim)return[];for(var n=t.count(),i=No(n*2),a=0;a<n;a++){var o=g8(r,e,t,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function wl(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,p=[];l[a]=p[a]=d,l[1-a]=u[1-a],p[1-a]=c[1-a],o.push(l[0],l[1]),o.push(p[0],p[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 USe(e,t){var r=[],n=e.length,i,a;function o(c,f,d){var p=c.coord,v=(d-p)/(f.coord-p),g=Pve(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 YSe(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=ve(a.stops,function(S){return{coord:l.toGlobalCoord(l.dataToCoord(S.value)),color:S.color}}),c=u.length,f=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=USe(u,i==="x"?r.getWidth():r.getHeight()),p=d.length;if(!p&&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[p-1].coord+v,x=y-g;if(x<.001)return"transparent";$(d,function(S){S.offset=(S.coord-g)/x}),d.push({offset:p?d[p-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:f[0]||"transparent"});var b=new Vg(0,0,0,0,d,!0);return b[i]=g,b[i+"2"]=y,b}}}function qSe(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&XSe(a,t))){var o=t.mapDimension(a.dim),s={};return $(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function XSe(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(qg.getSymbolSize(t,o)[e.isHorizontal()?1:0]*1.5>n)return!1;return!0}function ZSe(e,t){return isNaN(e)||isNaN(t)}function KSe(e){for(var t=e.length/2;t>0&&ZSe(e[t*2-2],e[t*2-1]);t--);return t-1}function gB(e,t){return[e[t*2],e[t*2+1]]}function QSe(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 S8(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t<ni.length;t++)if(e.get([ni[t],"endLabel","show"]))return!0;return!1}function PC(e,t,r,n){if(Kc(t,"cartesian2d")){var i=n.getModel("endLabel"),a=i.get("valueAnimation"),o=n.getData(),s={lastFrameIndex:0},l=S8(n)?function(p,v){e._endLabelOnDuring(p,v,o,s,a,i,t)}:null,u=t.getBaseAxis().isHorizontal(),c=x8(t,r,n,function(){var p=e._endLabel;p&&r&&s.originalX!=null&&p.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 b8(t,r,n)}function JSe(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 e_e=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(){var r=new Je,n=new Xg;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",p=this._coordSys,v=this._symbolDraw,g=this._polyline,y=this._polygon,x=this._lineGroup,b=!n.ssr&&r.get("animation"),S=!c.isEmpty(),w=c.get("origin"),T=v8(o,l,w),C=S&&jSe(o,l,T),A=r.get("showSymbol"),I=r.get("connectNulls"),k=A&&!d&&qSe(r,l,o),P=this._data;P&&P.eachItemGraphicEl(function(re,ce){re.__temp&&(s.remove(re),P.setItemGraphicEl(ce,null))}),A||v.remove(),s.add(x);var R=d?!1:r.get("step"),O;o&&o.getArea&&r.get("clip",!0)&&(O=o.getArea(),O.width!=null?(O.x-=.1,O.y-=.1,O.width+=.2,O.height+=.2):O.r0&&(O.r0-=.5,O.r+=.5)),this._clipShapeForSymbol=O;var E=YSe(l,o,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(g&&p.type===o.type&&R===this._step))A&&v.updateData(l,{isIgnore:k,clipShape:O,disableAnimation:!0,getSymbolPoint:function(re){return[f[re*2],f[re*2+1]]}}),b&&this._initSymbolLabelAnimation(l,o,O),R&&(f=wl(f,o,R,I),C&&(C=wl(C,o,R,I))),g=this._newPolyline(f),S?y=this._newPolygon(f,C):y&&(x.remove(y),y=this._polygon=null),d||this._initOrUpdateEndLabel(r,o,Hc(E)),x.setClipPath(PC(this,o,!0,r));else{S&&!y?y=this._newPolygon(f,C):y&&!S&&(x.remove(y),y=this._polygon=null),d||this._initOrUpdateEndLabel(r,o,Hc(E));var z=x.getClipPath();if(z){var B=PC(this,o,!1,r);mr(z,{shape:B.shape},r)}else x.setClipPath(PC(this,o,!0,r));A&&v.updateData(l,{isIgnore:k,clipShape:O,disableAnimation:!0,getSymbolPoint:function(re){return[f[re*2],f[re*2+1]]}}),(!dB(this._stackedOnPoints,C)||!dB(this._points,f))&&(b?this._doUpdateAnimation(l,C,o,i,R,w,I):(R&&(f=wl(f,o,R,I),C&&(C=wl(C,o,R,I))),g.setShape({points:f}),y&&y.setShape({points:f,stackedOnPoints:C})))}var W=r.getModel("emphasis"),X=W.get("focus"),H=W.get("blurScope"),q=W.get("disabled");if(g.useStyle(Ye(u.getLineStyle(),{fill:"none",stroke:E,lineJoin:"bevel"})),An(g,r,"lineStyle"),g.style.lineWidth>0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var F=g.getState("emphasis").style;F.lineWidth=+g.style.lineWidth+1}tt(g).seriesIndex=r.seriesIndex,Rr(g,X,H,q);var Y=vB(r.get("smooth")),Z=r.get("smoothMonotone");if(g.setShape({smooth:Y,smoothMonotone:Z,connectNulls:I}),y){var j=l.getCalculationInfo("stackedOnSeries"),te=0;y.useStyle(Ye(c.getAreaStyle(),{fill:E,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),j&&(te=vB(j.get("smooth"))),y.setShape({smooth:Y,stackedOnSmooth:te,smoothMonotone:Z,connectNulls:I}),An(y,r,"areaStyle"),tt(y).seriesIndex=r.seriesIndex,Rr(y,X,H,q)}var fe=function(re){a._changePolyState(re)};l.eachItemGraphicEl(function(re){re&&(re.onHoverStateChange=fe)}),this._polyline.onHoverStateChange=fe,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){tt(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=Fc(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,p=r.get("z")||0;u=new qg(o,s),u.x=c,u.y=f,u.setZ(d,p);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=d,v.z=p,v.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else lr.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=Fc(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 lr.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;P1(this._polyline,r),n&&P1(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new GSe({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 y8({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");je(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=je(f)?f(null):f;r.eachItemGraphicEl(function(p,v){var g=p;if(g){var y=[p.x,p.y],x=void 0,b=void 0,S=void 0;if(i)if(o){var w=i,T=n.pointToCoord(y);a?(x=w.startAngle,b=w.endAngle,S=-T[1]/180*Math.PI):(x=w.r0,b=w.r,S=T[0])}else{var C=i;a?(x=C.x,b=C.x+C.width,S=p.x):(x=C.y+C.height,b=C.y,S=p.y)}var A=b===x?0:(S-x)/(b-x);l&&(A=1-A);var I=je(f)?f(v):c*A+d,k=g.getSymbolPath(),P=k.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:I}),P&&P.animateFrom({style:{opacity:0}},{duration:300,delay:I}),k.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(S8(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 zt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=KSe(l);c>=0&&(Mn(s,un(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(f,d,p){return p!=null?h8(o,p):Fd(o,f)},enableTextSetter:!0},JSe(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,p=d.get("connectNulls"),v=s.get("precision"),g=s.get("distance")||0,y=l.getBaseAxis(),x=y.isHorizontal(),b=y.inverse,S=n.shape,w=b?x?S.x:S.y+S.height:x?S.x+S.width:S.y,T=(x?g:0)*(b?-1:1),C=(x?0:-g)*(b?-1:1),A=x?"x":"y",I=QSe(f,w,A),k=I.range,P=k[1]-k[0],R=void 0;if(P>=1){if(P>1&&!p){var O=gB(f,k[0]);u.attr({x:O[0]+T,y:O[1]+C}),o&&(R=d.getRawValue(k[0]))}else{var O=c.getPointOn(w,A);O&&u.attr({x:O[0]+T,y:O[1]+C});var E=d.getRawValue(k[0]),z=d.getRawValue(k[1]);o&&(R=aG(i,v,E,z,I.t))}a.lastFrameIndex=k[0]}else{var B=r===1||a.lastFrameIndex>0?k[0]:0,O=gB(f,B);o&&(R=d.getRawValue(B)),u.attr({x:O[0]+T,y:O[1]+C})}if(o){var W=tp(u);typeof W.setLabelText=="function"&&W.setLabelText(R)}}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,c=this._polygon,f=r.hostModel,d=HSe(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),p=d.current,v=d.stackedOnCurrent,g=d.next,y=d.stackedOnNext;if(o&&(p=wl(d.current,i,o,l),v=wl(d.stackedOnCurrent,i,o,l),g=wl(d.next,i,o,l),y=wl(d.stackedOnNext,i,o,l)),hB(p,g)>3e3||c&&hB(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=p;var x={shape:{points:g}};d.current!==p&&(x.shape.__points=d.next),u.stopAnimation(),Ht(u,x,f),c&&(c.setShape({points:p,stackedOnPoints:v}),c.stopAnimation(),Ht(c,{shape:{stackedOnPoints:y}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],S=d.status,w=0;w<S.length;w++){var T=S[w].cmd;if(T==="="){var C=r.getItemGraphicEl(S[w].idx1);C&&b.push({el:C,ptIdx:w})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var A=u.shape.__points,I=0;I<b.length;I++){var k=b[I].el,P=b[I].ptIdx*2;k.x=A[P],k.y=A[P+1],k.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}(lr);function Kg(e,t){return{seriesType:e,plan:op(),reset:function(r){var n=r.getData(),i=r.coordinateSystem,a=r.pipelineContext,o=t||a.large;if(i){var s=ve(i.dimensions,function(p){return n.mapDimension(p)}).slice(0,2),l=s.length,u=n.getCalculationInfo("stackResultDimension");eu(n,s[0])&&(s[0]=u),eu(n,s[1])&&(s[1]=u);var c=n.getStore(),f=n.getDimensionIndex(s[0]),d=n.getDimensionIndex(s[1]);return l&&{progress:function(p,v){for(var g=p.end-p.start,y=o&&No(g*l),x=[],b=[],S=p.start,w=0;S<p.end;S++){var T=void 0;if(l===1){var C=c.get(f,S);T=i.dataToPoint(C,null,b)}else x[0]=c.get(f,S),x[1]=c.get(d,S),T=i.dataToPoint(x,null,b);o?(y[w++]=T[0],y[w++]=T[1]):v.setItemLayout(S,T.slice())}o&&v.setLayout("points",y)}}}}}}var t_e={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]}},r_e=function(e){return Math.round(e.length/2)};function _8(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),p=Math.round(s/d);if(isFinite(p)&&p>1){a==="lttb"&&t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/p));var v=void 0;De(a)?v=t_e[a]:je(a)&&(v=a),v&&t.setData(i.downSample(i.mapDimension(u.dim),1/p,v,r_e))}}}}}function n_e(e){e.registerChartView(e_e),e.registerSeriesModel(BSe),e.registerLayout(Kg("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,_8("line"))}var cg=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 Ys(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)$(a.getAxes(),function(d,p){if(d.type==="category"&&n!=null){var v=d.getTicksCoords(),g=d.getTickModel().get("alignWithLabel"),y=o[p],x=n[p]==="x1"||n[p]==="y1";if(x&&!g&&(y+=1),v.length<2)return;if(v.length===2){s[p]=d.toGlobalCoord(d.getExtent()[x?1:0]);return}for(var b=void 0,S=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){S=C;break}else if(A<y)b=C;else if(b!=null&&A>y){S=(C+b)/2;break}T===1&&(w=A-v[0].tickValue)}S==null&&(b?b&&(S=v[v.length-1].coord):S=v[0].coord),s[p]=d.toGlobalCoord(S)}});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}(gr);gr.registerClass(cg);var i_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.getInitialData=function(){return Ys(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=uu(cg.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}(cg),a_e=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}(),Z1=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 a_e},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,p=Math.PI*2,v=d?f-c<p:c-f<p;v||(c=f-(d?p:-p));var g=Math.cos(c),y=Math.sin(c),x=Math.cos(f),b=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,b*u+a,l,f-Math.PI*2,f-Math.PI,!d),o!==0&&r.arc(i,a,o,f,c,d)},t}(wt);function o_e(e,t){t=t||{};var r=t.isRoundCap;return function(n,i,a){var o=i.position;if(!o||o instanceof Array)return I1(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,p=u.r0,v=(d+p)/2,g=u.startAngle,y=u.endAngle,x=(g+y)/2,b=r?Math.abs(d-p)/2:0,S=Math.cos,w=Math.sin,T=c+d*S(g),C=f+d*w(g),A="left",I="top";switch(s){case"startArc":T=c+(p-l)*S(x),C=f+(p-l)*w(x),A="center",I="top";break;case"insideStartArc":T=c+(p+l)*S(x),C=f+(p+l)*w(x),A="center",I="bottom";break;case"startAngle":T=c+v*S(g)+c0(g,l+b,!1),C=f+v*w(g)+f0(g,l+b,!1),A="right",I="middle";break;case"insideStartAngle":T=c+v*S(g)+c0(g,-l+b,!1),C=f+v*w(g)+f0(g,-l+b,!1),A="left",I="middle";break;case"middle":T=c+v*S(x),C=f+v*w(x),A="center",I="middle";break;case"endArc":T=c+(d+l)*S(x),C=f+(d+l)*w(x),A="center",I="bottom";break;case"insideEndArc":T=c+(d-l)*S(x),C=f+(d-l)*w(x),A="center",I="top";break;case"endAngle":T=c+v*S(y)+c0(y,l+b,!0),C=f+v*w(y)+f0(y,l+b,!0),A="left",I="middle";break;case"insideEndAngle":T=c+v*S(y)+c0(y,-l+b,!0),C=f+v*w(y)+f0(y,-l+b,!0),A="right",I="middle";break;default:return I1(n,i,a)}return n=n||{},n.x=T,n.y=C,n.align=A,n.verticalAlign=I,n}}function s_e(e,t,r,n){if(Bt(n)){e.setTextConfig({rotation:n});return}else if(he(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 c0(e,t,r){return t*Math.sin(e)*(r?-1:1)}function f0(e,t,r){return t*Math.cos(e)*(r?1:-1)}function xc(e,t,r){var n=e.get("borderRadius");if(n==null)return r?{cornerRadius:0}:null;he(n)||(n=[n,n,n,n]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:ve(n,function(a){return ro(a,i)})}}var DC=Math.max,RC=Math.min;function l_e(e,t){var r=e.getArea&&e.getArea();if(Kc(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 u_e=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){lu(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,p=c_e(r,u);p&&this._enableRealtimeSort(p,s,i);var v=r.get("clip",!0)||p,g=l_e(u,s);o.removeClipPath();var y=r.get("roundCap",!0),x=r.get("showBackground",!0),b=r.getModel("backgroundStyle"),S=b.get("borderRadius")||0,w=[],T=this._backgroundEls,C=a&&a.isInitSort,A=a&&a.type==="changeAxisOrder";function I(R){var O=d0[u.type](s,R),E=m_e(u,f,O);return E.useStyle(b.getItemStyle()),u.type==="cartesian2d"?E.setShape("r",S):E.setShape("cornerRadius",S),w[R]=E,E}s.diff(l).add(function(R){var O=s.getItemModel(R),E=d0[u.type](s,R,O);if(x&&I(R),!(!s.hasValue(R)||!SB[u.type](E))){var z=!1;v&&(z=mB[u.type](g,E));var B=yB[u.type](r,s,R,E,f,d,c.model,!1,y);p&&(B.forceLabelAnimation=!0),_B(B,s,R,O,E,r,f,u.type==="polar"),C?B.attr({shape:E}):p?xB(p,d,B,E,R,f,!1,!1):mr(B,{shape:E},r,R),s.setItemGraphicEl(R,B),o.add(B),B.ignore=z}}).update(function(R,O){var E=s.getItemModel(R),z=d0[u.type](s,R,E);if(x){var B=void 0;T.length===0?B=I(O):(B=T[O],B.useStyle(b.getItemStyle()),u.type==="cartesian2d"?B.setShape("r",S):B.setShape("cornerRadius",S),w[R]=B);var W=d0[u.type](s,R),X=C8(f,W,u);Ht(B,{shape:X},d,R)}var H=l.getItemGraphicEl(O);if(!s.hasValue(R)||!SB[u.type](z)){o.remove(H);return}var q=!1;if(v&&(q=mB[u.type](g,z),q&&o.remove(H)),H?no(H):H=yB[u.type](r,s,R,z,f,d,c.model,!!H,y),p&&(H.forceLabelAnimation=!0),A){var F=H.getTextContent();if(F){var Y=tp(F);Y.prevValue!=null&&(Y.prevValue=Y.value)}}else _B(H,s,R,E,z,r,f,u.type==="polar");C?H.attr({shape:z}):p?xB(p,d,H,z,R,f,!0,A):Ht(H,{shape:z},r,R,null),s.setItemGraphicEl(R,H),H.ignore=q,o.add(H)}).remove(function(R){var O=l.getItemGraphicEl(R);O&&eg(O,r,R)}).execute();var k=this._backgroundGroup||(this._backgroundGroup=new Je);k.removeAll();for(var P=0;P<w.length;++P)k.add(w[P]);o.add(k),this._backgroundEls=w,this._data=s},t.prototype._renderLarge=function(r,n,i){this._clear(),CB(r,this.group),this._updateLargeClip(r)},t.prototype._incrementalRenderLarge=function(r,n){this._removeBackground(),CB(n,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(r){var n=r.get("clip",!0)&&Zg(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:ve(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){eg(a,r,tt(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}(lr),mB={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=DC(t.x,e.x),s=RC(t.x+t.width,i),l=DC(t.y,e.y),u=RC(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=RC(t.r,e.r),a=DC(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}},yB={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Et({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?Z1:ii,c=new u({shape:n,z2:1});c.name="item";var f=w8(i);if(c.calculateTextPosition=o_e(f,{isRoundCap:u===Z1}),a){var d=c.shape,p=i?"r":"endAngle",v={};d[p]=i?n.r0:n.startAngle,v[p]=n[p],(s?Ht:mr)(c,{shape:v},a)}return c}};function c_e(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 xB(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?Ht:mr)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?Ht:mr)(r,{shape:u},c,i)}function bB(e,t){for(var r=0;r<t.length;r++)if(!isFinite(e[t[r]]))return!0;return!1}var f_e=["x","y","width","height"],d_e=["cx","cy","r","startAngle","endAngle"],SB={cartesian2d:function(e){return!bB(e,f_e)},polar:function(e){return!bB(e,d_e)}},d0={cartesian2d:function(e,t,r){var n=e.getItemLayout(t),i=r?h_e(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 p_e(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function w8(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 _B(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=xc(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 p=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=un(n);Mn(e,v,{labelFetcher:a,labelDataIndex:r,defaultText:Fd(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var g=e.getTextContent();if(s&&g){var y=n.get(["label","position"]);e.textConfig.inside=y==="middle"?!0:null,s_e(e,y==="outside"?p:y,w8(o),n.get(["label","rotate"]))}HG(g,v,a.getRawValue(r),function(b){return h8(t,b)});var x=n.getModel(["emphasis"]);Rr(e,x.get("focus"),x.get("blurScope"),x.get("disabled")),An(e,n),p_e(i)&&(e.style.fill="none",e.style.stroke="none",$(e.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function h_e(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 v_e=function(){function e(){}return e}(),wB=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 v_e},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}(wt);function CB(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 wB({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 wB({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")),tt(f).seriesIndex=e.seriesIndex,e.get("silent")||(f.on("mousedown",TB),f.on("mousemove",TB)),r&&r.push(f)}var TB=hk(function(e){var t=this,r=g_e(t,e.offsetX,e.offsetY);tt(t).dataIndex=r>=0?r:null},30,!1);function g_e(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 C8(e,t,r){if(Kc(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 m_e(e,t,r){var n=e.type==="polar"?ii:Et;return new n({shape:C8(t,r,e),silent:!0,z2:0})}function y_e(e){e.registerChartView(u_e),e.registerSeriesModel(i_e),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,at(kj,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Pj("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,_8("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 AB=Math.PI*2,p0=Math.PI/180;function T8(e,t){return Qr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function A8(e,t){var r=T8(e,t),n=e.get("center"),i=e.get("radius");he(i)||(i=[0,i]);var a=Ce(r.width,t.getWidth()),o=Ce(r.height,t.getHeight()),s=Math.min(a,o),l=Ce(i[0],s/2),u=Ce(i[1],s/2),c,f,d=e.coordinateSystem;if(d){var p=d.dataToPoint(n);c=p[0]||0,f=p[1]||0}else he(n)||(n=[n,n]),c=Ce(n[0],a)+r.x,f=Ce(n[1],o)+r.y;return{cx:c,cy:f,r0:l,r:u}}function x_e(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=T8(n,r),s=A8(n,r),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-n.get("startAngle")*p0,p=n.get("endAngle"),v=n.get("padAngle")*p0;p=p==="auto"?d-AB:-p*p0;var g=n.get("minAngle")*p0,y=g+v,x=0;i.each(a,function(X){!isNaN(X)&&x++});var b=i.getSum(a),S=Math.PI/(b||x)*2,w=n.get("clockwise"),T=n.get("roseType"),C=n.get("stillShowZeroSum"),A=i.getDataExtent(a);A[0]=0;var I=w?1:-1,k=[d,p],P=I*v/2;GI(k,!w),d=k[0],p=k[1];var R=M8(n);R.startAngle=d,R.endAngle=p,R.clockwise=w;var O=Math.abs(p-d),E=O,z=0,B=d;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(X,H){var q;if(isNaN(X)){i.setItemLayout(H,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:l,cy:u,r0:f,r:T?NaN:c});return}T!=="area"?q=b===0&&C?S:X*S:q=O/x,q<y?(q=y,E-=y):z+=X;var F=B+I*q,Y=0,Z=0;v>q?(Y=B+I*q/2,Z=Y):(Y=B+P,Z=F-P),i.setItemLayout(H,{angle:q,startAngle:Y,endAngle:Z,clockwise:w,cx:l,cy:u,r0:f,r:T?Qt(X,A,[f,c]):c}),B=F}),E<AB&&x)if(E<=.001){var W=O/x;i.each(a,function(X,H){if(!isNaN(X)){var q=i.getItemLayout(H);q.angle=W;var F=0,Y=0;W<v?(F=d+I*(H+1/2)*W,Y=F):(F=d+I*H*W+P,Y=d+I*(H+1)*W-P),q.startAngle=F,q.endAngle=Y}})}else S=E/z,B=d,i.each(a,function(X,H){if(!isNaN(X)){var q=i.getItemLayout(H),F=q.angle===y?y:X*S,Y=0,Z=0;F<v?(Y=B+I*F/2,Z=Y):(Y=B+P,Z=B+I*F-P),q.startAngle=Y,q.endAngle=Z,B+=I*F}})})}var M8=Ot();function Qg(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 b_e=Math.PI/180;function MB(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,b=0;b<g.list.length;b++){var S=g.list[b],w=Math.abs(S.label.y-r),T=n+S.len,C=T*T,A=Math.sqrt((1-Math.abs(w*w/x))*C),I=t+(A+S.len2)*i,k=I-S.label.x,P=S.targetTextWidth-k*i;I8(S,P,!0),S.label.x=I}}function f(g){for(var y={list:[],maxY:0},x={list:[],maxY:0},b=0;b<g.length;b++)if(g[b].labelAlignTo==="none"){var S=g[b],w=S.label.y>r?x:y,T=Math.abs(S.label.y-r);if(T>=w.maxY){var C=S.label.x-t-S.len2*i,A=n+S.len,I=Math.abs(C)<A?Math.sqrt(T*T/(1-C*C/A/A)):A;w.rB=I,w.maxY=T}w.list.push(S)}c(y),c(x)}for(var d=e.length,p=0;p<d;p++)if(e[p].position==="outer"&&e[p].labelAlignTo==="labelLine"){var v=e[p].label.x-u;e[p].linePoints[1][0]+=v,e[p].label.x=u}Kj(e,l,l+o)&&f(e)}function S_e(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 p=e[d].label;LC(e[d])||(p.x<t?(c=Math.min(c,p.x),l.push(e[d])):(f=Math.max(f,p.x),u.push(e[d])))}for(var d=0;d<e.length;d++){var v=e[d];if(!LC(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var p=v.label,g=v.linePoints,y=void 0;v.labelAlignTo==="edge"?p.x<t?y=g[2][0]-v.labelDistance-o-v.edgeDistance:y=o+i-v.edgeDistance-g[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?p.x<t?y=c-o-v.bleedMargin:y=o+i-f-v.bleedMargin:p.x<t?y=p.x-o-v.bleedMargin:y=o+i-p.x-v.bleedMargin,v.targetTextWidth=y,I8(v,y)}}MB(u,t,r,n,1,i,a,o,s,f),MB(l,t,r,n,-1,i,a,o,s,c);for(var d=0;d<e.length;d++){var v=e[d];if(!LC(v)&&v.linePoints){var p=v.label,g=v.linePoints,x=v.labelAlignTo==="edge",b=p.style.padding,S=b?b[1]+b[3]:0,w=p.style.backgroundColor?0:S,T=v.rect.width+w,C=g[1][0]-g[2][0];x?p.x<t?g[2][0]=o+v.edgeDistance+T+v.labelDistance:g[2][0]=o+i-v.edgeDistance-T-v.labelDistance:(p.x<t?g[2][0]=p.x+v.labelDistance:g[2][0]=p.x-v.labelDistance,g[1][0]=g[2][0]+C),g[1][1]=g[2][1]=p.y}}}function I8(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 p=t-l,v=t<c?p:r?p>e.unconstrainedWidth?null:p: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 LC(e){return e.position==="center"}function __e(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*b_e,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function p(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),I=A.shape,k=A.getTextContent(),P=A.getTextGuideLine(),R=t.getItemModel(C),O=R.getModel("label"),E=O.get("position")||R.get(["emphasis","label","position"]),z=O.get("distanceToLabelLine"),B=O.get("alignTo"),W=Ce(O.get("edgeDistance"),u),X=O.get("bleedMargin"),H=R.getModel("labelLine"),q=H.get("length");q=Ce(q,u);var F=H.get("length2");if(F=Ce(F,u),Math.abs(I.endAngle-I.startAngle)<o){$(k.states,p),k.ignore=!0,P&&($(P.states,p),P.ignore=!0);return}if(v(k)){var Y=(I.startAngle+I.endAngle)/2,Z=Math.cos(Y),j=Math.sin(Y),te,fe,re,ce;n=I.cx,i=I.cy;var ne=E==="inside"||E==="inner";if(E==="center")te=I.cx,fe=I.cy,ce="center";else{var pe=(ne?(I.r+I.r0)/2*Z:I.r*Z)+n,me=(ne?(I.r+I.r0)/2*j:I.r*j)+i;if(te=pe+Z*3,fe=me+j*3,!ne){var le=pe+Z*(q+l-I.r),Se=me+j*(q+l-I.r),ze=le+(Z<0?-1:1)*F,Te=Se;B==="edge"?te=Z<0?c+W:c+u-W:te=ze+(Z<0?-z:z),fe=Te,re=[[pe,me],[le,Se],[ze,Te]]}ce=ne?"center":B==="edge"?Z>0?"right":"left":Z>0?"left":"right"}var ye=Math.PI,ft=0,He=O.get("rotate");if(Bt(He))ft=He*(ye/180);else if(E==="center")ft=0;else if(He==="radial"||He===!0){var gt=Z<0?-Y+ye:-Y;ft=gt}else if(He==="tangential"&&E!=="outside"&&E!=="outer"){var xt=Math.atan2(Z,j);xt<0&&(xt=ye*2+xt);var _t=j>0;_t&&(xt=ye+xt),ft=xt-ye}if(a=!!ft,k.x=te,k.y=fe,k.rotation=ft,k.setStyle({verticalAlign:"middle"}),ne){k.setStyle({align:ce});var Gt=k.states.select;Gt&&(Gt.x+=k.x,Gt.y+=k.y)}else{var nt=k.getBoundingRect().clone();nt.applyTransform(k.getComputedTransform());var Ft=(k.style.margin||0)+2.1;nt.y-=Ft/2,nt.height+=Ft,r.push({label:k,labelLine:P,position:E,len:q,len2:F,minTurnAngle:H.get("minTurnAngle"),maxSurfaceAngle:H.get("maxSurfaceAngle"),surfaceNormal:new dt(Z,j),linePoints:re,textAlign:ce,labelDistance:z,labelAlignTo:B,edgeDistance:W,bleedMargin:X,rect:nt,unconstrainedWidth:nt.width,labelStyleWidth:k.style.width})}A.setTextConfig({inside:ne})}}),!a&&e.get("avoidLabelOverlap")&&S_e(r,n,i,l,u,d,c,f);for(var g=0;g<r.length;g++){var y=r[g],x=y.label,b=y.labelLine,S=isNaN(x.x)||isNaN(x.y);if(x){x.setStyle({align:y.textAlign}),S&&($(x.states,p),x.ignore=!0);var w=x.states.select;w&&(w.x+=x.x,w.y+=x.y)}if(b){var T=y.linePoints;S||!T?($(b.states,p),b.ignore=!0):(qj(T,y.minTurnAngle),jbe(T,y.surfaceNormal,y.maxSurfaceAngle),b.setShape({points:T}),x.__hostTarget.textGuideLineConfig={anchor:new dt(T[0][0],T[0][1])})}}}var w_e=function(e){J(t,e);function t(r,n,i){var a=e.call(this)||this;a.z2=2;var o=new zt;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(xc(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?(mr(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,mr(o,{shape:{r:c.r}},s,n)):i!=null?(o.setShape({startAngle:i,endAngle:i}),mr(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,n)):(o.shape.endAngle=c.startAngle,Ht(o,{shape:{endAngle:c.endAngle}},s,n))}else no(o),Ht(o,{shape:f},s,n);o.useStyle(r.getItemVisual(n,"style")),An(o,l);var p=(c.startAngle+c.endAngle)/2,v=s.get("selectedOffset"),g=Math.cos(p)*v,y=Math.sin(p)*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)},xc(u.getModel("itemStyle"),c)),oe(o.ensureState("select"),{x:g,y,shape:xc(l.getModel(["select","itemStyle"]),c)}),oe(o.ensureState("blur"),{shape:xc(l.getModel(["blur","itemStyle"]),c)});var b=o.getTextGuideLine(),S=o.getTextContent();b&&oe(b.ensureState("select"),{x:g,y}),oe(S.ensureState("select"),{x:g,y}),Rr(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;Mn(a,un(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 p=this.getTextGuideLine();p||(p=new li,this.setTextGuideLine(p)),Mk(this,Ik(o),{stroke:u,opacity:Ho(s.get(["lineStyle","opacity"]),c,1)})}},t}(ii),C_e=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),p=new ii({shape:oe(A8(r,i),d)});p.useStyle(r.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=p,l.add(p)}o.diff(s).add(function(v){var g=new w_e(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);eg(g,r,v)}).execute(),__e(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}(lr);function cp(e,t,r){t=he(t)&&{coordDimensions:t}||oe({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=Ug(n,t).dimensions,a=new ei(i,e);return a.initData(n,r),a}var Jg=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}(),T_e=Ot(),A_e=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 Jg(Ne(this.getData,this),Ne(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return cp(this,{coordDimensions:["value"],encodeDefaulter:at(ok,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=T_e(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=vge(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){Bc(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}(gr);function M_e(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!(Bt(o)&&!isNaN(o)&&o<0)})}}}function I_e(e){e.registerChartView(C_e),e.registerSeriesModel(A_e),qW("pie",e.registerAction),e.registerLayout(at(x_e,"pie")),e.registerProcessor(Qg("pie")),e.registerProcessor(M_e("pie"))}var k_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.getInitialData=function(r,n){return Ys(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}(gr),k8=4,P_e=function(){function e(){}return e}(),D_e=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 P_e},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]<k8,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<i.length;){var d=i[f++],p=i[f++];isNaN(d)||isNaN(p)||c&&!c.contain(d,p)||(s.x=d-a[0]/2,s.y=p-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 p=i[d++],v=i[d++];l=Math.min(p,l),c=Math.max(p,c),u=Math.min(v,u),f=Math.max(v,f)}r=this._rect=new vt(l-o/2,u-s/2,c-l+o,f-u+s)}return r},t}(wt),R_e=function(){function e(){this.group=new Je}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 D_e({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=Ur(r.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var o=t.shape.size[0]<k8;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=tt(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}(),L_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.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=Kg("").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 R_e:new Xg,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}(lr),E_e=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}(Pt),CA=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",jr).models[0]},t.type="cartesian2dAxis",t}(Pt);Yr(CA,Yg);var P8={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)"]}}},O_e=ht({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},P8),Ok=ht({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}}},P8),N_e=ht({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Ok),z_e=Ye({logBase:10},Ok);const D8={category:O_e,value:Ok,time:N_e,log:z_e};var B_e={value:1,category:1,time:1,log:1};function $d(e,t,r,n){$(B_e,function(i,a){var o=ht(ht({},D8[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=rg(this),p=d?ip(c):{},v=f.getTheme();ht(c,v.get(a+"Axis")),ht(c,this.getDefaultOption()),c.type=IB(c),d&&Jl(c,p,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=mA.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",IB)}function IB(e){return e.type||(e.data?"category":"value")}var F_e=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 ve(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),tr(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}(),TA=["x","y"];function kB(e){return e.type==="interval"||e.type==="time"}var $_e=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=TA,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!kB(r)||!kB(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,p=o[1]-a[0]*f,v=this._transform=[c,0,0,f,d,p];this._invTransform=Zd([],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 vt(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 Tn(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 Tn(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 vt(a,o,s,l)},t}(F_e),V_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}(so);function AA(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},p=t.get("offset")||0,v=u==="x"?[f[2]-p,f[3]+p]:[f[0]-p,f[1]+p];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),gn(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 PB(e){return e.get("coordinateSystem")==="cartesian2d"}function DB(e){var t={xAxisModel:null,yAxisModel:null};return $(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,jr).models[0];t[n]=a}),t}var EC=Math.log;function R8(e,t,r){var n=$s.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=Oj(e,t),u=l.extent,c=l.fixMin,f=l.fixMax;if(e.type==="log"){var d=EC(e.base);u=[EC(u[0])/d,EC(u[1])/d]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var p=n.getExtent.call(e);c&&(u[0]=p[0]),f&&(u[1]=p[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=xC(v),y=u[0]+v*o;else if(f)for(g=u[1]-v*o;g>u[0]&&isFinite(g)&&isFinite(u[0]);)v=xC(v),g=u[1]-v*o;else{var x=e.getTicks().length-1;x>o&&(v=xC(v));var b=v*o;y=Math.ceil(u[1]/v)*v,g=Or(y-b),g<0&&u[0]>=0?(g=0,y=Or(b)):y>0&&u[1]<=0&&(y=0,g=-Or(b))}var S=(i[0].value-a[0].value)/s,w=(i[o].value-a[o].value)/s;n.setExtent.call(e,g+v*S,y+v*w),n.setInterval.call(e,v),(S||w)&&n.setNiceExtent.call(e,g+v,y-v)}var H_e=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=TA,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=Dt(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],p=o[d],v=p.model,g=p.scale;yA(g)&&v.get("alignTicks")&&v.get("interval")==null?c.push(p):(Bd(g,v),yA(g)&&(s=p))}c.length&&(s||(s=c.pop(),Bd(s.scale,s.model)),$(c,function(y){R8(y.scale,y.model,s.scale)}))}}i(n.x),i(n.y);var a={};$(n.x,function(o){RB(n,"y",o,a)}),$(n.y,function(o){RB(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=Qr(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&($(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=_be(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()),$(this._coordsList,function(u){u.calcAffineTransform()});function l(){$(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]),G_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]}Xe(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",jr).models[0],i=t.yAxisModel||r&&r.getReferringComponents("yAxis",jr).models[0],a=t.gridModel,o=this._coordsList,s,l;if(r)s=r.coordinateSystem,bt(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,$(s.x,function(c,f){$(s.y,function(d,p){var v="x"+f+"y"+p,g=new $_e(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(OC(f,t)){var p=f.get("position");c==="x"?p!=="top"&&p!=="bottom"&&(p=o.bottom?"top":"bottom"):p!=="left"&&p!=="right"&&(p=o.left?"right":"left"),o[p]=!0;var v=new V_e(c,Rb(f),[0,0],f.get("type"),p),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){$(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(PB(i)){var a=DB(i),o=a.xAxisModel,s=a.yAxisModel;if(!OC(o,r)||!OC(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){$(U1(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},e.prototype.getTooltipAxes=function(t){var r=[],n=[];return $(this.getCartesians(),function(i){var a=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(a);bt(r,a)<0&&r.push(a),bt(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(PB(i)){var a=DB(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel(),u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),n},e.dimensions=TA,e}();function OC(e,t){return e.getCoordSysModel()===t}function RB(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)LB(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&LB(i[u])&&!n[c(i[u])]){a=i[u];break}a&&(n[c(a)]=!0);function c(f){return f.dim+"_"+f.index}}function LB(e){return e&&e.type!=="category"&&e.type!=="time"&&Sbe(e)}function G_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 Bl=Math.PI,ti=function(){function e(t,r){this.group=new Je,this.opt=r,this.axisModel=t,Ye(r,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new Je({x:r.position[0],y:r.position[1],rotation:r.rotation});n.updateTransform(),this._transformGroup=n}return e.prototype.hasBuilder=function(t){return!!EB[t]},e.prototype.add=function(t){EB[t](this.opt,this.axisModel,this.group,this._transformGroup)},e.prototype.getGroup=function(){return this.group},e.innerTextLayout=function(t,r,n){var i=XH(r-t),a,o;return Zv(i)?(o=n>0?"top":"bottom",a="center"):Zv(i-Bl)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Bl?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}(),EB={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&&(Tn(s,s,o),Tn(l,l,o));var c=oe({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new on({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});Od(f.shape,f.style.lineWidth),f.anid="line",r.add(f);var d=t.get(["axisLine","symbol"]);if(d!=null){var p=t.get(["axisLine","symbolSize"]);De(d)&&(d=[d,d]),(De(p)||Bt(p))&&(p=[p,p]);var v=Xc(t.get(["axisLine","symbolOffset"])||0,p),g=p[0],y=p[1];$([{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,b){if(d[b]!=="none"&&d[b]!=null){var S=Ur(d[b],-g/2,-y/2,g,y,c.stroke,!0),w=x.r+x.offset,T=u?l:s;S.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(S)}})}}},axisTickLabel:function(e,t,r,n){var i=U_e(r,n,t,e),a=q_e(r,n,t,e);if(j_e(t,a,i),Y_e(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=Xj(ve(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Qj(o)}},axisName:function(e,t,r,n){var i=gn(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,NB(a)?e.labelOffset+o*l:0],d,p=t.get("nameRotate");p!=null&&(p=p*Bl/180);var v;NB(a)?d=ti.innerTextLayout(e.rotation,p??e.rotation,o):(d=W_e(e.rotation,a,p||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,b=gn(e.nameTruncateMaxWidth,y.maxWidth,v),S=new zt({x:f[0],y:f[1],rotation:d.rotation,silent:ti.isLabelSilent(t),style:vr(s,{text:i,font:g,overflow:"truncate",width:b,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(ep({el:S,componentModel:t,itemName:i}),S.__fullText=i,S.anid="name",t.get("triggerEvent")){var w=ti.makeAxisEventDataBase(t);w.targetType="axisName",w.name=i,tt(S).eventData=w}n.add(S),S.updateTransform(),r.add(S),S.decomposeTransform()}}};function W_e(e,t,r,n){var i=XH(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return Zv(i-Bl/2)?(o=l?"bottom":"top",a="center"):Zv(i-Bl*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<Bl*1.5&&i>Bl/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function j_e(e,t,r){if(!Nj(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?(oa(a),oa(u)):OB(a,o)&&(n?(oa(o),oa(c)):(oa(a),oa(u))),i===!1?(oa(s),oa(f)):OB(l,s)&&(i?(oa(l),oa(d)):(oa(s),oa(f)))}}function oa(e){e&&(e.ignore=!0)}function OB(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=nb([]);return Yc(i,i,-e.rotation),r.applyTransform(Ms([],i,e.getLocalTransform())),n.applyTransform(Ms([],i,t.getLocalTransform())),r.intersect(n)}}function NB(e){return e==="middle"||e==="center"}function L8(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&&(Tn(o,o,t),Tn(s,s,t));var c=new on({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:n,z2:2,autoBatch:!0,silent:!0});Od(c.shape,c.style.lineWidth),c.anid=i+"_"+e[l].tickValue,a.push(c)}return a}function U_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=L8(u,t.transform,l,Ye(s.getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)e.add(c[f]);return c}}function Y_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=Ye(s.getLineStyle(),Ye(r.getModel("axisTick").getLineStyle(),{stroke:r.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=L8(o[c],t.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)e.add(f[d])}}function q_e(e,t,r,n){var i=r.axis,a=gn(n.axisLabelShow,r.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=r.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(gn(n.labelRotate,o.get("rotate"))||0)*Bl/180,c=ti.innerTextLayout(n.rotation,u,n.labelDirection),f=r.getCategories&&r.getCategories(!0),d=[],p=ti.isLabelSilent(r),v=r.get("triggerEvent");return $(l,function(g,y){var x=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(g.tickValue):g.tickValue,b=g.formattedLabel,S=g.rawLabel,w=o;if(f&&f[x]){var T=f[x];Xe(T)&&T.textStyle&&(w=new Zt(T.textStyle,o,r.ecModel))}var C=w.getTextColor()||r.get(["axisLine","lineStyle","color"]),A=i.dataToCoord(x),I=w.getShallow("align",!0)||c.textAlign,k=it(w.getShallow("alignMinLabel",!0),I),P=it(w.getShallow("alignMaxLabel",!0),I),R=w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||c.textVerticalAlign,O=it(w.getShallow("verticalAlignMinLabel",!0),R),E=it(w.getShallow("verticalAlignMaxLabel",!0),R),z=new zt({x:A,y:n.labelOffset+n.labelDirection*s,rotation:c.rotation,silent:p,z2:10+(g.level||0),style:vr(w,{text:b,align:y===0?k:y===l.length-1?P:I,verticalAlign:y===0?O:y===l.length-1?E:R,fill:je(C)?C(i.type==="category"?S:i.type==="value"?x+"":x,y):C})});if(z.anid="label_"+x,v){var B=ti.makeAxisEventDataBase(r);B.targetType="axisLabel",B.value=S,B.tickIndex=y,i.type==="category"&&(B.dataIndex=x),tt(z).eventData=B}t.add(z),z.updateTransform(),d.push(z),e.add(z),z.decomposeTransform()}),d}}function X_e(e,t){var r={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return Z_e(r,e,t),r.seriesInvolved&&Q_e(r,e),r}function Z_e(e,t,r){var n=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];$(r.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=fg(s.model),u=e.coordSysAxesInfo[l]={};e.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",n);if($(s.getAxes(),at(g,!1,null)),s.getTooltipAxes&&n&&f.get("show")){var d=f.get("trigger")==="axis",p=f.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||p)&&$(v.baseAxes,at(g,p?"cross":!0,d)),p&&$(v.otherAxes,at(g,"cross",!1))}function g(y,x,b){var S=b.model.getModel("axisPointer",i),w=S.get("show");if(!(!w||w==="auto"&&!y&&!MA(S))){x==null&&(x=S.get("triggerTooltip")),S=y?K_e(b,f,i,t,y,x):S;var T=S.get("snap"),C=S.get("triggerEmphasis"),A=fg(b.model),I=x||T||b.type==="category",k=e.axesInfo[A]={key:A,axis:b,coordSys:s,axisPointerModel:S,triggerTooltip:x,triggerEmphasis:C,involveSeries:I,snap:T,useHandle:MA(S),seriesModels:[],linkGroup:null};u[A]=k,e.seriesInvolved=e.seriesInvolved||I;var P=J_e(a,b);if(P!=null){var R=o[P]||(o[P]={axesInfo:{}});R.axesInfo[A]=k,R.mapper=a[P].mapper,k.linkGroup=R}}}})}function K_e(e,t,r,n,i,a){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};$(s,function(d){l[d]=Ke(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&&Ye(u,f.textStyle)}}return e.model.getModel("axisPointer",new Zt(l,r,n))}function Q_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||$(e.coordSysAxesInfo[fg(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 J_e(e,t){for(var r=t.model,n=t.dim,i=0;i<e.length;i++){var a=e[i]||{};if(NC(a[n+"AxisId"],r.id)||NC(a[n+"AxisIndex"],r.componentIndex)||NC(a[n+"AxisName"],r.name))return i}}function NC(e,t){return e==="all"||he(e)&&bt(e,t)>=0||e===t}function ewe(e){var t=Nk(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=MA(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 Nk(e){var t=(e.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[fg(e)]}function twe(e){var t=Nk(e);return t&&t.axisPointerModel}function MA(e){return!!e.get(["handle","show"])}function fg(e){return e.type+"||"+e.id}var zB={},Qc=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&&ewe(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=twe(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){zB[r]=n},t.getAxisPointerClass=function(r){return r&&zB[r]},t.type="axis",t}(_r),IA=Ot();function E8(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=IA(e).splitAreaColors,d=$e(),p=0;if(f)for(var v=0;v<u.length;v++){var g=f.get(u[v].tickValue);if(g!=null){p=(g+(c-1)*v)%c;break}}var y=i.toGlobalCoord(u[0].coord),x=o.getAreaStyle();s=he(s)?s:[s];for(var v=1;v<u.length;v++){var b=i.toGlobalCoord(u[v].coord),S=void 0,w=void 0,T=void 0,C=void 0;i.isHorizontal()?(S=y,w=l.y,T=b-S,C=l.height,y=S+T):(S=l.x,w=y,T=l.width,C=b-w,y=w+C);var A=u[v-1].tickValue;A!=null&&d.set(A,p),t.add(new Et({anid:A!=null?"area_"+A:null,shape:{x:S,y:w,width:T,height:C},style:Ye({fill:s[p]},x),autoBatch:!0,silent:!0})),p=(p+1)%c}IA(e).splitAreaColors=d}}}function O8(e){IA(e).splitAreaColors=null}var rwe=["axisLine","axisTickLabel","axisName"],nwe=["splitArea","splitLine","minorSplitLine"],N8=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 Je,this.group.add(this._axisGroup),!!r.get("show")){var s=r.getCoordSysModel(),l=AA(s,r),u=new ti(r,oe({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),p=0;p<d.length;p++)if(yA(d[p].getOtherAxis(r.axis).scale))return!0;return!1}},l));$(rwe,u.add,u),this._axisGroup.add(u.getGroup()),$(nwe,function(f){r.get([f,"show"])&&iwe[f](this,this._axisGroup,r,s)},this);var c=a&&a.type==="changeAxisOrder"&&a.isInitSort;c||Hg(o,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)}},t.prototype.remove=function(){O8(this)},t.type="cartesianAxis",t}(Qc),iwe={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=he(s)?s:[s];for(var l=n.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,f=i.getTicksCoords({tickModel:a}),d=[],p=[],v=o.getLineStyle(),g=0;g<f.length;g++){var y=i.toGlobalCoord(f[g].coord);u?(d[0]=y,d[1]=l.y,p[0]=y,p[1]=l.y+l.height):(d[0]=l.x,d[1]=y,p[0]=l.x+l.width,p[1]=y);var x=c++%s.length,b=f[g].tickValue,S=new on({anid:b!=null?"line_"+f[g].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:Ye({stroke:s[x]},v),silent:!0});Od(S.shape,v.lineWidth),t.add(S)}}},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(),p=0;p<u.length;p++)for(var v=0;v<u[p].length;v++){var g=i.toGlobalCoord(u[p][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 on({anid:"minor_line_"+u[p][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});Od(y.shape,d.lineWidth),t.add(y)}},splitArea:function(e,t,r,n){E8(e,t,r,n)}},z8=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}(N8),awe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=z8.type,r}return t.type="yAxis",t}(N8),owe=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 Et({shape:r.coordinateSystem.getRect(),style:Ye({fill:r.get("backgroundColor")},r.getItemStyle()),silent:!0,z2:-1}))},t.type="grid",t}(_r),BB={offset:0};function B8(e){e.registerComponentView(owe),e.registerComponentModel(E_e),e.registerCoordinateSystem("cartesian2d",H_e),$d(e,"x",CA,BB),$d(e,"y",CA,BB),e.registerComponentView(z8),e.registerComponentView(awe),e.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function swe(e){St(B8),e.registerSeriesModel(k_e),e.registerChartView(L_e),e.registerLayout(Kg("scatter"))}function lwe(e){e.eachSeriesByType("radar",function(t){var r=t.getData(),n=[],i=t.coordinateSystem;if(i){var a=i.getIndicatorAxes();$(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]=FB(c)?c:$B(i)})}),r.each(function(o){var s=Ghe(n[o],function(l){return FB(l)})||$B(i);n[o].push(s.slice()),r.setItemLayout(o,n[o])})}})}function FB(e){return!isNaN(e[0])&&!isNaN(e[1])}function $B(e){return[e.cx,e.cy]}function uwe(e){var t=e.polar;if(t){he(t)||(t=[t]);var r=[];$(t,function(n,i){n.indicator?(n.type&&!n.shape&&(n.shape=n.type),e.radar=e.radar||[],he(e.radar)||(e.radar=[e.radar]),e.radar.push(n)):r.push(n)}),e.polar=r}$(e.series,function(n){n&&n.type==="radar"&&n.polarIndex&&(n.radarIndex=n.polarIndex)})}var cwe=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,p){var v=d.getItemVisual(p,"symbol")||"circle";if(v!=="none"){var g=lp(d.getItemVisual(p,"symbolSize")),y=Ur(v,-1,-1,2,2),x=d.getItemVisual(p,"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,p,v,g,y,x){v.removeAll();for(var b=0;b<p.length-1;b++){var S=u(g,y);S&&(S.__dimIdx=b,d[b]?(S.setPosition(d[b]),qc[x?"initProps":"updateProps"](S,{x:p[b][0],y:p[b][1]},r,y)):S.setPosition(p[b]),v.add(S))}}function f(d){return ve(d,function(p){return[a.cx,a.cy]})}s.diff(l).add(function(d){var p=s.getItemLayout(d);if(p){var v=new ai,g=new li,y={shape:{points:p}};v.shape.points=f(p),g.shape.points=f(p),mr(v,y,r,d),mr(g,y,r,d);var x=new Je,b=new Je;x.add(g),x.add(v),x.add(b),c(g.shape.points,p,b,s,d,!0),s.setItemGraphicEl(d,x)}}).update(function(d,p){var v=l.getItemGraphicEl(p),g=v.childAt(0),y=v.childAt(1),x=v.childAt(2),b={shape:{points:s.getItemLayout(d)}};b.shape.points&&(c(g.shape.points,b.shape.points,x,s,d,!1),no(y),no(g),Ht(g,b,r),Ht(y,b,r),s.setItemGraphicEl(d,v))}).remove(function(d){o.remove(l.getItemGraphicEl(d))}).execute(),s.eachItemGraphicEl(function(d,p){var v=s.getItemModel(p),g=d.childAt(0),y=d.childAt(1),x=d.childAt(2),b=s.getItemVisual(p,"style"),S=b.fill;o.add(d),g.useStyle(Ye(v.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:S})),An(g,v,"lineStyle"),An(y,v,"areaStyle");var w=v.getModel("areaStyle"),T=w.isEmpty()&&w.parentModel.isEmpty();y.ignore=T,$(["emphasis","select","blur"],function(I){var k=v.getModel([I,"areaStyle"]),P=k.isEmpty()&&k.parentModel.isEmpty();y.ensureState(I).ignore=P&&T}),y.useStyle(Ye(w.getAreaStyle(),{fill:S,opacity:.7,decal:b.decal}));var C=v.getModel("emphasis"),A=C.getModel("itemStyle").getItemStyle();x.eachChild(function(I){if(I instanceof mn){var k=I.style;I.useStyle(oe({image:k.image,x:k.x,y:k.y,width:k.width,height:k.height},b))}else I.useStyle(b),I.setColor(S),I.style.strokeNoScale=!0;var P=I.ensureState("emphasis");P.style=Ke(A);var R=s.getStore().get(s.getDimensionIndex(I.__dimIdx),p);(R==null||isNaN(R))&&(R=""),Mn(I,un(v),{labelFetcher:s.hostModel,labelDataIndex:p,labelDimIndex:I.__dimIdx,defaultText:R,inheritColor:S,defaultOpacity:b.opacity})}),Rr(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}(lr),fwe=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 Jg(Ne(this.getData,this),Ne(this.getRawData,this))},t.prototype.getInitialData=function(r,n){return cp(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=NW(this,r);return cn("section",{header:u,sortBlocks:!0,blocks:ve(s,function(f){var d=a.get(a.mapDimension(f.dim),r);return cn("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(ve(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}(gr),Mh=D8.value;function h0(e,t){return Ye({show:t},e)}var dwe=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"),p=ve(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=Ye({color:v.color},l));var y=ht(Ke(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(De(c)){var x=y.name;y.name=c.replace("{value}",x??"")}else je(c)&&(y.name=c(y.name,y));var b=new Zt(y,null,this.ecModel);return Yr(b,Yg.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b},this);this._indicatorModels=p},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:ht({lineStyle:{color:"#bbb"}},Mh.axisLine),axisLabel:h0(Mh.axisLabel,!1),axisTick:h0(Mh.axisTick,!1),splitLine:h0(Mh.splitLine,!0),splitArea:h0(Mh.splitArea,!0),indicator:[]},t}(Pt),pwe=["axisLine","axisTickLabel","axisName"],hwe=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=ve(i,function(o){var s=o.model.get("showName")?o.name:"",l=new ti(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});$(a,function(o){$(pwe,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"),p=u.get("color"),v=he(d)?d:[d],g=he(p)?p:[p],y=[],x=[];function b(B,W,X){var H=X%W.length;return B[H]=B[H]||[],H}if(a==="circle")for(var S=i[0].getTicksCoords(),w=n.cx,T=n.cy,C=0;C<S.length;C++){if(c){var A=b(y,v,C);y[A].push(new Us({shape:{cx:w,cy:T,r:S[C].coord}}))}if(f&&C<S.length-1){var A=b(x,g,C);x[A].push(new Fg({shape:{cx:w,cy:T,r0:S[C].coord,r:S[C+1].coord}}))}}else for(var I,k=ve(i,function(B,W){var X=B.getTicksCoords();return I=I==null?X.length-1:Math.min(X.length-1,I),ve(X,function(H){return n.coordToPoint(H.coord,W)})}),P=[],C=0;C<=I;C++){for(var R=[],O=0;O<i.length;O++)R.push(k[O][C]);if(R[0]&&R.push(R[0].slice()),c){var A=b(y,v,C);y[A].push(new li({shape:{points:R}}))}if(f&&P){var A=b(x,g,C-1);x[A].push(new ai({shape:{points:R.concat(P)}}))}P=R.slice().reverse()}var E=l.getLineStyle(),z=u.getAreaStyle();$(x,function(B,W){this.group.add(xa(B,{style:Ye({stroke:"none",fill:g[W%g.length]},z),silent:!0}))},this),$(y,function(B,W){this.group.add(xa(B,{style:Ye({fill:"none",stroke:v[W%v.length]},E),silent:!0}))},this)},t.type="radar",t}(_r),vwe=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}(so),gwe=function(){function e(t,r,n){this.dimensions=[],this._model=t,this._indicatorAxes=ve(t.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new vwe(o,new $s);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=Ce(n[0],i),this.cy=Ce(n[1],a),this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(De(s)||Bt(s))&&(s=[0,s]),this.r0=Ce(s[0],o),this.r=Ce(s[1],o),$(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;$(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();$(n,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var a=i.get("splitNumber"),o=new $s;o.setExtent(0,a),o.setInterval(1),$(n,function(s,l){R8(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 mwe(e){e.registerCoordinateSystem("radar",gwe),e.registerComponentModel(dwe),e.registerComponentView(hwe),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 ywe(e){St(mwe),e.registerChartView(cwe),e.registerSeriesModel(fwe),e.registerLayout(lwe),e.registerProcessor(Qg("radar")),e.registerPreprocessor(uwe)}var VB="\0_ec_interaction_mutex";function xwe(e,t,r){var n=zk(e);n[t]=r}function bwe(e,t,r){var n=zk(e),i=n[t];i===r&&(n[t]=null)}function HB(e,t){return!!zk(e)[t]}function zk(e){return e[VB]||(e[VB]={})}ns({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Vr);var em=function(e){J(t,e);function t(r){var n=e.call(this)||this;n._zr=r;var i=Ne(n._mousedownHandler,n),a=Ne(n._mousemoveHandler,n),o=Ne(n._mouseupHandler,n),s=Ne(n._mousewheelHandler,n),l=Ne(n._pinchHandler,n);return n.enable=function(u,c){this.disable(),this._opt=Ye(Ke(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(!yN(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"||HB(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&&Os(r.event),F8(this,"pan","moveOnMouseMove",r,{dx:s,dy:l,oldX:a,oldY:o,newX:n,newY:i,isAvailableBehavior:null})}},t.prototype._mouseupHandler=function(r){yN(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;zC(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);zC(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!HB(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;zC(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(Pa);function zC(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(Os(n.event),F8(e,t,r,n,i))}function F8(e,t,r,n,i){i.isAvailableBehavior=Ne(Q0,null,r,n),e.trigger(t,i)}function Q0(e,t,r){var n=r[e];return!e||n&&(!De(n)||t.event[n+"Key"])}function Bk(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function Fk(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 Swe={axisPointer:1,tooltip:1,brush:1};function Eb(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!Swe.hasOwnProperty(n.mainType)&&i&&i.model!==r}function $8(e){if(De(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 BC,K1={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"},GB=Dt(K1),Q1={"alignment-baseline":"textBaseline","stop-color":"stopColor"},WB=Dt(Q1),_we=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=$8(t);this._defsUsePending=[];var i=new Je;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),Ni(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;Twe(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=Ob(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=H8(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var p=i;i=new Je,i.add(p),p.scaleX=p.scaleY=f.scale,p.x=f.x,p.y=f.y}return!r.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new Et({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=BC[s];if(c&&Fe(BC,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 p=jB[s];if(p&&Fe(jB,s)){var v=p.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 Ed({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});sa(r,n),Ni(t,n,this._defsUsePending,!1,!1),wwe(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(){BC={g:function(t,r){var n=new Je;return sa(r,n),Ni(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new Et;return sa(r,n),Ni(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 Us;return sa(r,n),Ni(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 on;return sa(r,n),Ni(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 pb;return sa(r,n),Ni(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=qB(n));var a=new ai({shape:{points:i||[]},silent:!0});return sa(r,a),Ni(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=qB(n));var a=new li({shape:{points:i||[]},silent:!0});return sa(r,a),Ni(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new mn;return sa(r,n),Ni(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 Je;return sa(r,s),Ni(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 Je;return sa(r,s),Ni(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=PG(n);return sa(r,i),Ni(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),jB={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 Vg(t,r,n,i);return UB(e,a),YB(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 EG(t,r,n);return UB(e,i),YB(e,i),i}};function UB(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function YB(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={};V8(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function sa(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Ye(t.__inheritedStyle,e.__inheritedStyle))}function qB(e){for(var t=Ob(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 Ni(e,t,r,n,i){var a=t,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};e.nodeType===1&&(Iwe(e,t),V8(e,o,s),n||kwe(e,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=XB(a,"fill",o.fill,r)),o.stroke!=null&&(a.style.stroke=XB(a,"stroke",o.stroke,r)),$(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(a.style[l]=parseFloat(o[l]))}),$(["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=ve(Ob(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(a.invisible=!0),o.display==="none"&&(a.ignore=!0)}function wwe(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 Cwe=/^url\(\s*#(.*?)\)/;function XB(e,t,r,n){var i=r&&r.match(Cwe);if(i){var a=Ya(i[1]);n.push([e,t,a]);return}return r==="none"&&(r=null),r}function Twe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n[0].style[n[1]]=e[n[2]]}}var Awe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Ob(e){return e.match(Awe)||[]}var Mwe=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,FC=Math.PI/180;function Iwe(e,t){var r=e.getAttribute("transform");if(r){r=r.replace(/,/g," ");var n=[],i=null;r.replace(Mwe,function(f,d,p){return n.push(d,p),""});for(var a=n.length-1;a>0;a-=2){var o=n[a],s=n[a-1],l=Ob(o);switch(i=i||Wi(),s){case"translate":Zo(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":EI(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Yc(i,i,-parseFloat(l[0])*FC,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*FC);Ms(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*FC);Ms(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 ZB=/([^\s:;]+)\s*:\s*([^:;]+)/g;function V8(e,t,r){var n=e.getAttribute("style");if(n){ZB.lastIndex=0;for(var i;(i=ZB.exec(n))!=null;){var a=i[1],o=Fe(K1,a)?K1[a]:null;o&&(t[o]=i[2]);var s=Fe(Q1,a)?Q1[a]:null;s&&(r[s]=i[2])}}}function kwe(e,t,r){for(var n=0;n<GB.length;n++){var i=GB[n],a=e.getAttribute(i);a!=null&&(t[K1[i]]=a)}for(var n=0;n<WB.length;n++){var i=WB[n],a=e.getAttribute(i);a!=null&&(r[Q1[i]]=a)}}function H8(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 Pwe(e,t){var r=new _we;return r.parse(e,t)}var Dwe=$e(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Rwe=function(){function e(t,r){this.type="geoSVG",this._usedGraphicMap=$e(),this._freedGraphics=[],this._mapName=t,this._parsedXML=$8(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=Ewe(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&&Pwe(t,{ignoreViewBox:!0,ignoreRootClip:!0})||{},n=r.root,ri(n!=null)}catch(y){throw new Error(`Invalid svg format
192
+ `+y.message)}var i=new Je;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 p=n.getBoundingRect();u==null&&(u=p.x,f=p.width),c==null&&(c=p.y,d=p.height)}l=this._boundingRect=new vt(u,c,f,d)}if(s){var v=H8(s,l);n.scaleX=n.scaleY=v.scale,n.x=v.x,n.y=v.y}i.setClipPath(new Et({shape:l.plain()}));var g=[];return $(r.named,function(y){Dwe.get(y.svgNodeTagLower)!=null&&(g.push(y),Lwe(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 Lwe(e){e.silent=!1,e.isGroup&&e.traverse(function(t){t.silent=!1})}function Ewe(e){var t=[],r=$e();return $(e,function(n){if(n.namedFrom==null){var i=new Ibe(n.name,n.el);t.push(i),r.set(n.name,i)}}),{regions:t,regionsMap:r}}var kA=[126,25],KB="南海诸岛",Qu=[[[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 Uu=0;Uu<Qu.length;Uu++)for(var Wf=0;Wf<Qu[Uu].length;Wf++)Qu[Uu][Wf][0]/=10.5,Qu[Uu][Wf][1]/=-10.5/.75,Qu[Uu][Wf][0]+=kA[0],Qu[Uu][Wf][1]+=kA[1];function Owe(e,t){if(e==="china"){for(var r=0;r<t.length;r++)if(t[r].name===KB)return;t.push(new Bj(KB,ve(Qu,function(n){return{type:"polygon",exterior:n}}),kA))}}var Nwe={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function zwe(e,t){if(e==="china"){var r=Nwe[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 Bwe=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Fwe(e,t){e==="china"&&t.name==="台湾"&&t.geometries.push({type:"polygon",exterior:Bwe[0]})}var $we="name",Vwe=function(){function e(t,r,n){this.type="geoJSON",this._parsedMap=$e(),this._mapName=t,this._specialAreas=n,this._geoJSON=Gwe(r)}return e.prototype.load=function(t,r){r=r||$we;var n=this._parsedMap.get(r);if(!n){var i=this._parseToRegions(r);n=this._parsedMap.set(r,{regions:i,boundingRect:Hwe(i)})}var a=$e(),o=[];return $(n.regions,function(s){var l=s.name;t&&Fe(t,l)&&(s=s.cloneShallow(l=t[l])),o.push(s),a.set(l,s)}),{regions:o,boundingRect:n.boundingRect||new vt(0,0,0,0),regionsMap:a}},e.prototype._parseToRegions=function(t){var r=this._mapName,n=this._geoJSON,i;try{i=n?Pbe(n,t):[]}catch(a){throw new Error(`Invalid geoJson format
193
+ `+a.message)}return Owe(r,i),$(i,function(a){var o=a.name;zwe(r,a),Fwe(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 Hwe(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 Gwe(e){return De(e)?typeof JSON<"u"&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")():e}var Ih=$e();const Vs={registerMap:function(e,t,r){if(t.svg){var n=new Rwe(e,t.svg);Ih.set(e,n)}else{var i=t.geoJson||t.geoJSON;i&&!t.features?r=t.specialAreas:i=t;var n=new Vwe(e,i,r);Ih.set(e,n)}},getGeoResource:function(e){return Ih.get(e)},getMapForUser:function(e){var t=Ih.get(e);return t&&t.type==="geoJSON"&&t.getMapForUser()},load:function(e,t,r){var n=Ih.get(e);if(n)return n.load(t,r)}};var $k=["rect","circle","line","ellipse","polygon","polyline","path"],Wwe=$e($k),jwe=$e($k.concat(["g"])),Uwe=$e($k.concat(["g"])),G8=Ot();function v0(e){var t=e.getItemStyle(),r=e.get("areaColor");return r!=null&&(t.fill=r),t}function QB(e){var t=e.style;t&&(t.stroke=t.stroke||t.fill,t.fill=null)}var W8=function(){function e(t){var r=new Je;this.uid=rp("ec_map_draw"),this._controller=new em(t.getZr()),this._controllerHost={target:r},this.group=r,r.add(this._regionsGroup=new Je),r.add(this._svgGroup=new Je)}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,p=f.roam,v=!u.childAt(0)||a;v?(c.x=p.x,c.y=p.y,c.scaleX=p.scaleX,c.scaleY=p.scaleY,c.dirty()):Ht(c,p,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=$e(),n=$e(),i=this._regionsGroup,a=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.geo.projection,u=l&&l.stream;function c(p,v){return v&&(p=v(p)),p&&[p[0]*a.scaleX+a.x,p[1]*a.scaleY+a.y]}function f(p){for(var v=[],g=!u&&l&&l.project,y=0;y<p.length;++y){var x=c(p[y],g);x&&v.push(x)}return v}function d(p){return{shape:{points:f(p)}}}i.removeAll(),$(t.geo.regions,function(p){var v=p.name,g=r.get(v),y=n.get(v)||{},x=y.dataIdx,b=y.regionModel;g||(g=r.set(v,new Je),i.add(g),x=s?s.indexOfName(v):null,b=t.isGeo?o.getRegionModel(v):s?s.getItemModel(x):null,n.set(v,{dataIdx:x,regionModel:b}));var S=[],w=[];$(p.geometries,function(A){if(A.type==="polygon"){var I=[A.exterior].concat(A.interiors||[]);u&&(I=i3(I,u)),$(I,function(P){S.push(new ai(d(P)))})}else{var k=A.points;u&&(k=i3(k,u,!0)),$(k,function(P){w.push(new li(d(P)))})}});var T=c(p.getCenter(),l&&l.project);function C(A,I){if(A.length){var k=new ZI({culling:!0,segmentIgnoreThreshold:1,shape:{paths:A}});g.add(k),JB(t,k,x,b),e3(t,k,v,b,o,x,T),I&&(QB(k),$(k.states,QB))}}C(S),C(w,!0)}),r.each(function(p,v){var g=n.get(v),y=g.dataIdx,x=g.regionModel;t3(t,p,v,x,o,y),r3(t,p,v,x,o),n3(t,p,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=$e(),a=!1;$(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,p=l.getRegionModel(s);if(Wwe.get(c)!=null&&f instanceof Ma&&JB(t,f,d,p),f instanceof Ma&&(f.culling=!0),f.z2EmphasisLift=0,!o.namedFrom&&(Uwe.get(c)!=null&&e3(t,f,s,p,l,d,null),t3(t,f,s,p,l,d),r3(t,f,s,p,l),jwe.get(c)!=null)){var v=n3(t,f,s,p,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){Vc(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=Vs.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=Vs.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,Bk(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,Fk(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])&&!Eb(u,n,t)})},e.prototype.resetForLabelLayout=function(){this.group.traverse(function(t){var r=t.getTextContent();r&&(r.ignore=G8(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 JB(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=v0(i),u=v0(a),c=v0(s),f=v0(o),d=e.data;if(d){var p=d.getItemVisual(r,"style"),v=d.getItemVisual(r,"decal");e.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),v&&(l.decal=zd(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,Vc(t)}function e3(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 p=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Mn(t,un(n),{labelFetcher:d,labelDataIndex:f,defaultText:r},p);var v=t.getTextContent();if(v&&(G8(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 t3(e,t,r,n,i,a){e.data?e.data.setItemGraphicEl(a,t):tt(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function r3(e,t,r,n,i){e.data||ep({el:t,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function n3(e,t,r,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return Rr(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&Hme(t,i,r),o}function i3(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(),$(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 Ywe=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 W8(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 Us({style:{fill:r.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:Qd+1)});if(!f){var p=r.mainSeries.getData(),v=a.getName(l),g=p.indexOfName(v),y=a.getItemModel(l),x=y.getModel("label"),b=p.getItemGraphicEl(g);Mn(d,un(y),{labelFetcher:{getFormattedLabel:function(S,w){return r.getFormattedLabel(g,w)}},defaultText:v}),d.disableLabelAnimation=!0,x.get("position")||d.setTextConfig({position:"bottom"}),b.onHoverStateChange=function(S){P1(d,S)}}o.add(d)}}})},t.type="map",t}(lr),qwe=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=cp(this,{coordDimensions:["value"],encodeDefaulter:at(ok,this)}),i=$e(),a=[],o=0,s=n.count();o<s;o++){var l=n.getName(o);i.set(l,!0)}var u=Vs.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return $(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 cn("section",{header:u.join(", "),noHeader:!u.length,blocks:[cn("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=Ur(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}(gr);function Xwe(e,t){var r={};return $(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 Zwe(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)}),$(t,function(r,n){for(var i=Xwe(ve(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 Kwe(e){var t={};e.eachSeriesByType("map",function(r){var n=r.getMapType();if(!(r.getHostGeoModel()||t[n])){var i={};$(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 p=i[f]||0,v=s.dataToPoint(d.getCenter());i[f]=p+1,l.setItemLayout(c,{point:v,offset:p})}})});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 a3=Tn,tm=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 ws,n._rawTransformable=new ws,n.name=r,n}return t.prototype.setBoundingRect=function(r,n,i,a){return this._rect=new vt(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 vt(r,n,i,a)},t.prototype._transformTo=function(r,n,i,a){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new vt(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=[Ce(r[0],n.getWidth()),Ce(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=Tn([],a,r),i=Tn([],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(),LI(this.transform||(this.transform=[]),n.transform||Wi()),this._rawTransform=n.getLocalTransform(),this.invTransform=this.invTransform||[],Zd(this.invTransform,this.transform),this.decomposeTransform()},t.prototype.getTransformInfo=function(){var r=this._rawTransformable,n=this._roamTransformable,i=new ws;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?a3(i,r,a):Xn(i,r)},t.prototype.pointToData=function(r){var n=this.invTransform;return n?a3([],r,n):[r[0],r[1]]},t.prototype.convertToPixel=function(r,n,i){var a=o3(n);return a===this?a.dataToPoint(i):null},t.prototype.convertFromPixel=function(r,n,i){var a=o3(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}(ws);function o3(e){var t=e.seriesModel;return t?t.coordinateSystem:null}var Qwe={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},j8=["lng","lat"],PA=function(e){J(t,e);function t(r,n,i){var a=e.call(this,r)||this;a.dimensions=j8,a.type="geo",a._nameCoordMap=$e(),a.map=n;var o=i.projection,s=Vs.load(n,i.nameMap,i.nameProperty),l=Vs.getGeoResource(n);a.resourceType=l?l.type:null;var u=a.regions=s.regions,c=Qwe[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 p=u[d].getBoundingRect(o);f=f||p.clone(),f.union(p)}else f=s.boundingRect;return a.setBoundingRect(f.x,f.y,f.width,f.height),a.aspectScale=o?1:it(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 vt(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(De(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=s3(n);return a===this?a.dataToPoint(i):null},t.prototype.convertFromPixel=function(r,n,i){var a=s3(n);return a===this?a.pointToData(i):null},t}(tm);Yr(PA,tm);function s3(e){var t=e.geoModel,r=e.seriesModel;return t?t.coordinateSystem:r?r.coordinateSystem||(r.getReferringComponents("geo",jr).models[0]||{}).coordinateSystem:null}function l3(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,I,k){for(var P=I-C,R=k-A,O=0;O<=100;O++){var E=O/100,z=a.project([C+P*E,A+R*E]);Ll(n,n,z),El(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"),p=e.get("layoutSize"),v=t.getWidth(),g=t.getHeight(),y=f.width/f.height*this.aspectScale,x=!1,b,S;d&&p&&(b=[Ce(d[0],v),Ce(d[1],g)],S=Ce(p,Math.min(v,g)),!isNaN(b[0])&&!isNaN(b[1])&&!isNaN(S)&&(x=!0));var w;if(x)w={},y>1?(w.width=S,w.height=S/y):(w.height=S,w.width=S*y),w.y=b[1]-w.height/2,w.x=b[0]-w.width/2;else{var T=e.getBoxLayoutParams();T.aspect=y,w=Qr(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 Jwe(e,t){$(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var eCe=function(){function e(){this.dimensions=j8}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 PA(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=l3,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)}}),$(a,function(o,s){var l=ve(o,function(c){return c.get("nameMap")}),u=new PA(s,s,oe({nameMap:kI(l)},i(o[0])));u.zoomLimit=gn.apply(null,ve(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=l3,u.resize(o[0],r),$(o,function(c){c.coordinateSystem=u,Jwe(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,i){for(var a=(t||[]).slice(),o=$e(),s=0;s<a.length;s++)o.set(a[s].name,a[s]);var l=Vs.load(r,n,i);return $(l.regions,function(u){var c=u.name;!o.get(c)&&a.push({name:c})}),a},e}(),U8=new eCe,tCe=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=Vs.getGeoResource(r.map);if(a&&a.type==="geoJSON"){var o=r.itemStyle=r.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(r,i),Bc(r,"label",["show"])},t.prototype.optionUpdated=function(){var r=this,n=this.option;n.regions=U8.getFilledRegions(n.regions,n.map,n.nameMap,n.nameProperty);var i={};this._optionModelMap=Xo(n.regions||[],function(a,o){var s=o.name;return s&&(a.set(s,new Zt(o,r,r.ecModel)),o.selected&&(i[s]=!0)),a},$e()),n.selectedMap||(n.selectedMap=i)},t.prototype.getRegionModel=function(r){return this._optionModelMap.get(r)||new Zt(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(je(a))return o.status=n,a(o);if(De(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}(Pt);function u3(e,t){return e.pointToProjected?e.pointToProjected(t):e.pointToData(t)}function Vk(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(u3(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(u3(e,s),n),e.setZoom(o*i)}return{center:e.getCenter(),zoom:e.getZoom()}}var rCe=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 W8(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;gc(r.target,function(i){return(n=tt(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=tt(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}(_r);function nCe(e,t,r){Vs.registerMap(e,t,r)}function Y8(e){e.registerCoordinateSystem("geo",U8),e.registerComponentModel(tCe),e.registerComponentView(rCe),e.registerImpl("registerMap",nCe),e.registerImpl("getMap",function(r){return Vs.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;$(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];$(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=Vk(s,r,o.get("scaleLimit"),i);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),a==="series"&&$(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function iCe(e){St(Y8),e.registerChartView(Ywe),e.registerSeriesModel(qwe),e.registerLayout(Kwe),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Zwe),qW("map",e.registerAction)}function aCe(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 oCe(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){uCe(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=cCe(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function sCe(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function c3(e){return arguments.length?e:pCe}function Kh(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function lCe(e,t){return Qr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function uCe(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 cCe(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=$C(s),a=VC(a),s&&a;){i=$C(i),o=VC(o),i.hierNode.ancestor=e;var d=s.hierNode.prelim+f-a.hierNode.prelim-u+n(s,a);d>0&&(dCe(fCe(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&&!$C(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!VC(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=e)}return r}function $C(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function VC(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function fCe(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function dCe(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 pCe(e,t){return e.parentNode===t.parentNode?1:2}var hCe=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),vCe=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 hCe},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=Ce(n.forkPosition,1),p=[];p[c]=o[c],p[f]=o[f]+(l[f]-o[f])*d,r.moveTo(o[0],o[1]),r.lineTo(p[0],p[1]),r.moveTo(s[0],s[1]),p[c]=s[c],r.lineTo(p[0],p[1]),p[c]=l[c],r.lineTo(p[0],p[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]),p[c]=g[c],r.lineTo(p[0],p[1])}},t}(wt),gCe=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._mainGroup=new Je,r}return t.prototype.init=function(r,n){this._controller=new em(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){f3(a,c)&&d3(a,c,null,s,r)}).update(function(c,f){var d=u.getItemGraphicEl(f);if(!f3(a,c)){d&&h3(u,f,d,s,r);return}d3(a,c,d,s,r)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&h3(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=[];cb(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 tm;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)&&!Eb(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){Bk(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Fk(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}(lr);function f3(e,t){var r=e.getItemLayout(t);return r&&!isNaN(r.x)&&!isNaN(r.y)}function d3(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),p=f.getLayout(),v=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:p,g=o.getLayout();a?(r=new qg(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,Ht(r,{x:g.x,y:g.y},i);var y=r.getSymbolPath();if(i.get("layout")==="radial"){var x=c.children[0],b=x.getLayout(),S=x.children.length,w=void 0,T=void 0;if(g.x===b.x&&o.isExpand===!0&&x.children.length){var C={x:(x.children[0].getLayout().x+x.children[S-1].getLayout().x)/2,y:(x.children[0].getLayout().y+x.children[S-1].getLayout().y)/2};w=Math.atan2(C.y-b.y,C.x-b.x),w<0&&(w=Math.PI*2+w),T=C.x<b.x,T&&(w=w-Math.PI)}else w=Math.atan2(g.y-b.y,g.x-b.x),w<0&&(w=Math.PI*2+w),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(T=g.x<b.x,T&&(w=w-Math.PI)):(T=g.x>b.x,T||(w=w-Math.PI));var A=T?"left":"right",I=s.getModel("label"),k=I.get("rotate"),P=k*(Math.PI/180),R=y.getTextContent();R&&(y.setTextConfig({position:I.get("position")||A,rotation:k==null?-w:P,origin:"center"}),R.setStyle("verticalAlign","middle"))}var O=s.get(["emphasis","focus"]),E=O==="relative"?S1(o.getAncestorsIndices(),o.getDescendantIndices()):O==="ancestor"?o.getAncestorsIndices():O==="descendant"?o.getDescendantIndices():null;E&&(tt(r).focus=E),mCe(i,o,c,r,v,p,g,n),r.__edge&&(r.onHoverStateChange=function(z){if(z!=="blur"){var B=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);B&&B.hoverState===Bg||P1(r.__edge,z)}})}function mCe(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"]),p=e.get("edgeForkPosition"),v=l.getModel("lineStyle").getLineStyle(),g=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(g||(g=n.__edge=new $g({shape:DA(c,f,d,i,i)})),Ht(g,{shape:DA(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=[],b=0;b<y.length;b++){var S=y[b].getLayout();x.push([S.x,S.y])}g||(g=n.__edge=new vCe({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:p}})),Ht(g,{shape:{parentPoint:[o.x,o.y],childPoints:x}},e)}g&&!(u==="polyline"&&!t.isExpand)&&(g.useStyle(Ye({strokeNoScale:!0,fill:null},v)),An(g,l,"lineStyle"),Vc(g),s.add(g))}function p3(e,t,r,n,i){var a=t.tree.root,o=q8(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),p=n.get("edgeShape"),v=n.get("layout"),g=n.get("orient"),y=n.get(["lineStyle","curveness"]);d&&(p==="curve"?Ql(d,{shape:DA(v,g,y,l,l),style:{opacity:0}},n,{cb:function(){r.remove(d)},removeOpt:i}):p==="polyline"&&n.get("layout")==="orthogonal"&&Ql(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},n,{cb:function(){r.remove(d)},removeOpt:i}))}}function q8(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 h3(e,t,r,n,i){var a=e.tree.getNodeByDataIndex(t),o=e.tree.root,s=q8(o,a).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};Ql(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){p3(u,e,n,i,l)}),p3(a,e,n,i,l)}function DA(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 p=Kh(u,f),v=Kh(u,f+(d-f)*r),g=Kh(c,d+(f-d)*r),y=Kh(c,d);return{x1:p.x||0,y1:p.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 wa=Ot();function X8(e){var t=e.mainData,r=e.datas;r||(r={main:t},e.datasAttr={main:"data"}),e.datas=e.mainData=null,Z8(t,r,e),$(r,function(n){$(t.TRANSFERABLE_METHODS,function(i){n.wrapMethod(i,at(yCe,e))})}),t.wrapMethod("cloneShallow",at(bCe,e)),$(t.CHANGABLE_METHODS,function(n){t.wrapMethod(n,at(xCe,e))}),ri(r[t.dataType]===t)}function yCe(e,t){if(wCe(this)){var r=oe({},wa(this).datas);r[this.dataType]=t,Z8(t,r,e)}else Hk(t,this.dataType,wa(this).mainData,e);return t}function xCe(e,t){return e.struct&&e.struct.update(),t}function bCe(e,t){return $(wa(t).datas,function(r,n){r!==t&&Hk(r.cloneShallow(),n,t,e)}),t}function SCe(e){var t=wa(this).mainData;return e==null||t==null?t:wa(t).datas[e]}function _Ce(){var e=wa(this).mainData;return e==null?[{data:e}]:ve(Dt(wa(e).datas),function(t){return{type:t,data:wa(e).datas[t]}})}function wCe(e){return wa(e).mainData===e}function Z8(e,t,r){wa(e).datas={},$(t,function(n,i){Hk(n,i,e,r)})}function Hk(e,t,r,n){wa(r).datas[t]=e,wa(e).mainData=r,e.dataType=t,n.struct&&(e[n.structAttr]=n.struct,n.struct[n.datasAttr[t]]=e),e.getLinkedData=SCe,e.getLinkedDataAll=_Ce}var CCe=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){je(t)&&(n=r,r=t,t=null),t=t||{},De(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}(),Gk=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,he(d)?d.length:1),a.push(c);var p=new CCe(Kr(c.name,""),i);f?TCe(p,f):i.root=p,i._nodes.push(p);var v=c.children;if(v)for(var g=0;g<v.length;g++)s(v[g],p)}i.root.updateDepthAndHeight(0);var l=Ug(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new ei(l,r);return u.initData(a),n&&n(u),X8({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},e}();function TCe(e,t){var r=t.children;e.parentNode!==t&&(r.push(e),e.parentNode=t)}function dg(e,t,r){if(e&&bt(t,e.type)>=0){var n=r.getData().tree.root,i=e.targetNode;if(De(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 K8(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function Wk(e,t){var r=K8(e);return bt(r,t)>=0}function Nb(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 ACe=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 Zt(i,this,this.ecModel),o=Gk.createTree(n,this,s);function s(f){f.wrapMethod("getItemModel",function(d,p){var v=o.getNodeByDataIndex(p);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 cn("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=Nb(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}(gr);function MCe(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 kh(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 ICe(e,t){e.eachSeriesByType("tree",function(r){kCe(r,t)})}function kCe(e,t){var r=lCe(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=c3(function(S,w){return(S.parentNode===w.parentNode?1:2)/S.depth})):(i=r.width,a=r.height,o=c3());var s=e.getData().tree.root,l=s.children[0];if(l){aCe(s),MCe(l,oCe,o),s.hierNode.modifier=-l.hierNode.prelim,kh(l,sCe);var u=l,c=l,f=l;kh(l,function(S){var w=S.getLayout().x;w<u.getLayout().x&&(u=S),w>c.getLayout().x&&(c=S),S.depth>f.depth&&(f=S)});var d=u===c?1:o(u,c)/2,p=d-u.getLayout().x,v=0,g=0,y=0,x=0;if(n==="radial")v=i/(c.getLayout().x+d+p),g=a/(f.depth-1||1),kh(l,function(S){y=(S.getLayout().x+p)*v,x=(S.depth-1)*g;var w=Kh(y,x);S.setLayout({x:w.x,y:w.y,rawX:y,rawY:x},!0)});else{var b=e.getOrient();b==="RL"||b==="LR"?(g=a/(c.getLayout().x+d+p),v=i/(f.depth-1||1),kh(l,function(S){x=(S.getLayout().x+p)*g,y=b==="LR"?(S.depth-1)*v:i-(S.depth-1)*v,S.setLayout({x:y,y:x},!0)})):(b==="TB"||b==="BT")&&(v=i/(c.getLayout().x+d+p),g=a/(f.depth-1||1),kh(l,function(S){y=(S.getLayout().x+p)*v,x=b==="TB"?(S.depth-1)*g:a-(S.depth-1)*g,S.setLayout({x:y,y:x},!0)}))}}}function PCe(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 DCe(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=Vk(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function RCe(e){e.registerChartView(gCe),e.registerSeriesModel(ACe),e.registerLayout(ICe),e.registerVisual(PCe),DCe(e)}var v3=["treemapZoomToNode","treemapRender","treemapMove"];function LCe(e){for(var t=0;t<v3.length;t++)e.registerAction({type:v3[t],update:"updateView"},Vr);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=dg(r,s,a);if(l){var u=a.getViewRoot();u&&(r.direction=Wk(u,l.node)?"rollUp":"drillDown"),a.resetViewRoot(l.node)}}})}function Q8(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=iA(e.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var ECe=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};J8(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new Zt({itemStyle:o},this,n);a=r.levels=OCe(a,n);var l=ve(a||[],function(f){return new Zt(f,s,n)},this),u=Gk.createTree(i,this,c);function c(f){f.wrapMethod("getItemModel",function(d,p){var v=u.getNodeByDataIndex(p),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 cn("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=Nb(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=$e(),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(){Q8(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}(gr);function J8(e){var t=0;$(e.children,function(n){J8(n);var i=n.value;he(i)&&(i=i[0]),t+=i});var r=e.value;he(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),he(e.value)?e.value[0]=r:e.value=r}function OCe(e,t){var r=ir(t.get("color")),n=ir(t.get(["aria","decal","decals"]));if(r){e=e||[];var i,a;$(e,function(s){var l=new Zt(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 NCe=8,g3=8,HC=5,zCe=function(){function e(t){this.group=new Je,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),wb(o,f.pos,f.box)}},e.prototype._prepare=function(t,r,n){for(var i=t;i;i=i.parentNode){var a=Kr(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+NCe*2,r.emptyItemWidth);r.totalWidth+=s+g3,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=Wye(r.pos,r.box),d=r.totalWidth,p=r.renderList,v=i.getModel("itemStyle").getItemStyle(),g=p.length-1;g>=0;g--){var y=p[g],x=y.node,b=y.width,S=y.text;d>f.width&&(d-=b-u,b=u,S=null);var w=new ai({shape:{points:BCe(l,0,b,c,g===p.length-1,g===0)},style:Ye(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new zt({style:vr(a,{text:S})}),textConfig:{position:"inside"},z2:Qd*1e4,onclick:at(s,x)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=vr(o,{text:S}),w.ensureState("emphasis").style=v,Rr(w,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(w),FCe(w,t,x),l+=b+g3}},e.prototype.remove=function(){this.group.removeAll()},e}();function BCe(e,t,r,n,i,a){var o=[[i?e:e-HC,t],[e+r,t],[e+r,t+n],[i?e:e-HC,t+n]];return!a&&o.splice(2,0,[e+r+HC,t+n/2]),!i&&o.push([e,t+n/2]),o}function FCe(e,t,r){tt(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&&Nb(r,t)}}var $Ce=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 VCe(){return new $Ce}var RA=Je,m3=Et,y3=3,x3="label",b3="upperLabel",HCe=Qd*10,GCe=Qd*2,WCe=Qd*3,Ju=$c([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),S3=function(e){var t=Ju(e);return t.stroke=t.fill=t.lineWidth=null,t},J1=Ot(),jCe=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=Ph(),r}return t.prototype.render=function(r,n,i,a){var o=n.findComponents({mainType:"series",subType:"treemap",query:a});if(!(bt(o,r)<0)){this.seriesModel=r,this.api=i,this.ecModel=n;var s=["treemapZoomToNode","treemapRootToNode"],l=dg(a,s,r),u=a&&a.type,c=r.layoutInfo,f=!this._oldTree,d=this._storage,p=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,p);g&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(v,y,r,p):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 RA,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=Ph(),l=Ph(),u=this._storage,c=[];function f(b,S,w,T){return UCe(n,l,u,i,s,c,b,S,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 p=this.seriesModel.layoutInfo,v=a.root.getLayout();v.width===p.width&&v.height===p.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:d,renderFinally:x};function g(b,S,w,T,C){T?(S=b,$(b,function(k,P){!k.isRemoved()&&I(P,P)})):new Fs(S,b,A,A).add(I).update(I).remove(at(I,null)).execute();function A(k){return k.getId()}function I(k,P){var R=k!=null?b[k]:null,O=P!=null?S[P]:null,E=f(R,O,w,C);E&&g(R&&R.viewChildren||[],O&&O.viewChildren||[],E,T,C+1)}}function y(b){var S=Ph();return b&&$(b,function(w,T){var C=S[T];$(w,function(A){A&&(C.push(A),J1(A).willDelete=!0)})}),S}function x(){$(d,function(b){$(b,function(S){S.parent&&S.parent.remove(S)})}),$(c,function(b){b.invisible=!0,b.dirty()})}},t.prototype._doAnimation=function(r,n,i,a){var o=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(je(o)?0:o)||0,u=(je(s)?null:s)||"cubicOut",c=VCe();$(n.willDeleteEls,function(f,d){$(f,function(p,v){if(!p.invisible){var g=p.parent,y,x=J1(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 b=0,S=0;x.willDelete||(b=x.nodeWidth/2,S=x.nodeHeight/2),y=d==="nodeGroup"?{x:b,y:S,style:{opacity:0}}:{shape:{x:b,y:S,width:0,height:0},style:{opacity:0}}}y&&c.add(p,y,l,0,u)}})}),$(this._storage,function(f,d){$(f,function(p,v){var g=n.lastsForAnimation[d][v],y={};g&&(p instanceof Je?g.oldX!=null&&(y.x=p.x,y.y=p.y,p.x=g.oldX,p.y=g.oldY):(g.oldShape&&(y.shape=oe({},p.shape),p.setShape(g.oldShape)),g.fadein?(p.setStyle("opacity",0),y.style={opacity:1}):p.style.opacity!==1&&(y.style={opacity:1})),c.add(p,y,l,0,u))})},this),this._state="animating",c.finished(Ne(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 em(r.getZr()),n.enable(this.seriesModel.get("roam")),i.zoomLimit=this.seriesModel.get("scaleLimit"),i.zoom=this.seriesModel.get("zoom"),n.on("pan",Ne(this._onPan,this)),n.on("zoom",Ne(this._onZoom,this)));var a=new vt(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)>y3||Math.abs(r.dy)>y3)){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 vt(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,p=u.max||1/0;f=Math.max(Math.min(p,f),d)}var v=f/c.zoom;c.zoom=f;var g=this.seriesModel.layoutInfo;n-=g.x,i-=g.y;var y=Wi();Zo(y,y,[-n,-i]),EI(y,y,[v,v]),Zo(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&&N1(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 zCe(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(Wk(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=Ph(),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}(lr);function Ph(){return{nodeGroup:[],background:[],content:[]}}function UCe(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 p=c.width,v=c.height,g=c.borderWidth,y=c.invisible,x=o.getRawIndex(),b=s&&s.getRawIndex(),S=o.viewChildren,w=c.upperHeight,T=S&&S.length,C=d.getModel("itemStyle"),A=d.getModel(["emphasis","itemStyle"]),I=d.getModel(["blur","itemStyle"]),k=d.getModel(["select","itemStyle"]),P=C.get("borderRadius")||0,R=te("nodeGroup",RA);if(!R)return;if(l.add(R),R.x=c.x||0,R.y=c.y||0,R.markRedraw(),J1(R).nodeWidth=p,J1(R).nodeHeight=v,c.isAboveViewRoot)return R;var O=te("background",m3,u,GCe);O&&q(R,O,T&&c.upperLabelHeight);var E=d.getModel("emphasis"),z=E.get("focus"),B=E.get("blurScope"),W=E.get("disabled"),X=z==="ancestor"?o.getAncestorsIndices():z==="descendant"?o.getDescendantIndices():z;if(T)Jv(R)&&hc(R,!1),O&&(hc(O,!W),f.setItemGraphicEl(o.dataIndex,O),Z2(O,X,B));else{var H=te("content",m3,u,WCe);H&&F(R,H),O.disableMorphing=!0,O&&Jv(O)&&hc(O,!1),hc(R,!W),f.setItemGraphicEl(o.dataIndex,R),Z2(R,X,B)}return R;function q(ce,ne,pe){var me=tt(ne);if(me.dataIndex=o.dataIndex,me.seriesIndex=e.seriesIndex,ne.setShape({x:0,y:0,width:p,height:v,r:P}),y)Y(ne);else{ne.invisible=!1;var le=o.getVisual("style"),Se=le.stroke,ze=S3(C);ze.fill=Se;var Te=Ju(A);Te.fill=A.get("borderColor");var ye=Ju(I);ye.fill=I.get("borderColor");var ft=Ju(k);if(ft.fill=k.get("borderColor"),pe){var He=p-2*g;Z(ne,Se,le.opacity,{x:g,y:0,width:He,height:w})}else ne.removeTextContent();ne.setStyle(ze),ne.ensureState("emphasis").style=Te,ne.ensureState("blur").style=ye,ne.ensureState("select").style=ft,Vc(ne)}ce.add(ne)}function F(ce,ne){var pe=tt(ne);pe.dataIndex=o.dataIndex,pe.seriesIndex=e.seriesIndex;var me=Math.max(p-2*g,0),le=Math.max(v-2*g,0);if(ne.culling=!0,ne.setShape({x:g,y:g,width:me,height:le,r:P}),y)Y(ne);else{ne.invisible=!1;var Se=o.getVisual("style"),ze=Se.fill,Te=S3(C);Te.fill=ze,Te.decal=Se.decal;var ye=Ju(A),ft=Ju(I),He=Ju(k);Z(ne,ze,Se.opacity,null),ne.setStyle(Te),ne.ensureState("emphasis").style=ye,ne.ensureState("blur").style=ft,ne.ensureState("select").style=He,Vc(ne)}ce.add(ne)}function Y(ce){!ce.invisible&&a.push(ce)}function Z(ce,ne,pe,me){var le=d.getModel(me?b3:x3),Se=Kr(d.get("name"),null),ze=le.getShallow("show");Mn(ce,un(d,me?b3:x3),{defaultText:ze?Se:null,inheritColor:ne,defaultOpacity:pe,labelFetcher:e,labelDataIndex:o.dataIndex});var Te=ce.getTextContent();if(Te){var ye=Te.style,ft=DI(ye.padding||0);me&&(ce.setTextConfig({layoutRect:me}),Te.disableLabelLayout=!0),Te.beforeUpdate=function(){var gt=Math.max((me?me.width:ce.shape.width)-ft[1]-ft[3],0),xt=Math.max((me?me.height:ce.shape.height)-ft[0]-ft[2],0);(ye.width!==gt||ye.height!==xt)&&Te.setStyle({width:gt,height:xt})},ye.truncateMinChar=2,ye.lineOverflow="truncate",j(ye,me,c);var He=Te.getState("emphasis");j(He?He.style:null,me,c)}}function j(ce,ne,pe){var me=ce?ce.text:null;if(!ne&&pe.isLeafRoot&&me!=null){var le=e.get("drillDownIcon",!0);ce.text=le?le+" "+me:me}}function te(ce,ne,pe,me){var le=b!=null&&r[ce][b],Se=i[ce];return le?(r[ce][b]=null,fe(Se,le)):y||(le=new ne,le instanceof Ma&&(le.z2=YCe(pe,me)),re(Se,le)),t[ce][x]=le}function fe(ce,ne){var pe=ce[x]={};ne instanceof RA?(pe.oldX=ne.x,pe.oldY=ne.y):pe.oldShape=oe({},ne.shape)}function re(ce,ne){var pe=ce[x]={},me=o.parentNode,le=ne instanceof Je;if(me&&(!n||n.direction==="drillDown")){var Se=0,ze=0,Te=i.background[me.getRawIndex()];!n&&Te&&Te.oldShape&&(Se=Te.oldShape.width,ze=Te.oldShape.height),le?(pe.oldX=0,pe.oldY=ze):pe.oldShape={x:Se,y:ze,width:0,height:0}}pe.fadein=!le}}function YCe(e,t){return e*HCe+t}var pg=$,qCe=Xe,ex=-1,ln=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=Ke(t);this.type=n,this.mappingMethod=r,this._normalizeData=KCe[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(GC(i),XCe(i)):r==="category"?i.categories?ZCe(i):GC(i,!0):(ri(r!=="linear"||i.dataExtent),GC(i))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return Ne(this._normalizeData,this)},e.listVisualTypes=function(){return Dt(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){Xe(t)?$(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var i,a=he(t)?[]:Xe(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&&pg(e.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(r[a]=t[a],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(he(t))t=t.slice();else if(qCe(t)){var r=[];pg(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||De(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(m0(f[1],t,c[1]))return o}else if(c[1]===1/0){if(m0(f[0],c[0],t))return o}else if(m0(f[0],c[0],t)&&m0(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(p,v){var g=Math.abs(p-t);g<a&&(a=g,i=v)}},e.visualHandlers={color:{applyVisual:Dh("color"),getColorMapper:function(){var t=this.option;return Ne(t.mappingMethod==="category"?function(r,n){return!n&&(r=this._normalizeData(r)),Qh.call(this,r)}:function(r,n,i){var a=!!i;return!n&&(r=this._normalizeData(r)),i=ww(r,t.parsedVisual,i),a?i:Is(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return Is(ww(t,this.option.parsedVisual),"rgba")},category:Qh,piecewise:function(t,r){var n=EA.call(this,r);return n==null&&(n=Is(ww(t,this.option.parsedVisual),"rgba")),n},fixed:ec}},colorHue:g0(function(t,r){return gv(t,r)}),colorSaturation:g0(function(t,r){return gv(t,null,r)}),colorLightness:g0(function(t,r){return gv(t,null,null,r)}),colorAlpha:g0(function(t,r){return C1(t,r)}),decal:{applyVisual:Dh("decal"),_normalizedToVisual:{linear:null,category:Qh,piecewise:null,fixed:null}},opacity:{applyVisual:Dh("opacity"),_normalizedToVisual:LA([0,1])},liftZ:{applyVisual:Dh("liftZ"),_normalizedToVisual:{linear:ec,category:ec,piecewise:ec,fixed:ec}},symbol:{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("symbol",i)},_normalizedToVisual:{linear:_3,category:Qh,piecewise:function(t,r){var n=EA.call(this,r);return n==null&&(n=_3.call(this,t)),n},fixed:ec}},symbolSize:{applyVisual:Dh("symbolSize"),_normalizedToVisual:LA([0,1])}},e}();function XCe(e){var t=e.pieceList;e.hasSpecialVisual=!1,$(t,function(r,n){r.originIndex=n,r.visual!=null&&(e.hasSpecialVisual=!0)})}function ZCe(e){var t=e.categories,r=e.categoryMap={},n=e.visual;if(pg(t,function(o,s){r[o]=s}),!he(n)){var i=[];Xe(n)?pg(n,function(o,s){var l=r[s];i[l??ex]=o}):i[ex]=n,n=e9(e,i)}for(var a=t.length-1;a>=0;a--)n[a]==null&&(delete r[t[a]],t.pop())}function GC(e,t){var r=e.visual,n=[];Xe(r)?pg(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]),e9(e,n)}function g0(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:LA([0,1])}}function _3(e){var t=this.option.visual;return t[Math.round(Qt(e,[0,1],[0,t.length-1],!0))]||{}}function Dh(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function Qh(e){var t=this.option.visual;return t[this.option.loop&&e!==ex?e%t.length:e]}function ec(){return this.option.visual[0]}function LA(e){return{linear:function(t){return Qt(t,e,this.option.visual,!0)},category:Qh,piecewise:function(t,r){var n=EA.call(this,r);return n==null&&(n=Qt(t,e,this.option.visual,!0)),n},fixed:ec}}function EA(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=ln.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function e9(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=ve(t,function(r){var n=ji(r);return n||[0,0,0,1]})),t}var KCe={linear:function(e){return Qt(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=ln.findPieceIndex(e,t,!0);if(r!=null)return Qt(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??ex},fixed:Vr};function m0(e,t,r){return e?t<=r:t<r}var QCe="itemStyle",t9=Ot();const JCe={seriesType:"treemap",reset:function(e){var t=e.getData().tree,r=t.root;r.isRemoved()||r9(r,{},e.getViewRoot().getAncestors(),e)}};function r9(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(QCe),l=eTe(s,t,n),u=o.ensureUniqueItemVisual(e.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),d;f!=null&&(d=w3(l),c=tTe(f,d)),u.stroke=c;var p=e.viewChildren;if(!p||!p.length)d=w3(l),u.fill=d;else{var v=rTe(e,i,a,s,l,p);$(p,function(g,y){if(g.depth>=r.length||g===r[g.depth]){var x=nTe(i,l,g,y,v,n);r9(g,x,r,n)}})}}}function eTe(e,t,r){var n=oe({},t),i=r.designatedVisualItemStyle;return $(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=e.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function w3(e){var t=WC(e,"color");if(t){var r=WC(e,"colorAlpha"),n=WC(e,"colorSaturation");return n&&(t=gv(t,null,null,n)),r&&(t=C1(t,r)),t}}function tTe(e,t){return t!=null?gv(t,null,null,e):null}function WC(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function rTe(e,t,r,n,i,a){if(!(!a||!a.length)){var o=jC(t,"color")||i.color!=null&&i.color!=="none"&&(jC(t,"colorAlpha")||jC(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 ln(f);return t9(d).drColorMappingBy=c,d}}}function jC(e,t){var r=e.get(t);return he(r)&&r.length?{name:t,range:r}:null}function nTe(e,t,r,n,i,a){var o=oe({},t);if(i){var s=i.type,l=s==="color"&&t9(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 hg=Math.max,tx=Math.min,C3=gn,jk=$,n9=["itemStyle","borderWidth"],iTe=["itemStyle","gapWidth"],aTe=["upperLabel","show"],oTe=["upperLabel","height"];const sTe={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),a=r.getHeight(),o=e.option,s=Qr(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=Ce(C3(s.width,l[0]),i),c=Ce(C3(s.height,l[1]),a),f=n&&n.type,d=["treemapZoomToNode","treemapRootToNode"],p=dg(n,d,e),v=f==="treemapRender"||f==="treemapMove"?n.rootRect:null,g=e.getViewRoot(),y=K8(g);if(f!=="treemapMove"){var x=f==="treemapZoomToNode"?pTe(e,p,g,u,c):v?[v.width,v.height]:[u,c],b=o.sort;b&&b!=="asc"&&b!=="desc"&&(b="desc");var S={squareRatio:o.squareRatio,sort:b,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),i9(g,S,!1,0),w=g.getLayout(),jk(y,function(C,A){var I=(y[A+1]||g).getValue();C.setLayout(oe({dataExtent:[I,I],borderWidth:0,upperHeight:0},w))})}var T=e.getData().tree.root;T.setLayout(hTe(s,v,p),!0),e.setLayoutInfo(s),a9(T,new vt(-s.x,-s.y,i,a),y,g,0)}};function i9(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(n9),u=s.get(iTe)/2,c=o9(s),f=Math.max(l,c),d=l-u,p=f-u;e.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=hg(i-2*d,0),a=hg(a-d-p,0);var v=i*a,g=lTe(e,s,v,t,r,n);if(g.length){var y={x:d,y:p,width:i,height:a},x=tx(i,a),b=1/0,S=[];S.area=0;for(var w=0,T=g.length;w<T;){var C=g[w];S.push(C),S.area+=C.getLayout().area;var A=dTe(S,x,t.squareRatio);A<=b?(w++,b=A):(S.area-=S.pop().getLayout().area,T3(S,x,y,u,!1),x=tx(y.width,y.height),S.length=S.area=0,b=1/0)}if(S.length&&T3(S,x,y,u,!0),!r){var I=s.get("childrenVisibleMin");I!=null&&v<I&&(r=!0)}for(var w=0,T=g.length;w<T;w++)i9(g[w],t,r,n+1)}}}function lTe(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=tr(o,function(p){return!p.isRemoved()}),cTe(o,s);var u=fTe(t,o,s);if(u.sum===0)return e.viewChildren=[];if(u.sum=uTe(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 uTe(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 cTe(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 fTe(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],jk(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 dTe(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?hg(u*n/l,l/(u*i)):1/0}function T3(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 p=e[f],v={},g=c?p.getLayout().area/c:0,y=v[l[o]]=hg(c-2*n,0),x=r[s[a]]+r[l[a]]-u,b=f===d-1||x<g?x:g,S=v[l[a]]=hg(b-2*n,0);v[s[o]]=r[s[o]]+tx(n,y/2),v[s[a]]=u+tx(n,S/2),u+=b,p.setLayout(v,!0)}r[s[o]]+=c,r[l[o]]-=c}function pTe(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,p=f.length;d<p;d++)c+=f[d].getValue();var v=a.getValue();if(v===0)return o;u*=c/v;var g=s.getModel(),y=g.get(n9),x=Math.max(y,o9(g));u+=4*y*y+(3*y+x)*Math.pow(u,.5),u>FN&&(u=FN),a=s}u<l&&(u=l);var b=Math.pow(u/l,.5);return[n*b,i*b]}function hTe(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 a9(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 vt(t.x-a.x,t.y-a.y,t.width,t.height);jk(e.viewChildren||[],function(u){a9(u,l,r,n,i+1)})}}function o9(e){return e.get(aTe)?e.get(oTe):0}function vTe(e){e.registerSeriesModel(ECe),e.registerChartView(jCe),e.registerVisual(JCe),e.registerLayout(sTe),LCe(e)}function gTe(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){Bt(u)&&(u=o[u]);for(var c=0;c<t.length;c++)if(!t[c].isSelected(u))return!1}return!0})})}function mTe(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){De(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 y0(e){return e instanceof Array||(e=[e,e]),e}function yTe(e){e.eachSeriesByType("graph",function(t){var r=t.getGraph(),n=t.getEdgeData(),i=y0(t.get("edgeSymbol")),a=y0(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=y0(s.getShallow("symbol",!0)),c=y0(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),d=n.ensureUniqueItemVisual(o,"style");switch(oe(d,f),d.stroke){case"source":{var p=l.node1.getVisual("style");d.stroke=p&&p.fill;break}case"target":{var p=l.node2.getVisual("style");d.stroke=p&&p.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 OA="-->",zb=function(e){return e.get("autoCurveness")||null},s9=function(e,t){var r=zb(e),n=20,i=[];if(Bt(r))n=r;else if(he(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},vg=function(e,t,r){var n=[e.id,e.dataIndex].join("."),i=[t.id,t.dataIndex].join(".");return[r.uid,n,i].join(OA)},l9=function(e){var t=e.split(OA);return[t[0],t[2],t[1]].join(OA)},xTe=function(e,t){var r=vg(e.node1,e.node2,t);return t.__edgeMap[r]},bTe=function(e,t){var r=NA(vg(e.node1,e.node2,t),t),n=NA(vg(e.node2,e.node1,t),t);return r+n},NA=function(e,t){var r=t.__edgeMap;return r[e]?r[e].length:0};function STe(e){zb(e)&&(e.__curvenessList=[],e.__edgeMap={},s9(e))}function _Te(e,t,r,n){if(zb(r)){var i=vg(e,t,r),a=r.__edgeMap,o=a[l9(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 Uk(e,t,r,n){var i=zb(t),a=he(i);if(!i)return null;var o=xTe(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=bTe(e,t);s9(t,u),e.lineStyle=e.lineStyle||{};var c=vg(e.node1,e.node2,t),f=t.__curvenessList,d=a||u%2?0:1;if(o.isForward)return f[d+s];var p=l9(c),v=NA(p,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 u9(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")])}),Yk(r,e)}}function Yk(e,t){e.eachEdge(function(r,n){var i=Ho(r.getModel().get(["lineStyle","curveness"]),-Uk(r,t,n,!0),0),a=As(r.node1.getLayout()),o=As(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 wTe(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=[];$(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])}Yk(a.graph,r)}else(!n||n==="none")&&u9(r)})}function Jh(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 ev(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),+t}var A3=Math.PI,UC=[];function qk(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),p=d[0],v=d[1],g=[p-l,v-u];Xd(g,g),z0(g,g,c),r.setLayout([l+g[0],u+g[1]],!0);var y=e.get(["circular","rotateLabel"]);c9(r,y,l,u)}CTe[t](e,s,o,c,l,u,f),s.eachEdge(function(x,b){var S=Ho(x.getModel().get(["lineStyle","curveness"]),Uk(x,e,b),0),w=As(x.node1.getLayout()),T=As(x.node2.getLayout()),C,A=(w[0]+T[0])/2,I=(w[1]+T[1])/2;+S&&(S*=3,C=[l*S+A*(1-S),u*S+I*(1-S)]),x.setLayout([w,T,C])})}}}var CTe={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;UC.length=o;var l=Jh(e);t.eachNode(function(f){var d=ev(f);isNaN(d)&&(d=2),d<0&&(d=0),d*=l;var p=Math.asin(d/2/n);isNaN(p)&&(p=A3/2),UC[f.dataIndex]=p,s+=p*2});var u=(2*A3-s)/o/2,c=0;t.eachNode(function(f){var d=u+UC[f.dataIndex];c+=d,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([n*Math.cos(c)+i,n*Math.sin(c)+a]),c+=d})}};function c9(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 TTe(e){e.eachSeriesByType("graph",function(t){t.get("layout")==="circular"&&qk(t,"symbolSize")})}var jf=S2;function ATe(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=Uc(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=As(f.p),f.edges=null}var d=r.friction==null?.6:r.friction,p=d,v,g;return{warmUp:function(){p=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=[],b=n.length,S=0;S<i.length;S++){var w=i[S];if(!w.ignoreForceLayout){var T=w.n1,C=w.n2;dc(x,C.p,T.p);var A=_2(x)-w.d,I=C.w/(T.w+C.w);isNaN(I)&&(I=0),Xd(x,x),!T.fixed&&jf(T.p,T.p,x,I*A*p),!C.fixed&&jf(C.p,C.p,x,-(1-I)*A*p)}}for(var S=0;S<b;S++){var k=n[S];k.fixed||(dc(x,l,k.p),jf(k.p,k.p,x,u*p))}for(var S=0;S<b;S++)for(var T=n[S],P=S+1;P<b;P++){var C=n[P];dc(x,C.p,T.p);var A=_2(x);A===0&&(Zhe(x,Math.random()-.5,Math.random()-.5),A=1);var R=(T.rep+C.rep)/A/A;!T.fixed&&jf(T.pp,T.pp,x,R),!C.fixed&&jf(C.pp,C.pp,x,-R)}for(var O=[],S=0;S<b;S++){var k=n[S];k.fixed||(dc(O,k.p,k.pp),jf(k.p,k.p,O,p),Xn(k.pp,k.p))}p=p*.992;var E=p<.01;g&&g(n,i,E),y&&y(E)}}}function MTe(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(S){var w=a.getId(S);a.setItemLayout(S,n[w]||[NaN,NaN])}):!l||l==="none"?u9(t):l==="circular"&&qk(t,"value");var u=a.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),d=s.get("edgeLength"),p=he(f)?f:[f,f],v=he(d)?d:[d,d];v=[v[1],v[0]];var g=a.mapArray("value",function(S,w){var T=a.getItemLayout(w),C=Qt(S,u,p);return isNaN(C)&&(C=(p[0]+p[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(S,w){var T=i.getEdgeByIndex(w),C=Qt(S,c,v);isNaN(C)&&(C=(v[0]+v[1])/2);var A=T.getModel(),I=Ho(T.getModel().get(["lineStyle","curveness"]),-Uk(T,t,w,!0),0);return{n1:g[T.node1.dataIndex],n2:g[T.node2.dataIndex],d:C,curveness:I,ignoreForceLayout:A.get("ignoreForceLayout")}}),x=r.getBoundingRect(),b=ATe(g,y,{rect:x,gravity:s.get("gravity"),friction:s.get("friction")});b.beforeStep(function(S,w){for(var T=0,C=S.length;T<C;T++)S[T].fixed&&Xn(S[T].p,i.getNodeByIndex(T).getLayout())}),b.afterStep(function(S,w,T){for(var C=0,A=S.length;C<A;C++)S[C].fixed||i.getNodeByIndex(C).setLayout(S[C].p),n[a.getId(C)]=S[C].p;for(var C=0,A=w.length;C<A;C++){var I=w[C],k=i.getEdgeByIndex(C),P=I.n1.p,R=I.n2.p,O=k.getLayout();O=O?O.slice():[],O[0]=O[0]||[],O[1]=O[1]||[],Xn(O[0],P),Xn(O[1],R),+I.curveness&&(O[2]=[(P[0]+R[0])/2-(P[1]-R[1])*I.curveness,(P[1]+R[1])/2-(R[0]-P[0])*I.curveness]),k.setLayout(O)}}),t.forceLayout=b,t.preservedPoints=n,b.step()}else t.forceLayout=null})}function ITe(e,t,r){var n=oe(e.getBoxLayoutParams(),{aspect:r});return Qr(n,{width:t.getWidth(),height:t.getHeight()})}function kTe(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=[];cb(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=ITe(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],p=c.width,v=c.height,g=n.coordinateSystem=new tm;g.zoomLimit=n.get("scaleLimit"),g.setBoundingRect(s[0],s[1],f,d),g.setViewRect(c.x,c.y,p,v),g.setCenter(n.get("center"),t),g.setZoom(n.get("zoom")),r.push(g)}}),r}var M3=on.prototype,YC=$g.prototype,f9=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})(f9);function qC(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var PTe=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 f9},t.prototype.buildPath=function(r,n){qC(n)?M3.buildPath.call(this,r,n):YC.buildPath.call(this,r,n)},t.prototype.pointAt=function(r){return qC(this.shape)?M3.pointAt.call(this,r):YC.pointAt.call(this,r)},t.prototype.tangentAt=function(r){var n=this.shape,i=qC(n)?[n.x2-n.x1,n.y2-n.y1]:YC.tangentAt.call(this,r);return Xd(i,i)},t}(wt),XC=["fromSymbol","toSymbol"];function I3(e){return"_"+e+"Type"}function k3(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=lp(i),u=Xc(o||0,l);return n+l+u+(a||"")+(s||"")}function P3(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=lp(i),u=Xc(o||0,l),c=Ur(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 DTe(e){var t=new PTe({name:"line",subPixelOptimize:!0});return zA(t.shape,e),t}function zA(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 Xk=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=DTe(o);s.shape.percent=0,mr(s,{shape:{percent:1}},a,n),this.add(s),$(XC,function(l){var u=P3(l,r,n);this.add(u),this[I3(l)]=k3(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:{}};zA(l.shape,s),Ht(o,l,a,n),$(XC,function(u){var c=k3(u,r,n),f=I3(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=P3(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,p=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"),p=g.get("blurScope"),c=un(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,$(XC,function(C){var A=this.childOfName(C);if(A){A.setColor(x),A.style.opacity=y.opacity;for(var I=0;I<ni.length;I++){var k=ni[I],P=o.getState(k);if(P){var R=P.style||{},O=A.ensureState(k),E=O.style||(O.style={});R.stroke!=null&&(E[A.__isEmptyBrush?"stroke":"fill"]=R.stroke),R.opacity!=null&&(E.opacity=R.opacity)}}A.markRedraw()}},this);var b=a.getRawValue(n);Mn(this,c,{labelDataIndex:n,labelFetcher:{getFormattedLabel:function(C,A){return a.getFormattedLabel(C,A,r.dataType)}},inheritColor:x||"#000",defaultOpacity:y.opacity,defaultText:(b==null?r.getName(n):isFinite(b)?Or(b):b)+""});var S=this.getTextContent();if(S){var w=c.normal;S.__align=S.style.align,S.__verticalAlign=S.style.verticalAlign,S.__position=w.get("position")||"middle";var T=w.get("distance");he(T)||(T=[T,T]),S.__labelDistance=T}this.setTextConfig({position:null,local:!0,inside:!1}),Rr(this,d,p,f)},t.prototype.highlight=function(){zs(this)},t.prototype.downplay=function(){Bs(this)},t.prototype.updateLayout=function(r,n){this.setLinePoints(r.getItemLayout(n))},t.prototype.setLinePoints=function(r){var n=this.childOfName("line");zA(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=dc([],f,c);Xd(d,d);function p(P,R){var O=P.__specifiedRotation;if(O==null){var E=l.tangentAt(R);P.attr("rotation",(R===1?-1:1)*Math.PI/2-Math.atan2(E[1],E[0]))}else P.attr("rotation",O)}if(n&&(n.setPosition(c),p(n,0),n.scaleX=n.scaleY=o*u,n.markRedraw()),i&&(i.setPosition(f),p(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,b=y[1]*o,S=u/2,w=l.tangentAt(S),T=[w[1],-w[0]],C=l.pointAt(S);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 I=-Math.atan2(w[1],w[0]);f[0]<c[0]&&(I=Math.PI+I),a.rotation=I}var k=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":k=-b,g="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":k=b,g="top";break;default:k=0,g="middle"}switch(a.__position){case"end":a.x=d[0]*x+f[0],a.y=d[1]*b+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]*b+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]+k,v=w[0]<0?"right":"left",a.originX=-x*A,a.originY=-k;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=C[0],a.y=C[1]+k,v="center",a.originY=-k;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-x*A+f[0],a.y=f[1]+k,v=w[0]>=0?"right":"left",a.originX=x*A,a.originY=-k;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||g,align:a.__align||v})}},t}(Je),Zk=function(){function e(t){this.group=new Je,this._LineCtor=t||Xk}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=D3(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=D3(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!RTe(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i<t.end;i++){var a=r.getItemLayout(i);if(ZC(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){lu(this._progressiveEls||this.group,t)},e.prototype._doAdd=function(t,r,n){var i=t.getItemLayout(r);if(ZC(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(!ZC(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 RTe(e){return e.animators&&e.animators.length>0}function D3(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:un(t)}}function R3(e){return isNaN(e[0])||isNaN(e[1])}function ZC(e){return e&&!R3(e[0])&&!R3(e[1])}var KC=[],QC=[],JC=[],Uf=vn,eT=_c,L3=Math.abs;function E3(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){KC[0]=Uf(n[0],i[0],a[0],c),KC[1]=Uf(n[1],i[1],a[1],c);var f=L3(eT(KC,t)-l);f<o&&(o=f,s=c)}for(var d=0;d<32;d++){var p=s+u;QC[0]=Uf(n[0],i[0],a[0],s),QC[1]=Uf(n[1],i[1],a[1],s),JC[0]=Uf(n[0],i[0],a[0],p),JC[1]=Uf(n[1],i[1],a[1],p);var f=eT(QC,t)-l;if(L3(f)<.01)break;var v=eT(JC,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 tT(e,t){var r=[],n=Yv,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=[As(u[0]),As(u[1])],u[2]&&u.__original.push(As(u[2])));var d=u.__original;if(u[2]!=null){if(Xn(i[0],d[0]),Xn(i[1],d[2]),Xn(i[2],d[1]),c&&c!=="none"){var p=ev(s.node1),v=E3(i,d[0],p*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 p=ev(s.node2),v=E3(i,d[1],p*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]}Xn(u[0],i[0]),Xn(u[1],i[2]),Xn(u[2],i[1])}else{if(Xn(a[0],d[0]),Xn(a[1],d[1]),dc(o,a[1],a[0]),Xd(o,o),c&&c!=="none"){var p=ev(s.node1);S2(a[0],a[0],o,p*t)}if(f&&f!=="none"){var p=ev(s.node2);S2(a[1],a[1],o,-p*t)}Xn(u[0],a[0]),Xn(u[1],a[1])}})}function O3(e){return e.type==="view"}var LTe=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 Xg,a=new Zk,o=this.group;this._controller=new em(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(O3(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):Ht(u,c,r)}tT(r.getGraph(),Jh(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 p=r.forceLayout,v=r.get(["force","layoutAnimation"]);p&&this._startForceLayoutIteration(p,v);var g=r.get("layout");f.graph.eachNode(function(S){var w=S.dataIndex,T=S.getGraphicEl(),C=S.getModel();if(T){T.off("drag").off("dragend");var A=C.get("draggable");A&&T.on("drag",function(k){switch(g){case"force":p.warmUp(),!a._layouting&&a._startForceLayoutIteration(p,v),p.setFixed(w),f.setItemLayout(w,[T.x,T.y]);break;case"circular":f.setItemLayout(w,[T.x,T.y]),S.setLayout({fixed:!0},!0),qk(r,"symbolSize",S,[k.offsetX,k.offsetY]),a.updateLayout(r);break;case"none":default:f.setItemLayout(w,[T.x,T.y]),Yk(r.getGraph(),r),a.updateLayout(r);break}}).on("dragend",function(){p&&p.setUnfixed(w)}),T.setDraggable(A,!!C.get("cursor"));var I=C.get(["emphasis","focus"]);I==="adjacency"&&(tt(T).focus=S.getAdjacentDataIndices())}}),f.graph.eachEdge(function(S){var w=S.getGraphicEl(),T=S.getModel().get(["emphasis","focus"]);w&&T==="adjacency"&&(tt(w).focus={edge:[S.dataIndex],node:[S.node1.dataIndex,S.node2.dataIndex]})});var y=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),x=f.getLayout("cx"),b=f.getLayout("cy");f.graph.eachNode(function(S){c9(S,y,x,b)}),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)&&!Eb(u,i,r)}),!O3(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){Bk(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){Fk(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(),tT(r.getGraph(),Jh(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=Jh(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){tT(r.getGraph(),Jh(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}(lr);function Yf(e){return"_EC_"+e}var ETe=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[Yf(t)]){var i=new tc(t,r);return i.hostGraph=this,this.nodes.push(i),n[Yf(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[Yf(t)]},e.prototype.addEdge=function(t,r,n){var i=this._nodesMap,a=this._edgesMap;if(Bt(t)&&(t=this.nodes[t]),Bt(r)&&(r=this.nodes[r]),t instanceof tc||(t=i[Yf(t)]),r instanceof tc||(r=i[Yf(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new d9(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 tc&&(t=t.id),r instanceof tc&&(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 tc||(r=this._nodesMap[Yf(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}(),tc=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=$e(),r=$e(),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}(),d9=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=$e(),r=$e();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 p9(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)}}}Yr(tc,p9("hostGraph","data"));Yr(d9,p9("hostGraph","edgeData"));function h9(e,t,r,n,i){for(var a=new ETe(n),o=0;o<e.length;o++)a.addNode(gn(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(gn(Kr(c.id,null),f+" > "+d)),u++)}var p=r.get("coordinateSystem"),v;if(p==="cartesian2d"||p==="polar")v=Ys(e,r);else{var g=Wg.get(p),y=g?g.dimensions||[]:[];bt(y,"value")<0&&y.concat(["value"]);var x=Ug(e,{coordDimensions:y,encodeDefine:r.getEncode()}).dimensions;v=new ei(x,r),v.initData(e)}var b=new ei(["value"],r);return b.initData(l,s),i&&i(v,b),X8({mainData:v,struct:a,structAttr:"graph",datas:{node:v,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var OTe=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 Jg(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),Bc(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){STe(this);var s=h9(a,i,this,!0,l);return $(s.edges,function(u){_Te(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=Zt.prototype.getModel;function d(v,g){var y=f.call(this,v,g);return y.resolveParentPath=p,y}c.wrapMethod("getItemModel",function(v){return v.resolveParentPath=p,v.getModel=d,v});function p(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),cn("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=BW({series:this,dataIndex:r,multipleSeries:n});return f},t.prototype._updateCategoriesData=function(){var r=ve(this.option.categories||[],function(i){return i.value!=null?i:oe({value:0},i)}),n=new ei(["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}(gr),NTe={type:"graphRoam",event:"graphRoam",update:"none"};function zTe(e){e.registerChartView(LTe),e.registerSeriesModel(OTe),e.registerProcessor(gTe),e.registerVisual(mTe),e.registerVisual(yTe),e.registerLayout(wTe),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,TTe),e.registerLayout(MTe),e.registerCoordinateSystem("graphView",{dimensions:tm.dimensions,create:kTe}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Vr),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Vr),e.registerAction(NTe,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=Vk(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var BTe=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),FTe=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 BTe},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}(wt);function $Te(e,t){var r=e.get("center"),n=t.getWidth(),i=t.getHeight(),a=Math.min(n,i),o=Ce(r[0],t.getWidth()),s=Ce(r[1],t.getHeight()),l=Ce(e.get("radius"),a/2);return{cx:o,cy:s,r:l}}function x0(e,t){var r=e==null?"":e+"";return t&&(De(t)?r=t.replace("{value}",r):je(t)&&(r=t(e))),r}var VTe=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=$Te(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"),p=d?Z1:ii,v=f.get("show"),g=f.getModel("lineStyle"),y=g.get("width"),x=[u,c];GI(x,!l),u=x[0],c=x[1];for(var b=c-u,S=u,w=[],T=0;v&&T<a.length;T++){var C=Math.min(Math.max(a[T][0],0),1);c=u+b*C;var A=new p({shape:{startAngle:S,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),S=c}w.reverse(),$(w,function(k){return s.add(k)});var I=function(k){if(k<=0)return a[0][1];var P;for(P=0;P<a.length;P++)if(a[P][0]>=k&&(P===0?0:a[P-1][0])<k)return a[P][1];return a[P-1][1]};this._renderTicks(r,n,i,I,o,u,c,l,y),this._renderTitleAndDetail(r,n,i,I,o),this._renderAnchor(r,o),this._renderPointer(r,n,i,I,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,p=o.cy,v=o.r,g=+r.get("min"),y=+r.get("max"),x=r.getModel("splitLine"),b=r.getModel("axisTick"),S=r.getModel("axisLabel"),w=r.get("splitNumber"),T=b.get("splitNumber"),C=Ce(x.get("length"),v),A=Ce(b.get("length"),v),I=s,k=(l-s)/w,P=k/T,R=x.getModel("lineStyle").getLineStyle(),O=b.getModel("lineStyle").getLineStyle(),E=x.get("distance"),z,B,W=0;W<=w;W++){if(z=Math.cos(I),B=Math.sin(I),x.get("show")){var X=E?E+c:c,H=new on({shape:{x1:z*(v-X)+d,y1:B*(v-X)+p,x2:z*(v-C-X)+d,y2:B*(v-C-X)+p},style:R,silent:!0});R.stroke==="auto"&&H.setStyle({stroke:a(W/w)}),f.add(H)}if(S.get("show")){var X=S.get("distance")+E,q=x0(Or(W/w*(y-g)+g),S.get("formatter")),F=a(W/w),Y=z*(v-C-X)+d,Z=B*(v-C-X)+p,j=S.get("rotate"),te=0;j==="radial"?(te=-I+2*Math.PI,te>Math.PI/2&&(te+=Math.PI)):j==="tangential"?te=-I-Math.PI/2:Bt(j)&&(te=j*Math.PI/180),te===0?f.add(new zt({style:vr(S,{text:q,x:Y,y:Z,verticalAlign:B<-.8?"top":B>.8?"bottom":"middle",align:z<-.4?"left":z>.4?"right":"center"},{inheritColor:F}),silent:!0})):f.add(new zt({style:vr(S,{text:q,x:Y,y:Z,verticalAlign:"middle",align:"center"},{inheritColor:F}),silent:!0,originX:Y,originY:Z,rotation:te}))}if(b.get("show")&&W!==w){var X=b.get("distance");X=X?X+c:c;for(var fe=0;fe<=T;fe++){z=Math.cos(I),B=Math.sin(I);var re=new on({shape:{x1:z*(v-X)+d,y1:B*(v-X)+p,x2:z*(v-A-X)+d,y2:B*(v-A-X)+p},silent:!0,style:O});O.stroke==="auto"&&re.setStyle({stroke:a((W+fe/T)/w)}),f.add(re),I+=P}I-=P}else I+=k}},t.prototype._renderPointer=function(r,n,i,a,o,s,l,u,c){var f=this.group,d=this._data,p=this._progressEls,v=[],g=r.get(["pointer","show"]),y=r.getModel("progress"),x=y.get("show"),b=r.getData(),S=b.mapDimension("value"),w=+r.get("min"),T=+r.get("max"),C=[w,T],A=[s,l];function I(P,R){var O=b.getItemModel(P),E=O.getModel("pointer"),z=Ce(E.get("width"),o.r),B=Ce(E.get("length"),o.r),W=r.get(["pointer","icon"]),X=E.get("offsetCenter"),H=Ce(X[0],o.r),q=Ce(X[1],o.r),F=E.get("keepAspect"),Y;return W?Y=Ur(W,H-z/2,q-B,z,B,null,F):Y=new FTe({shape:{angle:-Math.PI/2,width:z,r:B,x:H,y:q}}),Y.rotation=-(R+Math.PI/2),Y.x=o.cx,Y.y=o.cy,Y}function k(P,R){var O=y.get("roundCap"),E=O?Z1:ii,z=y.get("overlap"),B=z?y.get("width"):c/b.count(),W=z?o.r-B:o.r-(P+1)*B,X=z?o.r:o.r-P*B,H=new E({shape:{startAngle:s,endAngle:R,cx:o.cx,cy:o.cy,clockwise:u,r0:W,r:X}});return z&&(H.z2=T-b.get(S,P)%T),H}(x||g)&&(b.diff(d).add(function(P){var R=b.get(S,P);if(g){var O=I(P,s);mr(O,{rotation:-((isNaN(+R)?A[0]:Qt(R,C,A,!0))+Math.PI/2)},r),f.add(O),b.setItemGraphicEl(P,O)}if(x){var E=k(P,s),z=y.get("clip");mr(E,{shape:{endAngle:Qt(R,C,A,z)}},r),f.add(E),Y2(r.seriesIndex,b.dataType,P,E),v[P]=E}}).update(function(P,R){var O=b.get(S,P);if(g){var E=d.getItemGraphicEl(R),z=E?E.rotation:s,B=I(P,z);B.rotation=z,Ht(B,{rotation:-((isNaN(+O)?A[0]:Qt(O,C,A,!0))+Math.PI/2)},r),f.add(B),b.setItemGraphicEl(P,B)}if(x){var W=p[R],X=W?W.shape.endAngle:s,H=k(P,X),q=y.get("clip");Ht(H,{shape:{endAngle:Qt(O,C,A,q)}},r),f.add(H),Y2(r.seriesIndex,b.dataType,P,H),v[P]=H}}).execute(),b.each(function(P){var R=b.getItemModel(P),O=R.getModel("emphasis"),E=O.get("focus"),z=O.get("blurScope"),B=O.get("disabled");if(g){var W=b.getItemGraphicEl(P),X=b.getItemVisual(P,"style"),H=X.fill;if(W instanceof mn){var q=W.style;W.useStyle(oe({image:q.image,x:q.x,y:q.y,width:q.width,height:q.height},X))}else W.useStyle(X),W.type!=="pointer"&&W.setColor(H);W.setStyle(R.getModel(["pointer","itemStyle"]).getItemStyle()),W.style.fill==="auto"&&W.setStyle("fill",a(Qt(b.get(S,P),C,[0,1],!0))),W.z2EmphasisLift=0,An(W,R),Rr(W,E,z,B)}if(x){var F=v[P];F.useStyle(b.getItemVisual(P,"style")),F.setStyle(R.getModel(["progress","itemStyle"]).getItemStyle()),F.z2EmphasisLift=0,An(F,R),Rr(F,E,z,B)}}),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=Ur(s,n.cx-o/2+Ce(l[0],n.r),n.cy-o/2+Ce(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 Je,p=[],v=[],g=r.isAnimationEnabled(),y=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(x){p[x]=new zt({silent:!0}),v[x]=new zt({silent:!0})}).update(function(x,b){p[x]=s._titleEls[b],v[x]=s._detailEls[b]}).execute(),l.each(function(x){var b=l.getItemModel(x),S=l.get(u,x),w=new Je,T=a(Qt(S,[c,f],[0,1],!0)),C=b.getModel("title");if(C.get("show")){var A=C.get("offsetCenter"),I=o.cx+Ce(A[0],o.r),k=o.cy+Ce(A[1],o.r),P=p[x];P.attr({z2:y?0:2,style:vr(C,{x:I,y:k,text:l.getName(x),align:"center",verticalAlign:"middle"},{inheritColor:T})}),w.add(P)}var R=b.getModel("detail");if(R.get("show")){var O=R.get("offsetCenter"),E=o.cx+Ce(O[0],o.r),z=o.cy+Ce(O[1],o.r),B=Ce(R.get("width"),o.r),W=Ce(R.get("height"),o.r),X=r.get(["progress","show"])?l.getItemVisual(x,"style").fill:T,P=v[x],H=R.get("formatter");P.attr({z2:y?0:2,style:vr(R,{x:E,y:z,text:x0(S,H),width:isNaN(B)?null:B,height:isNaN(W)?null:W,align:"center",verticalAlign:"middle"},{inheritColor:X})}),HG(P,{normal:R},S,function(F){return x0(F,H)}),g&&GG(P,x,l,r,{getFormattedLabel:function(F,Y,Z,j,te,fe){return x0(fe?fe.interpolatedValue:S,H)}}),w.add(P)}d.add(w)}),this.group.add(d),this._titleEls=p,this._detailEls=v},t.type="gauge",t}(lr),HTe=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 cp(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}(gr);function GTe(e){e.registerChartView(VTe),e.registerSeriesModel(HTe)}var WTe=["itemStyle","opacity"],jTe=function(e){J(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new li,s=new zt;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(WTe);c=c??1,i||no(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,mr(a,{style:{opacity:c}},o,n)):Ht(a,{style:{opacity:c},shape:{points:l.points}},o,n),An(a,s),this._updateLabel(r,n),Rr(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;Mn(o,un(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 p=c.linePoints;a.setShape({points:p}),i.textGuideLineConfig={anchor:p?new dt(p[0][0],p[0][1]):null},Ht(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),Mk(i,Ik(l),{stroke:d})},t}(ai),UTe=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 jTe(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);eg(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}(lr),YTe=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 Jg(Ne(this.getData,this),Ne(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return cp(this,{coordDimensions:["value"],encodeDefaulter:at(ok,this)})},t.prototype._defaultLabelLine=function(r){Bc(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}(gr);function qTe(e,t){return Qr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function XTe(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 je(t)?i.sort(t):t!=="none"&&i.sort(function(l,u){return a?n[l]-n[u]:n[u]-n[l]}),i}function ZTe(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,p,v;if(c)o==="insideLeft"?(d=(u[0][0]+u[3][0])/2+5,p=(u[0][1]+u[3][1])/2,f="left"):o==="insideRight"?(d=(u[1][0]+u[2][0])/2-5,p=(u[1][1]+u[2][1])/2,f="right"):(d=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,p=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,f="center"),v=[[d,p],[d,p]];else{var g=void 0,y=void 0,x=void 0,b=void 0,S=s.get("length");o==="left"?(g=(u[3][0]+u[0][0])/2,y=(u[3][1]+u[0][1])/2,x=g-S,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+S,d=x+5,f="left"):o==="top"?(g=(u[3][0]+u[0][0])/2,y=(u[3][1]+u[0][1])/2,b=y-S,p=b-5,f="center"):o==="bottom"?(g=(u[1][0]+u[2][0])/2,y=(u[1][1]+u[2][1])/2,b=y+S,p=b+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"?(b=y-S,p=b-5,f="center"):(x=g+S,d=x+5,f="top")):o==="rightBottom"?(g=u[2][0],y=u[2][1],r==="horizontal"?(b=y+S,p=b+5,f="center"):(x=g+S,d=x+5,f="bottom")):o==="leftTop"?(g=u[0][0],y=r==="horizontal"?u[0][1]:u[1][1],r==="horizontal"?(b=y-S,p=b-5,f="center"):(x=g-S,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"?(b=y+S,p=b+5,f="center"):(x=g-S,d=x-5,f="right")):(g=(u[1][0]+u[2][0])/2,y=(u[1][1]+u[2][1])/2,r==="horizontal"?(b=y+S,p=b+5,f="center"):(x=g+S,d=x+5,f="left")),r==="horizontal"?(x=g,d=x):(b=y,p=b),v=[[g,y],[x,b]]}l.label={linePoints:v,x:d,y:p,verticalAlign:"middle",textAlign:f,inside:c}})}function KTe(e,t){e.eachSeriesByType("funnel",function(r){var n=r.getData(),i=n.mapDimension("value"),a=r.get("sort"),o=qTe(r,t),s=r.get("orient"),l=o.width,u=o.height,c=XTe(n,a),f=o.x,d=o.y,p=s==="horizontal"?[Ce(r.get("minSize"),u),Ce(r.get("maxSize"),u)]:[Ce(r.get("minSize"),l),Ce(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"),b=r.get("gap"),S=s==="horizontal"?l:u,w=(S-b*(n.count()-1))/n.count(),T=function(z,B){if(s==="horizontal"){var W=n.get(i,z)||0,X=Qt(W,[g,y],p,!0),H=void 0;switch(x){case"top":H=d;break;case"center":H=d+(u-X)/2;break;case"bottom":H=d+(u-X);break}return[[B,H],[B,H+X]]}var q=n.get(i,z)||0,F=Qt(q,[g,y],p,!0),Y;switch(x){case"left":Y=f;break;case"center":Y=f+(l-F)/2;break;case"right":Y=f+l-F;break}return[[Y,B],[Y+F,B]]};a==="ascending"&&(w=-w,b=-b,s==="horizontal"?f+=l:d+=u,c=c.reverse());for(var C=0;C<c.length;C++){var A=c[C],I=c[C+1],k=n.getItemModel(A);if(s==="horizontal"){var P=k.get(["itemStyle","width"]);P==null?P=w:(P=Ce(P,l),a==="ascending"&&(P=-P));var R=T(A,f),O=T(I,f+P);f+=P+b,n.setItemLayout(A,{points:R.concat(O.slice().reverse())})}else{var E=k.get(["itemStyle","height"]);E==null?E=w:(E=Ce(E,u),a==="ascending"&&(E=-E));var R=T(A,d),O=T(I,d+E);d+=E+b,n.setItemLayout(A,{points:R.concat(O.slice().reverse())})}}ZTe(n)})}function QTe(e){e.registerChartView(UTe),e.registerSeriesModel(YTe),e.registerLayout(KTe),e.registerProcessor(Qg("funnel"))}var JTe=.3,e2e=function(e){J(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._dataGroup=new Je,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=z3(r);s.diff(l).add(d).update(p).remove(v).execute();function d(y){var x=N3(s,o,y,c,u);rT(x,s,y,f)}function p(y,x){var b=l.getItemGraphicEl(x),S=v9(s,y,c,u);s.setItemGraphicEl(y,b),Ht(b,{shape:{points:S}},r,y),no(b),rT(b,s,y,f)}function v(y){var x=l.getItemGraphicEl(y);o.remove(x)}if(!this._initialized){this._initialized=!0;var g=t2e(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=z3(n),u=this._progressiveEls=[],c=r.start;c<r.end;c++){var f=N3(a,this._dataGroup,c,s,o);f.incremental=!0,rT(f,a,c,l),u.push(f)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t}(lr);function t2e(e,t,r){var n=e.model,i=e.getRect(),a=new Et({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),mr(a,{shape:{width:i.width,height:i.height}},t,r),a}function v9(e,t,r,n){for(var i=[],a=0;a<r.length;a++){var o=r[a],s=e.get(e.mapDimension(o),t);r2e(s,n.getAxis(o).type)||i.push(n.dataToPoint(s,o))}return i}function N3(e,t,r,n,i){var a=v9(e,r,n,i),o=new li({shape:{points:a},z2:10});return t.add(o),e.setItemGraphicEl(r,o),o}function z3(e){var t=e.get("smooth",!0);return t===!0&&(t=JTe),t=Ns(t),Uv(t)&&(t=0),{smooth:t}}function rT(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");An(e,i,"lineStyle"),Rr(e,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function r2e(e,t){return t==="category"?e==null:e==null||isNaN(e)}var n2e=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 Ys(null,this,{useEncodeDefaulter:Ne(i2e,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}(gr);function i2e(e){var t=e.ecModel.getComponent("parallel",e.get("parallelIndex"));if(t){var r={};return $(t.dimensions,function(n){var i=a2e(n);r[n]=i}),r}}function a2e(e){return+e.replace("dim","")}var o2e=["lineStyle","opacity"],s2e={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(o2e,!0);u!=null&&(l=u)}var c=a.ensureUniqueItemVisual(s,"style");c.opacity=l},i.start,i.end)}}}};function l2e(e){u2e(e),c2e(e)}function u2e(e){if(!e.parallel){var t=!1;$(e.series,function(r){r&&r.type==="parallel"&&(t=!0)}),t&&(e.parallel=[{}])}}function c2e(e){var t=ir(e.parallelAxis);$(t,function(r){if(Xe(r)){var n=r.parallelIndex||0,i=ir(e.parallel)[n];i&&i.parallelAxisDefault&&ht(r,i.parallelAxisDefault,!1)}})}var f2e=5,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){this._model=r,this._api=i,this._handlers||(this._handlers={},$(p2e,function(a,o){i.getZr().on(o,this._handlers[o]=Ne(a,this))},this)),sp(this,"_throttledDispatchExpand",r.get("axisExpandRate"),"fixRate")},t.prototype.dispose=function(r,n){ig(this,"_throttledDispatchExpand"),$(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}(_r),p2e={mousedown:function(e){nT(this,"click")&&(this._mouseDownPoint=[e.offsetX,e.offsetY])},mouseup:function(e){var t=this._mouseDownPoint;if(nT(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>f2e)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||!nT(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 nT(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}var 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.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&ht(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){$(["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=tr(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);$(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}(Pt),v2e=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}(so);function Jc(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=qf(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=qf(s,[0,o]),i=a=qf(s,[i,a]),n=0}t[0]=qf(t[0],r),t[1]=qf(t[1],r);var l=iT(t,n);t[n]+=e;var u=i||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=qf(t[n],c);var f;return f=iT(t,n),i!=null&&(f.sign!==l.sign||f.span<i)&&(t[1-n]=t[n]+l.sign*i),f=iT(t,n),a!=null&&f.span>a&&(t[1-n]=t[n]+f.sign*a),t}function iT(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 qf(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var aT=$,g9=Math.min,m9=Math.max,B3=Math.floor,g2e=Math.ceil,F3=Or,m2e=Math.PI,y2e=function(){function e(t,r,n){this.type="parallel",this._axesMap=$e(),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;aT(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new v2e(o,Rb(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();aT(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=Qr(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=b0(t.get("axisExpandWidth"),l),f=b0(t.get("axisExpandCount")||0,[0,u]),d=t.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,p=t.get("axisExpandWindow"),v;if(p)v=b0(p[1]-p[0],l),p[1]=p[0]+v;else{v=b0(c*(f-1),l);var g=t.get("axisExpandCenter")||B3(u/2);p=[c*g-v/2],p[1]=p[0]+v}var y=(s-v)/(u-f);y<3&&(y=0);var x=[B3(F3(p[0]/c,1))+1,g2e(F3(p[1]/c,1))-1],b=y/c*p[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:p,axisCount:u,winInnerIndices:x,axisExpandWindow0Pos:b}},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])}),aT(n,function(o,s){var l=(i.axisExpandable?b2e:x2e)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:m2e/2,vertical:0},f=[u[a].x+t.x,u[a].y+t.y],d=c[a],p=Wi();Yc(p,p,d),Zo(p,p,f),this._axesLayout[o]={position:f,rotation:d,transform:p,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=[];$(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),p=0,v=o.length;p<v;p++){var g=l[p].getActiveState(d[p]);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 Za([t,0],n.transform)},e.prototype.getAxisLayout=function(t){return Ke(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?Jc(l,i,o,"all"):u="none";else{var p=i[1]-i[0],v=o[1]*s/p;i=[m9(0,v-p/2)],i[1]=g9(o[1],i[0]+p),i[0]=i[1]-p}return{axisExpandWindow:i,behavior:u}},e}();function b0(e,t){return g9(m9(e,t[0]),t[1])}function x2e(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function b2e(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 S2e(e,t){var r=[];return e.eachComponent("parallel",function(n,i){var a=new y2e(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",jr).models[0];n.coordinateSystem=i.coordinateSystem}}),r}var _2e={create:S2e},BA=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 $c([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},t.prototype.setActiveIntervals=function(r){var n=this.activeIntervals=Ke(r);if(n)for(var i=n.length-1;i>=0;i--)Sa(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}(Pt);Yr(BA,Yg);var Gc=!0,gg=Math.min,Vd=Math.max,w2e=Math.pow,C2e=1e4,T2e=6,A2e=6,$3="globalPan",M2e={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},I2e={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},V3={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},k2e=0,Kk=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 Je,n._uid="brushController_"+k2e++,$(N2e,function(i,a){this._handlers[a]=Ne(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||xwe(n,$3,this._uid),$(this._handlers,function(i,a){n.on(a,i)}),this._brushType=r.brushType,this._brushOption=ht(Ke(V3),r,!0)},t.prototype._doDisableBrush=function(){var r=this._zr;bwe(r,$3,this._uid),$(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={};$(r,function(i){n[i.panelId]=Ke(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=ve(r,function(d){return ht(Ke(V3),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,p){return(d.id!=null?d.id:n+p)+"-"+d.brushType}function u(d,p){return l(d.__brushOption,p)}function c(d,p){var v=r[d];if(p!=null&&i[p]===s)a[d]=i[p];else{var g=a[d]=p!=null?(i[p].__brushOption=v,i[p]):x9(o,y9(o,v));Qk(o,g)}}function f(d){i[d]!==s&&o.group.remove(i[d])}},t.prototype.unmount=function(){return this.enableBrush(!1),FA(this),this._zr.remove(this.group),this},t.prototype.dispose=function(){this.unmount(),this.off()},t}(Pa);function y9(e,t){var r=Bb[t.brushType].createCover(e,t);return r.__brushOption=t,S9(r,t),e.group.add(r),r}function x9(e,t){var r=Jk(t);return r.endCreating&&(r.endCreating(e,t),S9(t,t.__brushOption)),t}function b9(e,t){var r=t.__brushOption;Jk(t).updateCoverShape(e,t,r.range,r)}function S9(e,t){var r=t.z;r==null&&(r=C2e),e.traverse(function(n){n.z=r,n.z2=r})}function Qk(e,t){Jk(t).updateCommon(e,t),b9(e,t)}function Jk(e){return Bb[e.__brushOption.brushType]}function eP(e,t,r){var n=e._panels;if(!n)return Gc;var i,a=e._transform;return $(n,function(o){o.isTargetByCursor(t,r,a)&&(i=o)}),i}function _9(e,t){var r=e._panels;if(!r)return Gc;var n=t.__brushOption.panelId;return n!=null?r[n]:Gc}function FA(e){var t=e._covers,r=t.length;return $(t,function(n){e.group.remove(n)},e),t.length=0,!!r}function Wc(e,t){var r=ve(e._covers,function(n){var i=n.__brushOption,a=Ke(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});e.trigger("brush",{areas:r,isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function P2e(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=w2e(i*i+a*a,.5);return o>T2e}function w9(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function C9(e,t,r,n){var i=new Je;return i.add(new Et({name:"main",style:tP(r),silent:!0,draggable:!0,cursor:"move",drift:at(H3,e,t,i,["n","s","w","e"]),ondragend:at(Wc,t,{isEnd:!0})})),$(n,function(a){i.add(new Et({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:at(H3,e,t,i,a),ondragend:at(Wc,t,{isEnd:!0})}))}),i}function T9(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=Vd(i,A2e),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,p=f-a+i/2,v=c-o,g=f-s,y=v+i,x=g+i;ys(e,t,"main",o,s,v,g),n.transformable&&(ys(e,t,"w",l,u,a,x),ys(e,t,"e",d,u,a,x),ys(e,t,"n",l,u,y,a),ys(e,t,"s",l,p,y,a),ys(e,t,"nw",l,u,a,a),ys(e,t,"ne",d,u,a,a),ys(e,t,"sw",l,p,a,a),ys(e,t,"se",d,p,a,a))}function $A(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(tP(r)),i.attr({silent:!n,cursor:n?"move":"default"}),$([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?VA(e,a[0]):R2e(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?I2e[s]+"-resize":null})})}function ys(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(E2e(rP(e,t,[[n,i],[n+a,i+o]])))}function tP(e){return Ye({strokeNoScale:!0},e.brushStyle)}function A9(e,t,r,n){var i=[gg(e,r),gg(t,n)],a=[Vd(e,r),Vd(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function D2e(e){return Mc(e.group)}function VA(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=gb(r[t],D2e(e));return n[i]}function R2e(e,t){var r=[VA(e,t[0]),VA(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function H3(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=M9(t,i,a);$(n,function(u){var c=M2e[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(A9(s[0][0],s[1][0],s[0][1],s[1][1])),Qk(t,r),Wc(t,{isEnd:!1})}function L2e(e,t,r,n){var i=t.__brushOption.range,a=M9(e,r,n);$(i,function(o){o[0]+=a[0],o[1]+=a[1]}),Qk(e,t),Wc(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 rP(e,t,r){var n=_9(e,t);return n&&n!==Gc?n.clipPath(r,e._transform):Ke(r)}function E2e(e){var t=gg(e[0][0],e[1][0]),r=gg(e[0][1],e[1][1]),n=Vd(e[0][0],e[1][0]),i=Vd(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function O2e(e,t,r){if(!(!e._brushType||z2e(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=eP(e,t,r);if(!e._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===Gc||s.panelId===a.panelId)&&Bb[s.brushType].contain(i[o],r[0],r[1]))return}a&&n.setCursorStyle("crosshair")}}function HA(e){var t=e.event;t.preventDefault&&t.preventDefault()}function GA(e,t,r){return e.childOfName("main").contain(t,r)}function I9(e,t,r,n){var i=e._creatingCover,a=e._creatingPanel,o=e._brushOption,s;if(e._track.push(r.slice()),P2e(e)||i){if(a&&!i){o.brushMode==="single"&&FA(e);var l=Ke(o);l.brushType=G3(l.brushType,a),l.panelId=a===Gc?null:a.panelId,i=e._creatingCover=y9(e,l),e._covers.push(i)}if(i){var u=Bb[G3(e._brushType,a)],c=i.__brushOption;c.range=u.getCreatingRange(rP(e,i,e._track)),n&&(x9(e,i),u.updateCommon(e,i)),b9(e,i),s={isEnd:n}}}else n&&o.brushMode==="single"&&o.removeOnClick&&eP(e,t,r)&&FA(e)&&(s={isEnd:n,removeOnClick:!0});return s}function G3(e,t){return e==="auto"?t.defaultBrushType:e}var N2e={mousedown:function(e){if(this._dragging)W3(this,e);else if(!e.target||!e.target.draggable){HA(e);var t=this.group.transformCoordToLocal(e.offsetX,e.offsetY);this._creatingCover=null;var r=this._creatingPanel=eP(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(O2e(this,e,n),this._dragging){HA(e);var i=I9(this,e,n,!1);i&&Wc(this,i)}},mouseup:function(e){W3(this,e)}};function W3(e,t){if(e._dragging){HA(t);var r=t.offsetX,n=t.offsetY,i=e.group.transformCoordToLocal(r,n),a=I9(e,t,i,!0);e._dragging=!1,e._track=[],e._creatingCover=null,a&&Wc(e,a)}}function z2e(e,t,r){var n=e._zr;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var Bb={lineX:j3(0),lineY:j3(1),rect:{createCover:function(e,t){function r(n){return n}return C9({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=w9(e);return A9(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){T9(e,t,r,n)},updateCommon:$A,contain:GA},polygon:{createCover:function(e,t){var r=new Je;return r.add(new li({name:"main",style:tP(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new ai({name:"main",draggable:!0,drift:at(L2e,e,t),ondragend:at(Wc,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:rP(e,t,r)})},updateCommon:$A,contain:GA}};function j3(e){return{createCover:function(t,r){return C9({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=w9(t),n=gg(r[0][e],r[1][e]),i=Vd(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=_9(t,r);if(o!==Gc&&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(),T9(t,r,l,i)},updateCommon:$A,contain:GA}}function k9(e){return e=nP(e),function(t){return FG(t,e)}}function P9(e,t){return e=nP(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 D9(e,t,r){var n=nP(e);return function(i,a){return n.contain(a[0],a[1])&&!Eb(i,t,r)}}function nP(e){return vt.create(e)}var B2e=["axisLine","axisTickLabel","axisName"],F2e=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 Kk(n.getZr())).on("brush",Ne(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!$2e(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Je,this.group.add(this._axisGroup),!!r.get("show")){var s=H2e(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,f=r.axis.dim,d=l.getAxisLayout(f),p=oe({strokeContainThreshold:c},d),v=new ti(r,p);$(B2e,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(p,u,r,s,c,i),Hg(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=vt.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:k9(f),isTargetByCursor:D9(f,s,a),getLinearBrushOtherExtent:P9(f,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(V2e(i))},t.prototype._onBrush=function(r){var n=r.areas,i=this.axisModel,a=i.axis,o=ve(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}(_r);function $2e(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function V2e(e){var t=e.axis;return ve(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function H2e(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var G2e={type:"axisAreaSelect",event:"axisAreaSelected"};function W2e(e){e.registerAction(G2e,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 j2e={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function R9(e){e.registerComponentView(d2e),e.registerComponentModel(h2e),e.registerCoordinateSystem("parallel",_2e),e.registerPreprocessor(l2e),e.registerComponentModel(BA),e.registerComponentView(F2e),$d(e,"parallel",BA,j2e),W2e(e)}function U2e(e){St(R9),e.registerChartView(e2e),e.registerSeriesModel(n2e),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,s2e)}var Y2e=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}(),q2e=function(e){J(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Y2e},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(){zs(this)},t.prototype.downplay=function(){Bs(this)},t}(wt),X2e=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"),p=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(v){var g=new q2e,y=tt(g);y.dataIndex=v.dataIndex,y.seriesIndex=r.seriesIndex,y.dataType="edge";var x=v.getModel(),b=x.getModel("lineStyle"),S=b.get("curveness"),w=v.node1.getLayout(),T=v.node1.getModel(),C=T.get("localX"),A=T.get("localY"),I=v.node2.getLayout(),k=v.node2.getModel(),P=k.get("localX"),R=k.get("localY"),O=v.getLayout(),E,z,B,W,X,H,q,F;g.shape.extent=Math.max(1,O.dy),g.shape.orient=p,p==="vertical"?(E=(C!=null?C*u:w.x)+O.sy,z=(A!=null?A*c:w.y)+w.dy,B=(P!=null?P*u:I.x)+O.ty,W=R!=null?R*c:I.y,X=E,H=z*(1-S)+W*S,q=B,F=z*S+W*(1-S)):(E=(C!=null?C*u:w.x)+w.dx,z=(A!=null?A*c:w.y)+O.sy,B=P!=null?P*u:I.x,W=(R!=null?R*c:I.y)+O.ty,X=E*(1-S)+B*S,H=z,q=E*S+B*(1-S),F=W),g.setShape({x1:E,y1:z,x2:B,y2:W,cpx1:X,cpy1:H,cpx2:q,cpy2:F}),g.useStyle(b.getItemStyle()),U3(g.style,p,v);var Y=""+x.get("value"),Z=un(x,"edgeLabel");Mn(g,Z,{labelFetcher:{getFormattedLabel:function(fe,re,ce,ne,pe,me){return r.getFormattedLabel(fe,re,"edge",ne,Ho(pe,Z.normal&&Z.normal.get("formatter"),Y),me)}},labelDataIndex:v.dataIndex,defaultText:Y}),g.setTextConfig({position:"inside"});var j=x.getModel("emphasis");An(g,x,"lineStyle",function(fe){var re=fe.getItemStyle();return U3(re,p,v),re}),s.add(g),d.setItemGraphicEl(v.dataIndex,g);var te=j.get("focus");Rr(g,te==="adjacency"?v.getAdjacentDataIndices():te==="trajectory"?v.getTrajectoryDataIndices():te,j.get("blurScope"),j.get("disabled"))}),o.eachNode(function(v){var g=v.getLayout(),y=v.getModel(),x=y.get("localX"),b=y.get("localY"),S=y.getModel("emphasis"),w=y.get(["itemStyle","borderRadius"])||0,T=new Et({shape:{x:x!=null?x*u:g.x,y:b!=null?b*c:g.y,width:g.dx,height:g.dy,r:w},style:y.getModel("itemStyle").getItemStyle(),z2:10});Mn(T,un(y),{labelFetcher:{getFormattedLabel:function(A,I){return r.getFormattedLabel(A,I,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),T.disableLabelAnimation=!0,T.setStyle("fill",v.getVisual("color")),T.setStyle("decal",v.getVisual("style").decal),An(T,y),s.add(T),f.setItemGraphicEl(v.dataIndex,T),tt(T).dataType="node";var C=S.get("focus");Rr(T,C==="adjacency"?v.getAdjacentDataIndices():C==="trajectory"?v.getTrajectoryDataIndices():C,S.get("blurScope"),S.get("disabled"))}),f.eachItemGraphicEl(function(v,g){var y=f.getItemModel(g);y.get("draggable")&&(v.drift=function(x,b){a._focusAdjacencyDisabled=!0,this.shape.x+=x,this.shape.y+=b,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(Z2e(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(lr);function U3(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");De(n)&&De(i)&&(e.fill=new Vg(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function Z2e(e,t,r){var n=new Et({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return mr(n,{shape:{width:e.width+20}},t,r),n}var K2e=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 Zt(o[l],this,n));if(a&&i){var u=h9(a,i,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(p,v){var g=p.parentModel,y=g.getData().getItemLayout(v);if(y){var x=y.depth,b=g.levelModels[x];b&&(p.parentModel=b)}return p}),d.wrapMethod("getItemModel",function(p,v){var g=p.parentModel,y=g.getGraph().getEdgeByIndex(v),x=y.node1.getLayout();if(x){var b=x.depth,S=g.levelModels[b];S&&(p.parentModel=S)}return p})}},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(p){return isNaN(p)||p==null}if(i==="edge"){var o=this.getDataParams(r,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return cn("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 cn("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}(gr);function Q2e(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=J2e(r,t);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;tAe(u);var f=tr(u,function(g){return g.getLayout().value===0}),d=f.length!==0?0:r.get("layoutIterations"),p=r.get("orient"),v=r.get("nodeAlign");eAe(u,c,n,i,o,s,d,p,v)})}function J2e(e,t){return Qr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function eAe(e,t,r,n,i,a,o,s,l){rAe(e,t,r,i,a,s,l),oAe(e,t,a,i,n,o,s),vAe(e,s)}function tAe(e){$(e,function(t){var r=jl(t.outEdges,rx),n=jl(t.inEdges,rx),i=t.getValue()||0,a=Math.max(r,n,i);t.setLayout({value:a},!0)})}function rAe(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 p=-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>p&&(p=y.depth),g.setLayout({depth:x?y.depth:f},!0),a==="vertical"?g.setLayout({dy:r},!0):g.setLayout({dx:r},!0);for(var b=0;b<g.outEdges.length;b++){var S=g.outEdges[b],w=t.indexOf(S);s[w]=0;var T=S.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=p>f-1?p:f-1;o&&o!=="left"&&nAe(e,o,a,A);var I=a==="vertical"?(i-r)/A:(n-r)/A;aAe(e,I,a)}function L9(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function nAe(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}$(e,function(f){L9(f)||f.setLayout({depth:Math.max(0,n-f.getLayout().skNodeHeight)},!0)})}else t==="justify"&&iAe(e,n)}function iAe(e,t){$(e,function(r){!L9(r)&&!r.outEdges.length&&r.setLayout({depth:t},!0)})}function aAe(e,t,r){$(e,function(n){var i=n.getLayout().depth*t;r==="vertical"?n.setLayout({y:i},!0):n.setLayout({x:i},!0)})}function oAe(e,t,r,n,i,a,o){var s=sAe(e,o);lAe(s,t,r,n,i,o),oT(s,i,r,n,o);for(var l=1;a>0;a--)l*=.99,uAe(s,l,o),oT(s,i,r,n,o),hAe(s,l,o),oT(s,i,r,n,o)}function sAe(e,t){var r=[],n=t==="vertical"?"y":"x",i=G2(e,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),$(i.keys,function(a){r.push(i.buckets.get(a))}),r}function lAe(e,t,r,n,i,a){var o=1/0;$(e,function(s){var l=s.length,u=0;$(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)}),$(e,function(s){$(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))})}),$(t,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function oT(e,t,r,n,i){var a=i==="vertical"?"x":"y";$(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",p=0;p<f;p++)l=o[p],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 p=f-2;p>=0;--p)l=o[p],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 uAe(e,t,r){$(e.slice().reverse(),function(n){$(n,function(i){if(i.outEdges.length){var a=jl(i.outEdges,cAe,r)/jl(i.outEdges,rx);if(isNaN(a)){var o=i.outEdges.length;a=o?jl(i.outEdges,fAe,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-tu(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-tu(i,r))*t;i.setLayout({y:l},!0)}}})})}function cAe(e,t){return tu(e.node2,t)*e.getValue()}function fAe(e,t){return tu(e.node2,t)}function dAe(e,t){return tu(e.node1,t)*e.getValue()}function pAe(e,t){return tu(e.node1,t)}function tu(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function rx(e){return e.getValue()}function jl(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 hAe(e,t,r){$(e,function(n){$(n,function(i){if(i.inEdges.length){var a=jl(i.inEdges,dAe,r)/jl(i.inEdges,rx);if(isNaN(a)){var o=i.inEdges.length;a=o?jl(i.inEdges,pAe,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-tu(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-tu(i,r))*t;i.setLayout({y:l},!0)}}})})}function vAe(e,t){var r=t==="vertical"?"x":"y";$(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]})}),$(e,function(n){var i=0,a=0;$(n.outEdges,function(o){o.setLayout({sy:i},!0),i+=o.getLayout().dy}),$(n.inEdges,function(o){o.setLayout({ty:a},!0),a+=o.getLayout().dy})})}function gAe(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;$(n,function(s){var l=s.getLayout().value;l<a&&(a=l),l>o&&(o=l)}),$(n,function(s){var l=new ln({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&&$(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function mAe(e){e.registerChartView(X2e),e.registerSeriesModel(K2e),e.registerLayout(Q2e),e.registerVisual(gAe),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 E9=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],p=[i,a],v=p[c].get("type"),g=p[1-c].get("type"),y=t.data;if(y&&l){var x=[];$(y,function(w,T){var C;he(w)?(C=w.slice(),w.unshift(T)):he(w.value)?(C=oe({},w),C.value=C.value.slice(),w.value.unshift(T)):C=w,x.push(C)}),t.data=x}var b=this.defaultValueDimensions,S=[{name:f,type:j1(v),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:j1(g),dimsDef:b.slice()}];return cp(this,{coordDimensions:S,dimensionsCount:b.length+1,encodeDefaulter:at(fW,S,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),O9=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}(gr);Yr(O9,E9,!0);var yAe=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=Y3(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?(no(f),N9(d,f,a,u)):f=Y3(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}(lr),xAe=function(){function e(){}return e}(),bAe=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 xAe},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}(wt);function Y3(e,t,r,n,i){var a=e.ends,o=new bAe({shape:{points:i?SAe(a,n,e):a}});return N9(e,o,t,r,i),o}function N9(e,t,r,n,i){var a=r.hostModel,o=qc[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");An(t,s),Rr(t,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function SAe(e,t,r){return ve(e,function(n){return n=n.slice(),n[t]=r.initBaseline,n})}var Mv=$;function _Ae(e){var t=wAe(e);Mv(t,function(r){var n=r.seriesModels;n.length&&(CAe(r),Mv(n,function(i,a){TAe(i,r.boxOffsetList[a],r.boxWidthList[a])}))})}function wAe(e){var t=[],r=[];return e.eachSeriesByType("boxplot",function(n){var i=n.getBaseAxis(),a=bt(r,i);a<0&&(a=r.length,r[a]=i,t[a]={axis:i,seriesModels:[]}),t[a].seriesModels.push(n)}),t}function CAe(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;Mv(r,function(v){l=Math.max(l,v.getData().count())});var u=t.getExtent();s=Math.abs(u[1]-u[0])/l}Mv(r,function(v){var g=v.get("boxWidth");he(g)||(g=[g,g]),o.push([Ce(g[0],s)||0,Ce(g[1],s)||0])});var c=s*.8-2,f=c/n*.3,d=(c-f*(n-1))/n,p=d/2-c/2;Mv(r,function(v,g){a.push(p),p+=f+d,i.push(Math.min(Math.max(d,o[g][0]),o[g][1]))})}function TAe(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),p=S(d,c[2],f),v=S(d,c[0],f),g=S(d,c[1],f),y=S(d,c[3],f),x=S(d,c[4],f),b=[];w(b,g,!1),w(b,y,!0),b.push(v,g,x,y),T(b,v),T(b,x),T(b,p),i.setItemLayout(f,{initBaseline:p[s],ends:b})}function S(C,A,I){var k=i.get(A,I),P=[];P[o]=C,P[s]=k;var R;return isNaN(C)||isNaN(k)?R=[NaN,NaN]:(R=n.dataToPoint(P),R[o]+=t),R}function w(C,A,I){var k=A.slice(),P=A.slice();k[o]+=a,P[o]-=a,I?C.push(k,P):C.push(P,k)}function T(C,A){var I=A.slice(),k=A.slice();I[o]-=a,k[o]+=a,C.push(I,k)}}function AAe(e,t){t=t||{};for(var r=[],n=[],i=t.boundIQR,a=i==="none"||i===0,o=0;o<e.length;o++){var s=Sa(e[o].slice()),l=Ow(s,.25),u=Ow(s,.5),c=Ow(s,.75),f=s[0],d=s[s.length-1],p=(i??1.5)*(c-l),v=a?f:Math.max(f,l-p),g=a?d:Math.min(d,c+p),y=t.itemNameFormatter,x=je(y)?y({value:o}):De(y)?y.replace("{value}",o+""):o+"";r.push([x,v,l,u,c,g]);for(var b=0;b<s.length;b++){var S=s[b];if(S<v||S>g){var w=[x,S];n.push(w)}}}return{boxData:r,outliers:n}}var MAe={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==Fn){var n="";Yt(n)}var i=AAe(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function IAe(e){e.registerSeriesModel(O9),e.registerChartView(yAe),e.registerLayout(_Ae),e.registerTransform(MAe)}var kAe=["color","borderColor"],PAe=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){lu(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&&q3(u,f))return;var d=sT(f,c,!0);mr(d,{shape:{points:f.ends}},r,c),lT(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 p=n.getItemLayout(c);if(s&&q3(u,p)){a.remove(d);return}d?(Ht(d,{shape:{points:p.ends}},r,c),no(d)):d=sT(p),lT(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(),X3(r,this.group);var n=r.get("clip",!0)?Zg(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=sT(s);lT(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){X3(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}(lr),DAe=function(){function e(){}return e}(),RAe=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 DAe},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}(wt);function sT(e,t,r){var n=e.ends;return new RAe({shape:{points:r?LAe(n,e):n},z2:100})}function q3(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 lT(e,t,r,n){var i=t.getItemModel(r);e.useStyle(t.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.__simpleBox=n,An(e,i)}function LAe(e,t){return ve(e,function(r){return r=r.slice(),r[1]=t.initBaseline,r})}var EAe=function(){function e(){}return e}(),uT=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 EAe},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}(wt);function X3(e,t,r,n){var i=e.getData(),a=i.getLayout("largePoints"),o=new uT({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});t.add(o);var s=new uT({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});t.add(s);var l=new uT({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});t.add(l),cT(1,o,e),cT(-1,s,e),cT(0,l,e),n&&(o.incremental=!0,s.incremental=!0),r&&r.push(o,s)}function cT(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(kAe);t.useStyle(a),t.style.fill=null,t.style.stroke=i}var z9=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}(gr);Yr(z9,E9,!0);function OAe(e){!e||!he(e.series)||$(e.series,function(t){Xe(t)&&t.type==="k"&&(t.type="candlestick")})}var NAe=["itemStyle","borderColor"],zAe=["itemStyle","borderColor0"],BAe=["itemStyle","borderColorDoji"],FAe=["itemStyle","color"],$Ae=["itemStyle","color0"],VAe={seriesType:"candlestick",plan:op(),performRawSeries:!0,reset:function(e,t){function r(a,o){return o.get(a>0?FAe:$Ae)}function n(a,o){return o.get(a===0?BAe:a>0?NAe:zAe)}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)}}}}}},HAe={seriesType:"candlestick",plan:op(),reset:function(e){var t=e.coordinateSystem,r=e.getData(),n=GAe(e,r),i=0,a=1,o=["x","y"],s=r.getDimensionIndex(r.mapDimension(o[i])),l=ve(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:p};function p(g,y){for(var x,b=y.getStore();(x=g.next())!=null;){var S=b.get(s,x),w=b.get(u,x),T=b.get(c,x),C=b.get(f,x),A=b.get(d,x),I=Math.min(w,T),k=Math.max(w,T),P=X(I,S),R=X(k,S),O=X(C,S),E=X(A,S),z=[];H(z,R,0),H(z,P,1),z.push(F(E),F(R),F(O),F(P));var B=y.getItemModel(x),W=!!B.get(["itemStyle","borderColorDoji"]);y.setItemLayout(x,{sign:Z3(b,x,w,T,c,W),initBaseline:w>T?R[a]:P[a],ends:z,brushRect:q(C,A,S)})}function X(Y,Z){var j=[];return j[i]=Z,j[a]=Y,isNaN(Z)||isNaN(Y)?[NaN,NaN]:t.dataToPoint(j)}function H(Y,Z,j){var te=Z.slice(),fe=Z.slice();te[i]=Y0(te[i]+n/2,1,!1),fe[i]=Y0(fe[i]-n/2,1,!0),j?Y.push(te,fe):Y.push(fe,te)}function q(Y,Z,j){var te=X(Y,j),fe=X(Z,j);return te[i]-=n/2,fe[i]-=n/2,{x:te[0],y:te[1],width:n,height:fe[1]-te[1]}}function F(Y){return Y[i]=Y0(Y[i],1),Y}}function v(g,y){for(var x=No(g.count*4),b=0,S,w=[],T=[],C,A=y.getStore(),I=!!e.get(["itemStyle","borderColorDoji"]);(C=g.next())!=null;){var k=A.get(s,C),P=A.get(u,C),R=A.get(c,C),O=A.get(f,C),E=A.get(d,C);if(isNaN(k)||isNaN(O)||isNaN(E)){x[b++]=NaN,b+=3;continue}x[b++]=Z3(A,C,P,R,c,I),w[i]=k,w[a]=O,S=t.dataToPoint(w,null,T),x[b++]=S?S[0]:NaN,x[b++]=S?S[1]:NaN,w[a]=E,S=t.dataToPoint(w,null,T),x[b++]=S?S[1]:NaN}y.setLayout("largePoints",x)}}};function Z3(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 GAe(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=Ce(it(e.get("barMaxWidth"),i),i),o=Ce(it(e.get("barMinWidth"),1),i),s=e.get("barWidth");return s!=null?Ce(s,i):Math.max(Math.min(i/2,a),o)}function WAe(e){e.registerChartView(PAe),e.registerSeriesModel(z9),e.registerPreprocessor(OAe),e.registerVisual(VAe),e.registerLayout(HAe)}function K3(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 jAe=function(e){J(t,e);function t(r,n){var i=e.call(this)||this,a=new qg(r,n),o=new Je;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=Ur(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)}K3(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}}K3(i,r)},t.prototype.highlight=function(){zs(this)},t.prototype.downplay=function(){Bs(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=lp(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 p=Xc(r.getItemVisual(n,"symbolOffset"),u);p&&(o.x=p[0],o.y=p[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,Rr(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},t.prototype.fadeOut=function(r){r&&r()},t}(Je),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.init=function(){this._symbolDraw=new Xg(jAe)},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=Kg("").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=dve(n.getRoamTransform()),this.group.decomposeTransform())},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0)},t.type="effectScatter",t}(lr),YAe=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 Ys(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}(gr);function qAe(e){e.registerChartView(UAe),e.registerSeriesModel(YAe),e.registerLayout(Kg("effectScatter"))}var B9=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 Xk(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");he(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=Ur(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=gn(n.get("delay"),function(p){return p/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;je(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 Rl(r.__p1,r.__cp1)+Rl(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=vn,c=I2;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=Rl(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*Rl(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}(Je),F9=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 li({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)}};Ht(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,Rr(this,l,u,c)},t.prototype.updateLayout=function(r,n){var i=this.childAt(0);i.setShape("points",r.getItemLayout(n))},t}(Je),XAe=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 F9(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+=Rl(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 p=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,p)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},t}(B9),ZAe=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),KAe=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 ZAe},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 p=(u+f)/2-(c-d)*a,v=(c+d)/2-(f-u)*a;r.quadraticCurveTo(p,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++],p=1;p<c;p++){var v=a[u++],g=a[u++];if(Il(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(fG(f,d,y,x,v,g,s,r,n))return l}else if(Il(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 vt(a,o,s,l)}return r},t}(wt),QAe=function(){function e(){this.group=new Je}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 KAe({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=tt(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}(),$9={seriesType:"lines",plan:op(),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 p=e.getLineCoords(c,o);r&&(s[f++]=p);for(var v=0;v<p;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),p=e.getLineCoords(c,o),y=[];if(r)for(var x=0;x<p;x++)y.push(t.dataToPoint(o[x]));else{y[0]=t.dataToPoint(o[0]),y[1]=t.dataToPoint(o[1]);var b=g.get(["lineStyle","curveness"]);+b&&(y[2]=[(y[0][0]+y[1][0])/2-(y[0][1]-y[1][1])*b,(y[0][1]+y[1][1])/2-(y[1][0]-y[0][0])*b])}a.setItemLayout(c,y)}}}}}},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.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)&&Zg(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=$9.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 QAe:new Zk(o?a?XAe:F9:a?B9:Xk),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}(lr),eMe=typeof Uint32Array>"u"?Array:Uint32Array,tMe=typeof Float64Array>"u"?Array:Float64Array;function Q3(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=ve(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),kI([i,r[0],r[1]])}))}var rMe=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||[],Q3(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(Q3(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=S1(this._flatCoords,n.flatCoords),this._flatCoordsOffset=S1(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),Bt(r[0])){for(var i=r.length,a=new eMe(i),o=new tMe(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 p=r[c++],v=r[c++];o[s++]=p,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 ei(["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),cn("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}(gr);function S0(e){return e instanceof Array||(e=[e,e]),e}var nMe={seriesType:"lines",reset:function(e){var t=S0(e.get("symbol")),r=S0(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=S0(s.getShallow("symbol",!0)),u=S0(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 iMe(e){e.registerChartView(JAe),e.registerSeriesModel(rMe),e.registerLayout($9),e.registerVisual(nMe)}var aMe=256,oMe=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Zl.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"),p=t.length;f.width=r,f.height=n;for(var v=0;v<p;++v){var g=t[v],y=g[0],x=g[1],b=g[2],S=i(b);d.globalAlpha=S,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,I=this.minOpacity,k=this.maxOpacity,P=k-I;C<A;){var S=T[C+3]/256,R=Math.floor(S*(aMe-1))*4;if(S>0){var O=o(S)?l:u;S>0&&(S=S*P+I),T[C++]=O[R],T[C++]=O[R+1],T[C++]=O[R+2],T[C++]=O[R+3]*S*256}else C+=4}return d.putImageData(w,0,0),f},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Zl.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 sMe(e,t,r){var n=e[1]-e[0];t=ve(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 lMe(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 J3(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var uMe=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()):J3(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&&(J3(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){lu(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=Kc(s,"cartesian2d"),u,c,f,d;if(l){var p=s.getAxis("x"),v=s.getAxis("y");u=p.getBandWidth()+.5,c=v.getBandWidth()+.5,f=p.scale.getExtent(),d=v.scale.getExtent()}for(var g=this.group,y=r.getData(),x=r.getModel(["emphasis","itemStyle"]).getItemStyle(),b=r.getModel(["blur","itemStyle"]).getItemStyle(),S=r.getModel(["select","itemStyle"]).getItemStyle(),w=r.get(["itemStyle","borderRadius"]),T=un(r),C=r.getModel("emphasis"),A=C.get("focus"),I=C.get("blurScope"),k=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 O=void 0,E=y.getItemVisual(R,"style");if(l){var z=y.get(P[0],R),B=y.get(P[1],R);if(isNaN(y.get(P[2],R))||isNaN(z)||isNaN(B)||z<f[0]||z>f[1]||B<d[0]||B>d[1])continue;var W=s.dataToPoint([z,B]);O=new Et({shape:{x:W[0]-u/2,y:W[1]-c/2,width:u,height:c},style:E})}else{if(isNaN(y.get(P[1],R)))continue;O=new Et({z2:1,shape:s.dataToRect([y.get(P[0],R)]).contentShape,style:E})}if(y.hasItemOption){var X=y.getItemModel(R),H=X.getModel("emphasis");x=H.getModel("itemStyle").getItemStyle(),b=X.getModel(["blur","itemStyle"]).getItemStyle(),S=X.getModel(["select","itemStyle"]).getItemStyle(),w=X.get(["itemStyle","borderRadius"]),A=H.get("focus"),I=H.get("blurScope"),k=H.get("disabled"),T=un(X)}O.shape.r=w;var q=r.getRawValue(R),F="-";q&&q[2]!=null&&(F=q[2]+""),Mn(O,T,{labelFetcher:r,labelDataIndex:R,defaultOpacity:E.opacity,defaultText:F}),O.ensureState("emphasis").style=x,O.ensureState("blur").style=b,O.ensureState("select").style=S,Rr(O,A,I,k),O.incremental=o,o&&(O.states.emphasis.hoverLayer=!0),g.add(O),y.setItemGraphicEl(R,O),this._progressiveEls&&this._progressiveEls.push(O)}},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 oMe;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),p=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-p,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],S=l.mapArray(b,function(A,I,k){var P=r.dataToPoint([A,I]);return P[0]-=d,P[1]-=p,P.push(k),P}),w=i.getExtent(),T=i.type==="visualMap.continuous"?lMe(w,i.option.range):sMe(w,i.getPieceList(),i.option.selected);u.update(S,y,x,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},T);var C=new mn({style:{width:y,height:x,x:d,y:p,image:u.canvas},silent:!0});this.group.add(C)},t.type="heatmap",t}(lr),cMe=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 Ys(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=Wg.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}(gr);function fMe(e){e.registerChartView(uMe),e.registerSeriesModel(cMe)}var dMe=["itemStyle","borderWidth"],e4=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],fT=new Us,pMe=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:e4[+c],categoryDim:e4[1-+c]};o.diff(s).add(function(v){if(o.hasValue(v)){var g=r4(o,v),y=t4(o,v,g,d),x=n4(o,d,y);o.setItemGraphicEl(v,x),a.add(x),a4(x,d,y)}}).update(function(v,g){var y=s.getItemGraphicEl(g);if(!o.hasValue(v)){a.remove(y);return}var x=r4(o,v),b=t4(o,v,x,d),S=U9(o,b);y&&S!==y.__pictorialShapeStr&&(a.remove(y),o.setItemGraphicEl(v,null),y=null),y?bMe(y,d,b):y=n4(o,d,b,!0),o.setItemGraphicEl(v,y),y.__pictorialSymbolMeta=b,a.add(y),a4(y,d,b)}).remove(function(v){var g=s.getItemGraphicEl(v);g&&i4(s,v,g.__pictorialSymbolMeta.animationModel,g)}).execute();var p=r.get("clip",!0)?Zg(r.coordinateSystem,!1,r):null;return p?a.setClipPath(p):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){i4(a,tt(o).dataIndex,r,o)}):i.removeAll()},t.type="pictorialBar",t}(lr);function t4(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};hMe(r,a,i,n,d),vMe(e,t,i,a,o,d.boundingLength,d.pxSign,c,n,d),gMe(r,d.symbolScale,u,n,d);var p=d.symbolSize,v=Xc(r.get("symbolOffset"),p);return mMe(r,p,i,a,o,v,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,n,d),d}function hMe(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(he(o)){var f=[dT(s,o[0])-l,dT(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=dT(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 dT(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function vMe(e,t,r,n,i,a,o,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(r[f.wh]),p=e.getItemVisual(t,"symbolSize"),v;he(p)?v=p.slice():p==null?v=["100%","100%"]:v=[p,p],v[f.index]=Ce(v[f.index],d),v[c.index]=Ce(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 gMe(e,t,r,n,i){var a=e.get(dMe)||0;a&&(fT.attr({scaleX:t[0],scaleY:t[1],rotation:r}),fT.updateTransform(),a/=fT.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function mMe(e,t,r,n,i,a,o,s,l,u,c,f){var d=c.categoryDim,p=c.valueDim,v=f.pxSign,g=Math.max(t[p.index]+s,0),y=g;if(n){var x=Math.abs(l),b=gn(e.get("symbolMargin"),"15%")+"",S=!1;b.lastIndexOf("!")===b.length-1&&(S=!0,b=b.slice(0,b.length-1));var w=Ce(b,t[p.index]),T=Math.max(g+w*2,0),C=S?0:w*2,A=KH(n),I=A?n:o4((x+C)/T),k=x-I*g;w=k/2/(S?I:Math.max(I-1,1)),T=g+w*2,C=S?0:w*2,!A&&n!=="fixed"&&(I=u?o4((Math.abs(u)+C)/T):0),y=I*T-C,f.repeatTimes=I,f.symbolMargin=w}var P=v*(y/2),R=f.pathPosition=[];R[d.index]=r[d.wh]/2,R[p.index]=o==="start"?P:o==="end"?l-P:l/2,a&&(R[0]+=a[0],R[1]+=a[1]);var O=f.bundlePosition=[];O[d.index]=r[d.xy],O[p.index]=r[p.xy];var E=f.barRectShape=oe({},r);E[p.wh]=v*Math.max(Math.abs(r[p.wh]),Math.abs(R[p.index]+P)),E[d.wh]=r[d.wh];var z=f.clipShape={};z[d.xy]=-r[d.xy],z[d.wh]=c.ecSize[d.wh],z[p.xy]=0,z[p.wh]=r[p.wh]}function V9(e){var t=e.symbolPatternSize,r=Ur(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function H9(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(iP(e,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c<u?Cd(g,null,v(c),r,n):Cd(g,null,{scaleX:0,scaleY:0},r,n,function(){i.remove(g)}),c++});c<u;c++){var d=V9(r);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,i.add(d);var p=v(c);Cd(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},r,n)}function v(g){var y=s.slice(),x=r.pxSign,b=g;return(r.symbolRepeatDirection==="start"?x>0:x<0)&&(b=u-1-g),y[l.index]=f*(b-u/2+.5)+s[l.index],{x:y[0],y:y[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function G9(e,t,r,n){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?Cd(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=V9(r),i.add(a),Cd(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 W9(e,t,r){var n=oe({},t.barRectShape),i=e.__pictorialBarRect;i?Cd(i,null,{shape:n},t,r):(i=e.__pictorialBarRect=new Et({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function j9(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)Ht(i,{shape:a},s,l);else{a[o.wh]=0,i=new Et({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var u={};u[o.wh]=r.clipShape[o.wh],qc[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function r4(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=yMe,r.isAnimationEnabled=xMe,r}function yMe(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function xMe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function n4(e,t,r,n){var i=new Je,a=new Je;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?H9(i,t,r):G9(i,t,r),W9(i,r,n),j9(i,t,r,n),i.__pictorialShapeStr=U9(e,r),i.__pictorialSymbolMeta=r,i}function bMe(e,t,r){var n=r.animationModel,i=r.dataIndex,a=e.__pictorialBundle;Ht(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?H9(e,t,r,!0):G9(e,t,r,!0),W9(e,r,!0),j9(e,t,r,!0)}function i4(e,t,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];iP(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),$(a,function(o){Ql(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function U9(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function iP(e,t,r){$(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function Cd(e,t,r,n,i,a){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&qc[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,a)}function a4(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");iP(e,function(g){if(g instanceof mn){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 p=t.valueDim.posDesc[+(r.boundingLength>0)],v=e.__pictorialBarRect;v.ignoreClip=!0,Mn(v,un(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:Fd(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:p}),Rr(e,c,f,a.get("disabled"))}function o4(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var SMe=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=uu(cg.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}(cg);function _Me(e){e.registerChartView(pMe),e.registerSeriesModel(SMe),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,at(kj,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Pj("pictorialBar"))}var wMe=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 p=new Fs(this._layersSeries||[],l,d,d),v=[];p.add(Ne(g,this,"add")).update(Ne(g,this,"update")).remove(Ne(g,this,"remove")).execute();function g(y,x,b){var S=o._layers;if(y==="remove"){s.remove(S[x]);return}for(var w=[],T=[],C,A=l[x].indices,I=0;I<A.length;I++){var k=a.getItemLayout(A[I]),P=k.x,R=k.y0,O=k.y;w.push(P,R),T.push(P,R+O),C=a.getItemVisual(A[I],"style")}var E,z=a.getItemLayout(A[0]),B=r.getModel("label"),W=B.get("margin"),X=r.getModel("emphasis");if(y==="add"){var H=v[x]=new Je;E=new y8({shape:{points:w,stackedOnPoints:T,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),H.add(E),s.add(H),r.isAnimationEnabled()&&E.setClipPath(CMe(E.getBoundingRect(),r,function(){E.removeClipPath()}))}else{var H=S[b];E=H.childAt(0),s.add(H),v[x]=H,Ht(E,{shape:{points:w,stackedOnPoints:T}},r),no(E)}Mn(E,un(r),{labelDataIndex:A[I-1],defaultText:a.getName(A[I-1]),inheritColor:C.fill},{normal:{verticalAlign:"middle"}}),E.setTextConfig({position:null,local:!0});var q=E.getTextContent();q&&(q.x=z.x-W,q.y=z.y0+z.y/2),E.useStyle(C),a.setItemGraphicEl(x,E),An(E,r),Rr(E,X.get("focus"),X.get("blurScope"),X.get("disabled"))}this._layersSeries=l,this._layers=v},t.type="themeRiver",t}(lr);function CMe(e,t,r){var n=new Et({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return mr(n,{shape:{x:e.x-50,width:e.width+100,height:e.height+20}},t,r),n}var pT=2,TMe=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 Jg(Ne(this.getData,this),Ne(this.getRawData,this))},t.prototype.fixData=function(r){var n=r.length,i={},a=G2(r,function(d){return i.hasOwnProperty(d[0]+"")||(i[d[0]+""]=-1),d[2]}),o=[];a.buckets.each(function(d,p){o.push({name:p,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",jr).models[0],a=i.get("type"),o=tr(r.data,function(v){return v[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=$e(),c=0,f=0;f<s.length;++f)l.push(s[f][pT]),u.get(s[f][pT])||(u.set(s[f][pT],c),c++);var d=Ug(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:j1(a)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,p=new ei(d,this);return p.initData(s),p},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=G2(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){he(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,p=o[c].indices.length,v=0;v<p;++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 cn("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}(gr);function AMe(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]=Ce(s[0],o.height),s[1]=Ce(s[1],o.height);var u=o.height-s[0]-s[1];s4(n,r,u)}else{s[0]=Ce(s[0],o.width),s[1]=Ce(s[1],o.width);var c=o.width-s[0]-s[1];s4(n,r,c)}n.setLayout("layoutInfo",a)})}function s4(e,t,r){if(e.count())for(var n=t.coordinateSystem,i=t.getLayerSeries(),a=e.mapDimension("single"),o=e.mapDimension("value"),s=ve(i,function(y){return ve(y.indices,function(x){var b=n.dataToPoint(e.get(a,x));return b[1]=e.get(o,x),b})}),l=MMe(s),u=l.y0,c=r/l.max,f=i.length,d=i[0].indices.length,p,v=0;v<d;++v){p=u[v]*c,e.setItemLayout(i[0].indices[v],{layerIndex:0,x:s[0][v][0],y0:p,y:s[0][v][1]*c});for(var g=1;g<f;++g)p+=s[g-1][v][1]*c,e.setItemLayout(i[g].indices[v],{layerIndex:g,x:s[g][v][0],y0:p,y:s[g][v][1]*c})}}function MMe(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 IMe(e){e.registerChartView(wMe),e.registerSeriesModel(TMe),e.registerLayout(AMe),e.registerProcessor(Qg("themeRiver"))}var kMe=2,PMe=4,l4=function(e){J(t,e);function t(r,n,i,a){var o=e.call(this)||this;o.z2=kMe,o.textConfig={inside:!0},tt(o).seriesIndex=n.seriesIndex;var s=new zt({z2:PMe,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;tt(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 p=n.getVisual("decal");p&&(d.decal=zd(p,o));var v=xc(l.getModel("itemStyle"),f,!0);oe(f,v),$(ni,function(b){var S=s.ensureState(b),w=l.getModel([b,"itemStyle"]);S.style=w.getItemStyle();var T=xc(w,f);T&&(S.shape=T)}),r?(s.setShape(f),s.shape.r=c.r0,mr(s,{shape:{r:c.r}},i,n.dataIndex)):(Ht(s,{shape:f},i),no(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;Rr(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(),p=this.node.dataIndex,v=a.get("minAngle")/180*Math.PI,g=a.get("show")&&!(v!=null&&Math.abs(s)<v);d.ignore=!g,$(Qv,function(x){var b=x==="normal"?i.getModel("label"):i.getModel([x,"label"]),S=x==="normal",w=S?d:d.ensureState(x),T=r.getFormattedLabel(p,x);S&&(T=T||n.node.name),w.style=vr(b,{},null,x!=="normal",!0),T&&(w.style.text=T);var C=b.get("show");C!=null&&!S&&(w.ignore=!C);var A=y(b,"position"),I=S?f:f.states[x],k=I.style.fill;I.textConfig={outsideFill:b.get("color")==="inherit"?k:null,inside:A!=="outside"};var P,R=y(b,"distance")||0,O=y(b,"align"),E=y(b,"rotate"),z=Math.PI*.5,B=Math.PI*1.5,W=Hi(E==="tangential"?Math.PI/2-l:l),X=W>z&&!Zv(W-z)&&W<B;A==="outside"?(P=o.r+R,O=X?"right":"left"):!O||O==="center"?(s===2*Math.PI&&o.r0===0?P=0:P=(o.r+o.r0)/2,O="center"):O==="left"?(P=o.r0+R,O=X?"right":"left"):O==="right"&&(P=o.r-R,O=X?"left":"right"),w.style.align=O,w.style.verticalAlign=y(b,"verticalAlign")||"middle",w.x=P*u+o.cx,w.y=P*c+o.cy;var H=0;E==="radial"?H=Hi(-l)+(X?Math.PI:0):E==="tangential"?H=Hi(Math.PI/2-l)+(X?Math.PI:0):Bt(E)&&(H=E*Math.PI/180),w.rotation=Hi(H)});function y(x,b){var S=x.get(b);return S??a.get(b)}d.dirtyStyle()},t}(ii),WA="sunburstRootToNode",u4="sunburstHighlight",DMe="sunburstUnhighlight";function RMe(e){e.registerAction({type:WA,update:"updateView"},function(t,r){r.eachComponent({mainType:"series",subType:"sunburst",query:t},n);function n(i,a){var o=dg(t,[WA],i);if(o){var s=i.getViewRoot();s&&(t.direction=Wk(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),e.registerAction({type:u4,update:"none"},function(t,r,n){t=oe({},t),r.eachComponent({mainType:"series",subType:"sunburst",query:t},i);function i(a){var o=dg(t,[u4],a);o&&(t.dataIndex=o.node.dataIndex)}n.dispatchAction(oe(t,{type:"highlight"}))}),e.registerAction({type:DMe,update:"updateView"},function(t,r,n){t=oe({},t),n.dispatchAction(oe(t,{type:"downplay"}))})}var LMe=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(b){d.push(b)});var p=this._oldChildren||[];v(d,p),x(l,u),this._initEvents(),this._oldChildren=d;function v(b,S){if(b.length===0&&S.length===0)return;new Fs(S,b,w,w).add(T).update(T).remove(at(T,null)).execute();function w(C){return C.getId()}function T(C,A){var I=C==null?null:b[C],k=A==null?null:S[A];g(I,k)}}function g(b,S){if(!f&&b&&!b.getValue()&&(b=null),b!==l&&S!==l){if(S&&S.piece)b?(S.piece.updateData(!1,b,r,n,i),s.setItemGraphicEl(b.dataIndex,S.piece)):y(S);else if(b){var w=new l4(b,r,n,i);c.add(w),s.setItemGraphicEl(b.dataIndex,w)}}}function y(b){b&&b.piece&&(c.remove(b.piece),b.piece=null)}function x(b,S){S.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,b,r,n,i):(o.virtualPiece=new l4(b,r,n,i),c.add(o.virtualPiece)),S.piece.off("click"),o.virtualPiece.on("click",function(w){o._rootToNode(S.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";N1(u,c)}}i=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:WA,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}(lr),EMe=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};Y9(i);var a=this._levelModels=ve(r.levels||[],function(l){return new Zt(l,this,n)},this),o=Gk.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=Nb(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(){Q8(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}(gr);function Y9(e){var t=0;$(e.children,function(n){Y9(n);var i=n.value;he(i)&&(i=i[0]),t+=i});var r=e.value;he(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),he(e.value)?e.value[0]=r:e.value=r}var c4=Math.PI/180;function OMe(e,t,r){t.eachSeriesByType(e,function(n){var i=n.get("center"),a=n.get("radius");he(a)||(a=[0,a]),he(i)||(i=[i,i]);var o=r.getWidth(),s=r.getHeight(),l=Math.min(o,s),u=Ce(i[0],o),c=Ce(i[1],s),f=Ce(a[0],l/2),d=Ce(a[1],l/2),p=-n.get("startAngle")*c4,v=n.get("minAngle")*c4,g=n.getData().tree.root,y=n.getViewRoot(),x=y.depth,b=n.get("sort");b!=null&&q9(y,b);var S=0;$(y.children,function(W){!isNaN(W.getValue())&&S++});var w=y.getValue(),T=Math.PI/(w||S)*2,C=y.depth>0,A=y.height-(C?-1:1),I=(d-f)/(A||1),k=n.get("clockwise"),P=n.get("stillShowZeroSum"),R=k?1:-1,O=function(W,X){if(W){var H=X;if(W!==g){var q=W.getValue(),F=w===0&&P?T:q*T;F<v&&(F=v),H=X+R*F;var Y=W.depth-x-(C?-1:1),Z=f+I*Y,j=f+I*(Y+1),te=n.getLevelModel(W);if(te){var fe=te.get("r0",!0),re=te.get("r",!0),ce=te.get("radius",!0);ce!=null&&(fe=ce[0],re=ce[1]),fe!=null&&(Z=Ce(fe,l/2)),re!=null&&(j=Ce(re,l/2))}W.setLayout({angle:F,startAngle:X,endAngle:H,clockwise:k,cx:u,cy:c,r0:Z,r:j})}if(W.children&&W.children.length){var ne=0;$(W.children,function(pe){ne+=O(pe,X+ne)})}return H-X}};if(C){var E=f,z=f+I,B=Math.PI*2;g.setLayout({angle:B,startAngle:p,endAngle:p+B,clockwise:k,cx:u,cy:c,r0:E,r:z})}O(y,p)})}function q9(e,t){var r=e.children||[];e.children=NMe(r,t),r.length&&$(e.children,function(n){q9(n,t)})}function NMe(e,t){if(je(t)){var r=ve(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)}),ve(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 zMe(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&&De(s)&&(s=D2(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 BMe(e){e.registerChartView(LMe),e.registerSeriesModel(EMe),e.registerLayout(at(OMe,"sunburst")),e.registerProcessor(at(Qg,"sunburst")),e.registerVisual(zMe),RMe(e)}var f4={color:"fill",borderColor:"stroke"},FMe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ks=Ot(),$Me=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 Ys(null,this)},t.prototype.getDataParams=function(r,n,i){var a=e.prototype.getDataParams.call(this,r,n);return i&&(a.info=ks(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}(gr);function VMe(e,t){return t=t||[0,0],ve(["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 HMe(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:Ne(VMe,e)}}}function GMe(e,t){return t=t||[0,0],ve([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 WMe(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:Ne(GMe,e)}}}function jMe(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 UMe(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:Ne(jMe,e)}}}function YMe(e,t){return t=t||[0,0],ve(["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 qMe(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:Ne(YMe,e)}}}function XMe(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 X9(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||Fe(e,"text")))}function Z9(e,t,r){var n=e,i,a,o;if(t==="text")o=n;else{o={},Fe(n,"text")&&(o.text=n.text),Fe(n,"rich")&&(o.rich=n.rich),Fe(n,"textFill")&&(o.fill=n.textFill),Fe(n,"textStroke")&&(o.stroke=n.textStroke),Fe(n,"fontFamily")&&(o.fontFamily=n.fontFamily),Fe(n,"fontSize")&&(o.fontSize=n.fontSize),Fe(n,"fontStyle")&&(o.fontStyle=n.fontStyle),Fe(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=Fe(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),Fe(n,"textPosition")&&(i.position=n.textPosition),Fe(n,"textOffset")&&(i.offset=n.textOffset),Fe(n,"textRotation")&&(i.rotation=n.textRotation),Fe(n,"textDistance")&&(i.distance=n.textDistance)}return d4(o,e),$(o.rich,function(l){d4(l,l)}),{textConfig:i,textContent:a}}function d4(e,t){t&&(t.font=t.textFont||t.font,Fe(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Fe(t,"textAlign")&&(e.align=t.textAlign),Fe(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Fe(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Fe(t,"textWidth")&&(e.width=t.textWidth),Fe(t,"textHeight")&&(e.height=t.textHeight),Fe(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Fe(t,"textPadding")&&(e.padding=t.textPadding),Fe(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Fe(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Fe(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Fe(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Fe(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Fe(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Fe(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function p4(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";h4(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,$(t.rich,function(s){h4(s,s)}),n}function h4(e,t){t&&(Fe(t,"fill")&&(e.textFill=t.fill),Fe(t,"stroke")&&(e.textStroke=t.fill),Fe(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Fe(t,"font")&&(e.font=t.font),Fe(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Fe(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Fe(t,"fontSize")&&(e.fontSize=t.fontSize),Fe(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Fe(t,"align")&&(e.textAlign=t.align),Fe(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Fe(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Fe(t,"width")&&(e.textWidth=t.width),Fe(t,"height")&&(e.textHeight=t.height),Fe(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Fe(t,"padding")&&(e.textPadding=t.padding),Fe(t,"borderColor")&&(e.textBorderColor=t.borderColor),Fe(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Fe(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Fe(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Fe(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Fe(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Fe(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Fe(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Fe(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Fe(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Fe(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var K9={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},v4=Dt(K9);Xo(Ko,function(e,t){return e[t]=1,e},{});Ko.join(", ");var nx=["","style","shape","extra"],Hd=Ot();function aP(e,t,r,n,i){var a=e+"Animation",o=Jd(e,n,i)||{},s=Hd(t).userDuring;return o.duration>0&&(o.during=s?Ne(eIe,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),oe(o,r[a]),o}function J0(e,t,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=Hd(e),u=t.style;l.userDuring=t.during;var c={},f={};if(rIe(e,t,f),m4("shape",t,f),m4("extra",t,f),!a&&s&&(tIe(e,t,c),g4("shape",e,t,c),g4("extra",e,t,c),nIe(e,t,u,c)),f.style=u,ZMe(e,f,o),QMe(e,t),s)if(a){var d={};$(nx,function(v){var g=v?t[v]:t;g&&g.enterFrom&&(v&&(d[v]=d[v]||{}),oe(v?d[v]:d,g.enterFrom))});var p=aP("enter",e,t,r,i);p.duration>0&&e.animateFrom(d,p)}else KMe(e,t,i||0,r,c);Q9(e,t),u?e.dirty():e.markRedraw()}function Q9(e,t){for(var r=Hd(e).leaveToProps,n=0;n<nx.length;n++){var i=nx[n],a=i?t[i]:t;a&&a.leaveTo&&(r||(r=Hd(e).leaveToProps={}),i&&(r[i]=r[i]||{}),oe(i?r[i]:r,a.leaveTo))}}function Fb(e,t,r,n){if(e){var i=e.parent,a=Hd(e).leaveToProps;if(a){var o=aP("update",e,t,r,0);o.done=function(){i.remove(e)},e.animateTo(a,o)}else i.remove(e)}}function Pc(e){return e==="all"}function ZMe(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 KMe(e,t,r,n,i){if(i){var a=aP("update",e,t,n,r);a.duration>0&&e.animateFrom(i,a)}}function QMe(e,t){Fe(t,"silent")&&(e.silent=t.silent),Fe(t,"ignore")&&(e.ignore=t.ignore),e instanceof Ma&&Fe(t,"invisible")&&(e.invisible=t.invisible),e instanceof wt&&Fe(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var wo={},JMe={setTransform:function(e,t){return wo.el[e]=t,this},getTransform:function(e){return wo.el[e]},setShape:function(e,t){var r=wo.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=wo.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=wo.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=wo.el.style;if(t)return t[e]},setExtra:function(e,t){var r=wo.el.extra||(wo.el.extra={});return r[e]=t,this},getExtra:function(e){var t=wo.el.extra;if(t)return t[e]}};function eIe(){var e=this,t=e.el;if(t){var r=Hd(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}wo.el=t,n(JMe)}}function g4(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]={}),Pc(l))oe(o,a);else for(var u=ir(l),c=0;c<u.length;c++){var f=u[c],d=a[f];o[f]=d}else if(Pc(s)||bt(s,e)>=0){!o&&(o=n[e]={});for(var p=Dt(a),c=0;c<p.length;c++){var f=p[c],d=a[f];iIe(i[f],d)&&(o[f]=d)}}}}}function m4(e,t,r){var n=t[e];if(n)for(var i=r[e]={},a=Dt(n),o=0;o<a.length;o++){var s=a[o];i[s]=mv(n[s])}}function tIe(e,t,r){for(var n=t.transition,i=Pc(n)?Ko:ir(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 rIe(e,t,r){for(var n=0;n<v4.length;n++){var i=v4[n],a=K9[i],o=t[i];o&&(r[a[0]]=o[0],r[a[1]]=o[1])}for(var n=0;n<Ko.length;n++){var s=Ko[n];t[s]!=null&&(r[s]=t[s])}}function nIe(e,t,r,n){if(r){var i=e.style,a;if(i){var o=r.transition,s=t.transition;if(o&&!Pc(o)){var l=ir(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&&(Pc(s)||Pc(o)||bt(s,"style")>=0)){var d=e.getAnimationStyleProps(),p=d?d.style:null;if(p){!a&&(a=n.style={});for(var v=Dt(r),u=0;u<v.length;u++){var c=v[u];if(p[c]){var f=i[c];a[c]=f}}}}}}}function iIe(e,t){return Bn(e)?e!==t:e!=null&&isFinite(e)}var J9=Ot(),aIe=["percent","easing","shape","style","extra"];function e7(e){e.stopAnimation("keyframe"),e.attr(J9(e))}function ix(e,t,r){if(!(!r.isAnimationEnabled()||!t)){if(he(t)){$(t,function(s){ix(e,s,r)});return}var n=t.keyframes,i=t.duration;if(r&&i==null){var a=Jd("enter",r,0);i=a&&a.duration}if(!(!n||!i)){var o=J9(e);$(nx,function(s){if(!(s&&!e[s])){var l;n.sort(function(u,c){return u.percent-c.percent}),$(n,function(u){var c=e.animators,f=s?u[s]:u;if(f){var d=Dt(f);if(s||(d=tr(d,function(g){return bt(aIe,g)<0})),!!d.length){l||(l=e.animate(s,t.loop,!0),l.scope="keyframe");for(var p=0;p<c.length;p++)c[p]!==l&&c[p].targetName===l.targetName&&c[p].stopTracks(d);s&&(o[s]=o[s]||{});var v=s?o[s]:o;$(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 Ps="emphasis",Fl="normal",oP="blur",sP="select",ru=[Fl,Ps,oP,sP],hT={normal:["itemStyle"],emphasis:[Ps,"itemStyle"],blur:[oP,"itemStyle"],select:[sP,"itemStyle"]},vT={normal:["label"],emphasis:[Ps,"label"],blur:[oP,"label"],select:[sP,"label"]},oIe=["x","y"],sIe="e\0\0",la={normal:{},emphasis:{},blur:{},select:{}},lIe={cartesian2d:HMe,geo:WMe,single:UMe,polar:qMe,calendar:XMe};function jA(e){return e instanceof wt}function UA(e){return e instanceof Ma}function uIe(e,t){t.copyTransform(e),UA(t)&&UA(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,jA(t)&&jA(e)&&t.setShape(e.shape))}var cIe=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=y4(r,s,n,i);o||l.removeAll(),s.diff(o).add(function(f){gT(i,null,f,u(f,a),r,l,s)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&Fb(d,ks(d).option,r)}).update(function(f,d){var p=o.getItemGraphicEl(d);gT(i,p,f,u(f,a),r,l,s)}).execute();var c=r.get("clip",!0)?Zg(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=y4(n,s,i,a),u=this._progressiveEls=[];function c(p){p.isGroup||(p.incremental=!0,p.ensureState("emphasis").hoverLayer=!0)}for(var f=r.start;f<r.end;f++){var d=gT(null,null,f,l(f,o),n,this.group,s);d&&(d.traverse(c),u.push(d))}},t.prototype.eachRendered=function(r){lu(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}(lr);function lP(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=n7(n);r=vb(a,null,i,n.layout||"center"),ks(r).customPathData=a}else if(t==="image")r=new mn({}),ks(r).customImagePath=e.style.image;else if(t==="text")r=new zt({});else if(t==="group")r=new Je;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=QI(t);if(!o){var s="";Yt(s)}r=new o}return ks(r).customGraphicType=t,r.name=e.name,r.z2EmphasisLift=1,r.z2SelectLift=1,r}function uP(e,t,r,n,i,a,o){e7(t);var s=i&&i.normal.cfg;s&&t.setTextConfig(s),n&&n.transition==null&&(n.transition=oIe);var l=n&&n.style;if(l){if(t.type==="text"){var u=l;Fe(u,"textFill")&&(u.fill=u.textFill),Fe(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=jA(t)?l.decal:null;e&&f&&(f.dirty=!0,c=zd(f,e)),l.__decalPattern=c}if(UA(t)&&l){var c=l.__decalPattern;c&&(l.decal=c)}J0(t,n,a,{dataIndex:r,isInit:o,clearStyle:!0}),ix(t,n.keyframeAnimation,a)}function t7(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),Vc(a)}}function fIe(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<ru.length;s++)dIe(n,t,ru[s])}}function dIe(e,t,r){var n=r===Fl,i=n?t:ax(t,r),a=i?i.z2:null,o;a!=null&&(o=n?e:e.ensureState(r),o.z2=a||0)}function y4(e,t,r,n){var i=e.get("renderItem"),a=e.coordinateSystem,o={};a&&(o=a.prepareCustoms?a.prepareCustoms(a):lIe[a.type](a));for(var s=Ye({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:O,font:E},o.api||{}),l={context:{},seriesId:e.id,seriesName:e.name,seriesIndex:e.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:pIe(e.getData())},u,c,f={},d={},p={},v={},g=0;g<ru.length;g++){var y=ru[g];p[y]=e.getModel(hT[y]),v[y]=e.getModel(vT[y])}function x(z){return z===u?c||(c=t.getItemModel(z)):t.getItemModel(z)}function b(z,B){return t.hasItemOption?z===u?f[B]||(f[B]=x(z).getModel(hT[B])):x(z).getModel(hT[B]):p[B]}function S(z,B){return t.hasItemOption?z===u?d[B]||(d[B]=x(z).getModel(vT[B])):x(z).getModel(vT[B]):v[B]}return function(z,B){return u=z,c=null,f={},d={},i&&i(Ye({dataIndexInside:z,dataIndex:t.getRawIndex(z),actionType:B?B.type:null},l),s)};function w(z,B){return B==null&&(B=u),t.getStore().get(t.getDimensionIndex(z||0),B)}function T(z,B){B==null&&(B=u),z=z||0;var W=t.getDimensionInfo(z);if(!W){var X=t.getDimensionIndex(z);return X>=0?t.getStore().get(X,B):void 0}var H=t.get(W.name,B),q=W&&W.ordinalMeta;return q?q.categories[H]:H}function C(z,B){B==null&&(B=u);var W=t.getItemVisual(B,"style"),X=W&&W.fill,H=W&&W.opacity,q=b(B,Fl).getItemStyle();X!=null&&(q.fill=X),H!=null&&(q.opacity=H);var F={inheritColor:De(X)?X:"#000"},Y=S(B,Fl),Z=vr(Y,null,F,!1,!0);Z.text=Y.getShallow("show")?it(e.getFormattedLabel(B,Fl),Fd(t,B)):null;var j=E1(Y,F,!1);return k(z,q),q=p4(q,Z,j),z&&I(q,z),q.legacy=!0,q}function A(z,B){B==null&&(B=u);var W=b(B,Ps).getItemStyle(),X=S(B,Ps),H=vr(X,null,null,!0,!0);H.text=X.getShallow("show")?Ho(e.getFormattedLabel(B,Ps),e.getFormattedLabel(B,Fl),Fd(t,B)):null;var q=E1(X,null,!0);return k(z,W),W=p4(W,H,q),z&&I(W,z),W.legacy=!0,W}function I(z,B){for(var W in B)Fe(B,W)&&(z[W]=B[W])}function k(z,B){z&&(z.textFill&&(B.textFill=z.textFill),z.textPosition&&(B.textPosition=z.textPosition))}function P(z,B){if(B==null&&(B=u),Fe(f4,z)){var W=t.getItemVisual(B,"style");return W?W[f4[z]]:null}if(Fe(FMe,z))return t.getItemVisual(B,z)}function R(z){if(a.type==="cartesian2d"){var B=a.getBaseAxis();return rbe(Ye({axis:B},z))}}function O(){return r.getCurrentSeriesIndices()}function E(z){return JI(z,r)}}function pIe(e){var t={};return $(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 gT(e,t,r,n,i,a,o){if(!n){a.remove(t);return}var s=cP(e,t,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&Rr(s,n.focus,n.blurScope,n.emphasisDisabled),s}function cP(e,t,r,n,i,a){var o=-1,s=t;t&&r7(t,n,i)&&(o=bt(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=lP(n),s&&uIe(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),la.normal.cfg=la.normal.conOpt=la.emphasis.cfg=la.emphasis.conOpt=la.blur.cfg=la.blur.conOpt=la.select.cfg=la.select.conOpt=null,la.isLegacy=!1,vIe(u,r,n,i,l,la),hIe(u,r,n,i,l),uP(e,u,r,n,la,i,l),Fe(n,"info")&&(ks(u).info=n.info);for(var c=0;c<ru.length;c++){var f=ru[c];if(f!==Fl){var d=ax(n,f),p=fP(n,d,f);t7(f,u,d,p,la)}}return fIe(u,n,i),n.type==="group"&&gIe(e,u,r,n,i),o>=0?a.replaceAt(u,o):a.add(u),u}function r7(e,t,r){var n=ks(e),i=t.type,a=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&bIe(a)&&n7(a)!==n.customPathData||i==="image"&&Fe(o,"image")&&o.image!==n.customImagePath}function hIe(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&&r7(o,a,n)&&(o=null),o||(o=lP(a),e.setClipPath(o)),uP(null,o,t,a,null,n,i)}}function vIe(e,t,r,n,i,a){if(!e.isGroup){x4(r,null,a),x4(r,Ps,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=lP(o),e.setTextContent(c)),uP(null,c,t,o,null,n,i);for(var f=o&&o.style,d=0;d<ru.length;d++){var p=ru[d];if(p!==Fl){var v=a[p].conOpt;t7(p,c,v,fP(o,v,p),null)}}f?c.dirty():c.markRedraw()}}}}function x4(e,t,r){var n=t?ax(e,t):e,i=t?fP(e,n,Ps):e.style,a=e.type,o=n?n.textConfig:null,s=e.textContent,l=s?t?ax(s,t):s:null;if(i&&(r.isLegacy||X9(i,a,!!o,!!l))){r.isLegacy=!0;var u=Z9(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 ax(e,t){return t?e?e[t]:null:e}function fP(e,t,r){var n=t&&t.style;return n==null&&r===Ps&&e&&(n=e.styleEmphasis),n}function gIe(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){yIe({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),cP(e,d,r,f,i,t)):d.ignore=!0}for(var p=t.childCount()-1;p>=c;p--){var v=t.childAt(p);mIe(t,v,i)}}}function mIe(e,t,r){t&&Fb(t,ks(e).option,r)}function yIe(e){new Fs(e.oldChildren,e.newChildren,b4,b4,e).add(S4).update(S4).remove(xIe).execute()}function b4(e,t){var r=e&&e.name;return r??sIe+t}function S4(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,i=t!=null?r.oldChildren[t]:null;cP(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function xIe(e){var t=this.context,r=t.oldChildren[e];r&&Fb(r,ks(r).option,t.seriesModel)}function n7(e){return e&&(e.pathData||e.d)}function bIe(e){return e&&(Fe(e,"pathData")||Fe(e,"d"))}function SIe(e){e.registerChartView(cIe),e.registerSeriesModel($Me)}var sc=Ot(),_4=Ke,mT=Ne,dP=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 Je,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var d=at(w4,r,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,r)}T4(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=Nk(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=sc(t).pointerEl=new qc[a.type](_4(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=sc(t).labelEl=new zt(_4(r.label));t.add(a),C4(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=sc(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=sc(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),C4(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=Gg(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){Os(u.event)},onmousedown:mT(this._onHandleDragMove,this,0,0),drift:mT(this._onHandleDragMove,this),ondragend:mT(this._onHandleDragEnd,this)}),n.add(i)),T4(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");he(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,sp(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){w4(this._axisPointerModel,!r&&this._moveAnimation,this._handle,yT(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(yT(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(yT(i)),sc(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),ig(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 w4(e,t,r,n){i7(sc(r).lastProp,n)||(sc(r).lastProp=n,t?Ht(r,n,e):(r.stopAnimation(),r.attr(n)))}function i7(e,t){if(Xe(e)&&Xe(t)){var r=!0;return $(t,function(n,i){r=r&&i7(e[i],n)}),!!r}else return e===t}function C4(e,t){e[t.get(["label","show"])?"show":"hide"]()}function yT(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function T4(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 pP(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 a7(e,t,r,n,i){var a=r.get("value"),o=o7(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=np(s.get("padding")||0),u=s.getFont(),c=Ng(o,u),f=i.position,d=c.width+l[1]+l[3],p=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]-=p),g==="middle"&&(f[1]-=p/2),_Ie(f,d,p,n);var y=s.get("backgroundColor");(!y||y==="auto")&&(y=t.get(["axisLine","lineStyle","color"])),e.label={x:f[0],y:f[1],style:vr(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:y}),z2:10}}function _Ie(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 o7(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:Tk(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};$(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),De(o)?a=o.replace("{value}",a):je(o)&&(a=o(s))}return a}function hP(e,t,r){var n=Wi();return Yc(n,n,r.rotation),Zo(n,n,r.position),Za([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function s7(e,t,r,n,i,a){var o=ti.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),a7(t,n,i,a,{position:hP(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function vP(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function l7(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function A4(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var wIe=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=M4(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var d=pP(a),p=CIe[u](s,f,c);p.style=d,r.graphicKey=p.type,r.pointer=p}var v=AA(l.model,i);s7(n,r,v,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=AA(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=hP(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=M4(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,p=[d,d];p[c]=f[c];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:r.rotation,cursorPoint:p,tooltipOption:v[c]}},t}(dP);function M4(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var CIe={line:function(e,t,r){var n=vP([t,r[0]],[t,r[1]],I4(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:l7([t-n/2,r[0]],[n,i],I4(e))}}};function I4(e){return e.dim==="x"?0:1}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="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}(Pt),Cs=Ot(),AIe=$;function u7(e,t,r){if(!kt.node){var n=t.getZr();Cs(n).records||(Cs(n).records={}),MIe(n,t);var i=Cs(n).records[e]||(Cs(n).records[e]={});i.handler=r}}function MIe(e,t){if(Cs(e).initialized)return;Cs(e).initialized=!0,r("click",at(k4,"click")),r("mousemove",at(k4,"mousemove")),r("globalout",kIe);function r(n,i){e.on(n,function(a){var o=PIe(t);AIe(Cs(e).records,function(s){s&&i(s,a,o.dispatchAction)}),IIe(o.pendings,t)})}}function IIe(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 kIe(e,t,r){e.handler("leave",null,r)}function k4(e,t,r,n){t.handler(e,r,n)}function PIe(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 YA(e,t){if(!kt.node){var r=t.getZr(),n=(Cs(r).records||{})[e];n&&(Cs(r).records[e]=null)}}var DIe=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";u7("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){YA("axisPointer",n)},t.prototype.dispose=function(r,n){YA("axisPointer",n)},t.type="axisPointer",t}(_r);function c7(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=Fc(a,e);if(o==null||o<0||he(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,p=f==="x"||f==="radius"?1:0,v=a.mapDimension(d),g=[];g[p]=a.get(v,o),g[1-p]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(g)||[]}else r=l.dataToPoint(a.getValues(ve(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 P4=Ot();function RIe(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||Ne(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){e1(i)&&(i=c7({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=e1(i),u=a.axesInfo,c=s.axesInfo,f=n==="leave"||e1(i),d={},p={},v={list:[],map:{}},g={showPointer:at(EIe,p),showTooltip:at(OIe,v)};$(s.coordSysMap,function(x,b){var S=l||x.containPoint(i);$(s.coordSysAxesInfo[b],function(w,T){var C=w.axis,A=FIe(u,w);if(!f&&S&&(!u||A)){var I=A&&A.value;I==null&&!l&&(I=C.pointToData(i)),I!=null&&D4(w,I,g,!1,d)}})});var y={};return $(c,function(x,b){var S=x.linkGroup;S&&!p[b]&&$(S.axesInfo,function(w,T){var C=p[T];if(w!==x&&C){var A=C.value;S.mapper&&(A=x.axis.scale.parse(S.mapper(A,R4(w),R4(x)))),y[x.key]=A}})}),$(y,function(x,b){D4(c[b],x,g,!0,d)}),NIe(p,c,d),zIe(v,i,e,o),BIe(c,o,r),d}}function D4(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=LIe(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 LIe(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return $(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),f,d;if(l.getAxisTooltipData){var p=l.getAxisTooltipData(c,e,r);d=p.dataIndices,f=p.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),$(d,function(y){a.push({seriesIndex:l.seriesIndex,dataIndexInside:y,dataIndex:l.getData().getRawIndex(y)})}))}}),{payloadBatch:a,snapToValue:i}}function EIe(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function OIe(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=fg(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 NIe(e,t,r){var n=r.axesInfo=[];$(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 zIe(e,t,r,n){if(e1(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 BIe(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=P4(n)[i]||{},o=P4(n)[i]={};$(e,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&$(f.seriesDataIndices,function(d){var p=d.seriesIndex+" | "+d.dataIndex;o[p]=d})});var s=[],l=[];$(a,function(u,c){!o[c]&&l.push(u)}),$(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 FIe(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 R4(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 e1(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function rm(e){Qc.registerAxisPointerClass("CartesianAxisPointer",wIe),e.registerComponentModel(TIe),e.registerComponentView(DIe),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!he(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=X_e(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},RIe)}function $Ie(e){St(B8),St(rm)}var VIe=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 p=pP(a),v=GIe[d](s,l,f,c);v.style=p,r.graphicKey=v.type,r.pointer=v}var g=a.get(["label","margin"]),y=HIe(n,i,a,l,g);a7(r,i,a,o,y)},t}(dP);function HIe(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();Yc(d,d,s),Zo(d,d,[n.cx,n.cy]),u=Za([o,-i],d);var p=t.getModel("axisLabel").get("rotate")||0,v=ti.innerTextLayout(s,p*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 GIe={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:vP(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:A4(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:A4(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}},WIe=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}(Pt),gP=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",jr).models[0]},t.type="polarAxis",t}(Pt);Yr(gP,Yg);var jIe=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}(gP),UIe=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}(gP),mP=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}(so);mP.prototype.dataToRadius=so.prototype.dataToCoord;mP.prototype.radiusToData=so.prototype.coordToData;var YIe=Ot(),yP=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=Ng(s==null?"":s+"",n.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var p=Math.max(0,Math.floor(d)),v=YIe(r.model),g=v.lastAutoInterval,y=v.lastTickCount;return g!=null&&y!=null&&Math.abs(g-p)<=1&&Math.abs(y-o)<=1&&g>p?p=g:(v.lastTickCount=o,v.lastAutoInterval=p),p},t}(so);yP.prototype.dataToAngle=so.prototype.dataToCoord;yP.prototype.angleToData=so.prototype.coordToData;var f7=["radius","angle"],qIe=function(){function e(t){this.dimensions=f7,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new mP,this._angleAxis=new yP,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=L4(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=L4(r);return i===this?this.pointToData(n):null},e}();function L4(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function XIe(e,t,r){var n=t.get("center"),i=r.getWidth(),a=r.getHeight();e.cx=Ce(n[0],i),e.cy=Ce(n[1],a);var o=e.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:he(l)||(l=[0,l]);var u=[Ce(l[0],s),Ce(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function ZIe(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();$(U1(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),$(U1(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 KIe(e){return e.mainType==="angleAxis"}function E4(e,t){var r;if(e.type=t.get("type"),e.scale=Rb(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),KIe(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 QIe={dimensions:f7,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new qIe(i+"");a.update=ZIe;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");E4(o,l),E4(s,u),XIe(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",jr).models[0];n.coordinateSystem=i.coordinateSystem}}),r}},JIe=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function _0(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 w0(e){var t=e.getRadiusAxis();return t.inverse?0:1}function O4(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 eke=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=ve(i.getViewLabels(),function(c){c=Ke(c);var f=i.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(d),c});O4(u),O4(s),$(JIe,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&tke[c](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}(Qc),tke={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=w0(r),f=c?0:1,d,p=Math.abs(u[1]-u[0])===360?"Circle":"Arc";a[f]===0?d=new qc[p]({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 Fg({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[w0(r)],u=ve(n,function(c){return new on({shape:_0(r,[l,l+s],c.coord)})});e.add(xa(u,{style:Ye(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[w0(r)],c=[],f=0;f<i.length;f++)for(var d=0;d<i[f].length;d++)c.push(new on({shape:_0(r,[u,u+l],i[f][d].coord)}));e.add(xa(c,{style:Ye(s.getModel("lineStyle").getLineStyle(),Ye(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");$(o,function(f,d){var p=l,v=f.tickValue,g=a[w0(r)],y=r.coordToPoint([g+u,f.coord]),x=r.cx,b=r.cy,S=Math.abs(y[0]-x)/g<.3?"center":y[0]>x?"left":"right",w=Math.abs(y[1]-b)/g<.3?"middle":y[1]>b?"top":"bottom";if(s&&s[v]){var T=s[v];Xe(T)&&T.textStyle&&(p=new Zt(T.textStyle,l,l.ecModel))}var C=new zt({silent:ti.isLabelSilent(t),style:vr(p,{x:y[0],y:y[1],fill:p.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:S,verticalAlign:w})});if(e.add(C),c){var A=ti.makeAxisEventDataBase(t);A.targetType="axisLabel",A.value=f.rawLabel,tt(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 on({shape:_0(r,a,n[f].coord)}))}for(var f=0;f<c.length;f++)e.add(xa(c[f],{style:Ye({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 on({shape:_0(r,a,i[u][c].coord)}));e.add(xa(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,p=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 b=y===x?n[0].coord:n[y].coord,S=u++%l.length;c[S]=c[S]||[],c[S].push(new ii({shape:{cx:r.cx,cy:r.cy,r0:p,r:v,startAngle:d,endAngle:-b*f,clockwise:g},silent:!0})),d=-b*f}for(var y=0;y<c.length;y++)e.add(xa(c[y],{style:Ye({fill:l[y%l.length]},s.getAreaStyle()),silent:!0}))}}},rke=["axisLine","axisTickLabel","axisName"],nke=["splitLine","splitArea","minorSplitLine"],ike=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 Je;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(),p=oke(s,r,f),v=new ti(r,p);$(rke,v.add,v),a.add(v.getGroup()),Hg(i,a,r),$(nke,function(g){r.get([g,"show"])&&!o.scale.isBlank()&&ake[g](this.group,r,s,f,d,u,c)},this)}},t.type="radiusAxis",t}(Qc),ake={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(),p=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 qc[p]({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(xa(v[g],{style:Ye({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 Us({shape:{cx:r.cx,cy:r.cy,r:o[c][f].coord}}));e.add(xa(u,{style:Ye({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 p=u++%l.length;c[p]=c[p]||[],c[p].push(new ii({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(xa(c[d],{style:Ye({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function oke(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 d7(e){return e.get("stack")||"__ec_stack_"+e.seriesIndex}function p7(e,t){return t.dim+e.model.componentIndex}function ske(e,t,r){var n={},i=lke(tr(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=p7(s,l),c=d7(a),f=i[u][c],d=f.offset,p=f.width,v=s.getOtherAxis(l),g=a.coordinateSystem.cx,y=a.coordinateSystem.cy,x=a.get("barMinHeight")||0,b=a.get("barMinAngle")||0;n[c]=n[c]||[];for(var S=o.mapDimension(v.dim),w=o.mapDimension(l.dim),T=eu(o,S),C=l.dim!=="radius"||!a.get("roundCap",!0),A=v.model,I=A.get("startValue"),k=v.dataToCoord(I||0),P=0,R=o.count();P<R;P++){var O=o.get(S,P),E=o.get(w,P),z=O>=0?"p":"n",B=k;T&&(n[c][E]||(n[c][E]={p:k,n:k}),B=n[c][E][z]);var W=void 0,X=void 0,H=void 0,q=void 0;if(v.dim==="radius"){var F=v.dataToCoord(O)-k,Y=l.dataToCoord(E);Math.abs(F)<x&&(F=(F<0?-1:1)*x),W=B,X=B+F,H=Y-d,q=H-p,T&&(n[c][E][z]=X)}else{var Z=v.dataToCoord(O,C)-k,j=l.dataToCoord(E);Math.abs(Z)<b&&(Z=(Z<0?-1:1)*b),W=j+d,X=W+p,H=B,q=B+Z,T&&(n[c][E][z]=q)}o.setItemLayout(P,{cx:g,cy:y,r0:W,r:X,startAngle:-H*Math.PI/180,endAngle:-q*Math.PI/180,clockwise:H>=q})}}})}function lke(e){var t={};$(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=p7(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 p=d7(n);d[p]||f.autoWidthCount++,d[p]=d[p]||{width:0,maxWidth:0};var v=Ce(n.get("barWidth"),c),g=Ce(n.get("barMaxWidth"),c),y=n.get("barGap"),x=n.get("barCategoryGap");v&&!d[p].width&&(v=Math.min(f.remainedWidth,v),d[p].width=v,f.remainedWidth-=v),g&&(d[p].maxWidth=g),y!=null&&(f.gap=y),x!=null&&(f.categoryGap=x)});var r={};return $(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=Ce(n.categoryGap,o),l=Ce(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),$(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,p;$(a,function(g,y){g.width||(g.width=f),p=g,d+=g.width*(1+l)}),p&&(d-=p.width*l);var v=-d/2;$(a,function(g,y){r[i][y]=r[i][y]||{offset:v,width:g.width},v+=g.width*(1+l)})}),r}var uke={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},cke={splitNumber:5},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.type="polar",t}(_r);function dke(e){St(rm),Qc.registerAxisPointerClass("PolarAxisPointer",VIe),e.registerCoordinateSystem("polar",QIe),e.registerComponentModel(WIe),e.registerComponentView(fke),$d(e,"angle",jIe,uke),$d(e,"radius",UIe,cke),e.registerComponentView(eke),e.registerComponentView(ike),e.registerLayout(at(ske,"bar"))}function qA(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),gn(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 pke=["axisLine","axisTickLabel","axisName"],hke=["splitArea","splitLine"],vke=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 Je;var l=qA(r),u=new ti(r,l);$(pke,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),$(hke,function(c){r.get([c,"show"])&&gke[c](this,this.group,this._axisGroup,r)},this),Hg(s,this._axisGroup,r),e.prototype.render.call(this,r,n,i,a)},t.prototype.remove=function(){O8(this)},t.type="singleAxis",t}(Qc),gke={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,p=i.getTicksCoords({tickModel:a}),v=[],g=[],y=0;y<p.length;++y){var x=i.toGlobalCoord(p[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 b=new on({shape:{x1:v[0],y1:v[1],x2:g[0],y2:g[1]},silent:!0});Od(b.shape,l);var S=d++%s.length;f[S]=f[S]||[],f[S].push(b)}for(var w=o.getLineStyle(["color"]),y=0;y<f.length;++y)t.add(xa(f[y],{style:Ye({stroke:s[y%s.length]},w),silent:!0}))}},splitArea:function(e,t,r,n){E8(e,r,n,n)}},t1=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}(Pt);Yr(t1,Yg.prototype);var mke=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}(so),h7=["single"],yke=function(){function e(t,r,n){this.type="single",this.dimension="single",this.dimensions=h7,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 mke(i,Rb(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();$(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=Qr({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=N4(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=N4(r);return i===this?this.pointToData(n):null},e}();function N4(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function xke(e,t){var r=[];return e.eachComponent("singleAxis",function(n,i){var a=new yke(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",jr).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var bke={create:xke,dimensions:h7},z4=["x","y"],Ske=["width","height"],_ke=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=xT(l,1-ox(s)),c=l.dataToPoint(n)[0],f=a.get("type");if(f&&f!=="none"){var d=pP(a),p=wke[f](s,c,u);p.style=d,r.graphicKey=p.type,r.pointer=p}var v=qA(i);s7(n,r,v,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=qA(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=hP(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=ox(o),u=xT(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=xT(s,1-l),d=(f[1]+f[0])/2,p=[d,d];return p[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:p,tooltipOption:{verticalAlign:"middle"}}},t}(dP),wke={line:function(e,t,r){var n=vP([t,r[0]],[t,r[1]],ox(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:l7([t-n/2,r[0]],[n,i],ox(e))}}};function ox(e){return e.isHorizontal()?0:1}function xT(e,t){var r=e.getRect();return[r[z4[t]],r[z4[t]]+r[Ske[t]]]}var 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="single",t}(_r);function Tke(e){St(rm),Qc.registerAxisPointerClass("SingleAxisPointer",_ke),e.registerComponentView(Cke),e.registerComponentView(vke),e.registerComponentModel(t1),$d(e,"single",t1,t1.defaultOption),e.registerCoordinateSystem("single",bke)}var 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.prototype.init=function(r,n,i){var a=ip(r);e.prototype.init.apply(this,arguments),B4(r,a)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),B4(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}(Pt);function B4(e,t){var r=e.cellSize,n;he(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var i=ve([0,1],function(a){return jye(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});Jl(e,t,{type:"box",ignoreSize:i})}var Mke=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 Et({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 p=f.date;p.setMonth(p.getMonth()+1),f=s.getDateInfo(p)}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 li({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 De(r)&&r?Hye(r,n):je(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,p={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),b=new zt({z2:30,style:vr(o,{text:x})});b.attr(this._yearTextPositionControl(b,p[l],i,l,s)),a.add(b)}},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||De(s))&&(s&&(n=tA(s)||n),s=n.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,p=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 b=this._firstDayPoints[g];y[p]=(b[p]+f[0][g+1][p])/2}var S=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(S,T),A=new zt({z2:30,style:oe(vr(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||De(c)){c&&(n=tA(c)||n);var p=n.get(["time","dayOfWeekShort"]);c=p||ve(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=Ce(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),b=l.dataToRect([x.time],!1).center,S=y;S=Math.abs((y+d)%7);var w=new zt({z2:30,style:oe(vr(s,{text:c[S]}),this._weekTextPositionControl(b,a,u,f,g))});o.add(w)}}},t.type="calendar",t}(_r),bT=864e5,Ike=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=Qo(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];$([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=Qr(o,l);$([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){he(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+bT))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=F4(r);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=F4(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(he(t)&&t.length===1&&(t=t[0]),he(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/bT)-Math.floor(r[0].time/bT)+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 F4(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}function kke(e){e.registerComponentModel(Ake),e.registerComponentView(Mke),e.registerCoordinateSystem("calendar",Ike)}function Pke(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 $4(e,t){var r;return $(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function Dke(e,t,r){var n=oe({},r),i=e[t],a=r.$action||"merge";a==="merge"?i?(ht(i,n,!0),Jl(i,n,{ignoreSize:!0}),oW(r,i),C0(r,i),C0(r,i,"shape"),C0(r,i,"style"),C0(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&i&&(e[t]=null)}var v7=["transition","enterFrom","leaveTo"],Rke=v7.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function C0(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?v7:Rke,i=0;i<n.length;i++){var a=n[i];e[a]==null&&t[a]!=null&&(e[a]=t[a])}}function Lke(e,t){if(e&&(e.hv=t.hv=[$4(t,["left","right"]),$4(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 Eke=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=rG(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];$(l,function(c,f){var d=c.newOption;d&&(u.push(d),Pke(c,d),Dke(o,f,d),Lke(o[f],d))},this),i.elements=tr(o,function(c){return c&&delete c.$action,c!=null})},t.prototype._flatten=function(r,n,i){$(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}(Pt),V4={path:null,compoundPath:null,group:Je,image:mn,text:zt},pa=Ot(),Oke=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=$e()},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");$(n,function(l){var u=Kr(l.id,null),c=u!=null?i.get(u):null,f=Kr(l.parentId,null),d=f!=null?i.get(f):a,p=l.type,v=l.style;p==="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&&X9(v,p,!!y,!!g)){var x=Z9(v,p,!0);!y&&x.textConfig&&(y=l.textConfig=x.textConfig),!g&&x.textContent&&(g=x.textContent)}var b=Nke(l),S=l.$action||"merge",w=S==="merge",T=S==="replace";if(w){var C=!c,A=c;C?A=H4(u,d,l.type,i):(A&&(pa(A).isNew=!1),e7(A)),A&&(J0(A,b,r,{isInit:C}),G4(A,l,o,s))}else if(T){r1(c,l,i,r);var I=H4(u,d,l.type,i);I&&(J0(I,b,r,{isInit:!0}),G4(I,l,o,s))}else S==="remove"&&(Q9(c,l),r1(c,l,i,r));var k=i.get(u);if(k&&g)if(w){var P=k.getTextContent();P?P.attr(g):k.setTextContent(new zt(g))}else T&&k.setTextContent(new zt(g));if(k){var R=l.clipPath;if(R){var O=R.type,E=void 0,C=!1;if(w){var z=k.getClipPath();C=!z||pa(z).type!==O,E=C?XA(O):z}else T&&(C=!0,E=XA(O));k.setClipPath(E),J0(E,R,r,{isInit:C}),ix(E,R.keyframeAnimation,r)}var B=pa(k);k.setTextConfig(y),B.option=l,zke(k,r,l),ep({el:k,componentModel:r,itemName:k.name,itemTooltipOption:l.tooltip}),ix(k,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=Kr(f.id,null),p=d!=null?o.get(d):null;if(!(!p||!p.isGroup)){var v=p.parent,g=v===a,y=pa(p),x=pa(v);y.width=Ce(y.option.width,g?s:x.width)||0,y.height=Ce(y.option.height,g?l:x.height)||0}}for(var c=i.length-1;c>=0;c--){var f=i[c],d=Kr(f.id,null),p=d!=null?o.get(d):null;if(p){var v=p.parent,x=pa(v),b=v===a?{width:s,height:l}:{width:x.width,height:x.height},S={},w=wb(p,f,b,null,{hv:f.hv,boundingMode:f.bounding},S);if(!pa(p).isNew&&w){for(var T=f.transition,C={},A=0;A<u.length;A++){var I=u[A],k=S[I];T&&(Pc(T)||bt(T,I)>=0)?C[I]=k:p[I]=k}Ht(p,C,r,0)}else p.attr(S)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){r1(i,pa(i).option,n,r._lastGraphicModel)}),this._elMap=$e()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(_r);function XA(e){var t=Fe(V4,e)?V4[e]:QI(e),r=new t({});return pa(r).type=e,r}function H4(e,t,r,n){var i=XA(r);return t.add(i),n.set(e,i),pa(i).id=e,pa(i).isNew=!0,i}function r1(e,t,r,n){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(a){r1(a,t,r,n)}),Fb(e,t,n),r.removeKey(pa(e).id))}function G4(e,t,r,n){e.isGroup||$([["cursor",Ma.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];Fe(t,a)?e[a]=it(t[a],i[1]):e[a]==null&&(e[a]=i[1])}),$(Dt(t),function(i){if(i.indexOf("on")===0){var a=t[i];e[i]=je(a)?a:null}}),Fe(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function Nke(e){return e=oe({},e),$(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(aW),function(t){delete e[t]}),e}function zke(e,t,r){var n=tt(e).eventData;!e.silent&&!e.ignore&&!n&&(n=tt(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function Bke(e){e.registerComponentModel(Eke),e.registerComponentView(Oke),e.registerPreprocessor(function(t){var r=t.graphic;he(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var W4=["x","y","radius","angle","single"],Fke=["cartesian2d","polar","singleAxis"];function $ke(e){var t=e.get("coordinateSystem");return bt(Fke,t)>=0}function $l(e){return e+"Axis"}function Vke(e,t){var r=$e(),n=[],i=$e();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,p){var v=r.get(d);v&&v[p]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(r.get(f)||r.set(f,[]))[d]=!0})}return n}function g7(e){var t=e.ecModel,r={infoList:[],infoMap:$e()};return e.eachTargetAxis(function(n,i){var a=t.getComponent($l(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 ST=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}(),mg=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=j4(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},t.prototype.mergeOption=function(r){var n=j4(r);ht(this.option,r,!0),ht(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;$([["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=$e(),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 $(W4,function(i){var a=this.getReferringComponents($l(i),Dge);if(a.specified){n=!0;var o=new ST;$(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 ST;if(d.add(f.componentIndex),r.set(c,d),a=!1,c==="x"||c==="y"){var p=f.getReferringComponents("grid",jr).models[0];p&&$(u,function(v){f.componentIndex!==v.componentIndex&&p===v.getReferringComponents("grid",jr).models[0]&&d.add(v.componentIndex)})}}}a&&$(W4,function(u){if(a){var c=i.findComponents({mainType:$l(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new ST;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");$([["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($l(n),i))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){$(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($l(r),n)},t.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;$([["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;$(["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}(Pt);function j4(e){var t={};return $(["start","end","startValue","endValue","throttle"],function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}var Hke=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}(mg),xP=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}(_r),Gke=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}(xP),id=$,U4=Sa,Wke=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($ke(r)){var n=$l(this._dimName),i=r.getReferringComponents(n,jr).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 Ke(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;id(["start","end"],function(d,p){var v=t[d],g=t[d+"Value"];a[p]==="percent"?(v==null&&(v=o[p]),g=i.parse(Qt(v,o,r))):(u=!0,g=g==null?r[p]:i.parse(g),v=Qt(g,r,o)),l[p]=g==null||isNaN(g)?r[p]:g,s[p]=v==null||isNaN(v)?o[p]:v}),U4(l),U4(s);var c=this._minMaxSpan;u?f(l,s,r,o,!1):f(s,l,o,r,!0);function f(d,p,v,g,y){var x=y?"Span":"ValueSpan";Jc(0,d,v,"all",c["min"+x],c["max"+x]);for(var b=0;b<2;b++)p[b]=Qt(d[b],v,g,!0),y&&(p[b]=i.parse(p[b]))}return{valueWindow:l,percentWindow:s}},e.prototype.reset=function(t){if(t===this._dataZoomModel){var r=this.getTargetSeriesModels();this._dataExtent=jke(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;id(i,function(l){var u=l.getData(),c=u.mapDimensionsAll(n);if(c.length){if(a==="weakFilter"){var f=u.getStore(),d=ve(c,function(p){return u.getDimensionIndex(p)},u);u.filterSelf(function(p){for(var v,g,y,x=0;x<c.length;x++){var b=f.get(d[x],p),S=!isNaN(b),w=b<o[0],T=b>o[1];if(S&&!w&&!T)return!0;S&&(y=!0),w&&(v=!0),T&&(g=!0)}return y&&v&&g})}else id(c,function(p){if(a==="empty")l.setData(u=u.map(p,function(g){return s(g)?g:NaN}));else{var v={};v[p]=o,u.selectRange(v)}});id(c,function(p){u.setApproximateExtent(o,p)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;id(["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=Qt(n[0]+o,n,[0,100],!0):a!=null&&(o=Qt(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=qH(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 jke(e,t,r){var n=[1/0,-1/0];id(r,function(o){Cbe(n,o.getData(),t)});var i=e.getAxisModel(),a=Ej(i.axis.scale,i,n).calculate();return[a.min,a.max]}var Uke={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=e.getComponent($l(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 Wke(i,a,s,e),r.push(o.__dzAxisProxy))});var n=$e();return $(r,function(i){$(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 Yke(e){e.registerAction("dataZoom",function(t,r){var n=Vke(r,t);$(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var Y4=!1;function bP(e){Y4||(Y4=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,Uke),Yke(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function qke(e){e.registerComponentModel(Hke),e.registerComponentView(Gke),bP(e)}var ya=function(){function e(){}return e}(),m7={};function ad(e,t){m7[e]=t}function y7(e){return m7[e]}var Xke=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;$(this.option.feature,function(n,i){var a=y7(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(r)),ht(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}(Pt);function Zke(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=Qr(n,a,i);Ic(t.get("orient"),e,t.get("itemGap"),o.width,o.height),wb(e,n,a,i)}function x7(e,t){var r=np(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Et({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 Kke=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=[];$(u,function(v,g){f.push(g)}),new Fs(this._featureNames||[],f).add(d).update(d).remove(at(d,null)).execute(),this._featureNames=f;function d(v,g){var y=f[v],x=f[g],b=u[y],S=new Zt(b,r,r.ecModel),w;if(a&&a.newTitle!=null&&a.featureName===y&&(b.title=a.newTitle),y&&!x){if(Qke(y))w={onclick:S.option.onclick,featureName:y};else{var T=y7(y);if(!T)return;w=new T}c[y]=w}else if(w=c[x],!w)return;w.uid=rp("toolbox-feature"),w.model=S,w.ecModel=n,w.api=i;var C=w instanceof ya;if(!y&&x){C&&w.dispose&&w.dispose(n,i);return}if(!S.get("show")||C&&w.unusable){C&&w.remove&&w.remove(n,i);return}p(S,w,y),S.setIconStatus=function(A,I){var k=this.option,P=this.iconPaths;k.iconStatus=k.iconStatus||{},k.iconStatus[A]=I,P[A]&&(I==="emphasis"?zs:Bs)(P[A])},w instanceof ya&&w.render&&w.render(S,n,i,a)}function p(v,g,y){var x=v.getModel("iconStyle"),b=v.getModel(["emphasis","iconStyle"]),S=g instanceof ya&&g.getIcons?g.getIcons():v.get("icon"),w=v.get("title")||{},T,C;De(S)?(T={},T[y]=S):T=S,De(w)?(C={},C[y]=w):C=w;var A=v.iconPaths={};$(T,function(I,k){var P=Gg(I,{},{x:-s/2,y:-s/2,width:s,height:s});P.setStyle(x.getItemStyle());var R=P.ensureState("emphasis");R.style=b.getItemStyle();var O=new zt({style:{text:C[k],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null,font:JI({fontStyle:b.get("textFontStyle"),fontFamily:b.get("textFontFamily"),fontSize:b.get("textFontSize"),fontWeight:b.get("textFontWeight")},n)},ignore:!0});P.setTextContent(O),ep({el:P,componentModel:r,itemName:k,formatterParamsExtra:{title:C[k]}}),P.__title=C[k],P.on("mouseover",function(){var E=b.getItemStyle(),z=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";O.setStyle({fill:b.get("textFill")||E.fill||E.stroke||"#000",backgroundColor:b.get("textBackgroundColor")}),P.setTextConfig({position:b.get("textPosition")||z}),O.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",k])!=="emphasis"&&i.leaveEmphasis(this),O.hide()}),(v.get(["iconStatus",k])==="emphasis"?zs:Bs)(P),o.add(P),P.on("click",Ne(g.onclick,g,n,i,k)),A[k]=P})}Zke(o,r,i),o.add(x7(o.getBoundingRect(),r)),l||o.eachChild(function(v){var g=v.__title,y=v.ensureState("emphasis"),x=y.textConfig||(y.textConfig={}),b=v.getTextContent(),S=b&&b.ensureState("emphasis");if(S&&!je(S)&&g){var w=S.style||(S.style={}),T=Ng(g,zt.makeFont(w)),C=v.x+o.x,A=v.y+o.y+s,I=!1;A+T.height>i.getHeight()&&(x.position="top",I=!0);var k=I?-5-T.height:s+10;C+T.width/2>i.getWidth()?(x.position=["100%",k],w.align="right"):C-T.width/2<0&&(x.position=[0,k],w.align="left")}})},t.prototype.updateView=function(r,n,i,a){$(this._features,function(o){o instanceof ya&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(r,n){$(this._features,function(i){i instanceof ya&&i.remove&&i.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){$(this._features,function(i){i instanceof ya&&i.dispose&&i.dispose(r,n)})},t.type="toolbox",t}(_r);function Qke(e){return e.indexOf("my")===0}var Jke=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=kt.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(","),p=d[0].indexOf("base64")>-1,v=o?decodeURIComponent(d[1]):d[1];p&&(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 b=new Blob([x]);window.navigator.msSaveOrOpenBlob(b,g)}else{var S=document.createElement("iframe");document.body.appendChild(S);var w=S.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(S)}}else{var C=i.get("lang"),A='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(C&&C[0]||"")+'" /></body>',I=window.open();I.document.write(A),I.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}(ya),q4="__ec_magicType_stack__",ePe=[["line","bar"],["stack"]],tPe=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 $(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(X4[i]){var s={series:[]},l=function(f){var d=f.subType,p=f.id,v=X4[i](d,p,f,a);v&&(Ye(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,b=x+"Axis",S=f.getReferringComponents(b,jr).models[0],w=S.componentIndex;s[b]=s[b]||[];for(var T=0;T<=w;T++)s[b][w]=s[b][w]||{};s[b][w].boundaryGap=i==="bar"}}};$(ePe,function(f){bt(f,i)>=0&&$(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=ht({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}(ya),X4={line:function(e,t,r,n){if(e==="bar")return ht({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 ht({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")===q4;if(e==="line"||e==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),ht({id:t,stack:i?"":q4},n.get(["option","stack"])||{},!0)}};ns({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var $b=new Array(60).join("-"),Gd=" ";function rPe(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 nPe(e){var t=[];return $(e,function(r,n){var i=r.categoryAxis,a=r.valueAxis,o=a.dim,s=[" "].concat(ve(r.series,function(p){return p.name})),l=[i.model.getCategories()];$(r.series,function(p){var v=p.getRawData();l.push(p.getRawData().mapArray(v.mapDimension(o),function(g){return g}))});for(var u=[s.join(Gd)],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(Gd))}t.push(u.join(`
194
+ `))}),t.join(`
195
+
196
+ `+$b+`
197
+
198
+ `)}function iPe(e){return ve(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+Gd:"")+i.join(Gd))}),n.join(`
199
+ `)}).join(`
200
+
201
+ `+$b+`
202
+
203
+ `)}function aPe(e){var t=rPe(e);return{value:tr([nPe(t.seriesGroupByCategoryAxis),iPe(t.other)],function(r){return!!r.replace(/[\n\t\s]/g,"")}).join(`
204
+
205
+ `+$b+`
206
+
207
+ `),meta:t.meta}}function sx(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function oPe(e){var t=e.slice(0,e.indexOf(`
208
+ `));if(t.indexOf(Gd)>=0)return!0}var ZA=new RegExp("["+Gd+"]+","g");function sPe(e){for(var t=e.split(/\n+/g),r=sx(t.shift()).split(ZA),n=[],i=ve(r,function(l){return{name:l,data:[]}}),a=0;a<t.length;a++){var o=sx(t[a]).split(ZA);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 lPe(e){for(var t=e.split(/\n+/g),r=sx(t.shift()),n=[],i=0;i<t.length;i++){var a=sx(t[i]);if(a){var o=a.split(ZA),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 uPe(e,t){var r=e.split(new RegExp(`
209
+ *`+$b+`
210
+ *`,"g")),n={series:[]};return $(r,function(i,a){if(oPe(i)){var o=sPe(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=lPe(i);n.series.push(o)}}),n}var cPe=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"),p=aPe(r);if(je(f)){var v=f(n.getOption());De(v)?u.innerHTML=v:Ld(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=p.value,u.appendChild(c)}var y=p.meta,x=document.createElement("div");x.style.cssText="position:absolute;bottom:5px;left:0;right:0";var b="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",S=document.createElement("div"),w=document.createElement("div");b+=";background-color:"+a.get("buttonColor"),b+=";color:"+a.get("buttonTextColor");var T=this;function C(){i.removeChild(o),T._dom=null}M2(S,"click",C),M2(w,"click",function(){if(d==null&&f!=null||d!=null&&f==null){C();return}var A;try{je(d)?A=d(u,n.getOption()):A=uPe(c.value,y)}catch(I){throw C(),new Error("Data view format error "+I)}A&&n.dispatchAction({type:"changeDataView",newOption:A}),C()}),S.innerHTML=l[1],w.innerHTML=l[2],w.style.cssText=S.style.cssText=b,!a.get("readOnly")&&x.appendChild(w),x.appendChild(S),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}(ya);function fPe(e,t){return ve(e,function(r,n){var i=t&&t[n];if(Xe(i)&&!he(i)){var a=Xe(r)&&!he(r);a||(r={value:r});var o=i.name!=null&&r.name==null;return r=Ye(r,i),o&&delete r.name,r}else return r})}ns({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(e,t){var r=[];$(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:fPe(n.data,a)})}}),t.mergeOption(Ye({series:r},e.newOption))});var b7=$,S7=Ot();function dPe(e,t){var r=SP(e);b7(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 pPe(e){var t=SP(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return b7(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 hPe(e){S7(e).snapshots=null}function vPe(e){return SP(e).length}function SP(e){var t=S7(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var gPe=function(e){J(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){hPe(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}(ya);ns({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var mPe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],_P=function(){function e(t,r,n){var i=this;this._targetInfoList=[];var a=Z4(r,t);$(yPe,function(o,s){(!n||!n.include||bt(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=_T[n.brushType](0,a,i);n.__rangeOffset={offset:eF[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){$(t,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&$(a.coordSyses,function(o){var s=_T[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){$(t,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=_T[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?eF[n.brushType](a.values,o.offset,xPe(a.xyMinMax,o.xyMinMax)):a.values}},this)},e.prototype.makePanelOpts=function(t,r){return ve(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:k9(i),isTargetByCursor:D9(i,t,n.coordSysModel),getLinearBrushOtherExtent:P9(i)}})},e.prototype.controlSeries=function(t,r,n){var i=this.findTargetInfo(t,n);return i===!0||i&&bt(i.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,i=Z4(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<K4.length;l++)if(K4[l](i,o))return o}return!0},e}();function KA(e){return e[0]>e[1]&&e.reverse(),e}function Z4(e,t){return xv(e,t,{includeMainTypes:mPe})}var yPe={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,a=$e(),o={},s={};!r&&!n&&!i||($(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),$(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),$(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=[];$(u.getCartesians(),function(f,d){(bt(r,f.getAxis("x").model)>=0||bt(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:Q4.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){$(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:Q4.geo})})}},K4=[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}],Q4={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(Mc(e)),t}},_T={lineX:at(J4,0),lineY:at(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=[KA([i[0],a[0]]),KA([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=ve(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=KA(ve([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 eF={lineX:at(tF,0),lineY:at(tF,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 ve(e,function(n,i){return[n[0]-r[0]*t[i][0],n[1]-r[1]*t[i][1]]})}};function tF(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function xPe(e,t){var r=rF(e),n=rF(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 rF(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var QA=$,bPe=Age("toolbox-dataZoom_"),SPe=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 Kk(i.getZr()),this._brushController.on("brush",Ne(this._onBrush,this)).mount()),CPe(r,n,this,a,i),wPe(r,n)},t.prototype.onclick=function(r,n,i){_Pe[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 _P(wP(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)}}),dPe(a,i),this._dispatchZoomAction(i);function s(u,c,f){var d=c.getAxis(u),p=d.model,v=l(u,p,a),g=v.findRepresentativeAxisProxy(p).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(f=Jc(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(p){var v=p.getAxisModel(u,c.componentIndex);v&&(d=p)}),d}},t.prototype._dispatchZoomAction=function(r){var n=[];QA(r,function(i,a){n.push(Ke(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}(ya),_Pe={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(pPe(this.ecModel))}};function wP(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 wPe(e,t){e.setIconStatus("back",vPe(t)>1?"emphasis":"normal")}function CPe(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 _P(wP(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)}Kye("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=wP(n),o=xv(e,a);QA(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),QA(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:bPe+u+f};d[c]=f,i.push(d)}return i});function TPe(e){e.registerComponentModel(Xke),e.registerComponentView(Kke),ad("saveAsImage",Jke),ad("magicType",tPe),ad("dataView",cPe),ad("dataZoom",SPe),ad("restore",gPe),St(qke)}var 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.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}(Pt);function _7(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function w7(e){if(kt.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r<n;r++)if(e[r]in t)return e[r]}}var C7=w7(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),MPe=w7(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function T7(e,t){if(!e)return t;t=nW(t,!0);var r=e.indexOf(t);return e=r===-1?t:"-"+e.slice(0,r)+"-"+t,e.toLowerCase()}function IPe(e,t){var r=e.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(e);return r?r[t]:null}var kPe=T7(MPe,"transition"),CP=T7(C7,"transform"),PPe="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(kt.transform3dSupported?"will-change:transform;":"");function DPe(e){return e=e==="left"?"right":e==="right"?"left":e==="top"?"bottom":"top",e}function RPe(e,t,r){if(!De(r)||r==="inside")return"";var n=e.get("backgroundColor"),i=e.get("borderWidth");t=Hc(t);var a=DPe(r),o=Math.max(Math.round(i)*1.5,6),s="",l=CP+":",u;bt(["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)),p=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/2)*100)/100;s+=";"+a+":-"+p+"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 LPe(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+=kt.transformSupported?","+CP+n:",left"+n+",top"+n),kPe+":"+i}function nF(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!kt.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=kt.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+CP+":"+o+";":[["top",0],["left",0],[C7,o]]}function EPe(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),$(["decoration","align"],function(l){var u=e.get(l);u&&t.push("text-"+l+":"+u)}),t.join(";")}function OPe(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=zW(e,"html"),d=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+d),t&&i&&n.push(LPe(i,r)),a&&n.push("background-color:"+a),$(["width","color","radius"],function(p){var v="border-"+p,g=nW(v),y=e.get(g);y!=null&&n.push(v+":"+y+(p==="color"?"":"px"))}),n.push(EPe(c)),f!=null&&n.push("padding:"+np(f).join("px ")+"px"),n.join(";")+";"}function iF(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&tve(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 NPe=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,kt.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&&(De(a)?document.querySelector(a):Ld(a)?a:je(a)&&a(t.getDom()));iF(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();ca(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=IPe(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=PPe+OPe(t,!this._firstShow,this._longHide)+nF(a[0],a[1],!0)+("border-color:"+Hc(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(De(a)&&n.get("trigger")==="item"&&!_7(n)&&(s=RPe(n,i,a)),De(t))o.innerHTML=t+s;else if(t){o.innerHTML="",he(t)||(t=[t]);for(var l=0;l<t.length;l++)Ld(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(iF(n,this._zr,this._container,t,r),n[0]!=null&&n[1]!=null){var i=this.el.style,a=nF(n[0],n[1]);$(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",kt.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(Ne(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}(),zPe=function(){function e(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),oF(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;Xe(t)&&Yt(""),this.el&&this._zr.remove(this.el);var s=n.getModel("textStyle");this.el=new zt({style:{rich:r.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:n.get(["textStyle","color"]),padding:zW(n,"richText"),verticalAlign:"top",align:"left"},z:n.get("z")}),$(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=n.get(u)}),$(["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=aF(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;oF(i,this._zr,t,r),t=i[0],r=i[1];var a=n.style,o=Tl(a.borderWidth||0),s=aF(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(Ne(this.hide,this),t)):this.hide())},e.prototype.isShow=function(){return this._show},e.prototype.dispose=function(){this._zr.remove(this.el)},e}();function Tl(e){return Math.max(0,e)}function aF(e){var t=Tl(e.shadowBlur||0),r=Tl(e.shadowOffsetX||0),n=Tl(e.shadowOffsetY||0);return{left:Tl(t-r),right:Tl(t+r),top:Tl(t-n),bottom:Tl(t+n)}}function oF(e,t,r,n){e[0]=r,e[1]=n,e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var BPe=new Et({shape:{x:-1,y:-1,width:2,height:2}}),FPe=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(!(kt.node||!n.getDom())){var i=r.getComponent("tooltip"),a=this._renderMode=Lge(i.get("renderMode"));this._tooltipContent=a==="richText"?new zPe(n):new NPe(n,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(r,n,i){if(!(kt.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")?sp(this,"_updatePosition",50,"fixRate"):ig(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var r=this._tooltipModel,n=r.get("triggerOn");u7("itemTooltip",this._api,Ne(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||kt.node||!i.getDom())){var o=sF(a,i);this._ticket="";var s=a.dataByCoordSys,l=GPe(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=BPe;c.x=a.x,c.y=a.y,c.update(),tt(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=c7(a,n),d=f.point[0],p=f.point[1];d!=null&&p!=null&&this._tryShow({offsetX:d,offsetY:p,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(sF(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=Rh([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=tt(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;gc(i,function(c){if(tt(c).dataIndex!=null)return l=c,!0;if(tt(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=Ne(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=Rh([n.tooltipOption],a),l=this._renderMode,u=[],c=cn("section",{blocks:[],noHeader:!0}),f=[],d=new sC;$(r,function(b){$(b.dataByAxis,function(S){var w=i.getComponent(S.axisDim+"Axis",S.axisIndex),T=S.value;if(!(!w||T==null)){var C=o7(T,w.axis,i,S.seriesDataIndices,S.valueLabelOpt),A=cn("section",{header:C,noHeader:!Ya(C),sortBlocks:!0,blocks:[]});c.blocks.push(A),$(S.seriesDataIndices,function(I){var k=i.getSeriesByIndex(I.seriesIndex),P=I.dataIndexInside,R=k.getDataParams(P);if(!(R.dataIndex<0)){R.axisDim=S.axisDim,R.axisIndex=S.axisIndex,R.axisType=S.axisType,R.axisId=S.axisId,R.axisValue=Tk(w.axis,{value:T}),R.axisValueLabel=C,R.marker=d.makeTooltipMarker("item",Hc(R.color),l);var O=qz(k.formatTooltip(P,!0,null)),E=O.frag;if(E){var z=Rh([k],a).get("valueFormatter");A.blocks.push(z?oe({valueFormatter:z},E):E)}O.text&&f.push(O.text),u.push(R)}})}})}),c.blocks.reverse(),f.reverse();var p=n.position,v=s.get("order"),g=e5(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,p,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,x,u,Math.random()+"",o[0],o[1],p,null,d)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=tt(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),p=this._renderMode,v=r.positionDefault,g=Rh([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),b=new sC;x.marker=b.makeTooltipMarker("item",Hc(x.color),p);var S=qz(u.formatTooltip(c,!1,f)),w=g.get("order"),T=g.get("valueFormatter"),C=S.frag,A=C?e5(T?oe({valueFormatter:T},C):C,b,p,w,a.get("useUTC"),g.get("textStyle")):S.text,I="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,A,x,I,r.offsetX,r.offsetY,r.position,r.target,b)}),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=tt(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(De(l)){var c=l;l={content:c,formatter:c},u=!0}u&&a&&l.content&&(l=Ke(l),l.content=bi(l.content));var f=[l],d=this._ecModel.getComponent(o.componentMainType,o.componentIndex);d&&f.push(d),f.push({formatter:l.content});var p=r.positionDefault,v=Rh(f,this._tooltipModel,p?{position:p}:null),g=v.get("content"),y=Math.random()+"",x=new sC;this._showOrMove(v,function(){var b=Ke(v.get("formatterParams")||{});this._showTooltipContent(v,g,b,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 p=n,v=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),g=v.color;if(d)if(De(d)){var y=r.ecModel.get("useUTC"),x=he(i)?i[0]:i,b=x&&x.axisType&&x.axisType.indexOf("time")>=0;p=d,b&&(p=yb(x.axisValue,p,y)),p=iW(p,i,!0)}else if(je(d)){var S=Ne(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,p=d(i,a,S)}else p=d;f.setContent(p,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"||he(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!he(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"),p=r.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),je(n)&&(n=n([i,a],s,o.el,v,{viewSize:[u,c],contentSize:f.slice()})),he(n))i=Ce(n[0],u),a=Ce(n[1],c);else if(Xe(n)){var g=n;g.width=f[0],g.height=f[1];var y=Qr(g,{width:u,height:c});i=y.x,a=y.y,d=null,p=null}else if(De(n)&&l){var x=HPe(n,v,f,r.get("borderWidth"));i=x[0],a=x[1]}else{var x=$Pe(i,a,o,u,c,d?null:20,p?null:20);i=x[0],a=x[1]}if(d&&(i-=lF(d)?f[0]/2:d==="right"?f[0]:0),p&&(a-=lF(p)?f[1]/2:p==="bottom"?f[1]:0),_7(r)){var x=VPe(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&&$(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&$(u,function(d,p){var v=f[p]||{},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&&$(g,function(x,b){var S=y[b];o=o&&x.seriesIndex===S.seriesIndex&&x.dataIndex===S.dataIndex}),a&&$(d.seriesDataIndices,function(x){var b=x.seriesIndex,S=n[b],w=a[b];S&&w&&w.data!==S.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){kt.node||!n.getDom()||(ig(this,"_updatePosition"),this._tooltipContent.dispose(),YA("itemTooltip",n))},t.type="tooltip",t}(_r);function Rh(e,t,r){var n=t.ecModel,i;r?(i=new Zt(r,n,n),i=new Zt(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Zt&&(o=o.get("tooltip",!0)),De(o)&&(o={formatter:o}),o&&(i=new Zt(o,i,n)))}return i}function sF(e,t){return e.dispatchAction||Ne(t.dispatchAction,t)}function $Pe(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 VPe(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 HPe(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 lF(e){return e==="center"||e==="middle"}function GPe(e,t,r){var n=$I(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=zg(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=tt(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function WPe(e){St(rm),e.registerComponentModel(APe),e.registerComponentView(FPe),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Vr),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Vr)}var jPe=["rect","polygon","keep","clear"];function UPe(e,t){var r=ir(e?e.brush:[]);if(r.length){var n=[];$(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=e&&e.toolbox;he(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),YPe(s),t&&!s.length&&s.push.apply(s,jPe)}}function YPe(e){var t={};$(e,function(r){t[r]=1}),e.length=0,$(t,function(r,n){e.push(n)})}var uF=$;function cF(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function JA(e,t,r){var n={};return uF(t,function(a){var o=n[a]=i();uF(e[a],function(s,l){if(ln.isValidType(l)){var u={type:l,visual:s};r&&r(u,a),o[l]=new ln(u),l==="opacity"&&(u=Ke(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new ln(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function A7(e,t,r){var n;$(r,function(i){t.hasOwnProperty(i)&&cF(t[i])&&(n=!0)}),n&&$(r,function(i){t.hasOwnProperty(i)&&cF(t[i])?e[i]=Ke(t[i]):delete e[i]})}function qPe(e,t,r,n,i,a){var o={};$(e,function(f){var d=ln.prepareVisualTypes(t[f]);o[f]=d});var s;function l(f){return vk(r,s,f)}function u(f,d){YW(r,s,f,d)}r.each(c);function c(f,d){s=f;var p=r.getRawDataItem(s);if(!(p&&p.visualMap===!1))for(var v=n.call(i,f),g=t[v],y=o[v],x=0,b=y.length;x<b;x++){var S=y[x];g[S]&&g[S].applyVisual(f,l,u)}}}function XPe(e,t,r,n){var i={};return $(e,function(a){var o=ln.prepareVisualTypes(t[a]);i[a]=o}),{progress:function(o,s){var l;n!=null&&(l=s.getDimensionIndex(n));function u(T){return vk(s,f,T)}function c(T,C){YW(s,f,T,C)}for(var f,d=s.getStore();(f=o.next())!=null;){var p=s.getRawDataItem(f);if(!(p&&p.visualMap===!1))for(var v=n!=null?d.get(l,f):f,g=r(v),y=t[g],x=i[g],b=0,S=x.length;b<S;b++){var w=x[b];y[w]&&y[w].applyVisual(v,u,c)}}}}}function ZPe(e){var t=e.brushType,r={point:function(n){return fF[t].point(n,r,e)},rect:function(n){return fF[t].rect(n,r,e)}};return r}var fF={lineX:dF(0),lineY:dF(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])&&ac(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(ac(n,i,a)||ac(n,i+o,a)||ac(n,i,a+s)||ac(n,i+o,a+s)||vt.create(e).contain(l[0],l[1])||Yh(i,a,i+o,a,n)||Yh(i,a,i,a+s,n)||Yh(i+o,a,i+o,a+s,n)||Yh(i,a+s,i+o,a+s,n))return!0}}};function dF(e){var t=["x","y"],r=["width","height"];return{point:function(n,i,a){if(n){var o=a.range,s=n[e];return Lh(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(),Lh(s[0],o)||Lh(s[1],o)||Lh(o[0],s)||Lh(o[1],s)}}}}function Lh(e,t){return t[0]<=e&&e<=t[1]}var pF=["inBrush","outOfBrush"],wT="__ecBrushSelect",eM="__ecInBrushSelectEvent";function M7(e){e.eachComponent({mainType:"brush"},function(t){var r=t.brushTargetManager=new _P(t.option,e);r.setInputRanges(t.areas,e)})}function KPe(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:Ke(o.areas),selected:[]};n.push(l);var u=o.option,c=u.brushLink,f=[],d=[],p=[],v=!1;s||(i=u.throttleType,a=u.throttleDelay);var g=ve(o.areas,function(T){var C=tDe[T.brushType],A=Ye({boundingRect:C?C(T):void 0},T);return A.selectors=ZPe(A),A}),y=JA(o.option,pF,function(T){T.mappingMethod="fixed"});he(c)&&$(c,function(T){f[T]=1});function x(T){return c==="all"||!!f[T]}function b(T){return!!T.length}e.eachSeries(function(T,C){var A=p[C]=[];T.subType==="parallel"?S(T,C):w(T,C,A)});function S(T,C){var A=T.coordinateSystem;v=v||A.hasAxisBrushed(),x(C)&&A.eachActiveState(T.getData(),function(I,k){I==="active"&&(d[k]=1)})}function w(T,C,A){if(!(!T.brushSelector||eDe(o,C))&&($(g,function(k){o.brushTargetManager.controlSeries(k,T,e)&&A.push(k),v=v||b(A)}),x(C)&&b(A))){var I=T.getData();I.each(function(k){hF(T,A,I,k)&&(d[k]=1)})}}e.eachSeries(function(T,C){var A={seriesId:T.id,seriesIndex:C,seriesName:T.name,dataIndex:[]};l.selected.push(A);var I=p[C],k=T.getData(),P=x(C)?function(R){return d[R]?(A.dataIndex.push(k.getRawIndex(R)),"inBrush"):"outOfBrush"}:function(R){return hF(T,I,k,R)?(A.dataIndex.push(k.getRawIndex(R)),"inBrush"):"outOfBrush"};(x(C)?v:b(I))&&qPe(pF,y,k,P)})}),QPe(t,i,a,n,r)}function QPe(e,t,r,n,i){if(i){var a=e.getZr();if(!a[eM]){a[wT]||(a[wT]=JPe);var o=sp(a,wT,r,t);o(e,n)}}}function JPe(e,t){if(!e.isDisposed()){var r=e.getZr();r[eM]=!0,e.dispatchAction({type:"brushSelect",batch:t}),r[eM]=!1}}function hF(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 eDe(e,t){var r=e.option.seriesIndex;return r!=null&&r!=="all"&&(he(r)?bt(r,t)<0:t!==r)}var tDe={rect:function(e){return vF(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&&vF(t)}};function vF(e){return new vt(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var 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.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new Kk(n.getZr())).on("brush",Ne(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:Ke(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:Ke(i),$from:n})},t.type="brush",t}(_r),nDe="#ddd",iDe=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&&A7(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:nDe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=ve(r,function(n){return gF(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=gF(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}(Pt);function gF(e,t){return ht({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Zt(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var aDe=["rect","polygon","lineX","lineY","keep","clear"],oDe=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,$(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 $(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:aDe.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}(ya);function sDe(e){e.registerComponentView(rDe),e.registerComponentModel(iDe),e.registerPreprocessor(UPe),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,KPe),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"},Vr),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Vr),ad("brush",oDe)}var lDe=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}(Pt),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.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=it(r.get("textBaseline"),r.get("textVerticalAlign")),c=new zt({style:vr(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=r.get("subtext"),p=new zt({style:vr(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,p.silent=!g&&!y,v&&c.on("click",function(){N1(v,"_"+r.get("target"))}),g&&p.on("click",function(){N1(g,"_"+r.get("subtarget"))}),tt(c).eventData=tt(p).eventData=y?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),d&&a.add(p);var x=a.getBoundingRect(),b=r.getBoxLayoutParams();b.width=x.width,b.height=x.height;var S=Qr(b,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?S.x+=S.width:l==="center"&&(S.x+=S.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?S.y+=S.height:u==="middle"&&(S.y+=S.height/2),u=u||"top"),a.x=S.x,a.y=S.y,a.markRedraw();var w={align:l,verticalAlign:u};c.setStyle(w),p.setStyle(w),x=a.getBoundingRect();var T=S.margin,C=r.getItemStyle(["color","opacity"]);C.fill=r.get("backgroundColor");var A=new Et({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}(_r);function cDe(e){e.registerComponentModel(lDe),e.registerComponentView(uDe)}var mF=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=[],$(n,function(u,c){var f=Kr(Kd(u),""),d;Xe(u)?(d=Ke(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 ei([{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}(Pt),I7=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=uu(mF.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}(mF);Yr(I7,Tb.prototype);var fDe=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}(_r),dDe=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}(so),CT=Math.PI,yF=Ot(),pDe=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 cn("nameValue",{noName:!0,value:c})},$(["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=vDe(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?"+":"-":De(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:CT/2},f=a==="vertical"?o.height:o.width,d=r.getModel("controlStyle"),p=d.get("show",!0),v=p?d.get("itemSize"):0,g=p?d.get("itemGap"):0,y=v+g,x=r.get(["label","rotate"])||0;x=x*CT/180;var b,S,w,T=d.get("position",!0),C=p&&d.get("showPlayBtn",!0),A=p&&d.get("showPrevBtn",!0),I=p&&d.get("showNextBtn",!0),k=0,P=f;T==="left"||T==="bottom"?(C&&(b=[0,0],k+=y),A&&(S=[k,0],k+=y),I&&(w=[P-v,0],P-=y)):(C&&(b=[P-v,0],P-=y),A&&(S=[0,0],k+=y),I&&(w=[P-v,0],P-=y));var R=[k,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:b,prevBtnPosition:S,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;Zo(s,s,[-l,-u]),Yc(s,s,-CT/2),Zo(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=b(o),f=b(i.getBoundingRect()),d=b(a.getBoundingRect()),p=[i.x,i.y],v=[a.x,a.y];v[0]=p[0]=c[0][0];var g=r.labelPosOpt;if(g==null||De(g)){var y=g==="+"?0:1;S(p,f,c,1,y),S(v,d,c,1,1-y)}else{var y=g>=0?0:1;S(p,f,c,1,y),v[1]=p[1]+g}i.setPosition(p),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 b(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function S(w,T,C,A,I){w[A]+=C[A][I]-T[A][I]}},t.prototype._createAxis=function(r,n){var i=n.getData(),a=n.get("axisType"),o=hDe(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 dDe("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new Je;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 on({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 on({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Ye({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=[],$(l,function(u){var c=i.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),p=f.getModel(["emphasis","itemStyle"]),v=f.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:Ne(o._changeTimeline,o,u.value)},y=xF(f,d,n,g);y.ensureState("emphasis").style=p.getItemStyle(),y.ensureState("progress").style=v.getItemStyle(),Ac(y);var x=tt(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=[],$(u,function(c){var f=c.tickValue,d=l.getItemModel(f),p=d.getModel("label"),v=d.getModel(["emphasis","label"]),g=d.getModel(["progress","label"]),y=i.dataToCoord(c.tickValue),x=new zt({x:y,y:0,rotation:r.labelRotation-r.rotation,onclick:Ne(o._changeTimeline,o,f),silent:!1,style:vr(p,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});x.ensureState("emphasis").style=vr(v),x.ensureState("progress").style=vr(g),n.add(x),Ac(x),yF(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",Ne(this._changeTimeline,this,f?"-":"+")),d(r.prevBtnPosition,"prev",Ne(this._changeTimeline,this,f?"+":"-")),d(r.playPosition,c?"stop":"play",Ne(this._handlePlayClick,this,!c),!0);function d(p,v,g,y){if(p){var x=ro(it(a.get(["controlStyle",v+"BtnSize"]),o),o),b=[0,-x/2,x,x],S=gDe(a,v+"Icon",b,{x:p[0],y:p[1],originX:o/2,originY:0,rotation:y?-s:0,rectHover:!0,style:l,onclick:g});S.ensureState("emphasis").style=u,n.add(S),Ac(S)}}},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=Ne(u._handlePointerDrag,u),f.ondragend=Ne(u._handlePointerDragend,u),bF(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){bF(f,u._progressLine,s,i,a)}};this._currentPointer=xF(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=Sa(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 Za(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",yF(i[a]).dataIndex<=r)},t.type="timeline.slider",t}(fDe);function hDe(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new Db({ordinalMeta:e.getCategories(),extent:[1/0,-1/0]});case"time":return new wk({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new $s}}function vDe(e,t){return Qr(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},e.get("padding"))}function gDe(e,t,r,n){var i=n.style,a=Gg(e.get(["controlStyle",t]),n||{},new vt(r[0],r[1],r[2],r[3]));return i&&a.setStyle(i),a}function xF(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=Ur(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=ht({rectHover:!0,z2:100},n,!0);var u=lp(e.get("symbolSize"));n.scaleX=u[0]/2,n.scaleY=u[1]/2;var c=Xc(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 bF(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 mDe(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)}),Ye({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 yDe(e){var t=e&&e.timeline;he(t)||(t=t?[t]:[]),$(t,function(r){r&&xDe(r)})}function xDe(e){var t=e.type,r={number:"value",time:"time"};if(r[t]&&(e.axisType=r[t],delete e.type),SF(e),lc(e,"controlPosition")){var n=e.controlStyle||(e.controlStyle={});lc(n,"position")||(n.position=e.controlPosition),n.position==="none"&&!lc(n,"show")&&(n.show=!1,delete n.position),delete e.controlPosition}$(e.data||[],function(i){Xe(i)&&!he(i)&&(!lc(i,"value")&&lc(i,"name")&&(i.value=i.name),SF(i))})}function SF(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};$(n,function(o,s){!a[s]&&!lc(i,s)&&(i[s]=o)}),r.label&&!lc(n,"emphasis")&&(n.emphasis=r.label,delete r.label)}function lc(e,t){return e.hasOwnProperty(t)}function bDe(e){e.registerComponentModel(I7),e.registerComponentView(pDe),e.registerSubTypeDefaulter("timeline",function(){return"slider"}),mDe(e),e.registerPreprocessor(yDe)}function TP(e,t){if(!e)return!1;for(var r=he(e)?e:[e],n=0;n<r.length;n++)if(r[n]&&r[n][t])return!0;return!1}function T0(e){Bc(e,"label",["show"])}var A0=Ot(),Hs=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(kt.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=A0(s)[o];if(!l||!l.data){A0(s)[o]=null;return}u?u._mergeOption(l,n,!0):(a&&T0(l),$(l.data,function(c){c instanceof Array?(T0(c[0]),T0(c[1])):T0(c)}),u=this.createMarkerModelFromSeries(l,this,n),oe(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),A0(s)[o]=u},this)},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return cn("section",{header:this.name,blocks:[cn("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=Tb.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 A0(r)[n]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t}(Pt);Yr(Hs,Tb.prototype);var SDe=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}(Hs);function tM(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function _De(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function M0(e,t,r,n,i,a){var o=[],s=eu(t,n),l=s?t.getCalculationInfo("stackResultDimension"):n,u=AP(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=Eo(t.get(n,c));return d=Math.min(d,20),d>=0&&(o[a]=+o[a].toFixed(d)),[o,f]}var TT={min:at(M0,"min"),max:at(M0,"max"),average:at(M0,"average"),median:at(M0,"median")};function yg(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!_De(t)&&!he(t.coord)&&he(i)){var a=k7(t,r,n,e);if(t=Ke(t),t.type&&TT[t.type]&&a.baseAxis&&a.valueAxis){var o=bt(i,a.baseAxis.dim),s=bt(i,a.valueAxis.dim),l=TT[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||!he(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)TT[u[c]]&&(u[c]=AP(r,r.mapDimension(i[c]),u[c]));return t}}function k7(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(wDe(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 wDe(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function xg(e,t){return e&&e.containData&&t.coord&&!tM(t)?e.containData(t.coord):!0}function CDe(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!tM(t)&&!tM(r)?e.containZone(t.coord,r.coord):!0}function P7(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return Wl(o,t[a])}:function(r,n,i,a){return Wl(r.value,t[a])}}function AP(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 AT=Ot(),MP=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=$e()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){AT(s).keep=!1}),n.eachSeries(function(s){var l=Hs.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!AT(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){AT(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;$(r,function(a){var o=Hs.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?SG(l):YI(l))})}})},t.type="marker",t}(_r);function _F(e,t,r){var n=t.coordinateSystem;e.each(function(i){var a=e.getItemModel(i),o,s=Ce(a.get("x"),r.getWidth()),l=Ce(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 TDe=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=Hs.getMarkerModelFromSeries(a,"markPoint");o&&(_F(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 Xg),f=ADe(o,r,n);n.setData(f),_F(n.getData(),r,a),f.each(function(d){var p=f.getItemModel(d),v=p.getShallow("symbol"),g=p.getShallow("symbolSize"),y=p.getShallow("symbolRotate"),x=p.getShallow("symbolOffset"),b=p.getShallow("symbolKeepAspect");if(je(v)||je(g)||je(y)||je(x)){var S=n.getRawValue(d),w=n.getDataParams(d);je(v)&&(v=v(S,w)),je(g)&&(g=g(S,w)),je(y)&&(y=y(S,w)),je(x)&&(x=x(S,w))}var T=p.getModel("itemStyle").getItemStyle(),C=jg(l,"color");T.fill||(T.fill=C),f.setItemVisual(d,{symbol:v,symbolSize:g,symbolRotate:y,symbolOffset:x,symbolKeepAspect:b,style:T})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(p){tt(p).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(MP);function ADe(e,t,r){var n;e?n=ve(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 ei(n,r),a=ve(r.get("data"),at(yg,t));e&&(a=tr(a,at(xg,e)));var o=P7(!!e,n);return i.initData(a,null,o),i}function MDe(e){e.registerComponentModel(SDe),e.registerComponentView(TDe),e.registerPreprocessor(function(t){TP(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}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.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}(Hs),I0=Ot(),kDe=function(e,t,r,n){var i=e.getData(),a;if(he(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=gn(n.yAxis,n.xAxis);else{var u=k7(n,i,t,e);s=u.valueAxis;var c=_j(i,u.valueDataDim);l=AP(i,c,o)}var f=s.dim==="x"?0:1,d=1-f,p=Ke(n),v={coord:[]};p.type=null,p.coord=[],p.coord[d]=-1/0,v.coord[d]=1/0;var g=r.get("precision");g>=0&&Bt(l)&&(l=+l.toFixed(Math.min(g,20))),p.coord[f]=v.coord[f]=l,a=[p,v,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var y=[yg(e,a[0]),yg(e,a[1]),oe({},a[2])];return y[2].type=y[2].type||null,ht(y[2],y[0]),ht(y[2],y[1]),y};function lx(e){return!isNaN(e)&&!isFinite(e)}function wF(e,t,r,n){var i=1-e,a=n.dimensions[e];return lx(t[i])&&lx(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function PDe(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(wF(1,r,n,e)||wF(0,r,n,e)))return!0}return xg(e,t[0])&&xg(e,t[1])}function MT(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=Ce(o.get("x"),i.getWidth()),u=Ce(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(Kc(a,"cartesian2d")){var p=a.getAxis("x"),v=a.getAxis("y"),c=a.dimensions;lx(e.get(c[0],t))?s[0]=p.toGlobalCoord(p.getExtent()[r?0:1]):lx(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 DDe=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=Hs.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=I0(o).from,u=I0(o).to;l.each(function(c){MT(l,c,!0,a,i),MT(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 Zk);this.group.add(c.group);var f=RDe(o,r,n),d=f.from,p=f.to,v=f.line;I0(n).from=d,I0(n).to=p,n.setData(v);var g=n.get("symbol"),y=n.get("symbolSize"),x=n.get("symbolRotate"),b=n.get("symbolOffset");he(g)||(g=[g,g]),he(y)||(y=[y,y]),he(x)||(x=[x,x]),he(b)||(b=[b,b]),f.from.each(function(w){S(d,w,!0),S(p,w,!1)}),v.each(function(w){var T=v.getItemModel(w).getModel("lineStyle").getLineStyle();v.setItemLayout(w,[d.getItemLayout(w),p.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:p.getItemVisual(w,"symbolKeepAspect"),toSymbolOffset:p.getItemVisual(w,"symbolOffset"),toSymbolRotate:p.getItemVisual(w,"symbolRotate"),toSymbolSize:p.getItemVisual(w,"symbolSize"),toSymbol:p.getItemVisual(w,"symbol"),style:T})}),c.updateData(v),f.line.eachItemGraphicEl(function(w){tt(w).dataModel=n,w.traverse(function(T){tt(T).dataModel=n})});function S(w,T,C){var A=w.getItemModel(T);MT(w,T,C,r,a);var I=A.getModel("itemStyle").getItemStyle();I.fill==null&&(I.fill=jg(l,"color")),w.setItemVisual(T,{symbolKeepAspect:A.get("symbolKeepAspect"),symbolOffset:it(A.get("symbolOffset",!0),b[C?0:1]),symbolRotate:it(A.get("symbolRotate",!0),x[C?0:1]),symbolSize:it(A.get("symbolSize"),y[C?0:1]),symbol:it(A.get("symbol",!0),g[C?0:1]),style:I})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(MP);function RDe(e,t,r){var n;e?n=ve(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 ei(n,r),a=new ei(n,r),o=new ei([],r),s=ve(r.get("data"),at(kDe,t,e,r));e&&(s=tr(s,at(PDe,e)));var l=P7(!!e,n);return i.initData(ve(s,function(u){return u[0]}),null,l),a.initData(ve(s,function(u){return u[1]}),null,l),o.initData(ve(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function LDe(e){e.registerComponentModel(IDe),e.registerComponentView(DDe),e.registerPreprocessor(function(t){TP(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var EDe=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}(Hs),k0=Ot(),ODe=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=yg(e,i),s=yg(e,a),l=o.coord,u=s.coord;l[0]=gn(l[0],-1/0),l[1]=gn(l[1],-1/0),u[0]=gn(u[0],1/0),u[1]=gn(u[1],1/0);var c=kI([{},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 ux(e){return!isNaN(e)&&!isFinite(e)}function CF(e,t,r,n){var i=1-e;return ux(t[i])&&ux(r[i])}function NDe(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 Kc(e,"cartesian2d")?r&&n&&(CF(1,r,n)||CF(0,r,n))?!0:CDe(e,i,a):xg(e,i)||xg(e,a)}function TF(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=Ce(o.get(r[0]),i.getWidth()),u=Ce(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),p=a.clampData(f),v=[];r[0]==="x0"?v[0]=d[0]>p[0]?f[0]:c[0]:v[0]=d[0]>p[0]?c[0]:f[0],r[1]==="y0"?v[1]=d[1]>p[1]?f[1]:c[1]:v[1]=d[1]>p[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(Kc(a,"cartesian2d")){var b=a.getAxis("x"),S=a.getAxis("y"),g=e.get(r[0],t),y=e.get(r[1],t);ux(g)?s[0]=b.toGlobalCoord(b.getExtent()[r[0]==="x0"?0:1]):ux(y)&&(s[1]=S.toGlobalCoord(S.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var AF=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],zDe=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=Hs.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=ve(AF,function(f){return TF(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 Je});this.group.add(c.group),this.markKeep(c);var f=BDe(o,r,n);n.setData(f),f.each(function(d){var p=ve(AF,function(I){return TF(f,d,I,r,a)}),v=o.getAxis("x").scale,g=o.getAxis("y").scale,y=v.getExtent(),x=g.getExtent(),b=[v.parse(f.get("x0",d)),v.parse(f.get("x1",d))],S=[g.parse(f.get("y0",d)),g.parse(f.get("y1",d))];Sa(b),Sa(S);var w=!(y[0]>b[1]||y[1]<b[0]||x[0]>S[1]||x[1]<S[0]),T=!w;f.setItemLayout(d,{points:p,allClipped:T});var C=f.getItemModel(d).getModel("itemStyle").getItemStyle(),A=jg(l,"color");C.fill||(C.fill=A,De(C.fill)&&(C.fill=C1(C.fill,.4))),C.stroke||(C.stroke=A),f.setItemVisual(d,"style",C)}),f.diff(k0(c).data).add(function(d){var p=f.getItemLayout(d);if(!p.allClipped){var v=new ai({shape:{points:p.points}});f.setItemGraphicEl(d,v),c.group.add(v)}}).update(function(d,p){var v=k0(c).data.getItemGraphicEl(p),g=f.getItemLayout(d);g.allClipped?v&&c.group.remove(v):(v?Ht(v,{shape:{points:g.points}},n,d):v=new ai({shape:{points:g.points}}),f.setItemGraphicEl(d,v),c.group.add(v))}).remove(function(d){var p=k0(c).data.getItemGraphicEl(d);c.group.remove(p)}).execute(),f.eachItemGraphicEl(function(d,p){var v=f.getItemModel(p),g=f.getItemVisual(p,"style");d.useStyle(f.getItemVisual(p,"style")),Mn(d,un(v),{labelFetcher:n,labelDataIndex:p,defaultText:f.getName(p)||"",inheritColor:De(g.fill)?C1(g.fill,1):"#000"}),An(d,v),Rr(d,null,null,v.get(["emphasis","disabled"])),tt(d).dataModel=n}),k0(c).data=f,c.group.silent=n.get("silent")||r.get("silent")},t.type="markArea",t}(MP);function BDe(e,t,r){var n,i,a=["x0","y0","x1","y1"];if(e){var o=ve(e&&e.dimensions,function(u){var c=t.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return oe(oe({},f),{name:u,ordinalMeta:null})});i=ve(a,function(u,c){return{name:u,type:o[c%2].type}}),n=new ei(i,r)}else i=[{name:"value",type:"float"}],n=new ei(i,r);var s=ve(r.get("data"),at(ODe,t,e,r));e&&(s=tr(s,at(NDe,e)));var l=e?function(u,c,f,d){var p=u.coord[Math.floor(d/2)][d%2];return Wl(p,i[d])}:function(u,c,f,d){return Wl(u.value,i[d])};return n.initData(s,null,l),n.hasItemOption=!0,n}function FDe(e){e.registerComponentModel(EDe),e.registerComponentView(zDe),e.registerPreprocessor(function(t){TP(t.series,"markArea")&&(t.markArea=t.markArea||{})})}var $De=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"])}},rM=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"]),he(n)&&$(n,function(a,o){De(a)&&(a={type:a}),n[o]=ht(a,$De(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&&FI(l)&&n.push(l.name)}),this._availableNames=i;var a=this.get("data")||n,o=$e(),s=ve(a,function(l){return(De(l)||Bt(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Zt(l,this,this.ecModel))},this);this._data=tr(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;$(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;$(r,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var r=this._data,n=this.option.selected;$(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])&&bt(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}(Pt),Xf=at,nM=$,P0=Je,D7=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 P0),this.group.add(this._selectorGroup=new P0),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"),p=Qr(c,f,d),v=this.layoutInner(r,o,p,a,l,u),g=Qr(Ye({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=x7(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=$e(),f=n.get("selectedMode"),d=[];i.eachRawSeries(function(p){!p.get("legendHoverLink")&&d.push(p.id)}),nM(n.getData(),function(p,v){var g=p.get("name");if(!this.newlineDisabled&&(g===""||g===`
213
+ `)){var y=new P0;y.newline=!0,u.add(y);return}var x=i.getSeriesByName(g)[0];if(!c.get(g))if(x){var b=x.getData(),S=b.getVisual("legendLineStyle")||{},w=b.getVisual("legendIcon"),T=b.getVisual("style"),C=this._createItem(x,g,v,p,n,r,S,T,w,f,a);C.on("click",Xf(MF,g,null,a,d)).on("mouseover",Xf(iM,x.name,null,a,d)).on("mouseout",Xf(aM,x.name,null,a,d)),i.ssr&&C.eachChild(function(A){var I=tt(A);I.seriesIndex=x.seriesIndex,I.dataIndex=v,I.ssrType="legend"}),c.set(g,!0)}else i.eachRawSeries(function(A){if(!c.get(g)&&A.legendVisualProvider){var I=A.legendVisualProvider;if(!I.containName(g))return;var k=I.indexOfName(g),P=I.getItemVisual(k,"style"),R=I.getItemVisual(k,"legendIcon"),O=ji(P.fill);O&&O[3]===0&&(O[3]=.2,P=oe(oe({},P),{fill:Is(O,"rgba")}));var E=this._createItem(A,g,v,p,n,r,{},P,R,f,a);E.on("click",Xf(MF,null,g,a,d)).on("mouseover",Xf(iM,null,g,a,d)).on("mouseout",Xf(aM,null,g,a,d)),i.ssr&&E.eachChild(function(z){var B=tt(z);B.seriesIndex=A.seriesIndex,B.dataIndex=v,B.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();nM(r,function(u){var c=u.type,f=new zt({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"),p=n.getModel(["emphasis","selectorLabel"]);Mn(f,{normal:d,emphasis:p},{defaultText:u.title}),Ac(f)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,c,f,d){var p=r.visualDrawType,v=o.get("itemWidth"),g=o.get("itemHeight"),y=o.isSelected(n),x=a.get("symbolRotate"),b=a.get("symbolKeepAspect"),S=a.get("icon");c=S||c||"roundRect";var w=VDe(c,a,l,u,p,y,d),T=new P0,C=a.getModel("textStyle");if(je(r.getLegendIcon)&&(!S||S==="inherit"))T.add(r.getLegendIcon({itemWidth:v,itemHeight:g,icon:c,iconRotate:x,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:b}));else{var A=S==="inherit"&&r.getData().getVisual("symbol")?x==="inherit"?r.getData().getVisual("symbolRotate"):x:0;T.add(HDe({itemWidth:v,itemHeight:g,icon:c,iconRotate:A,itemStyle:w.itemStyle,symbolKeepAspect:b}))}var I=s==="left"?v+5:-5,k=s,P=o.get("formatter"),R=n;De(P)&&P?R=P.replace("{name}",n??""):je(P)&&(R=P(n));var O=y?C.getTextColor():a.get("inactiveColor");T.add(new zt({style:vr(C,{text:R,x:I,y:g/2,fill:O,align:k,verticalAlign:"middle"},{inheritColor:O})}));var E=new Et({shape:T.getBoundingRect(),style:{fill:"transparent"}}),z=a.getModel("tooltip");return z.get("show")&&ep({el:E,componentModel:o,itemName:n,itemTooltipOption:z.option}),T.add(E),T.eachChild(function(B){B.silent=!0}),E.silent=!f,this.getContentGroup().add(T),Ac(T),T.__legendDataIndex=i,T},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Ic(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){Ic("horizontal",u,r.get("selectorItemGap",!0));var d=u.getBoundingRect(),p=[-d.x,-d.y],v=r.get("selectorButtonGap",!0),g=r.getOrient().index,y=g===0?"width":"height",x=g===0?"height":"width",b=g===0?"y":"x";s==="end"?p[g]+=c[y]+v:f[g]+=d[y]+v,p[1-g]+=c[x]/2-d[x]/2,u.x=p[0],u.y=p[1],l.x=f[0],l.y=f[1];var S={x:0,y:0};return S[y]=c[y]+v+d[y],S[x]=Math.max(c[x],d[x]),S[b]=Math.min(0,d[b]+p[1-g]),S}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}(_r);function VDe(e,t,r,n,i,a,o){function s(y,x){y.lineWidth==="auto"&&(y.lineWidth=x.lineWidth>0?2:0),nM(y,function(b,S){y[S]==="inherit"&&(y[S]=x[S])})}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:zd(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"),p=d.getLineStyle();if(s(p,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),p.stroke==="auto"&&(p.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"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function HDe(e){var t=e.icon||"roundRect",r=Ur(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 MF(e,t,r,n){aM(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),iM(e,t,r,n)}function R7(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 iM(e,t,r,n){R7(r)||r.dispatchAction({type:"highlight",seriesName:e,name:t,excludeSeriesId:n})}function aM(e,t,r,n){R7(r)||r.dispatchAction({type:"downplay",seriesName:e,name:t,excludeSeriesId:n})}function GDe(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 Eh(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();$(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 WDe(e){e.registerAction("legendToggleSelect","legendselectchanged",at(Eh,"toggleSelected")),e.registerAction("legendAllSelect","legendselectall",at(Eh,"allSelect")),e.registerAction("legendInverseSelect","legendinverseselect",at(Eh,"inverseSelect")),e.registerAction("legendSelect","legendselected",at(Eh,"select")),e.registerAction("legendUnSelect","legendunselected",at(Eh,"unSelect"))}function L7(e){e.registerComponentModel(rM),e.registerComponentView(D7),e.registerProcessor(e.PRIORITY.PROCESSOR.SERIES_FILTER,GDe),e.registerSubTypeDefaulter("legend",function(){return"plain"}),WDe(e)}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.setScrollDataIndex=function(r){this.option.scrollDataIndex=r},t.prototype.init=function(r,n,i){var a=ip(r);e.prototype.init.call(this,r,n,i),IF(this,r,a)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),IF(this,this.option,r)},t.type="legend.scroll",t.defaultOption=uu(rM.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}(rM);function IF(e,t,r){var n=e.getOrient(),i=[1,1];i[n.index]=0,Jl(t,r,{type:"box",ignoreSize:!!i})}var kF=Je,IT=["width","height"],kT=["x","y"],UDe=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 kF),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new kF)},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=he(f)?f:[f,f];v("pagePrev",0);var p=n.getModel("pageTextStyle");c.add(new zt({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(g,y){var x=g+"DataIndex",b=Gg(n.get("pageIcons",!0)[n.getOrient().name][y],{onclick:Ne(u._pageGo,u,x,n,a)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});b.name=g,c.add(b)}},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getSelectorGroup(),u=r.getOrient().index,c=IT[u],f=kT[u],d=IT[1-u],p=kT[1-u];o&&Ic("horizontal",l,r.get("selectorItemGap",!0));var v=r.get("selectorButtonGap",!0),g=l.getBoundingRect(),y=[-g.x,-g.y],x=Ke(i);o&&(x[c]=i[c]-g[c]-v);var b=this._layoutContentAndController(r,a,x,u,c,d,p,f);if(o){if(s==="end")y[u]+=b[c]+v;else{var S=g[c]+v;y[u]-=S,b[f]-=S}b[c]+=g[c]+v,y[1-u]+=b[p]+b[d]/2-g[d]/2,b[d]=Math.max(b[d],g[d]),b[p]=Math.min(b[p],g[p]+y[1-u]),l.x=y[0],l.y=y[1],l.markRedraw()}return b},t.prototype._layoutContentAndController=function(r,n,i,a,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;Ic(r.get("orient"),c,r.get("itemGap"),a?i.width:null,a?null:i.height),Ic("horizontal",d,r.get("pageButtonItemGap",!0));var p=c.getBoundingRect(),v=d.getBoundingRect(),g=this._showController=p[o]>i[o],y=[-p.x,-p.y];n||(y[a]=c[u]);var x=[0,0],b=[-v.x,-v.y],S=it(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(g){var w=r.get("pageButtonPosition",!0);w==="end"?b[a]+=i[o]-v[o]:x[a]+=v[o]+S}b[1-a]+=p[s]/2-v[s]/2,c.setPosition(y),f.setPosition(x),d.setPosition(b);var T={x:0,y:0};if(T[o]=g?i[o]:p[o],T[s]=Math.max(p[s],v[s]),T[l]=Math.min(0,v[l]+b[1-a]),f.__rectSize=i[o],g){var C={x:0,y:0};C[o]=Math.max(i[o]-v[o]-S,0),C[s]=T[s],f.setClipPath(new Et({shape:C})),f.__rectSize=C[o]}else d.eachChild(function(I){I.attr({invisible:!0,silent:!0})});var A=this._getPageInfo(r);return A.pageIndex!=null&&Ht(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;$(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=n[f]!=null,p=i.childOfName(c);p&&(p.setStyle("fill",d?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),p.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",De(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=IT[o],l=kT[o],u=this._findTargetItemIndex(n),c=i.children(),f=c[u],d=c.length,p=d?1:0,v={contentPosition:[i.x,i.y],pageCount:p,pageIndex:p-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,b=g,S=null;y<=d;++y)S=w(c[y]),(!S&&b.e>x.s+a||S&&!T(S,x.s))&&(b.i>x.i?x=b:x=S,x&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=x.i),++v.pageCount)),b=S;for(var y=u-1,x=g,b=g,S=null;y>=-1;--y)S=w(c[y]),(!S||!T(b,S.s))&&x.i<b.i&&(b=x,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=x.i),++v.pageCount,++v.pageIndex),x=S;return v;function w(C){if(C){var A=C.getBoundingRect(),I=A[l]+C[l];return{s:I,e:I+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}(D7);function YDe(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 qDe(e){St(L7),e.registerComponentModel(jDe),e.registerComponentView(UDe),YDe(e)}function XDe(e){St(L7),St(qDe)}var ZDe=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=uu(mg.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(mg),IP=Ot();function KDe(e,t,r){IP(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function QDe(e,t){for(var r=IP(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||E7(r,o))}}}function E7(e,t){if(t){e.removeKey(t.model.uid);var r=t.controller;r&&r.dispose()}}function JDe(e,t){var r={model:t,containsPoint:at(tRe,t),dispatchAction:at(eRe,e),dataZoomInfoMap:null,controller:null},n=r.controller=new em(e.getZr());return $(["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 eRe(e,t){e.isDisposed()||e.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function tRe(e,t,r,n){return e.coordinateSystem.containPoint([r,n])}function rRe(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 nRe(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=IP(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=$e());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=g7(a);$(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,JDe(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=$e());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){E7(i,a);return}var c=rRe(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),sp(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var iRe=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(),KDe(i,r,{pan:Ne(PT.pan,this),zoom:Ne(PT.zoom,this),scrollMove:Ne(PT.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){QDe(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(xP),PT={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=DT[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(Jc(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:PF(function(e,t,r,n,i,a){var o=DT[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:PF(function(e,t,r,n,i,a){var o=DT[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function PF(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(Jc(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var DT={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 O7(e){bP(e),e.registerComponentModel(ZDe),e.registerComponentView(iRe),nRe(e)}var aRe=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=uu(mg.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}(mg),Oh=Et,DF=7,oRe=1,RT=30,sRe=7,Nh="horizontal",RF="vertical",lRe=5,uRe=["line","bar","candlestick","scatter"],cRe={easing:"cubicOut",duration:100,delay:0},fRe=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=Ne(this._onBrush,this),this._onBrushEnd=Ne(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),sp(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(){ig(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 Je;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?sRe:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===Nh?{right:s.width-o.x-o.width,top:s.height-RT-DF-a,width:o.width,height:RT}:{right:DF,top:o.y,width:RT,height:o.height},u=ip(r.option);$(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=Qr(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===RF&&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===Nh&&!o?{scaleY:l?1:-1,scaleX:1}:i===Nh&&o?{scaleY:l?1:-1,scaleX:-1}:i===RF&&!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 Oh({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new Oh({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:Ne(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 p=[0,n[1]],v=[0,n[0]],g=[[n[0],0],[0,0]],y=[],x=v[1]/(o.count()-1),b=0,S=Math.round(o.count()/n[0]),w;o.each([l],function(k,P){if(S>0&&P%S){b+=x;return}var R=k==null||isNaN(k)||k==="",O=R?0:Qt(k,f,p,!0);R&&!w&&P?(g.push([g[g.length-1][0],0]),y.push([y[y.length-1][0],0])):!R&&w&&(g.push([b,0]),y.push([b,0])),g.push([b,O]),y.push([b,O]),b+=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(k){var P=T.getModel(k?"selectedDataBackground":"dataBackground"),R=new Je,O=new ai({shape:{points:u},segmentIgnoreThreshold:1,style:P.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),E=new li({shape:{points:c},segmentIgnoreThreshold:1,style:P.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return R.add(O),R.add(E),R}for(var A=0;A<3;A++){var I=C(A===1);this._displayables.sliderGroup.add(I),this._displayables.dataShadowSegs.push(I)}},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();$(l,function(u){if(!i&&!(n!==!0&&bt(uRe,u.get("type"))<0)){var c=a.getComponent($l(o),s).axis,f=dRe(o),d,p=u.coordinateSystem;f!=null&&p.getOtherAxis&&(d=p.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 Oh({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new Oh({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:oRe,fill:"rgba(0,0,0,0)"}})),$([0,1],function(S){var w=l.get("handleIcon");!F1[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w);var T=Ur(w,-1,0,2,2,null,!0);T.attr({cursor:LF(this._orient),draggable:!0,drift:Ne(this._onDragMove,this,S),ondragend:Ne(this._onDragEnd,this),onmouseover:Ne(this._showDataInfo,this,!0),onmouseout:Ne(this._showDataInfo,this,!1),z2:5});var C=T.getBoundingRect(),A=l.get("handleSize");this._handleHeight=Ce(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(),Ac(T);var I=l.get("handleColor");I!=null&&(T.style.fill=I),o.add(i[S]=T);var k=l.getModel("textStyle");r.add(a[S]=new zt({silent:!0,invisible:!0,style:vr(k,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:k.getTextColor(),font:k.getFont()}),z2:10}))},this);var p=d;if(f){var v=Ce(l.get("moveHandleSize"),s[1]),g=n.moveHandle=new Et({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=Ur(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 b=Math.min(s[1]/2,Math.max(v,10));p=n.moveZone=new Et({invisible:!0,shape:{y:s[1]-b,height:v+b}}),p.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),o.add(g),o.add(x),o.add(p)}p.attr({draggable:!0,cursor:LF(this._orient),drift:Ne(this._onDragMove,this,"all"),ondragstart:Ne(this._showDataInfo,this,!0),ondragend:Ne(this._onDragEnd,this),onmouseover:Ne(this._showDataInfo,this,!0),onmouseout:Ne(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Qt(r[0],[0,100],n,!0),Qt(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];Jc(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?Qt(s.minSpan,l,o,!0):null,s.maxSpan!=null?Qt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Sa([Qt(a[0],o,l,!0),Qt(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=Sa(i.slice()),o=this._size;$([0,1],function(p){var v=n.handles[p],g=this._handleHeight;v.attr({scaleX:g/2,scaleY:g/2,x:i[p]+(p?-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 Et,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=Sa(this._handleEnds.slice());p.call(this,0),p.call(this,1);function p(v){var g=Mc(i.handles[v].parent,this.group),y=gb(v===0?"right":"left",g),x=this._handleWidth/2+lRe,b=Za([d[v]+(v===0?-x:x),this._size[1]/2],g);a[v].setStyle({x:b[0],y:b[1],verticalAlign:o===Nh?"middle":y,align:o===Nh?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 je(a)?a(r,s):De(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,Os(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Za([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 dt(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=Sa([Qt(i.x,o,s,!0),Qt(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&&(Os(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 Oh({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?cRe:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=g7(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}(xP);function dRe(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function LF(e){return e==="vertical"?"ns-resize":"ew-resize"}function N7(e){e.registerComponentModel(aRe),e.registerComponentView(fRe),bP(e)}function pRe(e){St(O7),St(N7)}var z7={get:function(e,t,r){var n=Ke((hRe[e]||{})[t]);return r&&he(n)?n[n.length-1]:n}},hRe={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]}},EF=ln.mapVisual,vRe=ln.eachVisual,gRe=he,OF=$,mRe=Sa,yRe=Qt,cx=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&&A7(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=Ne(r,this),this.controllerVisuals=JA(this.option.controller,n,r),this.targetVisuals=JA(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=ir(r),n},t.prototype.eachTargetSeries=function(r,n){$(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||["<",">"],he(r)&&(r=r.slice(),u=!0);var c=n?r:u?[f(r[0]),f(r[1])]:f(r);if(De(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(je(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=mRe([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={});ht(a,i),ht(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){gRe(n.color)&&!f.inRange&&(f.inRange={color:n.color.slice().reverse()}),f.inRange=f.inRange||{color:r.get("gradientColor")}}function u(f,d,p){var v=f[d],g=f[p];v&&!g&&(g=f[p]={},OF(v,function(y,x){if(ln.isValidType(x)){var b=z7.get(x,"inactive",s);b!=null&&(g[x]=b,x==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,p=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),g=this.getItemSymbol(),y=g||"roundRect";OF(this.stateList,function(x){var b=this.itemSize,S=f[x];S||(S=f[x]={color:s?v:[v]}),S.symbol==null&&(S.symbol=d&&Ke(d)||(s?y:[y])),S.symbolSize==null&&(S.symbolSize=p&&Ke(p)||(s?b[0]:[b[0],b[0]])),S.symbol=EF(S.symbol,function(C){return C==="none"?y:C});var w=S.symbolSize;if(w!=null){var T=-1/0;vRe(w,function(C){C>T&&(T=C)}),S.symbolSize=EF(w,function(C){return yRe(C,[0,T],[0,b[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}(Pt),NF=[20,140],xRe=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]=NF[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=NF[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):he(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),$(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=Sa((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=zF(this,"outOfRange",this.getExtent()),i=zF(this,"inRange",this.option.range.slice()),a=[];function o(p,v){a.push({value:p,color:r(p,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=uu(cx.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}(cx);function zF(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 B7=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=np(n.get("padding")||0),a=r.getBoundingRect();r.add(new Et({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(p){return s[p]}function c(p,v){s[p]=v}var f=o.controllerVisuals[a||o.getValueState(r)],d=ln.prepareVisualTypes(f);return $(d,function(p){var v=f[p];i.convertOpacityToAlpha&&p==="opacity"&&(p="colorAlpha",v=f.__alphaForOpacity),ln.dependsOn(p,n)&&v&&v.applyVisual(r,u,c)}),s[n]},t.prototype.positionGroup=function(r){var n=this.visualMapModel,i=this.api;wb(r,n.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},t.prototype.doRender=function(r,n,i,a){},t.type="visualMap",t}(_r),BF=[["left","right","width"],["top","bottom","height"]];function F7(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=BF[o],l=[0,null,10],u={},c=0;c<3;c++)u[BF[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=Qr(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 n1(e,t){return $(e||[],function(r){r.dataIndex!=null&&(r.dataIndexInside=r.dataIndex,r.dataIndex=null),r.highlightKey="visualMap"+(t?t.componentIndex:"")}),e}var Co=Qt,bRe=$,FF=Math.min,LT=Math.max,SRe=12,_Re=6,wRe=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=Ne(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Ne(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,p=this.visualMapModel.textStyleModel;this.group.add(new zt({style:vr(p,{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=F7(n,this.api,a),u=i.mainGroup=this._createBarGroup(l),c=new Je;u.add(c),c.add(i.outOfRange=$F()),c.add(i.inRange=$F(null,s?HF(this._orient):null,Ne(this._dragHandle,this,"all",!1),Ne(this._dragHandle,this,"all",!0))),c.setClipPath(new Et({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var f=n.textStyleModel.getTextRect("国"),d=LT(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=Ne(this._dragHandle,this,i,!1),u=Ne(this._dragHandle,this,i,!0),c=ro(r.get("handleSize"),a[0]),f=Ur(r.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=HF(this._orient);f.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(x){Os(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(),hc(f,!0),n.add(f);var p=this.visualMapModel.textStyleModel,v=new zt({cursor:d,draggable:!0,drift:l,onmousemove:function(x){Os(x.event)},ondragend:u,style:vr(p,{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=ro(r.get("indicatorSize"),i[0]),l=Ur(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 mn){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 zt({silent:!0,invisible:!0,style:vr(f,{x:0,y:0,text:""})});this.group.add(d);var p=[(o==="horizontal"?a/2:_Re)+i[0]/2,0],v=this._shapes;v.indicator=l,v.indicatorLabel=d,v.indicatorLabelPoint=p,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():VF(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=[Co(n[0],i,a,!0),Co(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]];Jc(n,a,o,r,0);var s=i.getExtent();this._dataInterval=[Co(a[0],o,s,!0),Co(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 Vg(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 Je(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();bRe([0,1],function(c){var f=o[c];f.setStyle("fill",n.handlesColor[c]),f.y=r[c];var d=Co(r[c],[0,l[1]],u,!0),p=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=p/l[0],f.x=l[0]-p/2;var v=Za(i.handleLabelPoints[c],Mc(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},p=this.getControllerVisual(r,"color",d),v=this.getControllerVisual(r,"symbolSize"),g=Co(r,s,u,!0),y=l[0]-v/2,x={x:f.x,y:f.y};f.y=g,f.x=y;var b=Za(c.indicatorLabelPoint,Mc(f,this.group)),S=c.indicatorLabel;S.attr("invisible",!1);var w=this._applyTransform("left",c.mainGroup),T=this._orient,C=T==="horizontal";S.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:C?w:"middle",align:C?"center":w});var A={x:y,y:g,style:{fill:p}},I={style:{x:b[0],y:b[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var k={duration:100,easing:"cubicInOut",additive:!0};f.x=x.x,f.y=x.y,f.animateTo(A,k),S.animateTo(I,k)}else f.attr(A),S.attr(I);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]=FF(LT(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=FF(LT(o[0],r),o[1]);var l=CRe(i,s,o),u=[r-l,r+l],c=Co(r,o,s,!0),f=[Co(u[0],o,s,!0),Co(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,p=[];(n||VF(i))&&(p=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var v=kge(d,p);this._dispatchHighDown("downplay",n1(v[0],i)),this._dispatchHighDown("highlight",n1(v[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(gc(r.target,function(l){var u=tt(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",n1(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=Mc(n,a?null:this.group);return he(r)?Za(r,o,i):gb(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}(B7);function $F(e,t,r,n){return new ai({shape:{points:e},draggable:!!r,cursor:t,drift:r,onmousemove:function(i){Os(i.event)},ondragend:n})}function CRe(e,t,r){var n=SRe/2,i=e.get("hoverLinkDataSize");return i&&(n=Co(i,t,r,!0)/2),n}function VF(e){var t=e.get("hoverLinkOnHandle");return!!(t??e.get("realtime"))}function HF(e){return e==="vertical"?"ns-resize":"ew-resize"}var TRe={type:"selectDataRange",event:"dataRangeSelected",update:"update"},ARe=function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(r){r.setSelected(e.selected)})},MRe=[{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(XPe(n.stateList,n.targetVisuals,Ne(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(Ne(IRe,null,e,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(r);o>=0&&(a.dimension=o,n.push(a))}}),e.getData().setVisual("visualMeta",n)}}];function IRe(e,t,r,n){for(var i=t.targetVisuals[n],a=ln.prepareVisualTypes(i),o={color:jg(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(p){return o[p]}function d(p,v){o[p]=v}}var GF=$;function kRe(e){var t=e&&e.visualMap;he(t)||(t=t?[t]:[]),GF(t,function(r){if(r){Zf(r,"splitList")&&!Zf(r,"pieces")&&(r.pieces=r.splitList,delete r.splitList);var n=r.pieces;n&&he(n)&&GF(n,function(i){Xe(i)&&(Zf(i,"start")&&!Zf(i,"min")&&(i.min=i.start),Zf(i,"end")&&!Zf(i,"max")&&(i.max=i.end))})}})}function Zf(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var WF=!1;function $7(e){WF||(WF=!0,e.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction(TRe,ARe),$(MRe,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(kRe))}function V7(e){e.registerComponentModel(xRe),e.registerComponentView(wRe),$7(e)}var PRe=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=[],DRe[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=Ke(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=ve(this._pieceList,function(l){return l=Ke(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=ln.listVisualTypes(),a=this.isCategory();$(r.pieces,function(s){$(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),$(n,function(s,l){var u=!1;$(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&$(this.stateList,function(c){(r[c]||(r[c]={}))[l]=z7.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,$(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;$(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=Ke(r)},t.prototype.getValueState=function(r){var n=ln.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=ln.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 p=r(d,f);c[0]===-1/0?i[0]=p:c[1]===1/0?i[1]=p:n.push({value:c[0],color:p},{value:c[1],color:p})}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 $(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=uu(cx.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}(cx),DRe={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]}),$N(e),$(e,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(e){var t=this.option;$(t.categories,function(r){e.push({text:this.formatValueText(r,!0),value:r})},this),jF(t,e)},pieces:function(e){var t=this.option;$(t.pieces,function(r,n){Xe(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],p=0;p<3&&o[f]==null;p++)o[f]=r[d[p]],s[f]=l[p],c[f]=p===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=ln.retrieveVisuals(r),e.push(i)},this),jF(t,e),$N(e),$(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 jF(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}var RRe=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=gn(n.get("showLabel",!0),!f);f&&this._renderEndsText(r,f[0],u,d,l),$(c.viewPieceList,function(p){var v=p.piece,g=new Je;g.onclick=Ne(this._onItemClick,this,v),this._enableHoverLink(g,p.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 zt({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),Ic(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:n1(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return F7(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 Je,l=this.visualMapModel.textStyleModel;s.add(new zt({style:vr(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=ve(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(Ur(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=Ke(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,$(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}(B7);function H7(e){e.registerComponentModel(PRe),e.registerComponentView(RRe),$7(e)}function LRe(e){St(V7),St(H7)}var ERe={label:{enabled:!0},decal:{show:!1}},UF=Ot(),ORe={};function NRe(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=Ke(ERe);ht(n.label,e.getLocaleModel().get("aria"),!1),ht(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),c=u.get("show");if(c){var f=$e();e.eachSeries(function(d){if(!d.isColorBySeries()){var p=f.get(d.type);p||(p={},f.set(d.type,p)),UF(d).scope=p}}),e.eachRawSeries(function(d){if(e.isSeriesFiltered(d))return;if(je(d.enableAriaDecal)){d.enableAriaDecal();return}var p=d.getData();if(d.isColorBySeries()){var b=iA(d.ecModel,d.name,ORe,e.getSeriesCount()),S=p.getVisual("decal");p.setVisual("decal",w(S,b))}else{var v=d.getRawData(),g={},y=UF(d).scope;p.each(function(T){var C=p.getRawIndex(T);g[C]=T});var x=v.count();v.each(function(T){var C=g[T],A=v.getName(T)||T+"",I=iA(d.ecModel,A,y,x),k=p.getItemVisual(C,"decal");p.setItemVisual(C,"decal",w(k,I))})}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=Ye(f.option,c),!!f.get("enabled")){if(f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var d=e.getSeriesCount(),p=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 b=f.get(["general","withTitle"]);y=o(b,{title:x})}else y=f.get(["general","withoutTitle"]);var S=[],w=d>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);y+=o(w,{seriesCount:d}),e.eachSeries(function(I,k){if(k<g){var P=void 0,R=I.get("name"),O=R?"withName":"withoutName";P=d>1?f.get(["series","multiple",O]):f.get(["series","single",O]),P=o(P,{seriesId:I.seriesIndex,seriesName:I.get("name"),seriesType:l(I.subType)});var E=I.getData();if(E.count()>p){var z=f.get(["data","partialData"]);P+=o(z,{displayCnt:p})}else P+=f.get(["data","allData"]);for(var B=f.get(["data","separator","middle"]),W=f.get(["data","separator","end"]),X=[],H=0;H<E.count();H++)if(H<p){var q=E.getName(H),F=E.getValues(H),Y=f.get(["data",q?"withName":"withoutName"]);X.push(o(Y,{name:q,value:F.join(B)}))}P+=X.join(B)+W,S.push(P)}});var T=f.getModel(["series","multiple","separator"]),C=T.get("middle"),A=T.get("end");y+=S.join(C)+A,u.setAttribute("aria-label",y)}}}}function o(u,c){if(!De(u))return u;var f=u;return $(c,function(d,p){f=f.replace(new RegExp("\\{\\s*"+p+"\\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 zRe(e){if(!(!e||!e.aria)){var t=e.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},$(["description","general","series","data"],function(r){t[r]!=null&&(t.label[r]=t[r])})}}function BRe(e){e.registerPreprocessor(zRe),e.registerVisual(e.PRIORITY.VISUAL.ARIA,NRe)}var YF={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},FRe=function(){function e(t){var r=this._condVal=De(t)?new RegExp(t):Uhe(t)?t:null;if(r==null){var n="";Yt(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return De(r)?this._condVal.test(t):Bt(r)?this._condVal.test(t+""):!1},e}(),$Re=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),VRe=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}(),HRe=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}(),GRe=function(){function e(){}return e.prototype.evaluate=function(){return!this.child.evaluate()},e}(),WRe=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 kP(e,t){if(e===!0||e===!1){var r=new $Re;return r.value=e,r}var n="";return G7(e)||Yt(n),e.and?qF("and",e,t):e.or?qF("or",e,t):e.not?jRe(e,t):URe(e,t)}function qF(e,t,r){var n=t[e],i="";he(n)||Yt(i),n.length||Yt(i);var a=e==="and"?new VRe:new HRe;return a.children=ve(n,function(o){return kP(o,r)}),a.children.length||Yt(i),a}function jRe(e,t){var r=e.not,n="";G7(r)||Yt(n);var i=new GRe;return i.child=kP(r,t),i.child||Yt(n),i}function URe(e,t){for(var r="",n=t.prepareGetValue(e),i=[],a=Dt(e),o=e.parser,s=o?CW(o):null,l=0;l<a.length;l++){var u=a[l];if(!(u==="parser"||t.valueGetterAttrMap.get(u))){var c=Fe(YF,u)?YF[u]:u,f=e[u],d=s?s(f):f,p=R0e(c,d)||c==="reg"&&new FRe(d);p||Yt(r),i.push(p)}}i.length||Yt(r);var v=new WRe;return v.valueGetterParam=n,v.valueParser=s,v.getValue=t.getValue,v.subCondList=i,v}function G7(e){return Xe(e)&&!Bn(e)}var YRe=function(){function e(t,r){this._cond=kP(t,r)}return e.prototype.evaluate=function(){return this._cond.evaluate()},e}();function qRe(e,t){return new YRe(e,t)}var XRe={type:"echarts:filter",transform:function(e){for(var t=e.upstream,r,n=qRe(e.config,{valueGetterAttrMap:$e({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;Fe(s,"dimension")||Yt(l);var c=t.getDimensionInfo(u);return c||Yt(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}}},ZRe={type:"echarts:sort",transform:function(e){var t=e.upstream,r=e.config,n="",i=ir(r);i.length||Yt(n);var a=[];$(i,function(c){var f=c.dimension,d=c.order,p=c.parser,v=c.incomparable;if(f==null&&Yt(n),d!=="asc"&&d!=="desc"&&Yt(n),v&&v!=="min"&&v!=="max"){var g="";Yt(g)}if(d!=="asc"&&d!=="desc"){var y="";Yt(y)}var x=t.getDimensionInfo(f);x||Yt(n);var b=p?CW(p):null;p&&!b&&Yt(n),a.push({dimIdx:x.index,parser:b,comparator:new AW(d,v)})});var o=t.sourceFormat;o!==Fn&&o!==Ra&&Yt(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 p=a[d],v=t.retrieveValueFromItem(c,p.dimIdx),g=t.retrieveValueFromItem(f,p.dimIdx);p.parser&&(v=p.parser(v),g=p.parser(g));var y=p.comparator.evaluate(v,g);if(y!==0)return y}return 0}),{data:s}}};function KRe(e){e.registerTransform(XRe),e.registerTransform(ZRe)}var QRe=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 PW(this),Qz(this)},t.prototype.mergeOption=function(r,n){e.prototype.mergeOption.call(this,r,n),Qz(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Wo},t}(Pt),JRe=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}(_r);function eLe(e){e.registerComponentModel(QRe),e.registerComponentView(JRe)}var _o=Jo.CMD;function dd(e,t){return Math.abs(e-t)<1e-5}function oM(e){var t=e.data,r=e.len(),n=[],i,a=0,o=0,s=0,l=0;function u(E,z){i&&i.length>2&&n.push(i),i=[E,z]}function c(E,z,B,W){dd(E,B)&&dd(z,W)||i.push(E,z,B,W,B,W)}function f(E,z,B,W,X,H){var q=Math.abs(z-E),F=Math.tan(q/4)*4/3,Y=z<E?-1:1,Z=Math.cos(E),j=Math.sin(E),te=Math.cos(z),fe=Math.sin(z),re=Z*X+B,ce=j*H+W,ne=te*X+B,pe=fe*H+W,me=X*F*Y,le=H*F*Y;i.push(re-me*j,ce+le*Z,ne+me*fe,pe-le*te,ne,pe)}for(var d,p,v,g,y=0;y<r;){var x=t[y++],b=y===1;switch(b&&(a=t[y],o=t[y+1],s=a,l=o,(x===_o.L||x===_o.C||x===_o.Q)&&(i=[s,l])),x){case _o.M:a=s=t[y++],o=l=t[y++],u(s,l);break;case _o.L:d=t[y++],p=t[y++],c(a,o,d,p),a=d,o=p;break;case _o.C:i.push(t[y++],t[y++],t[y++],t[y++],a=t[y++],o=t[y++]);break;case _o.Q:d=t[y++],p=t[y++],v=t[y++],g=t[y++],i.push(a+2/3*(d-a),o+2/3*(p-o),v+2/3*(d-v),g+2/3*(p-g),v,g),a=v,o=g;break;case _o.A:var S=t[y++],w=t[y++],T=t[y++],C=t[y++],A=t[y++],I=t[y++]+A;y+=1;var k=!t[y++];d=Math.cos(A)*T+S,p=Math.sin(A)*C+w,b?(s=d,l=p,u(s,l)):c(a,o,d,p),a=Math.cos(I)*T+S,o=Math.sin(I)*C+w;for(var P=(k?-1:1)*Math.PI/2,R=A;k?R>I:R<I;R+=P){var O=k?Math.max(R+P,I):Math.min(R+P,I);f(R,O,S,w,T,C)}break;case _o.R:s=a=t[y++],l=o=t[y++],d=s+t[y++],p=l+t[y++],u(d,l),c(d,l,d,p),c(d,p,s,p),c(s,p,s,l),c(s,l,d,l);break;case _o.Z:i&&c(a,o,s,l),a=s,o=l;break}}return i&&i.length>2&&n.push(i),n}function sM(e,t,r,n,i,a,o,s,l,u){if(dd(e,r)&&dd(t,n)&&dd(i,o)&&dd(a,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-e,p=s-t,v=Math.sqrt(d*d+p*p);d/=v,p/=v;var g=r-e,y=n-t,x=i-o,b=a-s,S=g*g+y*y,w=x*x+b*b;if(S<f&&w<f){l.push(o,s);return}var T=d*g+p*y,C=-d*x-p*b,A=S-T*T,I=w-C*C;if(A<f&&T>=0&&I<f&&C>=0){l.push(o,s);return}var k=[],P=[];Kl(e,r,i,o,.5,k),Kl(t,n,a,s,.5,P),sM(k[0],P[0],k[1],P[1],k[2],P[2],k[3],P[3],l,u),sM(k[4],P[4],k[5],P[5],k[6],P[6],k[7],P[7],l,u)}function tLe(e,t){var r=oM(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++],p=a[u++],v=a[u++],g=a[u++];sM(s,l,c,f,d,p,v,g,o,t),s=v,l=g}n.push(o)}return n}function W7(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 XF(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=W7([l,u],c?0:1,t),d=(c?s:u)/f.length,p=0;p<f.length;p++)for(var v=(c?u:s)/f[p],g=0;g<f[p];g++){var y={};c?(y.startAngle=a+d*p,y.endAngle=a+d*(p+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*p,y.r=n+d*(p+1)),y.clockwise=e.clockwise,y.cx=e.cx,y.cy=e.cy,r.push(y)}}function rLe(e,t,r){for(var n=e.width,i=e.height,a=n>i,o=W7([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 p=e[l]/o[d],v=0;v<o[d];v++){var g={};g[u]=d*f,g[c]=v*p,g[s]=f,g[l]=p,g.x+=e.x,g.y+=e.y,r.push(g)}}function ZF(e,t,r,n){return e*n-r*t}function nLe(e,t,r,n,i,a,o,s){var l=r-e,u=n-t,c=o-i,f=s-a,d=ZF(c,f,l,u);if(Math.abs(d)<1e-6)return null;var p=e-i,v=t-a,g=ZF(p,v,c,f)/d;return g<0||g>1?null:new dt(g*l+e,g*u+t)}function iLe(e,t,r){var n=new dt;dt.sub(n,r,t),n.normalize();var i=new dt;dt.sub(i,e,t);var a=i.dot(n);return a}function Kf(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function aLe(e,t,r){for(var n=e.length,i=[],a=0;a<n;a++){var o=e[a],s=e[(a+1)%n],l=nLe(o[0],o[1],s[0],s[1],t.x,t.y,r.x,r.y);l&&i.push({projPt:iLe(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],p=[c.pt.x,c.pt.y],v=[d],g=[p],a=u.idx+1;a<=c.idx;a++)Kf(v,e[a].slice());Kf(v,p),Kf(v,d);for(var a=c.idx+1;a<=u.idx+n;a++)Kf(g,e[a%n].slice());return Kf(g,d),Kf(g,p),[{points:v},{points:g}]}function KF(e){var t=e.points,r=[],n=[];cb(t,r,n);var i=new vt(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 dt,c=new dt;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),aLe(t,u,c)}function fx(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);fx(e,a[0],i,n),fx(e,a[1],r-i,n)}return n}function oLe(e,t){for(var r=[],n=0;n<t;n++)r.push(XI(e));return r}function sLe(e,t){t.setStyle(e.style),t.z=e.z,t.z2=e.z2,t.zlevel=e.zlevel}function lLe(e){for(var t=[],r=0;r<e.length;)t.push([e[r++],e[r++]]);return t}function uLe(e,t){var r=[],n=e.shape,i;switch(e.type){case"rect":rLe(n,t,r),i=Et;break;case"sector":XF(n,t,r),i=ii;break;case"circle":XF({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},t,r),i=ii;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=ve(tLe(e.getUpdatedPathProxy(),o),function(x){return lLe(x)}),l=s.length;if(l===0)fx(KF,{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=ve(s,function(x){var b=[],S=[];cb(x,b,S);var w=(S[1]-b[1])*(S[0]-b[0]);return c+=w,{poly:x,area:w}});f.sort(function(x,b){return b.area-x.area});for(var d=t,u=0;u<l;u++){var p=f[u];if(d<=0)break;var v=u===l-1?d:Math.ceil(p.area/c*t);v<0||(fx(KF,{points:p.poly},v,r),d-=v)}}i=ai;break}if(!i)return oLe(e,t);for(var g=[],u=0;u<r.length;u++){var y=new i;y.setShape(r[u]),sLe(e,y),g.push(y)}return g}function cLe(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,p=2;p<s;){var v=o[p-2],g=o[p-1],y=o[p++],x=o[p++],b=o[p++],S=o[p++],w=o[p++],T=o[p++];if(d<=0){f.push(y,x,b,S,w,T);continue}for(var C=Math.min(d,c-1)+1,A=1;A<=C;A++){var I=A/C;Kl(v,y,b,w,I,i),Kl(g,x,S,T,I,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],b=i[6],S=a[6]}d-=C-1}return o===e?[f,t]:[e,f]}function QF(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 fLe(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=cLe(l,u),c=r[0],f=r[1],n=c,i=f):(f=QF(i||l,l),c=l):(c=QF(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 dLe(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 p=d===0?c:(c+d-2)%l+2,v=e[p]-r[0],g=e[p+1]-r[1],y=t[d]-n[0],x=t[d+1]-n[1],b=y-v,S=x-g;f+=b*b+S*S}f<a&&(a=f,o=u)}return o}function pLe(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 hLe(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=[],p=0,v=1/0,g=[],y=s.length;a&&(s=pLe(s));for(var x=dLe(s,l,u,c)*6,b=y-2,S=0;S<b;S+=2){var w=(x+S)%b+2;f[S+2]=s[w]-u[0],f[S+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),I=Math.cos(C),k=0,S=0;S<s.length;S+=2){var P=f[S],R=f[S+1],O=l[S]-c[0],E=l[S+1]-c[1],z=O*I-E*A,B=O*A+E*I;g[S]=z,g[S+1]=B;var W=z-P,X=B-R;k+=W*W+X*X}if(k<v){v=k,p=C;for(var H=0;H<g.length;H++)d[H]=g[H]}}i.push({from:f,to:d,fromCp:u,toCp:c,rotation:-p})}return i}function dx(e){return e.__isCombineMorphing}var j7="__mOriginal_";function px(e,t,r){var n=j7+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 Iv(e,t){var r=j7+t;e[r]&&(e[t]=e[r],e[r]=null)}function e$(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 U7(e,t){var r=e.getUpdatedPathProxy(),n=t.getUpdatedPathProxy(),i=fLe(oM(r),oM(n)),a=i[0],o=i[1],s=e.getComputedTransform(),l=t.getComputedTransform();function u(){this.transform=null}s&&e$(a,s),l&&e$(o,l),px(t,"updateTransform",{replace:u}),t.transform=null;var c=hLe(a,o,10,Math.PI),f=[];px(t,"buildPath",{replace:function(d){for(var p=t.__morphT,v=1-p,g=[],y=0;y<c.length;y++){var x=c[y],b=x.from,S=x.to,w=x.rotation*p,T=x.fromCp,C=x.toCp,A=Math.sin(w),I=Math.cos(w);B0(g,T,C,p);for(var k=0;k<b.length;k+=2){var P=b[k],R=b[k+1],O=S[k],E=S[k+1],z=P*v+O*p,B=R*v+E*p;f[k]=z*I-B*A+g[0],f[k+1]=z*A+B*I+g[1]}var W=f[0],X=f[1];d.moveTo(W,X);for(var k=2;k<b.length;){var O=f[k++],E=f[k++],H=f[k++],q=f[k++],F=f[k++],Y=f[k++];W===O&&X===E&&H===F&&q===Y?d.lineTo(F,Y):d.bezierCurveTo(O,E,H,q,F,Y),W=F,X=Y}}}})}function PP(e,t,r){if(!e||!t)return t;var n=r.done,i=r.during;U7(e,t),t.__morphT=0;function a(){Iv(t,"buildPath"),Iv(t,"updateTransform"),t.__morphT=-1,t.createPathProxy(),t.dirtyShape()}return t.animateTo({__morphT:1},Ye({during:function(o){t.dirtyShape(),i&&i(o)},done:function(){a(),n&&n()}},r)),t}function vLe(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 hx(e){var t=1/0,r=1/0,n=-1/0,i=-1/0,a=ve(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=ve(a,function(s,l){return{cp:s,z:vLe(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 Y7(e){return uLe(e.path,e.count)}function lM(){return{fromIndividuals:[],toIndividuals:[],count:0}}function gLe(e,t,r){var n=[];function i(T){for(var C=0;C<T.length;C++){var A=T[C];dx(A)?i(A.childrenRef()):A instanceof wt&&n.push(A)}}i(e);var a=n.length;if(!a)return lM();var o=r.dividePath||Y7,s=o({path:t,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),lM();n=hx(n),s=hx(s);for(var l=r.done,u=r.during,c=r.individualDelay,f=new ws,d=0;d<a;d++){var p=n[d],v=s[d];v.parent=t,v.copyTransform(f),c||U7(p,v)}t.__isCombineMorphing=!0,t.childrenRef=function(){return s};function g(T){for(var C=0;C<s.length;C++)s[C].addSelfToZr(T)}px(t,"addSelfToZr",{after:function(T){g(T)}}),px(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,Iv(t,"addSelfToZr"),Iv(t,"removeSelfFromZr")}var x=s.length;if(c)for(var b=x,S=function(){b--,b===0&&(y(),l&&l())},d=0;d<x;d++){var w=c?Ye({delay:(r.delay||0)+c(d,x,n[d],s[d]),done:S},r):r;PP(n[d],s[d],w)}else t.__morphT=0,t.animateTo({__morphT:1},Ye({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++)Iv(e[T],"updateTransform");l&&l()}},r));return t.__zr&&g(t.__zr),{fromIndividuals:n,toIndividuals:s,count:x}}function mLe(e,t,r){var n=t.length,i=[],a=r.dividePath||Y7;function o(p){for(var v=0;v<p.length;v++){var g=p[v];dx(g)?o(g.childrenRef()):g instanceof wt&&i.push(g)}}if(dx(e)){o(e.childrenRef());var s=i.length;if(s<n)for(var l=0,u=s;u<n;u++)i.push(XI(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"),lM()}i=hx(i),t=hx(t);for(var f=r.individualDelay,u=0;u<n;u++){var d=f?Ye({delay:(r.delay||0)+f(u,n,i[u],t[u])},r):r;PP(i[u],t[u],d)}return{fromIndividuals:i,toIndividuals:t,count:t.length}}function t$(e){return he(e[0])}function r$(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 yLe={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=XI(e.path);i.setStyle("opacity",r),t.push(i)}return t},split:null};function ET(e,t,r,n,i,a){if(!e.length||!t.length)return;var o=Jd("update",n,i);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;t$(e)&&(u=e,c=t),t$(t)&&(u=t,c=e);function f(x,b,S,w,T){var C=x.many,A=x.one;if(C.length===1&&!T){var I=b?C[0]:A,k=b?A:C[0];if(dx(I))f({many:[I],one:k},!0,S,w,!0);else{var P=s?Ye({delay:s(S,w)},l):l;PP(I,k,P),a(I,k,I,k,P)}}else for(var R=Ye({dividePath:yLe[r],individualDelay:s&&function(X,H,q,F){return s(X+S,w)}},l),O=b?gLe(C,A,R):mLe(A,C,R),E=O.fromIndividuals,z=O.toIndividuals,B=E.length,W=0;W<B;W++){var P=s?Ye({delay:s(W,B)},l):l;a(E[W],z[W],b?C[W]:x.one,b?x.one:C[W],P)}}for(var d=u?u===e:e.length>t.length,p=u?r$(c,u):r$(d?t:e,[d?e:t]),v=0,g=0;g<p.length;g++)v+=p[g].many.length;for(var y=0,g=0;g<p.length;g++)f(p[g],d,y,v),y+=p[g].many.length}function rc(e){if(!e)return[];if(he(e)){for(var t=[],r=0;r<e.length;r++)t.push(rc(e[r]));return t}var n=[];return e.traverse(function(i){i instanceof wt&&!i.disableMorphing&&!i.invisible&&!i.ignore&&n.push(i)}),n}var q7=1e4,xLe=0,n$=1,i$=2,bLe=Ot();function SLe(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 _Le(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 a$(e,t,r,n){var i=n?"itemChildGroupId":"itemGroupId",a=SLe(e,i);if(a){var o=_Le(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 o$(e){var t=[];return $(e,function(r){var n=r.data,i=r.dataGroupId;if(!(n.count()>q7))for(var a=n.getIndices(),o=0;o<a.length;o++)t.push({data:n,groupId:a$(n,o,i,!1),childGroupId:a$(n,o,i,!0),divide:r.divide,dataIndex:o})}),t}function OT(e,t,r){e.traverse(function(n){n instanceof wt&&mr(n,{style:{opacity:0}},t,{dataIndex:r,isFrom:!0})})}function NT(e){if(e.parent){var t=e.getComputedTransform();e.setLocalTransform(t),e.parent.remove(e)}}function Qf(e){e.stopAnimation(),e.isGroup&&e.traverse(function(t){t.stopAnimation()})}function wLe(e,t,r){var n=Jd("update",r,t);n&&e.traverse(function(i){if(i instanceof Ma){var a=vye(i);a&&i.animateFrom({style:a},n)}})}function CLe(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 X7(e,t,r){var n=o$(e),i=o$(t);function a(S,w,T,C,A){(T||S)&&w.animateFrom({style:T&&T!==S?oe(oe({},T.style),S.style):S.style},A)}var o=!1,s=xLe,l=$e(),u=$e();n.forEach(function(S){S.groupId&&l.set(S.groupId,!0),S.childGroupId&&u.set(S.childGroupId,!0)});for(var c=0;c<i.length;c++){var f=i[c].groupId;if(u.get(f)){s=n$;break}var d=i[c].childGroupId;if(d&&l.get(d)){s=i$;break}}function p(S,w){return function(T){var C=T.data,A=T.dataIndex;return w?C.getId(A):S?s===n$?T.childGroupId:T.groupId:s===i$?T.childGroupId:T.groupId}}var v=CLe(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 b(S,w){var T=n[w],C=i[S],A=C.data.hostModel,I=T.data.getItemGraphicEl(T.dataIndex),k=C.data.getItemGraphicEl(C.dataIndex);if(I===k){k&&wLe(k,C.dataIndex,A);return}I&&g[I.id]||k&&(Qf(k),I?(Qf(I),NT(I),o=!0,ET(rc(I),rc(k),C.divide,A,S,a)):OT(k,A,S))}new Fs(n,i,p(!0,v),p(!1,v),null,"multiple").update(b).updateManyToOne(function(S,w){var T=i[S],C=T.data,A=C.hostModel,I=C.getItemGraphicEl(T.dataIndex),k=tr(ve(w,function(P){return n[P].data.getItemGraphicEl(n[P].dataIndex)}),function(P){return P&&P!==I&&!g[P.id]});I&&(Qf(I),k.length?($(k,function(P){Qf(P),NT(P)}),o=!0,ET(rc(k),rc(I),T.divide,A,S,a)):OT(I,A,T.dataIndex))}).updateOneToMany(function(S,w){var T=n[w],C=T.data.getItemGraphicEl(T.dataIndex);if(!(C&&g[C.id])){var A=tr(ve(S,function(k){return i[k].data.getItemGraphicEl(i[k].dataIndex)}),function(k){return k&&k!==C}),I=i[S[0]].data.hostModel;A.length&&($(A,function(k){return Qf(k)}),C?(Qf(C),NT(C),o=!0,ET(rc(C),rc(A),T.divide,I,S[0],a)):$(A,function(k){return OT(k,I,S[0])}))}}).updateManyToMany(function(S,w){new Fs(w,S,function(T){return n[T].data.getId(n[T].dataIndex)},function(T){return i[T].data.getId(i[T].dataIndex)}).update(function(T,C){b(S[T],w[C])}).execute()}).execute(),o&&$(t,function(S){var w=S.data,T=w.hostModel,C=T&&r.getViewOfSeriesModel(T),A=Jd("update",T,0);C&&T.isAnimationEnabled()&&A&&A.duration>0&&C.group.traverse(function(I){I instanceof wt&&!I.animators.length&&I.animateFrom({style:{opacity:0}},A)})})}function s$(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function l$(e){return he(e)?e.sort().join(","):e}function kl(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function TLe(e,t){var r=$e(),n=$e(),i=$e();return $(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=s$(a),c=l$(u);n.set(c,{dataGroupId:s,data:l}),he(u)&&$(u,function(f){i.set(f,{key:c,dataGroupId:s,data:l})})}),$(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=s$(a),u=l$(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:kl(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:kl(s),data:s}]});else if(he(l)){var f=[];$(l,function(v){var g=n.get(v);g.data&&f.push({dataGroupId:g.dataGroupId,divide:kl(g.data),data:g.data})}),f.length&&r.set(u,{oldSeries:f,newSeries:[{dataGroupId:o,data:s,divide:kl(s)}]})}else{var d=i.get(l);if(d){var p=r.get(d.key);p||(p={oldSeries:[{dataGroupId:d.dataGroupId,data:d.data,divide:kl(d.data)}],newSeries:[]},r.set(d.key,p)),p.newSeries.push({dataGroupId:o,data:s,divide:kl(s)})}}}}),r}function u$(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 ALe(e,t,r,n){var i=[],a=[];$(ir(e.from),function(o){var s=u$(t.oldSeries,o);s>=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:kl(t.oldData[s]),groupIdDim:o.dimension})}),$(ir(e.to),function(o){var s=u$(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:kl(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&X7(i,a,n)}function MLe(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){$(ir(n.seriesTransition),function(i){$(ir(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][Z0]=!0)})})}),e.registerUpdateLifecycle("series:transition",function(t,r,n){var i=bLe(r);if(i.oldSeries&&n.updatedSeries&&n.optionChanged){var a=n.seriesTransition;if(a)$(ir(a),function(p){ALe(p,i,n,r)});else{var o=TLe(i,n);$(o.keys(),function(p){var v=o.get(p);X7(v.oldSeries,v.newSeries,r)})}$(n.updatedSeries,function(p){p[Z0]&&(p[Z0]=!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()<q7&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(d))}})}St([zSe]);St([RSe]);St([n_e,y_e,I_e,swe,ywe,iCe,RCe,vTe,zTe,GTe,QTe,U2e,mAe,IAe,WAe,qAe,iMe,fMe,_Me,IMe,BMe,SIe]);St($Ie);St(dke);St(Y8);St(Tke);St(R9);St(kke);St(Bke);St(TPe);St(WPe);St(rm);St(sDe);St(cDe);St(bDe);St(MDe);St(LDe);St(FDe);St(XDe);St(pRe);St(O7);St(N7);St(LRe);St(V7);St(H7);St(BRe);St(KRe);St(eLe);St(MLe);St(Qbe);const c$={DARK:{textColor:"#b3c3bc",axisColor:"#5b6f66",backgroundColor:"#27272a",splitLine:"#4c4c52"},LIGHT:{textColor:"#000",axisColor:"#000",backgroundColor:"#fff",splitLine:"#ddd"}},ILe=e=>!isNaN(new Date(e).getTime()),kLe=e=>e&&ILe(e)?new Date(e).toLocaleString():"",Z7=({charts:e,lines:t,scatterplot:r})=>t.map(({key:n,name:i})=>({symbolSize:4,type:r?"scatter":"line",name:i,data:e[n]})),f$={type:"value",boundaryGap:[0,"5%"]},PLe=({splitAxis:e,yAxisLabels:t})=>e&&(!t||Array.isArray(t))?Array(2).fill(f$).map((r,n)=>({...r,...t?{name:t[n]}:{}})):{...f$,...t?{name:t}:{}},DLe=e=>new Date(e).toLocaleTimeString(),RLe=({chartValueFormatter:e,value:t})=>e?e(t):Array.isArray(t)?t[1]:t,LLe=({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:p,seriesName:v,value:g},y)=>`
215
+ ${y===0?kLe(d):""}
216
+ ${f}
217
+ <br>
218
+ <span style="color:${p};">
219
+ ${v}:&nbsp${RLe({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:DLe}},grid:l||{left:60,right:40},yAxis:PLe({splitAxis:a,yAxisLabels:o}),series:Z7({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}}),ELe=e=>({symbol:"none",label:{formatter:t=>`Run #${t.dataIndex+1}`,padding:[0,0,8,0]},data:(e.markers||[]).map(t=>({xAxis:t}))}),OLe=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 NLe({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]=V.useState(null),p=Di(({theme:{isDarkMode:g}})=>g),v=V.useRef(null);return V.useEffect(()=>{if(!v.current)return;const g=bxe(v.current);g.setOption(LLe({charts:e,title:t,lines:r,colors:n,chartValueFormatter:i,splitAxis:a,yAxisLabels:o,xAxis:s,grid:l,scatterplot:u})),g.on("datazoom",OLe(g));const y=()=>{g.resize(),g.setOption({xAxis:{splitNumber:window.innerWidth<900?2:7}})};return window.addEventListener("resize",y),g.group="swarmCharts",Sxe("swarmCharts"),d(g),()=>{_xe(g),window.removeEventListener("resize",y)}},[v]),V.useEffect(()=>{const g=r.every(({key:y})=>!!e[y]);f&&g&&f.setOption({series:r.map(({key:y,yAxisIndex:x,...b},S)=>({...b,data:e[y],...a?{yAxisIndex:x||S}:{},...S===0?{markLine:ELe(e)}:{}}))})},[e,f,r]),V.useEffect(()=>{if(f){const{textColor:g,axisColor:y,backgroundColor:x,splitLine:b}=p?c$.DARK:c$.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:b}}}})}},[f,p]),V.useEffect(()=>{f&&f.setOption({series:Z7({charts:e,lines:r,scatterplot:u})},c?{replaceMerge:["series"]}:void 0)},[r]),N.jsx("div",{ref:v,style:{width:"100%",height:"300px"}})}function zLe(){const{data:e,refetch:t}=Rpe(),r=_s(pv.setUi),n=Di(({swarm:a})=>a.state),i=n===Nn.SPAWNING||n==Nn.RUNNING;V.useEffect(()=>{e&&r({ratios:e})},[e]),Jx(t,5e3,{shouldRunInterval:i,immediate:!0})}const BLe=2e3;function FLe(){const e=_s(wI.setSwarm),t=_s(pv.setUi),r=_s(pv.updateCharts),n=_s(pv.updateChartMarkers),i=Di(({swarm:f})=>f),a=V.useRef(i.state),[o,s]=V.useState(!1),{data:l,refetch:u}=Dpe(),c=i.state===Nn.SPAWNING||i.state==Nn.RUNNING;V.useEffect(()=>{if(!l)return;const{state:f,currentResponseTimePercentiles:d,extendedStats:p,stats:v,errors:g,totalRps:y,totalFailPerSec:x,failRatio:b,workers:S,userCount:w,totalAvgResponseTime:T}=l,C=new Date().toISOString();o&&(s(!1),n(C));const A=Hh(y,2),I=Hh(x,2),k=Hh(b*100),R={...Object.entries(d).reduce((O,[E,z])=>({...O,[E]:[C,z||0]}),{}),currentRps:[C,A],currentFailPerSec:[C,I],totalAvgResponseTime:[C,Hh(T,2)],userCount:[C,w],time:C};t({extendedStats:p,stats:v,errors:g,totalRps:A,failRatio:k,workers:S,userCount:w}),r(R),e({state:f})},[l]),Jx(u,BLe,{shouldRunInterval:c}),V.useEffect(()=>{i.state===Nn.RUNNING&&a.current===Nn.STOPPED&&s(!0),a.current=i.state},[i.state,a])}function $Le(){const{data:e,refetch:t}=Lpe(),r=_s(pv.setUi),n=Di(({swarm:a})=>a.state),i=n===Nn.SPAWNING||n==Nn.RUNNING;V.useEffect(()=>{e&&r({exceptions:e.exceptions})},[e]),Jx(t,5e3,{shouldRunInterval:i,immediate:!0})}function VLe(){return $Le(),N.jsx(yhe,{})}const HLe=[{key:"occurrences",title:"# Failures"},{key:"method",title:"Method"},{key:"name",title:"Name"},{key:"error",title:"Message",markdown:!0}];function GLe({errors:e}){return N.jsx(Eg,{rows:e,structure:HLe})}const WLe=({ui:{errors:e}})=>({errors:e}),jLe=Zi(WLe)(GLe),ULe=`
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 YLe(){const e=Di(({theme:{isDarkMode:t}})=>t);return N.jsxs(Xt,{children:[N.jsxs(Xt,{sx:{mb:2},children:[N.jsx(Vt,{component:"h2",mb:1,variant:"h4",children:"Power Up Your Load Tests!"}),N.jsx(cc,{content:ULe})]}),N.jsxs("ul",{children:[N.jsxs("li",{children:[N.jsx(Vt,{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(Vt,{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(Vt,{children:["Vist us at"," ",N.jsx(hn,{href:"https://www.locust.cloud/get-started?plan=basic",children:"locust.cloud"})," for a free consultation today!"]})]})]})]})}const qLe=e=>e.includes("CRITICAL")?Al[900]:e.includes("ERROR")?Al[700]:e.includes("WARNING")?rZ[900]:e.includes("DEBUG")?qu[700]:"text.primary";function K7({log:e}){return N.jsx(Vt,{color:qLe(e),fontFamily:"monospace",variant:"body2",children:e})}function XLe({workerId:e,logs:t}){const[r,n]=V.useState(!1);V.useEffect(()=>{t.slice(localStorage[e]).some(aH)&&n(!0)},[t]);const i=V.useCallback(()=>{n(!1),localStorage[e]=t.length},[]);return N.jsxs(HM,{children:[N.jsxs(WM,{expandIcon:N.jsx(xI,{}),onClick:i,children:[r&&N.jsx(fH,{color:"secondary","data-testid":"worker-notification"}),e]}),N.jsx(GM,{children:N.jsx(ao,{elevation:3,sx:{p:2},children:t.map((a,o)=>N.jsx(K7,{log:a},`worker-${e}-log-${o}`))})})]})}function ZLe(){const{master:e,workers:t}=Di(({logViewer:r})=>r);return N.jsxs(Xt,{sx:{display:"flex",flexDirection:"column",rowGap:4},children:[N.jsxs(Xt,{children:[N.jsx(Vt,{sx:{mb:2},variant:"h5",children:"Master Logs"}),N.jsx(ao,{elevation:3,sx:{p:2,fontFamily:"monospace"},children:e.map((r,n)=>N.jsx(K7,{log:r},`master-log-${n}`))})]}),!Y6(t)&&N.jsxs(Xt,{children:[N.jsx(Vt,{sx:{mb:2},variant:"h5",children:"Worker Logs"}),Object.entries(t).map(([r,n],i)=>N.jsx(XLe,{logs:n,workerId:r},`worker-log-${i}`))]})]})}function KLe({extendedCsvFiles:e,statsHistoryEnabled:t}){const r=Di(({theme:{isDarkMode:n}})=>n);return N.jsxs(qV,{sx:{display:"flex",flexDirection:"column"},children:[N.jsx(If,{children:N.jsx(hn,{href:"./stats/requests/csv",children:"Download requests CSV"})}),t&&N.jsx(If,{children:N.jsx(hn,{href:"./stats/requests_full_history/csv",children:"Download full request statistics history CSV"})}),N.jsx(If,{children:N.jsx(hn,{href:"./stats/failures/csv",children:"Download failures CSV"})}),N.jsx(If,{children:N.jsx(hn,{href:"./exceptions/csv",children:"Download exceptions CSV"})}),N.jsx(If,{children:N.jsx(hn,{href:`./stats/report?theme=${r?$o.DARK:$o.LIGHT}`,target:"_blank",children:"Download Report"})}),e&&e.map(({href:n,title:i},a)=>N.jsx(If,{children:N.jsx(hn,{href:n,children:i})},`extended-csv-${a}`))]})}const QLe=({swarm:{extendedCsvFiles:e,statsHistoryEnabled:t}})=>({extendedCsvFiles:e,statsHistoryEnabled:t}),JLe=Zi(QLe)(KLe);var zh={},d$;function eEe(){if(d$)return zh;d$=1;var e=ou();Object.defineProperty(zh,"__esModule",{value:!0}),zh.default=void 0;var t=e(su()),r=Gs(),n=(0,t.default)((0,r.jsx)("path",{d:"M14.67 5v14H9.33V5h5.34zm1 14H21V5h-5.33v14zm-7.34 0V5H3v14h5.33z"}),"ViewColumn");return zh.default=n,zh}var tEe=eEe();const rEe=Xi(tEe);function nEe({structure:e,selectedColumns:t,addColumn:r,removeColumn:n}){const[i,a]=V.useState(null);return N.jsxs(WV,{sx:{alignSelf:{xs:"end",lg:"start"},my:2},children:[N.jsx(Yo,{onClick:o=>a(o.currentTarget),variant:"outlined",children:N.jsx(rEe,{})}),N.jsx(QV,{anchorEl:i,anchorOrigin:{vertical:"bottom",horizontal:"left"},onClose:()=>a(null),open:!!i,children:N.jsx(UV,{sx:{p:2},children:e.map(({key:o,title:s})=>N.jsx(jV,{control:N.jsx(Hoe,{checked:t.includes(o),onChange:()=>{t.includes(o)?n(o):r(o)}}),label:s},o))})})]})}function iEe(e){const[t,r]=V.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 aEe=Vo.percentilesToStatistics?Vo.percentilesToStatistics.map(e=>({title:`${e*100}%ile (ms)`,key:`responseTimePercentile${e}`})):[],oEe=[{key:"method",title:"Type"},{key:"name",title:"Name"},{key:"numRequests",title:"# Requests"},{key:"numFailures",title:"# Fails"},{key:"medianResponseTime",title:"Median (ms)",round:2},...aEe,{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=oEe}){const{selectedColumns:r,addColumn:n,removeColumn:i,filteredStructure:a}=iEe(t);return N.jsxs(Xt,{sx:{display:"flex",flexDirection:{xs:"column",lg:"row-reverse",alignItems:"flex-start"},columnGap:1},children:[N.jsx(nEe,{addColumn:n,removeColumn:i,selectedColumns:r,structure:t}),N.jsx(Eg,{hasTotalRow:!0,rows:e,structure:a})]})}const lEe=({ui:{stats:e}})=>({stats:e}),uEe=Zi(lEe)(sEe),cEe=Vo.percentilesToChart?Vo.percentilesToChart.map(e=>({name:`${e*100}th percentile`,key:`responseTimePercentile${e}`})):[],fEe=["#ff9f00","#9966CC","#8A2BE2","#8E4585","#E0B0FF","#C8A2C8","#E6E6FA"],dEe=[{title:"Total Requests per Second",lines:[{name:"RPS",key:"currentRps"},{name:"Failures/s",key:"currentFailPerSec"}],colors:["#00ca5a","#ff6d6d"]},{title:"Response Times (ms)",lines:cEe,colors:fEe},{title:"Number of Users",lines:[{name:"Number of Users",key:"userCount"}],colors:["#0099ff"]}];function pEe({charts:e}){return dEe.map((t,r)=>N.jsx(NLe,{...t,charts:e},`swarm-chart-${r}`))}const hEe=({ui:{charts:e}})=>({charts:e}),vEe=Zi(hEe)(pEe);function gEe(e){return(e*100).toFixed(1)+"%"}function uM({classRatio:e}){return N.jsx("ul",{children:Object.entries(e).map(([t,{ratio:r,tasks:n}])=>N.jsxs("li",{children:[`${gEe(r)} ${t}`,n&&N.jsx(uM,{classRatio:n})]},`nested-ratio-${t}`))})}function mEe({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(uM,{classRatio:e})]}),t&&N.jsxs(N.Fragment,{children:[N.jsx("h3",{children:"Total Ratio"}),N.jsx(uM,{classRatio:t})]})]})}const yEe=({ui:{ratios:e}})=>({ratios:e}),xEe=Zi(yEe)(mEe);function bEe(){return zLe(),N.jsx(xEe,{})}const SEe=[{key:"id",title:"Worker"},{key:"state",title:"State"},{key:"userCount",title:"# users"},{key:"cpuUsage",title:"CPU usage"},{key:"memoryUsage",title:"Memory usage",formatter:tZ}];function _Ee({workers:e=[]}){return N.jsx(Eg,{defaultSortKey:"id",rows:e,structure:SEe})}const wEe=({ui:{workers:e}})=>({workers:e}),CEe=Zi(wEe)(_Ee),xs={stats:{component:uEe,key:"stats",title:"Statistics"},charts:{component:vEe,key:"charts",title:"Charts"},failures:{component:jLe,key:"failures",title:"Failures"},exceptions:{component:VLe,key:"exceptions",title:"Exceptions"},ratios:{component:bEe,key:"ratios",title:"Current Ratio"},reports:{component:JLe,key:"reports",title:"Download Data"},logs:{component:ZLe,key:oH,title:"Logs"},workers:{component:CEe,key:"workers",title:"Workers",shouldDisplayTab:e=>e.swarm.isDistributed},locustCloud:{component:YLe,key:"locustcloud",title:"Locust Cloud"}},TEe=[xs.stats,xs.charts,xs.failures,xs.exceptions,xs.ratios,xs.reports,xs.logs,xs.workers,xs.locustCloud];function AEe({hasNotification:e,title:t}){return N.jsxs(Xt,{sx:{display:"flex",alignItems:"center"},children:[e&&N.jsx(fH,{color:"secondary"}),N.jsx("span",{children:t})]})}function MEe({currentTabIndexFromQuery:e,notification:t,setNotification:r,setUrl:n,tabs:i}){const[a,o]=V.useState(e),s=(l,u)=>{const c=i[u].key;t[c]&&r({[c]:!1}),whe({tab:c}),n({query:{tab:c}}),o(u)};return V.useEffect(()=>{o(e)},[e]),N.jsxs(Pg,{maxWidth:"xl",children:[N.jsx(Xt,{sx:{mb:2},children:N.jsx(Yse,{onChange:s,scrollButtons:"auto",value:a,variant:"scrollable",children:i.map(({key:l,title:u},c)=>N.jsx(Yoe,{label:N.jsx(AEe,{hasNotification:t[l],title:u})},`tab-${c}`))})}),i.map(({component:l=hhe},u)=>a===u&&N.jsx(l,{},`tabpabel-${u}`))]})}const IEe=(e,{tabs:t,extendedTabs:r})=>{const{notification:n,swarm:{extendedTabs:i},url:{query:a}}=e,s=(t||[...TEe,...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}},kEe={setNotification:lH.setNotification,setUrl:Ahe.setUrl},PEe=Zi(IEe,kEe)(MEe);function DEe({swarmState:e,tabs:t,extendedTabs:r}){FLe(),ohe();const n=U6();return N.jsxs(bV,{theme:n,children:[N.jsx(VV,{}),N.jsx(Qpe,{children:e===Nn.READY?N.jsx(CI,{}):N.jsx(PEe,{extendedTabs:r,tabs:t})})]})}const REe=({swarm:{state:e}})=>({swarmState:e}),LEe=Zi(REe)(DEe);function EEe(){if(OL){const e=I$({reducer:gx({theme:j6})});return N.jsx(LL,{store:e,children:N.jsx(Sde,{...OL})})}else return N.jsx(LL,{store:khe,children:N.jsx(LEe,{})})}function OEe({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 NEe=KY.createRoot(document.getElementById("root"));NEe.render(N.jsx(JY,{fallbackRender:OEe,children:N.jsx(EEe,{})}));